Large File Support for native Windows platforms.
[gnulib.git] / ChangeLog
1 2012-04-21  Bruno Haible  <bruno@clisp.org>
2
3         Large File Support for native Windows platforms.
4
5         * m4/largefile.m4 (gl_LARGEFILE): New macro.
6         * modules/largefile (configure.ac): Require gl_LARGEFILE.
7
8         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
9         type.
10         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
11         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
12         * doc/posix-headers/sys_types.texi: Mention the effect of the
13         'largefile' module.
14
15         * lib/fcntl.in.h: Add comments about off_t.
16         * modules/fcntl-h (Depends-on): Add sys_types.
17
18         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
19         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
20         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
21         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
22         * modules/unistd (Depends-on): Add sys_types.
23         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
24
25         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
26         instead of lseek.
27         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
28         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
29         * modules/lseek (Depends-on): Add sys_types.
30
31         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
32         msvc-nothrow.h.
33         (SetFileSize): New function.
34         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36         if Large File Support is requested.
37         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39
40         * lib/stdio.in.h: Add comments about off_t.
41         * modules/stdio (Depends-on): Add sys_types.
42
43         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
44         instead of ftello.
45         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
46         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
47         (gl_PREREQ_FTELLO): New macro.
48         * modules/ftello (Depends-on): Add sys_types.
49         (configure.ac): Incoke gl_PREREQ_FTELLO.
50
51         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
52         instead of fseeko.
53         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
54         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
55         (gl_PREREQ_FSEEKO): New macro.
56         * modules/fseeko (Depends-on): Add sys_types.
57         (configure.ac): Invoke gl_PREREQ_FSEEKO.
58
59         * lib/sys_stat.in.h: Add comments about off_t.
60         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
61         64-bit integer for st_size in 'struct stat'.
62         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
63         Define _GL_WINDOWS_64_BIT_ST_SIZE.
64         * modules/sys_stat (Depends-on): Add sys_types.
65         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
66
67         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
68         instead of stat or _stat.
69
70         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
71         'struct _stati64' instead of fstat and 'struct stat'.
72         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
73         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
74
75         Reported by Ray Satiro <raysatiro@yahoo.com>.
76
77 2012-04-19  Eric Blake  <eblake@redhat.com>
78
79         bootstrap: accommodate older libtool
80         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
81         Reported by Daniel P. Berrange.
82
83 2012-04-19  Jim Meyering  <meyering@redhat.com>
84
85         announce-gen: avoid failure due to lack of Digest::SHA1
86         Even with the preferred Digest::SHA available, this script
87         would fail when the backup module, Digest::SHA1, was not installed.
88         * build-aux/announce-gen: Quote the conditional use of "use".
89         Reported by Reuben Thomas in:
90         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
91
92         bootstrap: don't let a user's CDPATH setting affect this script
93         When CDPATH is set, cd will sometimes generate output.
94         When "cd" is run in a subshell whose output matters, that
95         surprising-to-some output can cause malfunction.
96         Unsetting CDPATH turns off this shell "feature."
97         * build-aux/bootstrap (CDPATH): Unset.
98         Reported by Reuben Thomas in:
99         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
100         and inspired by his patch here:
101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
102
103 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
104         and Jim Meyering  <meyering@redhat.com>
105
106         maint.mk: catch "see @xref{}" and similar
107         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
108         prohibit "See also @xref{", "Also see @pxref{", and similar.
109
110 2012-04-16  Jim Meyering  <meyering@redhat.com>
111
112         bootstrap: really use gnulib's po/Makefile.in.in
113         * build-aux/bootstrap: Correct the source file name in previous change.
114         Reported by Akim Demaille.
115
116         configmake: correct minor inconsistency in Makefile rule
117         * modules/configmake (Makefile.am): All other rules like this one
118         run the final "mv -f ..." in the same backslash-continued command
119         as the one that does everything else.  This one put the mv -f ...
120         command on a separate, non-backslash-continued line.
121         Make it like the others.
122
123         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
124         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
125         the one from gettext.  Reported by Akim Demaille.
126
127 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
128
129         Fix recursion of install-* into po directories.
130         Bison's install-pdf bug reported by Hans Aberg at
131         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
132         * build-aux/po/Makefile.in.in (install-dvi, install-html)
133         (install-info, install-pdf, install-ps): New targets.
134
135 2012-04-16  Jim Meyering  <meyering@redhat.com>
136
137         maint: avoid spurious "make sc_maint" failure
138         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
139         exempt all *.class file names, for lib/javaversion.class.
140
141 2012-04-15  Bruno Haible  <bruno@clisp.org>
142
143         lseek: Make configure test independent of environment.
144         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
145         Windows, we know that lseek() on pipes is broken; skip the runtime
146         test.
147
148 2012-04-14  Bruno Haible  <bruno@clisp.org>
149
150         stat: Bypass buggy override in mingw64.
151         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
152         * lib/stat.c (stat) [mingw64]: Define to _stat.
153         * doc/posix-functions/stat.texi: Mention mingw64 bug.
154
155 2012-04-14  Bruno Haible  <bruno@clisp.org>
156
157         pathmax: Fix compilation error on MSVC 9.
158         * modules/pathmax (Depends-on): Add unistd.
159
160 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
161
162         README: document pointer comparison assumption
163         * README (Portability guidelines): Document assumption about
164         pointer comparisons, in response to a recent bug-gnulib comment by
165         Jeffrey Kegler.
166
167 2012-04-12  Bruno Haible  <bruno@clisp.org>
168
169         Tests for module 'getrusage'.
170         * modules/getrusage-tests: New file.
171         * tests/test-getrusage.c: New file.
172
173         New module 'getrusage'.
174         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
175         warn-on-use.h.
176         (getrusage): New declaration.
177         * lib/getrusage.c: New file.
178         * m4/getrusage.m4: New file.
179         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
180         is declared.
181         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
182         HAVE_GETRUSAGE.
183         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
184         snippet/c++defs, snippet/warn-on-use.
185         (Makefile.am): Update generation of sys/resource.h. Substitute
186         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
187         * modules/getrusage: New file.
188         * doc/posix-functions/getrusage.texi: Mention the new module.
189
190 2012-04-12  Bruno Haible  <bruno@clisp.org>
191
192         Tests for module 'sys_resource'.
193         * modules/sys_resource-tests: New file.
194         * tests/test-sys_resource.c: New file.
195
196         New module 'sys_resource'.
197         * lib/sys_resource.in.h: New file.
198         * m4/sys_resource_h.m4: New file.
199         * modules/sys_resource: New file.
200         * doc/posix-headers/sys_resource.texi: Mention the new module.
201
202 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
203
204         ioctl: Fix compilation error on mingw.
205         * lib/ioctl.c: Include <windows.h>.
206         Also reported by Ray Satiro <raysatiro@yahoo.com>.
207
208 2012-04-04  Jim Meyering  <meyering@redhat.com>
209
210         regex: correct #pragma guard expression
211         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
212         not 4.3.  Correct its cpp guard expression.
213
214 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
215
216         regex: remove unnecessary type punning
217         Problem reported by Vladimir Serbinenko in
218         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
219         * lib/regex.h (struct re_pattern_buffer): Change the type of
220         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
221         Fix comment to match code.
222         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
223         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
224         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
225         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
226         (set_regs):
227         Omit no-longer-necessary casts.
228
229 2012-04-03  Bruno Haible  <bruno@clisp.org>
230
231         Tests for module 'ilogbl'.
232         * modules/ilogbl-tests: New file.
233         * tests/test-ilogbl.c: New file.
234
235         New module 'ilogbl'.
236         * lib/math.in.h (ilogbl): New declaration.
237         * lib/ilogbl.c: New file.
238         * m4/ilogbl.m4: New file.
239         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
241         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
242         Split sed invocation, to avoid the limit of 100 substitutions of
243         HP-UX 'sed'.
244         * modules/ilogbl: New file.
245         * tests/test-math-c++.cc: Check the declaration of ilogbl.
246         * doc/posix-functions/ilogbl.texi: Mention the new module.
247
248 2012-04-03  Bruno Haible  <bruno@clisp.org>
249
250         Tests for module 'ilogbf'.
251         * modules/ilogbf-tests: New file.
252         * tests/test-ilogbf.c: New file.
253
254         New module 'ilogbf'.
255         * lib/math.in.h (ilogbf): New declaration.
256         * lib/ilogbf.c: New file.
257         * m4/ilogbf.m4: New file.
258         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
260         REPLACE_ILOGBF.
261         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
262         REPLACE_ILOGBF.
263         * modules/ilogbf: New file.
264         * tests/test-math-c++.cc: Check the declaration of ilogbf.
265         * doc/posix-functions/ilogbf.texi: Mention the new module.
266
267 2012-04-03  Bruno Haible  <bruno@clisp.org>
268
269         Tests for module 'ilogb'.
270         * modules/ilogb-tests: New file.
271         * tests/test-ilogb.c: New file.
272         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
273         tests/test-logb-ieee.h.
274
275         New module 'ilogb'.
276         * lib/math.in.h (ilogb): New declaration.
277         * lib/ilogb.c: New file.
278         * m4/ilogb.m4: New file.
279         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
281         REPLACE_ILOGB.
282         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
283         REPLACE_ILOGB.
284         * modules/ilogb: New file.
285         * tests/test-math-c++.cc: Check the declaration of ilogb.
286         * doc/posix-functions/ilogb.texi: Mention the new module.
287
288 2012-04-03  Bruno Haible  <bruno@clisp.org>
289
290         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
291         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
292         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
293         (main): Check their values.
294         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
295         problem.
296
297 2012-04-03  Bruno Haible  <bruno@clisp.org>
298
299         Tests for module 'logbl-ieee'.
300         * modules/logbl-ieee-tests: New file.
301         * tests/test-logbl-ieee.c: New file.
302
303         New module 'logbl-ieee'.
304         * modules/logbl-ieee: New file.
305
306         Tests for module 'logb-ieee'.
307         * modules/logb-ieee-tests: New file.
308         * tests/test-logb-ieee.c: New file.
309
310         New module 'logb-ieee'.
311         * modules/logb-ieee: New file.
312
313         Tests for module 'logbf-ieee'.
314         * modules/logbf-ieee-tests: New file.
315         * tests/test-logbf-ieee.c: New file.
316         * tests/test-logb-ieee.h: New file.
317
318         New module 'logbf-ieee'.
319         * modules/logbf-ieee: New file.
320
321 2012-04-03  Bruno Haible  <bruno@clisp.org>
322
323         Tests for module 'logbl'.
324         * modules/logbl-tests: New file.
325         * tests/test-logbl.c: New file.
326
327         New module 'logbl'.
328         * lib/math.in.h (logbl): New declaration.
329         * lib/logbl.c: New file.
330         * m4/logbl.m4: New file.
331         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
333         REPLACE_LOGBL.
334         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
335         REPLACE_LOGBL.
336         * modules/logbl: New file.
337         * tests/test-math-c++.cc: Check the declaration of logbl.
338         * doc/posix-functions/logbl.texi: Mention the new module.
339
340 2012-04-02  Bruno Haible  <bruno@clisp.org>
341
342         Tests for module 'logbf'.
343         * modules/logbf-tests: New file.
344         * tests/test-logbf.c: New file.
345
346         New module 'logbf'.
347         * lib/math.in.h (logbf): New declaration.
348         * lib/logbf.c: New file.
349         * m4/logbf.m4: New file.
350         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
352         REPLACE_LOGBF.
353         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
354         REPLACE_LOGBF.
355         * modules/logbf: New file.
356         * tests/test-math-c++.cc: Check the declaration of logbf.
357         * doc/posix-functions/logbf.texi: Mention the new module.
358
359 2012-04-02  Bruno Haible  <bruno@clisp.org>
360
361         logb tests: More tests.
362         * tests/test-logb.h: New file, based on tests/test-logb.c and
363         tests/test-frexp.h.
364         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
365         (main): Just invoke test_function.
366         * modules/logb-tests (Files): Add tests/test-logb.h,
367         tests/minus-zero.h, tests/randomd.c.
368         (Makefile.am): Add randomd.c to test_logb_SOURCES.
369
370         logb: Provide replacement and workarounds.
371         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
372         is 1.
373         * lib/logb.c: New file.
374         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
375         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
377         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
378         * modules/logb (Files): Add lib/logb.c.
379         (Depends-on): Add isfinite, frexp, isnand.
380         (configure.ac): Compile the replacement code logb.c if needed.
381         * tests/test-math-c++.cc: Check the declaration of logb.
382         * doc/posix-functions/logb.texi: Mention the replacement and the bug
383         with subnormal numbers.
384
385 2012-04-02  Bruno Haible  <bruno@clisp.org>
386
387         log10* tests: Speed up.
388         * tests/test-log10.h (test_function): Reduce amount of random numbers
389         to test.
390
391 2012-04-01  Bruno Haible  <bruno@clisp.org>
392
393         logf-ieee: Fix test whether logf works.
394         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
395
396 2012-04-01  Bruno Haible  <bruno@clisp.org>
397
398         log10l: Work around log10l-ieee test failure on IRIX 6.5.
399         * lib/log10l.c: Include <float.h>
400         (log10l): On IRIX, normalize the +Infinity value.
401         * modules/log10l (Depends-on): Add 'float'.
402         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
403         +Infinity.
404
405         log10f-ieee: Work around test failure on NetBSD 5.1.
406         * m4/log10f-ieee.m4: New file.
407         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
408         test whether log10f works with a negative argument. Replace it if not.
409         * lib/log10f.c (log10f): For negative arguments, return NaN.
410         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
411         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
412         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
413
414         log10f-ieee: Work around test failure on Solaris 9.
415         * modules/log10f-ieee (Depends-on): Add log10-ieee.
416         (configure.ac): Require gl_FUNC_LOG10F.
417
418         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
419         * m4/log10-ieee.m4: New file.
420         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
421         whether log10 works with a negative argument. Replace it if not.
422         * lib/log10.c (log10): For negative arguments, return NaN.
423         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
424         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
425         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
426
427         Tests for module 'log10l-ieee'.
428         * modules/log10l-ieee-tests: New file.
429         * tests/test-log10l-ieee.c: New file.
430
431         New module 'log10l-ieee'.
432         * modules/log10l-ieee: New file.
433
434         Tests for module 'log10-ieee'.
435         * modules/log10-ieee-tests: New file.
436         * tests/test-log10-ieee.c: New file.
437
438         New module 'log10-ieee'.
439         * modules/log10-ieee: New file.
440
441         Tests for module 'log10f-ieee'.
442         * modules/log10f-ieee-tests: New file.
443         * tests/test-log10f-ieee.c: New file.
444         * tests/test-log10-ieee.h: New file.
445
446         New module 'log10f-ieee'.
447         * modules/log10f-ieee: New file.
448
449 2012-04-01  Bruno Haible  <bruno@clisp.org>
450
451         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
452         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
453         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
454         workaround.
455         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
456         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
458         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
459         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
460         (Depends-on): Update conditions.
461         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
462         IRIX 6.5, OSF/1 5.1 problems.
463
464 2012-04-01  Bruno Haible  <bruno@clisp.org>
465
466         log10f: Work around OSF/1 5.1 bug.
467         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
468         * lib/log10f.c (log10f): If logf exists, use it and provide just the
469         workaround.
470         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
471         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
473         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
474         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
475         (Depends-on): Update conditions.
476         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
477
478 2012-04-01  Bruno Haible  <bruno@clisp.org>
479
480         log10: Work around OSF/1 5.1 bug.
481         * lib/math.in.h (log10): New declaration.
482         * lib/log10.c: New file.
483         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
484         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
485         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
487         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
488         * modules/log10 (Files): Add lib/log10.c.
489         (Depends-on): Add math.
490         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
491         * tests/test-math-c++.cc: Check the declaration of log10.
492         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
493
494 2012-03-31  Bruno Haible  <bruno@clisp.org>
495
496         log10l tests: More tests.
497         * modules/log10l-tests (Files): Add tests/test-log10l.h,
498         tests/minus-zero.h, tests/randoml.c.
499         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
500         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
501         (main): Invoke test_function.
502
503         log10f tests: More tests.
504         * modules/log10f-tests (Files): Add tests/test-log10.h,
505         tests/minus-zero.h, tests/randomf.c.
506         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
507         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
508         (main): Invoke test_function.
509
510         log10 tests: More tests.
511         * tests/test-log10.h: New file.
512         * modules/log10-tests (Files): Add tests/test-log10.h,
513         tests/minus-zero.h, tests/randomd.c.
514         (Makefile.am): Add randomd.c to test_log10_SOURCES.
515         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
516         (main): Invoke test_function.
517
518 2012-03-31  Simon Josefsson  <simon@josefsson.org>
519
520         fflush: Fix syntax error.
521         * lib/fflush.c: Include unused-parameter.h, needed for
522         _GL_UNUSED_PARAMETER.
523         * modules/fflush (Depends-on): Add snippet/unused-parameter.
524
525 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
526
527         regex: pacify GCC when compiling GRUB
528         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
529         a diagnostic.  Reported by Vladimir Serbinenko in
530         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
531
532 2012-03-29  Eric Blake  <eblake@redhat.com>
533
534         stdio: don't assume gets any more
535         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
536         support.
537         * modules/stdio (Makefile.am): Likewise.
538         * lib/stdio-read.c (gets): Likewise.
539         * tests/test-stdio-c++.cc: Likewise.
540         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
541         * lib/stdio.in.h (gets): Make warning occur in more places.
542         * doc/posix-functions/gets.texi (gets): Update documentation.
543         Reported by Christer Solskogen.
544
545         maint.mk: fix syntax checks without exclusions
546         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
547         Reported by Daniel P. Berrange.
548
549         strerror_r: avoid compiler warning
550         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
551         level.
552
553         fflush: avoid compiler warning
554         * lib/fflush.c (update_fpos_cache): Mark variables that are
555         potentially unused.
556
557 2012-03-25  Bruno Haible  <bruno@clisp.org>
558
559         Tests for module 'localeconv'.
560         * modules/localeconv-tests: New file.
561         * tests/test-localeconv.c: New file.
562
563         New module 'localeconv'.
564         * lib/locale.in.h (localeconv): New declaration.
565         * lib/localeconv.c: New file.
566         * m4/localeconv.m4: New file.
567         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
568         REPLACE_LOCALECONV.
569         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
570         REPLACE_LOCALECONV.
571         * modules/localeconv: New file.
572         * modules/nl_langinfo (Depends-on): Add localeconv.
573         * modules/human (Depends-on): Likewise.
574         * doc/posix-functions/localeconv.texi: Mention the new module.
575
576 2012-03-25  Bruno Haible  <bruno@clisp.org>
577
578         locale: Provide a complete 'struct lconv'.
579         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
580         'struct lconv' does not contain int_p_cs_precedes.
581         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
582         * doc/posix-headers/locale.texi: Update.
583
584         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
585         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
586         * doc/posix-headers/locale.texi: Update.
587
588         locale: Provide a working 'struct lconv'.
589         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
590         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
591         'struct lconv' does not even contain decimal_point.
592         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
593         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
594         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
595         * doc/posix-headers/locale.texi: Mention the problems with
596         'struct lconv'.
597         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
598
599 2012-03-24  Bruno Haible  <bruno@clisp.org>
600
601         Enable common subexpression optimization in GCC.
602         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
603         macros.
604         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
605         GCC attribute 'const'.
606         (uc_locale_language): Declare with GCC attribute 'pure'.
607         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
608         with GCC attribute 'const'.
609         * lib/unictype.in.h (uc_is_general_category_withtable,
610         uc_combining_class, uc_combining_class_name,
611         uc_combining_class_long_name, uc_bidi_class_name,
612         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
613         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
614         uc_decimal_value, uc_digit_value, uc_numeric_value,
615         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
616         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
617         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
618         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
619         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
620         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
621         Declare with GCC attribute 'const'.
622         (uc_general_category_name, uc_general_category_long_name,
623         uc_general_category_byname, uc_general_category,
624         uc_is_general_category, uc_combining_class_byname,
625         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
626         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
627         Declare with GCC attribute 'pure'.
628         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
629         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
630         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
631         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
632         with GCC attribute 'pure'.
633         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
634         'const'.
635         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
636         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
637         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
638         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
639         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
640         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
641         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
642         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
643         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
644         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
645         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
646         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
647         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
648         GCC attribute 'pure'.
649         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
650         'const'.
651         * lib/uniwidth.in.h (uc_width): Simplify declaration.
652         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
653         u32_strwidth): Declare with GCC attribute 'pure'.
654
655         Enable common subexpression optimization in GCC.
656         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
657         (alphasort): Declare with GCC attribute 'pure'.
658         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
659         (atoll): Declare with GCC attribute 'pure'.
660         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
661         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
662         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
663         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
664         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
665         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
666         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
667
668 2012-03-24  Bruno Haible  <bruno@clisp.org>
669
670         gnulib-tool: Avoid unintended error output from 'cmp'.
671         * gnulib-tool (func_add_file, func_update_file, func_import): Use
672         "cmp -s", not "cmp > /dev/null".
673
674 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
675
676         gnulib-tool: fix imprecise comments w.r.t. an automake bug
677
678         It's not just Automake versions < 1.9b that creates an empty
679         pkgdatadir at installation time if pkgdata_DATA is specified
680         to empty; modern automake versions do this as well, at least
681         until automake 1.11.4 (not yet released at the moment of writing,
682         but soon to appear).  That behaviour was generally considered a
683         feature rather than a bug, at least until this discussion:
684         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
685
686         See also automake bugs #10997 and #11030.
687
688         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
689         reference to relevant automake bug numbers.
690         (func_emit_tests_Makefile_am): Likewise.
691
692 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
693
694         announce-gen: use Digest::SHA when possible
695         * build-aux/announce-gen: Use Digest::SHA when possible, falling
696         back to Digest::SHA1 if necessary.
697
698 2012-03-20  Jim Meyering  <meyering@redhat.com>
699
700         tests: avoid gcc warnings about argv vs. const initializers
701         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
702         warnings about discarding 'const' qualifier from pointer target type.
703         * tests/test-posix_spawn2.c (main): Likewise.
704
705 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
706
707         README-release: simplify slightly
708         * top/README-release: Run "git checkout master" only once.
709
710 2012-03-15  Mark Wielaard  <mark@klomp.org>
711
712         git-merge-changelog: add specific example on how to use with hg.
713         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
714
715 2012-03-18  Mark Wielaard  <mark@klomp.org>
716
717         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
718
719 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
720
721         git-version-gen: don't let "prefix" envvar cause trouble
722         * build-aux/git-version-gen (prefix): Initialize properly,
723         so as not to use a value specified via the environment.
724         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
725
726 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
727
728         regex: diagnose too-large repeat counts in EREs
729         Previously, the code did not diagnose the too-large repeat count
730         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
731         as if it were 'b\{1000000000}', which is unexpected.
732         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
733         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
734         is a reasonable one for this problem.  Another option would be to
735         create a new REG_OVERFLOW error for repeat counts that are too large.
736         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
737         count is too large, so that the caller can distinguish the two cases.
738         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
739         "Too large" return code, and that repeat counts are one example of this.
740
741 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
742
743         doc: some glibc x32 integer width issues
744         * doc/posix-headers/sys_types.texi (sys/types.h):
745         * doc/posix-headers/time.texi (time.h):
746         Mention that glibc x32 does not conform to POSIX in a couple of
747         areas related to integer widths.
748
749 2012-03-15  Bruno Haible  <bruno@clisp.org>
750
751         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
752         * lib/fma.c (VOLATILE): New macro.
753         (FUNC): Use it to work around a GCC compiler bug.
754
755 2012-03-13  Bruno Haible  <bruno@clisp.org>
756
757         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
758         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
759         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
760         REPLACE_HYPOTL to 1.
761         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
762
763 2012-03-13  Bruno Haible  <bruno@clisp.org>
764
765         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
766         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
767         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
768         REPLACE_REMAINDERL to 1.
769         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
770         bug.
771
772 2012-03-13  Bruno Haible  <bruno@clisp.org>
773
774         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
775         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
776         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
777         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
778         too big rounding errors.
779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
780         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
781         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
782         (Depends-on): Update conditions.
783         * tests/test-sqrtl.c (my_ldexpl): New function.
784         (main): Add test of a particular value.
785         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
786
787 2012-03-13  Pádraig Brady  <P@draigBrady.com>
788
789         doc: Update timer_* platform portability notes.
790         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
791         that always return ENOSYS.
792         * doc/posix-functions/timer_delete.texi: Likewise.
793         * doc/posix-functions/timer_gettime.texi: Likewise.
794         * doc/posix-functions/timer_settime.texi: Likewise.
795
796 2012-03-13  Bruno Haible  <bruno@clisp.org>
797
798         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
799         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
800         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
801         REPLACE_CBRTL to 1.
802         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
803
804 2012-03-13  Bruno Haible  <bruno@clisp.org>
805
806         remainderl: Avoid compilation error on AIX >= 5.2.
807         * lib/math.in.h (remainderl): Undefine macro from the system header.
808
809 2012-03-13  Bruno Haible  <bruno@clisp.org>
810
811         Avoid compilation errors with MSVC option -fp:strict.
812         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
813         * lib/cbrtf.c: Likewise.
814         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
815
816 2012-03-12  Bruno Haible  <bruno@clisp.org>
817
818         uninorm: Don't crash in out-of-memory conditions.
819         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
820         gracefully.
821         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
822         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
823
824 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
825
826         quote: fix syntax-check
827         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
828         also exports quote_quoting_options.
829
830 2012-03-12  Simon Josefsson  <simon@josefsson.org>
831
832         Collapse list of copyright years to ranges.  See
833         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
834         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
835         build-aux/csharpexec.sh.in, build-aux/gnupload,
836         build-aux/install-reloc, build-aux/javacomp.sh.in,
837         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
838         build-aux/move-if-change, build-aux/reloc-ldflags,
839         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
840
841 2012-03-11  Bruno Haible  <bruno@clisp.org>
842
843         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
844         * m4/log2f-ieee.m4: New file.
845         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
846         whether log2f works with a minus zero argument. Replace it if not.
847         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
848         (Depends-on): Add log2-ieee.
849         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
850         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
851
852         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
853         * m4/log2-ieee.m4: New file.
854         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
855         whether log2 works with a minus zero argument. Replace it if not.
856         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
857         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
858         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
859
860         Tests for module 'log2l-ieee'.
861         * modules/log2l-ieee-tests: New file.
862         * tests/test-log2l-ieee.c: New file.
863
864         New module 'log2l-ieee'.
865         * modules/log2l-ieee: New file.
866
867         Tests for module 'log2-ieee'.
868         * modules/log2-ieee-tests: New file.
869         * tests/test-log2-ieee.c: New file.
870
871         New module 'log2-ieee'.
872         * modules/log2-ieee: New file.
873
874         Tests for module 'log2f-ieee'.
875         * modules/log2f-ieee-tests: New file.
876         * tests/test-log2f-ieee.c: New file.
877         * tests/test-log2-ieee.h: New file.
878
879         New module 'log2f-ieee'.
880         * modules/log2f-ieee: New file.
881
882 2012-03-11  Bruno Haible  <bruno@clisp.org>
883
884         Tests for module 'log2l'.
885         * modules/log2l-tests: New file.
886         * tests/test-log2l.c: New file.
887
888         New module 'log2l'.
889         * lib/math.in.h (log2l): New declaration.
890         * lib/log2l.c: New file.
891         * m4/log2l.m4: New file.
892         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
894         REPLACE_LOG2L.
895         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
896         REPLACE_LOG2L.
897         * modules/log2l: New file.
898         * tests/test-math-c++.cc: Check the declaration of log2l.
899         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
900         and OSF/1 problems.
901
902 2012-03-11  Bruno Haible  <bruno@clisp.org>
903
904         Tests for module 'log2f'.
905         * modules/log2f-tests: New file.
906         * tests/test-log2f.c: New file.
907
908         New module 'log2f'.
909         * lib/math.in.h (log2f): New declaration.
910         * lib/log2f.c: New file.
911         * m4/log2f.m4: New file.
912         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
914         REPLACE_LOG2F.
915         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
916         REPLACE_LOG2F.
917         * modules/log2f: New file.
918         * tests/test-math-c++.cc: Check the declaration of log2f.
919         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
920         and OSF/1 and Cygwin problems.
921
922 2012-03-11  Bruno Haible  <bruno@clisp.org>
923
924         Tests for module 'log2'.
925         * modules/log2-tests: New file.
926         * tests/test-log2.c: New file.
927         * tests/test-log2.h: New file.
928
929         New module 'log2'.
930         * lib/math.in.h (log2): New declaration.
931         * lib/log2.c: New file.
932         * m4/log2.m4: New file.
933         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
935         REPLACE_LOG2.
936         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
937         REPLACE_LOG2.
938         * modules/log2: New file.
939         * tests/test-math-c++.cc: Check the declaration of log2.
940         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
941         and OSF/1 and Cygwin problems.
942
943 2012-03-11  Bruno Haible  <bruno@clisp.org>
944
945         exp2* tests: More tests.
946         * tests/test-exp2.h (test_function): Test all integral arguments that
947         don't need to overflow or denormalized numbers.
948         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
949         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
950         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
951
952 2012-03-10  Bruno Haible  <bruno@clisp.org>
953
954         log1pl-ieee: Work around test failure on AIX 7.1.
955         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
956
957         log1pl-ieee: Work around test failure on IRIX 6.5.
958         * m4/log1pl-ieee.m4: New file.
959         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
960         test whether log1pl works with a minus zero argument. Replace it if
961         not.
962         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
964         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
965         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
966         (Depends-on): Update conditions.
967         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
968         m4/signbit.m4.
969         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
970         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
971
972         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
973         * m4/log1pf-ieee.m4: New file.
974         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
975         test whether log1pf works with a minus zero argument. Replace it if
976         not.
977         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
978         m4/signbit.m4.
979         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
980         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
981
982         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
983         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
984         (configure.ac): Require gl_FUNC_LOG1PF.
985
986         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
987         * m4/log1p-ieee.m4: New file.
988         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
989         whether log1p works with a minus zero argument. Replace it if not.
990         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
992         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
993         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
994         (Depends-on): Update conditions.
995         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
996         m4/signbit.m4.
997         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
998         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
999
1000         Tests for module 'log1pl-ieee'.
1001         * modules/log1pl-ieee-tests: New file.
1002         * tests/test-log1pl-ieee.c: New file.
1003
1004         New module 'log1pl-ieee'.
1005         * modules/log1pl-ieee: New file.
1006
1007         Tests for module 'log1p-ieee'.
1008         * modules/log1p-ieee-tests: New file.
1009         * tests/test-log1p-ieee.c: New file.
1010
1011         New module 'log1p-ieee'.
1012         * modules/log1p-ieee: New file.
1013
1014         Tests for module 'log1pf-ieee'.
1015         * modules/log1pf-ieee-tests: New file.
1016         * tests/test-log1pf-ieee.c: New file.
1017         * tests/test-log1p-ieee.h: New file.
1018
1019         New module 'log1pf-ieee'.
1020         * modules/log1pf-ieee: New file.
1021
1022 2012-03-10  Bruno Haible  <bruno@clisp.org>
1023
1024         Tests for module 'log1pl'.
1025         * modules/log1pl-tests: New file.
1026         * tests/test-log1pl.c: New file.
1027
1028         New module 'log1pl'.
1029         * lib/math.in.h (log1pl): New declaration.
1030         * lib/log1pl.c: New file.
1031         * m4/log1pl.m4: New file.
1032         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1034         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1035         * modules/log1pl: New file.
1036         * tests/test-math-c++.cc: Check the declaration of log1pl.
1037         * doc/posix-functions/log1pl.texi: Mention the new module.
1038
1039 2012-03-10  Bruno Haible  <bruno@clisp.org>
1040
1041         Tests for module 'log1pf'.
1042         * modules/log1pf-tests: New file.
1043         * tests/test-log1pf.c: New file.
1044
1045         New module 'log1pf'.
1046         * lib/math.in.h (log1pf): New declaration.
1047         * lib/log1pf.c: New file.
1048         * m4/log1pf.m4: New file.
1049         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1051         REPLACE_LOG1PF.
1052         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1053         REPLACE_LOG1PF.
1054         * modules/log1pf: New file.
1055         * tests/test-math-c++.cc: Check the declaration of log1pf.
1056         * doc/posix-functions/log1pf.texi: Mention the new module.
1057
1058 2012-03-10  Bruno Haible  <bruno@clisp.org>
1059
1060         log1p tests: More tests.
1061         * tests/test-log1p.h: New file.
1062         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1063         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1064         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1065         (main): Invoke test_function.
1066
1067         log1p: Provide replacement for Minix and MSVC.
1068         * lib/math.in.h (log1p): New declaration.
1069         * lib/log1p.c: New file.
1070         * m4/log1p.m4: New file.
1071         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1073         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1074         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1075         (Depends-on): Add math, isnand, log, round.
1076         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1077         HAVE_LOG1P is 0.
1078         * tests/test-math-c++.cc: Check the declaration of log1p.
1079         * doc/posix-functions/log1p.texi: Mention the replacement.
1080
1081 2012-03-10  Bruno Haible  <bruno@clisp.org>
1082
1083         math tests: Small simplification.
1084         * tests/test-exp.h (test_function): Use the same err_bound for
1085         'double' on platforms with sizeof (long double) == sizeof (double)
1086         than on platforms with sizeof (long double) > sizeof (double).
1087         * tests/test-exp2.h (test_function): Likewise.
1088         * tests/test-expm1.h (test_function): Likewise.
1089         * tests/test-log.h (test_function): Likewise.
1090
1091 2012-03-10  Bruno Haible  <bruno@clisp.org>
1092
1093         Fix some comments.
1094         * lib/expl.c: Fix an ambiguous comment.
1095         * lib/expm1.c: Likewise.
1096         * lib/expm1l.c: Likewise.
1097         * lib/exp2.c: Likewise.
1098         * lib/exp2l.c: Likewise.
1099
1100 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         regex: allow inclusion of <regex.h> before <limits.h>
1103         Without this patch, portable programs had to include <limits.h> before
1104         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1105         I ran into this problem with a test version of GNU grep on Solaris 8.
1106         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1107         This is done conditionally so that this change can be merged
1108         back to glibc.
1109         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1110         using the included regex.
1111
1112         fts: depend on fdopendir
1113         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1114         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1115         problem was introduced when fdopendir was split out.
1116
1117 2012-03-10  Bruno Haible  <bruno@clisp.org>
1118
1119         Remove unused variables.
1120         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1121         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1122
1123 2012-03-10  Bruno Haible  <bruno@clisp.org>
1124
1125         isnanf-nolibm: Fix last commit.
1126         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1127
1128         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1129         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1130
1131 2012-03-10  Bruno Haible  <bruno@clisp.org>
1132
1133         logf-ieee: Work around test failure on NetBSD 5.1.
1134         * m4/logf-ieee.m4: New file.
1135         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1136         whether logf works with a negative argument. Replace it if not.
1137         * lib/logf.c (logf): For negative arguments, return NaN.
1138         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1139         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1140         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1141
1142         logf-ieee: Work around test failure on Solaris 9.
1143         * modules/logf-ieee (Depends-on): Add log-ieee.
1144         (configure.ac): Require gl_FUNC_LOGF.
1145
1146         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1147         * m4/log-ieee.m4: New file.
1148         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1149         log works with a negative argument. Replace it if not.
1150         * lib/log.c (log): For negative arguments, return NaN.
1151         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1152         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1153         * doc/posix-functions/log.texi: Mention the log-ieee module.
1154
1155         Tests for module 'logl-ieee'.
1156         * modules/logl-ieee-tests: New file.
1157         * tests/test-logl-ieee.c: New file.
1158
1159         New module 'logl-ieee'.
1160         * modules/logl-ieee: New file.
1161
1162         Tests for module 'log-ieee'.
1163         * modules/log-ieee-tests: New file.
1164         * tests/test-log-ieee.c: New file.
1165
1166         New module 'log-ieee'.
1167         * modules/log-ieee: New file.
1168
1169         Tests for module 'logf-ieee'.
1170         * modules/logf-ieee-tests: New file.
1171         * tests/test-logf-ieee.c: New file.
1172         * tests/test-log-ieee.h: New file.
1173
1174         New module 'logf-ieee'.
1175         * modules/logf-ieee: New file.
1176
1177 2012-03-10  Bruno Haible  <bruno@clisp.org>
1178
1179         log: Fix bug introduced on 2012-03-09.
1180         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1181
1182 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1183
1184         timer-time: link explicitly with pthreads on glibc
1185         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1186         to support static linking, when newer glibc is
1187         detected, as that contains pthread emulation of
1188         POSIX timer functions where required.
1189         * modules/timer-time: Depend on threadlib to
1190         pull in the appropriate library to link.
1191
1192 2012-03-10  Bruno Haible  <bruno@clisp.org>
1193
1194         log* tests: More tests.
1195         * tests/test-log.h: New file.
1196         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1197         (main): Invoke test_function.
1198         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1199         (main): Invoke test_function.
1200         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1201         (main): Invoke test_function.
1202         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1203         tests/randomd.c.
1204         (Makefile.am): Add randomd.c to test_log_SOURCES.
1205         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1206         tests/randomf.c.
1207         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1208         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1209         tests/randoml.c.
1210         (Depends-on): Add 'float'.
1211         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1212
1213 2012-03-09  Bruno Haible  <bruno@clisp.org>
1214
1215         logl: Work around OSF/1 5.1 bug.
1216         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1217         * lib/logl.c (logl): If logl exists, use it and provide just the
1218         workaround.
1219         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1220         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1222         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1223         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1224         (Depends-on): Update conditions.
1225         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1226
1227 2012-03-09  Bruno Haible  <bruno@clisp.org>
1228
1229         logf: Work around OSF/1 5.1 bug.
1230         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1231         * lib/logf.c (logf): If logf exists, use it and provide just the
1232         workaround.
1233         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1234         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1236         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1237         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1238         (Depends-on): Update conditions.
1239         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1240
1241 2012-03-09  Bruno Haible  <bruno@clisp.org>
1242
1243         log: Work around OSF/1 5.1 bug.
1244         * lib/math.in.h (log): New declaration.
1245         * lib/log.c: New file.
1246         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1247         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1248         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1250         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1251         * modules/log (Files): Add lib/log.c.
1252         (Depends-on): Add math.
1253         (configure.ac): If REPLACE_LOG is 1, compile an override.
1254         * tests/test-math-c++.cc: Check the declaration of log.
1255         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1256
1257 2012-03-09  Jim Meyering  <meyering@redhat.com>
1258
1259         readtokens.c: adjust wording in a comment
1260         * lib/readtokens.c: Insert omitted "that" in a comment.
1261
1262 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1263
1264         modechange: add notations +40, 00440, etc.
1265         * lib/modechange.c (mode_compile): Support new notations
1266         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1267
1268 2012-03-08  Bruno Haible  <bruno@clisp.org>
1269
1270         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1271         * m4/exp2l-ieee.m4: New file.
1272         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1273         test whether exp2l works with a NaN argument and with a negative
1274         infinity argument. Replace it if not.
1275         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1277         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1278         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1279         (Depends-on): Update conditions.
1280         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1281         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1282         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1283
1284         Tests for module 'exp2l-ieee'.
1285         * modules/exp2l-ieee-tests: New file.
1286         * tests/test-exp2l-ieee.c: New file.
1287
1288         New module 'exp2l-ieee'.
1289         * modules/exp2l-ieee: New file.
1290
1291         Tests for module 'exp2-ieee'.
1292         * modules/exp2-ieee-tests: New file.
1293         * tests/test-exp2-ieee.c: New file.
1294
1295         New module 'exp2-ieee'.
1296         * modules/exp2-ieee: New file.
1297
1298         Tests for module 'exp2f-ieee'.
1299         * modules/exp2f-ieee-tests: New file.
1300         * tests/test-exp2f-ieee.c: New file.
1301         * tests/test-exp2-ieee.h: New file.
1302
1303         New module 'exp2f-ieee'.
1304         * modules/exp2f-ieee: New file.
1305
1306 2012-03-08  Bruno Haible  <bruno@clisp.org>
1307
1308         Tests for module 'exp2l'.
1309         * modules/exp2l-tests: New file.
1310         * tests/test-exp2l.c: New file.
1311
1312         New module 'exp2l'.
1313         * lib/math.in.h (exp2l): New declaration.
1314         * lib/exp2l.c: New file.
1315         * lib/expl-table.c: New file, extracted from lib/expl.c.
1316         * lib/expl.c (gl_expl_table): New declaration.
1317         (expl): Remove expl_table. Update reference.
1318         * m4/exp2l.m4: New file.
1319         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1321         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1322         * modules/exp2l: New file.
1323         * modules/expl (Files): Add lib/expl-table.c.
1324         (configure.ac): Compile also expl-table.c.
1325         * tests/test-math-c++.cc: Check the declaration of exp2l.
1326         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1327         problem.
1328
1329 2012-03-08  Bruno Haible  <bruno@clisp.org>
1330
1331         Tests for module 'exp2f'.
1332         * modules/exp2f-tests: New file.
1333         * tests/test-exp2f.c: New file.
1334
1335         New module 'exp2f'.
1336         * lib/math.in.h (exp2f): New declaration.
1337         * lib/exp2f.c: New file.
1338         * m4/exp2f.m4: New file.
1339         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1341         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1342         * modules/exp2f: New file.
1343         * tests/test-math-c++.cc: Check the declaration of exp2f.
1344         * doc/posix-functions/exp2f.texi: Mention the new module and the
1345         IRIX problem.
1346
1347 2012-03-08  Bruno Haible  <bruno@clisp.org>
1348
1349         Tests for module 'exp2'.
1350         * modules/exp2-tests: New file.
1351         * tests/test-exp2.c: New file.
1352         * tests/test-exp2.h: New file.
1353
1354         New module 'exp2'.
1355         * lib/math.in.h (exp2): New declaration.
1356         * lib/exp2.c: New file.
1357         * m4/exp2.m4: New file.
1358         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1360         REPLACE_EXP2.
1361         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1362         REPLACE_EXP2.
1363         * modules/exp2: New file.
1364         * tests/test-math-c++.cc: Check the declaration of exp2.
1365         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1366         and OpenBSD problems.
1367
1368 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1369
1370         savedir: fix comment typo
1371         * lib/savedir.c (savedirstream): Fix typo in comment.
1372
1373 2012-03-08  Bruno Haible  <bruno@clisp.org>
1374
1375         test-readtokens.c: use const; remove unwarranted cast
1376         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1377
1378 2012-03-08  Bruno Haible  <bruno@clisp.org>
1379
1380         fmal: Avoid compilation error on AIX.
1381         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1382         AIX 5.2..7.1.
1383
1384 2012-03-08  Bruno Haible  <bruno@clisp.org>
1385
1386         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1387         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1388         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1389         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1390         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1391         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1392         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1393
1394 2012-03-08  Bruno Haible  <bruno@clisp.org>
1395
1396         remainderf: Override buggy system function on IRIX 6.5.
1397         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1398         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1399         when it exists.
1400         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1401
1402 2012-03-08  Jim Meyering  <meyering@redhat.com>
1403
1404         test-readtokens.c: avoid const-related compilation warnings
1405         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1406
1407 2012-03-07  Jim Meyering  <meyering@redhat.com>
1408             Bruno Haible  <bruno@clisp.org>
1409
1410         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1411         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1412         tests/randomd.c.
1413         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1414         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1415         tests/randoml.c.
1416         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1417
1418 2012-03-07  Bruno Haible  <bruno@clisp.org>
1419
1420         expm1l: Avoid compilation error on AIX.
1421         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1422         AIX 5.2..7.1.
1423
1424 2012-03-07  Bruno Haible  <bruno@clisp.org>
1425
1426         expm1l: Don't override undeclared system function on IRIX 6.5.
1427         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1428         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1429         it exists. Set HAVE_DECL_EXPM1L.
1430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1431         HAVE_EXPM1L.
1432         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1433         HAVE_EXPM1L.
1434         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1435
1436 2012-03-07  Bruno Haible  <bruno@clisp.org>
1437
1438         remainderl: Don't override undeclared system function on IRIX 6.5.
1439         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1440         HAVE_REMAINDERL.
1441         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1442         declared when it exists. Set HAVE_DECL_REMAINDERL.
1443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1444         not HAVE_REMAINDERL.
1445         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1446         HAVE_REMAINDERL.
1447         * doc/posix-functions/remainderl.texi: Mention missing declaration
1448         problem.
1449
1450 2012-03-07  Bruno Haible  <bruno@clisp.org>
1451
1452         rintf: Don't override undeclared system function on IRIX 6.5.
1453         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1454         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1455         exists. Set HAVE_DECL_RINTF.
1456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1457         HAVE_RINTF.
1458         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1459         HAVE_RINTF.
1460         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1461
1462 2012-03-07  Bruno Haible  <bruno@clisp.org>
1463
1464         roundl: Avoid compilation error on AIX.
1465         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1466         AIX 5.2..7.1.
1467
1468 2012-03-07  Bruno Haible  <bruno@clisp.org>
1469
1470         roundl: Don't override undeclared system function on IRIX 6.5.
1471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1472         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1473         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1474         * modules/roundl (configure.ac): For replacement code, test
1475         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1476         (Depends-on): Update conditions.
1477         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1478
1479 2012-03-07  Bruno Haible  <bruno@clisp.org>
1480
1481         roundf: Don't override undeclared system function on IRIX 6.5.
1482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1483         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1484         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1485         * modules/roundf (configure.ac): For replacement code, test
1486         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1487         (Depends-on): Update conditions.
1488         * modules/roundf-ieee (Depends-on): Update conditions.
1489         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1490
1491 2012-03-07  Bruno Haible  <bruno@clisp.org>
1492
1493         round: Don't override undeclared system function on IRIX 6.5.
1494         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1495         argument.
1496         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1497         also when it is not declared. Set HAVE_ROUND. For replacement code,
1498         test HAVE_ROUND, not HAVE_DECL_ROUND.
1499         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1500         not HAVE_DECL_ROUND.
1501         (Depends-on): Update conditions.
1502         * modules/round-ieee (Depends-on): Update conditions.
1503         * doc/posix-functions/round.texi: Mention the IRIX problem.
1504
1505 2012-03-07  Bruno Haible  <bruno@clisp.org>
1506
1507         copysignf: Don't override undeclared system function on IRIX 6.5.
1508         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1509         HAVE_COPYSIGNF.
1510         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1511         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1513         not HAVE_COPYSIGNF.
1514         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1515         HAVE_COPYSIGNF.
1516         * doc/posix-functions/copysignf.texi: Mention missing declaration
1517         problem.
1518
1519 2012-03-07  Jim Meyering  <meyering@redhat.com>
1520
1521         readtokens: add tests
1522         * modules/readtokens-tests: New file.
1523         * tests/test-readtokens.c: New file.
1524
1525 2012-03-07  Jim Meyering  <meyering@redhat.com>
1526
1527         quotearg: the module must now include quote.h
1528         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1529         So must the module.
1530         * modules/quotearg (Files): Add quote.h.
1531
1532 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1533
1534         readtokens: avoid core dumps with unusual calling patterns
1535         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1536         * lib/readtokens.c: Include limits.h.
1537         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1538         (readtoken): Don't cache the delimiters; the cache code was buggy
1539         if !delim && saved_delim, or if the new n_delim differs from the old.
1540         Also, it wasn't thread-safe.
1541
1542 2012-03-07  Bruno Haible  <bruno@clisp.org>
1543
1544         quote: Adhere to common module description layout.
1545         * modules/quote (Makefile.am): Add back empty section.
1546
1547 2012-03-06  Akim Demaille  <demaille@gostai.com>
1548
1549         quote: fuse into quotearg
1550         This patch is made for the benefit of Bison.
1551         quote does not leave the choice of the quoting style to the user.
1552         quoting_style provides poor customizability, yet quoting_options,
1553         which is very rich, is hidden inside quotearg.c.  So in order to
1554         allow quote customization, move its implementation to quotearg.c.
1555         * lib/quote.c: Remove.
1556         * modules/quote: Adjust.
1557         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1558         warning: provide all the members of literal structs.
1559         (quote_quoting_options): New.
1560         (quote, quote_n): Import implementation from quote.c.
1561         * lib/quote.h: Import the comments from quote.c.
1562         (quote_quoting_options): New.
1563
1564 2012-03-06  Bruno Haible  <bruno@clisp.org>
1565
1566         Tests for module 'expm1l-ieee'.
1567         * modules/expm1l-ieee-tests: New file.
1568         * tests/test-expm1l-ieee.c: New file.
1569
1570         New module 'expm1l-ieee'.
1571         * modules/expm1l-ieee: New file.
1572
1573         Tests for module 'expm1f-ieee'.
1574         * modules/expm1f-ieee-tests: New file.
1575         * tests/test-expm1f-ieee.c: New file.
1576
1577         New module 'expm1f-ieee'.
1578         * modules/expm1f-ieee: New file.
1579
1580         Tests for module 'expm1-ieee'.
1581         * modules/expm1-ieee-tests: New file.
1582         * tests/test-expm1-ieee.c: New file.
1583         * tests/test-expm1-ieee.h: New file.
1584
1585         New module 'expm1-ieee'.
1586         * modules/expm1-ieee: New file.
1587         * m4/expm1-ieee.m4: New file.
1588         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1589         whether expm1 works with a minus zero argument. Replace it if not.
1590         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1592         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1593         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1594         (Depends-on): Update conditions.
1595         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1596         AIX problem.
1597
1598 2012-03-06  Bruno Haible  <bruno@clisp.org>
1599
1600         Work around expm1f bug on IRIX 6.5.
1601         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1602         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1603         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1604         not work.
1605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1606         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1607         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1608         (Depends-on): Update conditions.
1609         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1610
1611 2012-03-06  Bruno Haible  <bruno@clisp.org>
1612
1613         Tests for module 'expm1l'.
1614         * modules/expm1l-tests: New file.
1615         * tests/test-expm1l.c: New file.
1616
1617         New module 'expm1l'.
1618         * lib/math.in.h (expm1l): New declaration.
1619         * lib/expm1l.c: New file.
1620         * m4/expm1l.m4: New file.
1621         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1623         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1624         * modules/expm1l: New file.
1625         * tests/test-math-c++.cc: Check the declaration of expm1l.
1626         * doc/posix-functions/expm1l.texi: Mention the new module.
1627
1628 2012-03-06  Bruno Haible  <bruno@clisp.org>
1629
1630         Tests for module 'expm1f'.
1631         * modules/expm1f-tests: New file.
1632         * tests/test-expm1f.c: New file.
1633
1634         New module 'expm1f'.
1635         * lib/math.in.h (expm1f): New declaration.
1636         * lib/expm1f.c: New file.
1637         * m4/expm1f.m4: New file.
1638         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1640         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1641         * modules/expm1f: New file.
1642         * tests/test-math-c++.cc: Check the declaration of expm1f.
1643         * doc/posix-functions/expm1f.texi: Mention the new module.
1644
1645 2012-03-06  Bruno Haible  <bruno@clisp.org>
1646
1647         Tests for module 'expm1'.
1648         * modules/expm1-tests: New file.
1649         * tests/test-expm1.c: New file.
1650         * tests/test-expm1.h: New file.
1651
1652         New module 'expm1'.
1653         * lib/math.in.h (expm1): New declaration.
1654         * lib/expm1.c: New file.
1655         * m4/expm1.m4: New file.
1656         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1658         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1659         * modules/expm1: New file.
1660         * tests/test-math-c++.cc: Check the declaration of expm1.
1661         * doc/posix-functions/expm1.texi: Mention the new module.
1662
1663 2012-03-06  Bruno Haible  <bruno@clisp.org>
1664
1665         math: Ensure declarations of math functions.
1666         * modules/acosf (Depends-on): Add 'extensions'.
1667         * modules/asinf (Depends-on): Likewise.
1668         * modules/atan2f (Depends-on): Likewise.
1669         * modules/atanf (Depends-on): Likewise.
1670         * modules/cbrt (Depends-on): Likewise.
1671         * modules/cbrtf (Depends-on): Likewise.
1672         * modules/cbrtl (Depends-on): Likewise.
1673         * modules/copysignf (Depends-on): Likewise.
1674         * modules/copysignl (Depends-on): Likewise.
1675         * modules/cosf (Depends-on): Likewise.
1676         * modules/coshf (Depends-on): Likewise.
1677         * modules/expf (Depends-on): Likewise.
1678         * modules/fabsf (Depends-on): Likewise.
1679         * modules/fabsl (Depends-on): Likewise.
1680         * modules/fmaf (Depends-on): Likewise.
1681         * modules/fmal (Depends-on): Likewise.
1682         * modules/fmodf (Depends-on): Likewise.
1683         * modules/fmodl (Depends-on): Likewise.
1684         * modules/frexpf (Depends-on): Likewise.
1685         * modules/frexpl (Depends-on): Likewise.
1686         * modules/hypot (Depends-on): Likewise.
1687         * modules/hypotf (Depends-on): Likewise.
1688         * modules/hypotl (Depends-on): Likewise.
1689         * modules/ldexpf (Depends-on): Likewise.
1690         * modules/ldexpl (Depends-on): Likewise.
1691         * modules/log10f (Depends-on): Likewise.
1692         * modules/log10l (Depends-on): Likewise.
1693         * modules/log1p (Depends-on): Likewise.
1694         * modules/logb (Depends-on): Likewise.
1695         * modules/logf (Depends-on): Likewise.
1696         * modules/modff (Depends-on): Likewise.
1697         * modules/modfl (Depends-on): Likewise.
1698         * modules/powf (Depends-on): Likewise.
1699         * modules/remainderf (Depends-on): Likewise.
1700         * modules/remainderl (Depends-on): Likewise.
1701         * modules/rintf (Depends-on): Likewise.
1702         * modules/rintl (Depends-on): Likewise.
1703         * modules/sinf (Depends-on): Likewise.
1704         * modules/sinhf (Depends-on): Likewise.
1705         * modules/sqrtf (Depends-on): Likewise.
1706         * modules/tanf (Depends-on): Likewise.
1707         * modules/tanhf (Depends-on): Likewise.
1708         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1709         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1710         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1711         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1712         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1713         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1714         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1715         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1716         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1717         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1718         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1719         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1720         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1721         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1722         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1723         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1724         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1725         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1726         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1728         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1729         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1730         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1731         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1733         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1734         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1735         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1736         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1737         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1738         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1739         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1740         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1741         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1742         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1743         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1744         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1745         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1746         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1747         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1748         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1749
1750 2012-03-06  Bruno Haible  <bruno@clisp.org>
1751
1752         math: Update module names in warnings.
1753         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1754         tanl): Use specific module name in warn-on-use warning.
1755
1756 2012-03-06  Bruno Haible  <bruno@clisp.org>
1757
1758         expl: Simplify computation.
1759         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1760
1761 2012-03-05  Bruno Haible  <bruno@clisp.org>
1762
1763         exp* tests: More tests.
1764         * tests/test-exp.h: New file.
1765         * tests/test-exp.c: Include <float.h> and test-exp.h.
1766         (main): Invoke test_function.
1767         * tests/test-expf.c: Include <float.h> and test-exp.h.
1768         (main): Invoke test_function.
1769         * tests/test-expl.c: Include <float.h> and test-exp.h.
1770         (main): Invoke test_function.
1771         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1772         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1773         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1774         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1775         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1776         (Depends-on): Add 'float'.
1777         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1778
1779         expl: Fix precision of computed result.
1780         * lib/expl.c: Completely rewritten.
1781         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1782         (Maintainer): Add me.
1783         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1784
1785 2012-03-05  Bruno Haible  <bruno@clisp.org>
1786
1787         cbrt* tests: More tests.
1788         * tests/test-cbrt.h: New file.
1789         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1790         (main): Invoke test_function.
1791         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1792         (main): Invoke test_function.
1793         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1794         (main): Invoke test_function.
1795         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1796         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1797         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1798         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1799         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1800         (Depends-on): Add 'float'.
1801         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1802
1803 2012-03-05  Bruno Haible  <bruno@clisp.org>
1804
1805         hypot* tests: More tests.
1806         * tests/test-hypot.h: New file, partially extracted from
1807         tests/test-hypotl.c.
1808         * tests/test-hypot.c: Include test-hypot.h.
1809         (main): Invoke test_function.
1810         * tests/test-hypotf.c: Include test-hypot.h.
1811         (main): Invoke test_function.
1812         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1813         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1814         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1815         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1816         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1817         tests/randomf.c.
1818         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1819         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1820         tests/randoml.c.
1821         (Depends-on): Add 'fpucw', 'float'.
1822         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1823
1824 2012-03-05  Bruno Haible  <bruno@clisp.org>
1825
1826         fpucw: Doc about FreeBSD.
1827         * lib/fpucw.h: Mention FreeBSD in comments.
1828
1829 2012-03-04  Bruno Haible  <bruno@clisp.org>
1830
1831         sqrt* tests: More tests.
1832         * tests/test-sqrt.h: New file.
1833         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1834         (main): Invoke test_function.
1835         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1836         (main): Invoke test_function.
1837         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1838         (main): Invoke test_function.
1839         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1840         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1841         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1842         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1843         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1844         (Depends-on): Add 'float'.
1845         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1846
1847 2012-03-04  Bruno Haible  <bruno@clisp.org>
1848
1849         remainder* tests: More tests.
1850         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1851         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1852         (main): Invoke test_function.
1853         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1854         (main): Invoke test_function.
1855         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1856         (main): Invoke test_function.
1857         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1858         tests/randomd.c.
1859         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1860         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1861         tests/randomf.c.
1862         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1863         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1864         tests/randoml.c.
1865         (Depends-on): Add 'float'.
1866         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1867
1868 2012-03-04  Bruno Haible  <bruno@clisp.org>
1869
1870         remainder, remainderf, remainderl: Fix computation for large quotients.
1871         * lib/remainder.c: Completely rewritten.
1872         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1873         USE_FLOAT.
1874         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1875         USE_LONG_DOUBLE.
1876         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1877         isnand, isinf. Remove round, fma.
1878         * modules/remainderf (Files): Add lib/remainder.c.
1879         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1880         Remove roundf, fmaf.
1881         * modules/remainderl (Files): Add lib/remainder.c.
1882         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1883         isinf. Remove roundl, fmal.
1884         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1885         REMAINDER_LIBM.
1886         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1887         REMAINDERF_LIBM.
1888         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1889         REMAINDERL_LIBM.
1890
1891 2012-03-04  Bruno Haible  <bruno@clisp.org>
1892
1893         fmod* tests: More tests.
1894         * tests/test-fmod.h (my_ldexp): New function.
1895         (test_function): Reduce amount of random numbers to test. Add tests
1896         of very large quotients x / y.
1897         * tests/test-fmod.c (MAX_EXP): New macro.
1898         * tests/test-fmodf.c (MAX_EXP): Likewise.
1899         * tests/test-fmodl.c (MAX_EXP): Likewise.
1900
1901 2012-03-04  Bruno Haible  <bruno@clisp.org>
1902
1903         fmod, fmodl: Fix computation for large quotients x / y.
1904         * lib/fmod.c: Completely rewritten.
1905         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1906         USE_LONG_DOUBLE.
1907         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1908         isnand. Remove fma.
1909         * modules/fmodl (Files): Add lib/fmod.c.
1910         (Depends-on): Add float, isfinite, signbit, fabsl,
1911         frexpl, ldexpl, isnanl. Remove fma.
1912         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1913         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1914
1915 2012-03-03  Bruno Haible  <bruno@clisp.org>
1916
1917         fmod* tests: More tests.
1918         * tests/test-fmod.h: New file.
1919         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1920         (main): Invoke test_function.
1921         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1922         (main): Invoke test_function.
1923         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1924         (main): Invoke test_function.
1925         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1926         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1927         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1928         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1929         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1930         (Depends-on): Add 'float'.
1931         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1932
1933 2012-03-03  Bruno Haible  <bruno@clisp.org>
1934
1935         rint* tests: More tests.
1936         * tests/test-rint.h: New file, partially extracted from
1937         tests/test-rintl.c.
1938         * tests/test-rint.c: Include test-rint.h.
1939         (main): Invoke test_function.
1940         * tests/test-rintf.c: Include test-rint.h.
1941         (main): Invoke test_function.
1942         * tests/test-rintl.c: Include test-rint.h.
1943         (main): Invoke test_function.
1944         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1945         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1946         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1947         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1948         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1949         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1950
1951 2012-03-03  Bruno Haible  <bruno@clisp.org>
1952
1953         modf* tests: More tests.
1954         * tests/test-modf.h: New file.
1955         * tests/test-modf.c: Include <float.h> and test-modf.h.
1956         (main): Invoke test_function.
1957         * tests/test-modff.c: Include <float.h> and test-modf.h.
1958         (main): Invoke test_function.
1959         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1960         (main): Invoke test_function.
1961         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1962         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1963         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1964         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1965         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1966         (Depends-on): Add 'float'.
1967         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1968
1969 2012-03-03  Bruno Haible  <bruno@clisp.org>
1970
1971         fabs* tests: More tests.
1972         * tests/test-fabs.h: New file, partially extracted from
1973         tests/test-fabsl.c.
1974         * tests/test-fabs.c (RANDOM): New macro.
1975         * tests/test-fabsf.c (RANDOM): New macro.
1976         * tests/test-fabsl.c (RANDOM): New macro.
1977         * modules/fabs-tests (Files): Add tests/randomd.c.
1978         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1979         * modules/fabsf-tests (Files): Add tests/randomf.c.
1980         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1981         * modules/fabsl-tests (Files): Add tests/randoml.c.
1982         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1983
1984 2012-03-03  Bruno Haible  <bruno@clisp.org>
1985
1986         ldexp* tests: More tests.
1987         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1988         * tests/test-ldexp.c (RANDOM): New macro.
1989         * tests/test-ldexpf.c (RANDOM): New macro.
1990         * tests/test-ldexpl.c (RANDOM): New macro.
1991         * modules/ldexp-tests (Files): Add tests/randomd.c.
1992         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1993         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1994         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1995         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1996         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1997
1998 2012-03-03  Bruno Haible  <bruno@clisp.org>
1999
2000         frexp* tests: More tests.
2001         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2002         * tests/test-frexp.c (RANDOM): New macro.
2003         * tests/test-frexpf.c (RANDOM): New macro.
2004         * tests/test-frexpl.c (RANDOM): New macro.
2005         * modules/frexp-tests (Files): Add tests/randomd.c.
2006         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2007         * modules/frexpf-tests (Files): Add tests/randomf.c.
2008         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2009         * modules/frexpl-tests (Files): Add tests/randoml.c.
2010         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2011
2012 2012-03-03  Bruno Haible  <bruno@clisp.org>
2013
2014         Support for pseudo-random numbers in tests.
2015         * tests/randomf.c: New file.
2016         * tests/randomd.c: New file.
2017         * tests/randoml.c: New file.
2018         * tests/macros.h (randomf, randomd, randoml): New declarations.
2019
2020 2012-03-03  Bruno Haible  <bruno@clisp.org>
2021
2022         frexp* tests: Refactor.
2023         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2024         * tests/test-frexp.c: Include and use it.
2025         * tests/test-frexpf.c: Likewise.
2026         * tests/test-frexpl.c: Likewise.
2027         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2028         * modules/frexpf-tests (Files): Likewise.
2029         * modules/frexpl-tests (Files): Likewise.
2030
2031 2012-03-02  Jim Meyering  <meyering@redhat.com>
2032
2033         maint: don't specify XZ_OPT=-9ev in dist-related rule
2034         Using xz's -9 option is warranted only if you have a very large
2035         tarball (see xz's documentation for the sizes vs. presets), and
2036         requires 64MiB of memory at decompression time.
2037         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2038         Automake's default of just "-e" is fine.  Override on a
2039         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2040
2041 2012-03-01  Eric Blake  <eblake@redhat.com>
2042
2043         maint.mk: allow announcement for non-gnulib project
2044         * maint.mk (announcement): Skip gnulib version if not used.
2045
2046 2012-03-01  Jim Meyering  <meyering@redhat.com>
2047
2048         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2049         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2050         envvar settings cannot interfere.  Otherwise, setting envvars like
2051         prohibit=foo require=bar, etc. would cause spurious test failures.
2052
2053 2012-03-01  Eric Blake  <eblake@redhat.com>
2054
2055         maint.mk: add per-line exclusions to prohibitions
2056         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2057         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2058         (sc_const_long_option): Use it.
2059
2060 2012-03-01  Bruno Haible  <bruno@clisp.org>
2061
2062         Tests for module 'expl-ieee'.
2063         * modules/expl-ieee-tests: New file.
2064         * tests/test-expl-ieee.c: New file.
2065
2066         New module 'expl-ieee'.
2067         * modules/expl-ieee: New file.
2068
2069         Tests for module 'exp-ieee'.
2070         * modules/exp-ieee-tests: New file.
2071         * tests/test-exp-ieee.c: New file.
2072
2073         New module 'exp-ieee'.
2074         * modules/exp-ieee: New file.
2075
2076         Tests for module 'expf-ieee'.
2077         * modules/expf-ieee-tests: New file.
2078         * tests/test-expf-ieee.c: New file.
2079         * tests/test-exp-ieee.h: New file.
2080
2081         New module 'expf-ieee'.
2082         * modules/expf-ieee: New file.
2083
2084 2012-02-29  Bruno Haible  <bruno@clisp.org>
2085
2086         cbrtl-ieee: Work around test failure on IRIX 6.5.
2087         * m4/cbrtl-ieee.m4: New file.
2088         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2089         test whether cbrtl works with a minus zero argument. Replace it if not.
2090         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2092         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2093         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2094         (Depends-on): Update conditions.
2095         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2096         m4/signbit.m4.
2097         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2098         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2099         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2100
2101         Tests for module 'cbrtl-ieee'.
2102         * modules/cbrtl-ieee-tests: New file.
2103         * tests/test-cbrtl-ieee.c: New file.
2104
2105         New module 'cbrtl-ieee'.
2106         * modules/cbrtl-ieee: New file.
2107
2108         Tests for module 'cbrt-ieee'.
2109         * modules/cbrt-ieee-tests: New file.
2110         * tests/test-cbrt-ieee.c: New file.
2111
2112         New module 'cbrt-ieee'.
2113         * modules/cbrt-ieee: New file.
2114
2115         Tests for module 'cbrtf-ieee'.
2116         * modules/cbrtf-ieee-tests: New file.
2117         * tests/test-cbrtf-ieee.c: New file.
2118         * tests/test-cbrt-ieee.h: New file.
2119
2120         New module 'cbrtf-ieee'.
2121         * modules/cbrtf-ieee: New file.
2122
2123 2012-02-29  Bruno Haible  <bruno@clisp.org>
2124
2125         cbrtf: Work around bug in IRIX 6.5 system function.
2126         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2127         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2128         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2129         work.
2130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2131         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2132         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2133         (Depends-on): Update conditions.
2134         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2135
2136 2012-02-29  Bruno Haible  <bruno@clisp.org>
2137
2138         Tests for module 'cbrtl'.
2139         * modules/cbrtl-tests: New file.
2140         * tests/test-cbrtl.c: New file.
2141
2142         New module 'cbrtl'.
2143         * lib/math.in.h (cbrtl): New declaration.
2144         * lib/cbrtl.c: New file.
2145         * m4/cbrtl.m4: New file.
2146         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2148         HAVE_DECL_CBRTL.
2149         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2150         HAVE_DECL_CBRTL.
2151         * modules/cbrtl: New file.
2152         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2153         * doc/posix-functions/cbrtl.texi: Mention the new module.
2154
2155 2012-02-29  Bruno Haible  <bruno@clisp.org>
2156
2157         Tests for module 'cbrtf'.
2158         * modules/cbrtf-tests: New file.
2159         * tests/test-cbrtf.c: New file.
2160
2161         New module 'cbrtf'.
2162         * lib/math.in.h (cbrtf): New declaration.
2163         * lib/cbrtf.c: New file.
2164         * m4/cbrtf.m4: New file.
2165         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2167         HAVE_DECL_CBRTF.
2168         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2169         HAVE_DECL_CBRTF.
2170         * modules/cbrtf: New file.
2171         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2172         * doc/posix-functions/cbrtf.texi: Mention the new module.
2173
2174 2012-02-29  Bruno Haible  <bruno@clisp.org>
2175
2176         cbrt: Provide replacement on MSVC and Minix.
2177         * lib/math.in.h (cbrt): New declaration.
2178         * lib/cbrt.c: New file.
2179         * m4/cbrt.m4: New file.
2180         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2182         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2183         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2184         (Depends-on): Add dependencies.
2185         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2186         * tests/test-math-c++.cc: Check the declaration of cbrt.
2187         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2188         replacement.
2189
2190 2012-02-29  Bruno Haible  <bruno@clisp.org>
2191
2192         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2193         * m4/hypotl-ieee.m4: New file.
2194         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2195         test whether hypotl works with mixed NaN and Infinity arguments.
2196         Replace it if not.
2197         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2199         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2200         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2201         (Depends-on): Update conditions.
2202         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2203         (Depends-on): Add hypot-ieee.
2204         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2205         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2206
2207         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2208         * m4/hypotf-ieee.m4: New file.
2209         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2210         test whether hypotf works with mixed NaN and Infinity arguments.
2211         Replace it if not.
2212         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2213         (Depends-on): Add hypot-ieee.
2214         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2215         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2216
2217         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2218         * lib/math.in.h (hypot): New declaration.
2219         * lib/hypot.c: New file.
2220         * m4/hypot-ieee.m4: New file.
2221         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2222         whether hypot works with mixed NaN and Infinity arguments. Replace it
2223         if not.
2224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2225         REPLACE_HYPOT.
2226         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2227         * modules/hypot (Files): Add lib/hypot.c.
2228         (Depends-on): Add dependencies.
2229         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2230         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2231         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2232         * tests/test-math-c++.cc: Check the declaration of hypot.
2233         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2234
2235         Tests for module 'hypotl-ieee'.
2236         * modules/hypotl-ieee-tests: New file.
2237         * tests/test-hypotl-ieee.c: New file.
2238
2239         New module 'hypotl-ieee'.
2240         * modules/hypotl-ieee: New file.
2241
2242         Tests for module 'hypot-ieee'.
2243         * modules/hypot-ieee-tests: New file.
2244         * tests/test-hypot-ieee.c: New file.
2245
2246         New module 'hypot-ieee'.
2247         * modules/hypot-ieee: New file.
2248
2249         Tests for module 'hypotf-ieee'.
2250         * modules/hypotf-ieee-tests: New file.
2251         * tests/test-hypotf-ieee.c: New file.
2252         * tests/test-hypot-ieee.h: New file.
2253
2254         New module 'hypotf-ieee'.
2255         * modules/hypotf-ieee: New file.
2256
2257 2012-02-29  Bruno Haible  <bruno@clisp.org>
2258
2259         Remove unused variables.
2260         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2261         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2262         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2263         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2264
2265 2012-02-29  Eric Blake  <eblake@redhat.com>
2266
2267         termios: fix pid_t always, not just for tcgetsid
2268         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2269         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2270         just when building tcgetsid.
2271
2272 2012-02-29  Bruno Haible  <bruno@clisp.org>
2273
2274         Tests for module 'hypotl'.
2275         * modules/hypotl-tests: New file.
2276         * tests/test-hypotl.c: New file.
2277
2278         New module 'hypotl'.
2279         * lib/math.in.h (hypotl): New declaration.
2280         * lib/hypotl.c: New file.
2281         * m4/hypotl.m4: New file.
2282         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2284         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2285         * modules/hypotl: New file.
2286         * tests/test-math-c++.cc: Check the hypotl declaration.
2287         * doc/posix-functions/hypotl.texi: Mention the new module.
2288
2289 2012-02-29  Eric Blake  <eblake@redhat.com>
2290
2291         tcgetsid: fix cygwin header bug
2292         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2293
2294         docs: update cygwin progress
2295         * doc/posix-functions/llround.texi (llround): Added in cygwin
2296         1.7.8.
2297         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2298         * doc/glibc-functions/program_invocation_name.texi
2299         (program_invocation_name): Likewise.
2300         * doc/glibc-functions/program_invocation_short_name.texi
2301         (program_invocation_short_name): Likewise.
2302         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2303         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2304         Likewise.
2305         * doc/posix-functions/pthread_spin_destroy.texi
2306         (pthread_spin_destroy): Added in cygwin 1.7.10.
2307         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2308         Likewise.
2309         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2310         Likewise.
2311         * doc/posix-functions/pthread_spin_trylock.texi
2312         (pthread_spin_trylock): Likewise.
2313         * doc/posix-functions/pthread_spin_unlock.texi
2314         (pthread_spin_unlock): Likewise.
2315         * doc/posix-functions/pthread_setschedprio.texi
2316         (pthread_setschedprio): Likewise.
2317         * doc/posix-functions/pthread_attr_getstack.texi
2318         (pthread_attr_getstack): Likewise.
2319         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2320         (pthread_attr_getstackaddr): Likewise.
2321         * doc/glibc-functions/pthread_getattr_np.texi
2322         (pthread_getattr_np): Likewise.
2323         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2324         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2325         * doc/posix-functions/clock_settime.texi (clock_settime):
2326         Likewise.
2327         * doc/posix-functions/pthread_attr_getguardsize.texi
2328         (pthread_attr_getguardsize): Likewise.
2329         * doc/posix-functions/pthread_attr_setguardsize.texi
2330         (pthread_attr_setguardsize): Likewise.
2331         * doc/posix-functions/pthread_attr_setstack.texi
2332         (pthread_attr_setstack): Likewise.
2333         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2334         (pthread_attr_setstackaddr): Likewise.
2335         * doc/posix-functions/clock_getcpuclockid.texi
2336         (clock_getcpuclockid): Likewise.
2337         * doc/posix-functions/pthread_getcpuclockid.texi
2338         (pthread_getcpuclockid): Likewise.
2339         * doc/glibc-functions/error.texi (error): Likewise.
2340         * doc/glibc-functions/error_at_line.texi (error_at_line):
2341         Likewise.
2342         * doc/glibc-functions/error_message_count.texi
2343         (error_message_count): Likewise.
2344         * doc/glibc-functions/error_one_per_line.texi
2345         (error_one_per_line): Likewise.
2346         * doc/glibc-functions/error_print_progname.texi
2347         (error_print_progname): Likewise.
2348         * doc/posix-functions/pthread_condattr_getclock.texi
2349         (pthread_condattr_getclock): Likewise.
2350         * doc/posix-functions/pthread_condattr_setclock.texi
2351         (pthread_condattr_setclock): Likewise.
2352         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2353         Likewise.
2354         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2355         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2356         * doc/glibc-functions/get_current_dir_name.texi
2357         (get_current_dir_name): Likewise.
2358         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2359         Likewise.
2360         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2361         wrong return type.
2362         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2363         1.7.11.
2364
2365 2012-02-29  Bruno Haible  <bruno@clisp.org>
2366
2367         Tests for module 'hypotf'.
2368         * modules/hypotf-tests: New file.
2369         * tests/test-hypotf.c: New file.
2370
2371         New module 'hypotf'.
2372         * lib/math.in.h (hypotf): New declaration.
2373         * lib/hypotf.c: New file.
2374         * m4/hypotf.m4: New file.
2375         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2377         REPLACE_HYPOTF.
2378         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2379         REPLACE_HYPOTF.
2380         * modules/hypotf: New file.
2381         * tests/test-math-c++.cc: Check the hypotf declaration.
2382         * doc/posix-functions/hypotf.texi: Mention the new module.
2383
2384         hypot: Prepare for hypotf module.
2385         * m4/hypot.m4: New file.
2386         * modules/hypot (Files): Add m4/hypot.m4.
2387         (configure.ac): Invoke gl_FUNC_HYPOT.
2388
2389 2012-02-29  Bruno Haible  <bruno@clisp.org>
2390
2391         hypot tests: More tests.
2392         * tests/test-hypot.c: Include <float.h>.
2393         (main): Add tests about overflow and underflow.
2394
2395 2012-02-29  Bruno Haible  <bruno@clisp.org>
2396
2397         math code: Add comments.
2398         * lib/acosl.c: Add comment about related glibc source files.
2399         * lib/asinl.c: Likewise.
2400         * lib/atanl.c: Likewise.
2401         * lib/expl.c: Likewise.
2402         * lib/logl.c: Likewise.
2403         * lib/sincosl.c: Likewise.
2404         * lib/sinl.c: Likewise.
2405         * lib/tanl.c: Likewise.
2406         * lib/trigl.c: Likewise.
2407         * lib/cosl.c: Likewise. Fix comments.
2408
2409 2012-02-28  Bruno Haible  <bruno@clisp.org>
2410
2411         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2412         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2413         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2414         HUGE_VALL are defined.
2415         (numeric_equald): Renamed from numeric_equal.
2416         (numeric_equalf, numeric_equall): New functions.
2417         (main): Check also HUGE_VALF, HUGE_VALL.
2418         * modules/math-tests (Files): Add tests/macros.h.
2419         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2420         HUGE_VALL.
2421
2422 2012-02-28  Bruno Haible  <bruno@clisp.org>
2423
2424         doc: Move ISO C11 feature notes into POSIX chapters.
2425         * doc/posix-functions/aligned_alloc.texi: Renamed from
2426         doc/glibc-functions/aligned_alloc.texi.
2427         * doc/posix-functions/quick_exit.texi: Renamed from
2428         doc/glibc-functions/quick_exit.texi.
2429         * doc/posix-headers/uchar.texi: Renamed from
2430         doc/glibc-headers/uchar.texi.
2431         * doc/posix-functions/c16rtomb.texi: Renamed from
2432         doc/glibc-functions/c16rtomb.texi.
2433         * doc/posix-functions/c32rtomb.texi: Renamed from
2434         doc/glibc-functions/c32rtomb.texi.
2435         * doc/posix-functions/mbrtoc16.texi: Renamed from
2436         doc/glibc-functions/mbrtoc16.texi.
2437         * doc/posix-functions/mbrtoc32.texi: Renamed from
2438         doc/glibc-functions/mbrtoc32.texi.
2439         * doc/gnulib.texi: Update.
2440         (Glibc uchar.h): Remove section.
2441         Suggested by Eric Blake.
2442
2443 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2444
2445         stdnoreturn: port to MSVC better
2446         MSVC standard headers use __declspec(noreturn), so #define noreturn
2447         to empty on that platform.  Reported by Bruno Haible in
2448         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2449         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2450         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2451
2452 2012-02-28  Bruno Haible  <bruno@clisp.org>
2453
2454         doc: Mention new glibc headers and functions.
2455         * doc/glibc-headers/uchar.texi: New file.
2456         * doc/glibc-functions/aligned_alloc.texi: New file.
2457         * doc/glibc-functions/c16rtomb.texi: New file.
2458         * doc/glibc-functions/c32rtomb.texi: New file.
2459         * doc/glibc-functions/clock_adjtime.texi: New file.
2460         * doc/glibc-functions/fanotify_init.texi: New file.
2461         * doc/glibc-functions/fanotify_mark.texi: New file.
2462         * doc/glibc-functions/inet6_opt_append.texi: New file.
2463         * doc/glibc-functions/inet6_opt_find.texi: New file.
2464         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2465         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2466         * doc/glibc-functions/inet6_opt_init.texi: New file.
2467         * doc/glibc-functions/inet6_opt_next.texi: New file.
2468         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2469         * doc/glibc-functions/inet6_rth_add.texi: New file.
2470         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2471         * doc/glibc-functions/inet6_rth_init.texi: New file.
2472         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2473         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2474         * doc/glibc-functions/inet6_rth_space.texi: New file.
2475         * doc/glibc-functions/login.texi: New file.
2476         * doc/glibc-functions/mbrtoc16.texi: New file.
2477         * doc/glibc-functions/mbrtoc32.texi: New file.
2478         * doc/glibc-functions/name_to_handle_at.texi: New file.
2479         * doc/glibc-functions/ntp_gettimex.texi: New file.
2480         * doc/glibc-functions/open_by_handle_at.texi: New file.
2481         * doc/glibc-functions/prlimit.texi: New file.
2482         * doc/glibc-functions/process_vm_readv.texi: New file.
2483         * doc/glibc-functions/process_vm_writev.texi: New file.
2484         * doc/glibc-functions/recvmmsg.texi: New file.
2485         * doc/glibc-functions/scandirat.texi: New file.
2486         * doc/glibc-functions/sendmmsg.texi: New file.
2487         * doc/glibc-functions/setns.texi: New file.
2488         * doc/glibc-functions/timespec_get.texi: New file.
2489         * doc/gnulib.texi: Include them.
2490         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2491         sections.
2492         Reported by Eric Blake.
2493
2494 2012-02-28  Bruno Haible  <bruno@clisp.org>
2495
2496         Avoid compilation errors with MSVC option -fp:strict.
2497         * lib/floor.c: Use MSVC specific pragma fenv_access.
2498         * lib/ceil.c: Likewise.
2499         * lib/trunc.c: Likewise.
2500         * lib/round.c: Likewise.
2501         * lib/rint.c: Likewise.
2502         * lib/fma.c: Likewise.
2503         * lib/integer_length.c: Likewise.
2504         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2506         * tests/test-floor2.c: Likewise.
2507         * tests/test-floorf2.c: Likewise.
2508         * tests/test-ceil2.c: Likewise.
2509         * tests/test-ceilf2.c: Likewise.
2510         * tests/test-trunc2.c: Likewise.
2511         * tests/test-truncf2.c: Likewise.
2512         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2513
2514 2012-02-27  Bruno Haible  <bruno@clisp.org>
2515
2516         Tests for module 'sqrtl-ieee'.
2517         * modules/sqrtl-ieee-tests: New file.
2518         * tests/test-sqrtl-ieee.c: New file.
2519
2520         New module 'sqrtl-ieee'.
2521         * modules/sqrtl-ieee: New file.
2522
2523         Tests for module 'sqrt-ieee'.
2524         * modules/sqrt-ieee-tests: New file.
2525         * tests/test-sqrt-ieee.c: New file.
2526
2527         New module 'sqrt-ieee'.
2528         * modules/sqrt-ieee: New file.
2529
2530         Tests for module 'sqrtf-ieee'.
2531         * modules/sqrtf-ieee-tests: New file.
2532         * tests/test-sqrtf-ieee.c: New file.
2533         * tests/test-sqrt-ieee.h: New file.
2534
2535         New module 'sqrtf-ieee'.
2536         * modules/sqrtf-ieee: New file.
2537
2538 2012-02-27  Bruno Haible  <bruno@clisp.org>
2539
2540         remainderl-ieee: Work around test failure on OSF/1.
2541         * m4/remainderl-ieee.m4: New file.
2542         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2543         present, test whether remainderl works with a zero second argument.
2544         Replace it if not.
2545         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2547         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2548         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2549         (Depends-on): Update conditions.
2550         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2551         (Depends-on): Add remainder-ieee.
2552         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2553         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2554         module.
2555
2556         remainderf-ieee: Work around test failure on OSF/1.
2557         * m4/remainderf-ieee.m4: New file.
2558         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2559         present, test whether remainderf works with a zero second argument.
2560         Replace it if not.
2561         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2563         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2564         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2565         (Depends-on): Update conditions.
2566         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2567         (Depends-on): Add remainder-ieee.
2568         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2569         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2570         module.
2571
2572         remainder-ieee: Work around test failure on OSF/1.
2573         * m4/remainder-ieee.m4: New file.
2574         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2575         present, test whether remainder works with a zero second argument.
2576         Replace it if not.
2577         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2579         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2580         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2581         (Depends-on): Update dependencies.
2582         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2583         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2584         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2585
2586         Tests for module 'remainderl-ieee'.
2587         * modules/remainderl-ieee-tests: New file.
2588         * tests/test-remainderl-ieee.c: New file.
2589
2590         New module 'remainderl-ieee'.
2591         * modules/remainderl-ieee: New file.
2592
2593         Tests for module 'remainder-ieee'.
2594         * modules/remainder-ieee-tests: New file.
2595         * tests/test-remainder-ieee.c: New file.
2596
2597         New module 'remainder-ieee'.
2598         * modules/remainder-ieee: New file.
2599
2600         Tests for module 'remainderf-ieee'.
2601         * modules/remainderf-ieee-tests: New file.
2602         * tests/test-remainderf-ieee.c: New file.
2603         * tests/test-remainder-ieee.h: New file.
2604
2605         New module 'remainderf-ieee'.
2606         * modules/remainderf-ieee: New file.
2607
2608 2012-02-27  Bruno Haible  <bruno@clisp.org>
2609
2610         modff, modfl: Fix configure syntax error.
2611         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2612         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2613
2614 2012-02-27  Bruno Haible  <bruno@clisp.org>
2615
2616         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2617         * m4/fmodl-ieee.m4: New file.
2618         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2619         whether fmodl works with zero arguments. Replace it if not.
2620         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2621         (Depends-on): Add fmod-ieee.
2622         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2623         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2624
2625         fmodf-ieee: Work around test failure on OSF/1.
2626         * m4/fmodf-ieee.m4: New file.
2627         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2628         whether fmodf works with zero arguments. Replace it if not.
2629         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2631         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2632         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2633         (Depends-on): Update dependencies.
2634         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2635         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2636         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2637
2638         fmodf-ieee: Work around test failure on MSVC 9.
2639         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2640         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2641
2642         fmod-ieee: Work around test failures on OSF/1, mingw.
2643         * m4/fmod-ieee.m4: New file.
2644         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2645         whether fmod works with zero arguments. Replace it if not.
2646         * lib/math.in.h (fmod): New declaration.
2647         * lib/fmod.c: New file.
2648         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2650         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2651         * modules/fmod (Files): Add lib/fmod.c.
2652         (Depends-on): Add math, isinf, trunc, fma.
2653         (configure.ac): Arrange to compile lib/fmod.c if needed.
2654         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2655         m4/signbit.m4.
2656         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2657         * tests/test-math-c++.cc: Check the declaration of fmod.
2658         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2659
2660         fmodl-ieee: Fix test failures.
2661         * lib/fmodl.c (fmodl): Treat Inf specially.
2662         * modules/fmodl (Depends-on): Add isinf.
2663
2664         Tests for module 'fmodl-ieee'.
2665         * modules/fmodl-ieee-tests: New file.
2666         * tests/test-fmodl-ieee.c: New file.
2667
2668         New module 'fmodl-ieee'.
2669         * modules/fmodl-ieee: New file.
2670
2671         Tests for module 'fmod-ieee'.
2672         * modules/fmod-ieee-tests: New file.
2673         * tests/test-fmod-ieee.c: New file.
2674
2675         New module 'fmod-ieee'.
2676         * modules/fmod-ieee: New file.
2677
2678         Tests for module 'fmodf-ieee'.
2679         * modules/fmodf-ieee-tests: New file.
2680         * tests/test-fmodf-ieee.c: New file.
2681         * tests/test-fmod-ieee.h: New file.
2682
2683         New module 'fmodf-ieee'.
2684         * modules/fmodf-ieee: New file.
2685
2686 2012-02-27  Bruno Haible  <bruno@clisp.org>
2687
2688         Tests for module 'rintl-ieee'.
2689         * modules/rintl-ieee-tests: New file.
2690         * tests/test-rintl-ieee.c: New file.
2691
2692         New module 'rintl-ieee'.
2693         * modules/rintl-ieee: New file.
2694
2695         Tests for module 'rint-ieee'.
2696         * modules/rint-ieee-tests: New file.
2697         * tests/test-rint-ieee.c: New file.
2698
2699         New module 'rint-ieee'.
2700         * modules/rint-ieee: New file.
2701
2702         Tests for module 'rintf-ieee'.
2703         * modules/rintf-ieee-tests: New file.
2704         * tests/test-rintf-ieee.c: New file.
2705         * tests/test-rint-ieee.h: New file.
2706
2707         New module 'rintf-ieee'.
2708         * modules/rintf-ieee: New file.
2709
2710 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2711
2712         regex: re_search etc. should return -2 when memory exhausted
2713         This bug was uncovered when testing 'grep'.  Without the fix,
2714         re_search and friends return -1 when memory is exhausted, but -1
2715         means no match, and this causes grep to falsely report no-match
2716         instead of memory-exhaustion.  See
2717         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2718         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2719         trouble; this can occur if re_search_internal ran out of memory.
2720
2721 2012-02-26  Bruno Haible  <bruno@clisp.org>
2722
2723         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2724         * m4/modfl-ieee.m4: New file.
2725         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2726         whether modfl works with Inf. Replace it if not.
2727         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2729         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2730         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2731         (Depends-on): Update dependencies.
2732         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2733         m4/signbit.m4.
2734         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2735         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2736
2737         modfl-ieee: Fix dependencies.
2738         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2739
2740         modfl-ieee: Fix test failures.
2741         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2742         * modules/modfl (Depends-on): Add isfinite, isinf.
2743
2744         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2745         * m4/modff-ieee.m4: New file.
2746         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2747         whether modff works with NaN and Inf. Replace it if not.
2748         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2750         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2751         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2752         (Depends-on): Update dependencies.
2753         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2754         m4/signbit.m4.
2755         (Depends-on): Add modf-ieee.
2756         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2757         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2758
2759         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2760         * m4/modf-ieee.m4: New file.
2761         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2762         whether modf works with NaN and Inf. Replace it if not.
2763         * lib/math.in.h (modf): New declaration.
2764         * lib/modf.c: New file.
2765         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2767         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2768         * modules/modf (Files): Add lib/modf.c.
2769         (Depends-on): Add math, isfinite, trunc, isinf.
2770         (configure.ac): Addrange to compile lib/modf.c if needed.
2771         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2772         m4/signbit.m4.
2773         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2774         * tests/test-math-c++.cc: Check the declaration of modf.
2775         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2776
2777         Tests for module 'modfl-ieee'.
2778         * modules/modfl-ieee-tests: New file.
2779         * tests/test-modfl-ieee.c: New file.
2780
2781         New module 'modfl-ieee'.
2782         * modules/modfl-ieee: New file.
2783
2784         Tests for module 'modf-ieee'.
2785         * modules/modf-ieee-tests: New file.
2786         * tests/test-modf-ieee.c: New file.
2787
2788         New module 'modf-ieee'.
2789         * modules/modf-ieee: New file.
2790
2791         Tests for module 'modff-ieee'.
2792         * modules/modff-ieee-tests: New file.
2793         * tests/test-modff-ieee.c: New file.
2794         * tests/test-modf-ieee.h: New file.
2795
2796         New module 'modff-ieee'.
2797         * modules/modff-ieee: New file.
2798
2799 2012-02-26  Bruno Haible  <bruno@clisp.org>
2800
2801         Tests for module 'fabsl-ieee'.
2802         * modules/fabsl-ieee-tests: New file.
2803         * tests/test-fabsl-ieee.c: New file.
2804
2805         New module 'fabsl-ieee'.
2806         * modules/fabsl-ieee: New file.
2807
2808         Tests for module 'fabs-ieee'.
2809         * modules/fabs-ieee-tests: New file.
2810         * tests/test-fabs-ieee.c: New file.
2811
2812         New module 'fabs-ieee'.
2813         * modules/fabs-ieee: New file.
2814
2815         Tests for module 'fabsf-ieee'.
2816         * modules/fabsf-ieee-tests: New file.
2817         * tests/test-fabsf-ieee.c: New file.
2818         * tests/test-fabs-ieee.h: New file.
2819
2820         New module 'fabsf-ieee'.
2821         * modules/fabsf-ieee: New file.
2822
2823 2012-02-26  Bruno Haible  <bruno@clisp.org>
2824
2825         Tests for module 'fmal-ieee'.
2826         * modules/fmal-ieee-tests: New file.
2827         * tests/test-fmal-ieee.c: New file.
2828
2829         New module 'fmal-ieee'.
2830         * modules/fmal-ieee: New file.
2831
2832         Tests for module 'fma-ieee'.
2833         * modules/fma-ieee-tests: New file.
2834         * tests/test-fma-ieee.c: New file.
2835
2836         New module 'fma-ieee'.
2837         * modules/fma-ieee: New file.
2838
2839         Tests for module 'fmaf-ieee'.
2840         * modules/fmaf-ieee-tests: New file.
2841         * tests/test-fmaf-ieee.c: New file.
2842         * tests/test-fma-ieee.h: New file.
2843
2844         New module 'fmaf-ieee'.
2845         * modules/fmaf-ieee: New file.
2846
2847 2012-02-26  Bruno Haible  <bruno@clisp.org>
2848
2849         Tests for module 'ldexpl-ieee'.
2850         * modules/ldexpl-ieee-tests: New file.
2851         * tests/test-ldexpl-ieee.c: New file.
2852
2853         New module 'ldexpl-ieee'.
2854         * modules/ldexpl-ieee: New file.
2855
2856         Tests for module 'ldexp-ieee'.
2857         * modules/ldexp-ieee-tests: New file.
2858         * tests/test-ldexp-ieee.c: New file.
2859
2860         New module 'ldexp-ieee'.
2861         * modules/ldexp-ieee: New file.
2862
2863         Tests for module 'ldexpf-ieee'.
2864         * modules/ldexpf-ieee-tests: New file.
2865         * tests/test-ldexpf-ieee.c: New file.
2866         * tests/test-ldexp-ieee.h: New file.
2867
2868         New module 'ldexpf-ieee'.
2869         * modules/ldexpf-ieee: New file.
2870
2871 2012-02-26  Bruno Haible  <bruno@clisp.org>
2872
2873         Refactor frexp*-ieee tests.
2874         * tests/test-frexp-ieee.h: New file.
2875         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2876         (main): Just call test_function.
2877         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2878         (main): Just call test_function.
2879         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2880         (main): Just call test_function.
2881         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2882         * modules/frexp-ieee-tests (Files): Likewise.
2883         * modules/frexpl-ieee-tests (Files): Likewise.
2884
2885         Tests for module 'frexpl-ieee'.
2886         * modules/frexpl-ieee-tests: New file.
2887         * tests/test-frexpl-ieee.c: New file.
2888
2889         New module 'frexpl-ieee'.
2890         * modules/frexpl-ieee: New file.
2891
2892         Tests for module 'frexp-ieee'.
2893         * modules/frexp-ieee-tests: New file.
2894         * tests/test-frexp-ieee.c: New file.
2895
2896         New module 'frexp-ieee'.
2897         * modules/frexp-ieee: New file.
2898
2899         Tests for module 'frexpf-ieee'.
2900         * modules/frexpf-ieee-tests: New file.
2901         * tests/test-frexpf-ieee.c: New file.
2902
2903         New module 'frexpf-ieee'.
2904         * modules/frexpf-ieee: New file.
2905
2906 2012-02-26  Bruno Haible  <bruno@clisp.org>
2907
2908         roundl-ieee tests: More tests.
2909         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2910         (main): Add tests for [MX] shaded specification in POSIX.
2911         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2912         (Depends-on): Add isnanl-nolibm.
2913
2914         round-ieee tests: More tests.
2915         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2916         (main): Add tests for [MX] shaded specification in POSIX.
2917         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2918         (Depends-on): Add isnand-nolibm.
2919
2920         roundf-ieee tests: More tests.
2921         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2922         (main): Add tests for [MX] shaded specification in POSIX.
2923         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2924         (Depends-on): Add isnanf-nolibm.
2925
2926         truncl-ieee tests: More tests.
2927         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2928         (main): Add tests for [MX] shaded specification in POSIX.
2929         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2930         (Depends-on): Add isnanl-nolibm.
2931
2932         trunc-ieee tests: More tests.
2933         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2934         (main): Add tests for [MX] shaded specification in POSIX.
2935         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2936         (Depends-on): Add isnand-nolibm.
2937
2938         truncf-ieee tests: More tests.
2939         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2940         (main): Add tests for [MX] shaded specification in POSIX.
2941         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2942         (Depends-on): Add isnanf-nolibm.
2943
2944         ceill-ieee tests: More tests.
2945         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2946         (main): Add tests for [MX] shaded specification in POSIX.
2947         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2948         (Depends-on): Add isnanl-nolibm.
2949
2950         ceil-ieee tests: More tests.
2951         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2952         (main): Add tests for [MX] shaded specification in POSIX.
2953         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2954         (Depends-on): Add isnand-nolibm.
2955
2956         ceilf-ieee tests: More tests.
2957         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2958         (main): Add tests for [MX] shaded specification in POSIX.
2959         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2960         (Depends-on): Add isnanf-nolibm.
2961
2962         floorl-ieee tests: More tests.
2963         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2964         (main): Add tests for [MX] shaded specification in POSIX.
2965         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2966         (Depends-on): Add isnanl-nolibm.
2967
2968         floor-ieee tests: More tests.
2969         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2970         (main): Add tests for [MX] shaded specification in POSIX.
2971         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2972         (Depends-on): Add isnand-nolibm.
2973
2974         floorf-ieee tests: More tests.
2975         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2976         (main): Add tests for [MX] shaded specification in POSIX.
2977         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2978         (Depends-on): Add isnanf-nolibm.
2979
2980 2012-02-26  Bruno Haible  <bruno@clisp.org>
2981
2982         fpieee: More comments.
2983         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2984
2985 2012-02-25  Bruno Haible  <bruno@clisp.org>
2986
2987         Tests for module 'log10l'.
2988         * modules/log10l-tests: New file.
2989         * tests/test-log10l.c: New file.
2990         * tests/test-math-c++.cc: Check the declaration of log10l.
2991
2992         New module 'log10l'.
2993         * lib/math.in.h (log10l): New declaration.
2994         * lib/log10l.c: New file.
2995         * m4/log10l.m4: New file.
2996         * modules/log10l: New file.
2997         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2999         HAVE_DECL_LOG10L.
3000         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3001         HAVE_DECL_LOG10L.
3002         * doc/posix-functions/log10l.texi: Mention the new module.
3003
3004 2012-02-25  Bruno Haible  <bruno@clisp.org>
3005
3006         fmodl, remainder*: Avoid wrong results due to rounding errors.
3007         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3008         expected bounds.
3009         * lib/remainderf.c (remainderf): Likewise.
3010         * lib/remainder.c (remainder): Likewise.
3011         * lib/remainderl.c (remainderl): Likewise.
3012
3013 2012-02-25  Bruno Haible  <bruno@clisp.org>
3014
3015         Tests for module 'remainderl'.
3016         * modules/remainderl-tests: New file.
3017         * tests/test-remainderl.c: New file.
3018         * tests/test-math-c++.cc: Check the declaration of remainderl.
3019
3020         New module 'remainderl'.
3021         * lib/math.in.h (remainderl): New declaration.
3022         * lib/remainderl.c: New file.
3023         * m4/remainderl.m4: New file.
3024         * modules/remainderl: New file.
3025         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3027         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3028         HAVE_REMAINDERL.
3029         * doc/posix-functions/remainderl.texi: Mention the new module.
3030
3031 2012-02-25  Bruno Haible  <bruno@clisp.org>
3032
3033         Tests for module 'remainderf'.
3034         * modules/remainderf-tests: New file.
3035         * tests/test-remainderf.c: New file.
3036         * tests/test-math-c++.cc: Check the declaration of remainderf.
3037
3038         New module 'remainderf'.
3039         * lib/math.in.h (remainderf): New declaration.
3040         * lib/remainderf.c: New file.
3041         * m4/remainderf.m4: New file.
3042         * modules/remainderf: New file.
3043         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3045         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3046         HAVE_REMAINDERF.
3047         * doc/posix-functions/remainderf.texi: Mention the new module.
3048
3049 2012-02-25  Bruno Haible  <bruno@clisp.org>
3050
3051         remainder: Support for MSVC.
3052         * lib/math.in.h (remainder): New declaration.
3053         * lib/remainder.c: New file.
3054         * m4/remainder.m4: New file.
3055         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3056         (Depends-on): Add math, round, fma.
3057         (configure.ac): Use results of gl_FUNC_REMAINDER.
3058         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3060         HAVE_DECL_REMAINDER.
3061         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3062         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3063         * tests/test-math-c++.cc: Check the declaration of remainder.
3064         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3065         problems are fixed.
3066
3067 2012-02-25  Bruno Haible  <bruno@clisp.org>
3068
3069         Tests for module 'fmodl'.
3070         * modules/fmodl-tests: New file.
3071         * tests/test-fmodl.c: New file.
3072         * tests/test-math-c++.cc: Check the declaration of fmodl.
3073
3074         New module 'fmodl'.
3075         * lib/math.in.h (fmodl): New declaration.
3076         * lib/fmodl.c: New file.
3077         * m4/fmodl.m4: New file.
3078         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3080         REPLACE_FMODL.
3081         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3082         REPLACE_FMODL.
3083         * modules/fmodl: New file.
3084         * doc/posix-functions/fmodl.texi: Mention the new module.
3085
3086 2012-02-25  Bruno Haible  <bruno@clisp.org>
3087
3088         Tests for module 'modfl'.
3089         * modules/modfl-tests: New file.
3090         * tests/test-modfl.c: New file.
3091         * tests/test-math-c++.cc: Check the declaration of modfl.
3092
3093         New module 'modfl'.
3094         * lib/math.in.h (modfl): New declaration.
3095         * lib/modfl.c: New file.
3096         * m4/modfl.m4: New file.
3097         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3099         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3100         * modules/modfl: New file.
3101         * doc/posix-functions/modfl.texi: Mention the new module.
3102
3103 2012-02-25  Bruno Haible  <bruno@clisp.org>
3104
3105         Tests for module 'fabsl'.
3106         * modules/fabsl-tests: New file.
3107         * tests/test-fabsl.c: New file.
3108         * tests/test-math-c++.cc: Check the declaration of fabsl.
3109
3110         New module 'fabsl'.
3111         * lib/math.in.h (fabsl): New declaration.
3112         * lib/fabsl.c: New file.
3113         * m4/fabsl.m4: New file.
3114         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3116         REPLACE_FABSL.
3117         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3118         REPLACE_FABSL.
3119         * modules/fabsl: New file.
3120         * doc/posix-functions/fabsl.texi: Mention the new module.
3121
3122 2012-02-25  Bruno Haible  <bruno@clisp.org>
3123
3124         fabs tests: More tests.
3125         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3126         (zero): New variable.
3127         (main): Add tests for signed zero.
3128         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3129
3130         fabsf tests: More tests.
3131         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3132         (zero): New variable.
3133         (main): Add tests for signed zero.
3134         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3135
3136 2012-02-24  Bruno Haible  <bruno@clisp.org>
3137
3138         atanl: Provide function definition on MSVC.
3139         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3140         function pointer.
3141         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3142
3143 2012-02-24  Bruno Haible  <bruno@clisp.org>
3144
3145         acosl: Provide function definition on MSVC.
3146         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3147         function pointer.
3148         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3149
3150 2012-02-24  Bruno Haible  <bruno@clisp.org>
3151
3152         asinl: Provide function definition on MSVC.
3153         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3154         function pointer.
3155         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3156
3157 2012-02-24  Bruno Haible  <bruno@clisp.org>
3158
3159         tanl: Provide function definition on MSVC.
3160         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3161         function pointer.
3162         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3163
3164 2012-02-24  Bruno Haible  <bruno@clisp.org>
3165
3166         cosl: Provide function definition on MSVC.
3167         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3168         function pointer.
3169         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3170
3171 2012-02-24  Bruno Haible  <bruno@clisp.org>
3172
3173         sinl: Provide function definition on MSVC.
3174         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3175         function pointer.
3176         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3177
3178 2012-02-24  Bruno Haible  <bruno@clisp.org>
3179
3180         logl: Provide function definition on MSVC.
3181         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3182         function pointer.
3183         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3184
3185 2012-02-24  Bruno Haible  <bruno@clisp.org>
3186
3187         expl: Provide function definition on MSVC.
3188         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3189         function pointer.
3190         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3191
3192 2012-02-24  Bruno Haible  <bruno@clisp.org>
3193
3194         sqrtl: Provide function definition on MSVC.
3195         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3196         a function pointer.
3197         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3198
3199 2012-02-24  Bruno Haible  <bruno@clisp.org>
3200
3201         ceill: Provide function definition on MSVC.
3202         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3203         used as a function pointer.
3204         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3205
3206 2012-02-24  Bruno Haible  <bruno@clisp.org>
3207
3208         floorl: Provide function definition on MSVC.
3209         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3210         used as a function pointer.
3211         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3212
3213 2012-02-24  Bruno Haible  <bruno@clisp.org>
3214
3215         ceilf: Provide function definition on MSVC.
3216         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3217         used as a function pointer.
3218         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3219
3220 2012-02-24  Bruno Haible  <bruno@clisp.org>
3221
3222         floorf: Provide function definition on MSVC.
3223         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3224         used as a function pointer.
3225         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3226
3227 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3228
3229         stdnoreturn: new module
3230         This implements a replacement for C11's <stdnoreturn.h>.
3231         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3232         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3233         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3234         * tests/test-stdnoreturn.c: New files.
3235
3236 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3237
3238         regex: fix false multibyte matches in some regular expressions
3239         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3240         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3241         * lib/regex_internal.c (re_string_skip_chars):
3242         Fix miscomputation of remain_len that may cause incomplete
3243         multi-byte character and false match.
3244
3245 2012-02-24  Jim Meyering  <meyering@redhat.com>
3246
3247         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3248         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3249         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3250         Remove now-unnecessary str''cmp obfuscation.
3251         Suggested by Akim Demaille.
3252
3253 2012-02-24  Bruno Haible  <bruno@clisp.org>
3254
3255         streq: Rename macro.
3256         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3257         * NEWS: Mention the change.
3258         * lib/mbrtowc.c (mbrtowc): Update.
3259         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3260         * lib/wcwidth.c (wcwidth): Update.
3261         Suggested by Akim Demaille and Jim Meyering.
3262
3263 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3264
3265         regex: fix typo in definition of MIN
3266         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3267         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3268
3269 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3270             Bruno Haible  <bruno@clisp.org>
3271
3272         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3273         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3274         entries into a stack-allocated buffer directly.
3275         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3276
3277 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3278             Bruno Haible  <bruno@clisp.org>
3279
3280         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3281
3282          - There were several instances of this pattern:
3283
3284              for (;;) {
3285                n = acl (f, GETACLCNT, 0, NULL);
3286                [ allocate an array A of size N ]
3287                if (acl (f, GETACL, n, a) == n)
3288                  break;
3289              }
3290
3291            This loop might never terminate if some other process is constantly
3292            manipulating the file's ACL.  The loop should be rewritten to
3293            terminate.
3294
3295          - The acl (... GETACLNT ...) call is merely an optimization; its value
3296            is merely a hint as to how big to make the array.  A better
3297            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3298            and just guess a reasonably-big size, growing the size and trying
3299            again if it's not large enough.  This guarantees termination, and
3300            saves a system call.
3301
3302         * lib/acl-internal.h: Include <limits.h>.
3303         (MIN, SIZE_MAX): New macros.
3304         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3305         a stack-allocated buffer, and use malloc if it does not fit. Don't
3306         use GETACLCNT.
3307         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3308
3309 2012-02-19  Bruno Haible  <bruno@clisp.org>
3310
3311         acl: Fix endless loop on Solaris with vxfs.
3312         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3313         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3314         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3315         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3316         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3317         Reported by Bill Jones in
3318         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3319
3320 2012-02-19  Bruno Haible  <bruno@clisp.org>
3321
3322         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3323         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3324         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3325         that this function returns 0 in some more cases.
3326
3327 2012-02-19  Bruno Haible  <bruno@clisp.org>
3328
3329         acl: Update doc references.
3330         * doc/acl-resources.txt: Update links to Solaris documentation.
3331
3332 2012-02-19  Bruno Haible  <bruno@clisp.org>
3333
3334         Fix test failure in many locales on Solaris 11.
3335         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3336         'tr' arguments.
3337         * tests/test-pipe-filter-ii1.c (main): Likewise.
3338         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3339         expressions in the C locale.
3340         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3341         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3342
3343 2012-02-19  Bruno Haible  <bruno@clisp.org>
3344
3345         gnulib-tool: Improve usage message.
3346         * gnulib-tool (func_usage): Move doc of --help and --version to the
3347         section "Operation modes".
3348
3349 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3350
3351         README-release: make it easier to execute commands
3352         * top/README-release: break commands out on to separate lines.
3353
3354 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3355
3356         GNUmakefile: simplify detection of unconfigured trees
3357         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3358         whether the tree make is being run from is already configured or
3359         not.  Related simplifications.
3360
3361 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3362
3363         * gnulib-tool (func_usage): Document --help and --version.
3364
3365 2012-02-11  Jim Meyering  <meyering@redhat.com>
3366
3367         bootstrap: don't exit 0 upon gnulib-tool failure
3368         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3369         its exit status, not 0.
3370
3371 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3372
3373         README-release: various improvements
3374         * top/README-release: Give a command to push changes for the
3375         release.  Add "distcheck" to list of other pre-release checks.
3376         Fix instance of "make stable" which should be "make TYPE".
3377
3378 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3379
3380         maint: replace FSF snail-mail addresses with URLs
3381         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3382         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3383         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3384         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3385         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3386         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3387         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3388         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3389         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3390         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3391         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3392         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3393         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3394         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3395         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3396         * lib/glthread/thread.c, lib/glthread/thread.h:
3397         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3398         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3399         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3400         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3401         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3402         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3403         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3404         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3405         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3406         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3407         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3408         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3409         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3410         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3411         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3412         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3413         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3414         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3415         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3416         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3417         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3418         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3419         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3420         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3421         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3422         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3423         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3424         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3425         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3426         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3427         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3428         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3429         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3430         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3431         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3432         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3433         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3434         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3435         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3436         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3437         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3438         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3439         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3440         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3441         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3442         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3443         * tests/test-poll.c, tests/test-quotearg-simple.c:
3444         * tests/test-quotearg.c, tests/test-quotearg.h:
3445         * tests/test-round-ieee.c, tests/test-round1.c:
3446         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3447         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3448         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3449         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3450         * tests/test-strerror.c, tests/test-strerror_r.c:
3451         * tests/test-strsignal.c, tests/test-strverscmp.c:
3452         * tests/test-xmemdup0.c:
3453         Replace FSF snail mail addresses with URLs, as per GNU coding
3454         standards.  See glibc bug
3455         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3456
3457 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3458
3459         README-release: capitalize a word and split a line
3460         * top/README-release: Fix punctuation and spacing.
3461
3462 2012-02-08  Akim Demaille  <demaille@gostai.com>
3463
3464         fatal-signal: use C prototypes (with explicit void).
3465         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3466         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3467
3468 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3469
3470         regex: spelling fix
3471         * lib/regexec.c: spelling fix
3472
3473         regex: rely on stdint.h for SIZE_MAX
3474         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3475
3476 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3477
3478         regex: merge glibc changes
3479
3480         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3481         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3482         (init_word_char): Work even if bitset words are not exactly 32 or
3483         64 bits wide.  Don't assume there are no padding bits.
3484         * lib/regex.c [_LIBC]: Do not include <config.h>.
3485         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3486         and -Wtype-limits.
3487         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3488         needless disagreement with glibc.  All uses changed.  Define it to
3489         1 only if _GNU_SOURCE, to match glibc.
3490         (_REG_RM_NAME): Remove; no longer needed, since the names in
3491         question are now all protected by __USE_GNU.
3492         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3493         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3494         * lib/regex_internal.h (MIN): New macro.
3495
3496         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3497         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3498
3499         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3500         * lib/regex_internal.c (re_string_fetch_byte_case):
3501         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3502         is miscompiled, and it turns out it is because of an incorrect
3503         attribute on re_string_fetch_byte_case.  Unlike
3504         re_string_peek_byte_case, this one is really not pure, it modifies
3505         memory (increments pstr->cur_idx), and with the pure attribute GCC
3506         assumed it doesn't and it cached the presumed value of
3507         regexp->cur_idx in a variable across the
3508          for (;; ++i)
3509            {
3510              if (i >= BRACKET_NAME_BUF_SIZE)
3511                return REG_EBRACK;
3512              if (token->type == OP_OPEN_CHAR_CLASS)
3513                ch = re_string_fetch_byte_case (regexp);
3514              else
3515                ch = re_string_fetch_byte (regexp);
3516              if (re_string_eoi(regexp))
3517                return REG_EBRACK;
3518              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3519                break;
3520              elem->opr.name[i] = ch;
3521            }
3522
3523         2011-11-29 Andreas Schwab <schwab@redhat.com>
3524         * lib/regcomp.c (build_equiv_class):
3525         Fix access after end of search string in regex matcher.
3526
3527         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3528         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3529
3530         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3531         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3532
3533         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3534         * lib/regcomp.c (parse_branch, parse_sub_exp):
3535         More regex memory leak fixes and tests.
3536         (parse_sub_exp, parse_bracket_exp):
3537         Fix memory leak for some invalid regular expressions.
3538
3539         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3540         * lib/regex_internal.c, lib/regexec.c:
3541         Fix unnecessary overallocation due to incomplete character.  When
3542         incomplete characters are found at the end of a string the code
3543         ran amok and allocated lots of memory.  Stricter limits are now in
3544         place.
3545
3546         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3547         * lib/regex.h: Update documentation.
3548
3549         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3550         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3551
3552         2010-05-05 Andreas Schwab <schwab@redhat.com>
3553         * lib/regexec.c (find_collation_sequence_value):
3554         Fix lookup of collation sequence value during regexp matching.
3555
3556         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3557         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3558
3559         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3560         * lib/regex.h: Cleanup namespace.
3561
3562         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3563         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3564
3565         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3566         * lib/regex_internal.h: Prevent some declarations and definitions
3567         to be seen when used in tests.
3568
3569         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3570         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3571         __libc_lock_* macros if not _LIBC.
3572         (struct re_dfa_t): Add lock.
3573
3574 2012-02-07  Eric Blake  <eblake@redhat.com>
3575
3576         maint.mk: also prohibit lower-case @var@
3577         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3578         lower case, like @top_srcdir@.
3579
3580 2012-02-04  Eric Blake  <eblake@redhat.com>
3581
3582         canonicalize: avoid uninitialized memory use
3583         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3584         random '/' left in dest.
3585         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3586
3587 2012-02-04  Bruno Haible  <bruno@clisp.org>
3588
3589         isatty: Fix test failure of ptsname_r on native Windows.
3590         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3591         and don't set errno.
3592         (isatty): Test first whether fd is valid. Set errno when returning 0.
3593
3594 2012-02-04  Bruno Haible  <bruno@clisp.org>
3595
3596         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3597         * tests/test-spawn-pipe-main.c: Include progname.h.
3598         (main): Invoke set_program_name.
3599         * modules/spawn-pipe-tests (Depends-on): Add progname.
3600
3601         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3602         * tests/test-nonblocking-socket-main.c: Include progname.h.
3603         (main): Invoke set_program_name.
3604         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3605
3606         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3607         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3608         (main): Invoke set_program_name.
3609         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3610
3611 2012-02-04  Eric Blake  <eblake@redhat.com>
3612
3613         canonicalize-lgpl: fix // handling
3614         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3615
3616         canonicalize: fix // handling
3617         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3618         /// to //, since only // is special.
3619
3620 2012-02-04  Bruno Haible  <bruno@clisp.org>
3621
3622         ioctl: Fix test failure on native Windows.
3623         * lib/ioctl.c: Include msvc-nothrow.h.
3624         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3625
3626 2012-02-04  Bruno Haible  <bruno@clisp.org>
3627
3628         fsync: Avoid test failure on native Windows.
3629         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3630         read-only.
3631
3632 2012-02-04  Bruno Haible  <bruno@clisp.org>
3633
3634         sys_select: Avoid syntax error on OpenBSD 5.0.
3635         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3636         currently being included, just include the system's <sys/select.h>.
3637
3638 2012-02-04  Bruno Haible  <bruno@clisp.org>
3639
3640         sys_select: Avoid syntax error on OpenBSD 5.0.
3641         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3642         <sys/select.h>, not before.
3643         Reported by Jiri B <jirib@devio.us>.
3644
3645 2012-02-04  Bruno Haible  <bruno@clisp.org>
3646
3647         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3648         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3649         global variables.
3650         * tests/test-get-rusage-data.c (main): Likewise.
3651         Reported by Jim Meyering.
3652
3653 2012-02-04  Bruno Haible  <bruno@clisp.org>
3654
3655         stdioext: Fix last commit.
3656         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3657
3658 2012-02-03  Bruno Haible  <bruno@clisp.org>
3659
3660         stdioext: Add tentative support for Plan9.
3661         * lib/stdio-impl.h: Include <errno.h>.
3662         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3663         * lib/freadable.c (freadable): Likewise.
3664         * lib/fwritable.c (fwritable): Likewise.
3665         * lib/fbufmode.c (fbufmode): Likewise.
3666         * lib/freading.c (freading): Likewise.
3667         * lib/fwriting.c (fwriting): Likewise.
3668         * lib/freadptr.c (freadptr): Likewise.
3669         * lib/freadseek.c (freadptrinc): Likewise.
3670         * lib/freadahead.c (freadahead): Likewise.
3671         * lib/fpurge.c (fpurge): Likewise.
3672         * lib/fseeko.c (rpl_fseeko): Likewise.
3673         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3674         Reported by Jens Staal <staal1978@gmail.com>.
3675
3676 2012-02-02  Jim Meyering  <meyering@redhat.com>
3677
3678         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3679         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3680         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3681         not even to try to add the attribute.  Instead, add a pragma to suppress
3682         the suggestion/warning.
3683
3684 2012-01-31  Karl Berry  <karl@gnu.org>
3685
3686         setstate doc: typo.
3687         * doc/posix-functions/setstate.texi (setstate): { not (.
3688
3689 2012-01-31  Bruno Haible  <bruno@clisp.org>
3690
3691         popen: Make more robust on Windows.
3692         * lib/popen.c: On native Windows, use the _popen based code even if
3693         HAVE_POPEN is set.
3694         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3695         environment variable on native Windows.
3696
3697 2012-01-30  Bruno Haible  <bruno@clisp.org>
3698
3699         pclose: Fix typo.
3700         * lib/stdio.in.h (pclose): Fix typo in warning message.
3701
3702 2012-01-30  Bruno Haible  <bruno@clisp.org>
3703
3704         doc about getlogin_r, setstate.
3705         * doc/posix-functions/getlogin_r.texi: List the incompatible
3706         declaration problem under "not fixed by gnulib".
3707         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3708         problem on Solaris 11 and other platforms.
3709
3710 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3711             Bruno Haible  <bruno@clisp.org>
3712
3713         poll tests: Make test more robust.
3714         * tests/test-poll.c: Include macros.h.
3715         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3716         return value of various I/O operations.
3717         * modules/poll-tests (Files): Add tests/macros.h.
3718
3719 2012-01-30  Bruno Haible  <bruno@clisp.org>
3720
3721         sys_stat: Fix support for mingw64 and MSVC.
3722         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3723         header files already do it.
3724         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3725         stat itself.
3726         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3727
3728 2012-01-30  Bruno Haible  <bruno@clisp.org>
3729
3730         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3732         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3733
3734 2012-01-29  Bruno Haible  <bruno@clisp.org>
3735
3736         quotearg: Fix test failure on MacOS X 10.5.
3737         * tests/test-quotearg-simple.c: Include localcharset.h.
3738         (main): If the locale encoding is not ASCII, bypass the tests of
3739         locale_quoting_style and clocale_quoting_style.
3740         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3741
3742 2012-01-29  Jim Meyering  <meyering@redhat.com>
3743
3744         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3745         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3746         detect uses of canonicalize_file_name.
3747
3748 2012-01-28  Bruno Haible  <bruno@clisp.org>
3749
3750         test-framework-sh: Fix test failure with AIX 7.1 diff.
3751         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3752         in column 1, like 'diff -c' does.
3753         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3754         whether 'diff -u' is used. Instead, test whether the output contains
3755         some '@' character.
3756
3757 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3758
3759         strtoimax: eliminate need for stdint.h, inttypes.h checks
3760         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3761         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3762         the prerequisites for a recently-introduced strtoimax test.
3763         I guess this might cause strtoimax to be replaced when not
3764         strictly necessary on older hosts, but this shouldn't introduce
3765         any bugs and it should make Emacs 'configure' faster on typical
3766         modern hosts.  Problem discovered when importing the latest gnulib
3767         to an Emacs test version.
3768         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3769
3770 2012-01-28  Bruno Haible  <bruno@clisp.org>
3771
3772         sys_time: Override 'struct timeval' on some native Windows platforms.
3773         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3774         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3775         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3776         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3777         needs to be overridden.
3778         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3779         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3780         * tests/test-sys_select.c: Check that the tv_sec member has the same
3781         size as a 'time_t'.
3782         * tests/test-sys_time.c: Likewise.
3783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3784         is set, set also REPLACE_GETTIMEOFDAY.
3785         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3786         convert the resulting 'struct timeval' before returning.
3787         * lib/select.c: Include <sys/time.h>.
3788         (select, timeval): Undefine at the right place.
3789         * modules/select (Depends-on): Add sys_time.
3790         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3791         some Windows platforms.
3792         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3793
3794 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3795
3796         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3797         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3798         an integer.
3799         * lib/fcntl.c (dupfd): Likewise.
3800         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3801
3802 2012-01-28  Bruno Haible  <bruno@clisp.org>
3803
3804         fcntl: Avoid compilation error on native Windows.
3805         * modules/fcntl (Depends-on): Add 'close'.
3806
3807 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3808
3809         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3810         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3811         pointer to an integer.
3812         * lib/poll.c (IsConsoleHandle): Likewise.
3813         * lib/isatty.c (IsConsoleHandle): Likewise.
3814
3815 2012-01-28  Jim Meyering  <meyering@redhat.com>
3816
3817         doc: clarify README-release
3818         * top/README-release: Clarify: you should make a point to have
3819         the latest stable versions of build tools in your PATH, and the
3820         reference to buildreq is solely for its list of tool names, not
3821         for its minimal-functional version numbers.
3822         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3823
3824         maint.mk: use more readable (yet functionally equivalent) quoting
3825         It is common to quote a single quote in a single quoted string like
3826         this:  '...'\''...'.  Unless you know the idiom, that looks like
3827         gibberish, so prefer to double-quote the string when possible.
3828         Then you can use a more readable, lone single quote: "...'..."
3829         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3830         "don't" is more readable than the equivalent 'don'\''t'.
3831         (sc_cast_of_x_alloc_return_value): Likewise.
3832         (sc_cast_of_alloca_return_value): Likewise.
3833         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3834         rather than '\'':'\''.
3835
3836 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3837
3838         stdalign: relax _Alignof and tighten _Alignas test
3839         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3840         as it was too strict: alignof must divide offsetof, but it need
3841         not equal offsetof.  Inspired by Joseph S. Myers's comment
3842         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3843         Conversely, tighten the _Alignas test a bit, as the resulting
3844         alignment must be exactly 8.
3845
3846 2012-01-27  Bruno Haible  <bruno@clisp.org>
3847
3848         stdalign: Document the last change.
3849         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3850
3851 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3852
3853         stdalign: check that alignof and offsetof are consistent
3854         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3855         Problem reported for gnulib by Richard W.M. Jones in
3856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3857
3858 2012-01-27  Jim Meyering  <meyering@redhat.com>
3859
3860         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3861         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3862         convert a sequence with gaps to the minimal containing range.
3863         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3864         * tests/test-update-copyright.sh: Test for this.
3865         The FSF confirmed it is ok to do this, assuming there is at
3866         least one significant change per year in the affected range:
3867         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3868
3869 2012-01-26  Bruno Haible  <bruno@clisp.org>
3870
3871         pipe2: refine doc about thread-safety
3872         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3873         multithread-safety problem.
3874         * doc/glibc-functions/accept4.texi: Likewise.
3875
3876 2012-01-26  Bruno Haible  <bruno@clisp.org>
3877
3878         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3879         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3880         In the test program, include <fcntl.h>, for O_RDONLY.
3881
3882 2012-01-26  Eric Blake  <eblake@redhat.com>
3883
3884         pipe2: document lack of thread-safety in replacement
3885         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3886         issue in replacement.
3887         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3888         Based on a report by Eric Wong.
3889
3890 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3891             Bruno Haible  <bruno@clisp.org>
3892
3893         malloca: Avoid warnings on x86_64 mingw64.
3894         * lib/malloca.c: Include <stdint.h>.
3895         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3896         * modules/malloca (Depends-on): Add stdint.
3897         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3898
3899 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3900
3901         obstack: remove __STDC__ conditionals
3902         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3903         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3904         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3905         m4/include_next.m4 as the only gnulib-maintained places that still
3906         refer to __STDC__.
3907
3908 2012-01-24  Bruno Haible  <bruno@clisp.org>
3909
3910         havelib: Modern quoting.
3911         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3912         the recent change to the GNU coding standards.
3913
3914 2012-01-24  Bruno Haible  <bruno@clisp.org>
3915
3916         stdint: Improve support for Android.
3917         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3918         Reported by Simon Josefsson <simon@josefsson.org>.
3919
3920 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3921
3922         doc: omit trailing empty lines from INSTALL etc.
3923         * doc/Makefile (INSTALL): Omit trailing empty lines.
3924         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3925         omit trailing empty lines.  This simplifies the build procedure.
3926
3927 2012-01-23  Jim Meyering  <meyering@redhat.com>
3928
3929         tests: avoid spurious warnings about gl_sockets_startup
3930         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3931         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3932         reporting a "statement with no effect".
3933         * tests/test-accept.c (main): Mark as "(void)".
3934         * tests/test-accept4.c (main): Likewise.
3935         * tests/test-bind.c (main): Likewise.
3936         * tests/test-connect.c (main): Likewise.
3937         * tests/test-getpeername.c (main): Likewise.
3938         * tests/test-getsockname.c (main): Likewise.
3939         * tests/test-getsockopt.c (main): Likewise.
3940         * tests/test-listen.c (main): Likewise.
3941         * tests/test-recv.c (main): Likewise.
3942         * tests/test-recvfrom.c (main): Likewise.
3943         * tests/test-send.c (main): Likewise.
3944         * tests/test-sendto.c (main): Likewise.
3945         * tests/test-setsockopt.c (main): Likewise.
3946         * tests/test-shutdown.c (main): Likewise.
3947
3948 2012-01-21  Bruno Haible  <bruno@clisp.org>
3949
3950         locale-fr.m4: Fix for Android.
3951         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3952         failure of the test program on Bionic libc.
3953
3954 2012-01-21  Jim Meyering  <meyering@redhat.com>
3955
3956         bootstrap: fail when bootstrap_post_import_hook fails
3957         Otherwise, it's far too easy to miss diagnostics emitted
3958         between gnulib-tool's output and that of running configure.
3959         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3960
3961 2012-01-17  Jim Meyering  <meyering@redhat.com>
3962
3963         maint: enable sc_trailing_blank
3964         * build-aux/pmccabe.css: Remove trailing blanks.
3965         * doc/acl-cygwin.txt: Likewise.
3966         * doc/gnu-oids.texi: Likewise
3967         * cfg.mk: Enable sc_trailing_blank.
3968         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3969
3970 2012-01-17  Jim Meyering  <meyering@redhat.com>
3971
3972         maint: enable sc_prohibit_openat_without_use
3973         * cfg.mk: Enable sc_prohibit_openat_without_use.
3974         Exempt lib/selinux-at.c.
3975
3976 2012-01-17  Jim Meyering  <meyering@redhat.com>
3977
3978         maint: enable sc_prohibit_cloexec_without_use
3979         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3980         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3981
3982 2012-01-17  Jim Meyering  <meyering@redhat.com>
3983
3984         maint: enable sc_prohibit_intprops_without_use
3985         * cfg.mk: Enable sc_prohibit_intprops_without_use
3986         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3987
3988 2012-01-17  Jim Meyering  <meyering@redhat.com>
3989
3990         maint: enable sc_prohibit_hash_pjw_without_use
3991         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3992         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3993         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3994         following " (".
3995
3996 2012-01-17  Jim Meyering  <meyering@redhat.com>
3997
3998         maint: enable double-word-prohibiting rule
3999         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4000         Exempt three files.
4001
4002 2012-01-17  Jim Meyering  <meyering@redhat.com>
4003
4004         maint: remove empty lines at EOF, but excluding modules/*
4005         Apply syntax rules at home as well as abroad.  Most changes
4006         were induced by running this:
4007           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4008             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4009             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4010         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4011         Exempt modules/* and two binary files.
4012         Also exempt doc/INSTALL*, per request from Bruno Haible.
4013         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4014         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4015         * doc/Copyright/request-assign.future: Likewise.
4016         * doc/Copyright/request-disclaim.changes: Likewise.
4017         * doc/INSTALL: Likewise.
4018         * doc/INSTALL.ISO: Likewise.
4019         * doc/INSTALL.UTF-8: Likewise.
4020         * doc/acl-cygwin.txt: Likewise.
4021         * doc/acl-resources.txt: Likewise.
4022         * doc/fdl-1.2.texi: Likewise.
4023         * doc/fdl-1.3.texi: Likewise.
4024         * doc/fdl.texi: Likewise.
4025         * lib/argp-pin.c: Likewise.
4026         * lib/round.c: Likewise.
4027         * lib/unicase/u16-totitle.c: Likewise.
4028         * lib/unictype/block_test.c: Likewise.
4029         * lib/uninorm/canonical-decomposition.c: Likewise.
4030         * m4/README: Likewise.
4031         * m4/relocatable-lib.m4: Likewise.
4032         * tests/test-isnand-nolibm.c: Likewise.
4033         * tests/test-isnand.c: Likewise.
4034         * tests/uninorm/NormalizationTest.txt: Likewise.
4035
4036 2012-01-17  Jim Meyering  <meyering@redhat.com>
4037
4038         maint: add framework to run syntax-check rules against gnulib sources
4039         * cfg.mk: New file, to disable all currently-failing tests.
4040         We'll enable them one by one, as they are made to pass.
4041         * Makefile (sc_maint): New rule.
4042
4043 2012-01-21  Bruno Haible  <bruno@clisp.org>
4044
4045         stdint: Add support for Android.
4046         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4047         include the system's <stdint.h>.
4048         Reported by Simon Josefsson <simon@josefsson.org>.
4049
4050 2012-01-19  Jim Meyering  <meyering@redhat.com>
4051
4052         bootstrap: add bootstrap_post_import_hook
4053         Bison does still need something like the gnulib_mk_hook whose
4054         invocation I had to remove along with slurp in commit 767ccd40.
4055         Technically, we could get along without it, but doing so would
4056         have required living with a warning and a mandatory post-bootstrap
4057         automake rerun.
4058         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4059         (bootstrap_post_import_hook): New function.
4060         Invoke it after gnulib-tool --import and before autoreconf.
4061
4062 2012-01-18  Jim Meyering  <meyering@redhat.com>
4063
4064         gitlog-to-changelog: don't use "no_"-prefixed variable name
4065         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4066         to enable both --cluster and --no-cluster.  Change variable name,
4067         s/\$no_cluster/$cluster/, and reverse usage to match.
4068
4069         gitlog-to-changelog: use "||", not "or" in expressions
4070         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4071         expressions.
4072
4073 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4074
4075         gitlog-to-changelog: new option --no-cluster
4076         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4077         clustering of adjacent commit messages.
4078
4079 2012-01-17  Jim Meyering  <meyering@redhat.com>
4080
4081         maint: spell file systems with two words, not one
4082         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4083         two words, not one.
4084
4085 2012-01-16  Jim Meyering  <meyering@redhat.com>
4086
4087         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4088         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4089
4090 2012-01-16  Eric Blake  <eblake@redhat.com>
4091
4092         bootstrap: cater to autoconf 2.59
4093         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4094         is not available.
4095
4096         bootstrap: properly check for libtool
4097         * build-aux/bootstrap (libtoolize): Also run libtool when older
4098         usage is detected.
4099
4100 2012-01-15  Bruno Haible  <bruno@clisp.org>
4101
4102         Improve support for MSVC 9.
4103         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4104         clashes on MSVC.
4105         * lib/fcntl.in.h: Likewise.
4106         * lib/stdlib.in.h: Likewise.
4107         * lib/sys_stat.in.h: Likewise.
4108
4109 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4110
4111         gnupload: we hold the master copy of this script now
4112         For motivation and more information, see:
4113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4114         * build-aux/gnupload: Make it clear in the heading comments that the
4115         master copy of this file is maintained by gnulib.  Since we are at
4116         it, bump its copyright year and ...
4117         ($scriptversion): ... the date in its version.
4118         ($usage): Patches and bug reports should be sent to the gnulib list,
4119         not the automake one.
4120         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4121         anymore.
4122
4123 2012-01-15  Bruno Haible  <bruno@clisp.org>
4124
4125         Fix module 'random'.
4126         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4127         initstate, setstate are declared.
4128
4129 2012-01-14  Bruno Haible  <bruno@clisp.org>
4130
4131         Tests for module 'random'.
4132         * modules/random-tests: New file.
4133         * tests/test-random.c: New file, based on tests/test-random_r.c.
4134
4135         New module 'random'.
4136         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4137         declarations.
4138         * lib/random.c: New file, based on glibc/stdlib/random.c.
4139         * m4/random.m4: New file.
4140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4141         HAVE_RANDOM.
4142         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4143         * modules/random: New file.
4144         * config/srclist.txt: Add an entry for random.c.
4145         * doc/posix-functions/random.texi: Mention the 'random' module.
4146         * doc/posix-functions/initstate.texi: Likewise.
4147         * doc/posix-functions/setstate.texi: Likewise.
4148         * doc/posix-functions/srandom.texi: Likewise.
4149
4150 2012-01-12  Bruno Haible  <bruno@clisp.org>
4151
4152         random_r: Use common idioms.
4153         * lib/random_r.c: Include <stdlib.h> first.
4154
4155         random_r: Override incompatible API on AIX, OSF/1.
4156         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4157         Override the system function if REPLACE_RANDOM_R is 1.
4158         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4159         and OSF/1, set REPLACE_RANDOM_R.
4160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4161         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4162         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4163         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4164         * doc/glibc-functions/random_r.texi: Likewise.
4165         * doc/glibc-functions/setstate_r.texi: Likewise.
4166
4167         random_r: Support for MSVC 9.
4168         * lib/random_r.c: Include stdint.h, not inttypes.h.
4169
4170 2012-01-12  Eric Blake  <eblake@redhat.com>
4171
4172         inet_ntop: guard extra work by IF_LINT
4173         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4174         better code generation when not checking for warnings.
4175         Suggested by Paul Eggert and Jim Meyering.
4176
4177         strptime: fix regression on mingw
4178         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4179         Fix regression.  Reported by Bruno Haible.
4180
4181 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4182             Bruno Haible  <bruno@clisp.org>
4183
4184         copy-file: add error-code-returning variant.
4185         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4186         (qcopy_file_preserving): New declaration.
4187         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4188         copy_file_preserving. Change return type to 'int'. Don't emit an error
4189         message here.
4190         (copy_file_preserving): New function.
4191         * tests/test-copy-file.c: Include <stdlib.h>.
4192         (main): Test qcopy_file_preserving if the environment variable
4193         NO_STDERR_OUTPUT is set.
4194         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4195         with NO_STDERR_OUTPUT
4196         * tests/test-copy-file-2.sh: Likewise.
4197
4198 2012-01-10  Bruno Haible  <bruno@clisp.org>
4199
4200         copy-file: Use 'quote' module consistently.
4201         * lib/copy-file.c (copy_file_preserving): Use quote().
4202
4203         copy-file: Refactor.
4204         * lib/copy-file.c: Include quote.h.
4205         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4206         message here.
4207         * modules/copy-file (Depends-on): Add quote.
4208
4209         acl: Export qcopy_acl.
4210         * lib/acl.h (qcopy_acl): New declaration.
4211         * lib/copy-acl.c (qcopy_acl): Make non-static.
4212
4213         acl: Rename a local variable.
4214         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4215
4216         acl: Align return values of copy_acl and qcopy_acl.
4217         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4218         maybe < -1.
4219
4220 2012-01-11  Eric Blake  <eblake@redhat.com>
4221
4222         strptime: silence gcc warnings
4223         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4224         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4225         Reported by Daniel P. Berrange.
4226
4227         inet_ntop: silence gcc warning
4228         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4229         Reported by Daniel P. Berrange.
4230
4231 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4232
4233         getloadavg test: skip the test on GNU/Linux without /proc mounted
4234         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4235         file.  When /proc is not mounted, it always fails with ENOENT.
4236         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4237         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4238
4239 2012-01-10  Bruno Haible  <bruno@clisp.org>
4240
4241         regex: Avoid link error on MSVC 9.
4242         * modules/regex (Depends-on): Add wctype.
4243
4244 2012-01-10  Bruno Haible  <bruno@clisp.org>
4245
4246         doc: Mention --with-tests option.
4247         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4248         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4249         --with-tests.
4250         Reported by Reuben Thomas.
4251
4252 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4253
4254         users.txt: order package names lexicographically.
4255         * users.txt: Order package names lexicographically.
4256
4257 2012-01-10  Jim Meyering  <meyering@redhat.com>
4258
4259         maint.mk: fix description in comment
4260         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4261
4262         ignore-value: remove deprecated ignore_ptr function
4263         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4264         * NEWS: Note this.
4265
4266 2012-01-09  Jim Meyering  <meyering@redhat.com>
4267
4268         test-init.sh: avoid a subshell
4269         * tests/test-init.sh: Remove protective subshell.
4270         Suggested by Bernhard Voelker.  While a subshell is normally
4271         required to protect against older shells (Solaris, FreeBSD) that
4272         warn about a missing program before performing redirection, the
4273         shell-selection tests performed by init.sh probably exclude any
4274         offending shell.
4275
4276 2012-01-08  Bruno Haible  <bruno@clisp.org>
4277
4278         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4279         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4280         variable.
4281
4282 2012-01-08  Bruno Haible  <bruno@clisp.org>
4283
4284         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4285         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4287         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4288         macro.
4289         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4290         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4291         * lib/spawn_faction_addopen.c: Add workaround implementation if
4292         HAVE_WORKING_POSIX_SPAWN.
4293         * modules/spawn (Makefile): Substitute
4294         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4295         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4296         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4297         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4298         (Depends-on): Update conditions.
4299         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4300         the Solaris 11 bug.
4301
4302 2012-01-08  Bruno Haible  <bruno@clisp.org>
4303
4304         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4305         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4306         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4307         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4308         macro.
4309         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4310         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4311         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4312         HAVE_WORKING_POSIX_SPAWN.
4313         * modules/spawn (Makefile): Substitute
4314         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4315         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4316         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4318         (Depends-on): Update conditions.
4319         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4320         the Solaris 11 bug.
4321
4322 2012-01-08  Bruno Haible  <bruno@clisp.org>
4323
4324         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4325         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4326         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4328         HAVE_WORKING_POSIX_SPAWN.
4329         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4330         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4332         * lib/spawn_faction_addclose.c: Add workaround implementation if
4333         HAVE_WORKING_POSIX_SPAWN.
4334         * modules/spawn (Makefile): Substitute
4335         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4336         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4337         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4338         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4339         (Depends-on): Update conditions.
4340         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4341         the Solaris 11 bug.
4342
4343 2012-01-08  Bruno Haible  <bruno@clisp.org>
4344
4345         doc: Update for Solaris 11 2011-11.
4346         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4347         * m4/printf.m4: Update comments.
4348
4349 2012-01-08  Bruno Haible  <bruno@clisp.org>
4350
4351         mktime: Avoid compilation error on Solaris 11.
4352         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4353
4354 2012-01-08  Bruno Haible  <bruno@clisp.org>
4355
4356         doc: Small fix.
4357         * doc/posix-headers/nl_types.texi: Correct platforms list.
4358
4359 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4360
4361         Add lgpl-3.0 module.
4362         * MODULES.html.sh (Support for building documentation): Add
4363         lgpl-3.0.
4364         * modules/lgpl-3.0: New file.
4365
4366 2012-01-08  Jim Meyering  <meyering@redhat.com>
4367
4368         select.c: indent with spaces, not TABs
4369         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4370
4371 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4372
4373         quotearg: do not use grave accent for left quote
4374         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4375         locale_quoting_style.
4376         (quotearg_buffer_restyled): Fix example.
4377         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4378
4379 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4380
4381         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4382         Most programs do not have translation catalogs for English and much
4383         less separate catalogs for British and American English.  Drop the
4384         suggestion to translators about these two, and provide it
4385         automatically for Unicode locales.  Like most programs, even those
4386         using American English, we use single quotation marks.  This conflicts
4387         with the American typographic convention, but works better when you
4388         cite the entire error message within double quotes.  It also tries not
4389         to clash with established practice and with what non-gnulib programs
4390         will usually do.
4391         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4392         using an UTF-8 or GB-18030 locale.  The list of other locales with
4393         quotes was provided by Bruno Haible.
4394         (quotearg_buffer_restyled): Adjust instructions to translators.
4395         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4396         text, since this would be wrong when using Unicode.
4397         * modules/quotearg: Depend on c-strcaseeq.
4398
4399 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4400
4401         quotearg: fix Wikipedia link
4402         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4403
4404 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4405
4406         Fix for mingw with MSVC9.
4407         * m4/ld-version-script.m4: Check that compiler rejects version
4408         scripts with syntax errors.  Reported by Bruno Haible
4409         <bruno@clisp.org>.
4410
4411 2012-01-06  Bruno Haible  <bruno@clisp.org>
4412
4413         Talk about "native Windows API", not "Woe32".
4414         * lib/accept4.c: Update comments to mention native Windows.
4415         * lib/execute.c: Likewise.
4416         * lib/fatal-signal.c: Likewise.
4417         * lib/localcharset.c: Likewise.
4418         * lib/nanosleep.c: Likewise.
4419         * lib/nl_langinfo.c: Likewise.
4420         * lib/pclose.c: Likewise.
4421         * lib/pipe-filter-gi.c: Likewise.
4422         * lib/pipe-filter-ii.c: Likewise.
4423         * lib/pipe.c: Likewise.
4424         * lib/pipe2.c: Likewise.
4425         * lib/popen.c: Likewise.
4426         * lib/progreloc.c: Likewise.
4427         * lib/relocatable.c: Likewise.
4428         * lib/sigaction.c: Likewise.
4429         * lib/sigprocmask.c: Likewise.
4430         * lib/spawn-pipe.h: Likewise.
4431         * lib/spawn-pipe.c: Likewise.
4432         * lib/spawni.c: Likewise.
4433         * lib/stat-time.h: Likewise.
4434         * lib/w32spawn.h: Likewise.
4435         * tests/test-isatty.c: Likewise.
4436         * lib/config.charset: More comments.
4437         * doc/gnulib-intro.texi: Mention native Windows.
4438         * doc/posix-functions/_Exit_C99.texi: Likewise.
4439         * doc/posix-headers/fcntl.texi: Likewise.
4440
4441 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4442
4443         argp: Avoid crash if translator uses % characters in a translation.
4444         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4445         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4446
4447 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4448
4449         doc: C11 and C++11 are now official
4450         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4451         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4452         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4453         * modules/stdalign:
4454         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4455
4456 2012-01-06  Bruno Haible  <bruno@clisp.org>
4457
4458         uc-is-grapheme-break tests: Tweak.
4459         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4460         message.
4461
4462 2012-01-06  Bruno Haible  <bruno@clisp.org>
4463
4464         test-init.sh: correct the test for diff -u
4465         * tests/test-init.sh: Also redirect stdout to /dev/null.
4466
4467 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4468
4469         Use ', not `, for quoting output.
4470         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4471         (print_changelog_deltas, get_tool_versions, main program):
4472         * build-aux/git-version-gen:
4473         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4474         * build-aux/move-if-change (help):
4475         * build-aux/useless-if-before-free (usage, main program):
4476         * check-module (parse_module_file, usage)
4477         (find_included_lib_files, check_module):
4478         * lib/argmatch.c (main) [TEST]:
4479         * lib/argp-help.c (_help):
4480         * lib/getopt1.c (main) [TEST]:
4481         * lib/git-merge-changelog.c (usage):
4482         * lib/xstrtol-error.c (xstrtol_error):
4483         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4484         * m4/argz.m4 (gl_FUNC_ARGZ):
4485         * m4/bison.m4 (gl_BISON):
4486         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4487         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4488         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4489         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4490         * m4/gc-random.m4 (gl_GC_RANDOM):
4491         * m4/intl.m4 (gt_CHECK_DECL):
4492         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4494         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4495         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4496         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4497         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4498         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4499         * tests/test-dirname.c (main):
4500         * tests/test-getpass.c (main):
4501         * tests/test-iconvme.c (main):
4502         * tests/test-parse-datetime.c (LOG):
4503         * tests/test-xstrtoimax.sh:
4504         * tests/test-xstrtol.sh:
4505         * tests/test-xstrtoll.sh:
4506         * tests/test-xstrtoumax.sh:
4507         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4508         * top/GNUmakefile (abort-due-to-no-makefile):
4509         Quote 'like this', not `like this', as per the recent change to
4510         the GNU coding standards.
4511
4512 2012-01-05  Bruno Haible  <bruno@clisp.org>
4513
4514         strtoimax: Don't force a replacement on systems where intmax_t is int.
4515         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4516         'intmax_t' is not larger than 'int'.
4517         Reported by Pádraig Brady <P@draigBrady.com>.
4518
4519 2012-01-05  Bruno Haible  <bruno@clisp.org>
4520
4521         doc: Mention NetBSD bugs.
4522         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4523         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4524
4525 2012-01-05  Bruno Haible  <bruno@clisp.org>
4526
4527         strtoumax tests: Enhance tests.
4528         * tests/test-strtoumax.c (main): Add tests for large values.
4529
4530 2012-01-05  Bruno Haible  <bruno@clisp.org>
4531
4532         strtoimax: Work around AIX 5.1 bug.
4533         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4534         definition.
4535         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4536         Set HAVE_STRTOIMAX.
4537         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4538         REPLACE_STRTOIMAX.
4539         * modules/inttypes-incomplete (Makefile.am): Substitute
4540         REPLACE_STRTOIMAX.
4541         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4542         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4543         (Depends-on): Update conditions.
4544         * tests/test-strtoimax.c (main): Add tests for large values.
4545         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4546
4547 2012-01-05  Bruno Haible  <bruno@clisp.org>
4548
4549         inttypes: Modernize.
4550         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4551         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4552         (Makefile.am): Update inttypes.h rule.
4553
4554 2012-01-05  Jim Meyering  <meyering@redhat.com>
4555
4556         init.sh: don't waste a subshell just to redirect stderr
4557         * tests/init.sh: In testing for diff -u and diff -c, use a
4558         stderr-redirecting exec inside `...` rather than a subshell.
4559
4560         test-init.sh: avoid failure on HP-UX 11.00
4561         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4562         resolves to diff -c or cmp.  Reported by Bruno Haible.
4563
4564 2012-01-05  Bruno Haible  <bruno@clisp.org>
4565
4566         Tests for module 'strtoull'.
4567         * modules/strtoull-tests: New file.
4568         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4569
4570 2012-01-05  Bruno Haible  <bruno@clisp.org>
4571
4572         Tests for module 'strtoll'.
4573         * modules/strtoll-tests: New file.
4574         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4575
4576 2012-01-05  Bruno Haible  <bruno@clisp.org>
4577
4578         Tests for module 'strtoul'.
4579         * modules/strtoul-tests: New file.
4580         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4581
4582 2012-01-05  Bruno Haible  <bruno@clisp.org>
4583
4584         Tests for module 'strtol'.
4585         * modules/strtol-tests: New file.
4586         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4587
4588 2012-01-04  Jim Meyering  <meyering@redhat.com>
4589
4590         test-init.sh: accommodate Solaris 5.10's different diff -u output
4591         * tests/test-init.sh: Also exempt @@ lines from the comparison
4592         of diff output, since Solaris 5.10 and GNU diff formats differ.
4593         Reported by Stefano Lattarini.
4594
4595 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4596
4597         test-posixtm: don't assume signed integer wraparound
4598         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4599         after signed integer overflow.  Inspired by (though it may not
4600         fix) Bruno Haible's bug report in
4601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4602
4603         Spell out "Windows 9x" and "Windows XP".
4604         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4605         "Windows 9x" and "WinXP" with "Windows XP".
4606
4607 2012-01-04  Jim Meyering  <meyering@redhat.com>
4608
4609         test-vc-list-files-cvs.sh: remove obsolete comment
4610         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4611         double exit.  Now that's all encapsulated via skip_ and Exit.
4612
4613 2012-01-04  Bruno Haible  <bruno@clisp.org>
4614
4615         Talk about "native Windows API", not "Win32".
4616         * lib/classpath.c: Update comments to mention native Windows.
4617         * lib/csharpexec.c: Likewise.
4618         * lib/dup2.c: Likewise.
4619         * lib/error.c: Likewise.
4620         * lib/fcntl.c: Likewise.
4621         * lib/filename.h: Likewise.
4622         * lib/findprog.c: Likewise.
4623         * lib/get-rusage-as.c: Likewise.
4624         * lib/get-rusage-data.c: Likewise.
4625         * lib/getpagesize.c: Likewise.
4626         * lib/javaexec.c: Likewise.
4627         * lib/msvc-inval.c: Likewise.
4628         * lib/msvc-nothrow.c: Likewise.
4629         * lib/nanosleep.c: Likewise.
4630         * lib/nonblocking.c: Likewise.
4631         * lib/printf-parse.c: Likewise.
4632         * lib/setlocale.c: Likewise.
4633         * lib/sigaction.c: Likewise.
4634         * lib/strerror_r.c: Likewise.
4635         * lib/tmpdir.c: Likewise.
4636         * lib/vasnprintf.c: Likewise.
4637         * lib/w32spawn.h: Likewise.
4638         * lib/waitpid.c: Likewise.
4639         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4640         * m4/locale-ar.m4: Likewise.
4641         * m4/locale-fr.m4: Likewise.
4642         * m4/locale-ja.m4: Likewise.
4643         * m4/locale-tr.m4: Likewise.
4644         * m4/locale-zh.m4: Likewise.
4645         * m4/printf.m4: Likewise.
4646         * tests/test-cloexec.c: Likewise.
4647         * tests/test-copy-acl.sh: Likewise.
4648         * tests/test-copy-file.sh: Likewise.
4649         * tests/test-file-has-acl.sh: Likewise.
4650         * tests/test-set-mode-acl.sh: Likewise.
4651         * tests/test-dup-safer.c: Likewise.
4652         * tests/test-dup2.c: Likewise.
4653         * tests/test-dup3.c: Likewise.
4654         * tests/test-fcntl.c: Likewise.
4655         * tests/test-nonblocking-pipe.h: Likewise.
4656         * tests/test-nonblocking-socket.h: Likewise.
4657         * tests/test-pipe.c: Likewise.
4658         * tests/test-pipe2.c: Likewise.
4659         * tests/test-spawn-pipe-child.c: Likewise.
4660         * doc/acl-resources.txt: Likewise.
4661         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4662         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4663         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4664         * lib/localcharset.c: Update comments to mention native Windows.
4665         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4666         * lib/localename.c: Likewise.
4667         * lib/progreloc.c: Likewise.
4668         * lib/relocatable.c: Likewise.
4669         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4670         (windows_compute_revents): Renamed from win32_compute_revents.
4671         (windows_compute_revents_socket): Renamed from
4672         win32_compute_revents_socket.
4673         * lib/select.c: Update comments to mention native Windows.
4674         (windows_poll_handle): Renamed from win32_poll_handle.
4675         * m4/threadlib.m4: Update comments to mention native Windows.
4676         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4677         --enable-threads=windows instead of --enable-threads=win32. Set
4678         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4679         * lib/glthread/lock.h: Update comments to mention native Windows.
4680         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4681         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4682         USE_WIN32_THREADS.
4683         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4684         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4685         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4686         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4687         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4688         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4689         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4690         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4691         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4692         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4693         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4694         * tests/test-tls.c: Likewise.
4695         Rationale:
4696         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4697         on both 32-bit and 64-bit Windows systems.
4698         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4699         line of distinction is between "native Windows" on one side and Unix/
4700         POSIX systems on the other side. More details in
4701         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4702         Suggested by Paul Eggert.
4703
4704 2012-01-03  Bruno Haible  <bruno@clisp.org>
4705
4706         isatty: Support for MSVC 9.
4707         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4708         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4709         (_isatty_nothrow): New function.
4710         (isatty): Use it instead of _isatty.
4711         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4712         * lib/poll.c (IsConsoleHandle): Likewise.
4713         * lib/select.c (IsConsoleHandle): Likewise.
4714         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4715         (gl_PREREQ_ISATTY): New macro.
4716         * modules/isatty (Depends-on): Add msvc-inval.
4717         (configure.ac): Invoke gl_PREREQ_ISATTY.
4718
4719 2012-01-03  Jim Meyering  <meyering@redhat.com>
4720
4721         maint.mk: remove temporary transition aid from over 1.5 years ago
4722         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4723         purpose was to aid in the transition (avoiding silent malfunction)
4724         from that old name to the new _sc_search_regexp.  This shim was
4725         added by commit 219c504b.
4726
4727         init.sh: do not try to accommodate compare arguments starting with "-"
4728         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4729         compare arguments that start with "-".  Besides, we do not worry
4730         about this when invoking diff or cmp; why start now with sed?
4731         Using "--" to separate options from argument would trigger sed
4732         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4733         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4734
4735 2012-01-02  Bruno Haible  <bruno@clisp.org>
4736
4737         Enhance tests for module 'isatty'.
4738         * modules/isatty-tests (Depends-on): Add pipe-posix.
4739         * tests/test-isatty.c: Include <fcntl.h>.
4740         (DEV_NULL): New macro.
4741         (main): Test the resut of isatty() also on regular files, pipes, and
4742         /dev/null.
4743
4744         New module 'isatty'.
4745         * lib/unistd.in.h (isatty): New declaration.
4746         * lib/isatty.c: New file, based on an idea of
4747         Bastien Roucariès <roucaries.bastien@gmail.com>.
4748         * m4/isatty.m4: New file.
4749         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4751         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4752         REPLACE_ISATTY.
4753         * modules/isatty: New file.
4754         * doc/posix-functions/isatty.texi: Mention the new module.
4755         Suggested by Paolo Bonzini.
4756
4757 2012-01-02  Bruno Haible  <bruno@clisp.org>
4758
4759         canonicalize: Tweak 2011-12-29 commit.
4760         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4761         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4762
4763 2012-01-02  Jim Meyering  <meyering@redhat.com>
4764
4765         gitlog-to-changelog: describe input syntax in --help output
4766         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4767
4768         gitlog-to-changelog: fix typo in --help: show backslash before email @
4769         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4770         in sources, but not in actual output.
4771
4772 2011-12-30  Jim Meyering  <meyering@redhat.com>
4773
4774         gitlog-to-changelog: don't malfunction when name contains %-directive
4775         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4776         in a name string cause trouble.  E.g., with a user name of "%s",
4777         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4778
4779 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4780
4781         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4782         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4783         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4784         the "  (tiny change)" notation that is appended to the standard
4785         ChangeLog "date  name  email" header line.
4786
4787 2012-01-01  Jim Meyering  <meyering@redhat.com>
4788
4789         test-framework-sh: init.sh: fix "make dist" failure
4790         When using gnulib-tool's --with-tests option and any module that
4791         depends on test-framework-sh, "make dist" would fail due to the
4792         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4793         in the gltests directory, and not in the gllib/ directory.
4794         One way to work around that is to move the EXTRA_DIST += init.sh
4795         from the primary module to the -tests one:
4796         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4797         * modules/test-framework-sh (Makefile.am): ...not here.
4798         Reported by Tom G. Christensen in
4799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4800
4801         version-etc: update copyright year reported by --version
4802         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4803
4804 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4805
4806         canonicalize: only stat() if required
4807         * lib/canonicalize.c (canonicalize_filename_mode):
4808         Avoid calling l?stat() when both CAN_MISSING,
4809         and CAN_NOLINKS are set, as we neither need
4810         to resolve symlinks or test component existence.
4811
4812 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         doc: cover st_ino issues once; add OpenVMS etc.
4815         * doc/posix-functions/stat.texi (stat):
4816         * doc/posix-functions/lstat.texi (lstat):
4817         * doc/posix-functions/fstatat.texi (fstatat):
4818         * doc/posix-functions/fstat.texi (fstat):
4819         Move general 'struct stat' stuff to sys_stat.texi,
4820         leaving behind a pointer.
4821         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4822         Merge duplicate info about 'struct stat' problems into here.
4823         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4824         and suggest partial workarounds.
4825
4826         same-inode: port to OpenVMS
4827         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4828         three st_ino values.
4829
4830 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4831
4832         canonicalize: fix references to stat() and lstat()
4833         * lib/canonicalize.c (canonicalize_filename_mode):
4834         Ensure references always resolve to a replacement
4835         function if required (even via a macro).
4836
4837 2011-12-30  Jim Meyering  <meyering@redhat.com>
4838
4839         gitlog-to-changelog: remove a little duplication
4840         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4841         rather than twice.
4842
4843 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4844
4845         canonicalize: add support for not resolving symlinks
4846         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4847         indicate we don't want to follow symlinks.  Also
4848         provide CAN_MODE_MASK to aid setting these existing
4849         mutually exclusive values.
4850         * lib/canonicalize.c (canonicalize_filename_mode):
4851         Extract the flags from can_mode parameter, which
4852         are currently just used to select between stat()
4853         and lstat().  Also ensure that mutually exclusive
4854         values are flagged immediately as invalid.
4855         * tests/test-canonicalize.c: Verify symlinks are
4856         not followed, and that invalid flag combinations
4857         are diagnosed.
4858
4859 2011-12-25  Jim Meyering  <meyering@redhat.com>
4860
4861         gitlog-to-changelog: do not clump multi-paragraph entries
4862         Identical header lines (date,name,email+coauthors) are suppressed,
4863         thus putting all entries with those same characteristics under
4864         a single header.  However, when a log entry consists of two or
4865         more paragraphs, it may not be clear where it starts and ends.
4866         This change makes it so that such an entry is always separated
4867         from others by a header line, even when that header would
4868         otherwise be suppressed.
4869         * build-aux/gitlog-to-changelog: Implement the above.
4870         Inspired by a related request from Stefano Lattarini in
4871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4872
4873 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4874
4875         announce-gen: fix `cmd' typo in diagnostic
4876         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4877         diagnostic: a missing '$' meant that the command was not output.
4878
4879 2011-12-23  Jim Meyering  <meyering@redhat.com>
4880
4881         test-framework-sh: distribute init.sh
4882         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4883         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4884         fail due to the lack of init.sh.
4885
4886         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4887         * modules/atexit-tests: Rather than listing tests/init.sh,
4888         now that there's a module for it, simply depend on that new module.
4889         * modules/closein-tests: Likewise.
4890         * modules/exclude-tests: Likewise.
4891         * modules/getcwd-tests: Likewise.
4892         * modules/perror-tests: Likewise.
4893         * modules/pread-tests: Likewise.
4894         * modules/pwrite-tests: Likewise.
4895         * modules/vc-list-files-tests: Likewise.
4896         * modules/verify-tests: Likewise.
4897         * modules/xalloc-die-tests: Likewise.
4898         * modules/xstrtoimax-tests: Likewise.
4899         * modules/xstrtol-tests: Likewise.
4900         * modules/xstrtoll-tests: Likewise.
4901         * modules/xstrtoumax-tests: Likewise.
4902         * modules/yesno-tests: Likewise.
4903
4904 2011-12-22  Jim Meyering  <meyering@redhat.com>
4905
4906         test-framework-sh: add minimal tests of init.sh's compare function
4907         * modules/test-framework-sh-tests: New file.
4908         * tests/test-init.sh: New file.
4909
4910         test-framework-sh: new module
4911         * modules/test-framework-sh: New file.
4912         * MODULES.html.sh (Support for maintaining and releasing projects):
4913         List it.
4914
4915         init.sh: do not emit simulated diff output to stderr
4916         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4917
4918 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4919
4920         .gitignore: ignore gnulib.dvi and regex.info
4921         * doc/.gitignore:add gnulib.dvi and regex.info
4922
4923 2011-12-22  Jim Meyering  <meyering@redhat.com>
4924
4925         init.sh: correct previous change
4926         * tests/init.sh (compare): My previous change was wrong.
4927         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4928
4929         init.sh: avoid unwarranted test failure when using "set -e"
4930         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4931         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4932         a use like "compare exp out" would get evoke an unconditional failure.
4933
4934 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4935
4936         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4937         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4938         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4939         autoreconf that did not.
4940         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4941         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4942
4943 2011-12-17  Jim Meyering  <meyering@redhat.com>
4944
4945         bootstrap: remove some now-unneeded code
4946         This script arose back when gnulib-tool was young.
4947         Since then, it has seen improvements that render much of this
4948         script unnecessary.  In particular, it can now make symlinks
4949         to the files it uses.  Also, I no longer see as much value in
4950         marking files as read-only via comments.
4951         If you relied on the symlink-creation feature of the preceding
4952         version of this script, you can get most of that functionality
4953         by adding the --symlink option to the definition of
4954         gnulib_tool_option_extras in your bootstrap.conf file.
4955         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4956         Run autopoint and libtoolize *before* gnulib-tool.
4957         After it, run an abbreviated autoreconf, rather than a loop around
4958         all tools.
4959         (slirp, bt_mark_as_generated): Remove functions.
4960
4961 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4962
4963         ftoastr: fix typo
4964         * lib/ftoastr.h: Fix misspelling in comment.
4965
4966 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4967
4968         * top/README-release: fix punctuation.
4969
4970 2011-12-17  Jim Meyering  <meyering@redhat.com>
4971
4972         bootstrap: correct the recent buildreq change
4973         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4974         had no effect.
4975         * build-aux/bootstrap (buildreq): Bracket each search term with
4976         "*...*", so that the shell "case" statement works as intended.
4977         Add comments.
4978
4979 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4980
4981         build: let bootstrap resort to wget when downloading .po files
4982         * build-aux/bootstrap (download_po_files): Fallback to wget when
4983         downloading the .po files via rsync fails.  This is necessary to
4984         bootstrap from behind a strict firewall.
4985
4986 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4987
4988         stdint: don't assume C++11 when compiling with g++
4989         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4991         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4992         work also in C++ before C++11, as that improperly inhibits
4993         generating a substitute stdint.h for that case.
4994
4995 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         alloca: protect comment from gnulib-tool
4998         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4999         that gnulib-tool doesn't think it's a license, and munge it to
5000         say "GCC version 3".
5001
5002 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5003
5004         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5005         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5006         $(abs_top_builddir) instead of $(top_builddir).
5007
5008 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5009
5010         strftime-tests: also test nanoseconds
5011         * tests/test-strftime.c (T): Add a test of %N.
5012
5013 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5014
5015         inttypes, stdint: add C++11 support
5016         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5017         when including inttypes.h and stdint.h.  Support this change to
5018         the standard.
5019         * doc/posix-headers/inttypes.texi (inttypes.h):
5020         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5021         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5022         Define if not defined already, for the benefit of pre-C++11 hosts.
5023         Define the standard format macros (e.g., PRId8) always.
5024         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5025         Likewise, if __cpluspus.  Define the standard constant and limit
5026         macros (e.g., INT8_C, INT8_MAX) always.
5027         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5028         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5029         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5030         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5031         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5032         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5033         Likewise.
5034
5035 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5036
5037         nonblocking tests: Fix test failure on Linux/PPC.
5038         Suggested by Prerna Saxena in
5039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5040         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5041         Set to 1100000.
5042
5043 2011-12-12  Jim Meyering  <meyering@redhat.com>
5044
5045         argmatch: don't hard-code `' when listing valid option arguments
5046         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5047         use the quote function to add quotes.  Use fputs rather than
5048         fprintf for the format string with no format directive.
5049
5050 2011-12-07  Eric Blake  <eblake@redhat.com>
5051
5052         bootstrap: detect tools required by gnulib-tool
5053         * build-aux/bootstrap (buildreq): Provide minimum implicit
5054         dependencies.
5055         * DEPENDENCIES: Mention patch as a prereq.
5056
5057 2011-12-04  Bruno Haible  <bruno@clisp.org>
5058
5059         sethostname: Port to Windows platforms.
5060         * lib/sethostname.c: Provide an alternate implementation for Windows
5061         platforms.
5062         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5063         (main): Skip the test if sethostname() fails with EPERM. On Windows
5064         platforms, don't check the result of gethostname().
5065
5066 2011-12-04  Bruno Haible  <bruno@clisp.org>
5067             Jim Meyering  <meyering@redhat.com>
5068
5069         tests: Avoid spurious error message on platforms without mktemp program.
5070         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5071
5072 2011-12-04  Bruno Haible  <bruno@clisp.org>
5073
5074         sethostname: Fix documentation.
5075         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5076         "not fixed" section.
5077
5078 2011-12-03  Bruno Haible  <bruno@clisp.org>
5079
5080         gnulib-tool: Verify that the License field is present and non-empty.
5081         * gnulib-tool (func_get_license_raw): New function, extracted from
5082         func_get_license.
5083         (func_get_license): Use it. Warn if the module is not a test module and
5084         has no license.
5085         Suggested by Jim Meyering.
5086
5087 2011-12-03  Bruno Haible  <bruno@clisp.org>
5088
5089         sethostname tests: Fix link error on mingw.
5090         * tests/test-sethostname1.c: New file, extracted from
5091         tests/test-sethostname.c.
5092         * tests/test-sethostname2.c: New file, extracted from
5093         tests/test-sethostname.c.
5094         * tests/test-sethostname.c: Remove file.
5095         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5096         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5097         (Depends-on): Add gethostname.
5098         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5099         Link the latter with $(GETHOSTNAME_LIB).
5100
5101         sethostname tests: Fix compilation error on mingw.
5102         * tests/test-sethostname.c: Don't include <sys/types.h>.
5103         (geteuid): Use a dummy value without uid_t.
5104         * modules/sethostname-tests (Depends-on): Remove sys_types.
5105
5106         sethostname tests: Avoid a gcc warning.
5107         * tests/test-sethostname.c (main): Remove an unused variable.
5108
5109         Tweak last commit.
5110         * modules/sethostname-tests (Files): Sort by decreasing importance.
5111         (configure.ac): Check for geteuid.
5112         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5113         the test when there's nothing to test. Drop an unnecessary cast.
5114         Improve an error message. Verify that the final sethostname() call
5115         succeeds.
5116
5117 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5118
5119         Add a test suite for the sethostname module.
5120         * modules/sethostname-tests: New file.  A test program
5121         for the sethostname module.
5122         * tests/test-sethostname.c: Likewise.
5123
5124 2011-12-03  Bruno Haible  <bruno@clisp.org>
5125
5126         Tweak last commit.
5127         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5128         Fix preprocessor directives indentation. Fix typos.
5129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5130         * modules/unistd (Makefile): Likewise.
5131
5132 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5133
5134         Integrate the sethostname module into unistd.
5135         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5136         into the unistd.h header.
5137         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5138         preprocessor directives.
5139         * modules/unistd: Setup the Makefile substitutions of the
5140         SETHOSTNAME preprocessor directives.
5141
5142 2011-12-03  Bruno Haible  <bruno@clisp.org>
5143
5144         Tweak last commit.
5145         * lib/sethostname.c: Don't include <string.h>.
5146         (sethostname): No need to copy the argument string to the stack. Don't
5147         call clearerr. Preserve errno when fprintf failed.
5148         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5149         Don't invoke AC_REPLACE_FUNCS.
5150         * modules/sethostname (Link): Remove empty section.
5151         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5152         failure problem.
5153
5154 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5155
5156         New module 'sethostname'.
5157         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5158         for systems that lack it.
5159         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5160         sethostname declaration and function.
5161         * modules/sethostname: New file.  Define the sethostname module.
5162
5163 2011-12-03  Bruno Haible  <bruno@clisp.org>
5164
5165         Tweak last commit.
5166         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5167
5168 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5169
5170         Split the HOST_NAME_MAX detection into a separate m4 macro.
5171         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5172         macro so it can be used by the pending sethostname module.
5173
5174 2011-12-03  Bruno Haible  <bruno@clisp.org>
5175
5176         Fix module descriptions syntax.
5177         * modules/argv-iter (License): Fix syntax.
5178         * modules/di-set (License): Likewise.
5179         * modules/ino-map (License): Likewise.
5180         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5181
5182 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5183
5184         stdalign: port to Clang 3.0
5185         Problem reported by Simon Josefsson in
5186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5187         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5188         which has <stdalign.h> but which does not define alignof.
5189         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5190
5191 2011-12-01  Eric Blake  <eblake@redhat.com>
5192
5193         mktempd: silence dd usage
5194         * build-aux/mktempd (rand_bytes): Silence dd.
5195
5196 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5197
5198         manywarnings: Don't mention gcc version in docstring.
5199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5200         Jim Meyering <meyering@redhat.com>.
5201
5202 2011-11-30  Jim Meyering  <meyering@redhat.com>
5203
5204         hash: mark a few floating point constants with "f" suffix
5205         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5206         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5207         floating point constants with "f", since they're destined to be
5208         saved/used as "float"s.
5209
5210 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5211
5212         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5213         * tests/test-float.c (test_long_double): Correct and re-enable the
5214         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5215
5216 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5217
5218         Avoid subtracting two pointers that don't point into the same block.
5219         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5220         only pointers into the same memory block are subtracted. We cannot
5221         assume that sizeof (ptrdiff_t) == sizeof (void *).
5222
5223 2011-11-29  Eric Blake  <eblake@redhat.com>
5224
5225         maint.mk: add syntax check for use of compare from init.sh
5226         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5227         moved here from coreutils.
5228
5229         manywarnings: drop -Wunsuffixed-float-constants
5230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5231         '1.0D', which is the only way to silence this warning for 'double'.
5232
5233 2011-11-29  Jim Meyering  <meyering@redhat.com>
5234
5235         hash: mark compute_bucket_size with the pure attribute
5236         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5237
5238         quotearg, propername: correct pragma guard expression
5239         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5240         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5241
5242 2011-11-28  Jim Meyering  <meyering@redhat.com>
5243
5244         propername: do not mark proper_name with the const attribute
5245         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5246         since it examines data pointed to by its parameter.
5247         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5248         the suggestion from -Wsuggest-attribute=const.
5249
5250         propername: mark one more function as const
5251         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5252
5253 2011-11-27  Jim Meyering  <meyering@redhat.com>
5254
5255         mark functions with const and pure attributes
5256
5257         Mark functions per suggestions from gcc-4.6 when using these options:
5258         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5259         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5260         Follow these guidelines: when possible, apply the attribute to
5261         an extern declaration, not to its definition.  Apply it to the
5262         definition only when the definition is static.
5263         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5264         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5265         * lib/base64.h (isbase64): Likewise.
5266         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5267         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5268         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5269         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5270         (c_tolower, c_toupper): Likewise.
5271         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5272         * lib/chdir-long.c (find_non_slash): Likewise.
5273         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5274         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5275         * lib/file-type.h (file_type): Likewise.
5276         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5277         * lib/filevercmp.c (verrevcmp): Likewise.
5278         * lib/freadahead.h (freadahead): Likewise.
5279         * lib/fts.c (fts_maxarglen): Likewise.
5280         * lib/hash-pjw.h (hash_pjw): Likewise.
5281         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5282         * lib/hash.c (is_prime, next_prime): Likewise.
5283         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5284         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5285         (hash_table_ok, hash_get_first, hash_string): Likewise.
5286         (compute_bucket_size): Likewise.
5287         * lib/i-ring.h (i_ring_empty): Likewise.
5288         * lib/isnan.c (isnanl): Likewise.
5289         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5290         * lib/memcasecmp.h (memcasecmp): Likewise.
5291         * lib/memchr2.h (memchr2): Likewise.
5292         * lib/memcmp2.h (memcmp2): Likewise.
5293         * lib/parse-datetime.y (lookup_zone): Likewise.
5294         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5295         [!WINDOWS_SOCKETS]: Likewise.
5296         * lib/strnlen1.h (strnlen1): Likewise.
5297         * lib/uniwidth.in.h (uc_width): Likewise.
5298         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5299         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5300         (quoting_options_from_style): Add a comment.
5301         * lib/propername.h (proper_name): Add a comment.
5302
5303 2011-11-27  Bruno Haible  <bruno@clisp.org>
5304
5305         Remove unused macros from !_LIBC code in glibc-borrowed files.
5306         * lib/fnmatch.c (STRCOLL): Remove macro.
5307         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5308         * lib/glob.c (__stat, __readdir64): Remove macros.
5309         * lib/tempname.c (__open64, __xstat64): Remove macros.
5310         Suggested by Paul Eggert.
5311
5312 2011-11-27  Bruno Haible  <bruno@clisp.org>
5313
5314         getcwd: Fix link error on MSVC 9.
5315         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5316
5317 2011-11-27  Bruno Haible  <bruno@clisp.org>
5318
5319         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5320         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5321         HAVE_OPENDIR is 0.
5322         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5323         HAVE_CLOSEDIR is 0.
5324         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5325         is 0.
5326         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5327
5328 2011-11-27  Bruno Haible  <bruno@clisp.org>
5329
5330         getcwd: Fix bug from 2011-08-17.
5331         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5332         platforms that need it.
5333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5334         code of 4 to be a failure, not a success. This ensures that
5335         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5336
5337 2011-11-27  Bruno Haible  <bruno@clisp.org>
5338
5339         binary-io tests: Avoid test failure on mingw when libtool is used.
5340         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5341         Don't verify the size of t-bin-out1.tmp here.
5342         * tests/test-binary-io.sh: Verify it here.
5343         Reported by Simon Josefsson.
5344
5345 2011-11-26  Bruno Haible  <bruno@clisp.org>
5346
5347         Fix conflict between two instantiations of module 'unistd'.
5348         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5349         ${include_guard_prefix} also in the autoconf snippet.
5350         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5352         GNULIB_UNISTD_H_GETOPT.
5353         * modules/getopt-posix (configure.ac): Set the
5354         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5355         * modules/getopt-gnu (configure.ac): Likewise.
5356         * modules/unistd (Makefile.am): Change the substitution value of
5357         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5358         Reported by Simon Josefsson.
5359
5360 2011-11-25  Bruno Haible  <bruno@clisp.org>
5361
5362         pagealign_alloc: Doc and comments.
5363         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5364         module.
5365         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5366
5367 2011-11-25  Jim Meyering  <meyering@redhat.com>
5368
5369         test-update-copyright.sh: avoid false-positive failure
5370         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5371         around false positive failure on Cygwin/Windows.  The latter was
5372         matching erroneously-created files with names like
5373         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5374
5375 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5376
5377         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5378         * m4/valgrind-tests.m4: Check that the parameters that will be
5379         used works, not just a subset of them.  Reported by Bruno Haible
5380         <bruno@clisp.org>.
5381
5382 2011-11-24  Jim Meyering  <meyering@redhat.com>
5383
5384         test-stdalign.c: comment out long double tests
5385         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5386         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5387         error: '_Alignas' specifiers cannot reduce alignment of \
5388         'static_longdouble_alignas'.
5389
5390 2011-11-22  Jim Meyering  <meyering@redhat.com>
5391
5392         init.sh: make "compare /dev/null FILE" output more readable
5393         * tests/init.sh (compare_): Document the preferred order of arguments.
5394         (emit_diff_u_header_): New function.
5395         (compare_dev_null_): Emit a simulated diff, rather than just the
5396         contents of the unexpected file.  Suggestion from Bruno Haible.
5397
5398 2011-11-21  Jim Meyering  <meyering@redhat.com>
5399             Eric Blake  <eblake@redhat.com>
5400
5401         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5402         * tests/init.sh: Make our compare function slightly more portable.
5403         Reported by Bruno Haible in
5404         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5405
5406 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5407
5408         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5409         before using it, in code that ends up in config.h.
5410
5411 2011-11-20  Bruno Haible  <bruno@clisp.org>
5412
5413         getcwd: Work around getcwd bug on AIX 5..7.
5414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5415         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5416         Use a different value for gl_cv_func_getcwd_path_max. Move the
5417         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5418         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5419         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5420         Define HAVE_MINIMALLY_WORKING_GETCWD.
5421         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5422         where it is not even minimally working, that is, on AIX.
5423         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5424         m4/getcwd-path-max.m4.
5425         (main): Update exit code computation.
5426         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5427         getcwd does not handle long file names.
5428
5429 2011-11-20  Bruno Haible  <bruno@clisp.org>
5430
5431         getcwd: Fix bug from 2009-09-10.
5432         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5433         like "no".
5434
5435 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5436
5437         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5438
5439 2011-11-20  Bruno Haible  <bruno@clisp.org>
5440
5441         fma tests: Avoid shadowing local variables.
5442         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5443         expected.
5444
5445 2011-11-20  Bruno Haible  <bruno@clisp.org>
5446
5447         copysignf tests: Fix.
5448         * tests/test-copysignf.c: Fix signature check.
5449
5450 2011-11-20  Bruno Haible  <bruno@clisp.org>
5451
5452         fma: Remove unused code.
5453         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5454         unused macros.
5455
5456 2011-11-20  Bruno Haible  <bruno@clisp.org>
5457
5458         sethostname: Fix doc about AIX.
5459         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5460         sethostname; it has it.
5461
5462         sethostname: Mention more portability problems.
5463         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5464         problem.
5465         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5466
5467 2011-11-19  Bruno Haible  <bruno@clisp.org>
5468
5469         Depend on module fcntl-h when AT_FDCWD is used.
5470         * modules/utimens (Depends-on): Add fcntl-h.
5471         * modules/areadlinkat (Depends-on): Likewise.
5472         * modules/areadlinkat-with-size (Depends-on): Likewise.
5473         * modules/faccessat (Depends-on): Likewise.
5474         * modules/fchmodat (Depends-on): Likewise.
5475         * modules/fchownat (Depends-on): Likewise.
5476         * modules/getcwd (Depends-on): Likewise.
5477         * modules/mkdirat (Depends-on): Likewise.
5478         * modules/mkfifoat (Depends-on): Likewise.
5479         * modules/readlinkat (Depends-on): Likewise.
5480         * modules/symlinkat (Depends-on): Likewise.
5481         * modules/dup2-tests (Depends-on): Likewise.
5482         * modules/fdutimensat-tests (Depends-on): Likewise.
5483         * modules/futimens-tests (Depends-on): Likewise.
5484
5485 2011-11-19  Bruno Haible  <bruno@clisp.org>
5486
5487         euidaccess: Update a comment.
5488         * lib/euidaccess.c: Update comment about platforms with faccessat.
5489
5490 2011-11-19  Bruno Haible  <bruno@clisp.org>
5491
5492         openat: Fix file list.
5493         * modules/openat (Files): Remove lib/at-func.c.
5494
5495 2011-11-19  Bruno Haible  <bruno@clisp.org>
5496
5497         fstatat: Simplify.
5498         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5499         gnulib should define rpl_fstatat, there is a
5500         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5501
5502 2011-11-19  Bruno Haible  <bruno@clisp.org>
5503
5504         Ensure 'inline' can be used in tests/test-utimens-common.h.
5505         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5506         * modules/futimens-tests (configure.ac): Likewise.
5507         * modules/utimens-tests (configure.ac): Likewise.
5508         * modules/utimensat-tests (configure.ac): Likewise.
5509
5510 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5511
5512         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5513         not hash_insert0.
5514         (hash_insert_if_absent): Doc fix.
5515
5516 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5517
5518         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5519
5520 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5521
5522         test-getcwd: disambiguate exit status
5523         * tests/test-getcwd.c (test_long_name): Return 0..7.
5524         (main): Exit with an unambiguous exit status.  The old
5525         code yielded a mysterious mixture of two failure codes.
5526
5527         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5528         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5529         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5530         rpl_fstatat or fstatat.  This should fix the other problem
5531         reported by Kai Habel in
5532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5533         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5535         and I reproduced it on a Solaris 8 host we still have in production.
5536
5537 2011-11-18  Jim Meyering  <meyering@redhat.com>
5538
5539         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5540         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5541         Add a sentence to the comment.
5542         (hash_insert0): New function that simply calls hash_insert_if_absent.
5543         * lib/hash.h (hash_insert_if_absent): Declare it.
5544         (hash_insert0): Add deprecation attribute.
5545         (_GL_ATTRIBUTE_DEPRECATED): Define.
5546         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5547         not hash_insert0.
5548         * NEWS: Mention it, even though it's not really an incompatible change.
5549
5550 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5551
5552         openat: avoid compilation failure due to lack of <errno.h> inclusion
5553         * lib/openat.c: Include <errno.h>.
5554
5555 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5556
5557         * modules/getcwd (Depends-on): Add fdopendir.
5558         This fixes one of the two problems reported by Kai Habel in
5559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5560
5561         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5562         stdalign problem reported by Ian Beckwith in
5563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5564         * modules/crypto/gc-arcfour (Depends-on):
5565         Depend conditionally on crypto/arcfour.
5566         * modules/crypto/gc-arctwo (Depends-on):
5567         Depend conditionally on crypto/arctwo.
5568         * modules/crypto/gc-des (Depends-on):
5569         Depend conditionally on crypto/des.
5570         * modules/crypto/gc-hmac-md5 (Depends-on):
5571         Depend conditionally on crypto/hmac-md5.
5572         * modules/crypto/gc-hmac-sha1 (Depends-on):
5573         Depend conditionally on crypto/hmac-sha1.
5574         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5575         * modules/crypto/gc-md4 (Depends-on):
5576         Depend conditionally on crypto/md4.
5577         * modules/crypto/gc-md5 (Depends-on):
5578         Depend conditionally on crypto/md5.
5579         * modules/crypto/gc-rijndael (Depends-on):
5580         Depend conditionally on crypto/rijndael.
5581         * modules/crypto/gc-sha1 (Depends-on):
5582         Depend conditionally on crypto/sha1.
5583         * modules/crypto/gc-arcfour:
5584         * modules/crypto/gc-arctwo:
5585         * modules/crypto/gc-des:
5586         * modules/crypto/gc-hmac-md5:
5587         * modules/crypto/gc-hmac-sha1:
5588         * modules/crypto/gc-md2:
5589         * modules/crypto/gc-md4:
5590         * modules/crypto/gc-md5:
5591         * modules/crypto/gc-rijndael:
5592         * modules/crypto/gc-sha1:
5593         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5594         now that the conditional dependencies do the work for us.
5595
5596 2011-11-17  Jim Meyering  <meyering@redhat.com>
5597
5598         tests: factor st_ctime-comparison out of two headers
5599         * tests/test-utimens-common.h (ctime_compare): Define.
5600         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5601         * tests/test-lutimens.h (test_lutimens): Likewise.
5602         * tests/test-utimens.h (test_utimens): Likewise.
5603
5604         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5605         Invoke the test program via an init.sh-using wrapper.
5606         * tests/test-getcwd.sh: New file.
5607         * modules/getcwd-tests (Files): Add it.
5608         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5609
5610 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5611
5612         gitlog-to-changelog: support multi-author commits.
5613         The FSF cares about keeping track of all authors of patches to its
5614         projects, but Git doesn't provide obvious support for multi-author
5615         changesets. Consensus seems to be forming around the use of extra
5616         Signed-off-by inspired lines in the log message formatted as
5617         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5618         multi-author commits between version control systems.
5619         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5620         log message and output in standard ChangeLog multi-author format.
5621         Reported by Peter Rosin <peda@lysator.liu.se>
5622
5623 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5624             Bruno Haible  <bruno@clisp.org>
5625
5626         Fix some modules' file list.
5627         * modules/fstatat (Files): Add m4/lstat.m4.
5628         * modules/openat (Files): Likewise.
5629         * modules/unlinkat (Files): Likewise.
5630
5631 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5632
5633         maint.mk: fix tight-scope.mk generation in VPATH builds.
5634         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5635         reference with $(srcdir) so that the file is found correctly even
5636         when running `make syntax-check' in a VPATH build.
5637
5638 2011-11-13  Bruno Haible  <bruno@clisp.org>
5639             Jim Meyering  <meyering@redhat.com>
5640
5641         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5642         * tests/init.sh (compare): Remove "No differences encountered" or
5643         synonymous output from the 'diff' program.
5644
5645 2011-11-13  Bruno Haible  <bruno@clisp.org>
5646
5647         Makefile: Tweak indentation.
5648         * Makefile: Use tab as first character in every line that contains rule
5649         commands.
5650
5651 2011-11-13  Bruno Haible  <bruno@clisp.org>
5652
5653         Syntax check for copyright statements.
5654         * check-copyright: New file.
5655         * Makefile (sc_check_copyright): New rule.
5656
5657 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5658
5659         * build-aux/git-version-gen: Add --prefix to configure the tag
5660         match string.
5661
5662 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5663
5664         * build-aux/git-version-gen: Add --help and --version.
5665
5666 2011-11-12  Jim Meyering  <meyering@redhat.com>
5667
5668         revamp the other test-exclude?.sh scripts to use init.sh, too
5669         * tests/test-exclude1.sh: Use init.sh.
5670         * tests/test-exclude2.sh: Likewise.
5671         * tests/test-exclude3.sh: Likewise.
5672         * tests/test-exclude4.sh: Likewise.
5673         * tests/test-exclude5.sh: Likewise.
5674         * tests/test-exclude6.sh: Likewise.
5675         * tests/test-exclude7.sh: Likewise.
5676         * tests/test-exclude8.sh: Likewise.
5677         * modules/exclude-tests (Files): List init.sh.
5678
5679         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5680         These shell scripts ignored failure of the binary test-exclude,
5681         so making the latter return 77 didn't cause them to be skipped.
5682         * tests/test-exclude5.sh: Exit with test-exclude's error status
5683         when that program fails.  Revamp to use init.sh.
5684         * tests/test-exclude2.sh: Likewise.
5685
5686         test-exclude: fix a typo
5687         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5688
5689 2011-11-11  Bruno Haible  <bruno@clisp.org>
5690
5691         obstack: Fix compilation error on MSVC 9.
5692         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5693
5694 2011-11-11  Jim Meyering  <meyering@redhat.com>
5695
5696         test-exclude: skip tests rather than failing on deficient systems
5697         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5698         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5699         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5700         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5701
5702 2011-11-10  Bruno Haible  <bruno@clisp.org>
5703
5704         ptsname_r test: Avoid gcc warning on glibc systems.
5705         * tests/test-ptsname_r.c (null_ptr): New function.
5706         (test_errors): Use it.
5707
5708 2011-11-10  Bruno Haible  <bruno@clisp.org>
5709
5710         ptsname_r: Avoid compilation error on OSF/1 5.1.
5711         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5713         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5714         function is not declared or incompatibly declared.
5715         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5716         * modules/ptsname_r (Depends-on, configure.ac): Update.
5717         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5718
5719 2011-11-10  Bruno Haible  <bruno@clisp.org>
5720
5721         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5722         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5723         When cross-compiling, guess yes on all platforms except AIX.
5724         Reported by Ludovic Courtès <ludo@gnu.org>.
5725
5726 2011-11-09  Bruno Haible  <bruno@clisp.org>
5727
5728         ptsname_r tests: Fix bugs.
5729         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5730         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5731
5732 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5733
5734         fstatat: work with cross-compilation
5735         Problem reported by Ludovic Courtès in
5736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5737         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5738         "cross-compiling" and assume the bug is present.  Replace
5739         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5740         an inverted sense, to be more conservative about our assumptions.
5741         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5742
5743 2011-11-09  Bruno Haible  <bruno@clisp.org>
5744
5745         Improve MODULES.html output.
5746         * modules/mkfifoat (Description): Use the word "function".
5747         * modules/readlinkat (Description): Likewise.
5748         * modules/symlinkat (Description): Likewise.
5749
5750 2011-11-09  Eric Blake  <eblake@redhat.com>
5751
5752         ptsname_r-tests: new test module
5753         * modules/ptsname_r-tests: New module.
5754         * tests/test-ptsname_r.c: New file.
5755
5756         ptsname_r: new module
5757         * modules/ptsname_r: New module.
5758         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5759         * lib/ptsname.c (__ptsname_r): Split...
5760         * lib/ptsname_r.c: ...into new file.
5761         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5762         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5763         * modules/stdlib (Makefile.am): Substitute witnesses.
5764         * lib/stdlib.in.h (ptsname_r): Declare it.
5765         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5766         * MODULES.html.sh (Misc): Likewise.
5767         * modules/ptsname (Depends-on): Alter dependency.
5768         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5769
5770 2011-11-09  Jim Meyering  <meyering@redhat.com>
5771
5772         announce-gen: be more concise when there's only one URL+tarball
5773         * build-aux/announce-gen (get_tool_versions): When you distribute
5774         only one type of tarball, combine the first two "Here are..."
5775         sections and make the key-checking grammar independent of
5776         how many tarballs there are.
5777
5778 2011-11-09  Eric Blake  <eblake@redhat.com>
5779
5780         openpty: provide a stub on mingw
5781         * lib/pty.in.h (includes): Provide forward declarations.
5782         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5783
5784         raise: fix mingw handling of SIGPIPE
5785         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5786
5787 2011-11-08  Bruno Haible  <bruno@clisp.org>
5788
5789         More conditional dependencies.
5790         * modules/faccessat (Depends-on): Add conditions.
5791         * modules/fchmodat (Depends-on): Likewise.
5792         * modules/fchownat (Depends-on): Likewise.
5793         * modules/fstatat (Depends-on): Likewise.
5794         * modules/mkfifoat (Depends-on): Likewise.
5795         * modules/readlinkat (Depends-on): Likewise.
5796         * modules/symlinkat (Depends-on): Likewise.
5797         * modules/unlinkat (Depends-on): Likewise.
5798         * modules/utimensat (Depends-on): Likewise.
5799         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5800         * modules/linkat (Depends-on): Refine the conditions.
5801         * modules/renameat (Depends-on): Likewise.
5802
5803 2011-11-08  Bruno Haible  <bruno@clisp.org>
5804
5805         faccessat: Move AC_LIBOBJ invocation to module description.
5806         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5807         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5808         invocation from here...
5809         * modules/faccessat (configure.ac): ... to here. Invoke
5810         gl_PREREQ_FACCESSAT.
5811
5812 2011-11-08  Bruno Haible  <bruno@clisp.org>
5813
5814         faccessat: Simplify autoconf macro.
5815         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5816         gl_FUNC_EUIDACCESS.
5817
5818 2011-11-08  Bruno Haible  <bruno@clisp.org>
5819
5820         renameat: Fix dependencies.
5821         * modules/renameat (Depends-on): Add stdbool.
5822
5823 2011-11-08  Bruno Haible  <bruno@clisp.org>
5824
5825         mkfifoat: Fix module description.
5826         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5827         not gl_UNISTD_MODULE_INDICATOR.
5828
5829 2011-11-08  Bruno Haible  <bruno@clisp.org>
5830
5831         fstatat: Remove unused dependency.
5832         * modules/fstatat (Depends-on): Remove fstat.
5833
5834 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5835
5836         GNUmakefile: behave when Makefile is missing.
5837         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5838
5839 2011-11-08  Bruno Haible  <bruno@clisp.org>
5840
5841         openat: Conditionalize dependencies.
5842         * lib/openat.c: Reduce the scope of some #includes.
5843         * modules/openat (Depends-on): Add conditions.
5844
5845 2011-11-07  Jim Meyering  <meyering@redhat.com>
5846
5847         maint.mk: extract GPG key ID without using a temporary file
5848         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5849         without using a temporary file.  Based on a suggestion from Werner Koch
5850         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5851
5852 2011-11-07  Eric Blake  <eblake@redhat.com>
5853
5854         grantpt: fix typo
5855         * lib/stdlib.in.h (grantpt): Check correct function.
5856
5857         maint.mk: silence new syntax check
5858         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5859
5860 2011-11-06  Bruno Haible  <bruno@clisp.org>
5861
5862         Doc about floating-point and math API.
5863         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5864         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5865
5866 2011-11-06  Bruno Haible  <bruno@clisp.org>
5867
5868         stdalign tests: Skip the test when compiled by Sun C.
5869         * tests/test-stdalign.c (main): Skip the test on Sun C.
5870
5871 2011-11-06  Bruno Haible  <bruno@clisp.org>
5872
5873         ansi-c++-opt: Complete the 2011-06-05 change.
5874         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5875         does not support namespaces, set the variable to "no", not to ":".
5876
5877 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5878
5879         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5880
5881 2011-11-06  Bruno Haible  <bruno@clisp.org>
5882
5883         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5884         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5885         (minus_zerol) [HP-UX]: New macro.
5886         (unary_minus) [HP-UX]: New function.
5887         (copysignl) [HP-UX]: Use unary_minus function.
5888
5889 2011-11-06  Bruno Haible  <bruno@clisp.org>
5890
5891         ldexp, ldexpf, ldexpl: Enhance tests.
5892         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5893         and tests/test-ldexpl.c.
5894         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5895         LDEXP, MIN_EXP, MAX_EXP): New macros.
5896         Include test-ldexp.h.
5897         (main): Just call test_function.
5898         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5899         infinity.h, nan.h.
5900         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5901         MAX_EXP): New macros.
5902         Include test-ldexp.h.
5903         (x, y): Remove variables.
5904         (main): Just call test_function.
5905         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5906         infinity.h, nan.h.
5907         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5908         MAX_EXP): New macros.
5909         Include test-ldexp.h.
5910         (x, y): Remove variables.
5911         (main): Just call test_function.
5912         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5913         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5914         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5915         (Depends-on): Add isnand-nolibm, signbit, float.
5916         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5917         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5918         (Depends-on): Add isnanf-nolibm, signbit, float.
5919
5920 2011-11-06  Bruno Haible  <bruno@clisp.org>
5921
5922         math tests: Cosmetics.
5923         * tests/test-math-c++.cc: Reorder declarations.
5924
5925 2011-11-05  Bruno Haible  <bruno@clisp.org>
5926
5927         fma*: Simplify test.
5928         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5929         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5930
5931         Tests for module 'fmal'.
5932         * modules/fmal-tests: New file.
5933         * tests/test-fmal1.c: New file.
5934         * tests/test-fmal2.c: New file.
5935
5936         New module 'fmal'.
5937         * lib/math.in.h (fmal): New declaration.
5938         * lib/fmal.c: New file.
5939         * m4/fmal.m4: New file.
5940         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5942         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5943         REPLACE_FMAL.
5944         * modules/fmal: New file.
5945         * doc/posix-functions/fmal.texi: Mention the new module and the various
5946         bugs.
5947
5948         Tests for module 'fmaf'.
5949         * modules/fmaf-tests: New file.
5950         * tests/test-fmaf1.c: New file.
5951         * tests/test-fmaf2.c: New file.
5952
5953         New module 'fmaf'.
5954         * lib/math.in.h (fmaf): New declaration.
5955         * lib/fmaf.c: New file.
5956         * m4/fmaf.m4: New file.
5957         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5959         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5960         REPLACE_FMAF.
5961         * modules/fmaf: New file.
5962         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5963         bugs.
5964
5965         Tests for module 'fma'.
5966         * modules/fma-tests: New file.
5967         * tests/test-fma1.c: New file.
5968         * tests/test-fma1.h: New file.
5969         * tests/test-fma2.c: New file.
5970         * tests/test-fma2.h: New file.
5971
5972         New module 'fma'.
5973         * lib/math.in.h (fma): New declaration.
5974         * lib/fma.c: New file.
5975         * m4/fma.m4: New file.
5976         * m4/fegetround.m4: New file.
5977         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5979         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5980         REPLACE_FMA.
5981         * modules/fma: New file.
5982         * doc/posix-functions/fma.texi: Mention the new module and the various
5983         bugs.
5984
5985         Extend gl_MATHFUNC.
5986         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5987         Support 'void' as argument type.
5988         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5989
5990 2011-11-05  Jim Meyering  <meyering@redhat.com>
5991
5992         maint.mk: also prohibit inclusion of dirent.h without use
5993         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5994
5995 2011-11-05  Bruno Haible  <bruno@clisp.org>
5996
5997         ldexpl tests: Avoid test failure on MSVC 9.
5998         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5999         value. Needed in order to enforce the conversion from a value greater
6000         than LDBL_MAX to Infinity.
6001
6002 2011-11-05  Bruno Haible  <bruno@clisp.org>
6003
6004         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6005         * modules/at-internal: New file, extracted from modules/openat.
6006         * modules/openat-h: New file.
6007         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6008         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6009         * modules/openat (Description): Add reference to POSIX function.
6010         (Files): Remove lib/openat.h, lib/openat-proc.c.
6011         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6012         intprops, unistd.
6013         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6014         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6015         gl_FCNTL_MODULE_INDICATOR.
6016         (Include): Remove unistd.h, openat.h.
6017         * modules/areadlinkat (Files): Add lib/at-func.c.
6018         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6019         openat-die, openat-h, save-cwd.
6020         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6021         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6022         openat-die, openat-h, save-cwd, unistd.
6023         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6024         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6025         openat-h, save-cwd. Remove fcntl-h, openat.
6026         * modules/fchmodat (Files): Remove lib/openat.h.
6027         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6028         openat, stdbool, unistd.
6029         * modules/fchownat (Files): Remove lib/openat.h.
6030         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6031         openat, stdbool, sys_stat.
6032         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6033         lib/openat-proc.c.
6034         (Depends-on): Add at-internal.
6035         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6036         * modules/fstatat (Files): Remove lib/openat.h.
6037         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6038         stdbool, unistd.
6039         * modules/fts (Depends-on): Add openat-h.
6040         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6041         openat.
6042         * modules/mkdirat (Files): Remove lib/openat.h.
6043         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6044         openat, stdbool, sys_stat.
6045         * modules/mkfifoat (Files): Add lib/at-func.c.
6046         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6047         openat-h, save-cwd. Remove fcntl-h, openat.
6048         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6049         * modules/readlinkat (Files): Add lib/at-func.c.
6050         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6051         openat-h, save-cwd. Remove fcntl-h, openat.
6052         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6053         openat.
6054         * modules/selinux-at (Files): Add lib/at-func.c.
6055         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6056         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6057         * modules/symlinkat (Files): Add lib/at-func.c.
6058         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6059         openat-h, save-cwd. Remove fcntl-h, openat.
6060         * modules/unlinkat (Files): Remove lib/openat.h.
6061         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6062         stdbool.
6063         * modules/utimensat (Files): Add lib/at-func.c.
6064         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6065         openat-die, openat-h, save-cwd.
6066         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6067         * modules/fdutimensat-tests (Depends-on): Add openat.
6068         * modules/fstatat-tests (Depends-on): Add openat-h.
6069         * modules/readlinkat-tests (Depends-on): Add openat.
6070         * modules/symlinkat-tests (Depends-on): Add openat.
6071
6072 2011-11-05  Bruno Haible  <bruno@clisp.org>
6073
6074         openat: Include <stdbool.h>.
6075         * lib/openat.c: Include <stdbool.h>.
6076
6077 2011-11-04  Bruno Haible  <bruno@clisp.org>
6078
6079         fchownat, renameat, unlinkat: Fix dependencies.
6080         * modules/fchownat (Depends-on): Add fstatat.
6081         * modules/renameat (Depends-on): Likewise.
6082         * modules/unlinkat (Depends-on): Likewise.
6083
6084 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6085
6086         openat: remove direct dependency on dirent
6087         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6088         and hasn't been needed ever since fdopendir was split into its own
6089         module on 2009-08-31.
6090         * modules/openat (Depends-on): Remove dirent.
6091
6092 2011-11-04  Bruno Haible  <bruno@clisp.org>
6093
6094         renameat: Optimize code size.
6095         * modules/renameat (configure.ac): Don't compile at-func2.c if
6096         REPLACE_RENAMEAT is 1.
6097
6098 2011-11-04  Bruno Haible  <bruno@clisp.org>
6099
6100         openat tests: Fix file list.
6101         * modules/openat-tests (Files): Add tests/test-open.h.
6102
6103 2011-11-04  Bruno Haible  <bruno@clisp.org>
6104
6105         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6106         * modules/fchmodat (Depends-on): Add openat-die.
6107         * modules/fchownat (Depends-on): Likewise.
6108         * modules/linkat (Depends-on): Likewise.
6109         * modules/renameat (Depends-on): Likewise.
6110         * modules/openat (Depends-on): Add dirent.
6111
6112 2011-11-04  Jim Meyering  <meyering@redhat.com>
6113
6114         at-func*.c: fix comments
6115         * lib/at-func2.c: Correct/improve first-line comment.
6116         * lib/at-func.c: Correct grammar in first-line comment.
6117
6118 2011-11-04  Bruno Haible  <bruno@clisp.org>
6119
6120         New module 'mkdirat', split off from module 'openat'.
6121         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6122         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6123         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6124         * modules/mkdirat: New file, extracted from modules/openat.
6125         * modules/openat (Files): Remove lib/mkdirat.c.
6126         (Depends-on): Remove mkdir.
6127         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6128         (Include): Remove <sys/stat.h>.
6129         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6130         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6131         tests/test-mkdir.h.
6132         (Depends-on): Remove ignore-value.
6133         (Makefile.am): Remove rules for test-mkdirat.
6134         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6135         of module 'openat'.
6136         * NEWS: Mention the change.
6137
6138 2011-11-04  Bruno Haible  <bruno@clisp.org>
6139
6140         closedir: Avoid warning on mingw.
6141         * lib/closedir.c: Include <unistd.h>.
6142
6143 2011-11-04  Bruno Haible  <bruno@clisp.org>
6144
6145         New module 'fstatat', split off from module 'openat'.
6146         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6147         defined.
6148         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6150         gl_FUNC_FSTATAT.
6151         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6152         * modules/fstatat: New file, extracted from modules/openat.
6153         * modules/openat (Files): Remove lib/fstatat.c.
6154         (Depends-on): Remove lstat.
6155         (configure.ac): Remove AC_LIBOBJ of fstatat.
6156         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6157         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6158         tests/test-lstat.h, tests/test-stat.h.
6159         (Depends-on): Remove getcwd-lgpl.
6160         (Makefile.am): Remove rules for test-fstatat.
6161         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6162         of module 'openat'.
6163         * NEWS: Mention the change.
6164         * modules/getcwd (Depends-on): Add fstatat.
6165         * modules/linkat (Depends-on): Likewise.
6166         * modules/mkfifoat-tests (Depends-on): Likewise.
6167         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6168
6169 2011-11-03  Bruno Haible  <bruno@clisp.org>
6170
6171         New module 'unlinkat', split off from module 'openat'.
6172         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6173         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6174         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6175         * modules/unlinkat: New file, extracted from modules/openat. Correct
6176         the dependency conditions.
6177         * modules/openat (Files): Remove lib/unlinkat.c.
6178         (Depends-on): Remove rmdir, unlink.
6179         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6180         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6181         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6182         tests/test-rmdir.h, tests/test-unlink.h.
6183         (Depends-on): Remove unlinkdir.
6184         (Makefile.am): Remove rules for test-unlinkat.
6185         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6186         of module 'openat'.
6187         * NEWS: Mention the change.
6188         * modules/linkat-tests (Depends-on): Add unlinkat.
6189         * modules/mkfifoat-tests (Depends-on): Likewise.
6190         * modules/readlinkat-tests (Depends-on): Likewise.
6191
6192 2011-11-02  Bruno Haible  <bruno@clisp.org>
6193
6194         New module 'fchmodat', split off from module 'openat'.
6195         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6196         defined.
6197         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6198         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6199         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6200         * modules/fchmodat: New file, extracted from modules/openat.
6201         * modules/openat (Files): Remove lib/fchmodat.c.
6202         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6203         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6204         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6205         (Makefile.am): Remove rules for test-fchmodat.
6206         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6207         of module 'openat'.
6208         * NEWS: Mention the change.
6209
6210 2011-11-02  Jim Meyering  <meyering@redhat.com>
6211
6212         putenv: indent #definition of "environ" to placate cppi
6213         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6214
6215         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6216         Git logs are often treated as immutable, because editing them
6217         changes the SHA1 checksums of all descendants.  Thus, errors in
6218         git logs tend to stay there forever.  However, when we generate
6219         a ChangeLog file -- typically for distribution -- from that git log,
6220         we can actually make corrections in the generated file.  The key
6221         lies in recording in machine-readable/applicable form the desired
6222         corrections.  See --help for description and an example.
6223         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6224         (usage): Describe it; alphabetize option descriptions.
6225         (main): Honor the new option, carefully.
6226
6227 2011-11-01  Jim Meyering  <meyering@redhat.com>
6228
6229         gitlog-to-changelog: avoid an infloop
6230         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6231         that ends up being empty.
6232
6233 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6234
6235         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6236         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6237         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6238         contains (possibly-quoted) backslashes.  This should avoid
6239         all-too-common shell bugs if COMPLICATED contains backslashes in
6240         the "wrong" places.  Reported by David Evans in
6241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6242         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6243         because we want ASCII ranges.  Is there some reason we don't use
6244         the C locale everywhere in this script?
6245         (func_module, top level): Avoid unwanted pathname expansion when
6246         $repo_url_prefix or $repo_url_suffix_repl contain shell
6247         metacharacters like '?' and '*'.
6248
6249 2011-11-01  Bruno Haible  <bruno@clisp.org>
6250
6251         fchownat: Improve description.
6252         * modules/fchownat (Description): Add link to function.
6253
6254 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6255
6256         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6257         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6259         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6260
6261 2011-11-01  Bruno Haible  <bruno@clisp.org>
6262
6263         alignof: Avoid collision with stdalign module.
6264         * lib/alignof.h (alignof): Remove macro.
6265         * NEWS: Mention the change.
6266         Reported by Paul Eggert.
6267
6268 2011-11-01  Bruno Haible  <bruno@clisp.org>
6269
6270         New module 'fchownat', split off from module 'openat'.
6271         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6272         defined.
6273         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6274         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6275         invoke gl_FUNC_FCHOWNAT.
6276         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6277         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6278         * modules/fchownat: New file, extracted from modules/openat.
6279         * modules/openat (Files): Remove lib/fchownat.c.
6280         (Depends-on): Remove lchown.
6281         (configure.ac): Remove AC_LIBOBJ of fchownat.
6282         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6283         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6284         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6285         (Depends-on): Remove mgetgroups, usleep, stat-time.
6286         (configure.ac): Remove test for getegid.
6287         (Makefile.am): Remove rules for test-fchownat.
6288         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6289         of module 'openat'.
6290         * NEWS: Mention the change.
6291
6292 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6293
6294         stdalign: port better to MSVC and to Sun C 5.11
6295         This fixes some of the problems reported by Bruno Haible in
6296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6297         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6298         shortcomings of MSVC and of Sun C 5.11.
6299         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6300         around __declspec arg.
6301         * modules/stdalign-tests (Files): Add tests/macros.h.
6302         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6303         Include macros.h, for ASSERT.
6304         (DECLARE_ALIGNED): Remove.
6305         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6306         to catch bug), and to 1 if not (simplifies the rest of the code).
6307         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6308         (CHECK_AUTO): Remove.
6309         (CHECK_ALIGNED): Check only the alignment of the static vars,
6310         since auto var alignment isn't supported by Sun C 5.11.
6311         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6312         ASSERT failures are easier to diagnose.
6313
6314 2011-10-31  Bruno Haible  <bruno@clisp.org>
6315
6316         doc about some IRIX 5.3 problems.
6317         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6318         on IRIX 5.3.
6319         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6320         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6321         5.3.
6322         * doc/posix-functions/grantpt.texi: Likewise.
6323         * doc/posix-functions/unlockpt.texi: Likewise.
6324         * doc/posix-functions/lgamma.texi: Likewise.
6325         * doc/posix-functions/nextafter.texi: Likewise.
6326         * doc/posix-functions/remainder.texi: Likewise.
6327         * doc/posix-functions/select.texi: Mention misplaced declaration on
6328         IRIX 5.3.
6329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6330
6331 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6332
6333         gitlog-to-changelog: fix git-log invocation.
6334         git-log mishandles date strings before 1970-01-01 UTC, and there is
6335         no use to specify --since=1970-01-01 by default anyway.
6336         * build-aux/gitlog-to-changelog: By default, when no --since option
6337         was given, do not specify explicit --since option to git-log.
6338
6339 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6340
6341         gitlog-to-changelog: new option --append-dot.
6342         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6343         first non-blank line of each commit message terminated with a dot.
6344
6345 2011-10-30  Bruno Haible  <bruno@clisp.org>
6346
6347         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6348         * lib/ffsl.h: Include <config.h>.
6349         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6350
6351 2011-10-30  Jim Meyering  <meyering@redhat.com>
6352
6353         GNUmakefile: reenable "make syntax-check" for most projects
6354         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6355         build-aux variable", "syntax-check" would do nothing but succeed with
6356         the "No version control files detected..." diagnostic (unless you
6357         happened to override _build-aux via cfg.mk).
6358         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6359         to precede inclusion of maint.mk.  Otherwise, these variables would
6360         be used undefined in any project that does not override the default.
6361
6362 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6363
6364         gitlog-to-changelog: treat a message with only blank lines as empty.
6365         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6366         trailing blank lines before the code that issues a warning about an
6367         empty commit message.
6368
6369 2011-10-30  Jim Meyering  <meyering@redhat.com>
6370
6371         test-parse-datetime.c: avoid new DST-related false positive test failure
6372         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6373         based on the time/date we'll convert, not the current time.
6374         Otherwise, the moment we cross a DST boundary like today's in
6375         Europe, (CEST to CET), that offset ends up being one hour off.
6376
6377 2011-10-27  Bruno Haible  <bruno@clisp.org>
6378
6379         fstat: Tweak documentation.
6380         * modules/fstat (Description): More precise description.
6381
6382 2011-10-27  Bruno Haible  <bruno@clisp.org>
6383
6384         Update documentation regarding 'largefile' module.
6385         * doc/posix-functions/fstat.texi: Tweak wording.
6386         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6387         problems with huge directories and/or small ino_t types.
6388         * doc/posix-functions/readdir.texi: Likewise.
6389         * doc/posix-functions/rewinddir.texi: Likewise.
6390
6391 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6392
6393         maint.mk: don't maintain a second build-aux variable.
6394         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6395         depends on GNUmakefile, which already maintains a cfg.mk
6396         overridable $(_build-aux) for projects with a non-standard
6397         build-aux directory location, although without the $(srcdir)
6398         prefix.  Use that variable consistently instead of introducing a
6399         second one.  Adjust all call sites.
6400
6401 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6402
6403         Add stdalign module and use it in other modules.
6404         This is based on a previous proposal by Bruno Haible
6405         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6406
6407         stdalign: new module
6408         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6409         * modules/stdalign: New files.
6410         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6411         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6412
6413         stdalign-tests: new module
6414         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6415
6416         argp: use stdalign
6417         * lib/argp-parse.c: Include <stdalign.h>.
6418         (alignof): Remove.
6419         * modules/argp (Depends-on): Add stdalign.
6420
6421         crypto libraries: use stdalign
6422         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6423         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6424         Do not include <stdlib.h> twice, in md4.c.
6425         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6426         because we are accessing a pointer's bit-pattern, not a size.
6427         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6428         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6429         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6430         * modules/crypto/sha512: Likewise.
6431
6432         sys_socket: use stdalign, not alignof
6433         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6434         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6435
6436 2011-10-27  Bruno Haible  <bruno@clisp.org>
6437
6438         raise test: Avoid a test failure on Linux/MIPS.
6439         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6440         because 99 is a valid signal on Linux/MIPS.
6441
6442 2011-10-27  Bruno Haible  <bruno@clisp.org>
6443
6444         nonblocking tests: Fix test failure on Linux/MIPS.
6445         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6446         Set to 270000.
6447
6448 2011-10-27  Bruno Haible  <bruno@clisp.org>
6449
6450         utimensat: Work around problem on Linux/hppa.
6451         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6452         values.
6453         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6454
6455 2011-10-25  Jim Meyering  <meyering@redhat.com>
6456
6457         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6458         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6459         after symbols like NULL, size_t, etc.
6460         Reported by Alfred M. Szmidt.
6461
6462         maint.mk: exempt ENODATA from a syntax-check rule
6463         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6464         from the sc_prohibit_always-defined_macros syntax-check rule.
6465         Add a comment.  See this for more details:
6466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6467
6468 2011-10-23  Jim Meyering  <meyering@redhat.com>
6469
6470         fts: close parent dir FD before returning from post-traversal fts_read
6471         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6472         unlink A, even though an FD open on A remained.  This is suboptimal
6473         (holding a file descriptor open longer than needed), but otherwise not
6474         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6475         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6476         that represents a real problem: it causes the removal of A to fail
6477         with e.g., "rm: cannot remove `A': Device or resource busy"
6478
6479         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6480         directory file descriptors.  After completing the final, FTS_DP,
6481         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6482         cache, but then proceeded to add a new FD to it via the subsequent
6483         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6484         final file descriptor would be closed only via fts_close's call to
6485         fd_ring_clear.  Now, it is usually closed earlier, via the final
6486         FTS_DP-returning fts_read call.
6487         * lib/fts.c (restore_initial_cwd): New function, converted from
6488         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6489         Update callers.
6490         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6491         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6492
6493 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6494             Bruno Haible  <bruno@clisp.org>
6495             Jim Meyering  <jim@meyering.net>
6496
6497         readme-release: improve safety of release prep instructions.
6498         * README-release: Don't git pull all branches when only master
6499         is needed for the release process.
6500         Run make maintainer-clean before changing trees and merging.
6501         Don't try to run ./configure right after git pull in case files
6502         that influence the bootstrap process have changed, move the
6503         ./configure step to after running ./bootstrap.
6504         Don't bootstrap "one last time"... it's the first time!
6505
6506 2011-10-22  Bruno Haible  <bruno@clisp.org>
6507
6508         errno, strerror-override: Support for MSVC 10.
6509         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6510         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6511         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6512         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6513         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6514         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6515         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6516         Assign values compatible with MSVC 10.
6517         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6518         New macros.
6519         (GNULIB_defined_EWINSOCK): New macro.
6520         * lib/strerror-override.c (strerror_override): Update accordingly.
6521         * lib/strerror-override.h: Likewise.
6522         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6523         longer equal to the corresponding errno value.
6524         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6525
6526 2011-10-22  Bruno Haible  <bruno@clisp.org>
6527
6528         perror: Recognize when test program crashes.
6529         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6530         strerror, set gl_cv_func_perror_works to no.
6531         Reported by Daniel Richard G. <skunk@iskunk.org>.
6532
6533         perror: Fix indentation.
6534         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6535
6536 2011-10-22  Bruno Haible  <bruno@clisp.org>
6537
6538         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6539         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6540         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6541         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6542         functions, not as a macro.
6543         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6544         macros.
6545         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6546         absence of macro.
6547         Suggested by Eric Blake.
6548         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6549
6550 2011-10-21  Bruno Haible  <bruno@clisp.org>
6551
6552         relocatable-prog-wrapper: Don't leave object files behind.
6553         * build-aux/install-reloc: Re-synchronize list of .o files to be
6554         removed with list of compilation units.
6555
6556 2011-10-20  Bruno Haible  <bruno@clisp.org>
6557
6558         openpty, posix_openpt: Remove code duplication.
6559         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6560         * lib/openpty.c: Include <stdlib.h>.
6561         (openpty): Use posix_openpt on all platforms except IRIX.
6562         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6563
6564 2011-10-20  Bruno Haible  <bruno@clisp.org>
6565
6566         unlockpt: Detect invalid argument.
6567         * lib/unlockpt.c: Include <fcntl.h>.
6568         (unlockpt): Check whether fd is valid, using fcntl().
6569         * modules/unlockpt (Depends-on): Add fcntl-h.
6570
6571 2011-10-20  Bruno Haible  <bruno@clisp.org>
6572
6573         openpty: Avoid compilation error on AIX 6.1.
6574         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6575
6576 2011-10-20  Bruno Haible  <bruno@clisp.org>
6577
6578         posix_openpt: Support for OpenBSD.
6579         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6580         (posix_openpt) [OpenBSD]: New code.
6581         * lib/grantpt.c: Include <fcntl.h>.
6582         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6583         * modules/grantpt (Depends-on): Add fcntl-h.
6584
6585 2011-10-20  Bruno Haible  <bruno@clisp.org>
6586
6587         posix_openpt test: Coding style.
6588         * tests/test-posix_openpt.c: Use GNU coding style.
6589
6590 2011-10-20  Bruno Haible  <bruno@clisp.org>
6591
6592         grantpt: Support --avoid=pt_chown.
6593         * modules/grantpt (Files): Add lib/pty-private.h.
6594
6595 2011-10-20  Bruno Haible  <bruno@clisp.org>
6596
6597         posix_openpt: Fix autoconf macro.
6598         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6599         unneeded check for _getpty.
6600
6601 2011-10-20  Bruno Haible  <bruno@clisp.org>
6602
6603         openpty: Update comments.
6604         * lib/openpty.c: Add comments about Minix.
6605
6606 2011-10-19  Eric Blake  <eblake@redhat.com>
6607
6608         openpty: relax license
6609         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6610
6611         pt_chown: use configmake to simplify build
6612         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6613
6614         ptsname and others: relax license
6615         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6616         * modules/unlockpt (License): Likewise.
6617         * modules/pt_chown (License): Likewise.
6618         * modules/ptsname (License): Likewise.
6619         * modules/ttyname_r (License): Likewise.
6620
6621 2011-10-19  Jim Meyering  <meyering@redhat.com>
6622
6623         posix_openpt: remove spurious #endif
6624         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6625
6626 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6627
6628         maint.mk: Respect $(build_aux) in web-manual rule.
6629         * top/maint.mk (web-manual): Find gen-announce script in user's
6630         $(build_aux) directory instead of hard-coding 'build-aux'.
6631
6632 2011-10-19  Bruno Haible  <bruno@clisp.org>
6633
6634         posix_openpt: Fix compilation error.
6635         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6636         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6637         Mention the openpty module as an alternative.
6638
6639 2011-10-19  Bruno Haible  <bruno@clisp.org>
6640
6641         Support for old NeXTstep 3.3 frexp().
6642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6643         execution time of the test to 5 seconds.
6644         Reported by Daniel Richard G. <skunk@iskunk.org>.
6645
6646 2011-10-19  Bruno Haible  <bruno@clisp.org>
6647
6648         Support for old NeXTstep 3.3 sed.
6649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6650         part, use /.../, not \|...|. Escape periods in the header file name.
6651         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6652         Reported by Daniel Richard G. <skunk@iskunk.org>.
6653
6654 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6655
6656         Support for old NeXTstep 3.3 gcc.
6657         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6658         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6659         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6660         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6661         * lib/regex.h (_Restrict_arr_): Likewise.
6662         * lib/regex_internal.h (re_token_t): Likewise.
6663         * lib/regexec.c (check_node_accept_bytes): Likewise.
6664         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6665
6666 2011-10-18  Eric Blake  <eblake@redhat.com>
6667
6668         posix_openpt: new module
6669         * modules/posix_openpt: New module.
6670         * m4/posix_openpt.m4: New file.
6671         * lib/posix_openpt.c: Likewise.
6672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6673         (gl_STDLIB_H_DEFAULTS): Set defaults.
6674         * modules/stdlib (Makefile.am): Substitute macros.
6675         * lib/stdlib.in.h (posix_openpt): Declare.
6676         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6677         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6678         * modules/posix_openpt-tests: New test module.
6679         * tests/test-posix_openpt.c: New test.
6680
6681 2011-10-15  Bruno Haible  <bruno@clisp.org>
6682
6683         xstrtoll: Fix compilation failure.
6684         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6685         from lib/strtol.c.
6686         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6687         some platforms.
6688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6689
6690 2011-10-15  Bruno Haible  <bruno@clisp.org>
6691
6692         vasnprintf: Optimize bit search operation.
6693         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6695         gl_DOUBLE_EXPONENT_LOCATION.
6696         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6697         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6698         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6699         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6700         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6701         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6702         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6703         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6704         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6705
6706 2011-10-15  Bruno Haible  <bruno@clisp.org>
6707
6708         vasnprintf: Fix comments.
6709         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6710
6711 2011-10-14  Bruno Haible  <bruno@clisp.org>
6712
6713         Tests for module 'integer_length_ll'.
6714         * modules/integer_length_ll-tests: New file.
6715         * tests/test-integer_length_ll.c: New file.
6716
6717         New module 'integer_length_ll'.
6718         * lib/integer_length_ll.c: New file.
6719         * modules/integer_length_ll: New file.
6720
6721 2011-10-14  Bruno Haible  <bruno@clisp.org>
6722
6723         Tests for module 'integer_length_l'.
6724         * modules/integer_length_l-tests: New file.
6725         * tests/test-integer_length_l.c: New file.
6726
6727         New module 'integer_length_l'.
6728         * lib/integer_length_l.c: New file.
6729         * modules/integer_length_l: New file.
6730
6731 2011-10-14  Bruno Haible  <bruno@clisp.org>
6732
6733         Tests for module 'integer_length'.
6734         * modules/integer_length-tests: New file.
6735         * tests/test-integer_length.c: New file.
6736
6737         New module 'integer_length'.
6738         * lib/integer_length.h: New file.
6739         * lib/integer_length.c: New file.
6740         * modules/integer_length: New file.
6741
6742 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6743
6744         popen: Fix dependency conditions.
6745         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6746
6747 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6748
6749         perror: Fix autoconf test.
6750         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6751         <stdlib.h> and <string.h>.
6752
6753 2011-10-14  Bruno Haible  <bruno@clisp.org>
6754
6755         ffsl: Optimize on 64-bit platforms.
6756         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6757         unrolling.
6758
6759 2011-10-13  Bruno Haible  <bruno@clisp.org>
6760
6761         ffsl: Optimize on 32-bit platforms.
6762         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6763         use ffs() without a loop.
6764
6765         ffsl, ffsll: Optimize for GCC.
6766         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6767         * lib/ffsl.c (GCC_BUILTIN): New macro.
6768         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6769
6770 2011-10-13  Bruno Haible  <bruno@clisp.org>
6771
6772         ffs, bcopy, memset: Support symbol renaming via config.h.
6773         * lib/ffs.c: Include <config.h>.
6774         * lib/bcopy.c: Likewise.
6775         * lib/memset.c: Likewise.
6776
6777 2011-10-10  Bruno Haible  <bruno@clisp.org>
6778
6779         atanl: Simplify for platforms where 'long double' == 'double'.
6780         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6781         alternative implementation.
6782         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6783         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6784         * modules/atanl (Depends-on): Add atan. Update conditions.
6785
6786 2011-10-10  Bruno Haible  <bruno@clisp.org>
6787
6788         acosl: Simplify for platforms where 'long double' == 'double'.
6789         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6790         alternative implementation.
6791         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6792         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6793         * modules/acosl (Depends-on): Add acos. Update conditions.
6794
6795 2011-10-10  Bruno Haible  <bruno@clisp.org>
6796
6797         asinl: Simplify for platforms where 'long double' == 'double'.
6798         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6799         alternative implementation.
6800         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6801         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6802         * modules/asinl (Depends-on): Add asin. Update conditions.
6803
6804 2011-10-10  Bruno Haible  <bruno@clisp.org>
6805
6806         tanl: Simplify for platforms where 'long double' == 'double'.
6807         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6808         implementation.
6809         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6810         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6811         * modules/tanl (Depends-on): Add tan. Update conditions.
6812         (configure.ac): Don't compile trigl.c if
6813         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6814
6815 2011-10-10  Bruno Haible  <bruno@clisp.org>
6816
6817         cosl: Simplify for platforms where 'long double' == 'double'.
6818         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6819         implementation.
6820         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6821         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6822         * modules/cosl (Depends-on): Add cos. Update conditions.
6823         (configure.ac): Don't compile sincosl.c and trigl.c if
6824         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6825
6826 2011-10-10  Bruno Haible  <bruno@clisp.org>
6827
6828         sinl: Simplify for platforms where 'long double' == 'double'.
6829         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6830         implementation.
6831         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6832         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6833         * modules/sinl (Depends-on): Add sin. Update conditions.
6834         (configure.ac): Don't compile sincosl.c and trigl.c if
6835         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6836
6837 2011-10-10  Bruno Haible  <bruno@clisp.org>
6838
6839         logl: Simplify for platforms where 'long double' == 'double'.
6840         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6841         implementation.
6842         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6843         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6844         * modules/logl (Depends-on): Add log. Update conditions.
6845
6846 2011-10-10  Bruno Haible  <bruno@clisp.org>
6847
6848         expl: Simplify for platforms where 'long double' == 'double'.
6849         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6850         implementation.
6851         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6852         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6853         * modules/expl (Depends-on): Add exp. Update conditions.
6854
6855 2011-10-10  Bruno Haible  <bruno@clisp.org>
6856
6857         sqrtl: Simplify for platforms where 'long double' == 'double'.
6858         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6859         alternative implementation.
6860         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6861         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6862         * modules/sqrtl (Depends-on): Update conditions.
6863
6864 2011-10-10  Bruno Haible  <bruno@clisp.org>
6865
6866         ldexpl: Simplify for platforms where 'long double' == 'double'.
6867         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6868         alternative implementation.
6869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6870         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6871         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6872
6873 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6874
6875         ffsll: set correct witness
6876         * modules/ffsll (configure.ac): Fix typo.
6877
6878 2011-10-10  Bruno Haible  <bruno@clisp.org>
6879
6880         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6881         * lib/printf-frexpl.c: Include <config.h>.
6882         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6883         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6884         second time.
6885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6886         gl_LONG_DOUBLE_VS_DOUBLE.
6887         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6888         conditions.
6889
6890 2011-10-10  Bruno Haible  <bruno@clisp.org>
6891
6892         frexpl: Simplify for platforms where 'long double' == 'double'.
6893         * lib/frexpl.c: Include <config.h>.
6894         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6895         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6896         time.
6897         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6898         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6899         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6900         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6901         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6902         conditions.
6903
6904 2011-10-10  Jim Meyering  <meyering@redhat.com>
6905
6906         test-renameat: don't leave behind a temporary file
6907         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6908           ERROR: files left in build directory after distclean:
6909           ./gltests/test-renameat.too
6910           make[1]: *** [distcleancheck] Error 1
6911         Reported by Tom G. Christensen.
6912
6913 2011-10-09  Bruno Haible  <bruno@clisp.org>
6914
6915         rint: Determine RINT_LIBM correctly on AIX 7.
6916         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6917         directly, not only through a function pointer. Also accept an optional
6918         4th argument with extra code.
6919         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6920         rintf() call by gcc when optimizing.
6921
6922         mathfunc.m4: Refactor.
6923         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6924         m4 variable.
6925
6926 2011-10-09  Bruno Haible  <bruno@clisp.org>
6927
6928         rintl: Simplify for platforms where 'long double' == 'double'.
6929         * lib/rintl.c: Include <config.h>.
6930         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6931         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6932         time.
6933         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6934         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6935         * modules/rintl (Depends-on): Add rint. Update conditions.
6936
6937 2011-10-09  Bruno Haible  <bruno@clisp.org>
6938
6939         roundl: Simplify for platforms where 'long double' == 'double'.
6940         * lib/roundl.c: Include <config.h>.
6941         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6942         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6943         time.
6944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6945         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6946         * modules/roundl (Depends-on): Add round. Update conditions.
6947
6948 2011-10-09  Bruno Haible  <bruno@clisp.org>
6949
6950         truncl: Simplify for platforms where 'long double' == 'double'.
6951         * lib/truncl.c: Include <config.h>.
6952         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6953         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6954         time.
6955         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6956         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6957         * modules/truncl (Depends-on): Add trunc. Update conditions.
6958
6959 2011-10-09  Bruno Haible  <bruno@clisp.org>
6960
6961         ceill: Simplify for platforms where 'long double' == 'double'.
6962         * lib/ceill.c: Include <config.h>.
6963         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6964         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6965         time.
6966         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6967         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6968         * modules/ceill (Depends-on): Add ceil. Update conditions.
6969
6970 2011-10-09  Bruno Haible  <bruno@clisp.org>
6971
6972         floorl: Simplify for platforms where 'long double' == 'double'.
6973         * lib/floorl.c: Include <config.h>.
6974         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6975         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6976         time.
6977         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6978         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6979         * modules/floorl (Depends-on): Add floor. Update conditions.
6980
6981 2011-10-09  Bruno Haible  <bruno@clisp.org>
6982
6983         rint: Fix ordering constraints.
6984         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6985         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6986         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6987
6988 2011-10-09  Bruno Haible  <bruno@clisp.org>
6989
6990         copysignl: Simplify for platforms where 'long double' == 'double'.
6991         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6992         alternative.
6993         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6994         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6995         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6996
6997 2011-10-09  Bruno Haible  <bruno@clisp.org>
6998
6999         Tests for module 'rintl'.
7000         * modules/rintl-tests: New file.
7001         * tests/test-rintl.c: New file.
7002
7003         New module 'rintl'.
7004         * lib/math.in.h (rintl): New declaration.
7005         * lib/rintl.c: New file.
7006         * m4/rintl.m4: New file.
7007         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7009         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7010         * modules/rintl: New file.
7011         * tests/test-math-c++.cc: Check the declaration of rintl.
7012         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7013         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7014         * doc/posix-functions/rintl.texi: Mention the new module.
7015
7016 2011-10-09  Bruno Haible  <bruno@clisp.org>
7017
7018         Tests for module 'rintf'.
7019         * modules/rintf-tests: New file.
7020         * tests/test-rintf.c: New file.
7021
7022         New module 'rintf'.
7023         * lib/math.in.h (rintf): New declaration.
7024         * lib/rintf.c: New file.
7025         * m4/rintf.m4: New file.
7026         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7028         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7029         * modules/rintf: New file.
7030         * tests/test-math-c++.cc: Check the declaration of rintf.
7031         * doc/posix-functions/rintf.texi: Mention the new module.
7032
7033 2011-10-09  Bruno Haible  <bruno@clisp.org>
7034
7035         rint: Support for MSVC.
7036         * lib/math.in.h (rint): New declaration.
7037         * lib/rint.c: New file.
7038         * m4/rint.m4: New file.
7039         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7041         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7042         * modules/rint (Description): Fix.
7043         (Files): Add lib/rint.c, m4/rint.m4.
7044         (Depends-on): Add math.
7045         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7046         gl_MATH_MODULE_INDICATOR.
7047         * tests/test-math-c++.cc: Check the declaration of rint.
7048         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7049         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7050         * doc/posix-functions/rint.texi: Mention the replacement provided by
7051         the module.
7052
7053         rint tests: More tests.
7054         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7055         minus-zero.h, infinity.h, nan.h.
7056         (main): Skip the test if the current rounding mode is not standard. Add
7057         tests for negative numbers, minus zero, infinity, NaN.
7058         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7059         tests/nan.h.
7060         (Depends-on): Add isnand-nolibm.
7061
7062 2011-10-09  Bruno Haible  <bruno@clisp.org>
7063
7064         Tests for module 'copysignl'.
7065         * modules/copysignl-tests: New file.
7066         * tests/test-copysignl.c: New file.
7067
7068         New module 'copysignl'.
7069         * lib/math.in.h (copysignl): New declaration.
7070         * lib/copysignl.c: New file.
7071         * m4/copysignl.m4: New file.
7072         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7074         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7075         HAVE_COPYSIGNL.
7076         * modules/copysignl: New file.
7077         * tests/test-math-c++.cc: Check the declaration of copysignl.
7078         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7079         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7080         * doc/posix-functions/copysignl.texi: Mention the new module.
7081
7082 2011-10-09  Bruno Haible  <bruno@clisp.org>
7083
7084         Tests for module 'copysignf'.
7085         * modules/copysignf-tests: New file.
7086         * tests/test-copysignf.c: New file.
7087
7088         New module 'copysignf'.
7089         * lib/math.in.h (copysignf): New declaration.
7090         * lib/copysignf.c: New file.
7091         * m4/copysignf.m4: New file.
7092         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7094         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7095         HAVE_COPYSIGNF.
7096         * modules/copysignf: New file.
7097         * tests/test-math-c++.cc: Check the declaration of copysignf.
7098         * doc/posix-functions/copysignf.texi: Mention the new module.
7099
7100 2011-10-09  Bruno Haible  <bruno@clisp.org>
7101
7102         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7103         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7104         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7105         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7107         gl_SIGNAL_H_DEFAULTS.
7108
7109 2011-10-09  Bruno Haible  <bruno@clisp.org>
7110
7111         poll: Make macro safer.
7112         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7113         ac_cv_header_poll_h is not set.
7114
7115 2011-10-09  Bruno Haible  <bruno@clisp.org>
7116
7117         copysign: Provide replacement.
7118         * lib/math.in.h (copysign): New declaration.
7119         * lib/copysign.c: New file.
7120         * m4/copysign.m4: New file.
7121         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7123         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7124         HAVE_COPYSIGN.
7125         * modules/copysign (Description): Clarify.
7126         (Files): Add lib/copysign.c, m4/copysign.m4.
7127         (Depends-on): Add math, signbit.
7128         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7129         gl_MATH_MODULE_INDICATOR.
7130         * tests/test-math-c++.cc: Check the declaration of copysign.
7131         * doc/posix-functions/copysign.texi: Mention the effects of the module
7132         on Minix and MSVC.
7133
7134 2011-10-09  Bruno Haible  <bruno@clisp.org>
7135
7136         isinf: Ensure macro on AIX 5.1.
7137         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7138         macro.
7139         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7140
7141 2011-10-09  Bruno Haible  <bruno@clisp.org>
7142
7143         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7144         * modules/snprintf-posix-tests (configure.ac): Require
7145         gl_LONG_DOUBLE_VS_DOUBLE.
7146         * modules/sprintf-posix-tests (configure.ac): Likewise.
7147         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7148         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7149         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7150         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7151         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7152         tests on platforms where 'long double' is the same as 'double'.
7153         * tests/test-sprintf-posix.h (test_function): Likewise.
7154         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7155         * tests/test-vasprintf-posix.c (test_function): Likewise.
7156
7157         *printf: Fix for platforms where 'long double' == 'double'.
7158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7159         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7160         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7161         * modules/fprintf-posix (Files): Likewise.
7162         * modules/obstack-printf-posix (Files): Likewise.
7163         * modules/snprintf-posix (Files): Likewise.
7164         * modules/sprintf-posix (Files): Likewise.
7165         * modules/vasnprintf (Files): Likewise.
7166         * modules/vasnprintf-posix (Files): Likewise.
7167         * modules/vasprintf-posix (Files): Likewise.
7168         * modules/vdprintf-posix (Files): Likewise.
7169         * modules/vfprintf-posix (Files): Likewise.
7170         * modules/vsnprintf-posix (Files): Likewise.
7171         * modules/vsprintf-posix (Files): Likewise.
7172         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7173         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7174         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7175         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7176         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7177         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7178         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7179
7180         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7181         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7182         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7183         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7184         'long double'.
7185         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7186
7187         isinf: Fix for platforms where 'long double' == 'double'.
7188         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7189         Don't blindly assume 80-bit 'long double'.
7190
7191         isfinite: Fix for platforms where 'long double' == 'double'.
7192         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7193         Don't blindly assume 80-bit 'long double'.
7194
7195         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7196         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7197         * modules/isfinite-tests (configure.ac): Require
7198         gl_LONG_DOUBLE_VS_DOUBLE.
7199         * modules/isinf-tests (configure.ac): Likewise.
7200         * modules/isnan-tests (configure.ac): Likewise.
7201         * modules/isnanl-tests (configure.ac): Likewise.
7202         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7203         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7204         tests on platforms where 'long double' is the same as 'double'.
7205         * tests/test-isinf.c (test_isinfl): Likewise.
7206         * tests/test-isnan.c (test_long_double): Likewise.
7207         * tests/test-isnanl.h (main): Likewise.
7208
7209 2011-10-08  Bruno Haible  <bruno@clisp.org>
7210
7211         Tests for module 'tanhf'.
7212         * modules/tanhf-tests: New file.
7213         * tests/test-tanhf.c: New file.
7214
7215         New module 'tanhf'.
7216         * lib/math.in.h (tanhf): New declaration.
7217         * lib/tanhf.c: New file.
7218         * m4/tanhf.m4: New file.
7219         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7221         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7222         * modules/tanhf: New file.
7223         * tests/test-math-c++.cc: Check the declaration of tanhf.
7224         * doc/posix-functions/tanhf.texi: Mention the new module.
7225
7226         tanh: Use a .m4 file.
7227         * m4/tanh.m4: New file.
7228         * modules/tanh (Files): Add it.
7229         (configure.ac): Just invoke gl_FUNC_TANH.
7230
7231 2011-10-08  Bruno Haible  <bruno@clisp.org>
7232
7233         Tests for module 'coshf'.
7234         * modules/coshf-tests: New file.
7235         * tests/test-coshf.c: New file.
7236
7237         New module 'coshf'.
7238         * lib/math.in.h (coshf): New declaration.
7239         * lib/coshf.c: New file.
7240         * m4/coshf.m4: New file.
7241         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7243         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7244         * modules/coshf: New file.
7245         * tests/test-math-c++.cc: Check the declaration of coshf.
7246         * doc/posix-functions/coshf.texi: Mention the new module.
7247
7248         cosh: Use a .m4 file.
7249         * m4/cosh.m4: New file.
7250         * modules/cosh (Files): Add it.
7251         (configure.ac): Just invoke gl_FUNC_COSH.
7252
7253 2011-10-08  Bruno Haible  <bruno@clisp.org>
7254
7255         Tests for module 'sinhf'.
7256         * modules/sinhf-tests: New file.
7257         * tests/test-sinhf.c: New file.
7258
7259         New module 'sinhf'.
7260         * lib/math.in.h (sinhf): New declaration.
7261         * lib/sinhf.c: New file.
7262         * m4/sinhf.m4: New file.
7263         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7265         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7266         * modules/sinhf: New file.
7267         * tests/test-math-c++.cc: Check the declaration of sinhf.
7268         * doc/posix-functions/sinhf.texi: Mention the new module.
7269
7270         sinh: Use a .m4 file.
7271         * m4/sinh.m4: New file.
7272         * modules/sinh (Files): Add it.
7273         (configure.ac): Just invoke gl_FUNC_SINH.
7274
7275 2011-10-08  Bruno Haible  <bruno@clisp.org>
7276
7277         Tests for module 'atan2f'.
7278         * modules/atan2f-tests: New file.
7279         * tests/test-atan2f.c: New file.
7280
7281         New module 'atan2f'.
7282         * lib/math.in.h (atan2f): New declaration.
7283         * lib/atan2f.c: New file.
7284         * m4/atan2f.m4: New file.
7285         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7287         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7288         * modules/atan2f: New file.
7289         * tests/test-math-c++.cc: Check the declaration of atan2f.
7290         * doc/posix-functions/atan2f.texi: Mention the new module.
7291
7292         atan2: Use a .m4 file.
7293         * m4/atan2.m4: New file.
7294         * modules/atan2 (Files): Add it.
7295         (configure.ac): Just invoke gl_FUNC_ATAN2.
7296
7297 2011-10-08  Bruno Haible  <bruno@clisp.org>
7298
7299         Tests for module 'atanf'.
7300         * modules/atanf-tests: New file.
7301         * tests/test-atanf.c: New file.
7302
7303         New module 'atanf'.
7304         * lib/math.in.h (atanf): New declaration.
7305         * lib/atanf.c: New file.
7306         * m4/atanf.m4: New file.
7307         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7309         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7310         * modules/atanf: New file.
7311         * tests/test-math-c++.cc: Check the declaration of atanf.
7312         * doc/posix-functions/atanf.texi: Mention the new module.
7313
7314         atan: Use a .m4 file.
7315         * m4/atan.m4: New file.
7316         * modules/atan (Files): Add it.
7317         (configure.ac): Just invoke gl_FUNC_ATAN.
7318
7319 2011-10-08  Bruno Haible  <bruno@clisp.org>
7320
7321         Tests for module 'acosf'.
7322         * modules/acosf-tests: New file.
7323         * tests/test-acosf.c: New file.
7324
7325         New module 'acosf'.
7326         * lib/math.in.h (acosf): New declaration.
7327         * lib/acosf.c: New file.
7328         * m4/acosf.m4: New file.
7329         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7331         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7332         * modules/acosf: New file.
7333         * tests/test-math-c++.cc: Check the declaration of acosf.
7334         * doc/posix-functions/acosf.texi: Mention the new module.
7335
7336         acos: Use a .m4 file.
7337         * m4/acos.m4: New file.
7338         * modules/acos (Files): Add it.
7339         (configure.ac): Just invoke gl_FUNC_ACOS.
7340
7341 2011-10-08  Bruno Haible  <bruno@clisp.org>
7342
7343         Tests for module 'asinf'.
7344         * modules/asinf-tests: New file.
7345         * tests/test-asinf.c: New file.
7346
7347         New module 'asinf'.
7348         * lib/math.in.h (asinf): New declaration.
7349         * lib/asinf.c: New file.
7350         * m4/asinf.m4: New file.
7351         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7353         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7354         * modules/asinf: New file.
7355         * tests/test-math-c++.cc: Check the declaration of asinf.
7356         * doc/posix-functions/asinf.texi: Mention the new module.
7357
7358         asin: Use a .m4 file.
7359         * m4/asin.m4: New file.
7360         * modules/asin (Files): Add it.
7361         (configure.ac): Just invoke gl_FUNC_ASIN.
7362
7363 2011-10-08  Bruno Haible  <bruno@clisp.org>
7364
7365         Tests for module 'tanf'.
7366         * modules/tanf-tests: New file.
7367         * tests/test-tanf.c: New file.
7368
7369         New module 'tanf'.
7370         * lib/math.in.h (tanf): New declaration.
7371         * lib/tanf.c: New file.
7372         * m4/tanf.m4: New file.
7373         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7375         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7376         * modules/tanf: New file.
7377         * tests/test-math-c++.cc: Check the declaration of tanf.
7378         * doc/posix-functions/tanf.texi: Mention the new module.
7379
7380         tan: Use a .m4 file.
7381         * m4/tan.m4: New file.
7382         * modules/tan (Files): Add it.
7383         (configure.ac): Just invoke gl_FUNC_TAN.
7384
7385 2011-10-08  Bruno Haible  <bruno@clisp.org>
7386
7387         Tests for module 'cosf'.
7388         * modules/cosf-tests: New file.
7389         * tests/test-cosf.c: New file.
7390
7391         New module 'cosf'.
7392         * lib/math.in.h (cosf): New declaration.
7393         * lib/cosf.c: New file.
7394         * m4/cosf.m4: New file.
7395         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7397         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7398         * modules/cosf: New file.
7399         * tests/test-math-c++.cc: Check the declaration of cosf.
7400         * doc/posix-functions/cosf.texi: Mention the new module.
7401
7402         cos: Use a .m4 file.
7403         * m4/cos.m4: New file.
7404         * modules/cos (Files): Add it.
7405         (configure.ac): Just invoke gl_FUNC_COS.
7406
7407 2011-10-08  Bruno Haible  <bruno@clisp.org>
7408
7409         Tests for module 'sinf'.
7410         * modules/sinf-tests: New file.
7411         * tests/test-sinf.c: New file.
7412
7413         New module 'sinf'.
7414         * lib/math.in.h (sinf): New declaration.
7415         * lib/sinf.c: New file.
7416         * m4/sinf.m4: New file.
7417         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7419         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7420         * modules/sinf: New file.
7421         * tests/test-math-c++.cc: Check the declaration of sinf.
7422         * doc/posix-functions/sinf.texi: Mention the new module.
7423
7424         sin: Use a .m4 file.
7425         * m4/sin.m4: New file.
7426         * modules/sin (Files): Add it.
7427         (configure.ac): Just invoke gl_FUNC_SIN.
7428
7429 2011-10-08  Bruno Haible  <bruno@clisp.org>
7430
7431         Tests for module 'powf'.
7432         * modules/powf-tests: New file.
7433         * tests/test-powf.c: New file.
7434
7435         New module 'powf'.
7436         * lib/math.in.h (powf): New declaration.
7437         * lib/powf.c: New file.
7438         * m4/powf.m4: New file.
7439         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7441         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7442         * modules/powf: New file.
7443         * tests/test-math-c++.cc: Check the declaration of powf.
7444         * doc/posix-functions/powf.texi: Mention the new module.
7445
7446         pow: Use a .m4 file.
7447         * m4/pow.m4: New file.
7448         * modules/pow (Files): Add it.
7449         (configure.ac): Just invoke gl_FUNC_POW.
7450
7451 2011-10-08  Bruno Haible  <bruno@clisp.org>
7452
7453         Tests for module 'log10f'.
7454         * modules/log10f-tests: New file.
7455         * tests/test-log10f.c: New file.
7456
7457         New module 'log10f'.
7458         * lib/math.in.h (log10f): New declaration.
7459         * lib/log10f.c: New file.
7460         * m4/log10f.m4: New file.
7461         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7463         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7464         * modules/log10f: New file.
7465         * tests/test-math-c++.cc: Check the declaration of log10f.
7466         * doc/posix-functions/log10f.texi: Mention the new module.
7467
7468         log10: Use a .m4 file.
7469         * m4/log10.m4: New file.
7470         * modules/log10 (Files): Add it.
7471         (configure.ac): Just invoke gl_FUNC_LOG10.
7472
7473 2011-10-08  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'logf'.
7476         * modules/logf-tests: New file.
7477         * tests/test-logf.c: New file.
7478
7479         New module 'logf'.
7480         * lib/math.in.h (logf): New declaration.
7481         * lib/logf.c: New file.
7482         * m4/logf.m4: New file.
7483         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7485         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7486         * modules/logf: New file.
7487         * tests/test-math-c++.cc: Check the declaration of logf.
7488         * doc/posix-functions/logf.texi: Mention the new module.
7489
7490         log: Use a .m4 file.
7491         * m4/log.m4: New file.
7492         * modules/log (Files): Add it.
7493         (configure.ac): Just invoke gl_FUNC_LOG.
7494
7495 2011-10-08  Bruno Haible  <bruno@clisp.org>
7496
7497         Tests for module 'expf'.
7498         * modules/expf-tests: New file.
7499         * tests/test-expf.c: New file.
7500
7501         New module 'expf'.
7502         * lib/math.in.h (expf): New declaration.
7503         * lib/expf.c: New file.
7504         * m4/expf.m4: New file.
7505         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7507         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7508         * modules/expf: New file.
7509         * tests/test-math-c++.cc: Check the declaration of expf.
7510         * doc/posix-functions/expf.texi: Mention the new module.
7511
7512         exp: Use a .m4 file.
7513         * m4/exp.m4: New file.
7514         * modules/exp (Files): Add it.
7515         (configure.ac): Just invoke gl_FUNC_EXP.
7516
7517 2011-10-08  Bruno Haible  <bruno@clisp.org>
7518
7519         Tests for module 'sqrtf'.
7520         * modules/sqrtf-tests: New file.
7521         * tests/test-sqrtf.c: New file.
7522
7523         New module 'sqrtf'.
7524         * lib/math.in.h (sqrtf): New declaration.
7525         * lib/sqrtf.c: New file.
7526         * m4/sqrtf.m4: New file.
7527         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7529         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7530         * modules/sqrtf: New file.
7531         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7532         * doc/posix-functions/sqrtf.texi: Mention the new module.
7533
7534 2011-10-08  Bruno Haible  <bruno@clisp.org>
7535
7536         Tests: Avoid link failures w.r.t. libintl.
7537         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7538         $(LIBINTL).
7539         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7540         $(LIBINTL).
7541         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7542         against $(LIBINTL).
7543         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7544         $(LIBINTL).
7545         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7546         $(LIBINTL).
7547         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7548
7549 2011-10-08  Bruno Haible  <bruno@clisp.org>
7550
7551         pow tests: Defeat compiler optimizations.
7552         * tests/test-pow.c (main): Assign arguments to x and y before use.
7553
7554 2011-10-08  Bruno Haible  <bruno@clisp.org>
7555
7556         gnulib-tool: Improve last commit.
7557         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7558         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7559         ignore dependencies that are not among the modules list.
7560
7561 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7562
7563         gnulib-tool: don't follow dependencies to avoided modules
7564         This fixes a bug that is related to the previous one.
7565         * gnulib-tool (func_modules_transitive_closure)
7566         (func_emit_autoconf_snippets):
7567         Check whether a dependency is acceptable before using it.
7568         (--extract-dependencies): Report an error if --avoid is also used,
7569         since this combination of options is not yet supported.
7570
7571         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7572         Problem reported by Peter Dyballa in
7573         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7574         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7575         when echoing "$condition".
7576
7577 2011-10-07  Bruno Haible  <bruno@clisp.org>
7578
7579         Fix documentation about math functions on MacOS X.
7580         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7581         MacOS X 10.5.
7582         * doc/posix-functions/fdim.texi: Likewise.
7583         * doc/posix-functions/feclearexcept.texi: Likewise.
7584         * doc/posix-functions/fegetenv.texi: Likewise.
7585         * doc/posix-functions/fegetround.texi: Likewise.
7586         * doc/posix-functions/feholdexcept.texi: Likewise.
7587         * doc/posix-functions/feraiseexcept.texi: Likewise.
7588         * doc/posix-functions/fesetenv.texi: Likewise.
7589         * doc/posix-functions/fesetround.texi: Likewise.
7590         * doc/posix-functions/fetestexcept.texi: Likewise.
7591         * doc/posix-functions/feupdateenv.texi: Likewise.
7592         * doc/posix-functions/fmax.texi: Likewise.
7593         * doc/posix-functions/fmin.texi: Likewise.
7594         * doc/posix-functions/log2.texi: Likewise.
7595         * doc/posix-functions/modff.texi: Likewise.
7596         * doc/posix-functions/nan.texi: Likewise.
7597         * doc/posix-functions/nanf.texi: Likewise.
7598         * doc/posix-functions/nextafterf.texi: Likewise.
7599         * doc/posix-functions/remquo.texi: Likewise.
7600
7601 2011-10-07  Bruno Haible  <bruno@clisp.org>
7602
7603         modff: Drop assumption about library that defines modff.
7604         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7605         AC_CHECK_FUNCS.
7606         * modules/modff (Files): Add m4/mathfunc.m4.
7607
7608 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7609
7610         raise tests: Avoid a GCC warning.
7611         * tests/test-raise.c (handler): Use _Noreturn.
7612
7613 2011-10-07  Bruno Haible  <bruno@clisp.org>
7614
7615         Tests for module 'ldexpf'.
7616         * modules/ldexpf-tests: New file.
7617         * tests/test-ldexpf.c: New file.
7618
7619         New module 'ldexpf'.
7620         * lib/math.in.h (ldexpf): New declaration.
7621         * lib/ldexpf.c: New file.
7622         * m4/ldexpf.m4: New file.
7623         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7625         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7626         * modules/ldexpf: New file.
7627         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7628         * doc/posix-functions/ldexpf.texi: Mention the new module.
7629
7630 2011-10-06  Bruno Haible  <bruno@clisp.org>
7631
7632         frexpf: Work around problems on IRIX and mingw.
7633         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7635         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7636         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7637         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7638         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7639         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7640
7641 2011-10-06  Bruno Haible  <bruno@clisp.org>
7642
7643         fabsf: Drop assumption about library that defines fabsf.
7644         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7645         AC_CHECK_FUNCS.
7646         * modules/fabsf (Files): Add m4/mathfunc.m4.
7647
7648 2011-10-06  Bruno Haible  <bruno@clisp.org>
7649
7650         frexpf: Drop assumption about library that defines frexpf.
7651         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7652         'int *', 'float *', 'long double *', 'float', 'long double'.
7653         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7654         AC_CHECK_FUNCS.
7655         * modules/frexpf (Files): Add m4/mathfunc.m4.
7656
7657         Tests for module 'frexpf'.
7658         * modules/frexpf-tests: New file.
7659         * tests/test-frexpf.c: New file.
7660
7661         New module 'frexpf'.
7662         * lib/math.in.h (frexpf): New declaration.
7663         * lib/frexpf.c: New file.
7664         * m4/frexpf.m4: New file.
7665         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7667         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7668         * modules/frexpf: New file.
7669         * tests/test-math-c++.cc: Check the declaration of frexpf.
7670         * doc/posix-functions/frexpf.texi: Mention the new module.
7671
7672 2011-10-06  Bruno Haible  <bruno@clisp.org>
7673
7674         math: Sort function declarations of math.in.h.
7675         * lib/math.in.h (frexp, logb): Move declarations.
7676
7677 2011-10-05  Bruno Haible  <bruno@clisp.org>
7678
7679         Tests for module 'modff'.
7680         * modules/modff-tests: New file.
7681         * tests/test-modff.c: New file.
7682
7683         New module 'modff'.
7684         * lib/math.in.h (modff): New declaration.
7685         * lib/modff.c: New file.
7686         * m4/modff.m4: New file.
7687         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7689         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7690         * modules/modff: New file.
7691         * tests/test-math-c++.cc: Check the declaration of modff.
7692         * doc/posix-functions/modff.texi: Mention the new module.
7693
7694         modf tests: Make test sharper.
7695         * tests/test-modf.c (main): Strengthen upper bound.
7696
7697         modf: Use a .m4 file.
7698         * m4/modf.m4: New file.
7699         * modules/modf (Files): Add it.
7700         (configure.ac): Just invoke gl_FUNC_MODF.
7701
7702 2011-10-05  Bruno Haible  <bruno@clisp.org>
7703
7704         Tests for module 'fmodf'.
7705         * modules/fmodf-tests: New file.
7706         * tests/test-fmodf.c: New file.
7707
7708         New module 'fmodf'.
7709         * lib/math.in.h (fmodf): New declaration.
7710         * lib/fmodf.c: New file.
7711         * m4/fmodf.m4: New file.
7712         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7714         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7715         * modules/fmodf: New file.
7716         * tests/test-math-c++.cc: Check the declaration of fmodf.
7717         * doc/posix-functions/fmodf.texi: Mention the new module.
7718
7719         fmod: Use a .m4 file.
7720         * m4/fmod.m4: New file.
7721         * modules/fmod (Files): Add it.
7722         (configure.ac): Just invoke gl_FUNC_FMOD.
7723
7724 2011-10-05  Bruno Haible  <bruno@clisp.org>
7725
7726         Tests for module 'fabsf'.
7727         * modules/fabsf-tests: New file.
7728         * tests/test-fabsf.c: New file.
7729
7730         New module 'fabsf'.
7731         * lib/math.in.h (fabsf): New declaration.
7732         * lib/fabsf.c: New file.
7733         * m4/fabsf.m4: New file.
7734         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7736         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7737         * modules/fabsf: New file.
7738         * tests/test-math-c++.cc: Check the declaration of fabsf.
7739         * doc/posix-functions/fabsf.texi: Mention the new module.
7740
7741         fabs: Use a .m4 file.
7742         * m4/fabs.m4: New file.
7743         * modules/fabs (Files): Add it.
7744         (configure.ac): Just invoke gl_FUNC_FABS.
7745
7746 2011-10-05  Jim Meyering  <meyering@redhat.com>
7747
7748         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7749         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7750         ls -lL regression introduced in coreutils-8.12, it does so at the
7751         cost of an additional stat call in the common case.  Besides, now
7752         that the kernel change that prompted commit 95f7c57f has been reverted
7753         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7754         we have no use for commit 95f7c57f, "file-has-acl: use
7755         acl_extended_file_nofollow if available".
7756
7757 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7758
7759         file-has-acl: revert unintended change in behavior of ls -L
7760         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7761         derived from...
7762         (file_has_acl): ...code here.  Call it.
7763         This problem was introduced with 2011-07-22 commit 95f7c57f,
7764         "file-has-acl: use acl_extended_file_nofollow if available".
7765         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7766
7767 2011-10-03  Bruno Haible  <bruno@clisp.org>
7768
7769         poll: Avoid link errors on MSVC.
7770         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7771         * modules/poll (Depends-on): Add sockets.
7772         (Link): New section.
7773         * NEWS: Mention the change.
7774         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7775         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7776         $(LIB_POLL) instead of $(LIBSOCKET).
7777
7778 2011-10-03  Bruno Haible  <bruno@clisp.org>
7779
7780         sys_select tests: Fix link error on MSVC 9.
7781         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7782         with $(LIB_SELECT) instead of $(LIBSOCKET).
7783
7784 2011-10-03  Bruno Haible  <bruno@clisp.org>
7785
7786         sys_select: Fix compilation error on mingw.
7787         * lib/sys_select.in.h: On native Windows, include <io.h>.
7788
7789 2011-10-03  Bruno Haible  <bruno@clisp.org>
7790
7791         wmemset: Support for MSVC.
7792         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7793         whether wmemset() exists.
7794
7795 2011-10-03  Bruno Haible  <bruno@clisp.org>
7796
7797         wmemmove: Support for MSVC.
7798         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7799         whether wmemmove() exists.
7800
7801 2011-10-03  Bruno Haible  <bruno@clisp.org>
7802
7803         wmemcpy: Support for MSVC.
7804         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7805         whether wmemcpy() exists.
7806
7807 2011-10-03  Bruno Haible  <bruno@clisp.org>
7808
7809         wmemcmp: Support for MSVC.
7810         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7811         whether wmemcmp() exists.
7812
7813 2011-10-03  Bruno Haible  <bruno@clisp.org>
7814
7815         wmemchr: Support for MSVC.
7816         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7817         whether wmemchr() exists.
7818
7819 2011-10-03  Bruno Haible  <bruno@clisp.org>
7820
7821         glthread/*, strsignal: Support for MSVC.
7822         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7823         including <winsock.h> on MSVC 9.
7824         * lib/glthread/lock.h: Likewise.
7825         * lib/glthread/thread.h: Likewise.
7826         * lib/glthread/tls.h: Likewise.
7827         * lib/glthread/yield.h: Likewise.
7828         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7829         if HAVE_UNISTD_H is false.
7830         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7831
7832 2011-10-03  Bruno Haible  <bruno@clisp.org>
7833
7834         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7835         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7836         Set to 100000.
7837
7838 2011-10-03  Bruno Haible  <bruno@clisp.org>
7839
7840         acl: Fix specification.
7841         * lib/file-has-acl.c (file_has_acl): Fix specification.
7842
7843 2011-10-03  Bruno Haible  <bruno@clisp.org>
7844
7845         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7846         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7847         (compute_curr_prefix, shared_library_fullname,
7848         find_shared_library_fullname, get_shared_library_fullname, relocate):
7849         Use it together with PIC && INSTALLDIR.
7850         Reported by <jojelino@gmail.com>
7851         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7852
7853 2011-10-01  Jim Meyering  <meyering@redhat.com>
7854
7855         maint.mk: adjust a release-related rule not to require use of gzip
7856         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7857         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7858         projects that build only .tar.xz files.  Also fix an erroneous test.
7859
7860         test-linkat: don't leave behind a temporary file
7861         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7862         Otherwise, coreutils' "make distcheck" would fail with this:
7863           Only in /c/cu/tests/torture/coreutils/test/\
7864             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7865           make[2]: *** [my-distcheck] Error 1
7866
7867         float, math: add omitted file
7868         * lib/itold.c: Add file, required for yesterday's float change.
7869
7870 2011-10-01  Bruno Haible  <bruno@clisp.org>
7871
7872         isinf: Fix for OpenBSD/x86.
7873         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7874         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7875         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7876
7877 2011-10-01  Bruno Haible  <bruno@clisp.org>
7878
7879         isfinite: Fix syntax error in configure test.
7880         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7881
7882         isfinite: Fix typo.
7883         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7884         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7885
7886 2011-10-01  Bruno Haible  <bruno@clisp.org>
7887
7888         nonblocking tests: Fix test failure on Linux/IA-64.
7889         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7890         Set to 270000.
7891
7892 2011-10-01  Bruno Haible  <bruno@clisp.org>
7893
7894         mkfifoat tests: Fix a test failure on mingw.
7895         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7896         with error ENOSYS.
7897
7898 2011-09-30  Bruno Haible  <bruno@clisp.org>
7899
7900         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7901         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7902         'long double'. Set REPLACE_ITOLD.
7903         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7904         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7905         * lib/itold.c: New file.
7906         * modules/float (Files): Add lib/itold.c.
7907         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7908         (Makefile.am): Substitute REPLACE_ITOLD.
7909         * modules/math (Depends-on): Add float.
7910         (Makefile.am): Substitute REPLACE_ITOLD.
7911         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7912         * doc/posix-headers/math.texi: Likewise.
7913         * doc/posix-functions/logl.texi: Likewise.
7914
7915 2011-09-30  Bruno Haible  <bruno@clisp.org>
7916
7917         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7918         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7919         Set to 140000.
7920
7921 2011-09-30  Bruno Haible  <bruno@clisp.org>
7922
7923         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7924         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7925         invocation, say "right after AC_PROG_CC_STDC", not "right after
7926         AC_PROG_CC".
7927         Reported by Gary V. Vaughan <gary@gnu.org>.
7928
7929 2011-09-30  Bruno Haible  <bruno@clisp.org>
7930
7931         Centralize C99 requirement.
7932         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7933         * modules/stdarg (configure.ac-early): Invoke it instead of
7934         AC_PROG_CC_STDC.
7935         Reported by Gary V. Vaughan and Paul Eggert.
7936
7937 2011-09-29  Bruno Haible  <bruno@clisp.org>
7938
7939         float: Fix LDBL_MAX value on Linux/PowerPC.
7940         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7941         on Linux/PowerPC.
7942         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7943         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7944         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7945         platform.
7946         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7947
7948 2011-09-29  Bruno Haible  <bruno@clisp.org>
7949
7950         doc: Improve doc about gl_EARLY.
7951         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7952         AC_PROG_CC_STDC invocation.
7953         Reported by Gary V. Vaughan <gary@gnu.org>.
7954
7955 2011-09-28  Bruno Haible  <bruno@clisp.org>
7956
7957         fgetc, fputc, fread, fwrite tests: Fix link error.
7958         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7959         on non-MSVC platforms.
7960         * tests/test-fputc.c (main): Likewise.
7961         * tests/test-fread.c (main): Likewise.
7962         * tests/test-fwrite.c (main): Likewise.
7963         Reported by Jim Meyering.
7964
7965 2011-09-27  Bruno Haible  <bruno@clisp.org>
7966
7967         fputc, fwrite tests: Avoid test failure on MSVC.
7968         * tests/test-fgetc.c: Include msvc-inval.h.
7969         (main): Invoke gl_msvc_inval_ensure_handler.
7970         * tests/test-fputc.c: Include msvc-inval.h.
7971         (main): Invoke gl_msvc_inval_ensure_handler.
7972         * tests/test-fread.c: Include msvc-inval.h.
7973         (main): Invoke gl_msvc_inval_ensure_handler.
7974         * tests/test-fwrite.c: Include msvc-inval.h.
7975         (main): Invoke gl_msvc_inval_ensure_handler.
7976         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7977         * modules/fputc-tests (Depends-on): Likewise.
7978         * modules/fread-tests (Depends-on): Likewise.
7979         * modules/fwrite-tests (Depends-on): Likewise.
7980
7981 2011-09-27  Bruno Haible  <bruno@clisp.org>
7982
7983         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7984         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7985         (raise): Remove older, duplicated declaration.
7986         (_gl_raise_SIGPIPE): New declaration.
7987         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7988         (rpl_raise): Remove function.
7989         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7990         a gnulib-defined SIGPIPE here.
7991         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7992         'sigprocmask' has detected missing signal-blocking and the module
7993         'sigpipe' is enabled.
7994         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7995
7996 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7997
7998         base64-tests: avoid memory leak
7999         * tests/test-base64.c (main): Plug memory leak.
8000
8001         base32: new module
8002         * modules/base32: New module.
8003         * lib/base32.c: New file.
8004         * lib/base32.h: Likewise.
8005         * m4/base32.m4: Likewise.
8006         * modules/base32-tests: New test.
8007         * tests/test-base32.c: Likewise.
8008         * MODULES.html.sh (Misc): Mention it.
8009
8010 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8011
8012         gnulib: use more-standard license notice wording
8013         * gnulib-tool (func_emit_copyright_notice): When emitting a
8014         license notice into a file, use the standard wording as suggested
8015         by the current information for GNU maintainers, except say "file"
8016         rather than "program".  The new wording gives a license version
8017         number, which addresses an issue raised by Glenn Morris in
8018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8019         * m4/onceonly.m4: Use that same wording here, too.
8020
8021         dup2: minor simplification
8022         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8023         as lib/dup2.c no longer uses 'inline'.
8024
8025 2011-09-25  Bruno Haible  <bruno@clisp.org>
8026
8027         strings: Fix compilation error on MSVC.
8028         * lib/strings.in.h: Include <stddef.h> for size_t.
8029
8030 2011-09-25  Bruno Haible  <bruno@clisp.org>
8031
8032         fflush et al.: Document limitation on MSVC.
8033         * doc/posix-functions/fflush.texi: Document possible crash in handling
8034         mode other than DEFAULT_HANDLING.
8035         * doc/posix-functions/fgetc.texi: Likewise.
8036         * doc/posix-functions/fputc.texi: Likewise.
8037         * doc/posix-functions/fread.texi: Likewise.
8038         * doc/posix-functions/fwrite.texi: Likewise.
8039
8040 2011-09-25  Bruno Haible  <bruno@clisp.org>
8041
8042         msvc-inval: Allow three invalid parameter handling modes.
8043         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8044         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8045         macros.
8046         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8047         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8048         SANE_LIBRARY_HANDLING as a no-op.
8049         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8050         <stdlib.h>.
8051         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8052
8053 2011-09-25  Bruno Haible  <bruno@clisp.org>
8054
8055         msvc-inval: Make handler multithread-safe.
8056         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8057         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8058         declarations.
8059         (gl_msvc_inval_current): New declaration.
8060         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8061         Operate on the structure returned by gl_msvc_inval_current().
8062         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8063         Remove varaiables.
8064         (tls_index, tls_initialized): New variables.
8065         (not_per_thread): New variable.
8066         (gl_msvc_inval_current): New function.
8067         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8068         returned by gl_msvc_inval_current().
8069
8070 2011-09-25  Bruno Haible  <bruno@clisp.org>
8071
8072         msvc-inval: Install handler globally.
8073         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8074         !_MSC_VER.
8075         (gl_msvc_invalid_parameter_handler): Remove declaration.
8076         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8077         declarations.
8078         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8079         Install the handler globally, don't uninstall it.
8080         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8081         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8082         currently valid, call RaiseException instead.
8083         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8084         for !_MSC_VER.
8085
8086 2011-09-25  Bruno Haible  <bruno@clisp.org>
8087
8088         strerror_r-posix: Fix for MSVC 9.
8089         * lib/strerror_r.c (local_snprintf): New function.
8090         (snprintf): Define to local_snprintf, not to _snprintf.
8091
8092 2011-09-25  Bruno Haible  <bruno@clisp.org>
8093
8094         ftruncate: Support for MSVC 9.
8095         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8096         (chsize_nothrow): New function.
8097         (chsize): Redefine as a macro.
8098         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8099         * modules/ftruncate (Depends-on): Add msvc-inval.
8100
8101 2011-09-25  Bruno Haible  <bruno@clisp.org>
8102
8103         New module 'fstat'.
8104         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8105         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8106         * lib/fchdir.c (rpl_fstat): Remove function.
8107         * m4/fstat.m4: New file.
8108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8110         declared.
8111         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8112         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8113         * modules/fstat: New file.
8114         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8115         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8116         is set.
8117         * doc/posix-functions/fstat.texi: Mention the new module and the
8118         problem on MSVC.
8119         * NEWS: Mention the change.
8120         * modules/acl (Depends-on): Add fstat.
8121         * modules/chdir-safer (Depends-on): Likewise.
8122         * modules/chown (Depends-on): Likewise.
8123         * modules/copy-file (Depends-on): Likewise.
8124         * modules/fchdir (Depends-on): Likewise.
8125         * modules/fdopendir (Depends-on): Likewise.
8126         * modules/fopen (Depends-on): Likewise.
8127         * modules/fts (Depends-on): Likewise.
8128         * modules/getcwd (Depends-on): Likewise.
8129         * modules/isapipe (Depends-on): Likewise.
8130         * modules/linkat (Depends-on): Likewise.
8131         * modules/lseek (Depends-on): Likewise.
8132         * modules/mkdir-p (Depends-on): Likewise.
8133         * modules/open (Depends-on): Likewise.
8134         * modules/openat (Depends-on): Likewise.
8135         * modules/read-file (Depends-on): Likewise.
8136         * modules/renameat (Depends-on): Likewise.
8137         * modules/utimens (Depends-on): Likewise.
8138
8139 2011-09-25  Bruno Haible  <bruno@clisp.org>
8140
8141         linkat: Fix compilation on MSVC 9.
8142         * lib/linkat.c: Don't include <stdint.h>.
8143
8144 2011-09-25  Bruno Haible  <bruno@clisp.org>
8145
8146         fclose: Support for MSVC 9.
8147         * lib/fclose.c: Include msvc-inval.h.
8148         (fclose_nothrow): New function.
8149         (rpl_fclose): Use it.
8150         * modules/fclose (Depends-on): Add msvc-inval.
8151         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8152
8153 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8154
8155         dup2: minor simplifications
8156         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8157         that it's a performance win.
8158         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8159         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8160
8161 2011-09-24  Jim Meyering  <meyering@redhat.com>
8162
8163         test-futimens: avoid a warning from gcc -Wshadow
8164         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8165         to avoid a shadowing warning.
8166
8167 2011-09-24  Bruno Haible  <bruno@clisp.org>
8168
8169         fdopen: Support for MSVC 9.
8170         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8171         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8172         * lib/fdopen.c: Include msvc-inval.h.
8173         (fdopen_nothrow): New function.
8174         (rpl_fdopen): Use it.
8175         * modules/fdopen (Depends-on): Add msvc-inval.
8176         * modules/fclose-tests (Depends-on): Add fdopen.
8177         * modules/fflush-tests (Depends-on): Likewise.
8178         * modules/fgetc-tests (Depends-on): Likewise.
8179         * modules/fputc-tests (Depends-on): Likewise.
8180         * modules/fread-tests (Depends-on): Likewise.
8181         * modules/freopen-tests (Depends-on): Likewise.
8182         * modules/fseeko-tests (Depends-on): Likewise.
8183         * modules/ftello-tests (Depends-on): Likewise.
8184         * modules/fwrite-tests  (Depends-on): Likewise.
8185         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8186
8187 2011-09-24  Bruno Haible  <bruno@clisp.org>
8188
8189         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8190         * modules/fgetc-tests (Depends-on): Add unistd.
8191         * modules/fputc-tests (Depends-on): Likewise.
8192         * modules/fread-tests (Depends-on): Likewise.
8193         * modules/fwrite-tests (Depends-on): Likewise.
8194
8195 2011-09-24  Bruno Haible  <bruno@clisp.org>
8196
8197         dup: Simplify autoconf test.
8198         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8199         on gl_MSVC_INVAL's result.
8200
8201 2011-09-24  Bruno Haible  <bruno@clisp.org>
8202
8203         Tests for function fwrite().
8204         * modules/fwrite-tests: New file.
8205         * tests/test-fwrite.c: New file.
8206         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8207
8208         Tests for function fread().
8209         * modules/fread-tests: New file.
8210         * tests/test-fread.c: New file.
8211         * modules/stdio-tests (Depends-on): Add fread-tests.
8212
8213         Activate fputc tests.
8214         * modules/stdio-tests (Depends-on): Add fputc-tests.
8215
8216         Enhance fgetc, fputc tests.
8217         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8218         * tests/test-fputc.c (main): Likewise.
8219
8220 2011-09-24  Bruno Haible  <bruno@clisp.org>
8221
8222         write: Support for MSVC 9.
8223         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8224         is not 1.
8225         * lib/write.c (write_nothrow): New function.
8226         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8227         not 1. Use write_nothrow.
8228         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8229         invalid parameter handler.
8230         (gl_PREREQ_WRITE): New macro.
8231         * modules/write (Depends-on): Add msvc-inval.
8232         (configure.ac): Invoke gl_PREREQ_WRITE.
8233         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8234
8235 2011-09-24  Bruno Haible  <bruno@clisp.org>
8236
8237         read: Fix last commit.
8238         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8239
8240 2011-09-24  Bruno Haible  <bruno@clisp.org>
8241
8242         dup2: Fix last commit.
8243         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8244         (rpl_dup2): Disable fcntl workaround on native Windows.
8245
8246         sigprocmask: Make code safer.
8247         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8248         section that changes macro definitions for this compilation unit.
8249
8250 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8251
8252         dup2: clarify by coalescing Windows-specific material
8253         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8254         "msvc-nothrow.h"' to the Windows-specific section, so that the
8255         Emacs source need not contain these include files.
8256         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8257         Windows-specific fixes into this function rather than just the
8258         nothrow fix, as this shortens and clarifies the code.  Always
8259         define as a function, as that's a bit cleaner than having it be
8260         sometimes a function and sometimes a macro.
8261         (rpl_dup2): Move the Windows-specific stuff out of here and into
8262         ms_windows_dup2.  Don't protect the Haiku-related fix with
8263         "#if !defined __linux__", as the same code also works around
8264         a Linux kernel bug, and it doesn't add any system calls on any
8265         platform.  Add comment about FreeBSD 6.1.
8266
8267         sigprocmask: move #include directive
8268         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8269         Windows-specific section, so that the Emacs source need not
8270         contain msvc-inval.h.
8271
8272 2011-09-23  Bruno Haible  <bruno@clisp.org>
8273
8274         read: Support for MSVC 9.
8275         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8276         is not 1.
8277         * lib/read.c (read_nothrow): New function.
8278         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8279         read_nothrow.
8280         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8281         invalid parameter handler.
8282         (gl_PREREQ_READ): New macro.
8283         * modules/read (Depends-on): Add msvc-inval.
8284         (configure.ac): Invoke gl_PREREQ_READ.
8285         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8286
8287 2011-09-23  Bruno Haible  <bruno@clisp.org>
8288
8289         close: Support for MSVC 9.
8290         * lib/close.c: Include <errno.h>, msvc-inval.h.
8291         (close_nothrow): New function.
8292         (rpl_close): Use it.
8293         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8294         invalid parameter handler.
8295         * modules/close (Depends-on): Add msvc-inval.
8296         * modules/dup2-tests (Depends-on): Add close.
8297         * modules/dup3-tests (Depends-on): Likewise.
8298         * modules/fcntl-tests (Depends-on): Likewise.
8299         * modules/spawn-pipe-tests (Depends-on): Likewise.
8300         * modules/unistd-safer-tests (Depends-on): Likewise.
8301         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8302
8303 2011-09-23  Bruno Haible  <bruno@clisp.org>
8304
8305         New module 'dup'.
8306         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8307         Allow replacement.
8308         * lib/dup.c: New file.
8309         * lib/fchdir.c (rpl_dup): Remove function.
8310         * m4/dup.m4: New file.
8311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8312         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8313         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8314         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8315         * modules/dup: New file.
8316         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8317         'dup' module is in use.
8318         * modules/fdopendir (Depends-on): Add dup.
8319         * modules/fdutimensat-tests (Depends-on): Likewise.
8320         * modules/fts (Depends-on): Likewise.
8321         * modules/futimens-tests (Depends-on): Likewise.
8322         * modules/posix_spawnp-tests (Depends-on): Likewise.
8323         * modules/unistd-safer-tests (Depends-on): Likewise.
8324         * modules/utimens-tests (Depends-on): Likewise.
8325         * doc/posix-functions/dup.texi: Mention the new module and the problem
8326         on MSVC.
8327
8328 2011-09-23  Bruno Haible  <bruno@clisp.org>
8329
8330         getdtablesize: Support for MSVC 9.
8331         * lib/getdtablesize.c: Include msvc-inval.h.
8332         (_setmaxstdio_nothrow): New function.
8333         (_setmaxstdio): Redefine it.
8334         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8335         * modules/getdtablesize (Depends-on): Add msvc-inval.
8336         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8337
8338 2011-09-23  Bruno Haible  <bruno@clisp.org>
8339
8340         signal-h: Rename from signal.
8341         * modules/signal-h: Renamed from modules/signal.
8342         * modules/pthread_sigmask (Depends-on): Update.
8343         * modules/raise (Depends-on): Likewise.
8344         * modules/sigaction (Depends-on): Likewise.
8345         * modules/sigpipe (Depends-on): Likewise.
8346         * modules/sigprocmask (Depends-on): Likewise.
8347         * modules/sys_select (Depends-on): Likewise.
8348         * modules/signal-h-tests: Renamed from modules/signal-tests.
8349         (Files, Depends-on, Makefile.am): Update.
8350         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8351         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8352         (Files, Makefile.am): Update.
8353         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8354         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8355         * modules/signal: New placeholder file.
8356         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8357         * doc/posix-headers/signal.texi: Update.
8358         * NEWS: Mention the change.
8359
8360 2011-09-23  Bruno Haible  <bruno@clisp.org>
8361
8362         sigprocmask: Avoid crashes through signal() on MSVC 9.
8363         * lib/sigprocmask.c: Include msvc-inval.h.
8364         (signal_nothrow): New function.
8365         (signal): Redefine it.
8366         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8367         * modules/sigprocmask (Depends-on): Add msvc-inval.
8368         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8369
8370 2011-09-23  Bruno Haible  <bruno@clisp.org>
8371
8372         Tests for module 'raise'.
8373         * modules/raise-tests: New file.
8374         * tests/test-raise.c: New file.
8375
8376         raise: Support for MSVC.
8377         * lib/signal.in.h (raise): New declaration.
8378         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8379         for native Windows platforms.
8380         * m4/raise.m4: New file.
8381         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8382         HAVE_RAISE, REPLACE_RAISE.
8383         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8384         REPLACE_RAISE.
8385         * modules/raise (Status, Notice): Remove fields.
8386         (Files): Add m4/raise.m4.
8387         (Depends-on): Add signal, msvc-inval.
8388         (configure.ac): Use the common idioms.
8389         (Maintainer): Add me.
8390         * tests/test-signal-c++.cc: Check the signature of raise.
8391         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8392
8393 2011-09-23  Bruno Haible  <bruno@clisp.org>
8394
8395         pipe2: Fix compilation on pre-C99 compilers.
8396         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8397
8398 2011-09-23  Bruno Haible  <bruno@clisp.org>
8399
8400         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8401         * lib/msvc-nothrow.h: New file.
8402         * lib/msvc-nothrow.c: New file.
8403         * m4/msvc-nothrow.m4: New file.
8404         * modules/msvc-nothrow: New file.
8405         * lib/dup2.c: Include msvc-nothrow.h.
8406         (rpl_dup2): No need to protect _get_osfhandle call here.
8407         * lib/accept4.c: Include msvc-nothrow.h.
8408         * lib/error.c: Likewise.
8409         * lib/fcntl.c: Likewise.
8410         * lib/lseek.c: Likewise.
8411         * lib/nonblocking.c: Likewise.
8412         * lib/poll.c: Likewise.
8413         * lib/read.c: Likewise.
8414         * lib/select.c: Likewise.
8415         * lib/sockets.h: Likewise.
8416         * lib/sockets.c: Likewise.
8417         * lib/stdio-read.c: Likewise.
8418         * lib/stdio-write.c: Likewise.
8419         * lib/write.c: Likewise.
8420         * lib/w32sock.h: Likewise.
8421         * lib/w32spawn.h: Likewise.
8422         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8423         * lib/fsync.c: Likewise.
8424         * lib/isapipe.c: Likewise.
8425         * modules/dup2 (Depends-on): Add msvc-nothrow.
8426         * modules/accept4 (Depends-on): Likewise.
8427         * modules/error (Depends-on): Likewise.
8428         * modules/fcntl (Depends-on): Likewise.
8429         * modules/lseek (Depends-on): Likewise.
8430         * modules/nonblocking (Depends-on): Likewise.
8431         * modules/poll (Depends-on): Likewise.
8432         * modules/read (Depends-on): Likewise.
8433         * modules/select (Depends-on): Likewise.
8434         * modules/sockets (Depends-on): Likewise.
8435         * modules/sigpipe (Depends-on): Likewise.
8436         * modules/write (Depends-on): Likewise.
8437         * modules/accept (Depends-on): Likewise.
8438         * modules/bind (Depends-on): Likewise.
8439         * modules/connect (Depends-on): Likewise.
8440         * modules/gethostname (Depends-on): Likewise.
8441         * modules/getpeername (Depends-on): Likewise.
8442         * modules/getsockname (Depends-on): Likewise.
8443         * modules/getsockopt (Depends-on): Likewise.
8444         * modules/ioctl (Depends-on): Likewise.
8445         * modules/listen (Depends-on): Likewise.
8446         * modules/recv (Depends-on): Likewise.
8447         * modules/recvfrom (Depends-on): Likewise.
8448         * modules/send (Depends-on): Likewise.
8449         * modules/sendto (Depends-on): Likewise.
8450         * modules/setsockopt (Depends-on): Likewise.
8451         * modules/shutdown (Depends-on): Likewise.
8452         * modules/socket (Depends-on): Likewise.
8453         * modules/execute (Depends-on): Likewise.
8454         * modules/spawn-pipe (Depends-on): Likewise.
8455         * modules/flock (Depends-on): Likewise.
8456         * modules/fsync (Depends-on): Likewise.
8457         * modules/isapipe (Depends-on): Likewise.
8458         * tests/test-cloexec.c: Include msvc-nothrow.h.
8459         * tests/test-dup-safer.c: Likewise.
8460         * tests/test-dup2.c: Likewise.
8461         * tests/test-dup3.c: Likewise.
8462         * tests/test-fcntl.c: Likewise.
8463         * tests/test-pipe.c: Likewise.
8464         * tests/test-pipe2.c: Likewise.
8465         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8466         * modules/unistd-safer-tests (Depends-on): Likewise.
8467         * modules/dup2-tests (Depends-on): Likewise.
8468         * modules/dup3-tests (Depends-on): Likewise.
8469         * modules/fcntl-tests (Depends-on): Likewise.
8470         * modules/pipe-posix-tests (Depends-on): Likewise.
8471         * modules/pipe2-tests (Depends-on): Likewise.
8472
8473 2011-09-23  Bruno Haible  <bruno@clisp.org>
8474
8475         dup2: Make code more maintainable.
8476         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8477         (rpl_dup2): Use it.
8478         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8479         * modules/dup2 (configure.ac): Invoke it.
8480         Reported by Paul Eggert.
8481
8482 2011-09-23  Bruno Haible  <bruno@clisp.org>
8483
8484         msvc-inval: Fix compilation error.
8485         * lib/msvc-inval.h: Include <excpt.h>.
8486
8487 2011-09-23  Bruno Haible  <bruno@clisp.org>
8488
8489         mkdir: Tweak for MSVC 9.
8490         * lib/sys_stat.in.h: Update comments.
8491         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8492
8493         Tests for module 'chdir'.
8494         * modules/chdir-tests: New file.
8495         * tests/test-chdir.c: New file.
8496
8497         New module 'chdir'.
8498         * modules/chdir: New file.
8499         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8500         (chdir): New declaration.
8501         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8502         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8503         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8504         * tests/test-unistd-c++.cc: Check signature of chdir.
8505         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8506         * modules/chdir-long (Depends-on): Add chdir.
8507         * modules/fchdir (Depends-on): Likewise.
8508         * modules/rename (Depends-on): Likewise.
8509         * modules/savewd (Depends-on): Likewise.
8510
8511         rmdir: Support for mingw, MSVC 9.
8512         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8513         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8514
8515         getcwd: Tweak for MSVC 9.
8516         * lib/unistd.in.h: Update comments.
8517         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8518
8519 2011-09-22  Bruno Haible  <bruno@clisp.org>
8520
8521         strerror_r-posix: Avoid a link error on MSVC.
8522         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8523         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8524
8525 2011-09-22  Bruno Haible  <bruno@clisp.org>
8526
8527         select: Avoid link errors on MSVC.
8528         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8529         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8530         * modules/pselect (Link): Likewise.
8531         * NEWS: Mention the change.
8532         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8533         test-select-stdin against $(LIB_SELECT).
8534         * modules/pselect-tests (Makefile.am): Link test-pselect against
8535         $(LIB_SELECT).
8536
8537 2011-09-22  Bruno Haible  <bruno@clisp.org>
8538
8539         select: Avoid compilation error on MSVC.
8540         * lib/select.c: Don't include <stdbool.h>.
8541
8542 2011-09-21  Bruno Haible  <bruno@clisp.org>
8543
8544         Consolidate all uses of PATH_MAX in *.m4 files.
8545         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8546         macros.
8547         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8548         and gl_PATHMAX_SNIPPET.
8549         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8551         * modules/chdir-long (Files): Add m4/pathmax.m4.
8552         * modules/getcwd (Files): Likewise.
8553
8554 2011-09-21  Bruno Haible  <bruno@clisp.org>
8555
8556         ftruncate: Un-deprecate, concentrate on Win32 support.
8557         * modules/ftruncate (Status, Notice): Remove sections.
8558         (Depends-on): Add largefile.
8559         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8560         non-mingw platforms.
8561         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8562         include <io.h>.
8563         * modules/perror-tests (Depends-on): Add ftruncate.
8564         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8565         'ftruncate' module.
8566
8567 2011-09-21  Bruno Haible  <bruno@clisp.org>
8568
8569         Add dependencies to new dirent related modules.
8570         * modules/opendir (Depends-on): Add closedir.
8571         * modules/getcwd (Depends-on): Add opendir, closedir.
8572         * modules/dirent-safer-tests (Depends-on): Likewise.
8573         * modules/fdopendir-tests (Depends-on): Likewise.
8574         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8575         * modules/renameat-tests (Depends-on): Likewise.
8576
8577 2011-09-21  Bruno Haible  <bruno@clisp.org>
8578
8579         opendir: Avoid compilation error on mingw.
8580         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8581         * modules/opendir (Depends-on): Add unistd.
8582
8583 2011-09-21  Bruno Haible  <bruno@clisp.org>
8584
8585         ftruncate tests: Avoid a test failure on mingw.
8586         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8587
8588 2011-09-21  Bruno Haible  <bruno@clisp.org>
8589
8590         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8591         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8592         native Windows.
8593
8594 2011-09-21  Bruno Haible  <bruno@clisp.org>
8595
8596         New module 'fdopen'.
8597         * lib/stdio.in.h (fdopen): New declaration.
8598         * lib/fdopen.c: New file.
8599         * m4/fdopen.m4: New file.
8600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8601         REPLACE_FDOPEN.
8602         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8603         REPLACE_FDOPEN.
8604         * modules/fdopen: New file.
8605         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8606         * tests/test-stdio-c++.cc: Check signature of fdopen.
8607         * doc/posix-functions/fdopen.texi: Mention the new module.
8608
8609 2011-09-21  Bruno Haible  <bruno@clisp.org>
8610
8611         unlockpt tests: Avoid test failure on NetBSD 5.1.
8612         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8613         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8614
8615 2011-09-21  Bruno Haible  <bruno@clisp.org>
8616
8617         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8618         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8619         * tests/test-getlogin_r.c (main): Likewise.
8620
8621 2011-09-20  Bruno Haible  <bruno@clisp.org>
8622
8623         time tests: Don't require pid_t.
8624         * doc/posix-headers/time.texi: Revert last change.
8625         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8626         * tests/test-time.c: Comment out the check for pid_t.
8627
8628 2011-09-20  Bruno Haible  <bruno@clisp.org>
8629
8630         fsync tests: Avoid a test failure on mingw.
8631         * tests/test-fsync.c (main): Allow a failure with EIO.
8632
8633 2011-09-20  Bruno Haible  <bruno@clisp.org>
8634
8635         euidaccess: Update comments.
8636         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8637
8638 2011-09-20  Bruno Haible  <bruno@clisp.org>
8639
8640         Ensure EBADF returns for socket functions on mingw.
8641         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8642         descriptor is invalid.
8643         * lib/bind.c (rpl_bind): Likewise.
8644         * lib/connect.c (rpl_connect): Likewise.
8645         * lib/getpeername.c (rpl_getpeername): Likewise.
8646         * lib/getsockname.c (rpl_getsockname): Likewise.
8647         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8648         * lib/listen.c (rpl_listen): Likewise.
8649         * lib/recv.c (rpl_recv): Likewise.
8650         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8651         * lib/send.c (rpl_send): Likewise.
8652         * lib/sendto.c (rpl_sendto): Likewise.
8653         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8654         * lib/shutdown.c (rpl_shutdown): Likewise.
8655
8656 2011-09-20  Bruno Haible  <bruno@clisp.org>
8657
8658         select tests: EBADF tests.
8659         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8660         test_bad_fd): New functions.
8661         (test_function): Invoke also test_bad_fd.
8662
8663 2011-09-20  Bruno Haible  <bruno@clisp.org>
8664
8665         Tests for module 'posix_spawn_file_actions_addopen.
8666         * modules/posix_spawn_file_actions_addopen-tests: New file.
8667         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8668
8669         Tests for module 'posix_spawn_file_actions_adddup2'.
8670         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8671         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8672
8673         Tests for module 'posix_spawn_file_actions_addclose'.
8674         * modules/posix_spawn_file_actions_addclose-tests: New file.
8675         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8676
8677 2011-09-20  Bruno Haible  <bruno@clisp.org>
8678
8679         Tests for module 'unlockpt'.
8680         * modules/unlockpt-tests: New file.
8681         * tests/test-unlockpt.c: New file.
8682         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8683
8684         Tests for module 'grantpt'.
8685         * modules/grantpt-tests: New file.
8686         * tests/test-grantpt.c: New file.
8687         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8688
8689 2011-09-20  Bruno Haible  <bruno@clisp.org>
8690
8691         freopen tests: EBADF tests.
8692         * tests/test-freopen.c: Include errno.h, unistd.h.
8693         (main): Add tests for EBADF, commented out for the moment.
8694
8695         fclose tests: EBADF tests.
8696         * tests/test-fclose.c (main): Add tests for EBADF.
8697
8698         fflush tests: EBADF tests.
8699         * tests/test-fflush.c: Include errno.h, macros.h.
8700         (main): Add tests for EBADF.
8701
8702         ftello tests: EBADF tests.
8703         * tests/test-ftello4.sh: New file.
8704         * tests/test-ftello4.c: New file.
8705         * modules/ftello-tests (Files): Add them.
8706         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8707
8708         fseeko tests: EBADF tests.
8709         * tests/test-fseeko4.sh: New file.
8710         * tests/test-fseeko4.c: New file.
8711         * modules/fseeko-tests (Files): Add them.
8712         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8713
8714         Tests for function fputc().
8715         * modules/fputc-tests: New file.
8716         * tests/test-fputc.c: New file.
8717         * modules/stdio-tests (Depends-on): Add fputc-tests.
8718
8719         Tests for function fgetc().
8720         * modules/fgetc-tests: New file.
8721         * tests/test-fgetc.c: New file.
8722         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8723
8724         Tests for function fdopen().
8725         * modules/fdopen-tests: New file.
8726         * tests/test-fdopen.c: New file.
8727         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8728
8729         Tests for module 'vdprintf'.
8730         * modules/vdprintf-tests: New file.
8731         * tests/test-vdprintf.c: New file.
8732
8733         Tests for module 'dprintf'.
8734         * modules/dprintf-tests: New file.
8735         * tests/test-dprintf.c: New file.
8736
8737 2011-09-20  Bruno Haible  <bruno@clisp.org>
8738
8739         Tests for module 'ioctl'.
8740         * modules/ioctl-tests: New file.
8741         * tests/test-ioctl.c: New file.
8742
8743 2011-09-20  Bruno Haible  <bruno@clisp.org>
8744
8745         fcntl tests: EBADF tests.
8746         * tests/test-fcntl.c (main): Add more tests for EBADF.
8747
8748 2011-09-20  Bruno Haible  <bruno@clisp.org>
8749
8750         utimensat tests: EBADF tests.
8751         * tests/test-utimensat.c (main): Add tests for EBADF.
8752
8753         renameat tests: EBADF tests.
8754         * tests/test-renameat.c (main): Add tests for EBADF.
8755
8756         mkfifoat tests: EBADF tests.
8757         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8758
8759         readlinkat tests: EBADF tests.
8760         * tests/test-readlinkat.c (main): Add tests for EBADF.
8761
8762         symlinkat tests: EBADF tests.
8763         * tests/test-symlinkat.c (main): Add tests for EBADF.
8764
8765         linkat tests: EBADF tests.
8766         * tests/test-linkat.c (main): Add tests for EBADF.
8767
8768         Tests for module 'faccessat'.
8769         * modules/faccessat-tests: New file.
8770         * tests/test-faccessat.c: New file.
8771
8772         fdopendir tests: EBADF tests.
8773         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8774
8775         openat tests: EBADF tests.
8776         * tests/test-fchownat.c (main): Add tests for EBADF.
8777         * tests/test-fstatat.c (main): Likewise.
8778         * tests/test-mkdirat.c (main): Likewise.
8779         * tests/test-openat.c (main): Likewise.
8780         * tests/test-unlinkat.c (main): Likewise.
8781         * tests/test-fchmodat.c: New file.
8782         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8783         (Makefile.am): Also run 'test-fchmodat'.
8784
8785 2011-09-20  Bruno Haible  <bruno@clisp.org>
8786
8787         utimens, futimens, fdutimensat tests: EBADF tests.
8788         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8789
8790         Tests for function fstat().
8791         * modules/fstat-tests: New file.
8792         * tests/test-fstat.c: New file.
8793         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8794
8795 2011-09-20  Bruno Haible  <bruno@clisp.org>
8796
8797         test-ttyname_r tests: EBADF tests.
8798         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8799
8800         Tests for module 'isatty'.
8801         * modules/isatty-tests: New file.
8802         * tests/test-isatty.c: New file.
8803
8804         Tests for module 'write'.
8805         * modules/write-tests: New file.
8806         * tests/test-write.c: New file.
8807
8808         Tests for module 'read'.
8809         * modules/read-tests: New file.
8810         * tests/test-read.c: New file.
8811
8812         pwrite tests: EBADF tests.
8813         * tests/test-pwrite.c (main): Add tests for EBADF.
8814
8815         pread tests: EBADF tests.
8816         * tests/test-pread.c (main): Add tests for EBADF.
8817
8818         lseek tests: EBADF tests.
8819         * tests/test-lseek.c (main): Add more tests for EBADF.
8820
8821         Tests for module 'ftruncate'.
8822         * modules/ftruncate-tests: New file.
8823         * tests/test-ftruncate.sh: New file.
8824         * tests/test-ftruncate.c: New file.
8825
8826         fsync tests: EBADF tests.
8827         * tests/test-fsync.c (main): Add more tests for EBADF.
8828
8829         fdatasync tests: EBADF tests.
8830         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8831
8832         Tests for module 'fchown'.
8833         * modules/fchown-tests: New file.
8834         * tests/test-fchown.c: New file.
8835
8836         Tests for module 'fchmod'.
8837         * modules/fchmod-tests: New file.
8838         * tests/test-fchmod.c: New file.
8839
8840         fchdir tests: EBADF tests.
8841         * tests/test-fchdir.c (main): Add more tests for EBADF.
8842
8843         dup2 tests: EBADF tests.
8844         * tests/test-dup2.c (main): Add more tests for EBADF.
8845
8846         Tests for module 'dup'.
8847         * modules/dup-tests: New file.
8848         * tests/test-dup.c: New file.
8849
8850         Tests for module 'close'.
8851         * modules/close-tests: New file.
8852         * tests/test-close.c: New file.
8853
8854 2011-09-20  Bruno Haible  <bruno@clisp.org>
8855
8856         Tests for module 'shutdown'.
8857         * modules/shutdown-tests: New file.
8858         * tests/test-shutdown.c: New file.
8859
8860         Tests for module 'setsockopt'.
8861         * modules/setsockopt-tests: New file.
8862         * tests/test-setsockopt.c: New file.
8863
8864         Tests for module 'sendto'.
8865         * modules/sendto-tests: New file.
8866         * tests/test-sendto.c: New file.
8867
8868         Tests for module 'send'.
8869         * modules/send-tests: New file.
8870         * tests/test-send.c: New file.
8871
8872         Tests for module 'recvfrom'.
8873         * modules/recvfrom-tests: New file.
8874         * tests/test-recvfrom.c: New file.
8875
8876         Tests for module 'recv'.
8877         * modules/recv-tests: New file.
8878         * tests/test-recv.c: New file.
8879
8880         Tests for module 'listen'.
8881         * modules/listen-tests: New file.
8882         * tests/test-listen.c: New file.
8883
8884         Tests for module 'getsockopt'.
8885         * modules/getsockopt-tests: New file.
8886         * tests/test-getsockopt.c: New file.
8887
8888         Tests for module 'getsockname'.
8889         * modules/getsockname-tests: New file.
8890         * tests/test-getsockname.c: New file.
8891
8892         Tests for module 'getpeername'.
8893         * modules/getpeername-tests: New file.
8894         * tests/test-getpeername.c: New file.
8895
8896         Tests for module 'connect'.
8897         * modules/connect-tests: New file.
8898         * tests/test-connect.c: New file.
8899
8900         Tests for module 'bind'.
8901         * modules/bind-tests: New file.
8902         * tests/test-bind.c: New file.
8903
8904         accept4 tests: Fix for native Windows.
8905         * tests/test-accept4.c: Include sockets.h.
8906         (main): Invoke gl_sockets_startup.
8907         * modules/accept4-tests (Depends-on): Add sockets.
8908
8909         accept tests: Fix for native Windows.
8910         * tests/test-accept.c: Include sockets.h.
8911         (main): Invoke gl_sockets_startup.
8912         * modules/accept-tests (Depends-on): Add sockets.
8913
8914 2011-09-19  Bruno Haible  <bruno@clisp.org>
8915
8916         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8917         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8918         do...while(0).
8919         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8920         Suggested by Paul Eggert.
8921
8922 2011-09-19  Bruno Haible  <bruno@clisp.org>
8923
8924         sched: Ensure pid_t is defined.
8925         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8926         not define pid_t.
8927         * lib/sched.in.h: Include <sys/types.h>.
8928         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8930
8931 2011-09-19  Bruno Haible  <bruno@clisp.org>
8932
8933         msvc-inval: Ensure the entire expansion is a single statement.
8934         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8935         of braces.
8936
8937 2011-09-19  Jim Meyering  <meyering@redhat.com>
8938
8939         tests: use printf, not echo in init.sh's warn_ function
8940         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8941         misbehave when given strings containing a backslash or starting
8942         with e.g., -n.  James Youngman suggested setting IFS.
8943
8944 2011-09-19  Eric Blake  <eblake@redhat.com>
8945
8946         futimens: enhance test
8947         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8948         closed non-negative fd.
8949
8950         date: accept 'hence' as opposite of 'ago'
8951         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8952         * tests/test-parse-datetime.c (main): Enhance test.
8953         Suggested by Jesse Wilson.
8954
8955 2011-09-19  Jim Meyering  <meyering@redhat.com>
8956
8957         getcwd: don't fail in a deep directory on a system without openat
8958         Before this change, getcwd would fail when called from a directory
8959         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8960         the non-openat implementation used "..", "../..", "../../..", etc.
8961         to access ancestor directories.  With too many, that string would
8962         be longer than PATH_MAX.
8963         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8964         using gnulib's openat replacement.
8965         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8966         we're using the replacement function.
8967
8968 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8969
8970         maint.mk: avoid warnings from perl about missing files
8971         * top/maint.mk (def_sym_regex): Ignore files listed in
8972         $(gl_other_headers_) that do not exist, say because a project
8973         does not use a corresponding module.
8974
8975 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8976
8977         stat: use pathmax.h only if needed
8978         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8979         This is better for Emacs, which does not have a mingw port and
8980         therefore can avoid the pathmax module.
8981
8982         utimens: remove dependency on dup2
8983         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8984         to work around the Linux kernel bug.
8985         * modules/utimens (Depends-on): Remove dup2.
8986
8987 2011-09-18  Bruno Haible  <bruno@clisp.org>
8988
8989         inet_ntop, inet_pton: Look for it also in libresolv.
8990         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8991         libnsl, search for it in libresolv.
8992         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8993         Needed on Solaris 7.
8994
8995 2011-09-18  Bruno Haible  <bruno@clisp.org>
8996
8997         accept, accept4 tests: Avoid link error on Solaris.
8998         * modules/accept-tests (Makefile.am): Link test-accept against
8999         $(LIBSOCKET).
9000         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9001         $(LIBSOCKET).
9002
9003         accept4: Avoid link error on Solaris.
9004         * modules/accept4 (Link): New section.
9005
9006         socket functions: Avoid link errors on Solaris.
9007         * modules/accept (Depends-on): Add socketlib.
9008         (Link): New section.
9009         * modules/bind (Depends-on): Add socketlib.
9010         (Link): New section.
9011         * modules/connect (Depends-on): Add socketlib.
9012         (Link): New section.
9013         * modules/getpeername (Depends-on): Add socketlib.
9014         (Link): New section.
9015         * modules/getsockname (Depends-on): Add socketlib.
9016         (Link): New section.
9017         * modules/getsockopt (Depends-on): Add socketlib.
9018         (Link): New section.
9019         * modules/listen (Depends-on): Add socketlib.
9020         (Link): New section.
9021         * modules/recv (Depends-on): Add socketlib.
9022         (Link): New section.
9023         * modules/recvfrom (Depends-on): Add socketlib.
9024         (Link): New section.
9025         * modules/send (Depends-on): Add socketlib.
9026         (Link): New section.
9027         * modules/sendto (Depends-on): Add socketlib.
9028         (Link): New section.
9029         * modules/setsockopt (Depends-on): Add socketlib.
9030         (Link): New section.
9031         * modules/shutdown (Depends-on): Add socketlib.
9032         (Link): New section.
9033         * modules/socket (Depends-on): Add socketlib.
9034         (Link): New section.
9035
9036 2011-09-18  Bruno Haible  <bruno@clisp.org>
9037
9038         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9039         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9040         than 5 seconds.
9041         * modules/ptsname-tests (configure.ac): Test for alarm.
9042
9043 2011-09-18  Bruno Haible  <bruno@clisp.org>
9044
9045         posix_spawn_file_actions_add*: Fix module dependencies.
9046         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9047         posix_spawn_file_actions_init.
9048         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9049         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9050
9051 2011-09-18  Bruno Haible  <bruno@clisp.org>
9052
9053         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9054         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9055         * tests/test-renameat.c (main): Likewise.
9056
9057 2011-09-18  Bruno Haible  <bruno@clisp.org>
9058
9059         Tests for module 'accept4'.
9060         * modules/accept4-tests: New file.
9061         * tests/test-accept4.c: New file.
9062
9063 2011-09-18  Bruno Haible  <bruno@clisp.org>
9064
9065         Tests for module 'accept'.
9066         * modules/accept-tests: New file.
9067         * tests/test-accept.c: New file.
9068
9069 2011-09-18  Bruno Haible  <bruno@clisp.org>
9070
9071         dup2: Support for MSVC.
9072         * lib/dup2.c: Include msvc-inval.h.
9073         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9074         _get_osfhandle calls.
9075         * modules/dup2 (Depends-on): Add msvc-inval.
9076         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9077
9078         New module 'msvc-inval'.
9079         * lib/msvc-inval.h: New file.
9080         * lib/msvc-inval.c: New file.
9081         * m4/msvc-inval.m4: New file.
9082         * modules/msvc-inval: New file.
9083
9084 2011-09-17  Bruno Haible  <bruno@clisp.org>
9085
9086         Tests for module 'pclose'.
9087         * modules/pclose-tests: New file.
9088
9089         New module 'pclose'.
9090         * lib/stdio.in.h (pclose): New declaration.
9091         * lib/pclose.c: New file.
9092         * m4/pclose.m4: New file.
9093         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9094         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9095         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9096         * modules/pclose: New file.
9097         * modules/popen-tests (Depends-on): Add pclose.
9098         * modules/popen-safer-tests (Depends-on): Likewise.
9099         * doc/posix-functions/pclose.texi: Mention the new module.
9100
9101 2011-09-17  Bruno Haible  <bruno@clisp.org>
9102
9103         popen: Support for MSVC.
9104         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9105         * lib/popen.c (popen): Provide alternate definition for native Windows.
9106         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9108         * modules/popen (Depends-on, configure.ac): Update condition.
9109         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9110         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9111         fixed.
9112
9113 2011-09-17  Bruno Haible  <bruno@clisp.org>
9114
9115         isnanl, isnand, isnanf: Work around MSVC bug.
9116         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9117
9118 2011-09-17  Bruno Haible  <bruno@clisp.org>
9119
9120         sys_socket tests: Fix recent mistake.
9121         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9122
9123 2011-09-17  Bruno Haible  <bruno@clisp.org>
9124
9125         putenv: Support for MSVC.
9126         * modules/putenv (Depends-on): Add environ.
9127         * lib/putenv.c (environ): Disable declaration.
9128         * lib/unistd.in.h: Update comment.
9129
9130 2011-09-17  Bruno Haible  <bruno@clisp.org>
9131
9132         math: Avoid macro redefinition warnings on MSVC.
9133         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9134         Undefine before redefining.
9135
9136 2011-09-17  Bruno Haible  <bruno@clisp.org>
9137
9138         doc: Mention functions which are declared as macros.
9139         * doc/posix-functions/*[fl].texi: Mention that some functions are
9140         defined as macros with arguments only.
9141
9142 2011-09-17  Bruno Haible  <bruno@clisp.org>
9143
9144         Add dependencies to new dirent related modules.
9145         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9146         * modules/fts (Depends-on): Likewise.
9147         * modules/glob (Depends-on): Likewise.
9148         * modules/savedir (Depends-on): Likewise.
9149         * modules/scandir (Depends-on): Likewise.
9150         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9151         * modules/fdopendir (Depends-on): Add opendir.
9152
9153 2011-09-17  Bruno Haible  <bruno@clisp.org>
9154
9155         inet_pton: Support for MSVC on Windows Vista or newer.
9156         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9157         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9158         HAVE_DECL_INET_PTON is defined.
9159         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9160         On platforms with <winsock2.h>, test whether inet_pton is declared in
9161         <ws2tcpip.h>. If so, arrange to replace it.
9162         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9163         REPLACE_INET_PTON.
9164         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9165         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9166         (Depends-on, configure.ac): Update condition.
9167         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9168
9169 2011-09-17  Bruno Haible  <bruno@clisp.org>
9170
9171         inet_ntop: Support for MSVC on Windows Vista or newer.
9172         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9173         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9174         HAVE_DECL_INET_NTOP is defined.
9175         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9176         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9177         <ws2tcpip.h>. If so, arrange to replace it.
9178         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9179         REPLACE_INET_NTOP.
9180         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9181         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9182         (Depends-on, configure.ac): Update condition.
9183         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9184
9185 2011-09-16  Eric Blake  <eblake@redhat.com>
9186
9187         test-fsync: yet another enhancement
9188         * tests/test-fsync.c (main): Also test behavior on read-only text
9189         file.
9190
9191 2011-09-16  Bruno Haible  <bruno@clisp.org>
9192
9193         Enhance fsync, fdatasync tests.
9194         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9195         * tests/test-fdatasync.c (main): Likewise.
9196
9197 2011-09-16  Bruno Haible  <bruno@clisp.org>
9198
9199         Support for MSVC compiler: Ensure mode_t gets defined.
9200         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9203         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9204         * tests/test-fcntl-h.c: Check that mode_t is defined.
9205         * tests/test-sys_stat.c: Likewise.
9206         * tests/test-sys_types.c: Likewise.
9207         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9208         * doc/posix-headers/sys_stat.texi: Likewise.
9209         * doc/posix-headers/sys_types.texi: Likewise.
9210
9211 2011-09-16  Bruno Haible  <bruno@clisp.org>
9212
9213         sys_stat: Support for MSVC.
9214         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9215         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9216         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9217         MSVC.
9218
9219 2011-09-16  Bruno Haible  <bruno@clisp.org>
9220
9221         Support for MSVC compiler: Ensure off_t gets defined.
9222         * lib/unistd.in.h: Include <sys/types.h>.
9223         * tests/test-fcntl-h.c: Check that off_t is defined.
9224         * tests/test-sys_stat.c: Likewise.
9225         * tests/test-sys_types.c: Likewise.
9226
9227 2011-09-16  Eric Blake  <eblake@redhat.com>
9228
9229         fdatasync: port to Solaris
9230         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9231         * modules/fdatasync (Link): Document it.
9232         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9233
9234         fdatasync: port to MacOS X 10.7
9235         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9236         declared.
9237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9238         * modules/unistd (Makefile.am): Substitute it.
9239         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9240         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9241
9242         fdatasync: minor improvements
9243         * modules/fdatasync (Depends-on): Add condition for fsync.
9244         * lib/fdatasync.c (fdatasync): Add comment.
9245         * tests/test-unistd-c++.cc: Test fdatasync.
9246
9247         unistd: update refs to newer POSIX
9248         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9249         Suggested by Bruno Haible.
9250
9251         fdatasync: new module
9252         * modules/fsync (Description): Document difference to fdatasync.
9253         * modules/fdatasync: New module.
9254         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9255         * lib/fdatasync.c (fdatasync): Likewise.
9256         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9257         defaults.
9258         * modules/unistd (Makefile.am): Set witnesses.
9259         * lib/unistd.in.h (fdatasync): Declare.
9260         * MODULES.html.sh: Document it.
9261         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9262         * modules/fdatasync-tests: New test.
9263         * tests/test-fdatasync.c: Likewise.
9264
9265 2011-09-16  Eric Blake  <eblake@redhat.com>
9266
9267         test-fsync: enhance tests
9268         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9269         * tests/test-fsync.c (main): Enhance test.
9270
9271 2011-09-15  Bruno Haible  <bruno@clisp.org>
9272
9273         Support for MSVC compiler: Ensure ssize_t gets defined.
9274         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9275         * doc/posix-headers/stdio.texi: Likewise.
9276         * modules/stdio (Depends-on): Add ssize_t.
9277         * modules/sys_socket (Depends-on): Likewise.
9278         * modules/sys_types (Depends-on): Likewise.
9279         * modules/sys_uio (Depends-on): Likewise.
9280         * modules/unistd (Depends-on): Likewise.
9281         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9282         * tests/test-sys_types.c: Check that ssize_t is defined.
9283
9284 2011-09-14  Bruno Haible  <bruno@clisp.org>
9285
9286         Avoid using #, the m4 comment starter character, near brackets.
9287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9288         delimiter character in sed expressions.
9289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9290         Suggested by Eric Blake.
9291
9292         Properly quote AC_CHECK_DECLS' 4th argument.
9293         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9294         argument.
9295         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9296         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9297         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9298         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9299         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9300         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9302         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9303         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9305         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9306         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9307         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9308         * m4/isinf.m4 (gl_ISINF): Likewise.
9309         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9310         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9311         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9312         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9313         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9315         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9316         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9317         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9318         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9322         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9324         Reported by Eric Blake.
9325
9326         Properly quote AC_CHECK_DECL's 4th argument.
9327         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9328         argument.
9329         * m4/argp.m4 (gl_ARGP): Likewise.
9330         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9331         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9332         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9333         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9334         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9335         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9337         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9339         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9340         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9341         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9342         Reported by Eric Blake.
9343
9344 2011-09-14  Eric Blake  <eblake@redhat.com>
9345
9346         opendir: avoid compile warning
9347         * lib/opendir.c (includes): Always include errno.h.
9348         Reported by Tatsuro MATSUOKA.
9349
9350 2011-09-14  Jim Meyering  <meyering@redhat.com>
9351
9352         maint.mk: sc_tight_scope: propagate failure from sub-make
9353         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9354         Reported by Martin von Gagern.
9355
9356 2011-09-13  Bruno Haible  <bruno@clisp.org>
9357
9358         tempname: Support for MSVC.
9359         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9360         MSVC.
9361         * modules/tempname (Depends-on): Add fcntl-h.
9362
9363 2011-09-13  Bruno Haible  <bruno@clisp.org>
9364
9365         sys_time: Support for MSVC.
9366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9367         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9368         include <winsock2.h>.
9369         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9370         function declarations that collide with POSIX.
9371         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9372         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9373
9374 2011-09-13  Bruno Haible  <bruno@clisp.org>
9375
9376         stat: Support for MSVC.
9377         * lib/stat.c: Include pathmax.h.
9378         * modules/stat (Depends-on): Add pathmax.
9379
9380         pathmax: Support for native Windows.
9381         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9382
9383 2011-09-12  Bruno Haible  <bruno@clisp.org>
9384
9385         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9386         * lib/dirent.in.h (struct dirent): New type.
9387         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9388         DT_WHT): New macros.
9389         (DIR): New type.
9390         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9391         (readdir, rewinddir): New declarations.
9392         * lib/dirent-private.h: New file.
9393         * lib/opendir.c: New file.
9394         * lib/readdir.c: New file.
9395         * lib/rewinddir.c: New file.
9396         * lib/closedir.c: New file.
9397         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9398         * m4/opendir.m4: New file.
9399         * m4/readdir.m4: New file.
9400         * m4/rewinddir.m4: New file.
9401         * m4/closedir.m4: New file.
9402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9403         REPLACE_CLOSEDIR here.
9404         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9405         readdir, rewinddir are declared.
9406         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9407         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9408         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9409         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9410         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9411         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9412         * modules/opendir: New file.
9413         * modules/readdir: New file.
9414         * modules/rewinddir: New file.
9415         * modules/closedir: New file.
9416         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9417         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9418         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9419         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9420         * NEWS: Mention the 'fchdir' change.
9421
9422 2011-09-11  Bruno Haible  <bruno@clisp.org>
9423
9424         asm-underscore.m4: Support for MSVC.
9425         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9426         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9427
9428 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9429
9430         Doc about crypt functions.
9431         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9432         needing for _GNU_SOURCE to get crypt.
9433         * doc/posix-functions/encrypt.texi: Likewise.
9434         * doc/posix-functions/setkey.texi: Likewise.
9435
9436 2011-09-11  Bruno Haible  <bruno@clisp.org>
9437
9438         doc: Update regarding MSVC 9.
9439         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9440         tested".
9441         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9442         * doc/posix-headers/*.texi: Likewise.
9443         * doc/pastposix-functions/*.texi: Likewise.
9444         * doc/glibc-functions/*.texi: Likewise.
9445         * doc/glibc-headers/*.texi: Likewise.
9446
9447 2011-09-11  Bruno Haible  <bruno@clisp.org>
9448
9449         unistd et al.: Don't assume <unistd.h> exists.
9450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9451         does not exist.
9452         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9453         exist. But include <stdlib.h>.
9454         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9455         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9456         symlink() does not exist.
9457         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9458         include <io.h> instead.
9459         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9460         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9461         include <direct.h> instead.
9462         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9464         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9465         <io.h> instead.
9466         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9467         correctly if the system does not have hard links.
9468         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9469         <direct.h> instead.
9470         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9471         it when looking for function declarations.
9472         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9473         <direct.h> and <io.h> instead.
9474         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9475
9476 2011-09-11  Bruno Haible  <bruno@clisp.org>
9477
9478         strcase: Support for MSVC.
9479         * modules/strcase (Status, Notice): Remove obsoletion mark.
9480         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9481         * doc/posix-functions/strncasecmp.texi: Likewise.
9482
9483         strings: Don't assume <strings.h> exists.
9484         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9485         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9486         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9487         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9488
9489 2011-09-11  Bruno Haible  <bruno@clisp.org>
9490
9491         dirent: Don't assume <dirent.h> exists.
9492         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9493         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9494         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9495         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9496
9497 2011-09-11  Bruno Haible  <bruno@clisp.org>
9498
9499         Fix wint_t on MSVC.
9500         * lib/wchar.in.h (wint_t): On MSVC, override it.
9501         * lib/wctype.in.h (wint_t): Likewise.
9502         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9503         MSVC.
9504         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9505         * doc/posix-headers/wctype.texi: Likewise.
9506
9507 2011-09-11  Bruno Haible  <bruno@clisp.org>
9508
9509         sys_types: Fix typo.
9510         * lib/sys_types.in.h: Fix typo in comment.
9511         Reported by Paul Eggert.
9512
9513         Support for MSVC compiler: Ensure size_t gets defined.
9514         * modules/strings (Depends-on): Add 'sys_types'.
9515         * modules/sys_uio (Depends-on): Likewise.
9516         * lib/sys_uio.in.h: Update comment.
9517
9518         C++ tests for module 'sys_types'.
9519         * modules/sys_types-c++-tests: New file.
9520         * tests/test-sys_types-c++.cc: New file.
9521
9522         Tests for module 'sys_types'.
9523         * modules/sys_types-tests: New file.
9524         * tests/test-sys_types.c: New file.
9525
9526         New module 'sys_types'.
9527         * lib/sys_types.in.h: New file.
9528         * m4/sys_types_h.m4: New file.
9529         * modules/sys_types: New file.
9530         * doc/posix-headers/sys_types.texi: Mention the new module and the
9531         size_t problem on MSVC 9.
9532
9533 2011-09-11  Bruno Haible  <bruno@clisp.org>
9534
9535         Support for MSVC compiler: Avoid division by a literal 0.
9536         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9538         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9539         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9540         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9541         * tests/infinity.h: New file.
9542         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9543         on MSVC.
9544         * tests/test-ceilf1.c: Include infinity.h.
9545         (main): Use Infinityf.
9546         * tests/test-ceil1.c: Include infinity.h.
9547         (main): Use Infinityd.
9548         * tests/test-ceill.c: Include infinity.h.
9549         (main): Use Infinityl.
9550         * tests/test-dprintf-posix.c: Include infinity.h.
9551         (test_function): Use Infinityd.
9552         * tests/test-floorf1.c: Include infinity.h.
9553         (main): Use Infinityf.
9554         * tests/test-floor1.c: Include infinity.h.
9555         (main): Use Infinityd.
9556         * tests/test-floorl.c: Include infinity.h.
9557         (main): Use Infinityl.
9558         * tests/test-fprintf-posix.c: Include infinity.h.
9559         (test_function): Use Infinityd.
9560         * tests/test-frexp.c: Include infinity.h.
9561         (main): Use Infinityd.
9562         * tests/test-frexpl.c: Include infinity.h.
9563         (main): Use Infinityl.
9564         * tests/test-isfinite.c: Include infinity.h.
9565         (test_isfinitef): Use Infinityf.
9566         (test_isfinited): Use Infinityd.
9567         (test_isfinitel): Use Infinityl.
9568         * tests/test-isinf.c: Include infinity.h.
9569         (test_isinff): Use Infinityf.
9570         (test_isinfd): Use Infinityd.
9571         (test_isinfl): Use Infinityl.
9572         * tests/test-isnan.c: Include infinity.h.
9573         (test_float): Use Infinityf.
9574         (test_double): Use Infinityd.
9575         (test_long_double): Use Infinityl.
9576         * tests/test-isnanf.h: Include infinity.h.
9577         (main): Use Infinityf.
9578         * tests/test-isnand.h: Include infinity.h.
9579         (main): Use Infinityd.
9580         * tests/test-isnanl.h: Include infinity.h.
9581         (main): Use Infinityl.
9582         * tests/test-ldexpl.c: Include infinity.h.
9583         (main): Use Infinityl.
9584         * tests/test-printf-posix.h: Include infinity.h.
9585         (test_function): Use Infinityd.
9586         * tests/test-roundf1.c: Include infinity.h.
9587         (main): Use Infinityf.
9588         * tests/test-round1.c: Include infinity.h.
9589         (main): Use Infinityd.
9590         * tests/test-roundl.c: Include infinity.h.
9591         (main): Use Infinityl.
9592         * tests/test-signbit.c: Include infinity.h.
9593         (test_signbitf): Use Infinityf.
9594         (test_signbitd): Use Infinityd.
9595         (test_signbitl): Use Infinityl.
9596         * tests/test-snprintf-posix.h: Include infinity.h.
9597         (test_function): Use Infinityd, Infinityl.
9598         * tests/test-sprintf-posix.h: Include infinity.h.
9599         (test_function): Use Infinityd, Infinityl.
9600         * tests/test-truncf1.c: Include infinity.h.
9601         (main): Use Infinityf.
9602         * tests/test-trunc1.c: Include infinity.h.
9603         (main): Use Infinityd.
9604         * tests/test-truncl.c: Include infinity.h.
9605         (main): Use Infinityl.
9606         * tests/test-vasnprintf-posix.c: Include infinity.h.
9607         (test_function): Use Infinityd, Infinityl.
9608         * tests/test-vasprintf-posix.c: Include infinity.h.
9609         (test_function): Use Infinityd, Infinityl.
9610         * modules/ceilf-tests (Files): Add tests/infinity.h.
9611         * modules/ceil-tests (Files): Likewise.
9612         * modules/ceill-tests (Files): Likewise.
9613         * modules/dprintf-posix-tests (Files): Likewise.
9614         * modules/floorf-tests (Files): Likewise.
9615         * modules/floor-tests (Files): Likewise.
9616         * modules/floorl-tests (Files): Likewise.
9617         * modules/fprintf-posix-tests (Files): Likewise.
9618         * modules/frexp-tests (Files): Likewise.
9619         * modules/frexp-nolibm-tests (Files): Likewise.
9620         * modules/frexpl-tests (Files): Likewise.
9621         * modules/frexpl-nolibm-tests (Files): Likewise.
9622         * modules/isfinite-tests (Files): Likewise.
9623         * modules/isinf-tests (Files): Likewise.
9624         * modules/isnan-tests (Files): Likewise.
9625         * modules/isnanf-tests (Files): Likewise.
9626         * modules/isnanf-nolibm-tests (Files): Likewise.
9627         * modules/isnand-tests (Files): Likewise.
9628         * modules/isnand-nolibm-tests (Files): Likewise.
9629         * modules/isnanl-tests (Files): Likewise.
9630         * modules/isnanl-nolibm-tests (Files): Likewise.
9631         * modules/ldexpl-tests (Files): Likewise.
9632         * modules/printf-posix-tests (Files): Likewise.
9633         * modules/roundf-tests (Files): Likewise.
9634         * modules/round-tests (Files): Likewise.
9635         * modules/roundl-tests (Files): Likewise.
9636         * modules/signbit-tests (Files): Likewise.
9637         * modules/snprintf-posix-tests (Files): Likewise.
9638         * modules/sprintf-posix-tests (Files): Likewise.
9639         * modules/truncf-tests (Files): Likewise.
9640         * modules/trunc-tests (Files): Likewise.
9641         * modules/truncl-tests (Files): Likewise.
9642         * modules/vasnprintf-posix-tests (Files): Likewise.
9643         * modules/vasprintf-posix-tests (Files): Likewise.
9644         * modules/vdprintf-posix-tests (Files): Likewise.
9645         * modules/vfprintf-posix-tests (Files): Likewise.
9646         * modules/vprintf-posix-tests (Files): Likewise.
9647         * modules/vsnprintf-posix-tests (Files): Likewise.
9648         * modules/vsprintf-posix-tests (Files): Likewise.
9649         * modules/xprintf-posix-tests (Files): Likewise.
9650
9651 2011-09-11  Bruno Haible  <bruno@clisp.org>
9652
9653         Ensure pid_t gets defined.
9654         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9655         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9656         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9657         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9658         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9659         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9660         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9661         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9662         * tests/test-fcntl-h.c: Check that pid_t is defined.
9663         * tests/test-sched.c: Likewise.
9664         * tests/test-termios.c: Likewise.
9665         * tests/test-time.c: Likewise.
9666         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9667         * doc/posix-headers/signal.texi: Likewise.
9668         * doc/posix-headers/sys_types.texi: Likewise.
9669         * doc/posix-headers/time.texi: Likewise.
9670
9671 2011-09-11  Bruno Haible  <bruno@clisp.org>
9672
9673         acl: Fix compilation on Solaris 10 (older version).
9674         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9675         of ACE_EVERYONE.
9676         * lib/set-mode-acl.c (qset_acl): Likewise.
9677         Reported by Christian Jullien <eligis@orange.fr>.
9678
9679 2011-09-10  Bruno Haible  <bruno@clisp.org>
9680
9681         iconv, unsetenv: Add support for MSVC compiler.
9682         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9683         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9684
9685 2011-09-10  Bruno Haible  <bruno@clisp.org>
9686
9687         *printf: Add support for MSVC compiler.
9688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9689         handles the exception caused by the %n directive. When cross-compiling,
9690         guess no on native Windows.
9691         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9692         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9693         emulate it through vsnprintf.
9694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9695         * doc/posix-functions/dprintf.texi: Update documentation regarding
9696         MSVC 9.
9697         * doc/posix-functions/fprintf.texi: Likewise.
9698         * doc/posix-functions/printf.texi: Likewise.
9699         * doc/posix-functions/snprintf.texi: Likewise.
9700         * doc/posix-functions/sprintf.texi: Likewise.
9701         * doc/posix-functions/swprintf.texi: Likewise.
9702         * doc/posix-functions/vdprintf.texi: Likewise.
9703         * doc/posix-functions/vfprintf.texi: Likewise.
9704         * doc/posix-functions/vprintf.texi: Likewise.
9705         * doc/posix-functions/vsnprintf.texi: Likewise.
9706         * doc/posix-functions/vsprintf.texi: Likewise.
9707         * doc/glibc-functions/asprintf.texi: Likewise.
9708         * doc/glibc-functions/obstack_printf.texi: Likewise.
9709         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9710         * doc/glibc-functions/vasprintf.texi: Likewise.
9711
9712 2011-09-10  Bruno Haible  <bruno@clisp.org>
9713
9714         nocrash: Add support for native Windows.
9715         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9716
9717 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9718             Bruno Haible  <bruno@clisp.org>
9719
9720         absolute-header, include-next: Add support for MSVC compiler.
9721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9722         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9723         directory separator in #line directives.
9724         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9725         recognize also backslash as directory separator in #line directives.
9726
9727 2011-09-08  Jim Meyering  <meyering@redhat.com>
9728
9729         maint.mk: mark the post-release commit log with "maint: " prefix
9730         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9731         one-line commit-log summary.
9732
9733 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9734             Bruno Haible  <bruno@clisp.org>
9735
9736         Doc about crypt functions.
9737         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9738         systems.
9739         * doc/posix-functions/encrypt.texi: Likewise.
9740         * doc/posix-functions/setkey.texi: Likewise.
9741
9742 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9743
9744         * lib/gc.h: Fix copyright header.
9745
9746 2011-09-07  Bruno Haible  <bruno@clisp.org>
9747
9748         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9749         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9750         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9751
9752 2011-09-07  Bruno Haible  <bruno@clisp.org>
9753
9754         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9755         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9756         * lib/freopen.c: Likewise.
9757         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9758         * lib/lstat.c: Likewise.
9759         * lib/stat.c: Likewise.
9760         * lib/open.c: Use different syntax for include of <fcntl.h>.
9761         * lib/openat.c: Include fcntl.h again, explicitly.
9762
9763 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9764
9765         parse-datetime: document the newly accepted format
9766         * doc/parse-datetime.texi (Combined date and time of day items):
9767         New section.
9768
9769 2011-09-06  Bruno Haible  <bruno@clisp.org>
9770
9771         acl: Fix a test failure on newer Solaris 10 with ZFS.
9772         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9773         ENOSYS as no ACL.
9774         Reported by Jim Meyering.
9775
9776 2011-09-06  Bruno Haible  <bruno@clisp.org>
9777
9778         acl: Update for AIX >= 5.3 with NFS.
9779         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9780         ENOSYS as no ACL.
9781
9782         acl: Fix a test failure on AIX >= 5.3 with NFS.
9783         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9784         as no ACL.
9785
9786 2011-09-06  Bruno Haible  <bruno@clisp.org>
9787
9788         acl: Fix a test failure on IRIX 6.5 with NFS.
9789         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9790         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9791         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9792         * lib/copy-acl.c (qcopy_acl): Likewise.
9793
9794 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9795
9796         openat: port to AIX 7.1 with large files
9797         AIX 7.1 does a "#define openat open64at" if large files are in use,
9798         so we can't simply #undef openat.  Use the orig_openat trick (similar
9799         to orig_open in lib/open.c) to work around the problem.  Problem
9800         reported by Kevin Brott for GNU tar, in the thread containing
9801         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9802         * lib/openat.c (__need_system_fcntl_h): Define first.
9803         Include <fcntl.h> and <sys/types.h> before undefining.
9804         (orig_openat) [HAVE_OPENAT]: New inline function.
9805         (openat) [HAVE_OPENAT]: Do not undef.
9806         (rpl_openat): Use orig_openat, not openat.
9807
9808 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9809             Bruno Haible  <bruno@clisp.org>
9810
9811         acl: Avoid errors on NonStop Kernel.
9812         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9813         ENOTSUP errors.
9814
9815 2011-09-05  Bruno Haible  <bruno@clisp.org>
9816
9817         acl: Clean up Solaris code.
9818         * lib/acl-internal.h: Remove no-op #if.
9819         * lib/file-has-acl.c: Likewise.
9820         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9821         * lib/copy-acl.c (qcopy_acl): Likewise.
9822
9823 2011-09-05  Bruno Haible  <bruno@clisp.org>
9824
9825         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9826         binaries built on the original Solaris 10.
9827         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9828         trivial.
9829
9830 2011-09-05  Bruno Haible  <bruno@clisp.org>
9831
9832         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9833         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9834         10.
9835         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9836         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9837         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9838         instead of acl_get, facl_get, acl_set, facl_set.
9839
9840 2011-09-05  Bruno Haible  <bruno@clisp.org>
9841
9842         copy-file: Try unit tests on more file systems.
9843         * tests/test-copy-file-1.sh: New file.
9844         * tests/test-copy-file-2.sh: New file.
9845         * modules/copy-file-tests (Files): Add them.
9846         (Makefile.am): Add them to TESTS.
9847
9848         acl: Try unit tests on more file systems.
9849         * tests/test-file-has-acl-1.sh: New file.
9850         * tests/test-file-has-acl-2.sh: New file.
9851         * tests/test-set-mode-acl-1.sh: New file.
9852         * tests/test-set-mode-acl-2.sh: New file.
9853         * tests/test-copy-acl-1.sh: New file.
9854         * tests/test-copy-acl-2.sh: New file.
9855         * modules/acl-tests (Files): Add them.
9856         (Makefile.am): Add them to TESTS.
9857
9858 2011-09-04  Bruno Haible  <bruno@clisp.org>
9859
9860         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9861         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9862         10.
9863         (OLD_ALLOW, OLD_DENY): New macros.
9864         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9865         ACE_ACCESS_ALLOWED_ACE_TYPE.
9866         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9867         ACE_ACCESS_DENIED_ACE_TYPE.
9868         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9869         (NEW_ACE_EXECUTE): Fix value.
9870         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9871         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9872         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9873         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9874         NEW_ACE_SYNCHRONIZE): New macros.
9875         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9876         instead of acl_fromtext, acl_set, facl_set.
9877         Fixes a coreutils/tests/cp/perm failure.
9878
9879 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9880
9881         openat: test for fstatat (..., 0) bug
9882         Further testing with tar suggests that fstatat (..., 0)
9883         does not work in general, on AIX 7.1; see
9884         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9885         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9886         replacement fstatat (which is what older AIX releases were using
9887         anyway).
9888         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9889         use is now changed to orig_fstatat.  This was probably the right
9890         thing to do anyway.
9891         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9892         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9893         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9894         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9895         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9896         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9897         if the bug is found.
9898
9899         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9900         This tests for another fstatat bug on AIX 7.1:
9901         fstatat (AT_FDCWD, ..., 0) does not work.  See
9902         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9903         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9904         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9905         (rpl_fstatat): Adjust so that it works around either (or both)
9906         bugs if present.
9907         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9908
9909 2011-09-03  Karl Berry  <karl@gnu.org>
9910
9911         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9912         in index entries.
9913
9914 2011-09-02  Bruno Haible  <bruno@clisp.org>
9915
9916         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9917         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9918         values of AR, ARFLAGS, RANLIB.
9919         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9920
9921 2011-09-02  Bruno Haible  <bruno@clisp.org>
9922
9923         Find 'ar' program that fits with --host argument.
9924         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9925
9926 2011-09-02  Bruno Haible  <bruno@clisp.org>
9927
9928         tests: init.sh: Support any non-GNU diff.
9929         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9930         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9931         Solaris 8.
9932
9933 2011-09-02  Bruno Haible  <bruno@clisp.org>
9934
9935         tests: init.sh: work also with any non-GNU diff that supports -u
9936         * tests/init.sh: Relax check for diff -u support.
9937         Rather than checking for GNU diff via --version, simply check
9938         for support for -u itself.  Useful at least on OpenBSD 4.9,
9939         AIX 7.1, IRIX 6.5, and Solaris 10.
9940
9941 2011-09-01  Bruno Haible  <bruno@clisp.org>
9942
9943         strtoimax, strtoumax: Document problem on HP-UX 11.
9944         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9945         * doc/posix-functions/strtoumax.texi: Likewise.
9946
9947 2011-09-01  Bruno Haible  <bruno@clisp.org>
9948
9949         strtoumax: Avoid link error on OSF/1 with DTK cc.
9950         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9951         defined as a function.
9952         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9953         strtoumax is defined, not whether it is declared.
9954
9955 2011-09-01  Bruno Haible  <bruno@clisp.org>
9956
9957         strtoimax: Avoid link error on OSF/1 with DTK cc.
9958         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9959         defined as a function.
9960         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9961         strtoimax is defined, not whether it is declared.
9962
9963 2011-09-01  Bruno Haible  <bruno@clisp.org>
9964
9965         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9966         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9967         as a function.
9968         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9969         whether it is declared.
9970
9971 2011-09-01  Bruno Haible  <bruno@clisp.org>
9972
9973         imaxabs: Avoid link error on OSF/1 with DTK cc.
9974         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9975         as a function.
9976         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9977         whether it is declared.
9978
9979 2011-09-01  Bruno Haible  <bruno@clisp.org>
9980
9981         Tests for module 'strtoumax'.
9982         * modules/strtoumax-tests: New file.
9983         * tests/test-strtoumax.c: New file.
9984
9985         Tests for module 'strtoimax'.
9986         * modules/strtoimax-tests: New file.
9987         * tests/test-strtoimax.c: New file.
9988
9989         Tests for module 'imaxdiv'.
9990         * modules/imaxdiv-tests: New file.
9991         * tests/test-imaxdiv.c: New file.
9992
9993         Tests for module 'imaxabs'.
9994         * modules/imaxabs-tests: New file.
9995         * tests/test-imaxabs.c: New file.
9996
9997 2011-09-01  Bruno Haible  <bruno@clisp.org>
9998
9999         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10000         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10001         pthread_create.
10002
10003 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10004
10005         openat: work around AIX 7.1 fstatat issue
10006         This should fix the problem that was not properly fixed
10007         in the previous change, dated 2011-08-30.
10008         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10009         __need_system_stat_h defined.
10010         (orig_fstatat) [HAVE_FSTATAT]: New function.
10011         (rpl_fstatat): Go back to the old way of doing things,
10012         except call orig_fstatat instead of fstatat.
10013         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10014         Remove unnecessary check whether fstatat fills in st_size etc.
10015
10016 2011-09-01  Bruno Haible  <bruno@clisp.org>
10017
10018         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10019         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10020         just include the system's header.
10021
10022 2011-08-31  Jim Meyering  <meyering@redhat.com>
10023
10024         tests: avoid spurious assertion failure in test-float.c on ppc64
10025         * tests/test-float.c (test_long_double): Comment out an assertion,
10026         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10027         with gcc-4.4.4.
10028
10029         maint: indent with spaces, not TABs
10030         I need to get in the habit of running gnulib's "make check".
10031         Both of these would have been caught.
10032         * m4/largefile.m4: Indent with spaces, not TABs.
10033         * lib/parse-datetime.y (iso_8601_time): Likewise.
10034         Spotted by Pádraig Brady.
10035
10036         test-parse-datetime.c: accommodate a relatively strict gcc warning
10037         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10038         to avoid a warning from gcc's -Werror=missing-declarations.
10039         Insert a few spaces-before-funcall-parenthesis.
10040
10041 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10042
10043         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10044         The parser now accepts ISO 8601 date-time strings with "T" as the
10045         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10046         with a space between the date and time strings.  Now it also parses
10047         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10048         variants like "2004-02-29T16:21:42.333-07:00"
10049         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10050         of day representation using the 'T' separator character.
10051         * doc/parse-datetime.texi (General date syntax): replace use of
10052         deprecated --iso-8601 option with --rfc-3339 in example of date
10053         command output formats that can be parsed.
10054         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10055         lib/parse-datetime.y.
10056         (gmt_offset): New function.
10057         (main): Add additional test cases to validate ISO8601 extended
10058         date and time of day parsing.
10059
10060 2011-08-31  Bruno Haible  <bruno@clisp.org>
10061
10062         freopen: Documentation.
10063         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10064         name.
10065         Reported by Claudio Bley <claudio.bley@gmail.com>.
10066
10067 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10068
10069         freopen: Don't crash if the filename argument is NULL.
10070         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10071         NULL.
10072
10073 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10074
10075         openat: work around AIX 7.1 fstatat bug
10076         Problem reported by Kevin Brott for GNU tar, in the thread containing
10077         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10078         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10079         FSTATAT_ST_SIZE_ETC_BROKEN.
10080         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10081         rpl_fstatat.
10082         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10083         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10084         AC_CHECK_FUNCS_ONCE for fstatat.
10085         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10086         fchmodat, mkdirat, openat and unlinkat.
10087
10088 2011-08-30  Bruno Haible  <bruno@clisp.org>
10089
10090         Avoid endless recursions if config.h includes some header files.
10091         * lib/fopen.c (__need_FILE): Define already before including config.h.
10092         * lib/freopen.c (__need_FILE): Likewise.
10093         * lib/open.c (__need_system_fcntl_h): Likewise.
10094         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10095         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10096         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10097
10098 2011-08-25  Karl Berry  <karl@gnu.org>
10099
10100         * config/srclist.txt (ylwrap): new try.
10101         * build-aux/ylwrap: new file.
10102
10103 2011-08-23  Bruno Haible  <bruno@clisp.org>
10104
10105         tmpdir: Use a good default directory on native Windows.
10106         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10107         (P_tmpdir): Default to _P_tmpdir on native Windows.
10108         (path_search): On native Windows, try the value returned by GetTempPath
10109         before trying P_tmpdir.
10110         * modules/tmpdir (Depends-on): Add pathmax.
10111         Suggested by John Darrington <john@darrington.wattle.id.au>.
10112
10113 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10114
10115         doc: fix typo in README-release
10116         * top/README-release: Capitalize first word of a sentence.
10117
10118 2011-08-19  Jim Meyering  <meyering@redhat.com>
10119
10120         fts: do not exhaust memory when processing million-entry directories
10121         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10122         directory would require about 256*N bytes of memory.  Thus, it was
10123         easy to construct a directory too large to be processed by any of
10124         those tools.  With this change, fts' maximum memory utilization is
10125         now limited to around 30MB.
10126         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10127         (fts_read): When we've processed the final entry (i.e., when
10128         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10129         using the parent entry to read any remaining entries.  Dispatch
10130         depending on what fts_build returns:
10131         - NULL+stop, aka failure: stop
10132         - NULL otherwise: move up in the dir hierarchy
10133         - non-NULL: handle this new entry
10134         (fts_build): Declare and use new local, continue_readdir.
10135         Prepare to be called from fts_read, when the entries
10136         from a partially-read directory have just been exhausted.
10137         In that case, we'll skip the opendir and instead use the parent's
10138         fts_dirp and derive dir_fd from that.
10139         Finally, in the readdir loop, if we read max_entries entries,
10140         exit the loop ensuring *not* to call closedir.  This is required
10141         so that fts_dirp can be reused on a subsequent call.
10142         Prompted by Ben England's report of memory exhaustion in find
10143         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10144
10145         maint: fts: move decl of `dp' down into while loop; split a long line
10146         * lib/fts.c (fts_build): No semantic change.
10147
10148         fts: add/use new struct member, fts_dirp
10149         We are about to use this to manage any directory with
10150         too many entries to read all of them into memory at once.
10151         To do that, we'll need to save the DIR* pointer in each
10152         affected FTSENT struct.
10153         * lib/fts_.h: Include <dirent.h>.
10154         (struct FTSENT) [fts_dirp]: New member.
10155         * lib/fts.c (closedir_and_clear): Define.
10156         Use it in place of closedir so that we are sure to
10157         clear the new fts_dirp member when done with it.
10158         (fts_alloc): Initialize the new member.
10159         (fts_lfree): Free, if needed.
10160
10161         maint: fts: give __opendir2 a new parameter and rename
10162         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10163         than surreptitiously using sole caller's "dir_fd".
10164         (fts_opendir): Rename from __opendir2.
10165
10166         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10167         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10168
10169         maint: fts.c: correct off-by-one indentation
10170         * lib/fts.c (fts_build): Correct indentation, change style
10171         of a couple of block comments, and bracing style.
10172
10173         maint: fts.c: move __opendir2 #define "up" out of function body
10174         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10175
10176         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10177         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10178         out for a long time and besides was useful only on BSD systems.
10179
10180 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10181
10182         regex: port to Stratus OpenVOS
10183         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10184         define to empty, rather than attempting nonportable optimizations.
10185         Problem reported by Paul Green in:
10186         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10187         and fix suggested by Eric Blake in:
10188         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10189
10190 2011-08-17  Eric Blake  <eblake@redhat.com>
10191
10192         getcwd: fix test failures on mingw
10193         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10194         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10195         test if long directory cannot be created, and allow mingw errno.
10196
10197         getcwd-lgpl: fix m4 to match relaxed test for BSD
10198         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10199         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10200         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10201         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10202         signature problem.
10203
10204         getcwd: fix compilation on mingw64
10205         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10206         getcwd.
10207         Reported by Marc-André Lureau.
10208
10209         pipe2: silence compiler warning
10210         * lib/pipe2.c (pipe2): Hide label if it is not used.
10211
10212 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10213
10214         relocatable-prog: fix link error
10215         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10216         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10217         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10218         into modules/relocatable-lib without noticing that
10219         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10220         also needs to build relocatable.c.
10221
10222 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10223
10224         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10226         shell code: it contained a 'break' that was not in a loop.
10227         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10228         via a shell-language loop; this may have been true in old Autoconf
10229         versions, but it's not true in Autoconf 2.68.  I found this bug
10230         when testing coreutils git on Solaris 8, whose shell complains
10231         about the syntax error.
10232
10233 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10234
10235         * lib/base64.c: Fix comment to reference RFC 4648.
10236         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10237         <gvtulder@gmail.com>.
10238
10239 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10240
10241         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10242
10243         po/Makefile.in.in: fix make -q problem
10244         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10245         rule, since there's no file named 'check-macro-version' and its
10246         use as a file breaks make -q.
10247         (all): Don't depend on check-macro-version.
10248         (CHECK_MACRO_VERSION): New macro.
10249         (stamp-po): Use it.
10250
10251         configmake: fix make -q problem
10252         * modules/configmake (configmake.h): Update configmake.h's time stamp
10253         even if the file does not change.  Otherwise, 'make -q' fails.
10254         Problem reported by Simon Josefsson in
10255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10256
10257 2011-08-11  Jim Meyering  <meyering@redhat.com>
10258
10259         git-version-gen: correct the advice in a comment
10260         * build-aux/git-version-gen: Correct comment.
10261         Don't recommend to list .tarball-version in .gitignore.
10262
10263 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10264
10265         base64: fix off-by-one buffer size bug
10266         Problem and (trivial) fix reported by Gijs van Tulder in
10267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10268         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10269         * tests/test-base64.c (main): Catch the bug.
10270
10271 2011-08-10  Eric Blake  <eblake@redhat.com>
10272
10273         closein: correct comments
10274         * lib/closein.c (close_stdin): Improve comments.
10275
10276 2011-08-09  Bruno Haible  <bruno@clisp.org>
10277
10278         More tests for 'fseeko'.
10279         * tests/test-fseeko3.c: New file, from Eric Blake.
10280         * tests/test-fseeko3.sh: New file.
10281         * modules/fseeko-tests (Files): Add them.
10282         (TESTS): Add test-fseeko3.sh.
10283         (check_PROGRAMS): Add test-fseeko3.
10284
10285 2011-08-09  Eric Blake  <eblake@redhat.com>
10286
10287         fseeko: remove unneeded hack
10288         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10289
10290         fseeko: fix bug on glibc
10291         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10292         Reported by John W. Eaton.
10293
10294 2011-08-08  Bruno Haible  <bruno@clisp.org>
10295
10296         unictype/base: Fix interoperability with preinstalled libunistring.
10297         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10298         Reported by Simon Josefsson.
10299
10300 2011-08-08  Bruno Haible  <bruno@clisp.org>
10301
10302         iswblank: Detect declaration correctly.
10303         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10304         AC_CHECK_DECLS invocation.
10305
10306 2011-08-08  Bruno Haible  <bruno@clisp.org>
10307
10308         tcgetsid: Detect declaration correctly.
10309         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10310         AC_CHECK_DECLS invocation.
10311         Reported by Simon Josefsson.
10312
10313 2011-08-08  Eric Blake  <eblake@redhat.com>
10314
10315         largefile: fix typo that regressed large file support
10316         * modules/largefile (configure.ac-early): Fix section name.
10317
10318 2011-08-06  Karl Berry  <karl@gnu.org>
10319
10320         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10321         a separate module.
10322
10323 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10324
10325         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10326         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10327         get prototype for free.
10328
10329 2011-08-04  Bruno Haible  <bruno@clisp.org>
10330
10331         Tests for module 'pathmax'.
10332         * modules/pathmax-tests: New file.
10333         * tests/test-pathmax.c: New file.
10334
10335         canonicalize-lgpl: Support larger filenames on the Hurd.
10336         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10337         Reported by Paul Eggert.
10338
10339         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10340         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10341         * lib/chdir-long.h: Include pathmax.h.
10342         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10343         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10344         (PATH_MAX): Remove code that is done by pathmax.h.
10345         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10346         * lib/tmpfile.c: Add a comment.
10347         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10348         * modules/chdir-long (Depends-on): Add pathmax.
10349         * modules/getcwd (Depends-on): Add pathmax.
10350         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10351         is not defined.
10352         * doc/posix-headers/limits.texi: Mention the pathmax module.
10353         * NEWS: Mention the change.
10354
10355 2011-08-02  Bruno Haible  <bruno@clisp.org>
10356
10357         pthread_sigmask: Actually use results of gl_THREADLIB.
10358         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10359         gl_THREADLIB, not gl_[]THREADLIB.
10360         Reported by Eric Blake.
10361
10362 2011-08-02  Jim Meyering  <meyering@redhat.com>
10363
10364         maint.mk: relax the default _gl_TS_function_match regexp
10365         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10366         space between function name and "(" in an "extern" declaration.
10367         That would fail to match a decl with no space there: extern void foo();
10368
10369 2011-07-31  Iain Nicol  <iain@thenicols.net>
10370
10371         git-version-gen: document that EXTRA_DIST must include .version
10372         * build-aux/git-version-gen: In the how-to-use comment, document
10373         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10374         will fail when run from an unpacked distribution tarball.
10375
10376 2011-08-01  Bruno Haible  <bruno@clisp.org>
10377
10378         wctype-h: Fix last change.
10379         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10380         REPLACE_TOWLOWER to 0.
10381         Reported by Sam Steingold <sds@gnu.org>.
10382
10383 2011-07-31  Bruno Haible  <bruno@clisp.org>
10384
10385         frexpl: Update autoconf test.
10386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10387         according to changes of 2011-06-20.
10388
10389 2011-07-31  Bruno Haible  <bruno@clisp.org>
10390
10391         sys_utsname: Add support for Minix.
10392         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10393         <sys/utsname.h>.
10394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10395         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10396
10397 2011-07-31  Bruno Haible  <bruno@clisp.org>
10398
10399         strings: Add support for Minix.
10400         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10401         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10402         * doc/posix-headers/strings.texi: Document the Minix problem.
10403
10404 2011-07-31  Bruno Haible  <bruno@clisp.org>
10405
10406         wctype-h: Add support for Minix.
10407         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10408         REPLACE_TOWLOWER.
10409         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10410         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10411         REPLACE_ISWCNTRL.
10412
10413 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10414
10415         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10416         This is a performance improvement for 64-bit hosts: it causes the
10417         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10418
10419 2011-07-31  Bruno Haible  <bruno@clisp.org>
10420
10421         stdioext: Add support for Minix.
10422         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10423         * lib/fpurge.c (fpurge): Likewise.
10424         * lib/freadahead.c (freadahead): Likewise.
10425         * lib/freadable.c (freadable): Likewise.
10426         * lib/freading.c (freading): Likewise.
10427         * lib/freadptr.c (freadptr): Likewise.
10428         * lib/freadseek.c (freadptrinc): Likewise.
10429         * lib/fseeko.c (rpl_fseeko): Likewise.
10430         * lib/fseterr.c (fseterr): Likewise.
10431         * lib/fwritable.c (fwritable): Likewise.
10432         * lib/fwriting.c (fwriting): Likewise.
10433         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10434         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10435
10436 2011-07-31  Bruno Haible  <bruno@clisp.org>
10437
10438         errno: Port to Minix.
10439         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10440         ECONNABORTED are defined.
10441         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10442         GNULIB_defined_ECONNABORTED): New macros.
10443         * lib/strerror-override.h (strerror_override): Test also
10444         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10445         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10446         ECONNABORTED.
10447         * doc/posix-headers/errno.texi: Mention the Minix problem.
10448
10449 2011-07-31  Bruno Haible  <bruno@clisp.org>
10450
10451         Work around declaration collisions on Minix.
10452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10453         defined, set REPLACE_MBSINIT.
10454         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10455         defined, set REPLACE_MBRTOWC.
10456         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10457         set REPLACE_MBRLEN.
10458         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10459         defined, set REPLACE_MBSRTOWCS.
10460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10461         defined, set REPLACE_WCRTOMB.
10462         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10463         defined, set REPLACE_WCSRTOMBS.
10464
10465 2011-07-31  Bruno Haible  <bruno@clisp.org>
10466
10467         Add support for Minix with ACK compiler.
10468         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10469         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10470         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10471
10472 2011-07-31  Bruno Haible  <bruno@clisp.org>
10473
10474         Documentation about Minix.
10475         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10476         * doc/glibc-headers/*.texi: Likewise.
10477         * doc/posix-functions/*.texi: Likewise.
10478         * doc/glibc-functions/*.texi: Likewise.
10479
10480 2011-07-31  Bruno Haible  <bruno@clisp.org>
10481
10482         snippet/warn-on-use: Fix indentation.
10483         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10484
10485 2011-07-25  Jim Meyering  <meyering@redhat.com>
10486
10487         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10488         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10489         commands.
10490
10491 2011-07-27  Jim Meyering  <meyering@redhat.com>
10492
10493         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10494         * top/maint.mk (gl_extract_significant_defines_): Now that
10495         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10496         gnulib/lib/signal.in.h, and now that we recommend to
10497         define-if-undefined those two symbols in application code,
10498         we must filter them out of the "significant" list.
10499         This avoids a "make syntax-check" failure in coreutils.
10500
10501 2011-07-26  Eric Blake  <eblake@redhat.com>
10502
10503         warnings: add comments about previous patch
10504         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10505         * m4/include_next.m4: Likewise.
10506         * m4/warn-on-use.m4: Likewise.
10507         * m4/warnings.m4: Likewise, and simplify use.
10508         Suggested by Stefano Lattarini.
10509
10510         include-next, warnings: support older autoconf
10511         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10512         AS_VAR_PUSHDEF in a way that works with older autoconf.
10513         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10514         Reported by Daniel P. Berrange.
10515
10516 2011-07-25  Bruno Haible  <bruno@clisp.org>
10517
10518         fseek, ftell: Fix doc.
10519         * doc/posix-functions/fseek.texi: Reword statement about
10520         AC_SYS_LARGEFILE.
10521         * doc/posix-functions/ftell.texi: Likewise.
10522
10523 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10524             Bruno Haible  <bruno@clisp.org>
10525
10526         Add dependencies to the 'largefile' module.
10527         * modules/fopen (Depends-on): Add 'largefile'.
10528         * modules/freopen (Depends-on): Likewise.
10529         * modules/fseeko (Depends-on): Likewise.
10530         * modules/ftello (Depends-on): Likewise.
10531         * modules/glob (Depends-on): Likewise.
10532         * modules/lseek (Depends-on): Likewise.
10533         * modules/lstat (Depends-on): Likewise.
10534         * modules/mkostemp (Depends-on): Likewise.
10535         * modules/mkostemps (Depends-on): Likewise.
10536         * modules/mkstemp (Depends-on): Likewise.
10537         * modules/mkstemps (Depends-on): Likewise.
10538         * modules/open (Depends-on): Likewise.
10539         * modules/openat (Depends-on): Likewise.
10540         * modules/pread (Depends-on): Likewise.
10541         * modules/pwrite (Depends-on): Likewise.
10542         * modules/scandir (Depends-on): Likewise.
10543         * modules/stat (Depends-on): Likewise.
10544         * modules/tmpfile (Depends-on): Likewise.
10545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10546         since the containing module now depends on the largefile module.
10547         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10548         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10549         off_t is fixed by gnulib.
10550         * doc/posix-functions/freopen.texi: Likewise.
10551         * doc/posix-functions/fseeko.texi: Likewise.
10552         * doc/posix-functions/fstatat.texi: Likewise.
10553         * doc/posix-functions/ftello.texi: Likewise.
10554         * doc/posix-functions/glob.texi: Likewise.
10555         * doc/posix-functions/lseek.texi: Likewise.
10556         * doc/posix-functions/lstat.texi: Likewise.
10557         * doc/posix-functions/mkstemp.texi: Likewise.
10558         * doc/posix-functions/open.texi: Likewise.
10559         * doc/posix-functions/openat.texi: Likewise.
10560         * doc/posix-functions/pread.texi: Likewise.
10561         * doc/posix-functions/pwrite.texi: Likewise.
10562         * doc/posix-functions/scandir.texi: Likewise.
10563         * doc/posix-functions/stat.texi: Likewise.
10564         * doc/posix-functions/tmpfile.texi: Likewise.
10565         * doc/glibc-functions/mkostemp.texi: Likewise.
10566         * doc/glibc-functions/mkostemps.texi: Likewise.
10567         * doc/glibc-functions/mkstemps.texi: Likewise.
10568
10569 2011-07-25  Bruno Haible  <bruno@clisp.org>
10570
10571         fcntl: Move AC_LIBOBJ invocation to module description.
10572         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10573         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10574
10575         fcntl: Remove call-in from fchdir.m4.
10576         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10578
10579         dup3: Remove potential call-in from fchdir.m4.
10580         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10582
10583         dup2: Move AC_LIBOBJ invocation to module description.
10584         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10585         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10586         Don't invoke AC_LIBOBJ.
10587         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10588
10589         dup2: Remove call-in from fchdir.m4.
10590         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10592
10593         fclose: Move AC_LIBOBJ invocation to module description.
10594         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10595         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10596         to 1.
10597         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10598
10599         fclose: Remove call-in from close.m4.
10600         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10601         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10602
10603         close: Move AC_LIBOBJ invocation to module description.
10604         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10605         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10606         1.
10607         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10608
10609         close: Remove call-in from fchdir.m4.
10610         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10612
10613         open: Move AC_LIBOBJ invocation to module description.
10614         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10615         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10616         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10617
10618         open: Remove call-in from fchdir.m4.
10619         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10621
10622         fchdir: Start to remove gl_REPLACE_* idiom.
10623         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10624         (gl_FUNC_FCHDIR): Invoke it.
10625
10626 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         * lib/ftell.c (ftell): Comment out cast.
10629
10630         close: use gl_REPLACE_FCLOSE only if defined
10631         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10632         is defined.  The close module doesn't depend on the fclose module
10633         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10635         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10636
10637 2011-07-24  Jim Meyering  <meyering@redhat.com>
10638
10639         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10640         * tests/test-select.h (test_function): Declare as "static".
10641
10642 2011-07-24  Bruno Haible  <bruno@clisp.org>
10643
10644         doc: Mention the effects of AC_SYS_LARGEFILE.
10645         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10646         on this function.
10647         * doc/posix-functions/aio_error.texi: Likewise.
10648         * doc/posix-functions/aio_fsync.texi: Likewise.
10649         * doc/posix-functions/aio_read.texi: Likewise.
10650         * doc/posix-functions/aio_return.texi: Likewise.
10651         * doc/posix-functions/aio_suspend.texi: Likewise.
10652         * doc/posix-functions/aio_write.texi: Likewise.
10653         * doc/posix-functions/fgetpos.texi: Likewise.
10654         * doc/posix-functions/fopen.texi: Likewise.
10655         * doc/posix-functions/freopen.texi: Likewise.
10656         * doc/posix-functions/fsetpos.texi: Likewise.
10657         * doc/posix-functions/fstatvfs.texi: Likewise.
10658         * doc/posix-functions/ftruncate.texi: Likewise.
10659         * doc/posix-functions/ftw.texi: Likewise.
10660         * doc/posix-functions/getrlimit.texi: Likewise.
10661         * doc/posix-functions/glob.texi: Likewise.
10662         * doc/posix-functions/lio_listio.texi: Likewise.
10663         * doc/posix-functions/lockf.texi: Likewise.
10664         * doc/posix-functions/mkstemp.texi: Likewise.
10665         * doc/posix-functions/mmap.texi: Likewise.
10666         * doc/posix-functions/nftw.texi: Likewise.
10667         * doc/posix-functions/openat.texi: Likewise.
10668         * doc/posix-functions/opendir.texi: Likewise.
10669         * doc/posix-functions/posix_fadvise.texi: Likewise.
10670         * doc/posix-functions/posix_fallocate.texi: Likewise.
10671         * doc/posix-functions/pread.texi: Likewise.
10672         * doc/posix-functions/pwrite.texi: Likewise.
10673         * doc/posix-functions/readdir.texi: Likewise.
10674         * doc/posix-functions/readdir_r.texi: Likewise.
10675         * doc/posix-functions/rewinddir.texi: Likewise.
10676         * doc/posix-functions/scandir.texi: Likewise.
10677         * doc/posix-functions/seekdir.texi: Likewise.
10678         * doc/posix-functions/setrlimit.texi: Likewise.
10679         * doc/posix-functions/statvfs.texi: Likewise.
10680         * doc/posix-functions/telldir.texi: Likewise.
10681         * doc/posix-functions/tmpfile.texi: Likewise.
10682         * doc/posix-functions/truncate.texi: Likewise.
10683         * doc/glibc-functions/fallocate.texi: Likewise.
10684         * doc/glibc-functions/fstatfs.texi: Likewise.
10685         * doc/glibc-functions/fts_children.texi: Likewise.
10686         * doc/glibc-functions/fts_read.texi: Likewise.
10687         * doc/glibc-functions/getdirentries.texi: Likewise.
10688         * doc/glibc-functions/mkostemp.texi: Likewise.
10689         * doc/glibc-functions/mkostemps.texi: Likewise.
10690         * doc/glibc-functions/mkstemps.texi: Likewise.
10691         * doc/glibc-functions/preadv.texi: Likewise.
10692         * doc/glibc-functions/pwritev.texi: Likewise.
10693         * doc/glibc-functions/sendfile.texi: Likewise.
10694         * doc/glibc-functions/statfs.texi: Likewise.
10695
10696 2011-07-24  Bruno Haible  <bruno@clisp.org>
10697
10698         doc: Fix typo.
10699         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10700
10701 2011-07-24  Bruno Haible  <bruno@clisp.org>
10702
10703         doc: Mention fsusage.
10704         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10705
10706 2011-07-24  Bruno Haible  <bruno@clisp.org>
10707
10708         doc: Mention new glibc headers and functions.
10709         * doc/glibc-headers/gshadow.texi: New file.
10710         * doc/glibc-functions/endsgent.texi: New file.
10711         * doc/glibc-functions/fgetsgent.texi: New file.
10712         * doc/glibc-functions/fgetsgent_r.texi: New file.
10713         * doc/glibc-functions/getsgent.texi: New file.
10714         * doc/glibc-functions/getsgent_r.texi: New file.
10715         * doc/glibc-functions/getsgnam.texi: New file.
10716         * doc/glibc-functions/getsgnam_r.texi: New file.
10717         * doc/glibc-functions/putsgent.texi: New file.
10718         * doc/glibc-functions/setsgent.texi: New file.
10719         * doc/glibc-functions/sgetsgent.texi: New file.
10720         * doc/glibc-functions/sgetsgent_r.texi: New file.
10721         * doc/glibc-functions/malloc_info.texi: New file.
10722         * doc/glibc-functions/preadv.texi: New file.
10723         * doc/glibc-functions/pwritev.texi: New file.
10724         * doc/glibc-functions/register_printf_modifier.texi: New file.
10725         * doc/glibc-functions/register_printf_specifier.texi: New file.
10726         * doc/glibc-functions/register_printf_type.texi: New file.
10727         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10728         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10729         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10730         * doc/glibc-functions/pthread_getname_np.texi: New file.
10731         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10732         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10733         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10734         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10735         * doc/glibc-functions/pthread_setname_np.texi: New file.
10736         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10737         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10738         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10739         * doc/glibc-functions/qsort_r.texi: New file.
10740         * doc/glibc-functions/quick_exit.texi: New file.
10741         * doc/glibc-functions/syncfs.texi: New file.
10742         * doc/gnulib.texi: Include them.
10743         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10744         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10745         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10746         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10747         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10748         * doc/glibc-functions/execvpe.texi: Likewise.
10749
10750 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10751
10752         ftell: don't include <unistd.h>
10753         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10754         guaranteed to define off_t, and the ftell module depends on the
10755         stdio module.
10756
10757         ftell: do not assume wraparound signed arithmetic
10758         * lib/ftell.c: Include <limits.h>.
10759         (ftell): Don't assume wraparound signed arithmetic.
10760
10761 2011-07-24  Bruno Haible  <bruno@clisp.org>
10762
10763         close: No longer depend on module 'fclose'.
10764         * modules/close (Depends-on): Remove fclose.
10765         * NEWS: Mention the change.
10766         Suggested by Sam Steingold <sds@gnu.org>.
10767
10768 2011-07-24  Bruno Haible  <bruno@clisp.org>
10769
10770         fsusage: Enable large volume support on AIX >= 5.2.
10771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10772         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10773         instead of STAT_STATVFS.
10774         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10775
10776         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10778         f_blocks field only on MacOS X.
10779
10780         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10781         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10782         * modules/fsusage (Depends-on): Add largefile.
10783
10784 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10785
10786         * README: Modernize discussion of signed integers.
10787         Assuming overflow wraparound is no longer safe.
10788         Mention ones' complement and signed magnitude.
10789
10790 2011-07-22  Bruno Haible  <bruno@clisp.org>
10791
10792         select tests, pselect tests: Refactor.
10793         * tests/test-select.h: New file, extracted from tests/test-select.c.
10794         (select_fn): New type.
10795         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10796         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10797         test_pipe): Add my_select argument.
10798         (test_function): Renamed from main. Add my_select argument.
10799         * tests/test-select.c: Move most code to tests/test-select.h. Include
10800         test-select.h.
10801         * modules/select-tests (Files): Add tests/test-select.h.
10802         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10803         (my_select, main): New functions.
10804         * modules/pselect-tests (Files): Add tests/test-select.h,
10805         tests/macros.h, tests/signature.h.
10806         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10807         (configure.ac): Check for <sys/wait.h>.
10808
10809 2011-07-22  Bruno Haible  <bruno@clisp.org>
10810
10811         sys_select tests: Check the signature of FD_*.
10812         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10813         signature tests from here...
10814         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10815         here.
10816         * modules/sys_select-tests (Files): Add tests/signature.h.
10817
10818 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10819
10820         largefile: new module, replacing large-inode
10821         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10822         * MODULES.html.sh: Add largefile, remove large-inode.
10823         * modules/largefile, m4/largefile.m4: New files.
10824         * modules/large-inode, m4/large-inode.m4: Remove.
10825
10826         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10828         implementations that use only 32 bits to count blocks.
10829         On typical hosts with 1024-byte blocks, this fails with file
10830         systems as small as 4 TiB.  Problem reported by Herb Wartens
10831         <http://debbugs.gnu.org/9140> and this should also fix a similar
10832         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10833
10834         large-inode: New module
10835         * MODULES.html.sh: Add it.
10836         * modules/large-inode, m4/large-inode.m4: New files.
10837
10838         extensions: Enable extensions on MacOS X 10.5 and later.
10839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10840
10841 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10842
10843         file-has-acl: use acl_extended_file_nofollow if available
10844         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10845         (acl_extended_file): New macro.
10846         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10847         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10848
10849 2011-07-21  Bruno Haible  <bruno@clisp.org>
10850
10851         Declare system functions in a way that works with C++.
10852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10853         declare fdopendir as extern "C".
10854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10855         declare frexpl as extern "C".
10856         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10857         declare gai_strerror as extern "C".
10858         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10859         programs, declare gai_strerror as extern "C".
10860         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10861         declare getlogin_r as extern "C".
10862         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10863         as extern "C".
10864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10865         declare ldexpl as extern "C".
10866         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10867         as extern "C".
10868         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10869         program, declare getmntinfo as extern "C".
10870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10871         stpncpy as extern "C".
10872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10873         program, declare __xpg_strerror_r as extern "C".
10874         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10875         strndup as extern "C".
10876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10877         declare memset and bzero as extern "C".
10878         Reported by Sam Steingold <sds@gnu.org>.
10879
10880 2011-07-12  Jim Meyering  <meyering@redhat.com>
10881
10882         maint.mk: prohibit inclusion of "verify.h" without use
10883         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10884
10885 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10886
10887         timer-time: A new module to check for timer_settime()
10888         * m4/timer_time.m4: Check for the posix function.
10889         * modules/timer-time: Add the new module.
10890         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10891         Mention it.
10892
10893 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10894             Bruno Haible  <bruno@clisp.org>
10895
10896         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10898         not defined, assume POSIX threads and look for pthread_sigmask in
10899         $LIBS, without changing $CPPFLAGS.
10900
10901 2011-07-19  Bruno Haible  <bruno@clisp.org>
10902
10903         strstr: Update cross-compilation guess.
10904         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10905         CPUs, guess no, in view of glibc
10906         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10907         Suggested by Eric Blake. Reported by Reuben Thomas.
10908
10909 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10910
10911         getopt-gnu: suppress core dumps from detection code
10912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10913         to suppress core dumps that may well occur on glibc systems.
10914         * modules/getopt-gnu: Depend on nocrash.
10915
10916 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10917
10918         pthread_sigmask: ensure usleep is declared
10919         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10920         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10921
10922 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10923
10924         doc: Document NonStop portability issues.
10925         * doc/posix-functions/sigaction.texi (sigaction):
10926         * doc/posix-headers/signal.texi (signal.h):
10927         Document NonStop.  See Joachim Schmitz in
10928         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10929
10930 2011-07-15  Bruno Haible  <bruno@clisp.org>
10931
10932         ffsl, ffsll: Avoid unportable behaviour.
10933         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10934
10935 2011-07-15  Bruno Haible  <bruno@clisp.org>
10936
10937         ffs: More tests.
10938         * tests/test-ffs.c (NBITS): New macro.
10939         (main): Add more tests.
10940         * tests/test-ffsl.c (NBITS): New macro.
10941         (main): Add more tests.
10942         * tests/test-ffsll.c (NBITS): New macro.
10943         (main): Add more tests.
10944
10945 2011-07-15  Eric Blake  <eblake@redhat.com>
10946
10947         ffsl, ffsll: new modules
10948         * modules/ffsl: New file.
10949         * modules/ffsll: Likewise.
10950         * m4/ffsl.m4: Likewise.
10951         * m4/ffsll.m4: Likewise.
10952         * lib/ffsl.c: Likewise.
10953         * lib/ffsl.h: Likewise.
10954         * lib/ffsll.c: Likewise.
10955         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10956         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10957         * modules/string (Makefile.am): Substitute witnesses.
10958         * lib/strings.in.h (ffsl, ffsll): Declare.
10959         * modules/ffsl-tests: New test file.
10960         * modules/ffsll-tests: Likewise.
10961         * tests/test-ffsl.c: Likewise.
10962         * tests/test-ffsll.c: Likewise.
10963         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10964         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10965         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10966
10967         ffs: fix m4 prerequisite
10968         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10969
10970         ffs: avoid undefined behavior
10971         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10972         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10973         Reported by Bruno Haible.
10974
10975 2011-07-12  Bruno Haible  <bruno@clisp.org>
10976
10977         pthread_sigmask: Rely on module 'threadlib'.
10978         * modules/pthread_sigmask (Depends-on): Add threadlib.
10979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10980         is defined.
10981
10982 2011-07-12  Bruno Haible  <bruno@clisp.org>
10983
10984         regex: Depend on module 'strcase'.
10985         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10986
10987 2011-07-12  Jim Meyering  <meyering@redhat.com>
10988
10989         warn-on-use: fix typo in file name
10990         * modules/snippet/warn-on-use (Files): Correct file name:
10991         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10992
10993 2011-07-12  Bruno Haible  <bruno@clisp.org>
10994
10995         strings: Document module.
10996         * doc/posix-headers/strings.texi: Mention module 'strings'.
10997
10998 2011-07-12  Bruno Haible  <bruno@clisp.org>
10999
11000         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11001         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11002         (Files, Makefile.am): Update.
11003         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11004         * modules/stdlib (Depends-on): Update.
11005
11006 2011-07-12  Bruno Haible  <bruno@clisp.org>
11007
11008         * NEWS: Mention the changes.
11009
11010         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11011         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11012         (Files, Makefile.am): Update.
11013         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11014         * modules/arpa_inet (Depends-on): Update.
11015         * modules/ctype (Depends-on): Update.
11016         * modules/dirent (Depends-on): Update.
11017         * modules/fcntl-h (Depends-on): Update.
11018         * modules/glob (Depends-on): Update.
11019         * modules/iconv-h (Depends-on): Update.
11020         * modules/inttypes-incomplete (Depends-on): Update.
11021         * modules/langinfo (Depends-on): Update.
11022         * modules/locale (Depends-on): Update.
11023         * modules/math (Depends-on): Update.
11024         * modules/netdb (Depends-on): Update.
11025         * modules/poll-h (Depends-on): Update.
11026         * modules/pty (Depends-on): Update.
11027         * modules/search (Depends-on): Update.
11028         * modules/signal (Depends-on): Update.
11029         * modules/spawn (Depends-on): Update.
11030         * modules/stdio (Depends-on): Update.
11031         * modules/stdlib (Depends-on): Update.
11032         * modules/string (Depends-on): Update.
11033         * modules/strings (Depends-on): Update.
11034         * modules/sys_file (Depends-on): Update.
11035         * modules/sys_ioctl (Depends-on): Update.
11036         * modules/sys_select (Depends-on): Update.
11037         * modules/sys_socket (Depends-on): Update.
11038         * modules/sys_stat (Depends-on): Update.
11039         * modules/sys_time (Depends-on): Update.
11040         * modules/sys_times (Depends-on): Update.
11041         * modules/sys_utsname (Depends-on): Update.
11042         * modules/sys_wait (Depends-on): Update.
11043         * modules/termios (Depends-on): Update.
11044         * modules/time (Depends-on): Update.
11045         * modules/unistd (Depends-on): Update.
11046         * modules/wchar (Depends-on): Update.
11047         * modules/wctype-h (Depends-on): Update.
11048         * MODULES.html.sh (Support for building libraries and executables):
11049         Update.
11050
11051         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11052         * modules/snippet/unused-parameter: Renamed from
11053         modules/unused-parameter.
11054         (Files, Makefile.am): Update.
11055         * build-aux/snippet/unused-parameter.h: Renamed from
11056         build-aux/unused-parameter.h.
11057         * modules/selinux-h (Depends-on): Update.
11058         * modules/unistr/base (Depends-on): Update.
11059         * MODULES.html.sh (Core language properties): Update.
11060
11061         Rename module 'link-warning' to 'snippet/link-warning'.
11062         * modules/snippet/link-warning: Renamed from modules/link-warning.
11063         (Files, Makefile.am): Update.
11064         * build-aux/snippet/link-warning.h: Renamed from
11065         build-aux/link-warning.h.
11066         * MODULES.html.sh (Support for building libraries and executables):
11067         Update.
11068
11069         Rename module 'c++defs' to 'snippet/c++defs'.
11070         * modules/snippet/c++defs: Renamed from modules/c++defs.
11071         (Files, Makefile.am): Update.
11072         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11073         * modules/arpa_inet (Depends-on): Update.
11074         * modules/ctype (Depends-on): Update.
11075         * modules/dirent (Depends-on): Update.
11076         * modules/fcntl-h (Depends-on): Update.
11077         * modules/glob (Depends-on): Update.
11078         * modules/iconv-h (Depends-on): Update.
11079         * modules/langinfo (Depends-on): Update.
11080         * modules/locale (Depends-on): Update.
11081         * modules/math (Depends-on): Update.
11082         * modules/netdb (Depends-on): Update.
11083         * modules/poll-h (Depends-on): Update.
11084         * modules/pty (Depends-on): Update.
11085         * modules/search (Depends-on): Update.
11086         * modules/signal (Depends-on): Update.
11087         * modules/spawn (Depends-on): Update.
11088         * modules/stdio (Depends-on): Update.
11089         * modules/stdlib (Depends-on): Update.
11090         * modules/string (Depends-on): Update.
11091         * modules/strings (Depends-on): Update.
11092         * modules/sys_ioctl (Depends-on): Update.
11093         * modules/sys_select (Depends-on): Update.
11094         * modules/sys_socket (Depends-on): Update.
11095         * modules/sys_stat (Depends-on): Update.
11096         * modules/sys_time (Depends-on): Update.
11097         * modules/sys_wait (Depends-on): Update.
11098         * modules/termios (Depends-on): Update.
11099         * modules/time (Depends-on): Update.
11100         * modules/unistd (Depends-on): Update.
11101         * modules/wchar (Depends-on): Update.
11102         * modules/wctype-h (Depends-on): Update.
11103
11104         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11105         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11106         (Files, Makefile.am): Update.
11107         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11108         * modules/argv-iter (Depends-on): Update.
11109         * modules/arpa_inet (Depends-on): Update.
11110         * modules/dirent (Depends-on): Update.
11111         * modules/fcntl-h (Depends-on): Update.
11112         * modules/fnmatch (Depends-on): Update.
11113         * modules/getopt-posix (Depends-on): Update.
11114         * modules/glob (Depends-on): Update.
11115         * modules/iconv-h (Depends-on): Update.
11116         * modules/inttypes-incomplete (Depends-on): Update.
11117         * modules/locale (Depends-on): Update.
11118         * modules/math (Depends-on): Update.
11119         * modules/netdb (Depends-on): Update.
11120         * modules/search (Depends-on): Update.
11121         * modules/signal (Depends-on): Update.
11122         * modules/spawn (Depends-on): Update.
11123         * modules/stdio (Depends-on): Update.
11124         * modules/stdlib (Depends-on): Update.
11125         * modules/string (Depends-on): Update.
11126         * modules/strings (Depends-on): Update.
11127         * modules/sys_socket (Depends-on): Update.
11128         * modules/sys_stat (Depends-on): Update.
11129         * modules/sys_time (Depends-on): Update.
11130         * modules/sys_times (Depends-on): Update.
11131         * modules/sys_utsname (Depends-on): Update.
11132         * modules/time (Depends-on): Update.
11133         * modules/unistd (Depends-on): Update.
11134         * modules/wchar (Depends-on): Update.
11135         * MODULES.html.sh (Support for building libraries and executables):
11136         Update.
11137
11138 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11139
11140         Improvements on _Noreturn and related modules.
11141
11142         modules/_Exit-tests: test _Noreturn too
11143         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11144         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11145         (main): Use them.
11146
11147         stdnoreturn, stdnoreturn-tests: remove modules
11148         They're not needed here and a bit premature for use elsewhere.  See
11149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11150         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11151         * tests/test-stdnoreturn.c: Remove files.
11152         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11153         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11154         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11155         and using noreturn.
11156         * modules/openat, modules/sigpipe-die, modules/xalloc:
11157         * modules/xmemdup0, modules/xstrtol:
11158         Remove dependency on stdnoreturn.
11159
11160         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11161         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11162         Reparenthesize to avoid GCC warning.
11163         Support Microsoft's syntax.
11164         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11165
11166         _Noreturn-tests: remove module
11167         * modules/_Noreturn-tests: Remove.
11168         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11169         * tests/test-_Noreturn.c: Remove.
11170         * tests/test-stdnoreturn.c: Merge from the old
11171         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11172
11173 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11174
11175         _Noreturn, stdnoreturn, and related modules.
11176
11177         * top/maint.mk: Adjust to new noreturn support.
11178         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11179         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11180
11181         xalloc: use stdnoreturn.h
11182         * lib/xalloc.h: Include <stdnoreturn.h>.
11183         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11184         * modules/xalloc (Depends-on): Add stdnoreturn.
11185
11186         xstrtol: use stdnoreturn.h
11187         * lib/xstrtol.h: Include <stdnoreturn.h>.
11188         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11189         * modules/xstrtol (Depends-on): Add stdnoreturn.
11190
11191         xmemdup0: use stdnoreturn.h
11192         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11193         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11194         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11195
11196         sigpipe-die: use stdnoreturn.h
11197         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11198         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11199         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11200
11201         openat: use stdnoreturn.h
11202         * lib/openat.h: Include <stdnoreturn.h>.
11203         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11204         * modules/openat (Depends-on): Add stdnoreturn.
11205
11206         * lib/openat-die.c (openat_save_fail): Modernize comment.
11207
11208         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11209
11210         * lib/glthread/thread.h: Modernize comment.
11211
11212         obstack: use _Noreturn
11213         * lib/obstack.c (__attribute__): Remove macro.
11214         (print_and_abort): Use _Noreturn.
11215
11216         c-stack: use _Noreturn
11217         * lib/c-stack.c (die, overflow_handler, segv_handler):
11218         Use _Noreturn rather than __attribute__((noreturn)).
11219
11220         argmatch-tests, exclude_tests: use _Noreturn
11221         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11222         Remove.
11223         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11224
11225         stdlib: use _Noreturn
11226         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11227         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11228         * modules/stdlib (Depends-on): Add _Noreturn.
11229         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11230
11231         stdnoreturn-tests: new module
11232         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11233
11234         stdnoreturn: new module
11235         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11236         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11237
11238         _Noreturn-tests: new module
11239         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11240
11241         _Noreturn: new module
11242         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11243         New section, mentioning it.
11244         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11245
11246         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11247
11248 2011-07-11  Eric Blake  <eblake@redhat.com>
11249
11250         ffs: new module
11251         * modules/ffs: New file.
11252         * m4/ffs.m4: Likewise.
11253         * lib/ffs.c: Likewise.
11254         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11255         * modules/strings (Makefile.am): Substitute witness.
11256         (Depends-on): Add c++defs.
11257         * lib/strings.in.h (ffs): Declare.
11258         * modules/ffs-tests: New test file.
11259         * tests/test-ffs.c: Test new module.
11260         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11261         * doc/posix-functions/ffs.texi (ffs): Likewise.
11262
11263         regex: avoid compiler warning
11264         * lib/regex.c (includes): Include <strings.h>, for use of
11265         strcasecmp in regcomp.c.
11266         Reported by Joachim Schmitz.
11267
11268 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11269
11270         stdint: respect system's intmax_t if INTMAX_MAX
11271         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11272         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11273         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11274         long but int64_t is long long, and where we will clash with the
11275         system intmax_t if we override it.  See
11276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11277         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11278         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11279         similarly for UINTMAX_C.
11280
11281 2011-07-08  Bruno Haible  <bruno@clisp.org>
11282
11283         pthread_sigmask tests: Avoid a compiler warning.
11284         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11285         non-zero.
11286
11287         sigprocmask tests: A better way to avoid a compiler warning.
11288         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11289         (main): Complain if system() returns non-zero.
11290         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11291
11292 2011-07-08  Bruno Haible  <bruno@clisp.org>
11293
11294         pthread_sigmask: Work around IRIX bug.
11295         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11296         bug.
11297         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11298         there may be unblocked pending signals.
11299         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11300
11301 2011-07-08  Bruno Haible  <bruno@clisp.org>
11302
11303         pthread_sigmask: Work around Cygwin bug.
11304         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11305         bug.
11306         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11307         the system's pthread_sigmask function.
11308         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11309
11310 2011-07-08  Bruno Haible  <bruno@clisp.org>
11311
11312         pthread_sigmask: Work around bug in single-threaded implementation.
11313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11314         FreeBSD, HP-UX, Solaris bug.
11315         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11316         * lib/pthread_sigmask.c: Include <stddef.h>.
11317         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11318         the system's pthread_sigmask function.
11319         * modules/pthread_sigmask (configure.ac): Invoke
11320         gl_PREREQ_PTHREAD_SIGMASK.
11321         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11322         HP-UX, Solaris.
11323
11324 2011-07-08  Eric Blake  <eblake@redhat.com>
11325
11326         test-sigprocmask: avoid compiler warning
11327         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11328         * tests/test-sigprocmask.c (main): Use it to silence warning.
11329         Reported by Jim Meyering.
11330
11331         test-snprintf: avoid compiler warning
11332         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11333         * tests/test-vsnprintf.c (main): Likewise.
11334         Reported by Jim Meyering.
11335
11336 2011-07-08  Bruno Haible  <bruno@clisp.org>
11337
11338         Tests for module 'pthread_sigmask'.
11339         * modules/pthread_sigmask-tests: New file.
11340         * tests/test-pthread_sigmask1.c: New file, based on
11341         tests/test-sigprocmask.c.
11342         * tests/test-pthread_sigmask2.c: New file.
11343
11344 2011-07-08  Jim Meyering  <meyering@redhat.com>
11345
11346         test-getopt.h: avoid warning about an unused variable
11347         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11348
11349 2011-07-07  Jim Meyering  <meyering@redhat.com>
11350
11351         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11352         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11353         now that it no longer contains leading TABs.
11354         Remove unused "url=FIXME" statement.
11355
11356 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11357
11358         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11360         When gl_THREADLIB is not in use, assume that the POSIX sematics
11361         are desired.  This is better for Emacs, which uses POSIX semantics
11362         on GNUish and/or POSIXish platforms, and does not use threads at
11363         all otherwise.
11364
11365         pthread_sigmask: fix typo when testing for libraries
11366         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11367         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11368
11369 2011-07-08  Eric Blake  <eblake@redhat.com>
11370
11371         fts: introduce FTS_NOATIME
11372         * lib/fts_.h (FTS_NOATIME): New bit flag.
11373         (FTS_OPTIONMASK): Adjust.
11374         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11375         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11376
11377 2011-07-08  Bruno Haible  <bruno@clisp.org>
11378
11379         Tests for module 'thread'.
11380         * modules/thread-tests: New file.
11381         * tests/test-thread_self.c: New file.
11382         * tests/test-thread_create.cc: New file.
11383
11384 2011-07-08  Bruno Haible  <bruno@clisp.org>
11385
11386         thread: Avoid gcc warnings when using gl_thread_self().
11387         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11388         'void *'.
11389         (gl_thread_self_pointer): Update.
11390
11391 2011-07-07  Bruno Haible  <bruno@clisp.org>
11392
11393         signal-c++-tests: Check declaration of pthread_sigmask.
11394         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11395         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11396         $(LIB_PTHREAD_SIGMASK).
11397
11398 2011-07-07  Bruno Haible  <bruno@clisp.org>
11399
11400         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11401         * lib/signal.in.h (pthread_sigmask): Override if
11402         REPLACE_PTHREAD_SIGMASK is 1.
11403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11404         REPLACE_PTHREAD_SIGMASK.
11405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11406         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11407         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11408         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11409         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11410
11411 2011-07-07  Bruno Haible  <bruno@clisp.org>
11412
11413         pthread_sigmask: Ensure declaration in <signal.h>.
11414         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11415         include <pthread.h>.
11416         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11417         problem.
11418
11419 2011-07-07  Bruno Haible  <bruno@clisp.org>
11420
11421         pthread_sigmask: Document the module.
11422         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11423
11424 2011-07-07  Bruno Haible  <bruno@clisp.org>
11425
11426         pthread_sigmask: Follow gnulib conventions.
11427         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11428         gl_PTHREAD_SIGMASK.
11429         * modules/pthread_sigmask (configure.ac): Update.
11430
11431 2011-07-07  Bruno Haible  <bruno@clisp.org>
11432
11433         pthread_sigmask: Make declaration C++ safe.
11434         * lib/signal.in.h: In two special conditions, just do an #include_next.
11435         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11436         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11438         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11439         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11440         not REPLACE_PTHREAD_MASK.
11441         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11442         not REPLACE_PTHREAD_MASK.
11443         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11444
11445 2011-07-07  Bruno Haible  <bruno@clisp.org>
11446
11447         pthread_sigmask: Fix return value.
11448         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11449         * lib/pthread_sigmask.c: New file.
11450         * modules/pthread_sigmask (Files): Add it.
11451         (configure.ac): Invoke AC_LIBOBJ.
11452
11453 2011-07-07  Eric Blake  <eblake@redhat.com>
11454
11455         getopt: more portable argv creation
11456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11457         const, use char arrays rather than strings.
11458         Suggested by Paul Eggert.
11459
11460 2011-07-07  Bruno Haible  <bruno@clisp.org>
11461
11462         Tests for module 'sigprocmask'.
11463         * modules/sigprocmask-tests: New file.
11464         * tests/test-sigprocmask.c: New file.
11465
11466 2011-07-07  Bruno Haible  <bruno@clisp.org>
11467
11468         float tests: Tweak.
11469         * tests/test-float.c (main): Tweak skip message.
11470
11471 2011-07-07  Eric Blake  <eblake@redhat.com>
11472
11473         getopt: avoid compiler warning during configure
11474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11475         assigning string literals to non-const pointer.
11476
11477         getopt-gnu: avoid crash in glibc getopt
11478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11479         * tests/test-getopt.h (test_getopt): Enhance test.
11480         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11481         * doc/posix-functions/getopt.texi (getopt): Document it.
11482         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11483         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11484         Likewise.
11485
11486 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11487
11488         getopt: handle W; without long options in getopt [BZ #12922]
11489         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11490         but no long options are defined, just return 'W'.
11491
11492 2011-07-07  Bruno Haible  <bruno@clisp.org>
11493
11494         Avoid literal tabs.
11495         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11496         variable containing a tab instead of a literal tab.
11497         Reported by Jim Meyering.
11498
11499 2011-07-07  Bruno Haible  <bruno@clisp.org>
11500
11501         Comments.
11502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11503
11504 2011-07-06  Bruno Haible  <bruno@clisp.org>
11505
11506         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11507         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11508         <winsock2.h>.
11509         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11510         lib/sys_socket.in.h.
11511         (close, gethostname): Hide declarations from <winsock2.h>.
11512         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11513         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11514         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11515         (select): Don't override if gnulib's <sys/select.h> was already
11516         included.
11517         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11518         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11519         setsockopt, shutdown, select): Tweak indentation.
11520
11521 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11522
11523         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11524         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11525         in an application that does not use the sys_select module.
11526
11527 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11528
11529         poll: do not return 0 on timeout=-1
11530         * lib/poll.c: Loop with yield if no events occured
11531
11532 2011-07-06  Eric Blake  <eblake@redhat.com>
11533
11534         pthread_sigmask: always replace when not using pthread
11535         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11536         replacement when using some threading other than pthread.  Fix
11537         logic bug.
11538
11539 2011-07-06  Bruno Haible  <bruno@clisp.org>
11540
11541         Comments.
11542         * m4/printf.m4: Update comments about mingw.
11543
11544 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11545
11546         sys_select: define sigset_t more portably
11547         * lib/sys_select.in.h: Always include <sys/types.h>, since
11548         we now need sigset_t and mingw defines it there.
11549         Include <signal.h> before split inclusion guard, to avoid
11550         mishaps on Solaris, whose <signal.h> eventually includes us.
11551         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11552         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11553         which come from ...
11554         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11555         gl_CHECK_TYPE_SIGSET_T.
11556         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11557         does the real work.
11558         * modules/sys_select (Depends-on): Add 'signal'.
11559
11560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11561         Suggested by Bruno Haible.
11562
11563         pselect: Use pthread_sigmask, not sigprocmask.
11564         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11565         multithreaded apps better than sigprocmask does.
11566         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11567         sigprocmask directly.
11568
11569 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11570
11571         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11572         Don't #undef,  since we don't need any underlying pselect.
11573         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11574         (Depends-on): Add select.
11575         (Link): Add $(LIBSOCKET).
11576         These changes suggested by Bruno Haible.
11577
11578         pselect: document better
11579         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11580         * doc/posix-functions/pselect.texi (pselect): Document new module.
11581
11582         pthread_sigmask: new module
11583         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11584         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11585         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11586         This is done only as a macro; I don't know how well that'll
11587         work for C++.  Move <sys/types.h> include before the include_next,
11588         to avoid mishap on Solaris.
11589         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11590         * modules/signal (Makefile.am): Substitute the check's results.
11591         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11592
11593         test-pselect: new module
11594         * modules/pselect-tests, tests/test-pselect.c: New files.
11595         * tests/test-select.c, tests/test-sys_select-c++.cc:
11596         If TEST_PSELECT is defined, test pselect instead of testing select.
11597
11598         * tests/test-sys_select.c (sigset_t): Test for it, too.
11599         Suggested by Bruno Haible.
11600
11601 2011-07-05  Eric Blake  <eblake@redhat.com>
11602
11603         snprintf: guarantee %1$d, for libintl
11604         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11605         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11606         * doc/posix-functions/snprintf.texi (snprintf): Update.
11607         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11608         * tests/test-snprintf.c (main): Enhance test.
11609         * tests/test-vsnprintf.c (main): Likewise.
11610
11611 2011-07-05  Jim Meyering  <meyering@redhat.com>
11612
11613         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11614         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11615         per Bruno's request, to accommodate this idiom (no space after "#")
11616         even when the function is inside an #if block:
11617         char *
11618         gets (char *s)
11619         #undef gets
11620         {
11621           ...
11622         }
11623
11624 2011-07-04  Jim Meyering  <meyering@redhat.com>
11625
11626         maint: indent with spaces, not TABs, and add a rule to check this
11627         * tests/test-userspec.c: Indent with spaces, not TABs.
11628         * tests/test-argp.c: Likewise.
11629         * tests/test-c-stack2.sh: Likewise.
11630         * tests/test-parse-duration.sh: Likewise
11631         * m4/strtod.m4: Likewise.
11632         * m4/alloca.m4: Likewise.
11633         * m4/pselect.m4: Likewise.
11634         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11635
11636 2011-07-03  Jim Meyering  <meyering@redhat.com>
11637
11638         maint.mk: correct omissions in prohibit_argmatch_without_use check
11639         This rule would mistakenly report that argmatch.h is included without
11640         use even when both the argmatch and invalid_arg macro were used.
11641         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11642         of argmatch and invalid_arg.
11643
11644 2011-07-03  Bruno Haible  <bruno@clisp.org>
11645
11646         Comments about EINTR.
11647         * lib/safe-read.h: Explain the purpose of this module.
11648         * lib/safe-write.h: Likewise.
11649         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11650         module.
11651         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11652         module.
11653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11654
11655 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11656
11657         xnanosleep: Rewrite to use new dtotimespec module.
11658         It has the conversion code that used to be in xnanosleep.
11659         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11660         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11661         (TIME_T_MAX): Remove.
11662         (xnanosleep): Rewrite in terms of dtotimespec.
11663         * modules/xnanosleep (Depends-on): Add dtotimespec.
11664         Remove intprops, stdbool.
11665
11666         timespec-add, timespec-sub: new modules
11667         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11668         * lib/timespec-add.c, lib/timespec-sub.c:
11669         * modules/timespec-add, modules/timespec-sub: New files.
11670
11671         dtotimespec: new module
11672         * lib/timespec.h (dtotimespec): New decl.
11673         * lib/dtotimespec.c, modules/dtotimespec: New files.
11674
11675         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11676
11677         pselect: new module
11678         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11679         (pselect): New decls.
11680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11681         since the standard pselect decl uses 'restrict'.
11682         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11683         HAVE_PSELECT, REPLACE_PSELECT.
11684         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11685         HAVE_PSELECT, REPLACE_PSELECT.
11686         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11687
11688         sys_select: don't depend on sys_socket
11689         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11691         This fix works on GNU and GNU-like platforms, but has not been tested
11692         on native Windows.
11693         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11694         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11695         gl_HEADER_SYS_SOCKET.
11696         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11697         gl_PREREQ_SYS_H_WINSOCK2.
11698
11699 2011-06-29  Eric Blake  <eblake@redhat.com>
11700
11701         pipe2: fix C89 compile problem
11702         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11703         Reported by Bruno Haible.
11704
11705         pipe, pipe2: don't corrupt fd on error
11706         * lib/pipe.c (pipe): Leave fd unchanged on error.
11707         * lib/pipe2.c (pipe2): Likewise.
11708         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11709         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11710
11711 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11712
11713         mmap-anon: do not use regular expressions inadvertently
11714         * m4/mmap-anon.m4: Remove trailing period from strings sought
11715         in the output.
11716
11717 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11718
11719         nanosleep: fix integer overflow problem
11720         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11721         arithmetic wraps around on overflow.
11722
11723         nanosleep: simplify carrying
11724         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11725         first call to the underyling nanosleep, not for the last one.
11726         This doesn't fix any bugs, but it simplifies the computation of
11727         the remaining delay.  Found while auditing integer overflow issues.
11728
11729         dup2: remove test for existence of fcntl
11730         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11731         "#if HAVE_FCNTL", in the configure-time test program.
11732         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11733         and therefore speeds up "configure" a bit.  Found while
11734         adding the dup2 module to Emacs.
11735
11736 2011-06-24  Eric Blake  <eblake@redhat.com>
11737
11738         maint.mk: enhance useless header checks
11739         * top/maint.mk (_sc_header_without_use): Check both include
11740         styles.
11741         (sc_prohibit_assert_without_use)
11742         (sc_prohibit_close_stream_without_use)
11743         (sc_prohibit_getopt_without_use)
11744         (sc_prohibit_quotearg_without_use)
11745         (sc_prohibit_quote_without_use)
11746         (sc_prohibit_long_options_without_use)
11747         (sc_prohibit_inttostr_without_use)
11748         (sc_prohibit_ignore_value_without_use)
11749         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11750         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11751         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11752         (sc_prohibit_hash_pjw_without_use)
11753         (sc_prohibit_safe_read_without_use)
11754         (sc_prohibit_argmatch_without_use)
11755         (sc_prohibit_canonicalize_without_use)
11756         (sc_prohibit_root_dev_ino_without_use)
11757         (sc_prohibit_openat_without_use)
11758         (sc_prohibit_c_ctype_without_use)
11759         (sc_prohibit_signal_without_use)
11760         (sc_prohibit_stdio--_without_use)
11761         (sc_prohibit_stdio-safer_without_use)
11762         (sc_prohibit_strings_without_use)
11763         (sc_prohibit_intprops_without_use)
11764         (sc_prohibit_stddef_without_use)
11765         (sc_prohibit_xfreopen_without_use): Update clients.
11766
11767 2011-06-24  Jim Meyering  <meyering@redhat.com>
11768
11769         syntax-check: keep one maint.mk rule in sync with its header
11770         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11771         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11772         I prefer to avoid temporary files here, so use <(...), but that
11773         is not supported by /bin/sh, so...
11774         (SHELL): Define to /bin/bash.
11775
11776 2011-06-24  Eric Blake  <eblake@redhat.com>
11777
11778         maint.mk: update sc_prohibit_intprops_without_use
11779         * top/maint.mk (_intprops_names): Match recent changes.
11780
11781 2011-06-24  Bruno Haible  <bruno@clisp.org>
11782
11783         strerror-override: No-op tweak.
11784         * lib/strerror-override.h (strerror_override): Reorder conditions,
11785         for consistency with lib/strerror-override.c.
11786
11787 2011-06-23  Eric Blake  <eblake@redhat.com>
11788
11789         maint.mk: test further PATH_MAX issues
11790         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11791         (sc_prohibit_path_max_allocation): ...and also test alloca.
11792         Suggested by Jim Meyering.
11793
11794 2011-06-22  Eric Blake  <eblake@redhat.com>
11795
11796         maint.mk: add syntax-check to avoid char[PATH_MAX]
11797         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11798
11799         stat: be robust to PATH_MAX definition
11800         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11801         * modules/stat (Depends-on): Add verify.
11802
11803         link: work around IRIX bug
11804         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11805         * lib/link.c (rpl_link): Work around it.
11806         * tests/test-link.h (test_link): Enhance test.
11807         * doc/posix-functions/link.texi (link): Document the bug.
11808
11809         getopt: silence clang warning
11810         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11811         dereference.
11812         Reported by Gustavo Martin Domato.
11813
11814 2011-06-22  Jim Meyering  <meyering@redhat.com>
11815
11816         bootstrap: do not insert a blank line into each .gitignore file
11817         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11818
11819 2011-06-21  Eric Blake  <eblake@redhat.com>
11820
11821         perror: test for output mismatch
11822         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11823         perror on IRIX.
11824
11825         strerror_r: fix OpenBSD behavior on out-of-range
11826         * lib/strerror_r.c (strerror_r): Always use maximal string.
11827         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11828
11829         strerror_r: fix OpenBSD behavior on 0
11830         * lib/strerror-override.c (strerror_override): Also override 0
11831         when needed.
11832         * lib/strerror-override.h (strerror_override): Likewise.
11833         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11834         earlier.
11835         * lib/strerror_r.c (strerror_r): Likewise.
11836         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11837         behavior...
11838         (gl_FUNC_STRERROR_0): ...into new macro.
11839         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11840         is overridden.
11841         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11842         * modules/strerror-override (Files): Add strerror.m4.
11843         (configure.ac): Also provide override for 0 when needed.
11844         * doc/posix-functions/strerror.texi (strerror): Document this.
11845         * doc/posix-functions/perror.texi (perror): Likewise.
11846
11847         perror: adjust array size
11848         * modules/perror (Depends-on): Add strerror-override.
11849         * lib/perror.c (perror): Use it to avoid magic number.
11850
11851         strerror-override: reduce size
11852         * lib/strerror-override.c (strerror_override): Use fewer lines.
11853
11854 2011-06-20  Bruno Haible  <bruno@clisp.org>
11855
11856         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11857         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11858
11859 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11860
11861         alloca: port to compilers that can optimize like GCC 4.6.0
11862         * lib/alloca.c (find_stack_direction): New signature, taken from
11863         Autoconf git.  This works with GCC 4.6.0.  This code should never
11864         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11865         be used with other compilers that optimize as well as GCC 4.6.0 does.
11866         (alloca): Adjust to new signature.
11867         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11868         New macro, which patches Autoconf in a similar way.
11869
11870         c-stack: stop worrying about stack direction
11871         * lib/c-stack.c (find_stack_direction): Remove.
11872         (segv_handler): Don't worry about stack direction growth, as it's
11873         too much of a pain to configure this correctly, given how compilers
11874         are optimizing-away our stack-growth detection code.  Instead, assume
11875         that any access to just before or just after the stack is OK.
11876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11877         Don't require AC_FUNC_ALLOCA; no longer needed.
11878
11879 2011-06-20  Eric Blake  <eblake@redhat.com>
11880
11881         test-stat: don't allocate PATH_MAX bytes
11882         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11883         PATH_MAX-sized buffer.
11884         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11885         * modules/stat-tests (Depends-on): Likewise.
11886         * tests/test-fstatat.c (includes): Drop pathmax.h.
11887         * tests/test-stat.c (includes): Likewise.
11888         Reported by Bruno Haible.
11889
11890 2011-06-20  Bruno Haible  <bruno@clisp.org>
11891
11892         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11893         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11894         * lib/float.c: New file.
11895         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11896         REPLACE_FLOAT_LDBL.
11897         * modules/float (Files): Add lib/float.c.
11898         (configure.ac): Invoke AC_LIBOBJ.
11899         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11900
11901 2011-06-20  Bruno Haible  <bruno@clisp.org>
11902
11903         Tests for module 'float'.
11904         * modules/float-tests: New file.
11905         * tests/test-float.c: New file.
11906
11907 2011-06-19  Bruno Haible  <bruno@clisp.org>
11908
11909         isinf: Coding style.
11910         * lib/isinf.c: Use GNU coding style.
11911
11912 2011-06-19  Bruno Haible  <bruno@clisp.org>
11913
11914         linkat test: Avoid test failure on AIX 7.1.
11915         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11916         * tests/test-link.h (test_link): Likewise.
11917
11918 2011-06-19  Bruno Haible  <bruno@clisp.org>
11919
11920         pread test: Avoid test failure on OpenBSD 4.9.
11921         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11922
11923 2011-06-19  Bruno Haible  <bruno@clisp.org>
11924
11925         sprintf-posix: Fix test failure on AIX 7.1.
11926         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11927         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11928         on AIX.
11929         * doc/posix-functions/fprintf.texi: Likewise.
11930         * doc/posix-functions/printf.texi: Likewise.
11931         * doc/posix-functions/snprintf.texi: Likewise.
11932         * doc/posix-functions/sprintf.texi: Likewise.
11933         * doc/posix-functions/vdprintf.texi: Likewise.
11934         * doc/posix-functions/vfprintf.texi: Likewise.
11935         * doc/posix-functions/vprintf.texi: Likewise.
11936         * doc/posix-functions/vsnprintf.texi: Likewise.
11937         * doc/posix-functions/vsprintf.texi: Likewise.
11938
11939 2011-06-19  Bruno Haible  <bruno@clisp.org>
11940
11941         roundl-ieee: Fix test failure on AIX 7.1.
11942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11943         * doc/posix-functions/roundl.texi: Mention problem with negative
11944         arguments.
11945
11946 2011-06-19  Bruno Haible  <bruno@clisp.org>
11947
11948         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11949         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11950         * doc/posix-functions/round.texi: Mention problem with negative
11951         arguments.
11952         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11953
11954 2011-06-19  Bruno Haible  <bruno@clisp.org>
11955
11956         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11958         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11959         * doc/posix-functions/roundf.texi: Mention problem with negative
11960         arguments.
11961         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11962
11963 2011-06-19  Bruno Haible  <bruno@clisp.org>
11964
11965         ceilf-ieee: Work around bug on MacOS X 10.5.
11966         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11967
11968         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11969         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11970         IEEE compliant, avoid compiler optimizations.
11971         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11972         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11973         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11974         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11975         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11976         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11979         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11981
11982 2011-06-19  Bruno Haible  <bruno@clisp.org>
11983
11984         ceilf-ieee: Work around bug on AIX 7.1.
11985         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11986         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11987
11988 2011-06-19  Bruno Haible  <bruno@clisp.org>
11989
11990         ceil-ieee: Work around bug on AIX 7.1.
11991         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11992         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11993
11994 2011-06-18  Bruno Haible  <bruno@clisp.org>
11995
11996         fsync test: Avoid test failure on MacOS X and AIX.
11997         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11998         EINVAL.
11999
12000 2011-06-18  Bruno Haible  <bruno@clisp.org>
12001
12002         openat, fdopendir tests: Fix link errors.
12003         * modules/openat-tests (Depends-on): Add progname.
12004         * modules/fdopendir-tests (Depends-on): Likewise.
12005         * tests/test-fchownat.c: Include progname.h.
12006         (main): Call set_program_name.
12007         * tests/test-fstatat.c: Include progname.h.
12008         (main): Call set_program_name.
12009         * tests/test-mkdirat.c: Include progname.h.
12010         (main): Call set_program_name.
12011         * tests/test-openat.c: Include progname.h.
12012         (main): Call set_program_name.
12013         * tests/test-unlinkat.c: Include progname.h.
12014         (main): Call set_program_name.
12015         * tests/test-fdopendir.c: Include progname.h.
12016         (main): Call set_program_name.
12017
12018 2011-06-18  Bruno Haible  <bruno@clisp.org>
12019
12020         Doc update.
12021         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12022         HP-UX.
12023         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12024
12025 2011-06-18  Bruno Haible  <bruno@clisp.org>
12026
12027         getcwd tests: Avoid compilation error on HP-UX 11.31.
12028         * modules/getcwd-tests (Depends-on): Add pathmax.
12029         * tests/test-getcwd.c: Include pathmax.h.
12030
12031 2011-06-18  Bruno Haible  <bruno@clisp.org>
12032
12033         isfinite, isinf: Fix link error on AIX 6 and 7.
12034         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12035         needed, also test the macro with a 'float' argument.
12036         * m4/isinf.m4 (gl_ISINF): Likewise.
12037
12038 2011-06-18  Bruno Haible  <bruno@clisp.org>
12039
12040         getloadavg: Don't clobber LIBS. Regression from previous commit.
12041         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12042         AC_CHECK_LIB from here...
12043         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12044         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12045         gl_func_getloadavg_done.
12046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12047
12048 2011-06-18  Bruno Haible  <bruno@clisp.org>
12049
12050         clean-temp: Improve documentation.
12051         * lib/clean-temp.h: Explain better how to use this module.
12052         Reported by John Darrington <john@darrington.wattle.id.au>.
12053
12054 2011-06-17  Bruno Haible  <bruno@clisp.org>
12055
12056         pread, pwrite: Avoid cc warning on AIX.
12057         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12058         (pwrite): Likewise.
12059
12060 2011-06-17  Bruno Haible  <bruno@clisp.org>
12061
12062         spawn-pipe tests: Fix link error.
12063         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12065
12066 2011-06-17  Bruno Haible  <bruno@clisp.org>
12067
12068         Tests: Remove unnecessary dependency.
12069         * modules/canonicalize-tests (Depends-on): Remove progname.
12070         * modules/chown-tests (Depends-on): Likewise.
12071         * modules/dirname-tests (Depends-on): Likewise.
12072         * modules/fdopendir-tests (Depends-on): Likewise.
12073         * modules/fdutimensat-tests (Depends-on): Likewise.
12074         * modules/hash-tests (Depends-on): Likewise.
12075         * modules/lchown-tests (Depends-on): Likewise.
12076         * modules/linkat-tests (Depends-on): Likewise.
12077         * modules/renameat-tests (Depends-on): Likewise.
12078         * modules/spawn-pipe-tests (Depends-on): Likewise.
12079         * modules/utimensat-tests (Depends-on): Likewise.
12080
12081 2011-06-17  Bruno Haible  <bruno@clisp.org>
12082
12083         spawn-pipe tests: Fix link error.
12084         * tests/test-spawn-pipe-child.c: Undefine fflush.
12085
12086 2011-06-17  Bruno Haible  <bruno@clisp.org>
12087
12088         Fix tests link errors.
12089         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12090         * modules/chown-tests (Makefile.am): Don't link test-chown with
12091         LIBINTL.
12092         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12093         LIBINTL.
12094         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12095         LIBINTL.
12096         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12097         LIBINTL.
12098
12099 2011-06-16  Bruno Haible  <bruno@clisp.org>
12100
12101         crypto/gc-sha1: Fix recent regression.
12102         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12103         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12104
12105         crypto/gc-md5: Fix recent regression.
12106         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12107
12108         crypto/gc-md4: Fix recent regression.
12109         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12110         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12111
12112         crypto/gc-arctwo: Fix recent regression.
12113         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12114         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12115
12116         crypto/gc-rijndael: Fix recent regression.
12117         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12118         (configure.ac): Invoke AC_LIBOBJ here.
12119         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12121
12122         crypto/gc-hmac-sha1: Fix recent regression.
12123         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12124         (configure.ac): Invoke AC_LIBOBJ here.
12125         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12127
12128         crypto/gc-hmac-md5: Fix recent regression.
12129         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12130         (configure.ac): Invoke AC_LIBOBJ here.
12131         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12133
12134         crypto/gc-des: Fix recent regression.
12135         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12136         (configure.ac): Invoke AC_LIBOBJ here.
12137         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12139
12140         crypto/gc-arcfour: Fix recent regression.
12141         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12142         (configure.ac): Invoke AC_LIBOBJ here.
12143         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12145
12146 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12147
12148         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12149         After the 2011-05-21 change, this macro requires
12150         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12151         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12152
12153 2011-06-16  Bruno Haible  <bruno@clisp.org>
12154
12155         fprintftime: Move AC_LIBOBJ invocations to module description.
12156         * m4/fprintftime.m4: Remove file.
12157         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12158         (configure.ac): Remove gl_FPRINTFTIME call.
12159         (Makefile.am): Augment lib_SOURCES.
12160         Reported by Jim Meyering.
12161
12162 2011-06-16  Bruno Haible  <bruno@clisp.org>
12163
12164         tmpfile-safer: Finish 2011-05-23 commit.
12165         * m4/stdio-safer.m4: Really remove file.
12166         Reported by Jim Meyering.
12167
12168 2011-06-16  Bruno Haible  <bruno@clisp.org>
12169
12170         syntax-check: Fix typo.
12171         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12172         printf-posix.m4.
12173         Reported by Jim Meyering.
12174
12175 2011-06-13  Jim Meyering  <meyering@redhat.com>
12176
12177         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12178         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12179
12180 2011-05-23  Bruno Haible  <bruno@clisp.org>
12181
12182         yesno: Move AC_LIBOBJ invocations to module description.
12183         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12184         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12185
12186 2011-05-23  Bruno Haible  <bruno@clisp.org>
12187
12188         xstrtol: Move AC_LIBOBJ invocations to module description.
12189         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12190         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12191
12192 2011-05-23  Bruno Haible  <bruno@clisp.org>
12193
12194         xstrtold: Move AC_LIBOBJ invocations to module description.
12195         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12196         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12197
12198 2011-05-23  Bruno Haible  <bruno@clisp.org>
12199
12200         xstrtod: Move AC_LIBOBJ invocations to module description.
12201         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12202         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12203
12204 2011-05-23  Bruno Haible  <bruno@clisp.org>
12205
12206         xnanosleep: Move AC_LIBOBJ invocations to module description.
12207         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12208         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12209
12210 2011-05-23  Bruno Haible  <bruno@clisp.org>
12211
12212         xgetcwd: Move AC_LIBOBJ invocations to module description.
12213         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12214         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12215
12216 2011-05-23  Bruno Haible  <bruno@clisp.org>
12217
12218         xalloc: Move AC_LIBOBJ invocations to module description.
12219         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12220         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12221
12222 2011-05-23  Bruno Haible  <bruno@clisp.org>
12223
12224         write-any-file: Move AC_LIBOBJ invocations to module description.
12225         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12226         invocation.
12227         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12228
12229 2011-05-23  Bruno Haible  <bruno@clisp.org>
12230
12231         utimens: Move AC_LIBOBJ invocations to module description.
12232         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12233         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12234
12235 2011-05-23  Bruno Haible  <bruno@clisp.org>
12236
12237         utimecmp: Move AC_LIBOBJ invocations to module description.
12238         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12239         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12240
12241 2011-05-23  Bruno Haible  <bruno@clisp.org>
12242
12243         userspec: Move AC_LIBOBJ invocations to module description.
12244         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12245         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12246
12247 2011-05-23  Bruno Haible  <bruno@clisp.org>
12248
12249         unlinkdir: Move AC_LIBOBJ invocations to module description.
12250         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12251         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12252
12253 2011-05-23  Bruno Haible  <bruno@clisp.org>
12254
12255         unistd-safer: Move AC_LIBOBJ invocations to module description.
12256         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12257         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12258
12259 2011-05-23  Bruno Haible  <bruno@clisp.org>
12260
12261         tempname: Move AC_LIBOBJ invocations to module description.
12262         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12263         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12264
12265 2011-05-23  Bruno Haible  <bruno@clisp.org>
12266
12267         strftime: Move AC_LIBOBJ invocations to module description.
12268         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12269         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12270
12271 2011-05-23  Bruno Haible  <bruno@clisp.org>
12272
12273         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12274         * m4/stdlib-safer.m4: Remove file.
12275         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12276         (configure.ac): Remove gl_STDLIB_SAFER call.
12277         (Makefile.am): Augment lib_SOURCES.
12278
12279 2011-05-23  Bruno Haible  <bruno@clisp.org>
12280
12281         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12282         * m4/stdio-safer.m4: Remove file.
12283         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12284         (configure.ac): Remove gl_TMPFILE_SAFER call.
12285         (Makefile.am): Augment lib_SOURCES.
12286
12287 2011-05-23  Bruno Haible  <bruno@clisp.org>
12288
12289         popen-safer: Move AC_LIBOBJ invocations to module description.
12290         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12291         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12292         (configure.ac): Remove gl_POPEN_SAFER call.
12293         (Makefile.am): Augment lib_SOURCES.
12294
12295 2011-05-23  Bruno Haible  <bruno@clisp.org>
12296
12297         freopen-safer: Move AC_LIBOBJ invocations to module description.
12298         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12299         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12300         (configure.ac): Remove gl_FREOPEN_SAFER call.
12301         (Makefile.am): Augment lib_SOURCES.
12302
12303 2011-05-23  Bruno Haible  <bruno@clisp.org>
12304
12305         fopen-safer: Move AC_LIBOBJ invocations to module description.
12306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12307         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12308         (configure.ac): Remove gl_FOPEN_SAFER call.
12309         (Makefile.am): Augment lib_SOURCES.
12310
12311 2011-05-23  Bruno Haible  <bruno@clisp.org>
12312
12313         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12314         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12315         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12316
12317 2011-05-23  Bruno Haible  <bruno@clisp.org>
12318
12319         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12320         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12321         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12322
12323 2011-05-23  Bruno Haible  <bruno@clisp.org>
12324
12325         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12326         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12327         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12328
12329 2011-05-23  Bruno Haible  <bruno@clisp.org>
12330
12331         settime: Move AC_LIBOBJ invocations to module description.
12332         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12333         * modules/settime (Makefile.am): Augment lib_SOURCES.
12334
12335 2011-05-23  Bruno Haible  <bruno@clisp.org>
12336
12337         savedir: Move AC_LIBOBJ invocations to module description.
12338         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12339         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12340
12341 2011-05-23  Bruno Haible  <bruno@clisp.org>
12342
12343         save-cwd: Move AC_LIBOBJ invocations to module description.
12344         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12345         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12346
12347 2011-05-23  Bruno Haible  <bruno@clisp.org>
12348
12349         same: Move AC_LIBOBJ invocations to module description.
12350         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12351         * modules/same (Makefile.am): Augment lib_SOURCES.
12352
12353 2011-05-23  Bruno Haible  <bruno@clisp.org>
12354
12355         safe-write: Move AC_LIBOBJ invocations to module description.
12356         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12357         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12358         instead of gl_SAFE_WRITE.
12359         (Makefile.am): Augment lib_SOURCES.
12360
12361 2011-05-23  Bruno Haible  <bruno@clisp.org>
12362
12363         safe-read: Move AC_LIBOBJ invocations to module description.
12364         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12365         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12366         of gl_SAFE_READ.
12367         (Makefile.am): Augment lib_SOURCES.
12368
12369 2011-05-23  Bruno Haible  <bruno@clisp.org>
12370
12371         safe-alloc: Move AC_LIBOBJ invocations to module description.
12372         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12373         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12374
12375 2011-05-23  Bruno Haible  <bruno@clisp.org>
12376
12377         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12378         * m4/rijndael.m4: Remove file.
12379         * modules/crypto/rijndael (Files): Remove it.
12380         (configure.ac): Remove gl_RIJNDAEL call.
12381         (Makefile.am): Augment lib_SOURCES.
12382
12383 2011-05-23  Bruno Haible  <bruno@clisp.org>
12384
12385         readtokens: Move AC_LIBOBJ invocations to module description.
12386         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12387         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12388
12389 2011-05-23  Bruno Haible  <bruno@clisp.org>
12390
12391         read-file: Move AC_LIBOBJ invocations to module description.
12392         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12393         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12394         of gl_FUNC_READ_FILE.
12395         (Makefile.am): Augment lib_SOURCES.
12396
12397 2011-05-23  Bruno Haible  <bruno@clisp.org>
12398
12399         quotearg: Move AC_LIBOBJ invocations to module description.
12400         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12401         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12402
12403 2011-05-23  Bruno Haible  <bruno@clisp.org>
12404
12405         quote: Move AC_LIBOBJ invocations to module description.
12406         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12407         * modules/quote (Makefile.am): Augment lib_SOURCES.
12408
12409 2011-05-23  Bruno Haible  <bruno@clisp.org>
12410
12411         posixver: Move AC_LIBOBJ invocations to module description.
12412         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12413         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12414
12415 2011-05-23  Bruno Haible  <bruno@clisp.org>
12416
12417         posixtm: Move AC_LIBOBJ invocations to module description.
12418         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12419         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12420
12421 2011-05-23  Bruno Haible  <bruno@clisp.org>
12422
12423         physmem: Move AC_LIBOBJ invocations to module description.
12424         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12425         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12426
12427 2011-05-23  Bruno Haible  <bruno@clisp.org>
12428
12429         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12430         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12431         invocation.
12432         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12433
12434 2011-05-23  Bruno Haible  <bruno@clisp.org>
12435
12436         mpsort: Move AC_LIBOBJ invocations to module description.
12437         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12438         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12439
12440 2011-05-23  Bruno Haible  <bruno@clisp.org>
12441
12442         modechange: Move AC_LIBOBJ invocations to module description.
12443         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12444         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12445
12446 2011-05-23  Bruno Haible  <bruno@clisp.org>
12447
12448         mkdir-p: Move AC_LIBOBJ invocations to module description.
12449         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12450         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12451
12452 2011-05-23  Bruno Haible  <bruno@clisp.org>
12453
12454         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12455         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12456         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12457
12458 2011-05-23  Bruno Haible  <bruno@clisp.org>
12459
12460         mgetgroups: Move AC_LIBOBJ invocations to module description.
12461         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12462         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12463
12464 2011-05-23  Bruno Haible  <bruno@clisp.org>
12465
12466         memxor: Move AC_LIBOBJ invocations to module description.
12467         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12468         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12469
12470 2011-05-23  Bruno Haible  <bruno@clisp.org>
12471
12472         memcoll: Move AC_LIBOBJ invocations to module description.
12473         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12474         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12475
12476 2011-05-23  Bruno Haible  <bruno@clisp.org>
12477
12478         memcasecmp: Move AC_LIBOBJ invocations to module description.
12479         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12480         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12481
12482 2011-05-23  Bruno Haible  <bruno@clisp.org>
12483
12484         crypto/md5: Move AC_LIBOBJ invocations to module description.
12485         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12486         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12487
12488 2011-05-23  Bruno Haible  <bruno@clisp.org>
12489
12490         crypto/md4: Move AC_LIBOBJ invocations to module description.
12491         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12492         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12493
12494 2011-05-23  Bruno Haible  <bruno@clisp.org>
12495
12496         crypto/md2: Move AC_LIBOBJ invocations to module description.
12497         * m4/md2.m4: Remove file.
12498         * modules/crypto/md2 (Files): Remove it.
12499         (configure.ac): Remove gl_MD2 call.
12500         (Makefile.am): Augment lib_SOURCES.
12501
12502 2011-05-23  Bruno Haible  <bruno@clisp.org>
12503
12504         long-options: Move AC_LIBOBJ invocations to module description.
12505         * m4/long-options.m4: Remove file.
12506         * modules/long-options (Files): Remove it.
12507         (configure.ac): Remove gl_LONG_OPTIONS call.
12508         (Makefile.am): Augment lib_SOURCES.
12509
12510 2011-05-23  Bruno Haible  <bruno@clisp.org>
12511
12512         i-ring: Move AC_LIBOBJ invocations to module description.
12513         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12514         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12515
12516 2011-05-23  Bruno Haible  <bruno@clisp.org>
12517
12518         idcache: Move AC_LIBOBJ invocations to module description.
12519         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12520         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12521
12522 2011-05-23  Bruno Haible  <bruno@clisp.org>
12523
12524         human: Move AC_LIBOBJ invocations to module description.
12525         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12526         * modules/human (Makefile.am): Augment lib_SOURCES.
12527
12528 2011-05-23  Bruno Haible  <bruno@clisp.org>
12529
12530         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12531         * m4/hmac-sha1.m4: Remove file.
12532         * modules/crypto/hmac-sha1 (Files): Remove it.
12533         (configure.ac): Remove gl_HMAC_SHA1 call.
12534         (Makefile.am): Augment lib_SOURCES.
12535
12536 2011-05-23  Bruno Haible  <bruno@clisp.org>
12537
12538         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12539         * m4/hmac-md5.m4: Remove file.
12540         * modules/crypto/hmac-md5 (Files): Remove it.
12541         (configure.ac): Remove gl_HMAC_MD5 call.
12542         (Makefile.am): Augment lib_SOURCES.
12543
12544 2011-05-23  Bruno Haible  <bruno@clisp.org>
12545
12546         hash: Move AC_LIBOBJ invocations to module description.
12547         * m4/hash.m4: Remove file.
12548         * modules/hash (Files): Remove it.
12549         (configure.ac): Remove gl_HASH call.
12550         (Makefile.am): Augment lib_SOURCES.
12551
12552 2011-05-23  Bruno Haible  <bruno@clisp.org>
12553
12554         hard-locale: Move AC_LIBOBJ invocations to module description.
12555         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12556         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12557
12558 2011-05-23  Bruno Haible  <bruno@clisp.org>
12559
12560         getugroups: Move AC_LIBOBJ invocations to module description.
12561         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12562         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12563
12564 2011-05-23  Bruno Haible  <bruno@clisp.org>
12565
12566         gettime: Move AC_LIBOBJ invocations to module description.
12567         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12568         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12569
12570 2011-05-23  Bruno Haible  <bruno@clisp.org>
12571
12572         getndelim2: Move AC_LIBOBJ invocations to module description.
12573         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12574         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12575
12576 2011-05-23  Bruno Haible  <bruno@clisp.org>
12577
12578         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12579         * m4/gc-pbkdf2-sha1.m4: Remove file.
12580         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12581         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12582         (Makefile.am): Augment lib_SOURCES.
12583
12584 2011-05-23  Bruno Haible  <bruno@clisp.org>
12585
12586         fts: Move AC_LIBOBJ invocations to module description.
12587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12588         * modules/fts (configure.ac): ... to here.
12589
12590 2011-05-23  Bruno Haible  <bruno@clisp.org>
12591
12592         file-type: Move AC_LIBOBJ invocations to module description.
12593         * m4/file-type.m4: Remove file.
12594         * modules/file-type (Files): Remove it.
12595         (configure.ac): Remove gl_FILE_TYPE call.
12596         (Makefile.am): Augment lib_SOURCES.
12597
12598 2011-05-23  Bruno Haible  <bruno@clisp.org>
12599
12600         filenamecat*: Respect rules for use of AC_LIBOBJ.
12601         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12602         Remove AC_LIBOBJ invocation.
12603         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12604         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12605
12606 2011-05-23  Bruno Haible  <bruno@clisp.org>
12607
12608         filemode: Move AC_LIBOBJ invocations to module description.
12609         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12610         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12611
12612 2011-05-23  Bruno Haible  <bruno@clisp.org>
12613
12614         openat-safer: Move AC_LIBOBJ invocations to module description.
12615         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12616         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12617
12618 2011-05-23  Bruno Haible  <bruno@clisp.org>
12619
12620         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12621         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12622         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12623
12624 2011-05-23  Bruno Haible  <bruno@clisp.org>
12625
12626         exclude: Move AC_LIBOBJ invocations to module description.
12627         * m4/exclude.m4: Remove file.
12628         * modules/exclude (Files): Remove it.
12629         (configure.ac): Remove gl_EXCLUDE call.
12630         (Makefile.am): Augment lib_SOURCES.
12631
12632 2011-05-23  Bruno Haible  <bruno@clisp.org>
12633
12634         dirname*: Respect rules for use of AC_LIBOBJ.
12635         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12636         invocations.
12637         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12638         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12639
12640 2011-05-23  Bruno Haible  <bruno@clisp.org>
12641
12642         dirent-safer: Move AC_LIBOBJ invocations to module description.
12643         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12644         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12645
12646 2011-05-23  Bruno Haible  <bruno@clisp.org>
12647
12648         crypto/des: Move AC_LIBOBJ invocations to module description.
12649         * m4/des.m4: Remove file.
12650         * modules/crypto/des (Files): Remove it.
12651         (configure.ac): Remove gl_DES call.
12652         (Makefile.am): Augment lib_SOURCES.
12653
12654 2011-05-23  Bruno Haible  <bruno@clisp.org>
12655
12656         cycle-check: Move AC_LIBOBJ invocations to module description.
12657         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12658         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12659
12660 2011-05-23  Bruno Haible  <bruno@clisp.org>
12661
12662         c-strtold: Move AC_LIBOBJ invocations to module description.
12663         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12664         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12665
12666 2011-05-23  Bruno Haible  <bruno@clisp.org>
12667
12668         c-strtod: Move AC_LIBOBJ invocations to module description.
12669         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12670         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12671
12672 2011-05-23  Bruno Haible  <bruno@clisp.org>
12673
12674         crc: Move AC_LIBOBJ invocations to module description.
12675         * m4/crc.m4: Remove file.
12676         * modules/crc (Files): Remove it.
12677         (configure.ac): Remove gl_CRC call.
12678         (Makefile.am): Augment lib_SOURCES.
12679
12680 2011-05-23  Bruno Haible  <bruno@clisp.org>
12681
12682         close-stream: Move AC_LIBOBJ invocations to module description.
12683         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12684         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12685
12686 2011-05-23  Bruno Haible  <bruno@clisp.org>
12687
12688         closeout: Move AC_LIBOBJ invocations to module description.
12689         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12690         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12691
12692 2011-05-23  Bruno Haible  <bruno@clisp.org>
12693
12694         closein: Move AC_LIBOBJ invocations to module description.
12695         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12696         * modules/closein (Makefile.am): Augment lib_SOURCES.
12697
12698 2011-05-23  Bruno Haible  <bruno@clisp.org>
12699
12700         cloexec: Move AC_LIBOBJ invocations to module description.
12701         * m4/cloexec.m4: Remove file.
12702         * modules/cloexec (Files): Remove it.
12703         (configure.ac): Remove gl_CLOEXEC call.
12704         (Makefile.am): Augment lib_SOURCES.
12705
12706 2011-05-23  Bruno Haible  <bruno@clisp.org>
12707
12708         check-version: Move AC_LIBOBJ invocations to module description.
12709         * m4/check-version.m4: Remove file.
12710         * modules/check-version (Files): Remove it.
12711         (configure.ac): Remove gl_CHECK_VERSION call.
12712         (Makefile.am): Augment lib_SOURCES.
12713
12714 2011-05-23  Bruno Haible  <bruno@clisp.org>
12715
12716         chdir-safer: Move AC_LIBOBJ invocations to module description.
12717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12718         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12719
12720 2011-05-23  Bruno Haible  <bruno@clisp.org>
12721
12722         canonicalize: Move AC_LIBOBJ invocations to module description.
12723         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12724         AC_LIBOBJ invocation.
12725         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12726
12727 2011-05-23  Bruno Haible  <bruno@clisp.org>
12728
12729         canon-host: Move AC_LIBOBJ invocations to module description.
12730         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12731         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12732         instead of gl_CANON_HOST.
12733         (Makefile.am): Augment lib_SOURCES.
12734
12735 2011-05-23  Bruno Haible  <bruno@clisp.org>
12736
12737         backupfile: Move AC_LIBOBJ invocations to module description.
12738         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12739         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12740
12741 2011-05-23  Bruno Haible  <bruno@clisp.org>
12742
12743         argmatch: Move AC_LIBOBJ invocations to module description.
12744         * m4/argmatch.m4: Remove file.
12745         * modules/argmatch (Files): Remove it.
12746         (configure.ac): Remove gl_ARGMATCH call.
12747         (Makefile.am): Augment lib_SOURCES.
12748
12749 2011-05-23  Bruno Haible  <bruno@clisp.org>
12750
12751         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12752         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12753         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12754
12755 2011-05-23  Bruno Haible  <bruno@clisp.org>
12756
12757         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12758         * m4/arcfour.m4: Remove file.
12759         * modules/crypto/arcfour (Files): Remove it.
12760         (configure.ac): Remove gl_ARCFOUR call.
12761         (Makefile.am): Augment lib_SOURCES.
12762
12763 2011-05-22  Bruno Haible  <bruno@clisp.org>
12764
12765         write: Move AC_LIBOBJ invocations to module description.
12766         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12767         * modules/write (configure.ac): ... to here.
12768
12769 2011-05-22  Bruno Haible  <bruno@clisp.org>
12770
12771         wmemset: Move AC_LIBOBJ invocations to module description.
12772         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12773         here...
12774         * modules/wmemset (configure.ac): ... to here.
12775
12776 2011-05-22  Bruno Haible  <bruno@clisp.org>
12777
12778         wmemmove: Move AC_LIBOBJ invocations to module description.
12779         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12780         here...
12781         * modules/wmemmove (configure.ac): ... to here.
12782
12783 2011-05-22  Bruno Haible  <bruno@clisp.org>
12784
12785         wmemcpy: Move AC_LIBOBJ invocations to module description.
12786         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12787         here...
12788         * modules/wmemcpy (configure.ac): ... to here.
12789
12790 2011-05-22  Bruno Haible  <bruno@clisp.org>
12791
12792         wmemcmp: Move AC_LIBOBJ invocations to module description.
12793         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12794         here...
12795         * modules/wmemcmp (configure.ac): ... to here.
12796
12797 2011-05-22  Bruno Haible  <bruno@clisp.org>
12798
12799         wmemchr: Move AC_LIBOBJ invocations to module description.
12800         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12801         here...
12802         * modules/wmemchr (configure.ac): ... to here.
12803
12804 2011-05-22  Bruno Haible  <bruno@clisp.org>
12805
12806         wcswidth: Move AC_LIBOBJ invocations to module description.
12807         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12808         here...
12809         * modules/wcswidth (configure.ac): ... to here.
12810
12811 2011-05-22  Bruno Haible  <bruno@clisp.org>
12812
12813         wcwidth: Respect rules for use of AC_LIBOBJ.
12814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12815         invocation from here...
12816         * modules/wcwidth (configure.ac): ... to here.
12817         (Depends-on): Update conditions.
12818
12819 2011-05-22  Bruno Haible  <bruno@clisp.org>
12820
12821         wctype: Move AC_LIBOBJ invocations to module description.
12822         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12823         invocation from here...
12824         * modules/wctype (configure.ac): ... to here.
12825         (Depends-on): Update conditions.
12826
12827 2011-05-22  Bruno Haible  <bruno@clisp.org>
12828
12829         wctrans: Move AC_LIBOBJ invocations to module description.
12830         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12831         invocation from here...
12832         * modules/wctrans (configure.ac): ... to here.
12833
12834 2011-05-22  Bruno Haible  <bruno@clisp.org>
12835
12836         wctomb: Move AC_LIBOBJ invocations to module description.
12837         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12838         invocations from here...
12839         * modules/wctomb (configure.ac): ... to here.
12840
12841 2011-05-22  Bruno Haible  <bruno@clisp.org>
12842
12843         wctob: Move AC_LIBOBJ invocations to module description.
12844         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12845         gl_PREREQ_WCTOB invocations from here...
12846         * modules/wctob (configure.ac): ... to here.
12847         (Depends-on): Update conditions.
12848
12849 2011-05-22  Bruno Haible  <bruno@clisp.org>
12850
12851         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12852         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12853         here...
12854         * modules/wcsxfrm (configure.ac): ... to here.
12855
12856 2011-05-22  Bruno Haible  <bruno@clisp.org>
12857
12858         wcstok: Move AC_LIBOBJ invocations to module description.
12859         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12860         * modules/wcstok (configure.ac): ... to here.
12861
12862 2011-05-22  Bruno Haible  <bruno@clisp.org>
12863
12864         wcsstr: Move AC_LIBOBJ invocations to module description.
12865         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12866         * modules/wcsstr (configure.ac): ... to here.
12867
12868 2011-05-22  Bruno Haible  <bruno@clisp.org>
12869
12870         wcsspn: Move AC_LIBOBJ invocations to module description.
12871         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12872         * modules/wcsspn (configure.ac): ... to here.
12873
12874 2011-05-22  Bruno Haible  <bruno@clisp.org>
12875
12876         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12877         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12878         gl_PREREQ_WCSRTOMBS invocations from here...
12879         * modules/wcsrtombs (configure.ac): ... to here.
12880
12881 2011-05-22  Bruno Haible  <bruno@clisp.org>
12882
12883         wcsrchr: Move AC_LIBOBJ invocations to module description.
12884         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12885         here...
12886         * modules/wcsrchr (configure.ac): ... to here.
12887
12888 2011-05-22  Bruno Haible  <bruno@clisp.org>
12889
12890         wcspbrk: Move AC_LIBOBJ invocations to module description.
12891         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12892         here...
12893         * modules/wcspbrk (configure.ac): ... to here.
12894
12895 2011-05-22  Bruno Haible  <bruno@clisp.org>
12896
12897         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12898         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12899         gl_PREREQ_WCSNRTOMBS invocations from here...
12900         * modules/wcsnrtombs (configure.ac): ... to here.
12901
12902 2011-05-22  Bruno Haible  <bruno@clisp.org>
12903
12904         wcsnlen: Move AC_LIBOBJ invocations to module description.
12905         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12906         here...
12907         * modules/wcsnlen (configure.ac): ... to here.
12908
12909 2011-05-22  Bruno Haible  <bruno@clisp.org>
12910
12911         wcsncpy: Move AC_LIBOBJ invocations to module description.
12912         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12913         here...
12914         * modules/wcsncpy (configure.ac): ... to here.
12915
12916 2011-05-22  Bruno Haible  <bruno@clisp.org>
12917
12918         wcsncmp: Move AC_LIBOBJ invocations to module description.
12919         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12920         here...
12921         * modules/wcsncmp (configure.ac): ... to here.
12922
12923 2011-05-22  Bruno Haible  <bruno@clisp.org>
12924
12925         wcsncat: Move AC_LIBOBJ invocations to module description.
12926         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12927         here...
12928         * modules/wcsncat (configure.ac): ... to here.
12929
12930 2011-05-22  Bruno Haible  <bruno@clisp.org>
12931
12932         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12933         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12934         from here...
12935         * modules/wcsncasecmp (configure.ac): ... to here.
12936
12937 2011-05-22  Bruno Haible  <bruno@clisp.org>
12938
12939         wcslen: Move AC_LIBOBJ invocations to module description.
12940         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12941         * modules/wcslen (configure.ac): ... to here.
12942
12943 2011-05-22  Bruno Haible  <bruno@clisp.org>
12944
12945         wcsdup: Move AC_LIBOBJ invocations to module description.
12946         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12947         * modules/wcsdup (configure.ac): ... to here.
12948
12949 2011-05-22  Bruno Haible  <bruno@clisp.org>
12950
12951         wcscspn: Move AC_LIBOBJ invocations to module description.
12952         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12953         here...
12954         * modules/wcscspn (configure.ac): ... to here.
12955
12956 2011-05-22  Bruno Haible  <bruno@clisp.org>
12957
12958         wcscpy: Move AC_LIBOBJ invocations to module description.
12959         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12960         * modules/wcscpy (configure.ac): ... to here.
12961
12962 2011-05-22  Bruno Haible  <bruno@clisp.org>
12963
12964         wcscoll: Move AC_LIBOBJ invocations to module description.
12965         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12966         here...
12967         * modules/wcscoll (configure.ac): ... to here.
12968
12969 2011-05-22  Bruno Haible  <bruno@clisp.org>
12970
12971         wcscmp: Move AC_LIBOBJ invocations to module description.
12972         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12973         * modules/wcscmp (configure.ac): ... to here.
12974
12975 2011-05-22  Bruno Haible  <bruno@clisp.org>
12976
12977         wcschr: Move AC_LIBOBJ invocations to module description.
12978         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12979         * modules/wcschr (configure.ac): ... to here.
12980
12981 2011-05-22  Bruno Haible  <bruno@clisp.org>
12982
12983         wcscat: Move AC_LIBOBJ invocations to module description.
12984         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12985         * modules/wcscat (configure.ac): ... to here.
12986
12987 2011-05-22  Bruno Haible  <bruno@clisp.org>
12988
12989         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12990         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12991         here...
12992         * modules/wcscasecmp (configure.ac): ... to here.
12993
12994 2011-05-22  Bruno Haible  <bruno@clisp.org>
12995
12996         wcrtomb: Move AC_LIBOBJ invocations to module description.
12997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12998         invocations from here...
12999         * modules/wcrtomb (configure.ac): ... to here.
13000
13001 2011-05-22  Bruno Haible  <bruno@clisp.org>
13002
13003         wcpncpy: Move AC_LIBOBJ invocations to module description.
13004         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13005         here...
13006         * modules/wcpncpy (configure.ac): ... to here.
13007
13008 2011-05-22  Bruno Haible  <bruno@clisp.org>
13009
13010         wcpcpy: Move AC_LIBOBJ invocations to module description.
13011         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13012         * modules/wcpcpy (configure.ac): ... to here.
13013
13014 2011-05-22  Bruno Haible  <bruno@clisp.org>
13015
13016         waitpid: Move AC_LIBOBJ invocations to module description.
13017         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13018         invocation from here...
13019         * modules/waitpid (configure.ac): ... to here.
13020
13021 2011-05-22  Bruno Haible  <bruno@clisp.org>
13022
13023         utimensat: Move AC_LIBOBJ invocations to module description.
13024         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13025         here...
13026         * modules/utimensat (configure.ac): ... to here.
13027
13028 2011-05-22  Bruno Haible  <bruno@clisp.org>
13029
13030         usleep: Move AC_LIBOBJ invocations to module description.
13031         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13032         here...
13033         * modules/usleep (configure.ac): ... to here.
13034
13035 2011-05-22  Bruno Haible  <bruno@clisp.org>
13036
13037         unlockpt: Move AC_LIBOBJ invocations to module description.
13038         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13039         gl_PREREQ_UNLOCKPT invocations from here...
13040         * modules/unlockpt (configure.ac): ... to here.
13041
13042 2011-05-22  Bruno Haible  <bruno@clisp.org>
13043
13044         unlink: Respect rules for use of AC_LIBOBJ.
13045         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13046         * modules/unlink (configure.ac): ... to here.
13047
13048 2011-05-22  Bruno Haible  <bruno@clisp.org>
13049
13050         uname: Move AC_LIBOBJ invocations to module description.
13051         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13053         here...
13054         * modules/uname (configure.ac): ... to here.
13055
13056 2011-05-22  Bruno Haible  <bruno@clisp.org>
13057
13058         ttyname_r: Move AC_LIBOBJ invocations to module description.
13059         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13060         gl_PREREQ_TTYNAME_R invocations from here...
13061         * modules/ttyname_r (configure.ac): ... to here.
13062
13063 2011-05-22  Bruno Haible  <bruno@clisp.org>
13064
13065         tsearch: Move AC_LIBOBJ invocations to module description.
13066         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13067         invocations from here...
13068         * modules/tsearch (configure.ac): ... to here.
13069
13070 2011-05-22  Bruno Haible  <bruno@clisp.org>
13071
13072         towctrans: Move AC_LIBOBJ invocations to module description.
13073         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13074         AC_LIBOBJ invocation from here...
13075         * modules/towctrans (configure.ac): ... to here.
13076
13077 2011-05-22  Bruno Haible  <bruno@clisp.org>
13078
13079         tmpfile: Move AC_LIBOBJ invocations to module description.
13080         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13081         invocations from here...
13082         * modules/tmpfile (configure.ac): ... to here.
13083
13084 2011-05-22  Bruno Haible  <bruno@clisp.org>
13085
13086         times: Move AC_LIBOBJ invocations to module description.
13087         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13088         * modules/times (configure.ac): ... to here.
13089
13090 2011-05-22  Bruno Haible  <bruno@clisp.org>
13091
13092         time_r: Move AC_LIBOBJ invocations to module description.
13093         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13094         invocations from here...
13095         * modules/time_r (configure.ac): ... to here.
13096
13097 2011-05-22  Bruno Haible  <bruno@clisp.org>
13098
13099         timegm: Move AC_LIBOBJ invocations to module description.
13100         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13101         invocations from here...
13102         * modules/timegm (configure.ac): ... to here.
13103
13104 2011-05-22  Bruno Haible  <bruno@clisp.org>
13105
13106         tcgetsid: Move AC_LIBOBJ invocations to module description.
13107         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13108         and gl_PREREQ_TCGETSID invocations from here...
13109         * modules/tcgetsid (configure.ac): ... to here.
13110         (Depends-on): Update conditions.
13111
13112 2011-05-22  Bruno Haible  <bruno@clisp.org>
13113
13114         symlinkat: Move AC_LIBOBJ invocations to module description.
13115         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13116         here...
13117         * modules/symlinkat (configure.ac): ... to here.
13118
13119 2011-05-22  Bruno Haible  <bruno@clisp.org>
13120
13121         symlink: Move AC_LIBOBJ invocations to module description.
13122         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13123         here...
13124         * modules/symlink (configure.ac): ... to here.
13125
13126 2011-05-22  Bruno Haible  <bruno@clisp.org>
13127
13128         strverscmp: Move AC_LIBOBJ invocations to module description.
13129         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13131         from here...
13132         * modules/strverscmp (configure.ac): ... to here.
13133
13134 2011-05-22  Bruno Haible  <bruno@clisp.org>
13135
13136         strtok_r: Move AC_LIBOBJ invocations to module description.
13137         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13138         and gl_PREREQ_STRTOK_R invocations from here...
13139         * modules/strtok_r (configure.ac): ... to here.
13140         (Depends-on): Update conditions.
13141
13142 2011-05-22  Bruno Haible  <bruno@clisp.org>
13143
13144         strtoumax: Move AC_LIBOBJ invocations to module description.
13145         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13147         from here...
13148         * modules/strtoumax (configure.ac): ... to here.
13149
13150 2011-05-22  Bruno Haible  <bruno@clisp.org>
13151
13152         strtoimax: Move AC_LIBOBJ invocations to module description.
13153         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13155         from here...
13156         * modules/strtoimax (configure.ac): ... to here.
13157
13158 2011-05-22  Bruno Haible  <bruno@clisp.org>
13159
13160         strtoull: Move AC_LIBOBJ invocations to module description.
13161         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13162         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13163         from here...
13164         * modules/strtoull (configure.ac): ... to here.
13165
13166 2011-05-22  Bruno Haible  <bruno@clisp.org>
13167
13168         strtoll: Move AC_LIBOBJ invocations to module description.
13169         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13171         here...
13172         * modules/strtoll (configure.ac): ... to here.
13173
13174 2011-05-22  Bruno Haible  <bruno@clisp.org>
13175
13176         strtoul: Move AC_LIBOBJ invocations to module description.
13177         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13178         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13179         * modules/strtoul (configure.ac): ... to here.
13180
13181 2011-05-22  Bruno Haible  <bruno@clisp.org>
13182
13183         strtol: Move AC_LIBOBJ invocations to module description.
13184         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13185         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13186         * modules/strtol (configure.ac): ... to here.
13187
13188 2011-05-22  Bruno Haible  <bruno@clisp.org>
13189
13190         strtod: Move AC_LIBOBJ invocations to module description.
13191         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13192         invocations from here...
13193         * modules/strtod (configure.ac): ... to here.
13194
13195 2011-05-22  Bruno Haible  <bruno@clisp.org>
13196
13197         strstr*: Move AC_LIBOBJ invocations to module description.
13198         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13199         invocations from here...
13200         * modules/strstr-simple (configure.ac): ... to here.
13201         * modules/strstr (configure.ac): ... and here.
13202
13203 2011-05-22  Bruno Haible  <bruno@clisp.org>
13204
13205         strsignal: Move AC_LIBOBJ invocations to module description.
13206         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13207         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13208         * modules/strsignal (configure.ac): ... to here.
13209         (Depends-on): Update conditions.
13210
13211 2011-05-22  Bruno Haible  <bruno@clisp.org>
13212
13213         strsep: Move AC_LIBOBJ invocations to module description.
13214         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13216         here...
13217         * modules/strsep (configure.ac): ... to here.
13218
13219 2011-05-22  Bruno Haible  <bruno@clisp.org>
13220
13221         strptime: Move AC_LIBOBJ invocations to module description.
13222         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13223         gl_PREREQ_STRPTIME invocations from here...
13224         * modules/strptime (configure.ac): ... to here.
13225
13226 2011-05-22  Bruno Haible  <bruno@clisp.org>
13227
13228         strpbrk: Move AC_LIBOBJ invocations to module description.
13229         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13231         here...
13232         * modules/strpbrk (configure.ac): ... to here.
13233
13234 2011-05-22  Bruno Haible  <bruno@clisp.org>
13235
13236         strnlen: Move AC_LIBOBJ invocations to module description.
13237         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13238         invocations from here...
13239         * modules/strnlen (configure.ac): ... to here.
13240
13241 2011-05-22  Bruno Haible  <bruno@clisp.org>
13242
13243         strndup: Move AC_LIBOBJ invocations to module description.
13244         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13245         invocations from here...
13246         * modules/strndup (configure.ac): ... to here.
13247         (Depends-on): Update conditions.
13248
13249 2011-05-22  Bruno Haible  <bruno@clisp.org>
13250
13251         strncat: Move AC_LIBOBJ invocations to module description.
13252         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13253         invocations from here...
13254         * modules/strncat (configure.ac): ... to here.
13255
13256 2011-05-22  Bruno Haible  <bruno@clisp.org>
13257
13258         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13259         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13260         invocations from here...
13261         * modules/strdup (configure.ac): ... to here.
13262         * modules/strdup-posix (configure.ac): ... and here.
13263
13264 2011-05-22  Bruno Haible  <bruno@clisp.org>
13265
13266         strcspn: Move AC_LIBOBJ invocations to module description.
13267         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13269         here...
13270         * modules/strcspn (configure.ac): ... to here.
13271
13272 2011-05-22  Bruno Haible  <bruno@clisp.org>
13273
13274         strchrnul: Move AC_LIBOBJ invocations to module description.
13275         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13276         gl_PREREQ_STRCHRNUL invocations from here...
13277         * modules/strchrnul (configure.ac): ... to here.
13278
13279 2011-05-22  Bruno Haible  <bruno@clisp.org>
13280
13281         strcasestr*: Move AC_LIBOBJ invocations to module description.
13282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13283         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13284         * modules/strcasestr-simple (configure.ac): ... to here.
13285         * modules/strcasestr (configure.ac): ... and here.
13286
13287 2011-05-22  Bruno Haible  <bruno@clisp.org>
13288
13289         strcase: Move AC_LIBOBJ invocations to module description.
13290         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13291         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13292         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13293         gl_PREREQ_STRNCASECMP invocations from here...
13294         * modules/strcase (configure.ac): ... to here.
13295
13296 2011-05-22  Bruno Haible  <bruno@clisp.org>
13297
13298         stpncpy: Move AC_LIBOBJ invocations to module description.
13299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13300         here...
13301         * modules/stpncpy (configure.ac): ... to here.
13302
13303 2011-05-22  Bruno Haible  <bruno@clisp.org>
13304
13305         stpcpy: Move AC_LIBOBJ invocations to module description.
13306         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13308         here...
13309         * modules/stpcpy (configure.ac): ... to here.
13310
13311 2011-05-21  Bruno Haible  <bruno@clisp.org>
13312
13313         stat: Move AC_LIBOBJ invocations to module description.
13314         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13315         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13316         here...
13317         * modules/stat (configure.ac): ... to here.
13318
13319 2011-05-21  Bruno Haible  <bruno@clisp.org>
13320
13321         sleep: Move AC_LIBOBJ invocations to module description.
13322         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13323         * modules/sleep (configure.ac): ... to here.
13324
13325 2011-05-21  Bruno Haible  <bruno@clisp.org>
13326
13327         signbit: Move AC_LIBOBJ invocations to module description.
13328         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13329         * modules/signbit (configure.ac): ... to here.
13330
13331 2011-05-21  Bruno Haible  <bruno@clisp.org>
13332
13333         sigprocmask: Move AC_LIBOBJ invocations to module description.
13334         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13335         gl_PREREQ_SIGPROMASK invocations from here...
13336         * modules/sigprocmask (configure.ac): ... to here.
13337
13338 2011-05-21  Bruno Haible  <bruno@clisp.org>
13339
13340         sigaction: Move AC_LIBOBJ invocations to module description.
13341         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13342         gl_PREREQ_SIGACTION invocations from here...
13343         * modules/sigaction (configure.ac): ... to here.
13344
13345 2011-05-21  Bruno Haible  <bruno@clisp.org>
13346
13347         sig2str: Move AC_LIBOBJ invocations to module description.
13348         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13350         here...
13351         * modules/sig2str (configure.ac): ... to here.
13352
13353 2011-05-21  Bruno Haible  <bruno@clisp.org>
13354
13355         setlocale: Move AC_LIBOBJ invocations to module description.
13356         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13357         gl_PREREQ_SETLOCALE invocations from here...
13358         * modules/setlocale (configure.ac): ... to here.
13359
13360 2011-05-21  Bruno Haible  <bruno@clisp.org>
13361
13362         unsetenv: Move AC_LIBOBJ invocations to module description.
13363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13364         and gl_PREREQ_UNSETENV invocations from here...
13365         * modules/unsetenv (configure.ac): ... to here.
13366         (Depends-on): Update.
13367
13368 2011-05-21  Bruno Haible  <bruno@clisp.org>
13369
13370         setenv: Move AC_LIBOBJ invocations to module description.
13371         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13372         here...
13373         * modules/setenv (configure.ac): ... to here.
13374
13375 2011-05-21  Bruno Haible  <bruno@clisp.org>
13376
13377         selinux-h: Move AC_LIBOBJ invocations to module description.
13378         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13379         AC_LIBOBJ invocation from here...
13380         * modules/selinux-h (configure.ac): ... to here.
13381
13382 2011-05-21  Bruno Haible  <bruno@clisp.org>
13383
13384         select: Respect rules for use of AC_LIBOBJ.
13385         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13386         here...
13387         * modules/select (configure.ac): ... to here.
13388
13389 2011-05-21  Bruno Haible  <bruno@clisp.org>
13390
13391         scandir: Move AC_LIBOBJ invocations to module description.
13392         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13393         invocations from here...
13394         * modules/scandir (configure.ac): ... to here.
13395
13396 2011-05-21  Bruno Haible  <bruno@clisp.org>
13397
13398         rpmatch: Move AC_LIBOBJ invocations to module description.
13399         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13401         here...
13402         * modules/rpmatch (configure.ac): ... to here.
13403
13404 2011-05-21  Bruno Haible  <bruno@clisp.org>
13405
13406         rmdir: Respect rules for use of AC_LIBOBJ.
13407         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13408         * modules/rmdir (configure.ac): ... to here.
13409
13410 2011-05-21  Bruno Haible  <bruno@clisp.org>
13411
13412         renameat: Move AC_LIBOBJ invocations to module description.
13413         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13414         here...
13415         * modules/renameat (configure.ac): ... to here.
13416
13417 2011-05-21  Bruno Haible  <bruno@clisp.org>
13418
13419         rename: Respect rules for use of AC_LIBOBJ.
13420         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13421         here...
13422         * modules/rename (configure.ac): ... to here.
13423
13424 2011-05-21  Bruno Haible  <bruno@clisp.org>
13425
13426         remove: Move AC_LIBOBJ invocations to module description.
13427         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13428         here...
13429         * modules/remove (configure.ac): ... to here.
13430
13431 2011-05-21  Bruno Haible  <bruno@clisp.org>
13432
13433         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13434         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13435         macro.
13436         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13437         * modules/relocatable-lib (configure.ac): ... to here.
13438         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13439         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13440
13441 2011-05-21  Bruno Haible  <bruno@clisp.org>
13442
13443         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13444         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13445         here...
13446         * modules/relocatable-prog (configure.ac): ... to here.
13447
13448 2011-05-21  Bruno Haible  <bruno@clisp.org>
13449
13450         regex: Move AC_LIBOBJ invocations to module description.
13451         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13452         invocations from here...
13453         * modules/regex (configure.ac): ... to here.
13454
13455 2011-05-21  Bruno Haible  <bruno@clisp.org>
13456
13457         realloc-*: Move AC_LIBOBJ invocations to module description.
13458         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13459         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13460         AC_LIBOBJ invocations from here...
13461         * modules/realloc-gnu (configure.ac): ... to here.
13462         * modules/realloc-posix (configure.ac): ... and here.
13463
13464 2011-05-21  Bruno Haible  <bruno@clisp.org>
13465
13466         readutmp: Move AC_LIBOBJ invocations to module description.
13467         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13468         * modules/readutmp (configure.ac): ... to here.
13469
13470 2011-05-21  Bruno Haible  <bruno@clisp.org>
13471
13472         readlinkat: Move AC_LIBOBJ invocations to module description.
13473         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13474         here...
13475         * modules/readlinkat (configure.ac): ... to here.
13476
13477 2011-05-21  Bruno Haible  <bruno@clisp.org>
13478
13479         readlink: Move AC_LIBOBJ invocations to module description.
13480         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13481         gl_PREREQ_READLINK invocations from here...
13482         * modules/readlink (configure.ac): ... to here.
13483
13484 2011-05-21  Bruno Haible  <bruno@clisp.org>
13485
13486         readline: Move AC_LIBOBJ invocations to module description.
13487         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13488         gl_PREREQ_READLINE invocations from here...
13489         * modules/readline (configure.ac): ... to here.
13490
13491 2011-05-21  Bruno Haible  <bruno@clisp.org>
13492
13493         read: Move AC_LIBOBJ invocations to module description.
13494         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13495         * modules/read (configure.ac): ... to here.
13496
13497 2011-05-21  Bruno Haible  <bruno@clisp.org>
13498
13499         rawmemchr: Move AC_LIBOBJ invocations to module description.
13500         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13502         from here...
13503         * modules/rawmemchr (configure.ac): ... to here.
13504
13505 2011-05-21  Bruno Haible  <bruno@clisp.org>
13506
13507         random_r: Move AC_LIBOBJ invocations to module description.
13508         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13509         gl_PREREQ_RANDOM_R invocations from here...
13510         * modules/random_r (configure.ac): ... to here.
13511
13512 2011-05-21  Bruno Haible  <bruno@clisp.org>
13513
13514         pwrite: Move AC_LIBOBJ invocations to module description.
13515         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13516         * modules/pwrite (configure.ac): ... to here.
13517
13518 2011-05-21  Bruno Haible  <bruno@clisp.org>
13519
13520         putenv: Move AC_LIBOBJ invocations to module description.
13521         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13522         * modules/putenv (configure.ac): ... to here.
13523
13524 2011-05-21  Bruno Haible  <bruno@clisp.org>
13525
13526         login_tty: Move AC_LIBOBJ invocations to module description.
13527         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13528         * modules/login_tty (configure.ac): ... to here.
13529
13530 2011-05-21  Bruno Haible  <bruno@clisp.org>
13531
13532         openpty: Move AC_LIBOBJ invocations to module description.
13533         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13534         * modules/openpty (configure.ac): ... to here.
13535
13536 2011-05-21  Bruno Haible  <bruno@clisp.org>
13537
13538         forkpty: Move AC_LIBOBJ invocations to module description.
13539         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13540         * modules/forkpty (configure.ac): ... to here.
13541
13542 2011-05-21  Bruno Haible  <bruno@clisp.org>
13543
13544         ptsname: Move AC_LIBOBJ invocations to module description.
13545         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13546         invocations from here...
13547         * modules/ptsname (configure.ac): ... to here.
13548
13549 2011-05-21  Bruno Haible  <bruno@clisp.org>
13550
13551         pread: Move AC_LIBOBJ invocations to module description.
13552         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13553         * modules/pread (configure.ac): ... to here.
13554
13555 2011-05-21  Bruno Haible  <bruno@clisp.org>
13556
13557         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13558         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13559         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13560         * modules/posix_spawn (configure.ac): ... to here.
13561         * modules/posix_spawnp (configure.ac): ... and here.
13562
13563 2011-05-21  Bruno Haible  <bruno@clisp.org>
13564
13565         popen: Move AC_LIBOBJ invocations to module description.
13566         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13567         invocations from here...
13568         * modules/popen (configure.ac): ... to here.
13569
13570 2011-05-21  Bruno Haible  <bruno@clisp.org>
13571
13572         poll: Move AC_LIBOBJ invocations to module description.
13573         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13574         invocations from here...
13575         * modules/poll (configure.ac): ... to here.
13576
13577 2011-05-21  Bruno Haible  <bruno@clisp.org>
13578
13579         pipe-posix: Move AC_LIBOBJ invocations to module description.
13580         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13581         * modules/pipe-posix (configure.ac): ... to here.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         openat: Respect rules for use of AC_LIBOBJ.
13586         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13587         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13588         * modules/openat (configure.ac): ... to here.
13589
13590 2011-05-21  Bruno Haible  <bruno@clisp.org>
13591
13592         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13593         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13594         invocation from here...
13595         * modules/obstack-printf (configure.ac): ... to here.
13596         * modules/obstack-printf-posix (configure.ac): ... and here.
13597
13598 2011-05-21  Bruno Haible  <bruno@clisp.org>
13599
13600         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13601         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13602         from here...
13603         * modules/nl_langinfo (configure.ac): ... to here.
13604
13605 2011-05-21  Bruno Haible  <bruno@clisp.org>
13606
13607         nanosleep: Move AC_LIBOBJ invocations to module description.
13608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13609         gl_PREREQ_NANOSLEEP invocations from here...
13610         * modules/nanosleep (configure.ac): ... to here.
13611
13612 2011-05-21  Bruno Haible  <bruno@clisp.org>
13613
13614         mountlist: Move AC_LIBOBJ invocations to module description.
13615         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13616         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13617         * modules/mountlist (configure.ac): ... to here.
13618
13619 2011-05-21  Bruno Haible  <bruno@clisp.org>
13620
13621         mktime: Respect rules for use of AC_LIBOBJ.
13622         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13623         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13624         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13625         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13626         * modules/mktime (configure.ac): ... to here.
13627         * modules/mktime-internal (configure.ac): ... and here.
13628         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13629
13630 2011-05-21  Bruno Haible  <bruno@clisp.org>
13631
13632         mkstemps: Move AC_LIBOBJ invocations to module description.
13633         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13634         here...
13635         * modules/mkstemps (configure.ac): ... to here.
13636
13637 2011-05-21  Bruno Haible  <bruno@clisp.org>
13638
13639         mkstemp: Move AC_LIBOBJ invocations to module description.
13640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13641         gl_PREREQ_MKSTEMP invocations from here...
13642         * modules/mkstemp (configure.ac): ... to here.
13643
13644 2011-05-21  Bruno Haible  <bruno@clisp.org>
13645
13646         mkostemps: Move AC_LIBOBJ invocations to module description.
13647         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13648         here...
13649         * modules/mkostemps (configure.ac): ... to here.
13650
13651 2011-05-21  Bruno Haible  <bruno@clisp.org>
13652
13653         mkostemp: Move AC_LIBOBJ invocations to module description.
13654         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13655         gl_PREREQ_MKOSTEMP invocations from here...
13656         * modules/mkostemp (configure.ac): ... to here.
13657
13658 2011-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         mknod: Move AC_LIBOBJ invocations to module description.
13661         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13662         * modules/mknod (configure.ac): ... to here.
13663
13664 2011-05-21  Bruno Haible  <bruno@clisp.org>
13665
13666         mkfifoat: Move AC_LIBOBJ invocations to module description.
13667         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13668         here...
13669         * modules/mkfifoat (configure.ac): ... to here.
13670
13671 2011-05-21  Bruno Haible  <bruno@clisp.org>
13672
13673         mkfifo: Respect rules for use of AC_LIBOBJ.
13674         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13675         here...
13676         * modules/mkfifo (configure.ac): ... to here.
13677
13678 2011-05-21  Bruno Haible  <bruno@clisp.org>
13679
13680         mkdtemp: Move AC_LIBOBJ invocations to module description.
13681         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13682         invocations from here...
13683         * modules/mkdtemp (configure.ac): ... to here.
13684
13685 2011-05-21  Bruno Haible  <bruno@clisp.org>
13686
13687         mkdir: Move AC_LIBOBJ invocations to module description.
13688         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13689         * modules/mkdir (configure.ac): ... to here.
13690
13691 2011-05-21  Bruno Haible  <bruno@clisp.org>
13692
13693         memset: Move AC_LIBOBJ invocations to module description.
13694         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13696         here...
13697         * modules/memset (configure.ac): ... to here.
13698
13699 2011-05-21  Bruno Haible  <bruno@clisp.org>
13700
13701         memrchr: Move AC_LIBOBJ invocations to module description.
13702         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13704         here...
13705         * modules/memrchr (configure.ac): ... to here.
13706
13707 2011-05-21  Bruno Haible  <bruno@clisp.org>
13708
13709         mempcpy: Move AC_LIBOBJ invocations to module description.
13710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13712         here...
13713         * modules/mempcpy (configure.ac): ... to here.
13714
13715 2011-05-21  Bruno Haible  <bruno@clisp.org>
13716
13717         memmove: Move AC_LIBOBJ invocations to module description.
13718         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13720         here...
13721         * modules/memmove (configure.ac): ... to here.
13722
13723 2011-05-21  Bruno Haible  <bruno@clisp.org>
13724
13725         memmem*: Move AC_LIBOBJ invocations to module description.
13726         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13727         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13728         here...
13729         (gl_FUNC_MEMMEM): ... and here...
13730         * modules/memmem-simple (configure.ac): ... to here.
13731         * modules/memmem (configure.ac): ... and here.
13732
13733 2011-05-21  Bruno Haible  <bruno@clisp.org>
13734
13735         memcpy: Move AC_LIBOBJ invocations to module description.
13736         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13738         here...
13739         * modules/memcpy (configure.ac): ... to here.
13740
13741 2011-05-21  Bruno Haible  <bruno@clisp.org>
13742
13743         memcmp: Simplify autoconf macro.
13744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13745         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13746         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13747
13748 2011-05-21  Bruno Haible  <bruno@clisp.org>
13749
13750         memcmp: Move AC_LIBOBJ invocations to module description.
13751         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13752         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13753         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13754         * modules/memcmp (configure.ac): ... to here.
13755         (Depends-on): Update conditions.
13756
13757 2011-05-21  Bruno Haible  <bruno@clisp.org>
13758
13759         memchr: Respect rules for use of AC_LIBOBJ.
13760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13761         invocations from here...
13762         * modules/memchr (configure.ac): ... to here.
13763
13764 2011-05-21  Bruno Haible  <bruno@clisp.org>
13765
13766         mbtowc: Move AC_LIBOBJ invocations to module description.
13767         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13768         invocations from here...
13769         * modules/mbtowc (configure.ac): ... to here.
13770
13771 2011-05-21  Bruno Haible  <bruno@clisp.org>
13772
13773         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13774         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13775         gl_PREREQ_MBSRTOWCS invocations from here...
13776         * modules/mbsrtowcs (configure.ac): ... to here.
13777
13778 2011-05-21  Bruno Haible  <bruno@clisp.org>
13779
13780         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13781         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13782         gl_PREREQ_MBSNRTOWCS invocations from here...
13783         * modules/mbsnrtowcs (configure.ac): ... to here.
13784
13785 2011-05-21  Bruno Haible  <bruno@clisp.org>
13786
13787         mbsinit: Move AC_LIBOBJ invocations to module description.
13788         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13789         invocations from here...
13790         * modules/mbsinit (configure.ac): ... to here.
13791
13792 2011-05-21  Bruno Haible  <bruno@clisp.org>
13793
13794         mbrlen: Move AC_LIBOBJ invocations to module description.
13795         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13796         invocations from here...
13797         * modules/mbrlen (configure.ac): ... to here.
13798
13799 2011-05-21  Bruno Haible  <bruno@clisp.org>
13800
13801         mbrtowc: Respect rules for use of AC_LIBOBJ.
13802         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13803         invocations from here...
13804         * modules/mbrtowc (configure.ac): ... to here.
13805
13806 2011-05-21  Bruno Haible  <bruno@clisp.org>
13807
13808         malloc-*: Move AC_LIBOBJ invocations to module description.
13809         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13810         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13811         AC_LIBOBJ invocations from here...
13812         * modules/malloc-gnu (configure.ac): ... to here.
13813         * modules/malloc-posix (configure.ac): ... and here.
13814
13815 2011-05-21  Bruno Haible  <bruno@clisp.org>
13816
13817         lstat, openat: Respect rules for use of AC_LIBOBJ.
13818         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13820         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13821         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13822         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13823         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13824         here.
13825         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13826
13827 2011-05-21  Bruno Haible  <bruno@clisp.org>
13828
13829         lseek: Move AC_LIBOBJ invocations to module description.
13830         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13831         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13832         * modules/lseek (configure.ac): ... to here.
13833
13834 2011-05-21  Bruno Haible  <bruno@clisp.org>
13835
13836         linkat: Move AC_LIBOBJ invocations to module description.
13837         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13838         here...
13839         * modules/linkat (configure.ac): ... to here.
13840
13841 2011-05-21  Bruno Haible  <bruno@clisp.org>
13842
13843         link: Respect rules for use of AC_LIBOBJ.
13844         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13845         * modules/link (configure.ac): ... to here.
13846
13847 2011-05-21  Bruno Haible  <bruno@clisp.org>
13848
13849         lchown: Move AC_LIBOBJ invocations to module description.
13850         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13851         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13852         * modules/lchown (configure.ac): ... to here.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         iswctype: Move AC_LIBOBJ invocations to module description.
13857         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13858         here...
13859         * modules/iswctype (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         iswblank: Move AC_LIBOBJ invocations to module description.
13864         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13865         here...
13866         * modules/iswblank (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         atanl: Move AC_LIBOBJ invocations to module description.
13871         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13872         * modules/atanl (configure.ac): ... to here.
13873
13874 2011-05-21  Bruno Haible  <bruno@clisp.org>
13875
13876         acosl: Move AC_LIBOBJ invocations to module description.
13877         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13878         * modules/acosl (configure.ac): ... to here.
13879
13880 2011-05-21  Bruno Haible  <bruno@clisp.org>
13881
13882         asinl: Respect rules for use of AC_LIBOBJ.
13883         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13884         * modules/asinl (configure.ac): ... to here.
13885
13886 2011-05-21  Bruno Haible  <bruno@clisp.org>
13887
13888         tanl: Move AC_LIBOBJ invocations to module description.
13889         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13890         * modules/tanl (configure.ac): ... to here.
13891
13892 2011-05-21  Bruno Haible  <bruno@clisp.org>
13893
13894         cosl: Move AC_LIBOBJ invocations to module description.
13895         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13896         * modules/cosl (configure.ac): ... to here.
13897
13898 2011-05-21  Bruno Haible  <bruno@clisp.org>
13899
13900         sinl: Move AC_LIBOBJ invocations to module description.
13901         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13902         * modules/sinl (configure.ac): ... to here.
13903
13904 2011-05-21  Bruno Haible  <bruno@clisp.org>
13905
13906         logl: Move AC_LIBOBJ invocations to module description.
13907         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13908         * modules/logl (configure.ac): ... to here.
13909
13910 2011-05-21  Bruno Haible  <bruno@clisp.org>
13911
13912         expl: Move AC_LIBOBJ invocations to module description.
13913         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13914         * modules/expl (configure.ac): ... to here.
13915
13916 2011-05-21  Bruno Haible  <bruno@clisp.org>
13917
13918         roundl: Move AC_LIBOBJ invocations to module description.
13919         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13920         * modules/roundl (configure.ac): ... to here.
13921
13922 2011-05-21  Bruno Haible  <bruno@clisp.org>
13923
13924         round: Move AC_LIBOBJ invocations to module description.
13925         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13926         * modules/round (configure.ac): ... to here.
13927
13928 2011-05-21  Bruno Haible  <bruno@clisp.org>
13929
13930         roundf: Move AC_LIBOBJ invocations to module description.
13931         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13932         * modules/roundf (configure.ac): ... to here.
13933
13934 2011-05-21  Bruno Haible  <bruno@clisp.org>
13935
13936         truncl: Move AC_LIBOBJ invocations to module description.
13937         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13938         * modules/truncl (configure.ac): ... to here.
13939
13940 2011-05-21  Bruno Haible  <bruno@clisp.org>
13941
13942         trunc: Move AC_LIBOBJ invocations to module description.
13943         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13944         * modules/trunc (configure.ac): ... to here.
13945
13946 2011-05-21  Bruno Haible  <bruno@clisp.org>
13947
13948         truncf: Move AC_LIBOBJ invocations to module description.
13949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13950         * modules/truncf (configure.ac): ... to here.
13951
13952 2011-05-21  Bruno Haible  <bruno@clisp.org>
13953
13954         ceill: Move AC_LIBOBJ invocations to module description.
13955         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13956         * modules/ceill (configure.ac): ... to here.
13957
13958 2011-05-21  Bruno Haible  <bruno@clisp.org>
13959
13960         ceil: Move AC_LIBOBJ invocations to module description.
13961         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13962         * modules/ceil (configure.ac): ... to here.
13963
13964 2011-05-21  Bruno Haible  <bruno@clisp.org>
13965
13966         ceilf: Move AC_LIBOBJ invocations to module description.
13967         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13968         * modules/ceilf (configure.ac): ... to here.
13969
13970 2011-05-21  Bruno Haible  <bruno@clisp.org>
13971
13972         floorl: Respect rules for use of AC_LIBOBJ.
13973         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13974         * modules/floorl (configure.ac): ... to here.
13975
13976 2011-05-21  Bruno Haible  <bruno@clisp.org>
13977
13978         floor: Respect rules for use of AC_LIBOBJ.
13979         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13980         * modules/floor (configure.ac): ... to here.
13981
13982 2011-05-21  Bruno Haible  <bruno@clisp.org>
13983
13984         floorf: Move AC_LIBOBJ invocations to module description.
13985         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13986         * modules/floorf (configure.ac): ... to here.
13987
13988 2011-05-20  Bruno Haible  <bruno@clisp.org>
13989
13990         sqrtl: Respect rules for use of AC_LIBOBJ.
13991         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13992         * modules/sqrtl (configure.ac): ... to here.
13993
13994 2011-05-20  Bruno Haible  <bruno@clisp.org>
13995
13996         ldexpl: Respect rules for use of AC_LIBOBJ.
13997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13998         * modules/ldexpl (configure.ac): ... to here.
13999
14000 2011-05-20  Bruno Haible  <bruno@clisp.org>
14001
14002         frexpl*: Respect rules for use of AC_LIBOBJ.
14003         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14004         invocation from here...
14005         * modules/frexpl (configure.ac): ... to here.
14006         * modules/frexpl-nolibm (configure.ac): ... and here.
14007
14008 2011-05-20  Bruno Haible  <bruno@clisp.org>
14009
14010         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14011         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14012         invocation from here...
14013         * modules/frexp (configure.ac): ... to here.
14014         * modules/frexp-nolibm (configure.ac): ... and here.
14015
14016 2011-05-20  Bruno Haible  <bruno@clisp.org>
14017
14018         isnan: Respect rules for use of AC_LIBOBJ.
14019         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14020         invocations here.
14021         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14022         REPLACE_ISNAN.
14023         * modules/isnand (configure.ac): Likewise.
14024         * modules/isnanl (configure.ac): Likewise.
14025
14026 2011-05-20  Bruno Haible  <bruno@clisp.org>
14027
14028         isnanl*: Respect rules for use of AC_LIBOBJ.
14029         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14030         invocation from here...
14031         * modules/isnanl (configure.ac): ... to here.
14032         * modules/isnanl-nolibm (configure.ac): ... and here.
14033
14034 2011-05-20  Bruno Haible  <bruno@clisp.org>
14035
14036         isnand*: Move AC_LIBOBJ invocations to module description.
14037         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14038         invocation from here...
14039         * modules/isnand (configure.ac): ... to here.
14040         * modules/isnand-nolibm (configure.ac): ... and here.
14041
14042 2011-05-20  Bruno Haible  <bruno@clisp.org>
14043
14044         isnanf*: Move AC_LIBOBJ invocations to module description.
14045         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14046         invocation from here...
14047         * modules/isnanf (configure.ac): ... to here.
14048         * modules/isnanf-nolibm (configure.ac): ... and here.
14049
14050 2011-05-20  Bruno Haible  <bruno@clisp.org>
14051
14052         isnan*: Separate the AC_LIBOBJ invocations.
14053         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14054         AC_LIBOBJ invocation.
14055         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14056         here.
14057         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14058         AC_LIBOBJ invocation.
14059         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14060         here.
14061         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14062         AC_LIBOBJ invocation.
14063         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14064         here.
14065         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14066
14067 2011-05-08  Bruno Haible  <bruno@clisp.org>
14068
14069         isinf: Move AC_LIBOBJ invocations to module description.
14070         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14071         * modules/isinf (configure.ac): ... to here.
14072
14073 2011-05-08  Bruno Haible  <bruno@clisp.org>
14074
14075         isfinite: Move AC_LIBOBJ invocations to module description.
14076         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14077         * modules/isfinite (configure.ac): ... to here.
14078
14079 2011-05-08  Bruno Haible  <bruno@clisp.org>
14080
14081         isblank: Move AC_LIBOBJ invocations to module description.
14082         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14083         here...
14084         * modules/isblank (configure.ac): ... to here.
14085
14086 2011-05-08  Bruno Haible  <bruno@clisp.org>
14087
14088         isapipe: Move AC_LIBOBJ invocations to module description.
14089         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14090         gl_PREREQ_ISAPIPE invocations from here...
14091         * modules/isapipe (configure.ac): ... to here.
14092         (Depends-on): Update condition.
14093
14094 2011-05-08  Bruno Haible  <bruno@clisp.org>
14095
14096         ioctl: Move AC_LIBOBJ invocations to module description.
14097         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14098         invocations from here...
14099         * modules/ioctl (configure.ac): ... to here.
14100         (Depends-on): Update condition.
14101
14102 2011-05-08  Bruno Haible  <bruno@clisp.org>
14103
14104         imaxdiv: Move AC_LIBOBJ invocations to module description.
14105         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14106         invocations from here...
14107         * modules/imaxdiv (configure.ac): ... to here.
14108
14109 2011-05-08  Bruno Haible  <bruno@clisp.org>
14110
14111         imaxabs: Move AC_LIBOBJ invocations to module description.
14112         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14113         invocations from here...
14114         * modules/imaxabs (configure.ac): ... to here.
14115
14116 2011-05-08  Bruno Haible  <bruno@clisp.org>
14117
14118         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14120         AC_LIBOBJ invocations from here...
14121         * modules/getaddrinfo (configure.ac): ... to here.
14122         (Depends-on): Add conditions.
14123
14124 2011-05-08  Bruno Haible  <bruno@clisp.org>
14125
14126         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14128         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14129         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14130         (gl_PREREQ_INET_PTON): ... from here.
14131         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14132         gl_PREREQ_INET_PTON here.
14133         (Depends-on): Update condition.
14134
14135 2011-05-08  Bruno Haible  <bruno@clisp.org>
14136
14137         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14138         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14139         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14140         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14141         (gl_PREREQ_INET_NTOP): ... from here.
14142         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14143         gl_PREREQ_INET_NTOP here.
14144         (Depends-on): Update condition.
14145
14146 2011-05-08  Bruno Haible  <bruno@clisp.org>
14147
14148         iconv_open: Move AC_LIBOBJ invocations to module description.
14149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14150         AC_LIBOBJ invocations from here...
14151         * modules/iconv_open (configure.ac): ... to here.
14152
14153 2011-05-08  Bruno Haible  <bruno@clisp.org>
14154
14155         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14156         If module 'iconv_open' is among the main modules and module
14157         'iconv_open-utf' is among the tests dependencies, then
14158         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14159         return the special iconv_t values. Therefore iconv() and iconv_close()
14160         must support these special iconv_t values, already in lib, not only in
14161         tests.
14162         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14164         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14165         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14166         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14167         (Depends-on): Add the dependencies of iconv_open-utf.
14168         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14169         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14170         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14171
14172 2011-05-08  Bruno Haible  <bruno@clisp.org>
14173
14174         group-member: Move AC_LIBOBJ invocations to module description.
14175         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14176         gl_PREREQ_GROUP_MEMBER invocations from here...
14177         * modules/group-member (configure.ac): ... to here.
14178
14179 2011-05-08  Bruno Haible  <bruno@clisp.org>
14180
14181         grantpt: Move AC_LIBOBJ invocations to module description.
14182         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14183         invocations from here...
14184         * modules/grantpt (configure.ac): ... to here.
14185
14186 2011-05-08  Bruno Haible  <bruno@clisp.org>
14187
14188         glob: Move AC_LIBOBJ invocations to module description.
14189         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14190         from here...
14191         * modules/glob (configure.ac): ... to here.
14192
14193 2011-05-08  Bruno Haible  <bruno@clisp.org>
14194
14195         getusershell: Move AC_LIBOBJ invocations to module description.
14196         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14197         Move AC_LIBOBJ invocation from here...
14198         * modules/getusershell (configure.ac): ... to here.
14199         (Depends-on): Update condition.
14200
14201 2011-05-08  Bruno Haible  <bruno@clisp.org>
14202
14203         gettimeofday: Move AC_LIBOBJ invocations to module description.
14204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14205         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14206         gl_PREREQ_GETTIMEOFDAY invocations from here...
14207         * modules/gettimeofday (configure.ac): ... to here.
14208
14209 2011-05-08  Bruno Haible  <bruno@clisp.org>
14210
14211         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14212         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14213         just gl_FUNC_TZSET.
14214         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14215         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14217         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14218
14219 2011-05-08  Bruno Haible  <bruno@clisp.org>
14220
14221         getsubopt: Move AC_LIBOBJ invocations to module description.
14222         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14223         gl_PREREQ_GETSUBOPT invocations from here...
14224         * modules/getsubopt (configure.ac): ... to here.
14225
14226 2011-05-08  Bruno Haible  <bruno@clisp.org>
14227
14228         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14229         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14230         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14231         * modules/getpass-gnu (configure.ac): ... to here.
14232
14233 2011-05-08  Bruno Haible  <bruno@clisp.org>
14234
14235         getpass: Move AC_LIBOBJ invocations to module description.
14236         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14237         gl_PREREQ_GETPASS invocations from here...
14238         * modules/getpass (configure.ac): ... to here.
14239
14240 2011-05-08  Bruno Haible  <bruno@clisp.org>
14241
14242         getpagesize: Move AC_LIBOBJ invocations to module description.
14243         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14244         from here...
14245         * modules/getpagesize (configure.ac): ... to here.
14246
14247 2011-05-08  Bruno Haible  <bruno@clisp.org>
14248
14249         getopt: Move AC_LIBOBJ invocations to module description.
14250         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14251         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14252         invocations from here...
14253         * modules/getopt-gnu (configure.ac): ... to here.
14254         * modules/getopt-posix (configure.ac): ... and here.
14255         (Depends-on): Update condition.
14256
14257 2011-05-08  Bruno Haible  <bruno@clisp.org>
14258
14259         getopt, argp: Respect rules for use of AC_LIBOBJ.
14260         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14261         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14262         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14263         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14264
14265 2011-05-08  Bruno Haible  <bruno@clisp.org>
14266
14267         getlogin_r: Move AC_LIBOBJ invocations to module description.
14268         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14269         gl_PREREQ_GETLOGIN_R invocations from here...
14270         * modules/getlogin_r (configure.ac): ... to here.
14271
14272 2011-05-08  Bruno Haible  <bruno@clisp.org>
14273
14274         getlogin: Move AC_LIBOBJ invocations to module description.
14275         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14276         here...
14277         * modules/getlogin (configure.ac): ... to here.
14278
14279 2011-05-08  Bruno Haible  <bruno@clisp.org>
14280
14281         getloadavg: Move AC_LIBOBJ invocations to module description.
14282         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14283         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14284         * modules/getloadavg (configure.ac): ... to here.
14285
14286 2011-05-08  Bruno Haible  <bruno@clisp.org>
14287
14288         gethrxtime: Move AC_LIBOBJ invocations to module description.
14289         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14290         LIB_GETHRXTIME from here...
14291         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14292         invocations from here...
14293         * modules/gethrxtime (configure.ac): ... to here.
14294
14295 2011-05-08  Bruno Haible  <bruno@clisp.org>
14296
14297         gethostname: Move AC_LIBOBJ invocations to module description.
14298         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14299         gl_PREREQ_GETHOSTNAME invocations from here...
14300         * modules/gethostname (configure.ac): ... to here.
14301
14302 2011-05-08  Bruno Haible  <bruno@clisp.org>
14303
14304         getgroups: Move AC_LIBOBJ invocations to module description.
14305         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14306         here...
14307         * modules/getgroups (configure.ac): ... to here.
14308
14309 2011-05-08  Bruno Haible  <bruno@clisp.org>
14310
14311         getdtablesize: Move AC_LIBOBJ invocations to module description.
14312         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14313         invocation from here...
14314         * modules/getdtablesize (configure.ac): ... to here.
14315
14316 2011-05-08  Bruno Haible  <bruno@clisp.org>
14317
14318         getdomainname: Move AC_LIBOBJ invocations to module description.
14319         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14320         gl_PREREQ_GETDOMAINNAME invocations from here...
14321         * modules/getdomainname (configure.ac): ... to here.
14322
14323 2011-05-08  Bruno Haible  <bruno@clisp.org>
14324
14325         getline: Move AC_LIBOBJ invocations to module description.
14326         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14327         invocations from here...
14328         * modules/getline (configure.ac): ... to here.
14329
14330 2011-05-08  Bruno Haible  <bruno@clisp.org>
14331
14332         getline: Simplify.
14333         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14334         It's already handled through the module dependency.
14335
14336 2011-05-08  Bruno Haible  <bruno@clisp.org>
14337
14338         getdelim: Move AC_LIBOBJ invocations to module description.
14339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14340         and gl_PREREQ_GETDELIM invocations from here...
14341         * modules/getdelim (configure.ac): ... to here.
14342         (Depends-on): Fix condition.
14343
14344 2011-05-08  Bruno Haible  <bruno@clisp.org>
14345
14346         getcwd: Move AC_LIBOBJ invocations to module description.
14347         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14348         invocations from here...
14349         * modules/getcwd (configure.ac): ... to here.
14350
14351 2011-05-08  Bruno Haible  <bruno@clisp.org>
14352
14353         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14354         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14355         here...
14356         * modules/getcwd-lgpl (configure.ac): ... to here.
14357
14358 2011-05-07  Bruno Haible  <bruno@clisp.org>
14359
14360         crypto/gc: Move AC_LIBOBJ invocations to module description.
14361         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14362         * modules/crypto/gc (configure.ac): ... to here.
14363
14364 2011-05-07  Bruno Haible  <bruno@clisp.org>
14365
14366         fwriting: Move AC_LIBOBJ invocations to module description.
14367         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14368         here...
14369         * modules/fwriting (configure.ac): ... to here.
14370
14371 2011-05-07  Bruno Haible  <bruno@clisp.org>
14372
14373         fwritable: Move AC_LIBOBJ invocations to module description.
14374         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14375         here...
14376         * modules/fwritable (configure.ac): ... to here.
14377
14378 2011-05-07  Bruno Haible  <bruno@clisp.org>
14379
14380         futimens: Move AC_LIBOBJ invocations to module description.
14381         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14382         here...
14383         * modules/futimens (configure.ac): ... to here.
14384
14385 2011-05-07  Bruno Haible  <bruno@clisp.org>
14386
14387         ftruncate: Move AC_LIBOBJ invocations to module description.
14388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14389         gl_PREREQ_FTRUNCATE invocations from here...
14390         * modules/ftruncate (configure.ac): ... to here.
14391
14392 2011-05-07  Bruno Haible  <bruno@clisp.org>
14393
14394         fsync: Move AC_LIBOBJ invocations to module description.
14395         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14396         invocations from here...
14397         * modules/fsync (configure.ac): ... to here.
14398
14399 2011-05-07  Bruno Haible  <bruno@clisp.org>
14400
14401         fsusage: Move AC_LIBOBJ invocations to module description.
14402         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14403         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14404         * modules/fsusage (configure.ac): ... to here.
14405
14406 2011-05-07  Bruno Haible  <bruno@clisp.org>
14407
14408         freopen: Move AC_LIBOBJ invocations to module description.
14409         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14410         invocations from here...
14411         * modules/freopen (configure.ac): ... to here.
14412
14413 2011-05-07  Bruno Haible  <bruno@clisp.org>
14414
14415         free: Move AC_LIBOBJ invocations to module description.
14416         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14417         invocations from here...
14418         * modules/free (configure.ac): ... to here.
14419
14420 2011-05-07  Bruno Haible  <bruno@clisp.org>
14421
14422         freadable: Move AC_LIBOBJ invocations to module description.
14423         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14424         here...
14425         * modules/freadable (configure.ac): ... to here.
14426
14427 2011-05-07  Bruno Haible  <bruno@clisp.org>
14428
14429         fpurge: Move AC_LIBOBJ invocations to module description.
14430         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14431         invocations from here...
14432         * modules/fpurge (configure.ac): ... to here.
14433
14434 2011-05-07  Bruno Haible  <bruno@clisp.org>
14435
14436         fpending: Move AC_LIBOBJ invocations to module description.
14437         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14438         gl_FUNC_FPENDING.
14439         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14440         invocations from here...
14441         * modules/fpending (configure.ac): ... to here.
14442
14443 2011-05-07  Bruno Haible  <bruno@clisp.org>
14444
14445         fopen: Move AC_LIBOBJ invocations to module description.
14446         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14447         invocations from here...
14448         * modules/fopen (configure.ac): ... to here.
14449
14450 2011-05-07  Bruno Haible  <bruno@clisp.org>
14451
14452         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14453         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14454         gl_FUNC_FNMATCH_POSIX.
14455         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14456         invocations from here...
14457         * modules/fnmatch (configure.ac): ... to here.
14458         * modules/fnmatch-gnu (configure.ac): ... and here.
14459
14460 2011-05-07  Bruno Haible  <bruno@clisp.org>
14461
14462         flock: Move AC_LIBOBJ invocations to module description.
14463         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14464         invocations from here...
14465         * modules/flock (configure.ac): ... to here.
14466
14467 2011-05-07  Bruno Haible  <bruno@clisp.org>
14468
14469         fileblocks: Move AC_LIBOBJ invocations to module description.
14470         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14471         gl_PREREQ_FILEBLOCKS invocations from here...
14472         * modules/fileblocks (configure.ac): ... to here.
14473
14474 2011-05-06  Bruno Haible  <bruno@clisp.org>
14475
14476         fflush: Move AC_LIBOBJ invocations to module description.
14477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14478         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14479         invocations from here...
14480         * modules/fflush (configure.ac): ... to here.
14481
14482 2011-05-06  Bruno Haible  <bruno@clisp.org>
14483
14484         fdopendir: Move AC_LIBOBJ invocations to module description.
14485         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14486         here...
14487         * modules/fdopendir (configure.ac): ... to here.
14488         (Depends-on): Improve conditions.
14489
14490 2011-05-06  Bruno Haible  <bruno@clisp.org>
14491
14492         _Exit: Move AC_LIBOBJ invocations to module description.
14493         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14494         invocations from here...
14495         * modules/_Exit (configure.ac): ... to here.
14496
14497 2011-05-21  Bruno Haible  <bruno@clisp.org>
14498
14499         euidaccess: Respect rules for use of AC_LIBOBJ.
14500         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14502         from here...
14503         * modules/euidaccess (configure.ac): ... to here.
14504
14505 2011-05-06  Bruno Haible  <bruno@clisp.org>
14506
14507         error: Move AC_LIBOBJ invocations to module description.
14508         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14509         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14510         invocations from here...
14511         * modules/error (configure.ac): ... to here.
14512
14513 2011-05-06  Bruno Haible  <bruno@clisp.org>
14514
14515         duplocale: Move AC_LIBOBJ invocations to module description.
14516         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14517         gl_PREREQ_DUPLOCALE invocations from here...
14518         * modules/duplocale (configure.ac): ... to here.
14519
14520 2011-05-05  Bruno Haible  <bruno@clisp.org>
14521
14522         dirfd: Move AC_LIBOBJ invocations to module description.
14523         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14524         gl_FUNC_DIRFD.
14525         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14526         here...
14527         * modules/dirfd (configure.ac): ... to here.
14528         (Depends-on): Fix condition.
14529
14530 2011-05-05  Bruno Haible  <bruno@clisp.org>
14531
14532         chown: Respect rules for use of AC_LIBOBJ.
14533         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14534         * modules/chown (configure.ac): ... to here.
14535
14536 2011-05-05  Bruno Haible  <bruno@clisp.org>
14537
14538         chdir-long: Move AC_LIBOBJ invocations to module description.
14539         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14540         gl_PREREQ_CHDIR_LONG invocations from here...
14541         * modules/chdir-long (configure.ac): ... to here.
14542
14543 2011-05-05  Bruno Haible  <bruno@clisp.org>
14544
14545         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14546         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14547         from here...
14548         * modules/canonicalize-lgpl (configure.ac): ... to here.
14549
14550 2011-05-05  Bruno Haible  <bruno@clisp.org>
14551
14552         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14553         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14554         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14555         REPLACE_CALLOC.
14556         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14557         * modules/calloc-gnu (configure.ac): Likewise.
14558
14559 2011-05-05  Bruno Haible  <bruno@clisp.org>
14560
14561         btowc: Move AC_LIBOBJ invocations to module description.
14562         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14563         invocations from here...
14564         * modules/btowc (configure.ac): ... to here.
14565
14566 2011-05-21  Bruno Haible  <bruno@clisp.org>
14567
14568         atexit: Move AC_LIBOBJ invocations to module description.
14569         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14571         here...
14572         * modules/atexit (configure.ac): ... to here.
14573
14574 2011-05-05  Bruno Haible  <bruno@clisp.org>
14575
14576         atoll: Move AC_LIBOBJ invocations to module description.
14577         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14578         invocations from here...
14579         * modules/atoll (configure.ac): ... to here.
14580
14581 2011-05-05  Bruno Haible  <bruno@clisp.org>
14582
14583         argz: Move AC_LIBOBJ invocations to module description.
14584         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14585         * modules/argz (configure.ac): ... to here.
14586
14587 2011-05-05  Bruno Haible  <bruno@clisp.org>
14588
14589         alphasort: Move AC_LIBOBJ invocations to module description.
14590         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14591         gl_PREREQ_ALPHASORT invocations from here...
14592         * modules/alphasort (configure.ac): ... to here.
14593
14594 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14595
14596         verify: new macro verify_expr; verify_true deprecated
14597         * NEWS: Mention this.
14598         * doc/verify.texi (Compile-time Assertions): Document this.
14599         * lib/verify.h (verify_true): Deprecate.
14600         (verify_expr): New macro.
14601         * tests/test-verify.c (function): Test verify_expr.
14602
14603 2011-06-14  Jim Meyering  <meyering@redhat.com>
14604
14605         init.sh: give more portable redirection-related advice in a comment
14606         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14607         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14608         for lots of discussion.  Stefano Lattarini suggested the solution
14609         of putting "9>&2" after the command.  Reported by Bruno Haible.
14610
14611 2011-06-13  Bruno Haible  <bruno@clisp.org>
14612
14613         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14615         'none'.
14616
14617 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14618
14619         ftoastr: use strtof only if HAVE_STRTOF
14620         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14622         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14623         * modules/ftoastr (configure.ac): Check for strtof.
14624
14625 2011-06-13  Bruno Haible  <bruno@clisp.org>
14626
14627         gnulib-tool: Addendum to 2011-06-08 commit.
14628         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14629         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14630
14631 2011-06-13  Bruno Haible  <bruno@clisp.org>
14632
14633         fseeko: Provide a non-inline replacement of fseek().
14634         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14635         * modules/fseeko (Depends-on): Add fseek.
14636         * modules/fseek (License): Change to LGPLv2+.
14637
14638 2011-06-13  Bruno Haible  <bruno@clisp.org>
14639
14640         ftello: Provide a non-inline replacement of ftell().
14641         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14642         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14643         not have ftello() (such as on mingw).
14644         * modules/ftello (Depends-on): Add ftell.
14645         * modules/ftell (License): Change to LGPLv2+.
14646
14647 2011-05-07  Bruno Haible  <bruno@clisp.org>
14648
14649         ftell: Move AC_LIBOBJ invocations to module description.
14650         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14651         * modules/ftell (configure.ac): ... to here.
14652
14653 2011-05-07  Bruno Haible  <bruno@clisp.org>
14654
14655         ftello: Respect rules for use of AC_LIBOBJ.
14656         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14657         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14658         here...
14659         * modules/ftello (configure.ac): ... to here.
14660
14661 2011-05-07  Bruno Haible  <bruno@clisp.org>
14662
14663         fseeko: Simplify.
14664         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14665         (gl_FUNC_FSEEKO): Inline it here.
14666
14667 2011-05-07  Bruno Haible  <bruno@clisp.org>
14668
14669         fseek: Move AC_LIBOBJ invocations to module description.
14670         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14671         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14672         * modules/fseek (configure.ac): ... to here.
14673
14674 2011-05-07  Bruno Haible  <bruno@clisp.org>
14675
14676         fseek: Respect rules for use of AC_LIBOBJ.
14677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14678         here...
14679         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14680
14681 2011-05-07  Bruno Haible  <bruno@clisp.org>
14682
14683         fseeko: Respect rules for use of AC_LIBOBJ.
14684         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14685         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14686         here...
14687         * modules/fseeko (configure.ac): ... to here.
14688
14689 2011-06-13  Bruno Haible  <bruno@clisp.org>
14690
14691         gnulib-tool: Allow comments in the 'Depends-on' section.
14692         * doc/gnulib.texi (Module description): Mention comment syntax in the
14693         Depends-on section.
14694         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14695
14696 2011-06-13  Bruno Haible  <bruno@clisp.org>
14697
14698         file-set.h: guard __attibute__ use, now that it's not always defined
14699         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14700         versions that support it.  This fixes a coreutils build failure with
14701         the vendor cc on HP-UX 11.31.
14702
14703 2011-06-12  Bruno Haible  <bruno@clisp.org>
14704
14705         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14706         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14707         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14708         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14709         (acl, aclsort): New declarations.
14710         (aclv_nontrivial): New declaration.
14711         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14712         (file_has_acl): Read also the second kind of HP-UX ACLs.
14713         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14714         kind of HP-UX ACLs if the first kind fails.
14715         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14716         second kind of HP-UX ACLs.
14717         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14718         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14719         agree.
14720         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14721         hpuxjfs.
14722         Handle hpuxjfs.
14723         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14724         hpuxjfs.
14725         Handle hpuxjfs.
14726         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14727         (func_test_same_acls): Use both lsacl and getacl.
14728         Handle hpuxjfs.
14729         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14730         (func_test_same_acls): Use both lsacl and getacl.
14731         Handle hpuxjfs.
14732
14733 2011-06-12  Bruno Haible  <bruno@clisp.org>
14734
14735         acl: Complete the 2010-08-10 fix.
14736         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14737         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14738         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14739         explicitly.
14740         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14741         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14742
14743 2011-06-12  Bruno Haible  <bruno@clisp.org>
14744
14745         spawn-pipe tests: Comments.
14746         * tests/test-spawn-pipe-child.c (main): Update comment.
14747         Reported by James Youngman <jay@gnu.org>.
14748
14749 2011-06-11  James Youngman  <jay@gnu.org>
14750
14751         New module 'stat-size'.
14752         * modules/stat-size: New module.  Provides macros for accessing
14753         file size information in instances of struct stat.  Depends on the
14754         fileblocks module because it calls st_blocks.
14755         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14756         * doc/gnulib.texi: Include stat-size.texi.
14757         * doc/stat-size.texi: Documentation for this module.
14758         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14759         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14760         AC_STRUCT_ST_BLOCKS.
14761
14762 2011-06-09  Bruno Haible  <bruno@clisp.org>
14763
14764         thread: Support pthreads-win32.
14765         * lib/glthread/thread.h (gl_thread_self): Define differently on
14766         pthreads-win32.
14767         (gl_null_thread): New declaration.
14768         (gl_thread_self_pointer): New macro.
14769         * lib/glthread/thread.c (gl_null_thread): New constant.
14770         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14771         gl_thread_self.
14772         * tests/test-tls.c: Likewise.
14773         Suggested by Paul Eggert. Reported by Eric Blake.
14774
14775 2011-06-09  Bruno Haible  <bruno@clisp.org>
14776
14777         thread: Fix confusion between NULL and 0.
14778         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14779         Reported by Paul Eggert.
14780
14781 2011-06-09  Bruno Haible  <bruno@clisp.org>
14782
14783         spawn-pipe tests: Avoid test failure on HP-UX 11.
14784         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14785         is closed.
14786
14787 2011-06-09  Bruno Haible  <bruno@clisp.org>
14788
14789         acl tests: Fix compilation error on HP-UX 11.
14790         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14791
14792 2011-06-09  Bruno Haible  <bruno@clisp.org>
14793
14794         rmdir: Avoid test failure on HP-UX 10.20.
14795         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14796         EEXIST.
14797
14798 2011-06-08  Eric Blake  <eblake@redhat.com>
14799
14800         perror: fix test on mingw
14801         * modules/perror-tests (Depends-on): Add dup2.
14802
14803         strerror_r-posix: fix on MacOS
14804         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14805         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14806         logic bug.
14807         * lib/strerror_r.c (strerror_r): Fix the bug.
14808         * lib/strerror.c (strerror): Likewise.
14809         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14810         problem.
14811         * doc/posix-functions/strerror.texi (strerror): Likewise.
14812         * doc/posix-functions/perror.texi (perror): Likewise.
14813         * tests/test-strerror.c (main): Enhance test.
14814         * tests/test-strerror_r.c (main): Likewise.
14815
14816 2011-06-08  Bruno Haible  <bruno@clisp.org>
14817
14818         gnulib-tool: Better isolation between different gnulib-tool invocations.
14819         * gnulib-tool: New option --witness-c-macro.
14820         (witness_c_macro): New variable.
14821         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14822         AM_CPPFLAGS define it as a C macro.
14823         (func_emit_tests_Makefile_am): Likewise.
14824         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14825         read it from there.
14826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14827         m4_define, not AC_DEFUN.
14828         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14829         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14830         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14831         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14832         s|...|...|, to substitute the values of the GNULIB_* module indicator
14833         variables.
14834         * modules/dirent (Makefile.am): Likewise.
14835         * modules/fcntl-h (Makefile.am): Likewise.
14836         * modules/iconv-h (Makefile.am): Likewise.
14837         * modules/langinfo (Makefile.am): Likewise.
14838         * modules/locale (Makefile.am): Likewise.
14839         * modules/math (Makefile.am): Likewise.
14840         * modules/netdb (Makefile.am): Likewise.
14841         * modules/poll-h (Makefile.am): Likewise.
14842         * modules/pty (Makefile.am): Likewise.
14843         * modules/search (Makefile.am): Likewise.
14844         * modules/signal (Makefile.am): Likewise.
14845         * modules/spawn (Makefile.am): Likewise.
14846         * modules/stdio (Makefile.am): Likewise.
14847         * modules/stdlib (Makefile.am): Likewise.
14848         * modules/string (Makefile.am): Likewise.
14849         * modules/sys_ioctl (Makefile.am): Likewise.
14850         * modules/sys_select (Makefile.am): Likewise.
14851         * modules/sys_socket (Makefile.am): Likewise.
14852         * modules/sys_stat (Makefile.am): Likewise.
14853         * modules/sys_times (Makefile.am): Likewise.
14854         * modules/sys_utsname (Makefile.am): Likewise.
14855         * modules/sys_wait (Makefile.am): Likewise.
14856         * modules/termios (Makefile.am): Likewise.
14857         * modules/time (Makefile.am): Likewise.
14858         * modules/unistd (Makefile.am): Likewise.
14859         * modules/wchar (Makefile.am): Likewise.
14860
14861 2011-06-08  Eric Blake  <eblake@redhat.com>
14862
14863         strerror: simplify replacement
14864         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14865         * modules/strerror (configure.ac): No prereqs needed here...
14866         * modules/strerror-override (configure.ac): ...but this needs it.
14867         (Files): Add file for needed prereq macro.
14868
14869 2011-06-08  Bruno Haible  <bruno@clisp.org>
14870
14871         strerror_r-posix: Tweaks.
14872         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14873         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14875         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14876         (gl_FUNC_STRERROR_R): ... to here.
14877         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14878
14879 2011-06-07  Eric Blake  <eblake@redhat.com>
14880
14881         perror: document fixed bugs
14882         * doc/posix-functions/perror.texi (perror): Document recent
14883         patches.
14884
14885 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14886
14887         stat-time: get_stat_birthtime failure is better-defined
14888         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14889         return a timestamp whose tv_sec and tv_nsec values are both -1.
14890         Previously, the spec said only that the tv_nsec value was negative.
14891         This upward-compatible change simplifies GNU tar a bit.
14892
14893 2011-06-07  Eric Blake  <eblake@redhat.com>
14894
14895         strerror_r-posix: work around cygwin 1.7.9
14896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14897         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14898         bug without replacing strerror_r.
14899         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14900         strerror_r is buggy, but without requiring strerror_r compilation.
14901         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14902
14903         test-perror: relax test to ignore cygwin bug
14904         * tests/test-perror2.c (main): Relax test on requiring detection
14905         of stream errors, and use unbuffered stream.
14906         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14907         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14908         * doc/posix-functions/fputc.texi (fputc): Likewise.
14909         * doc/posix-functions/fputs.texi (fputs): Likewise.
14910         * doc/posix-functions/fputws.texi (fputws): Likewise.
14911         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14912         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14913         * doc/posix-functions/getopt.texi (getopt): Likewise.
14914         * doc/posix-functions/perror.texi (perror): Likewise.
14915         * doc/posix-functions/printf.texi (printf): Likewise.
14916         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14917         * doc/posix-functions/psignal.texi (psignal): Likewise.
14918         * doc/posix-functions/putc.texi (putc): Likewise.
14919         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14920         Likewise.
14921         * doc/posix-functions/putchar.texi (putchar): Likewise.
14922         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14923         Likewise.
14924         * doc/posix-functions/puts.texi (puts): Likewise.
14925         * doc/posix-functions/putwc.texi (putwc): Likewise.
14926         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14927         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14928         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14929         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14930         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14931         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14932         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14933         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14934
14935 2011-05-22  Bruno Haible  <bruno@clisp.org>
14936
14937         strerror: Move AC_LIBOBJ invocations to module description.
14938         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14939         gl_PREREQ_STRERROR invocations from here...
14940         * modules/strerror (configure.ac): ... to here.
14941
14942 2011-05-21  Bruno Haible  <bruno@clisp.org>
14943
14944         perror: Use common idiom.
14945         * modules/perror (configure.ac): Reorder statements.
14946
14947 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14948
14949         tests: fix usage message in 'mktempd_'
14950         * tests/init.sh (mktempd_): In the usage message, use literal
14951         'mktempd_', not '$ME' (which is even undefined), as the name of
14952         the subroutine.
14953
14954 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14955
14956         tests init: new function 'fatal_', for hard errors
14957         Before this patch, the only way offered by tests/init.sh to
14958         properly signal a hard error was the `framework_failure_'
14959         function.  But the error message issued by that function,
14960         as its name would suggest, refers to a set-up failure in the
14961         testsuite, while hard errors can obviously also be due to
14962         other reasons.  The best way to fix this inconsistency is to
14963         introduce a new function with a more general error message.
14964         * tests/init.sh (fatal_): New function.
14965
14966 2011-06-06  Eric Blake  <eblake@redhat.com>
14967
14968         canonicalize-lgpl: use common idiom
14969         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14970         over newer POSIX -Rf.
14971         Reported by Bruno Haible.
14972
14973         canonicalize-lgpl: work around AIX realpath bug
14974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14975         * doc/posix-functions/realpath.texi (realpath): Document it.
14976         Reported by Bruno Haible.
14977
14978         strerror: work around FreeBSD bug
14979         * lib/strerror.c (strerror): Special case 0.
14980         Reported by Bruno Haible.
14981
14982         strerror-override: avoid bloating errno module
14983         * modules/errno (Files, configure.ac): Move replacement strings...
14984         * modules/strerror-override: ...to new module.
14985         * modules/strerror (Depends-on): Add strerror-override.
14986         * modules/strerror_r-posix (Depends-on): Likewise.
14987         * MODULES.html.sh: Document new module.
14988         Reported by Bruno Haible.
14989
14990 2011-06-06  Bruno Haible  <bruno@clisp.org>
14991
14992         spawn-pipe tests: Rename program.
14993         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14994         * tests/test-spawn-pipe-child.c: Update comment.
14995         * tests/test-spawn-pipe.sh: Update.
14996         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14997
14998         spawn-pipe tests: Link the child program only against libc.
14999         * tests/test-spawn-pipe-child.c: New file, extracted from
15000         tests/test-spawn-pipe.c.
15001         (main): Expect only one argument.
15002         (is_open): New function, copied from tests/test-pipe.c.
15003         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15004         (child_main): Remove function.
15005         (test_pipe): Pass only one argument to the child program.
15006         (main): Remove child process code. Expect the child program's name as
15007         first argument.
15008         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15009         argument.
15010         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15011         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15012         test-spawn-pipe-child against no libraries.
15013
15014 2011-06-06  Bruno Haible  <bruno@clisp.org>
15015
15016         careadlinkat: Avoid mismatch between ssize_t and int.
15017         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15018         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15019
15020 2011-06-06  Jim Meyering  <meyering@redhat.com>
15021
15022         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15023         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15024         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15025
15026 2011-06-05  Bruno Haible  <bruno@clisp.org>
15027
15028         ansi-c++-opt: Interoperability with libtool.
15029         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15030         set the variable to "no", not to ":".
15031         * NEWS: Mention the change.
15032
15033 2011-06-05  Bruno Haible  <bruno@clisp.org>
15034
15035         acl: Fix test failure on AIX 7.
15036         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15037         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15038
15039 2011-06-05  Bruno Haible  <bruno@clisp.org>
15040
15041         pipe-filter-ii: Fix test failure on AIX and IRIX.
15042         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15043         with EAGAIN, retry with a smaller buffer size.
15044
15045 2011-06-05  Bruno Haible  <bruno@clisp.org>
15046
15047         localename: Fix link dependencies.
15048         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15049         * modules/localename-tests (Makefile.am): Link test-localename with
15050         $(LIBTHREAD).
15051
15052 2011-06-05  Bruno Haible  <bruno@clisp.org>
15053
15054         error: Avoid gcc warning.
15055         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15056
15057 2011-06-05  Bruno Haible  <bruno@clisp.org>
15058
15059         unsetenv: Avoid gcc warning.
15060         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15061
15062 2011-06-05  Bruno Haible  <bruno@clisp.org>
15063
15064         setenv: Avoid gcc warning.
15065         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15066
15067 2011-06-05  Bruno Haible  <bruno@clisp.org>
15068
15069         sys_select: Ensure memset is declared also on AIX 7.
15070         * lib/sys_select.in.h: Include <string.h> also on AIX.
15071         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15072         self-contained also on AIX 7.1.
15073
15074 2011-06-04  Jim Meyering  <meyering@redhat.com>
15075
15076         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15077         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15078         function name, "error".
15079         (_gl_translatable_diag_func_re): New configurable variable.
15080
15081 2011-06-04  Bruno Haible  <bruno@clisp.org>
15082
15083         getopt: Avoid gcc warning.
15084         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15085
15086 2011-06-04  Bruno Haible  <bruno@clisp.org>
15087
15088         strerror_r: Fix comments.
15089         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15090         commit.
15091
15092 2011-06-04  Bruno Haible  <bruno@clisp.org>
15093
15094         perror: Fix compilation error.
15095         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15096         Undefine fprintf, not sprintf.
15097         * modules/perror (Depends-on): Remove intprops, verify.
15098
15099 2011-06-04  Bruno Haible  <bruno@clisp.org>
15100
15101         setlocale: Enable replacement on Cygwin 1.5.
15102         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15103         Cygwin 1.5.x.
15104         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15105         LC_CTYPE category also exists on Cygwin 1.5.x.
15106
15107 2011-06-04  Bruno Haible  <bruno@clisp.org>
15108
15109         strerror-override: Don't disable symbol renamings.
15110         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15111         * lib/strerror-override.c: Include config.h.
15112         (strerror_override): Don't undefine.
15113
15114 2011-06-03  Bruno Haible  <bruno@clisp.org>
15115
15116         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15117         * lib/localename.h: Update copyright header.
15118         * lib/localename.c: Likewise.
15119         * lib/relocatable.h: Likewise.
15120         * lib/relocatable.c: Likewise.
15121
15122 2011-06-02  Bruno Haible  <bruno@clisp.org>
15123
15124         doc: Fix a module name.
15125         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15126
15127 2011-06-02  Bruno Haible  <bruno@clisp.org>
15128
15129         pipe2: Remove dependency on 'nonblocking' module.
15130         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15131         O_NONBLOCK is defined by gnulib.
15132         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15133         is zero.
15134         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15135         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15136         defined by gnulib.
15137         (get_nonblocking_flag): New function.
15138         (main): Test O_NONBLOCK flag only if it is nonzero.
15139         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15140
15141 2011-06-03  Jim Meyering  <meyering@redhat.com>
15142
15143         maint: three new prohibit-header-without-use rules
15144         Prohibit use of cloexec.h, posixver.h, same.h without use.
15145         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15146         (sc_prohibit_posixver_without_use): Likewise.
15147         (sc_prohibit_same_without_use): Likewise.
15148
15149 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15150
15151         allocator: 'die' routine is now given requested size
15152         * lib/allocator.h (struct allocator.die): New size arg.
15153         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15154         If the actual problem is an ssize_t limitation, not a size_t or
15155         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15156
15157 2011-06-01  Eric Blake  <eblake@redhat.com>
15158
15159         strerror: drop strerror_r dependency
15160         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15161         * lib/strerror-override.c (strerror_override): ...to new file.
15162         * lib/strerror-override.h: Add prototype.
15163         * lib/strerror-impl.h: Delete.
15164         * lib/strerror.c (strerror): New implementation.
15165         * modules/errno (Files): Add new files.
15166         (configure.ac): Compile new file as appropriate.
15167         * modules/strerror (Files): Drop unused file.
15168         (Depends-on): Drop strerror_r-posix.
15169         * MODULES.html.sh: Document strerror_r-posix.
15170         Requested by Sam Steingold.
15171
15172         perror: call strerror_r directly
15173         * modules/perror (Files): Drop strerror-impl.h.
15174         * lib/perror.c (perror): Use our own stack buffer, rather than
15175         calling a wrapper that uses static storage.
15176         * doc/posix-functions/perror.texi (perror): Document a limitation
15177         of our replacement.
15178
15179         strerror_r: fix includes for FreeBSD
15180         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15181         since we use abort on some platforms.
15182         Reported by Matthias Bolte.
15183
15184 2011-05-31  Bruno Haible  <bruno@clisp.org>
15185
15186         Fix link errors in tests: openat-die uses gettext-h.
15187         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15188         against $(LIBINTL).
15189         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15190         against $(LIBINTL).
15191         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15192         $(LIBINTL).
15193         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15194         against $(LIBINTL).
15195         * modules/linkat-tests (Makefile.am): Link test-linkat against
15196         $(LIBINTL).
15197         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15198         $(LIBINTL).
15199         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15200         against $(LIBINTL).
15201         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15202         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15203         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15204         $(LIBINTL).
15205         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15206         $(LIBINTL).
15207         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15208         $(LIBINTL).
15209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15210
15211 2011-05-31  Bruno Haible  <bruno@clisp.org>
15212
15213         Fix link errors in tests: wait-process uses gettext-h.
15214         * modules/nonblocking-pipe-tests (Makefile.am): Set
15215         test_nonblocking_pipe_main_LDADD.
15216         * modules/nonblocking-socket-tests (Makefile.am): Link
15217         test-nonblocking-socket-main against $(LIBINTL).
15218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15219
15220 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15221
15222         assert-h: work around 'verify' incompatibility
15223         * lib/verify.h: Use @...@ directives, not ifdef.
15224         * modules/assert-h (assert.h): Implement the directives.
15225         (assert.h): Substitute the symbol-prefix more consistently.
15226
15227 2011-05-29  Jim Meyering  <meyering@redhat.com>
15228
15229         trim: remove three superfluous assignments
15230         * lib/trim.c (trim2): Remove three superfluous assignments
15231         and correct brace positioning.
15232
15233 2011-05-29  Bruno Haible  <bruno@clisp.org>
15234
15235         wctype-h: Avoid namespace pollution on Solaris 2.6.
15236         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15237         identifiers.
15238         * doc/posix-headers/wctype.texi: Mention the problem.
15239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15240
15241 2011-05-28  Jim Meyering  <meyering@redhat.com>
15242
15243         parse-datetime.y: accommodate -Wstrict-overflow
15244         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15245         placate -Wstrict-overflow.
15246
15247         trim: avoid a warning from -O2 -Wstrict-overflow
15248         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15249
15250 2011-05-29  Bruno Haible  <bruno@clisp.org>
15251
15252         gnulib-tool: Fix bug in yesterday's commit.
15253         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15254         twice.
15255
15256 2011-05-29  Bruno Haible  <bruno@clisp.org>
15257
15258         Allow multiple gnulib generated include files to be combined.
15259         * gnulib-tool (func_compute_include_guard_prefix): New function.
15260         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15261         ${gl_include_guard_prefix} references.
15262         (func_import, func_create_testdir): Invoke
15263         func_compute_include_guard_prefix.
15264         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15265         * lib/ctype.in.h: Likewise.
15266         * lib/dirent.in.h: Likewise.
15267         * lib/errno.in.h: Likewise.
15268         * lib/fcntl.in.h: Likewise.
15269         * lib/float.in.h: Likewise.
15270         * lib/getopt.in.h: Likewise.
15271         * lib/iconv.in.h: Likewise.
15272         * lib/langinfo.in.h: Likewise.
15273         * lib/locale.in.h: Likewise.
15274         * lib/math.in.h: Likewise.
15275         * lib/netdb.in.h: Likewise.
15276         * lib/netinet_in.in.h: Likewise.
15277         * lib/poll.in.h: Likewise.
15278         * lib/pthread.in.h: Likewise.
15279         * lib/pty.in.h: Likewise.
15280         * lib/sched.in.h: Likewise.
15281         * lib/se-selinux.in.h: Likewise.
15282         * lib/search.in.h: Likewise.
15283         * lib/signal.in.h: Likewise.
15284         * lib/spawn.in.h: Likewise.
15285         * lib/stdarg.in.h: Likewise.
15286         * lib/stddef.in.h: Likewise.
15287         * lib/stdint.in.h: Likewise.
15288         * lib/stdio.in.h: Likewise.
15289         * lib/stdlib.in.h: Likewise.
15290         * lib/string.in.h: Likewise.
15291         * lib/strings.in.h: Likewise.
15292         * lib/sys_file.in.h: Likewise.
15293         * lib/sys_ioctl.in.h: Likewise.
15294         * lib/sys_select.in.h: Likewise.
15295         * lib/sys_socket.in.h: Likewise.
15296         * lib/sys_stat.in.h: Likewise.
15297         * lib/sys_time.in.h: Likewise.
15298         * lib/sys_times.in.h: Likewise.
15299         * lib/sys_uio.in.h: Likewise.
15300         * lib/sys_utsname.in.h: Likewise.
15301         * lib/sys_wait.in.h: Likewise.
15302         * lib/sysexits.in.h: Likewise.
15303         * lib/termios.in.h: Likewise.
15304         * lib/time.in.h: Likewise.
15305         * lib/unistd.in.h: Likewise.
15306         * lib/wchar.in.h: Likewise.
15307         * lib/wctype.in.h: Likewise.
15308         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15309         * modules/ctype (Makefile.am): Likewise.
15310         * modules/dirent (Makefile.am): Likewise.
15311         * modules/errno (Makefile.am): Likewise.
15312         * modules/fcntl-h (Makefile.am): Likewise.
15313         * modules/float (Makefile.am): Likewise.
15314         * modules/getopt-posix (Makefile.am): Likewise.
15315         * modules/iconv-h (Makefile.am): Likewise.
15316         * modules/langinfo (Makefile.am): Likewise.
15317         * modules/locale (Makefile.am): Likewise.
15318         * modules/math (Makefile.am): Likewise.
15319         * modules/netdb (Makefile.am): Likewise.
15320         * modules/netinet_in (Makefile.am): Likewise.
15321         * modules/poll-h (Makefile.am): Likewise.
15322         * modules/pthread (Makefile.am): Likewise.
15323         * modules/pty (Makefile.am): Likewise.
15324         * modules/sched (Makefile.am): Likewise.
15325         * modules/search (Makefile.am): Likewise.
15326         * modules/selinux-h (Makefile.am): Likewise.
15327         * modules/signal (Makefile.am): Likewise.
15328         * modules/spawn (Makefile.am): Likewise.
15329         * modules/stdarg (Makefile.am): Likewise.
15330         * modules/stddef (Makefile.am): Likewise.
15331         * modules/stdint (Makefile.am): Likewise.
15332         * modules/stdio (Makefile.am): Likewise.
15333         * modules/stdlib (Makefile.am): Likewise.
15334         * modules/string (Makefile.am): Likewise.
15335         * modules/strings (Makefile.am): Likewise.
15336         * modules/sys_file (Makefile.am): Likewise.
15337         * modules/sys_ioctl (Makefile.am): Likewise.
15338         * modules/sys_select (Makefile.am): Likewise.
15339         * modules/sys_socket (Makefile.am): Likewise.
15340         * modules/sys_stat (Makefile.am): Likewise.
15341         * modules/sys_time (Makefile.am): Likewise.
15342         * modules/sys_times (Makefile.am): Likewise.
15343         * modules/sys_uio (Makefile.am): Likewise.
15344         * modules/sys_utsname (Makefile.am): Likewise.
15345         * modules/sys_wait (Makefile.am): Likewise.
15346         * modules/sysexits (Makefile.am): Likewise.
15347         * modules/termios (Makefile.am): Likewise.
15348         * modules/time (Makefile.am): Likewise.
15349         * modules/unistd (Makefile.am): Likewise.
15350         * modules/wchar (Makefile.am): Likewise.
15351         * modules/wctype-h (Makefile.am): Likewise.
15352         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15353
15354 2011-05-29  Bruno Haible  <bruno@clisp.org>
15355
15356         assert-h: Allow multiple gnulib generated replacements to coexist.
15357         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15358
15359 2011-05-29  Bruno Haible  <bruno@clisp.org>
15360
15361         argp: Allow coexistence with strerror_r-posix module.
15362         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15363         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15364         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15365         not the glibc signature.
15366
15367 2011-05-28  Bruno Haible  <bruno@clisp.org>
15368
15369         gnulib-tool: Alternative structure of testdirs, similar to --import.
15370         * gnulib-tool: New option --single-configure.
15371         (func_usage): Document it.
15372         (single_configure): New variable.
15373         (func_modules_transitive_closure_separately,
15374         func_modules_transitive_closure_separately,
15375         func_determine_use_libtests, func_modules_add_dummy_separately,
15376         func_modules_to_filelist_separately): New functions, extracted from
15377         func_import.
15378         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15379         (func_import): Use the new functions.
15380         (func_create_testdir): Set final_modules. Handle $single_configure =
15381         true case.
15382
15383 2011-05-28  Bruno Haible  <bruno@clisp.org>
15384
15385         getloadavg: Remove an unreliable safety check.
15386         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15387         getloadavg.c is in place.
15388         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15389         Reported by Sam Steingold <sds@gnu.org>.
15390
15391 2011-05-28  Bruno Haible  <bruno@clisp.org>
15392
15393         doc: Cleanup yet another file produced by texinfo.tex.
15394         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15395
15396 2011-05-28  Bruno Haible  <bruno@clisp.org>
15397
15398         Finish the conditional dependencies mechanism.
15399         * gnulib-tool: New option --no-conditional-dependencies.
15400         (func_usage): Document it. Don't mark --conditional-dependencies as
15401         experimental.
15402         (cond_dependencies): The possible values can now be true, false, empty.
15403         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15404         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15405         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15406
15407 2011-05-28  Bruno Haible  <bruno@clisp.org>
15408
15409         doc: Use a recent texinfo.tex.
15410         * doc/Makefile (tex_opts): New variable.
15411         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15412
15413 2011-05-28  Jim Meyering  <meyering@redhat.com>
15414
15415         intprops.h: adjust comment to match code change
15416         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15417         only once, it *may* have side effects.  Also fix an unrelated typo.
15418         (_GL_INT_SIGNED): Likewise.
15419
15420 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15421
15422         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15423
15424 2011-05-26  Bruno Haible  <bruno@clisp.org>
15425
15426         mbsrchr: Avoid collision with system function on Interix.
15427         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15428         Reported by Markus Duft <mduft@gentoo.org>.
15429
15430 2011-05-15  James Youngman  <jay@gnu.org>
15431
15432         getopt: for ambiguous options, enumerate the possibilities.
15433         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15434         the ambiguous options when an ambiguous prefix is given. This was
15435         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15436         glibc change was
15437         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15438
15439 2011-05-25  Eric Blake  <eblake@redhat.com>
15440
15441         getcwd: work around mingw bug
15442         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15443         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15444         Reported by Matthias Bolte.
15445
15446 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15447
15448         test-intprops: disable -Wtype-limits diagnostics
15449         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15450         diagnostics.  Otherwise, the integer overflow macros generate many
15451         diagnostics.  Reported by Jim Meyering in
15452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15453
15454         intprops: shorten, to pacify gcc -Woverlength-strings
15455         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15456         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15457         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15458         likely to run afoul of C compiler limits for string constant lengths.
15459         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15460
15461 2011-05-24  Eric Blake  <eblake@redhat.com>
15462
15463         docs: document recently fixed glibc printf bug
15464         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15465         * doc/posix-functions/printf.texi (printf): Likewise.
15466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15468
15469         closein-tests: convert to init.sh
15470         * modules/closein-tests (Files): Add init.sh
15471         * tests/test-closein.sh Use it.
15472
15473         yesno-tests: convert to init.sh
15474         * modules/yesno-tests (Files): Add init.sh.
15475         * tests/test-yesno.sh: Use it.
15476
15477         atexit-tests: ensure reliable exit status
15478         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15479         Reported by Bruno Haible.
15480
15481 2011-05-24  Bruno Haible  <bruno@clisp.org>
15482
15483         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15485         gl_PREREQ_STRERROR_R invocations from here...
15486         * modules/strerror_r-posix (configure.ac): ... to here.
15487
15488 2011-05-24  Eric Blake  <eblake@redhat.com>
15489
15490         strerror_r: fix missing header
15491         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15492
15493         strerror_r: fix AIX test failures
15494         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15495         ERANGE failure.
15496
15497         strerror_r: fix Solaris test failures
15498         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15499         failures.
15500         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15501
15502         strerror_r: enforce POSIX recommendations
15503         * lib/strerror_r.c (safe_copy): New helper method.
15504         (strerror_r): Guarantee a non-empty string.
15505         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15506         recent POSIX rulings and to match our strerror guarantees.
15507         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15508
15509 2011-05-24  Jim Meyering  <meyering@redhat.com>
15510
15511         test-perror2.c: avoid warning about unused variable
15512         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15513
15514 2011-05-24  Eric Blake  <eblake@redhat.com>
15515
15516         perror: avoid spurious test failure on HP-UX
15517         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15518
15519         tests: fix logic bug in init.sh
15520         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15521         shell.
15522
15523 2011-05-24  Jim Meyering  <meyering@redhat.com>
15524
15525         utimensat: do not reference an out-of-scope buffer
15526         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15527         declared in an inner scope, yet "times" would be dereferenced outside
15528         the scope in which "ts" was valid.
15529         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15530         of ts[2] "out/up", so that the use of aliased "times" (via
15531         "times = ts;") does not end up referencing an out-of-scope "ts"
15532
15533         opendir-safer.c: don't clobber errno; don't close negative FD
15534         * lib/opendir-safer.c (opendir_safer):
15535         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15536         file descriptor, and more importantly, don't clobber the
15537         offending errno value with EINVAL.  Before, upon failure
15538         of dup_safer, we would pass the negative file descriptor to
15539         fdopendir, which would clobber errno.
15540
15541 2011-05-23  Bruno Haible  <bruno@clisp.org>
15542
15543         idcache: Fix module description.
15544         * modules/idcache (Include): Set to "idcache.h".
15545
15546 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15547
15548         gnulib-tool: fix portability problem with MacOS sed
15549         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15550         before the "}".  Problem reported by Leo in
15551         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15552         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15553         sed_extract_condition1, sed_extract_condition2.
15554
15555 2011-05-23  Bruno Haible  <bruno@clisp.org>
15556
15557         hash: Simplify autoconf macro.
15558         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15559
15560 2011-05-23  Bruno Haible  <bruno@clisp.org>
15561
15562         getugroups: Fix module description.
15563         * modules/getugroups (Include): Set to "getugroups.h".
15564
15565 2011-05-23  Bruno Haible  <bruno@clisp.org>
15566
15567         linkat: Simplify autoconf macro.
15568         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15569
15570 2011-05-23  Bruno Haible  <bruno@clisp.org>
15571             Eric Blake  <eblake@redhat.com>
15572
15573         linkat, renameat: Update dependencies.
15574         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15575         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15576         symlinkat.
15577
15578 2011-05-23  Jim Meyering  <meyering@redhat.com>
15579
15580         maint.mk: more tight_scope improvements
15581         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15582         (_gl_TS_headers): Define only in if-0'd block.
15583         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15584         sometimes we must *not* use it.  Adjust uses accordingly.
15585         (sc_tight_scope): Use much simpler grep-based test to determine
15586         whether we skip this rule.
15587
15588         maint.mk: generalize/improve the tight-scope rule
15589         * top/maint.mk: Emit a warning when the test is skipped.
15590         (_gl_TS_dir): Add $(srcdir)/ prefix.
15591         (_gl_TS_function_match): Simplify, rather than trying
15592         to enumerate common types.  Otherwise, it would fail to match an
15593         "extern unsigned char const *" declaration in idutils.
15594         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15595         a way to support use of that type of macro.
15596         (_gl_TS_var_match): Simplify regexp.
15597         (_gl_TS_obj_files): New configurable variable.
15598         (_gl_TS_headers): Likewise.
15599
15600 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         verify: fix bug when gnulib <assert.h> is also included
15603         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15604         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15605         Perhaps there's a better way, but this fixes the immediate problem.
15606         Problem reported by Bruno Haible in
15607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15608
15609 2011-05-22  Bruno Haible  <bruno@clisp.org>
15610
15611         xgetcwd: Simplify autoconf macro.
15612         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15613
15614 2011-05-22  Bruno Haible  <bruno@clisp.org>
15615
15616         New module 'mktime-internal'.
15617         * modules/mktime-internal: New file.
15618         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15619         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15620         mktime_internal as a C macro if libc has __mktime_internal.
15621         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15622         conditions.
15623         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15624
15625 2011-05-22  Bruno Haible  <bruno@clisp.org>
15626
15627         timegm: Correct mktime replacement statements.
15628         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15629         defining mktime as a C macro. This completes a 2009-07-28 commit.
15630
15631 2011-05-22  Bruno Haible  <bruno@clisp.org>
15632
15633         timegm: Simplify autoconf macro.
15634         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15635
15636 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15637
15638         clock-time: change to LGPLv2+.
15639         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15640         BSD-like but we have no mark for that; this is good enough for now.
15641
15642 2011-05-21  Bruno Haible  <bruno@clisp.org>
15643
15644         strerror_r: Fix comments.
15645         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15646
15647 2011-05-21  Bruno Haible  <bruno@clisp.org>
15648
15649         relocatable-prog-wrapper: Fix possible link error.
15650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15651         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15652         (gl_FUNC_SETENV): ... to here.
15653         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15654         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15655
15656 2011-05-21  Bruno Haible  <bruno@clisp.org>
15657
15658         relocatable-prog-wrapper: Assume strerror() exists.
15659         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15660         m4/strerror.m4.
15661         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15662         * lib/relocwrapper.c: Remove mention of strerror module.
15663         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15664         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15665         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15666         C macro.
15667
15668 2011-05-21  Bruno Haible  <bruno@clisp.org>
15669
15670         select: Simplify replacement idiom.
15671         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15672         Win32 platforms.
15673         * lib/sys_select.in.h (select): Simplify accordingly.
15674         * modules/select (Depends-on): Likewise.
15675
15676 2011-05-21  Bruno Haible  <bruno@clisp.org>
15677
15678         mkdir-p: Simplify autoconf macro.
15679         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15680         gl_FUNC_LCHOWN.
15681
15682 2011-05-21  Eric Blake  <eblake@redhat.com>
15683
15684         strerror_r: avoid clobbering strerror on cygwin
15685         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15686         fall back instead to sys_errlist.
15687         * modules/strerror (configure.ac): Add witness.
15688         * tests/test-strerror_r.c (main): Enhance test.
15689         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15690         * tests/test-perror2.c (main): Free memory before exit.
15691
15692 2011-05-21  Bruno Haible  <bruno@clisp.org>
15693
15694         mkdtemp: Use gnulib naming conventions.
15695         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15696         * modules/mkdtemp (configure.ac): Update.
15697
15698 2011-05-20  Eric Blake  <eblake@redhat.com>
15699
15700         strerror_r: avoid corrupting errno on Solaris
15701         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15702         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15703
15704         strerror_r: avoid compiler warning
15705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15706
15707         strerror_r: simplify AIX code
15708         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15709
15710         test-perror: avoid spurious failure on FreeBSD
15711         * modules/perror-tests (Depends-on): Add strerror, now that
15712         strerror_r no longer pulls it in.
15713
15714 2011-05-20  Bruno Haible  <bruno@clisp.org>
15715
15716         strerror_r-posix: Remove unused dependencies.
15717         * modules/strerror_r-posix (Depends-on): Remove strerror.
15718         Reported by Eric Blake.
15719
15720 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15721
15722         intprops: remove assumption about A|B representation
15723         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15724         is a valid integer if both A and B are.  Although this is true for
15725         all known practical hosts, the C standard doesn't guarantee it,
15726         and the code need not assume it.  Also, this change may work around
15727         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15729
15730 2011-05-20  Eric Blake  <eblake@redhat.com>
15731
15732         perror: work around FreeBSD bug
15733         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15734         is broken.  Move AC_LIBOBJ...
15735         * modules/perror (configure.ac): Here.
15736         * doc/posix-functions/perror.texi (perror): Document this.
15737         * tests/test-perror2.c (main): Enhance test.
15738
15739         test-perror: check for strerror interactions
15740         * tests/macros.h (STREQ): Add macro.
15741         * modules/perror-tests (Files): Add second test.
15742         * tests/test-perror2.c (main): New file.
15743         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15744
15745         test-perror: rewrite to use init script
15746         * modules/perror-tests (Files): Add init.sh.
15747         * tests/test-perror.sh: Use temporary directory.
15748
15749 2011-05-20  Jim Meyering  <meyering@redhat.com>
15750
15751         maint: replace misused "a" with "an"
15752         * doc/intprops.texi: "a integer"
15753         * doc/regex.texi: "a explanation"
15754         * lib/alignof.h: "a object"
15755         * lib/argmatch.h: "a explanation"
15756         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15757         * lib/stdint.in.h: "a integer"
15758         * lib/userspec.c: "a owner"
15759         * doc/gnulib.texi: Fix "a idea", and reword.
15760
15761 2011-05-19  Jim Meyering  <meyering@redhat.com>
15762
15763         maint: correct misuse of "a" and "an"
15764         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15765         * lib/argp-help.c: "an docum...": s/an/a/
15766         * lib/argp-parse.c: "An vector": s/An/A/
15767         * lib/execute.c: "an native": s/an/a/
15768         * lib/spawn-pipe.c: Likewise.
15769         * lib/gc.h: "an Gc_rc": s/an/a/
15770         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15771         * lib/fts.c: "an stat.st_dev": s/an/a/
15772
15773 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15774
15775         intprops-tests: work around HP-UX 11.23 cc bug with constants
15776         * tests/test-intprops.c (VERIFY): New macro.
15777         (main): Use it, instead of verify, to work around the compiler bug; see
15778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15779
15780         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15781         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15782         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15783         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15784         (_GL_REMAINDER_OVERFLOW): Use it.
15785
15786         intprops-tests: revert unsigned part of previous change
15787         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15788         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15789         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15791
15792 2011-05-19  Bruno Haible  <bruno@clisp.org>
15793
15794         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15795         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15796         strerror_r() returned without filling the buffer.
15797         Reported by Eric Blake.
15798
15799 2011-05-19  Eric Blake  <eblake@redhat.com>
15800
15801         strerror_r: guarantee unchanged errno
15802         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15803         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15804         failure.
15805         * tests/test-strerror_r.c (main): Enhance test.
15806
15807 2011-05-19  Bruno Haible  <bruno@clisp.org>
15808
15809         strerror_r: Reorder #if blocks.
15810         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15811         for consistency with the previous commit.
15812
15813 2011-05-19  Bruno Haible  <bruno@clisp.org>
15814
15815         perror: Avoid clobbering the strerror buffer when possible.
15816         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15817         * lib/strerror.c: Include it.
15818         * modules/strerror (Files): Add lib/strerror-impl.h.
15819         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15820         (my_strerror): New function, defined through lib/strerror-impl.h.
15821         (perror): Use it instead of strerror.
15822         * modules/perror (Files): Add lib/strerror-impl.h.
15823         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15824
15825 2011-05-19  Eric Blake  <eblake@redhat.com>
15826
15827         strerror_r: fix on newer cygwin
15828         * lib/strerror_r.c (strerror_r): Cygwin now has
15829         __xpg_strerror_r, use it.
15830
15831 2011-05-19  Bruno Haible  <bruno@clisp.org>
15832
15833         strerror_r: Avoid clobbering the strerror buffer when possible.
15834         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15835         (sys_nerr, sys_errlist): New declarations.
15836         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15837         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15838         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15839
15840 2011-05-19  Bruno Haible  <bruno@clisp.org>
15841
15842         strerror_r: Fix test failure on mingw.
15843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15844         EXTEND_STRERROR_R.
15845         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15846         macros from errno.in.h instead.
15847
15848 2011-05-19  Eric Blake  <eblake@redhat.com>
15849
15850         strerror: relax test for Solaris
15851         * tests/test-strerror.c (main): Permit Solaris behavior.
15852         * tests/test-strerror_r.c (main): Likewise.
15853
15854         strerror: enforce POSIX ruling on strerror(0)
15855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15857         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15858         * doc/posix-functions/strerror.texi (strerror): Document it.
15859         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15860         * tests/test-strerror.c (main): Strengthen test.
15861         * tests/test-strerror_r.c (main): Likewise.
15862
15863 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15864
15865         intprop-tests: port to older and more-pedantic compilers
15866         * modules/intprops-tests (Files): Add tests/macros.h.
15867         * tests/test-intprops.c: Include macros.h.
15868         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15869         it's no longer documented to expand to an integer constant expression.
15870         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15871         argument is floating point, as it's no longer documented to expand
15872         to an integer constant expression in that case.
15873         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15874         compiler bugs reported by Bruno Haible.  See
15875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15876         (U0, U1): New constants, to work around the same bugs.  Also,
15877         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15878
15879         intprops: work around C compiler bugs
15880         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15881         bug in Sun C 5.11 2010/08/13 and other compilers; see
15882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15883
15884         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15885         * doc/intprops.texi (Integer Type Determination): Fix
15886         documentation for TYPE_IS_INTEGER: it returns an constant
15887         expression, not an integer constant expression.  Fix doc for
15888         TYPE_SIGNED: it returns an integer constant expression only if its
15889         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15890         hardly worth documented that way....)
15891
15892 2011-05-18  Bruno Haible  <bruno@clisp.org>
15893
15894         strerror_r: Avoid clobbering the strerror buffer when possible.
15895         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15896         Handle gnulib defined errno values here. When strerror() returns NULL
15897         or an empty string, return EINVAL.
15898         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15899         gnulib defined errno values here.
15900         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15901
15902 2011-05-18  Eric Blake  <eblake@redhat.com>
15903
15904         fnmatch: avoid compiler warning
15905         * lib/fnmatch_loop.c (FCT): Use correct type.
15906         Reported by Matthias Bolte.
15907
15908 2011-05-13  Jim Meyering  <meyering@redhat.com>
15909
15910         maint.mk: three new prohibit_<HDR>_without_use rules
15911         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15912         (sc_prohibit_stdio-safer_without_use): Likewise.
15913         (sc_prohibit_xfreopen_without_use): Likewise.
15914
15915 2011-05-17  Jim Meyering  <meyering@redhat.com>
15916
15917         announce-gen: fail if the NEWS delta is empty
15918         If there's nothing noteworthy in NEWS, then either you forgot
15919         or you shouldn't be releasing.
15920         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15921
15922 2011-05-17  Pádraig Brady <P@draigBrady.com>
15923
15924         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15925         reserved symbols starting with double underscore from the check.
15926
15927 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15928
15929         intprops: add doc
15930         * doc/intprops.texi: New file, documenting intprops.
15931         * doc/gnulib.texi (Particular Modules): Include it.
15932
15933         verify: add doc to gnulib manual and fix example
15934         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15935         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15936         (Compile-time Assertions): Fix example so it can't overflow.
15937
15938 2011-05-17  Jim Meyering  <meyering@redhat.com>
15939
15940         warnings.m4: don't usurp save_CPPFLAGS variable name
15941         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15942
15943         doc: fix typo
15944         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15945
15946 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15947             Bruno Haible  <bruno@clisp.org>
15948
15949         doc: Tweak recent change.
15950         * README (Portability guidelines): Tweak new text.
15951         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15952         Interix 6.1.
15953
15954 2011-05-16  Eric Blake  <eblake@redhat.com>
15955
15956         inttypes: avoid autoconf warning
15957         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15958         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15959
15960 2011-05-16  Sam Steingold <sds@gnu.org>
15961         and Eric Blake  <eblake@redhat.com>
15962
15963         vc-list-files: accept multiple directory operands
15964         * build-aux/vc-list-files: Iterate over all remaining operands.
15965
15966 2011-05-16  Bruno Haible  <bruno@clisp.org>
15967
15968         Fix confusion regarding deprecated modules.
15969         * modules/calloc (Status, Notice): Mark module as deprecated, not
15970         obsolete.
15971         * modules/fnmatch-posix (Status, Notice): Likewise.
15972         * modules/getdate (Status, Notice): Likewise.
15973         * modules/getopt (Status, Notice): Likewise.
15974         * modules/malloc (Status, Notice): Likewise.
15975         * modules/pipe (Status, Notice): Likewise.
15976         * modules/realloc (Status, Notice): Likewise.
15977         * modules/rename-dest-slash (Status, Notice): Likewise.
15978         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15979         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15980         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15981         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15982         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15983
15984 2011-05-16  Bruno Haible  <bruno@clisp.org>
15985
15986         doc: List the target platforms.
15987         * doc/gnulib-intro.texi (Target Platforms): New section.
15988         * doc/gnulib.texi (Introduction): Update menu.
15989         * README (Portability guidelines): Refer to the new section. Update
15990         statement about oldest supported environment. Remove rationale why
15991         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15992         unportable C89 function.
15993         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15994         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15995
15996 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15997
15998         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15999
16000 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16001
16002         intprops-tests: new module
16003         * modules/intprops-tests, tests/test-intprops.c: New files.
16004
16005         intprops: add safe, portable integer overflow checking
16006         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16007         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16008         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16009         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16010         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16011         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16012         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16013         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16014         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16015         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16016         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16017
16018 2011-05-12  James Youngman  <jay@gnu.org>
16019
16020         Add a test for glibc's Bugzilla bug #12378.
16021         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16022         doesn't allow the literal matching of a lone "[" (which is
16023         required by POSIX).
16024         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16025
16026 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16027
16028         Sync glibc change fixing Bugzilla bug #12378.
16029         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16030         beginning and fall back to matching as normal character if the
16031         string ends before the matching ']' is found.  This is what POSIX
16032         requires.
16033
16034 2011-05-13  Eric Blake  <eblake@redhat.com>
16035
16036         getcwd-lgpl: relax test for FreeBSD
16037         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16038         issue.
16039         * tests/test-getcwd-lgpl.c (main): Relax test.
16040         Reported by Matthias Bolte.
16041
16042 2011-05-11  Eric Blake  <eblake@redhat.com>
16043
16044         test-fflush: silence compiler warning
16045         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16046
16047 2011-05-11  Bruno Haible  <bruno@clisp.org>
16048
16049         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16050         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16051         * modules/canonicalize (Depends-on): Add 'nocrash'.
16052         * modules/canonicalize-lgpl (Depends-on): Likewise.
16053         * doc/posix-functions/realpath.texi: Update platforms list.
16054         Reported by Ryan Schmidt <ryandesign@macports.org>.
16055
16056 2011-05-11  Bruno Haible  <bruno@clisp.org>
16057
16058         group-member: Declare function in <unistd.h>.
16059         * lib/unistd.in.h (group_member): New declaration.
16060         * lib/group-member.h: Remove file.
16061         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16062         * tests/test-unistd-c++.cc: Check signature of group_member.
16063         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16064         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16065         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16066         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16067         HAVE_GROUP_MEMBER.
16068         * modules/group-member (Files): Remove lib/group-member.h.
16069         (Depends-on): Add unistd. Specify conditions.
16070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16071         (Include): Change to <unistd.h>.
16072         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16073         HAVE_GROUP_MEMBER.
16074         * NEWS: Mention the change.
16075         * lib/euidaccess.c: Don't include group-member.h.
16076
16077 2011-05-11  Bruno Haible  <bruno@clisp.org>
16078
16079         group-member: Document module.
16080         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16081         module.
16082
16083 2011-05-11  Bruno Haible  <bruno@clisp.org>
16084
16085         fclose: Fix mistake earlier today.
16086         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16087
16088 2011-05-11  Eric Blake  <eblake@redhat.com>
16089
16090         fclose: preserve fflush errors
16091         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16092         Reported by Jim Meyering.
16093
16094         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16095         * build-aux/bootstrap (check_versions): When no specific version
16096         is required, merely check that the app produces an exit status
16097         that indicates its existence.
16098
16099         maint.mk: drop redundant check
16100         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16101         the same but better.
16102
16103 2011-05-11  Bruno Haible  <bruno@clisp.org>
16104
16105         fclose: Fix possible link error.
16106         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16107         unregister_shadow_fd. Improve comments.
16108         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16109         Eric Blake.
16110
16111 2011-05-11  Jim Meyering  <meyering@redhat.com>
16112
16113         maint.mk: improve "can not" detection and generalize rule name
16114         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16115         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16116         Use the same technique as in sc_prohibit_doubled_word, so that
16117         we recognize "can not" also when the words are separated by a newline.
16118         Suggested by Eric Blake.
16119         (perl_filename_lineno_text_): Define.  Factored out of...
16120         (prohibit_doubled_word_): ...here.  Use the new definition.
16121         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16122         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16123         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16124
16125 2011-05-10  Eric Blake  <eblake@redhat.com>
16126
16127         fclose: avoid double close race when possible
16128         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16129         all but WINDOWS_SOCKETS.
16130
16131 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16132
16133         openat: correct new comment
16134         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16135
16136 2011-05-10  Jim Meyering  <meyering@redhat.com>
16137
16138         openat: add comments
16139         * lib/openat-proc.c (openat_proc_name): Add comments,
16140         mostly from Eric Blake.
16141
16142 2011-05-09  Eric Blake  <eblake@redhat.com>
16143
16144         openat: reduce syscalls in first probe of /proc
16145         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16146         be a directory.  Simplify the probe for .. bugs.
16147         * modules/openat (Depends-on): Drop same-inode.
16148         Reported by Bastien ROUCARIES.
16149
16150 2011-05-09  Jim Meyering  <meyering@redhat.com>
16151
16152         maint.mk: change semantics/name of tight_scope variables
16153         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16154         Rename variables to align with semantics that make them more useful.
16155
16156         maint.mk: tweak new rule's name not to impinge
16157         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16158         (sc_tight_scope): Use new rule name rather than $@-0.
16159
16160         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16161         * top/maint.mk (sc_tight_scope): New rule.
16162         (sc_tight_scope-0): New rule, ifdef'd out.
16163         (_gl_TS_dir): Default.
16164         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16165         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16166
16167 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16168
16169         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16170         Haible <bruno@clisp.org>.
16171
16172 2011-05-08  Bruno Haible  <bruno@clisp.org>
16173
16174         Comments.
16175         * m4/isnanf.m4: Add comment.
16176         * m4/isnanl.m4: Likewise.
16177
16178 2011-05-08  Bruno Haible  <bruno@clisp.org>
16179
16180         glob: Remove obsolete macro.
16181         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16182
16183 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16184
16185         intprops: Sun C 5.11 supports __typeof__
16186         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16187         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16188         which is new.
16189         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16190
16191         intprops: switch to usual gnulib indenting and naming
16192         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16193         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16194
16195         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16196
16197 2011-05-08  Jim Meyering  <meyering@redhat.com>
16198
16199         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16200         * top/maint.mk (release-prep): Use make's --no-print-directory
16201         option when generating the announcement.  This eliminates the
16202         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16203         generated announcement template.
16204
16205 2011-05-08  Bruno Haible  <bruno@clisp.org>
16206
16207         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16208         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16209         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16210
16211 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16212
16213         ignore-value, verify: Omit include files from lib_SOURCES.
16214         * modules/ignore-value, modules/verify (Makefile.am):
16215         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16216         that leads Automake to duplicate use of am__objects_... variables
16217         in Makefile.in.  See
16218         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16219
16220 2011-05-07  Bruno Haible  <bruno@clisp.org>
16221
16222         fclose: Simplify autoconf macro.
16223         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16224         defined.
16225
16226 2011-05-07  Bruno Haible  <bruno@clisp.org>
16227
16228         canonicalize-lgpl: Fix autoconf macro ordering bug.
16229         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16230         gl_STDLIB_H_DEFAULTS.
16231
16232 2011-05-06  Eric Blake  <eblake@redhat.com>
16233
16234         maintainer-makefile: make sc_po_check easier to tune
16235         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16236         to probe for strings, such as an alternate location for gnulib.
16237
16238         fclose: guarantee behavior on seekable stdin
16239         * modules/fclose (Depends-on): Add fflush.
16240         * doc/posix-functions/fclose.texi (fclose): Document this.
16241         * tests/test-fclose.c (main): Make test for this unconditional.
16242
16243 2011-05-06  Bruno Haible  <bruno@clisp.org>
16244
16245         fflush, fpurge: Relicense under LGPLv2+.
16246         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16247         * modules/fpurge (License): Likewise.
16248         With permission from Eric Blake and Jim Meyering.
16249         Suggested by Eric Blake.
16250
16251 2011-05-06  Karl Berry  <karl@gnu.org>
16252
16253         * MODULES.html.sh (func_all_modules): remove exit.
16254
16255 2011-05-06  Jim Meyering  <meyering@redhat.com>
16256
16257         maint.mk: use info-gnu@ as the default only for a stable release
16258         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16259         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16260         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16261         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16262
16263 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16264
16265         assert-h: new module, which supports C1X-style static_assert
16266         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16267         * lib/verify.h: Revamp so that this can be copied into assert.h,
16268         while retaining the ability to use it standalone as before.
16269         Rename private identifiers so as not to encroach on the
16270         standard C namespace, since this is now used by assert.h.
16271         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16272         the old verify_true.
16273         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16274         the old verify_true.  Use _GL_VERIFY_TYPE.
16275         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16276         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16277         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16278         defined when this file is copied into the replacement assert.h.
16279         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16280         and _Static_assert is not built in.
16281         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16282         defined, and use the new macros mentioned above.
16283         * doc/posix-headers/assert.texi: Document this.
16284
16285 2011-05-05  Bruno Haible  <bruno@clisp.org>
16286
16287         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16288         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16289         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16290         gl_REPLACE_FCLOSE here.
16291         * modules/fflush (Depends-on): Remove fclose.
16292         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16293         combination with module 'fclose'.
16294
16295 2011-05-05  Bruno Haible  <bruno@clisp.org>
16296
16297         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16298         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16299         gl_FUNC_FFLUSH.
16300         (gl_FUNC_FFLUSH): Use it.
16301         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16303         gl_REPLACE_FSEEKO here.
16304
16305 2011-05-05  Bruno Haible  <bruno@clisp.org>
16306
16307         tzset: Relicense under LGPL.
16308         * modules/tzset (License): Change to LGPL.
16309         No agreement needed; it's a no-op.
16310
16311         strtoimax, strtoumax: Relicense under LGPL.
16312         * modules/strtoimax (License): Change to LGPL.
16313         * modules/strtoumax (License): Likewise.
16314         With permission from Jim Meyering, Paul Eggert:
16315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16317
16318         getgroups: Relicense under LGPL.
16319         * modules/getgroups (License): Change to LGPL.
16320         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16324
16325         nanosleep: Relicense under LGPL.
16326         * modules/nanosleep (License): Change to LGPL.
16327         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16328         Haible:
16329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16333
16334         futimens: Relicense under LGPL.
16335         * modules/futimens (License): Change to LGPL.
16336         With permission from Eric Blake:
16337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16338
16339         fflush: Relicense under LGPL.
16340         * modules/fflush (License): Change to LGPL.
16341         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16345
16346         tmpfile: Relicense under LGPL.
16347         * modules/tmpfile (License): Change to LGPL.
16348         With permission from Ben Pfaff:
16349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16350
16351         isfinite: Relicense under LGPL.
16352         * modules/isfinite (License): Change to LGPL.
16353         With permission from Ben Pfaff, Bruno Haible:
16354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16356
16357         acosl..tanl: Relicense under LGPL.
16358         * modules/acosl (License): Change to LGPL.
16359         * modules/asinl (License): Likewise.
16360         * modules/atanl (License): Likewise.
16361         * modules/cosl (License): Likewise.
16362         * modules/expl (License): Likewise.
16363         * modules/logl (License): Likewise.
16364         * modules/sinl (License): Likewise.
16365         * modules/sqrtl (License): Likewise.
16366         * modules/tanl (License): Likewise.
16367         Source code originally from glibc and Paolo Bonzini. Agreements:
16368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16370
16371 2011-05-05  Bruno Haible  <bruno@clisp.org>
16372
16373         signal: Define sighandler_t.
16374         * lib/signal.in.h (sighandler_t): New type.
16375         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16376         whether sighandler_t is defined.
16377         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16378         * modules/signal (Depends-on): Add extensions.
16379         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16380         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16381         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16382
16383 2011-05-05  Eric Blake  <eblake@redhat.com>
16384
16385         maint: remove useless REPLACE_*_H macros
16386         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16387         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16388         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16389         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16390         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16391         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16392         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16393         * m4/btowc.m4: Update callers.
16394         * m4/dirfd.m4: Likewise.
16395         * m4/duplocale.m4: Likewise.
16396         * m4/fchdir.m4: Likewise.
16397         * m4/fdopendir.m4: Likewise.
16398         * m4/inet_ntop.m4: Likewise.
16399         * m4/inet_pton.m4: Likewise.
16400         * m4/ioctl.m4: Likewise.
16401         * m4/mbrlen.m4: Likewise.
16402         * m4/mbrtowc.m4: Likewise.
16403         * m4/mbsinit.m4: Likewise.
16404         * m4/mbsnrtowcs.m4: Likewise.
16405         * m4/mbsrtowcs.m4: Likewise.
16406         * m4/poll.m4: Likewise.
16407         * m4/setlocale.m4: Likewise.
16408         * m4/wcrtomb.m4: Likewise.
16409         * m4/wcsnrtombs.m4: Likewise.
16410         * m4/wcsrtombs.m4: Likewise.
16411         * m4/wctob.m4: Likewise.
16412         * m4/wcwidth.m4: Likewise.
16413         * modules/posix_spawn: Likewise.
16414         * modules/posix_spawn_file_actions_addclose: Likewise.
16415         * modules/posix_spawn_file_actions_adddup2: Likewise.
16416         * modules/posix_spawn_file_actions_addopen: Likewise.
16417         * modules/posix_spawn_file_actions_destroy: Likewise.
16418         * modules/posix_spawn_file_actions_init: Likewise.
16419         * modules/posix_spawnattr_destroy: Likewise.
16420         * modules/posix_spawnattr_getflags: Likewise.
16421         * modules/posix_spawnattr_getpgroup: Likewise.
16422         * modules/posix_spawnattr_getschedparam: Likewise.
16423         * modules/posix_spawnattr_getschedpolicy: Likewise.
16424         * modules/posix_spawnattr_getsigdefault: Likewise.
16425         * modules/posix_spawnattr_getsigmask: Likewise.
16426         * modules/posix_spawnattr_init: Likewise.
16427         * modules/posix_spawnattr_setflags: Likewise.
16428         * modules/posix_spawnattr_setpgroup: Likewise.
16429         * modules/posix_spawnattr_setschedparam: Likewise.
16430         * modules/posix_spawnattr_setschedpolicy: Likewise.
16431         * modules/posix_spawnattr_setsigdefault: Likewise.
16432         * modules/posix_spawnattr_setsigmask: Likewise.
16433         * modules/posix_spawnp: Likewise.
16434
16435 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16436
16437         Add option to do-release-commit-and-tag to specify branch.
16438         * build-aux/do-release-commit-and-tag: Add --branch.
16439
16440 2011-05-03  Bruno Haible  <bruno@clisp.org>
16441
16442         Avoid unnecessary compilation units, through conditional dependencies.
16443         * modules/accept (Depends-on): Add conditions to the dependencies.
16444         * modules/acosl (Depends-on): Likewise.
16445         * modules/argz (Depends-on): Likewise.
16446         * modules/asinl (Depends-on): Likewise.
16447         * modules/atanl (Depends-on): Likewise.
16448         * modules/atoll (Depends-on): Likewise.
16449         * modules/bind (Depends-on): Likewise.
16450         * modules/btowc (Depends-on): Likewise.
16451         * modules/canonicalize-lgpl (Depends-on): Likewise.
16452         * modules/ceil (Depends-on): Likewise.
16453         * modules/ceilf (Depends-on): Likewise.
16454         * modules/ceill (Depends-on): Likewise.
16455         * modules/chdir-long (Depends-on): Likewise.
16456         * modules/chown (Depends-on): Likewise.
16457         * modules/close (Depends-on): Likewise.
16458         * modules/connect (Depends-on): Likewise.
16459         * modules/cosl (Depends-on): Likewise.
16460         * modules/dirfd (Depends-on): Likewise.
16461         * modules/dprintf (Depends-on): Likewise.
16462         * modules/dprintf-posix (Depends-on): Likewise.
16463         * modules/error (Depends-on): Likewise.
16464         * modules/euidaccess (Depends-on): Likewise.
16465         * modules/expl (Depends-on): Likewise.
16466         * modules/faccessat (Depends-on): Likewise.
16467         * modules/fchdir (Depends-on): Likewise.
16468         * modules/fclose (Depends-on): Likewise.
16469         * modules/fcntl (Depends-on): Likewise.
16470         * modules/fdopendir (Depends-on): Likewise.
16471         * modules/fflush (Depends-on): Likewise.
16472         * modules/floor (Depends-on): Likewise.
16473         * modules/floorf (Depends-on): Likewise.
16474         * modules/floorl (Depends-on): Likewise.
16475         * modules/fnmatch (Depends-on): Likewise.
16476         * modules/fopen (Depends-on): Likewise.
16477         * modules/fprintf-posix (Depends-on): Likewise.
16478         * modules/frexp (Depends-on): Likewise.
16479         * modules/frexp-nolibm (Depends-on): Likewise.
16480         * modules/frexpl (Depends-on): Likewise.
16481         * modules/frexpl-nolibm (Depends-on): Likewise.
16482         * modules/fseek (Depends-on): Likewise.
16483         * modules/fsusage (Depends-on): Likewise.
16484         * modules/ftell (Depends-on): Likewise.
16485         * modules/ftello (Depends-on): Likewise.
16486         * modules/futimens (Depends-on): Likewise.
16487         * modules/getcwd (Depends-on): Likewise.
16488         * modules/getcwd-lgpl (Depends-on): Likewise.
16489         * modules/getdelim (Depends-on): Likewise.
16490         * modules/getdomainname (Depends-on): Likewise.
16491         * modules/getgroups (Depends-on): Likewise.
16492         * modules/gethostname (Depends-on): Likewise.
16493         * modules/getline (Depends-on): Likewise.
16494         * modules/getlogin_r (Depends-on): Likewise.
16495         * modules/getopt-posix (Depends-on): Likewise.
16496         * modules/getpeername (Depends-on): Likewise.
16497         * modules/getsockname (Depends-on): Likewise.
16498         * modules/getsockopt (Depends-on): Likewise.
16499         * modules/getsubopt (Depends-on): Likewise.
16500         * modules/getusershell (Depends-on): Likewise.
16501         * modules/glob (Depends-on): Likewise.
16502         * modules/grantpt (Depends-on): Likewise.
16503         * modules/iconv_open (Depends-on): Likewise.
16504         * modules/iconv_open-utf (Depends-on): Likewise.
16505         * modules/inet_ntop (Depends-on): Likewise.
16506         * modules/inet_pton (Depends-on): Likewise.
16507         * modules/ioctl (Depends-on): Likewise.
16508         * modules/isapipe (Depends-on): Likewise.
16509         * modules/isfinite (Depends-on): Likewise.
16510         * modules/isinf (Depends-on): Likewise.
16511         * modules/lchown (Depends-on): Likewise.
16512         * modules/ldexpl (Depends-on): Likewise.
16513         * modules/link (Depends-on): Likewise.
16514         * modules/linkat (Depends-on): Likewise.
16515         * modules/listen (Depends-on): Likewise.
16516         * modules/logl (Depends-on): Likewise.
16517         * modules/lstat (Depends-on): Likewise.
16518         * modules/mbrlen (Depends-on): Likewise.
16519         * modules/mbrtowc (Depends-on): Likewise.
16520         * modules/mbsinit (Depends-on): Likewise.
16521         * modules/mbsnrtowcs (Depends-on): Likewise.
16522         * modules/mbsrtowcs (Depends-on): Likewise.
16523         * modules/mbtowc (Depends-on): Likewise.
16524         * modules/memcmp (Depends-on): Likewise.
16525         * modules/mkdir (Depends-on): Likewise.
16526         * modules/mkdtemp (Depends-on): Likewise.
16527         * modules/mkfifo (Depends-on): Likewise.
16528         * modules/mkfifoat (Depends-on): Likewise.
16529         * modules/mknod (Depends-on): Likewise.
16530         * modules/mkostemp (Depends-on): Likewise.
16531         * modules/mkostemps (Depends-on): Likewise.
16532         * modules/mkstemp (Depends-on): Likewise.
16533         * modules/mkstemps (Depends-on): Likewise.
16534         * modules/mktime (Depends-on): Likewise.
16535         * modules/nanosleep (Depends-on): Likewise.
16536         * modules/open (Depends-on): Likewise.
16537         * modules/openat (Depends-on): Likewise.
16538         * modules/perror (Depends-on): Likewise.
16539         * modules/poll (Depends-on): Likewise.
16540         * modules/popen (Depends-on): Likewise.
16541         * modules/posix_spawn (Depends-on): Likewise.
16542         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16543         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16544         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16545         * modules/posix_spawnp (Depends-on): Likewise.
16546         * modules/pread (Depends-on): Likewise.
16547         * modules/printf-posix (Depends-on): Likewise.
16548         * modules/ptsname (Depends-on): Likewise.
16549         * modules/putenv (Depends-on): Likewise.
16550         * modules/pwrite (Depends-on): Likewise.
16551         * modules/readline (Depends-on): Likewise.
16552         * modules/readlink (Depends-on): Likewise.
16553         * modules/readlinkat (Depends-on): Likewise.
16554         * modules/recv (Depends-on): Likewise.
16555         * modules/recvfrom (Depends-on): Likewise.
16556         * modules/regex (Depends-on): Likewise.
16557         * modules/remove (Depends-on): Likewise.
16558         * modules/rename (Depends-on): Likewise.
16559         * modules/renameat (Depends-on): Likewise.
16560         * modules/rmdir (Depends-on): Likewise.
16561         * modules/round (Depends-on): Likewise.
16562         * modules/roundf (Depends-on): Likewise.
16563         * modules/roundl (Depends-on): Likewise.
16564         * modules/rpmatch (Depends-on): Likewise.
16565         * modules/select (Depends-on): Likewise.
16566         * modules/send (Depends-on): Likewise.
16567         * modules/sendto (Depends-on): Likewise.
16568         * modules/setenv (Depends-on): Likewise.
16569         * modules/setlocale (Depends-on): Likewise.
16570         * modules/setsockopt (Depends-on): Likewise.
16571         * modules/shutdown (Depends-on): Likewise.
16572         * modules/sigaction (Depends-on): Likewise.
16573         * modules/signbit (Depends-on): Likewise.
16574         * modules/sigprocmask (Depends-on): Likewise.
16575         * modules/sinl (Depends-on): Likewise.
16576         * modules/sleep (Depends-on): Likewise.
16577         * modules/snprintf (Depends-on): Likewise.
16578         * modules/snprintf-posix (Depends-on): Likewise.
16579         * modules/socket (Depends-on): Likewise.
16580         * modules/sprintf-posix (Depends-on): Likewise.
16581         * modules/sqrtl (Depends-on): Likewise.
16582         * modules/stat (Depends-on): Likewise.
16583         * modules/strchrnul (Depends-on): Likewise.
16584         * modules/strdup-posix (Depends-on): Likewise.
16585         * modules/strerror (Depends-on): Likewise.
16586         * modules/strerror_r-posix (Depends-on): Likewise.
16587         * modules/strndup (Depends-on): Likewise.
16588         * modules/strnlen (Depends-on): Likewise.
16589         * modules/strptime (Depends-on): Likewise.
16590         * modules/strsep (Depends-on): Likewise.
16591         * modules/strsignal (Depends-on): Likewise.
16592         * modules/strstr-simple (Depends-on): Likewise.
16593         * modules/strtod (Depends-on): Likewise.
16594         * modules/strtoimax (Depends-on): Likewise.
16595         * modules/strtok_r (Depends-on): Likewise.
16596         * modules/strtoumax (Depends-on): Likewise.
16597         * modules/symlink (Depends-on): Likewise.
16598         * modules/symlinkat (Depends-on): Likewise.
16599         * modules/tanl (Depends-on): Likewise.
16600         * modules/tcgetsid (Depends-on): Likewise.
16601         * modules/tmpfile (Depends-on): Likewise.
16602         * modules/trunc (Depends-on): Likewise.
16603         * modules/truncf (Depends-on): Likewise.
16604         * modules/truncl (Depends-on): Likewise.
16605         * modules/uname (Depends-on): Likewise.
16606         * modules/unlink (Depends-on): Likewise.
16607         * modules/unlockpt (Depends-on): Likewise.
16608         * modules/unsetenv (Depends-on): Likewise.
16609         * modules/usleep (Depends-on): Likewise.
16610         * modules/utimensat (Depends-on): Likewise.
16611         * modules/vasprintf (Depends-on): Likewise.
16612         * modules/vdprintf (Depends-on): Likewise.
16613         * modules/vdprintf-posix (Depends-on): Likewise.
16614         * modules/vfprintf-posix (Depends-on): Likewise.
16615         * modules/vprintf-posix (Depends-on): Likewise.
16616         * modules/vsnprintf (Depends-on): Likewise.
16617         * modules/vsnprintf-posix (Depends-on): Likewise.
16618         * modules/vsprintf-posix (Depends-on): Likewise.
16619         * modules/wcrtomb (Depends-on): Likewise.
16620         * modules/wcscasecmp (Depends-on): Likewise.
16621         * modules/wcscspn (Depends-on): Likewise.
16622         * modules/wcsdup (Depends-on): Likewise.
16623         * modules/wcsncasecmp (Depends-on): Likewise.
16624         * modules/wcsnrtombs (Depends-on): Likewise.
16625         * modules/wcspbrk (Depends-on): Likewise.
16626         * modules/wcsrtombs (Depends-on): Likewise.
16627         * modules/wcsspn (Depends-on): Likewise.
16628         * modules/wcsstr (Depends-on): Likewise.
16629         * modules/wcstok (Depends-on): Likewise.
16630         * modules/wcswidth (Depends-on): Likewise.
16631         * modules/wctob (Depends-on): Likewise.
16632         * modules/wctomb (Depends-on): Likewise.
16633         * modules/wctype (Depends-on): Likewise.
16634         * modules/wcwidth (Depends-on): Likewise.
16635         * modules/write (Depends-on): Likewise.
16636
16637 2011-05-03  Bruno Haible  <bruno@clisp.org>
16638
16639         Support for conditional dependencies.
16640         * doc/gnulib.texi (Module description): Document the syntax of
16641         conditional dependencies.
16642         * gnulib-tool: New option --conditional-dependencies.
16643         (func_usage): Document it.
16644         (cond_dependencies): New variable.
16645         (func_get_automake_snippet_conditional,
16646         func_get_automake_snippet_unconditional): New functions, extracted from
16647         func_get_automake_snippet.
16648         (func_get_automake_snippet): Use them.
16649         (sed_first_32_chars): New variable.
16650         (func_module_shellfunc_name): New function.
16651         (func_module_shellvar_name): New function.
16652         (func_module_conditional_name): New function.
16653         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16654         func_cond_module_condition): New functions.
16655         (func_modules_transitive_closure): Add support for conditional
16656         dependencies.
16657         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16658         conditional automake snippet in an automake conditional.
16659         (func_emit_autoconf_snippets): Emit shell functions that contain the
16660         code for conditional modules.
16661         (func_import, func_create_testdir): Update specification.
16662
16663 2011-05-03  Eric Blake  <eblake@redhat.com>
16664
16665         test-getaddrinfo: report error information
16666         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16667
16668 2011-05-03  Jim Meyering  <meyering@redhat.com>
16669
16670         bootstrap: avoid build failure when $GZIP is set
16671         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16672         program name.  If defined at all, it is supposed to list gzip options.
16673         Reported by Alan Curry in http://debbugs.gnu.org/8609
16674
16675 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16676
16677         readme-release: new module with release instructions
16678         * modules/readme-release: New module.
16679         * top/README-release: New file, from coreutils, grep, diffutils.
16680         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16681
16682 2011-05-02  Eric Blake  <eblake@redhat.com>
16683
16684         fflush: also replace fclose when fixing fflush
16685         * modules/fflush (Depends-on): Add fclose.
16686         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16687         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16688         memstreams with no backing fd.
16689         * doc/posix-functions/fclose.texi (fclose): Document the use of
16690         fflush module to fix the bug.
16691         * tests/test-fclose.c (main): Relax test when fclose is used in
16692         isolation.
16693
16694         fclose: add some tests
16695         * modules/fclose-tests: New test module.
16696         * tests/test-fclose.c: New file.
16697         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16698
16699         fclose: reduced dependencies
16700         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16701         simpler lseek.
16702         * lib/fclose.c (rpl_fclose): Likewise.
16703         Reported by Simon Josefsson.
16704
16705         exit: drop remaining clients
16706         * modules/argmatch (Depends-on): Replace exit with stdlib.
16707         * modules/copy-file (Depends-on): Likewise.
16708         * modules/execute (Depends-on): Likewise.
16709         * modules/exitfail (Depends-on): Likewise.
16710         * modules/obstack (Depends-on): Likewise.
16711         * modules/pagealign_alloc (Depends-on): Likewise.
16712         * modules/pipe-filter-gi (Depends-on): Likewise.
16713         * modules/pipe-filter-ii (Depends-on): Likewise.
16714         * modules/savewd (Depends-on): Likewise.
16715         * modules/spawn-pipe (Depends-on): Likewise.
16716         * modules/wait-process (Depends-on): Likewise.
16717         * modules/xsetenv (Depends-on): Likewise.
16718         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16719         * modules/git-merge-changelog (Depends-on): Likewise.
16720         * modules/long-options (Depends-on): Likewise.
16721         * modules/pt_chown (Depends-on): Likewise.
16722         * modules/sysexits (Depends-on): Likewise.
16723
16724         freading: relax license from LGPLv3+ to LGPLv2+
16725         * modules/freading (License): Relax LGPL version.
16726
16727 2011-05-02  Bruno Haible  <bruno@clisp.org>
16728
16729         fchdir: Remove unused dependencies.
16730         * modules/fchdir (Depends-on): Remove include_next.
16731
16732 2011-05-02  Bruno Haible  <bruno@clisp.org>
16733
16734         gnulib-tool: Refactor.
16735         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16736         from func_emit_autoconf_snippets.
16737         (func_emit_autoconf_snippets): Use it.
16738
16739 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16740
16741         * NEWS: Document removal of 'exit'.
16742         * modules/exit: Remove file.
16743
16744 2011-05-01  Bruno Haible  <bruno@clisp.org>
16745
16746         Update DEPENDENCIES.
16747         * DEPENDENCIES (gettext): Recommend the newest release.
16748         Reported by Simon Josefsson.
16749
16750 2011-05-01  Bruno Haible  <bruno@clisp.org>
16751
16752         gnulib-tool: Reduce code duplication.
16753         * gnulib-tool (func_emit_autoconf_snippets): New function.
16754         (func_import, func_create_testdir): Use it.
16755
16756 2011-04-30  Eric Blake  <eblake@redhat.com>
16757
16758         fclose: don't fail on non-seekable input stream
16759         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16760         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16761         since fflush is allowed to fail in that case.
16762
16763 2011-04-30  Bruno Haible  <bruno@clisp.org>
16764
16765         dup3: cleanup
16766         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16767
16768 2011-04-30  Bruno Haible  <bruno@clisp.org>
16769
16770         netdb: Make it work in C++ mode.
16771         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16772         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16773         module.
16774         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16775         gl_MODULE_INDICATOR_FOR_TESTS.
16776         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16777         * modules/netdb-c++-tests: New file.
16778         * tests/test-netdb-c++.cc: New file.
16779
16780 2011-04-30  Bruno Haible  <bruno@clisp.org>
16781
16782         New modules 'vfscanf', 'vscanf'.
16783         * modules/vfscanf: New file.
16784         * modules/vscanf: New file.
16785         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16786         here.
16787         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16788         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16789
16790 2011-04-30  Bruno Haible  <bruno@clisp.org>
16791
16792         passfd: Add comments.
16793         * lib/passfd.c: Add comments about platforms.
16794
16795 2011-04-30  Bruno Haible  <bruno@clisp.org>
16796
16797         sys_uio: Make <sys/uio.h> self-contained.
16798         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16799         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16800
16801 2011-04-30  Bruno Haible  <bruno@clisp.org>
16802
16803         sys_socket: Ensure 'struct iovec' definition.
16804         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16805         <sys/socket.h>.
16806         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16807
16808 2011-04-30  Bruno Haible  <bruno@clisp.org>
16809
16810         sys_uio: Protect definition of 'struct iovec'.
16811         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16812         it as a C struct.
16813
16814 2011-04-30  Bruno Haible  <bruno@clisp.org>
16815
16816         manywarnings: fix indentation
16817         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16818
16819 2011-04-30  Pádraig Brady <P@draigBrady.com>
16820
16821         manywarnings: add -Wno-missing-field-initializers if needed.
16822         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16823         option if it's needed to allow initialization with { 0, }
16824
16825 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16826
16827         announce-gen: cosmetic improvement
16828         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16829
16830 2011-04-29  Jim Meyering  <meyering@redhat.com>
16831
16832         vc-list-files: indent with spaces, not TABs
16833         * build-aux/vc-list-files: Convert leading TABs to spaces,
16834         to match the style of most other files in gnulib.
16835
16836         announce-gen: indent with spaces, not TABs
16837         * build-aux/announce-gen: Convert all TABs to spaces, to match
16838         the style of most other files in gnulib.
16839
16840 2011-04-29  Eric Blake  <eblake@redhat.com>
16841
16842         quotearg: avoid uninitialized variable use
16843         * lib/quotearg.c (quoting_options_from_style): Initialize
16844         remaining fields, and ensure that custom styles are only used via
16845         quoting_options rather than quoting_style.
16846
16847 2011-04-29  Jim Meyering  <meyering@redhat.com>
16848
16849         maint.mk: remove unused VC-tag variable
16850         * top/maint.mk (VC-tag): Remove unused variable.
16851
16852 2011-04-29  Bruno Haible  <bruno@clisp.org>
16853
16854         netdb: fix gai_strerror replacements
16855         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16856         * modules/netdb: Substitute it.
16857
16858 2011-04-29  Jim Meyering  <meyering@redhat.com>
16859
16860         test-getcwd.c: avoid new set-but-not-used warning
16861         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16862         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16863         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16864         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16865
16866         test-hash.c: avoid a new shadowing warning
16867         * tests/test-hash.c (main): Don't shadow "dup".
16868
16869 2011-04-28  Eric Blake  <eblake@redhat.com>
16870
16871         getaddrinfo: fix gai_strerror signature
16872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16873         and work around mingw with UNICODE defined.
16874         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16875         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16876         * modules/netdb (Makefile.am): Substitute it.
16877         * lib/netdb.in.h (gai_strerror): Declare replacement.
16878         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16879         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16880         the fix.
16881
16882         getsockopt: avoid compiler warning
16883         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16884         Reported by Matthias Bolte.
16885
16886         tests: drop unused link dependency
16887         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16888         * modules/dirent-safer-tests (Makefile.am): Likewise.
16889         * modules/fdopendir-tests (Makefile.am): Likewise.
16890         * modules/mkfifoat-tests (Makefile.am): Likewise.
16891         * modules/openat-safer-tests (Makefile.am): Likewise.
16892         * modules/openat-tests (Makefile.am): Likewise.
16893         * modules/readlinkat-tests (Makefile.am): Likewise.
16894         * modules/symlinkat-tests (Makefile.am): Likewise.
16895         * modules/linkat-tests (Makefile.am): Likewise.
16896         (Depends-on): Switch to filenamecat-lgpl.
16897         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16898         LIBINTL.
16899         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16900         * tests/test-linkat.c (main): Don't require xalloc.
16901
16902         hash, mgetgroups: drop xalloc dependency
16903         * lib/hash.c (includes): Adjust includes.
16904         * lib/mgetgroups.c (includes): Likewise.
16905         (xgetgroups): Move...
16906         * lib/xgetgroups.c: ...to new file.
16907         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16908         * modules/xgetgroups: New file, split from...
16909         * modules/mgetgroups: ...here.
16910         (Depends-on): Add xalloc-oversized.
16911         * modules/hash (Depends-on): Likewise.
16912         * modules/hash-tests (Depends-on): Drop xalloc.
16913         (test_hash_LDADD): Drop unused library.
16914         * tests/test-hash.c (main): Break xalloc dependency.
16915         (includes): Drop unused include.
16916
16917         xalloc-oversized: new module
16918         * modules/xalloc-oversized: New module.
16919         * modules/xalloc (Depends-on): Add it.
16920         * lib/xalloc.h (xalloc_oversized): Move...
16921         * lib/xalloc-oversized.h: ...into new file.
16922
16923         utimecmp: drop dependency on xmalloc
16924         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16925         due to memory pressure.
16926         * modules/utimecmp (Depends-on): Drop xalloc.
16927
16928 2011-04-27  Eric Blake  <eblake@redhat.com>
16929
16930         getcwd: fix mingw bugs
16931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16932         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16933         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16934
16935 2011-04-27  Bruno Haible  <bruno@clisp.org>
16936
16937         mkstemps: Ensure declaration on MacOS X 10.5.
16938         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16939         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16940         MacOS X.
16941
16942 2011-04-27  Bruno Haible  <bruno@clisp.org>
16943
16944         mkstemp: More documentation.
16945         * doc/posix-functions/mkstemp.texi: Document header file problem on
16946         MacOS X.
16947
16948 2011-04-27  Bruno Haible  <bruno@clisp.org>
16949
16950         mkstemp: Tweak configure message when cross-compiling.
16951         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16952         result as a guess.
16953
16954 2011-04-27  Bruno Haible  <bruno@clisp.org>
16955
16956         clean-temp: Clarify what it does.
16957         * lib/clean-temp.h: Add more comments.
16958         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16959         module.
16960         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16961         * doc/glibc-functions/mkstemps.texi: Likewise.
16962         * doc/glibc-functions/mkostemps.texi: Likewise.
16963
16964 2011-04-27  Eric Blake  <eblake@redhat.com>
16965
16966         fchdir: avoid extra chdir and fix test
16967         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16968         getcwd-lgpl.
16969         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16970         have to be canonical.
16971         (canonicalize_file_name): Drop unused macro.
16972         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16973
16974         filenamecat-lgpl: fix licence
16975         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16976         when it was first created.
16977
16978         linkat, renameat: add missing dependency
16979         * modules/linkat (Depends-on): Require getcwd-lgpl.
16980         * modules/renameat (Depends-on): Likewise.
16981
16982         tests: reduce dependencies
16983         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16984         * tests/test-renameat.c (main): Likewise.
16985         * modules/linkat-tests (Depends-on): Relax dependency.
16986         * modules/renameat-tests (Depends-on): Likewise.
16987         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16988         dependency explicit.
16989
16990         save-cwd: reduce default dependency
16991         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16992         * lib/save-cwd.c: Update comments.
16993         * NEWS: Document the semantic change.
16994
16995         getcwd: enhance tests
16996         * tests/test-getcwd-lgpl.c: New file, taken from...
16997         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16998         repeat long path stress tests from m4 probe.
16999         * modules/getcwd-lgpl-tests: New module.
17000         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17001         * m4/getcwd-abort-bug.m4: Update comment.
17002         * m4/getcwd-path-max.m4: Likewise.
17003
17004         getcwd-lgpl: new module
17005         * modules/getcwd-lgpl: New module.
17006         * lib/getcwd-lgpl.c: New file.
17007         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17008         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17009         * modules/getcwd (configure.ac): Set C witness.
17010         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17011
17012         getcwd: tweak comments
17013         * m4/getcwd-abort-bug.m4: Fix comments.
17014         * m4/getcwd-path-max.m4: Likewise.
17015         * m4/getcwd.m4: Likewise.
17016
17017 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17018         and Eric Blake  <eblake@redhat.com>
17019
17020         mkstemp: replace if system version uses wrong permissions
17021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17022         read/write mode bits set in file created by mkstemp.
17023         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17024
17025 2011-04-27  Eric Blake  <eblake@redhat.com>
17026
17027         passfd: avoid compiler warning
17028         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17029         Reported by Laine Stump.
17030
17031 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17032
17033         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17034         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17035
17036 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17037         and Eric Blake  <eblake@redhat.com>
17038
17039         mkstemp: mention clean-temp module
17040         * lib/mkstemp.c: Add comment.
17041         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17042
17043 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17044
17045         inttypes: also provide default values for 32-bit tests
17046         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17047         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17048
17049 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17050
17051         strtoumax: remove dependency on strtoimax
17052         This is like the strtoull change of yesterday.
17053         * modules/strtoumax (Files): Add lib/strtoimax.c.
17054         (Depends-on): Remove strtoimax and add verify.
17055
17056         inttypes-incomplete: new module
17057         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17058         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17059         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17060         of gl_INTTYPES_H.
17061         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17062         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17063         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17064         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17065         * modules/strtoumax, modules/xstrtol (Depends-on):
17066         Depend on inttypes-incomplete, not inttypes.
17067         * modules/inttypes-incomplete: New module, containing the contents
17068         of the old modules/inttypes module, except that the Files: section
17069         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17070         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17071         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17072         (Depends-on): Depend only on inttypes-incomplete.
17073         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17074
17075         inttypes: omit now-redundant strtoimax and strtoumax work
17076         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17077         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17078
17079         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17080         This supports apps that need pointers to strtoimax and strtoumax,
17081         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17082         nonexistent functions.  See
17083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17084         et seq.
17085         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17087         a macro.
17088         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17089
17090 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17091
17092         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17093
17094 2011-04-25  Bruno Haible  <bruno@clisp.org>
17095
17096         strtol, strtoul: Mark modules as obsolete.
17097         * modules/strtol (Status, Notice): New sections.
17098         * modules/strtoul (Status, Notice): New sections.
17099
17100 2011-04-25  Bruno Haible  <bruno@clisp.org>
17101
17102         strtod: Remove check for strtod, unless supporting old platforms.
17103         * modules/strtod-obsolete: New file.
17104         * m4/strtod-obsolete.m4: New file.
17105         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17106         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17107         * modules/strtod (Depends-on): Add strtod-obsolete.
17108         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17109
17110 2011-04-25  Bruno Haible  <bruno@clisp.org>
17111
17112         strcase: Make module obsolete.
17113         * modules/strcase (Status, Notice): New sections.
17114
17115 2011-04-25  Bruno Haible  <bruno@clisp.org>
17116
17117         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17118         * modules/dup2-obsolete: New file.
17119         * m4/dup2-obsolete.m4: New file.
17120         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17121         gl_FUNC_DUP2_OBSOLETE is not also defined.
17122         * modules/dup2 (Depends-on): Add dup2-obsolete.
17123         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17124
17125 2011-04-25  Bruno Haible  <bruno@clisp.org>
17126
17127         strnlen: Avoid memchr related link error on old obsolete platforms.
17128         * modules/memchr-obsolete: New file.
17129         * m4/memchr-obsolete.m4: New file.
17130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17131         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17132         * modules/memchr (Depends-on): Add memchr-obsolete.
17133         * modules/strnlen (Depends-on): Likewise.
17134         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17135
17136 2011-04-25  Jim Meyering  <meyering@redhat.com>
17137
17138         maint.mk: makefile_at_at_check extend and clean up
17139         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17140         in addition to */Makefile.am.
17141         Exempt legitimate uses of @VAR@ notation, e.g.,
17142         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17143         Remove obsolete coreutils-specific comment.
17144         Prompted by discussion here:
17145         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17146
17147 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17148
17149         strtoul: remove dependency on strtol
17150         This is so that 'configure' need not check for strtol merely because
17151         the application needs strtoul.
17152         * modules/strtoul (Files): Add lib/strtol.c.
17153         (Depends-on): Remove strtol.
17154
17155         strtoull: remove dependency on strtoul
17156         This is like the strtoll change.
17157         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17158         (Depends-on): Remove strtoul.
17159
17160         strtoll: remove dependency on strtol
17161         This is so that 'configure' need not check for strtol merely because
17162         the application needs strtoll.
17163         * modules/strtoll (Files): Add lib/strtol.c.
17164         (Depends-on): Remove strtol.
17165
17166 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17167
17168         inttypes: Move some configure check to module 'imaxdiv'.
17169         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17170         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17171         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17172
17173 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17174
17175         inttypes: Move some configure check to module 'imaxabs'.
17176         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17177         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17178         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17179
17180 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17181
17182         inttypes: Remove configure tests that are not needed since 2009-12-31.
17183         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17184         gl_cv_header_working_inttypes_h.
17185
17186 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17187
17188         * modules/strnlen (Depends-on): Remove memchr.
17189         The strnlen implementation doesn't need the memchr module's fixes; see
17190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17191
17192         strtol: remove dependency on wchar
17193         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17194         * modules/strtol (Depends-on): Remove wchar.
17195
17196 2011-04-21  Eric Blake  <eblake@redhat.com>
17197
17198         passfd: fix test regression on Linux
17199         * modules/passfd-tests (configure.ac): Correct socketpair check.
17200
17201         passfd: speed up configure and drop unused code
17202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17203         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17204         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17205         Instead of probing at configure for unix_scm_rights_bsd44_way,
17206         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17207         check to a struct member probe.
17208         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17209         (sendfd, recvfd): Update preprocessor checks.
17210         * modules/passfd (Files): Reflect rename, and drop unused file.
17211         (Depends-on): Drop unused dependency.
17212
17213         passfd: allow compilation on mingw
17214         * modules/sys_socket (Depends-on): Add sys_uio.
17215         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17216         iovec and a minimal struct msghdr.
17217         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17218         * tests/test-sys_socket.c (main): Enhance test.
17219         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17220         guaranteed to provide what we need.
17221         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17222         * modules/passfd-tests (Depends-on): Add sys_wait.
17223         * tests/test-passfd.c (main): Skip test on mingw, for now.
17224         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17225         partial 'struct msghdr' implementation.
17226
17227         sys_uio: new module
17228         * modules/sys_uio: New module.
17229         * modules/sys_uio-tests: Likewise.
17230         * lib/sys_uio.in.h: New file.
17231         * m4/sys_uio_h.m4: Likewise.
17232         * tests/test-sys_uio.c: Likewise.
17233         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17234         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17235
17236 2011-04-20  Jim Meyering  <meyering@redhat.com>
17237
17238         useless-if-before-free: avoid false-positive
17239         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17240         disjunct so that it too requires a terminating ";".  Without that,
17241         this script would identify as useless one statement from gcc that
17242         was not:
17243           if (aligned_ptr)
17244             free (((void **) aligned_ptr) [-1]);
17245
17246 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17247
17248         doc: update users.txt.
17249         * users.txt: Add barcode.
17250
17251 2011-04-19  Bruno Haible  <bruno@clisp.org>
17252
17253         ioctl: Remove link dependency on native Windows.
17254         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17255         (gl_close_fn, gl_ioctl_fn): New types.
17256         (struct fd_hook): Renamed from struct close_hook. Change type of
17257         private_close_fn field. Add private_ioctl_fn field.
17258         (close_hook_fn): Add parameter for primary close method.
17259         (execute_close_hooks, execute_all_close_hooks): Likewise.
17260         (ioctl_hook_fn): New type.
17261         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17262         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17263         argument.
17264         (unregister_fd_hook): Renamed from unregister_close_hook.
17265         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17266         Don't include <unistd.h>.
17267         (close): Remove undef.
17268         (anchor): Update.
17269         (execute_close_hooks): Add argument for primary close method.
17270         (execute_all_close_hooks): Likewise.
17271         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17272         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17273         argument. Allow each argument to be NULL.
17274         (unregister_fd_hook): Renamed from unregister_close_hook.
17275         * lib/close.c (rpl_close): Pass 'close' function pointer to
17276         execute_all_close_hooks.
17277         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17278         (primary_ioctl): New function.
17279         (ioctl): Don't call ioctlsocket here. Instead, call
17280         execute_all_ioctl_hooks.
17281         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17282         close method.
17283         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17284         (fd_sockets_hook): Renamed from close_sockets_hook.
17285         (gl_sockets_startup, gl_sockets_cleanup): Update.
17286         * modules/fd-hook: Renamed from modules/close-hook. Update.
17287         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17288         * modules/sockets (Depends-on): Likewise.
17289         * modules/ioctl (Depends-on): Add fd-hook.
17290         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17291         GNULIB_SOCKET.
17292
17293 2011-04-19  Bruno Haible  <bruno@clisp.org>
17294
17295         Move the support of O_NONBLOCK in open() to the 'open' module.
17296         * modules/nonblocking (Depends-on): Remove 'open'.
17297         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17298         gl_cv_have_open_O_NONBLOCK.
17299         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17300         O_NONBLOCK support.
17301         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17302
17303 2011-04-17  Bruno Haible  <bruno@clisp.org>
17304
17305         pipe2: Simplify code.
17306         * lib/pipe2.c (pipe2): Reduce code duplication.
17307
17308 2011-04-17  Bruno Haible  <bruno@clisp.org>
17309
17310         nonblocking: Add comment.
17311         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17312
17313 2011-04-17  Bruno Haible  <bruno@clisp.org>
17314
17315         nonblocking: Add tests for sockets.
17316         * tests/test-nonblocking-socket.sh: New file.
17317         * tests/test-nonblocking-socket-main.c: New file.
17318         * tests/test-nonblocking-socket-child.c: New file.
17319         * tests/test-nonblocking-socket.h: New file.
17320         * tests/socket-server.h: New file.
17321         * tests/socket-client.h: New file.
17322         * modules/nonblocking-socket-tests: New file.
17323         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17324
17325 2011-04-17  Bruno Haible  <bruno@clisp.org>
17326
17327         nonblocking: Add tests for pipes.
17328         * tests/test-nonblocking-pipe.sh: New file.
17329         * tests/test-nonblocking-pipe-main.c: New file.
17330         * tests/test-nonblocking-pipe-child.c: New file.
17331         * tests/test-nonblocking-pipe.h: New file.
17332         * tests/test-nonblocking-writer.h: New file.
17333         * tests/test-nonblocking-reader.h: New file.
17334         * tests/test-nonblocking-misc.h: New file.
17335         * modules/nonblocking-pipe-tests: New file.
17336         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17337
17338 2011-04-16  Bruno Haible  <bruno@clisp.org>
17339
17340         gettext: Clarify the needed programmer actions.
17341         * modules/gettext (Notice): New field.
17342         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17343
17344 2011-04-16  Bruno Haible  <bruno@clisp.org>
17345
17346         strchrnul: Tweak last commit.
17347         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17348         bug.
17349         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17350         as in _GL_FUNCDECL_SYS.
17351         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17352         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17353
17354 2011-04-15  Eric Blake  <eblake@redhat.com>
17355
17356         strchrnul: work around cygwin bug
17357         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17358         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17360         * modules/string (Makefile.am): Substitute it.
17361         * lib/string.in.h (strchrnul): Use it.
17362
17363 2011-04-15  Bruno Haible  <bruno@clisp.org>
17364
17365         Don't require lib/stdio-write.c when only module 'stdio' is used.
17366         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17367         invocation.
17368         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17369
17370 2011-04-14  Bruno Haible  <bruno@clisp.org>
17371
17372         Support non-blocking pipe I/O in read() on native Windows.
17373         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17374         (read): New declaration.
17375         * lib/read.c: New file.
17376         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17377         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17378         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17379         vscanf): New declarations.
17380         * lib/stdio-read.c: New file.
17381         * m4/read.m4: New file.
17382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17383         REPLACE_READ.
17384         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17385         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17386         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17387         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17389         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17390         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17391         * modules/read: New file.
17392         * modules/nonblocking (Files): Add lib/stdio-read.c.
17393         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17394         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17395         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17396         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17397         * modules/pread (Depends-on): Add read.
17398         * modules/safe-read (Depends-on): Likewise.
17399         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17400         gets, scanf, vfscanf, vscanf): Verify signatures.
17401         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17402         problem with non-blocking pipes.
17403         * doc/posix-functions/fgetc.texi: Likewise.
17404         * doc/posix-functions/fgets.texi: Likewise.
17405         * doc/posix-functions/fread.texi: Likewise.
17406         * doc/posix-functions/fscanf.texi: Likewise.
17407         * doc/posix-functions/getc.texi: Likewise.
17408         * doc/posix-functions/getchar.texi: Likewise.
17409         * doc/posix-functions/gets.texi: Likewise.
17410         * doc/posix-functions/scanf.texi: Likewise.
17411         * doc/posix-functions/vfscanf.texi: Likewise.
17412         * doc/posix-functions/vscanf.texi: Likewise.
17413
17414 2011-04-14  Bruno Haible  <bruno@clisp.org>
17415
17416         Support non-blocking pipe I/O in write() on native Windows.
17417         * lib/write.c (rpl_write): Split a write request that failed merely
17418         because the byte count was larger than the pipe buffer's size.
17419         * doc/posix-functions/write.texi: Mention the problem with large byte
17420         counts.
17421
17422 2011-04-14  Bruno Haible  <bruno@clisp.org>
17423
17424         wchar: Ensure that wchar_t gets defined on uClibc.
17425         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17426         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17427
17428 2011-04-13  Bruno Haible  <bruno@clisp.org>
17429
17430         safe-write, full-read: Avoid unnecessary compilation units.
17431         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17432         (Depends-on): Remove safe-read. Add ssize_t.
17433         * modules/full-read (Files): Add lib/full-write.c.
17434         (Depends-on): Add full-write.
17435
17436 2011-04-13  Bruno Haible  <bruno@clisp.org>
17437
17438         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17439         * modules/pwrite (Depends-on): Add 'write'.
17440
17441 2011-04-13  Bruno Haible  <bruno@clisp.org>
17442
17443         Support non-blocking pipe I/O in write() on native Windows.
17444         * lib/unistd.in.h (write): Enable replacement also if
17445         GNULIB_UNISTD_H_NONBLOCKING is 1.
17446         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17447         (rpl_write): When failing to write on a non-blocking pipe, change
17448         errno from ENOSPC to EAGAIN.
17449         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17450         putchar, puts, vfprintf, vprintf): Enable replacement also if
17451         GNULIB_STDIO_H_NONBLOCKING is 1.
17452         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17453         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17454         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17455         CALL_WITH_SIGPIPE_EMULATION.
17456         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17457         * m4/nonblocking.m4: New file.
17458         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17459         for non-blocking I/O support.
17460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17461         GNULIB_UNISTD_H_NONBLOCKING.
17462         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17463         required for non-blocking I/O support.
17464         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17465         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17466         lib/stdio-write.c, m4/asm-underscore.m4.
17467         (Depends-on): Add stdio, unistd.
17468         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17469         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17470         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17471         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17472         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17473         problem with non-blocking pipes.
17474         * doc/posix-functions/fputc.texi: Likewise.
17475         * doc/posix-functions/fputs.texi: Likewise.
17476         * doc/posix-functions/fwrite.texi: Likewise.
17477         * doc/posix-functions/printf.texi: Likewise.
17478         * doc/posix-functions/putc.texi: Likewise.
17479         * doc/posix-functions/putchar.texi: Likewise.
17480         * doc/posix-functions/puts.texi: Likewise.
17481         * doc/posix-functions/vfprintf.texi: Likewise.
17482         * doc/posix-functions/vprintf.texi: Likewise.
17483         * doc/posix-functions/write.texi: Likewise.
17484
17485 2011-04-10  Jim Meyering  <meyering@redhat.com>
17486
17487         maint.mk: prohibit doubled words
17488         Detect them also when they're separated by a newline.
17489         There are 3 ways to customize it:
17490           - disable the test on a per file basis, as usual with rules using
17491             $(VC_LIST_EXCEPT)
17492           - replace the default doubled-word-selecting regexp (affects all files)
17493           - ignore a particular file-vs-doubled-word match
17494         I nearly used that last one to ignore the "is is" match in
17495         coreutils' NEWS file, since the text was "ls -is is ..."
17496         To do that, I would have added this line to cfg.mk:
17497           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17498         but it would have ignored any "is is" match in NEWS.
17499         Low probability, but still...
17500         Instead, I changed the text, slightly:
17501           -  ls -is is now consistent with ls -lis in ignoring values returned
17502           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17503         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17504         (prohibit_doubled_word_): Define.
17505         (sc_prohibit_doubled_word): New rule.
17506         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17507
17508 2011-04-10  Jim Meyering  <meyering@redhat.com>
17509
17510         maint: fix doubled-word typo in comment
17511         * m4/gethostname.m4: s/is is/it is/
17512         * m4/getdomainname.m4: Likewise.
17513
17514 2011-04-10  Jim Meyering  <meyering@redhat.com>
17515
17516         maint: remove doubled word: s/it it/it/
17517         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17518
17519 2011-04-10  Jim Meyering  <meyering@redhat.com>
17520
17521         maint.mk: remove useless semicolon and backslash
17522         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17523         semicolon and backslash.
17524
17525 2011-04-10  Bruno Haible  <bruno@clisp.org>
17526
17527         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17528         * modules/stdint-tests (Depends-on): Add wchar.
17529
17530 2011-04-10  Jim Meyering  <meyering@redhat.com>
17531
17532         maint: remove doubled words in comments, e.g., s/a a/a/
17533         * lib/strptime.c (day_of_the_week): s/the the/the/
17534         * tests/test-chown.h (test_chown): s/a a/a/
17535
17536         test-chown.h: correct a cast
17537         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17538         when the destination is a stat.st_gid.
17539
17540 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17541
17542         getaddrinfo: Fix test for sa_len member.
17543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17544         include <sys/types.h> before <sys/socket.h>.
17545
17546 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         maint: change "can not" to "cannot"
17549         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17550         boundaries.
17551
17552 2011-04-09  Jim Meyering  <meyering@redhat.com>
17553
17554         maint: change "a a" to "a"
17555         * tests/test-lchown.h (test_lchown): s/a a/a/
17556
17557         maint.mk: prohibit \<the the\>
17558         * top/maint.mk (sc_prohibit_the_the): New rule.
17559
17560         maint: fix "the the" in comment
17561         * lib/count-one-bits.h: s/the the/the/
17562
17563         maint: change "can not" to "cannot"
17564         But do not change the occurrences in maintain.texi or in
17565         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17566         * doc/gnulib-tool.texi: s/can not/cannot/
17567         * doc/posix-functions/accept.texi (accept): Likewise.
17568         * doc/posix-functions/socket.texi (socket): Likewise.
17569         * lib/mbrtowc.c: Likewise.
17570
17571         maint.mk: prohibit use of "can not"
17572         * top/maint.mk (sc_prohibit_can_not): New rule.
17573         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17574
17575 2011-04-09  Bruno Haible  <bruno@clisp.org>
17576
17577         careadlinkat: Guard against misuse of careadlinkatcwd.
17578         * lib/careadlinkat.c: Include <stdlib.h>.
17579         (careadlinkatcwd): Check that the fd argument is as expected.
17580
17581 2011-04-09  Bruno Haible  <bruno@clisp.org>
17582
17583         careadlinkat: Use common coding style.
17584         * lib/careadlinkat.c: Move gnulib includes after system includes.
17585
17586 2011-04-09  Bruno Haible  <bruno@clisp.org>
17587
17588         careadlinkat: Clarify specification.
17589         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17590         (careadlinkatcwd): Add comment.
17591         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17592
17593 2011-04-09  Bruno Haible  <bruno@clisp.org>
17594
17595         areadlinkat: Avoid link error on many platforms.
17596         * modules/areadlinkat (Depends-on): Add areadlink.
17597
17598 2011-04-09  Bruno Haible  <bruno@clisp.org>
17599
17600         allocator, careadlinkat: Fix double-inclusion guard.
17601         * lib/allocator.h: Fix double-inclusion guard.
17602         * lib/careadlinkat.h: Likewise.
17603
17604 2011-04-09  Bruno Haible  <bruno@clisp.org>
17605
17606         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17607         * lib/relocwrapper.c: Update dependencies hierarchy.
17608         * build-aux/install-reloc: Update list of files to be compiled.
17609         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17610         lib/allocator.[hc].
17611
17612 2011-04-08  Eric Blake  <eblake@redhat.com>
17613
17614         strftime: silence gnulib-tool warning
17615         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17616
17617 2011-04-08  Bruno Haible  <bruno@clisp.org>
17618
17619         verify: Fix syntax error with GCC 4.6 in C++ mode.
17620         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17621         (HAVE_STATIC_ASSERT): New macro.
17622         (verify_true, verify): Use 'static_assert' if it is supported and
17623         '_Static_assert' is not supported.
17624
17625 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17626
17627         allocator: New module.
17628         * modules/allocator, lib/allocator.c: New files.
17629         * lib/allocator.h (stdlib_allocator): New decl.
17630         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17631         Remove.  Do not include <stdlib.h>.
17632         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17633         * modules/careadlinkat (Files): Remove lib/allocator.h.
17634         (Depends-on): Add allocator.
17635
17636         stdlib: let modules use system malloc, realloc
17637         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17638         if !_GL_USE_STDLIB_ALLOC.
17639         (malloc, realloc): Limit this change to a smaller scope.
17640
17641         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17642         (malloc, realloc): Don't #undef; no longer needed.
17643         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17644         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17645         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17646         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17647         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17648         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17649         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17650         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17651
17652         careadlinkat: rename members to avoid problem
17653         * lib/allocator.h (struct allocator): Rename members from
17654         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17655         and realloc are #define'd.  Reported by Eric Blake in
17656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17657         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17658
17659 2011-04-08  Eric Blake  <eblake@redhat.com>
17660
17661         nonblocking: reduce dependency
17662         * tests/test-nonblocking.c: Only test sockets when in use.
17663         * modules/nonblocking-tests (Depends-on): Drop socket.
17664         (Makefile.am): Link even if sockets are not present.
17665         * modules/pipe2-tests (Makefile.am): Likewise.
17666         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17667
17668         pipe2: fix O_NONBLOCK support on mingw
17669         * modules/pipe2 (Depends-on): Add nonblocking.
17670         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17671         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17672         * tests/test-nonblocking.c (main): Likewise.
17673         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17674
17675         fcntl-h: fix O_ACCMODE on cygwin
17676         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17677         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17678
17679         pipe-filter: drop O_NONBLOCK workarounds
17680         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17681         * modules/pipe-filter-ii (Depends-on): Likewise.
17682         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17683
17684         nonblocking: provide O_NONBLOCK for mingw
17685         * modules/nonblocking (Depends-on): Add open.
17686         (configure.ac): Set new witness macro.
17687         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17688         * modules/fcntl-h (Makefile.am): Substitute it.
17689         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17690         nonblocking module is in use.
17691         * lib/nonblocking.c: Adjust portability test.
17692         * lib/open.c (open): Don't let native open see gnulib flag.
17693         * tests/test-fcntl-h.c (main): Enhance test.
17694         * tests/test-open.h (test_open): Likewise.
17695         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17696
17697         careadlinkat: fix compilation error on mingw
17698         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17699         within struct allocator.
17700
17701 2011-04-06  Eric Blake  <eblake@redhat.com>
17702
17703         binary-io: relicense under LGPLv2+
17704         * modules/binary-io (License): Relax to LGPLv2+.
17705         Requested for libvirt, and required by pipe2.
17706
17707 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17708
17709         verify: use _Static_assert if available
17710         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17711         (verify_true, verify): Use it if available.  This generates better
17712         diagnostics with GCC 4.6.0 and later.
17713
17714 2011-04-05  Bruno Haible  <bruno@clisp.org>
17715
17716         Remove leftover generated .h files after config.status changed.
17717
17718         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17719         GL_GENERATE_ALLOCA_H.
17720         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17721         GL_GENERATE_ALLOCA_H evaluates to false.
17722
17723         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17724         GL_GENERATE_ARGZ_H.
17725         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17726         evaluates to false.
17727
17728         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17729         GL_GENERATE_BYTESWAP_H.
17730         * modules/byteswap (Makefile.am): Remove byteswap.h if
17731         GL_GENERATE_BYTESWAP_H evaluates to false.
17732
17733         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17734         GL_GENERATE_ERRNO_H.
17735         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17736         evaluates to false.
17737
17738         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17739         GL_GENERATE_FLOAT_H.
17740         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17741         evaluates to false.
17742
17743         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17744         GL_GENERATE_FNMATCH_H.
17745         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17746         GL_GENERATE_FNMATCH_H evaluates to false.
17747
17748         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17749         GL_GENERATE_GLOB_H.
17750         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17751         evaluates to false.
17752
17753         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17754         automake conditional GL_GENERATE_ICONV_H.
17755         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17756         evaluates to false.
17757
17758         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17759         GL_GENERATE_NETINET_IN_H.
17760         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17761         GL_GENERATE_NETINET_IN_H evaluates to false.
17762
17763         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17764         conditional GL_GENERATE_PTHREAD_H.
17765         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17766         * modules/pthread (Makefile.am): Remove pthread.h if
17767         GL_GENERATE_PTHREAD_H evaluates to false.
17768
17769         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17770         GL_GENERATE_SCHED_H.
17771         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17772         evaluates to false.
17773
17774         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17775         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17776         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17777         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17778
17779         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17780         GL_GENERATE_STDARG_H.
17781         * modules/stdarg (Makefile.am): Remove stdarg.h if
17782         GL_GENERATE_STDARG_H evaluates to false.
17783
17784         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17785         GL_GENERATE_STDBOOL_H.
17786         * modules/stdbool (Makefile.am): Remove stdbool.h if
17787         GL_GENERATE_STDBOOL_H evaluates to false.
17788
17789         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17790         conditional GL_GENERATE_STDDEF_H.
17791         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17792         * modules/stddef (Makefile.am): Remove stddef.h if
17793         GL_GENERATE_STDDEF_H evaluates to false.
17794
17795         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17796         GL_GENERATE_STDINT_H.
17797         * modules/stdint (Makefile.am): Remove stdint.h if
17798         GL_GENERATE_STDINT_H evaluates to false.
17799
17800         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17801         GL_GENERATE_SYSEXITS_H.
17802         * modules/sysexits (Makefile.am): Remove sysexits.h if
17803         GL_GENERATE_SYSEXITS_H evaluates to false.
17804
17805         Reported by Karl Berry and Ralf Wildenhues.
17806
17807 2011-04-05  Bruno Haible  <bruno@clisp.org>
17808
17809         Ensure to rebuild generated .h files when config.status has changed.
17810         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17811         config.status.
17812         * modules/ctype (Makefile.am): Likewise.
17813         * modules/dirent (Makefile.am): Likewise.
17814         * modules/errno (Makefile.am): Likewise.
17815         * modules/fcntl-h (Makefile.am): Likewise.
17816         * modules/float (Makefile.am): Likewise.
17817         * modules/getopt-posix (Makefile.am): Likewise.
17818         * modules/glob (Makefile.am): Likewise.
17819         * modules/iconv-h (Makefile.am): Likewise.
17820         * modules/inttypes (Makefile.am): Likewise.
17821         * modules/langinfo (Makefile.am): Likewise.
17822         * modules/locale (Makefile.am): Likewise.
17823         * modules/math (Makefile.am): Likewise.
17824         * modules/netdb (Makefile.am): Likewise.
17825         * modules/netinet_in (Makefile.am): Likewise.
17826         * modules/poll-h (Makefile.am): Likewise.
17827         * modules/pthread (Makefile.am): Likewise.
17828         * modules/pty (Makefile.am): Likewise.
17829         * modules/sched (Makefile.am): Likewise.
17830         * modules/search (Makefile.am): Likewise.
17831         * modules/selinux-h (Makefile.am): Likewise.
17832         * modules/signal (Makefile.am): Likewise.
17833         * modules/spawn (Makefile.am): Likewise.
17834         * modules/stdarg (Makefile.am): Likewise.
17835         * modules/stdbool (Makefile.am): Likewise.
17836         * modules/stddef (Makefile.am): Likewise.
17837         * modules/stdint (Makefile.am): Likewise.
17838         * modules/stdio (Makefile.am): Likewise.
17839         * modules/stdlib (Makefile.am): Likewise.
17840         * modules/string (Makefile.am): Likewise.
17841         * modules/strings (Makefile.am): Likewise.
17842         * modules/sys_file (Makefile.am): Likewise.
17843         * modules/sys_ioctl (Makefile.am): Likewise.
17844         * modules/sys_select (Makefile.am): Likewise.
17845         * modules/sys_socket (Makefile.am): Likewise.
17846         * modules/sys_stat (Makefile.am): Likewise.
17847         * modules/sys_time (Makefile.am): Likewise.
17848         * modules/sys_times (Makefile.am): Likewise.
17849         * modules/sys_utsname (Makefile.am): Likewise.
17850         * modules/sys_wait (Makefile.am): Likewise.
17851         * modules/sysexits (Makefile.am): Likewise.
17852         * modules/termios (Makefile.am): Likewise.
17853         * modules/time (Makefile.am): Likewise.
17854         * modules/unistd (Makefile.am): Likewise.
17855         * modules/wchar (Makefile.am): Likewise.
17856         * modules/wctype-h (Makefile.am): Likewise.
17857         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17858
17859 2011-04-05  Bruno Haible  <bruno@clisp.org>
17860
17861         pipe2: Relicense under LGPLv2+.
17862         * modules/pipe2 (License): Change to LGPLv2+.
17863         Requested by Eric Blake, for libvirt.
17864
17865 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17866
17867         bootstrap: compute gnulib_extra_files after updating build_aux
17868         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17869         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17870
17871 2011-04-05  Eric Blake  <eblake@redhat.com>
17872
17873         bootstrap: preserve git whitelist item sorting
17874         * build-aux/bootstrap (sort_patterns): New function.
17875         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17876
17877 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17878
17879         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17880         sc_space_tab check.
17881
17882 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17883
17884         areadlink, areadlinkat: rewrite in terms of careadlinkat
17885         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17886         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17887         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17888         (malloc, realloc): Remove #undefs.
17889         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17890         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17891         readlink, ssize_t, stdint, unistd.
17892         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17893         areadlink, stdint.
17894
17895         careadlinkat: new module
17896         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17897         * modules/careadlinkat: New files, written by me with
17898         a review and feedback from Ben Pfaff in
17899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17900
17901 2011-04-01  Bruno Haible  <bruno@clisp.org>
17902
17903         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17904         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17905         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17906         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17907         Reported by Bruce Korb <bruce.korb@gmail.com>.
17908
17909 2011-04-01  Bruno Haible  <bruno@clisp.org>
17910
17911         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17912         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17913         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17914         * modules/wcpcpy (Depends-on): Add extensions.
17915         * modules/wcpncpy (Depends-on): Likewise.
17916         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17917         systems.
17918         * doc/posix-functions/wcpncpy.texi: Likewise.
17919         * doc/posix-functions/wcwidth.texi: Likewise.
17920
17921 2011-03-31  Eric Blake  <eblake@redhat.com>
17922
17923         nonblocking: fix mingw test failures
17924         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17925         non-blocking flag on regular file.
17926         (get_nonblocking_flag): Set errno on invalid fd.
17927         * tests/test-nonblocking.c (main): Avoid test failure on
17928         directories if fchdir is not active.
17929         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17930
17931 2011-03-31  Bruno Haible  <bruno@clisp.org>
17932
17933         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17934         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17935         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17936         Reported by Simon Josefsson <simon@josefsson.org>.
17937
17938 2011-03-31  Bruno Haible  <bruno@clisp.org>
17939         and Eric Blake  <eblake@redhat.com>
17940
17941         nonblocking: new module
17942         * modules/nonblocking: New module.
17943         * modules/nonblocking-tests: Likewise.
17944         * lib/nonblocking.h: New file.
17945         * lib/nonblocking.c: Likewise.
17946         * tests/test-nonblocking.c: New test.
17947         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17948
17949 2011-03-30  Bruno Haible  <bruno@clisp.org>
17950
17951         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17952         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17953         instead of 'printf' format for GCC >= 4.4.
17954         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17955         (fprintf, printf, vfprintf, vprintf): Declare with
17956         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17957         the system's vfprintf() function.
17958         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17959
17960 2011-03-30  Eric Blake  <eblake@redhat.com>
17961
17962         passfd: fix scoping bug
17963         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17964         before sendmsg/recvmsg.
17965
17966         passfd: standardize coding conventions
17967         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17968         can be learned at compile time.
17969         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17970         ifdefs.
17971         (sendfd, recvfd): Follow gnulib code conventions.
17972
17973         passfd: fix incorrect sendmsg arguments
17974         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17975         incorrect msg_controllen value.
17976         * modules/passfd-tests (Depends-on): Check for alarm.
17977         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17978         Reported by Bastien ROUCARIES.
17979
17980 2011-03-30  Bruno Haible  <bruno@clisp.org>
17981
17982         c-strcasestr: Relicense under LGPLv2+.
17983         * modules/c-strcasestr (License): Change to LGPLv2+.
17984         Requested by Eric Blake, for libvirt.
17985
17986 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17987
17988         * users.txt: Add libidn2.  Fix libtasn1 link.
17989
17990 2011-03-30  Jim Meyering  <meyering@redhat.com>
17991
17992         tests: readlink* ("",... fails with EINVAL on newer kernels
17993         readlink and readlinkat have typically failed with ENOENT for
17994         the invalid, empty file name,  "".  However, with the advent
17995         of linux-2.6.39, they fail with EINVAL.
17996         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17997         when operating on the empty file name.
17998         * tests/test-readlink.h (test_readlink): Likewise.
17999
18000 2011-03-29  Bruno Haible  <bruno@clisp.org>
18001
18002         Relicense some modules under LGPLv2+, for libidn2.
18003         * modules/array-mergesort (License): Change to LGPLv2+.
18004         * modules/c-strcaseeq (License): Likewise.
18005         * modules/striconveh (License): Likewise.
18006         * modules/striconveha (License): Likewise.
18007         * modules/uniconv/base (License): Likewise.
18008         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18009         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18010         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18011         * modules/unictype/base (License): Likewise.
18012         * modules/unictype/bidiclass-of (License): Likewise.
18013         * modules/unictype/category-M (License): Likewise.
18014         * modules/unictype/category-none (License): Likewise.
18015         * modules/unictype/category-of (License): Likewise.
18016         * modules/unictype/category-test (License): Likewise.
18017         * modules/unictype/category-test-withtable (License): Likewise.
18018         * modules/unictype/combining-class (License): Likewise.
18019         * modules/unictype/joiningtype-of (License): Likewise.
18020         * modules/unictype/scripts (License): Likewise.
18021         * modules/uninorm/base (License): Likewise.
18022         * modules/uninorm/canonical-decomposition (License): Likewise.
18023         * modules/uninorm/composition (License): Likewise.
18024         * modules/uninorm/decompose-internal (License): Likewise.
18025         * modules/uninorm/decomposition-table (License): Likewise.
18026         * modules/uninorm/nfc (License): Likewise.
18027         * modules/uninorm/nfd (License): Likewise.
18028         * modules/uninorm/u32-normalize (License): Likewise.
18029         * modules/unistr/base (License): Likewise.
18030         * modules/unistr/u32-cpy (License): Likewise.
18031         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18032         * modules/unistr/u32-to-u8 (License): Likewise.
18033         * modules/unistr/u32-uctomb (License): Likewise.
18034         * modules/unistr/u8-check (License): Likewise.
18035         * modules/unistr/u8-mblen (License): Likewise.
18036         * modules/unistr/u8-mbtouc (License): Likewise.
18037         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18038         * modules/unistr/u8-mbtoucr (License): Likewise.
18039         * modules/unistr/u8-prev (License): Likewise.
18040         * modules/unistr/u8-strlen (License): Likewise.
18041         * modules/unistr/u8-to-u32 (License): Likewise.
18042         * modules/unistr/u8-uctomb (License): Likewise.
18043         * modules/unitypes (License): Likewise.
18044         Requested by Simon Josefsson.
18045
18046 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18047
18048         lib-symbol-visibility: Add a notice.
18049         * modules/lib-symbol-visibility (Notice): New field.
18050
18051 2011-03-29  Bruno Haible  <bruno@clisp.org>
18052
18053         getaddrinfo: Doc fix.
18054         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18055         section "fixed in Gnulib".
18056
18057 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18058
18059         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18060         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18061
18062 2011-03-26  Bruno Haible  <bruno@clisp.org>
18063
18064         unictype/property-byname: Reduce the number of load-time relocations.
18065         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18066         (UC_PROPERTY_INDEX_*): New enumeration values.
18067         (uc_property_byname): Convert an index from the lookup table to an
18068         uc_property_t.
18069         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18070         values.
18071
18072 2011-03-26  Bruno Haible  <bruno@clisp.org>
18073
18074         unictype/property-byname: Allow omitted word separators and aliases.
18075         * lib/unictype/pr_byname.gperf: Add property names without word
18076         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18077         for 'space'.
18078
18079 2011-03-26  Bruno Haible  <bruno@clisp.org>
18080
18081         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18082         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18083         also hyphens to space.
18084         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18085         without spaces.
18086         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18087
18088 2011-03-26  Bruno Haible  <bruno@clisp.org>
18089
18090         unictype/joiningtype-byname: Recognize long names as well.
18091         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18092         a long name.
18093         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18094         unictype/joiningtype_byname.h.
18095         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18096         * lib/unictype/joiningtype_byname.gperf: New file.
18097         * modules/unictype/joiningtype-byname (Files): Add
18098         lib/unictype/joiningtype_byname.gperf.
18099         (Depends-on): Add gperf.
18100         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18101         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18102         long names.
18103
18104         Tests for module 'unictype/joiningtype-longname'.
18105         * modules/unictype/joiningtype-longname-tests: New file.
18106         * tests/unictype/test-joiningtype_longname.c: New file.
18107
18108         New module 'unictype/joiningtype-longname'.
18109         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18110         * lib/unictype/joiningtype_longname.c: New file.
18111         * modules/unictype/joiningtype-longname: New file.
18112         * modules/unictype/joiningtype-all (Depends-on): Add
18113         unictype/joiningtype-longname.
18114
18115 2011-03-26  Bruno Haible  <bruno@clisp.org>
18116
18117         unictype/bidiclass-byname: Recognize long names as well.
18118         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18119         name.
18120         * lib/unictype/bidi_byname.c: Include <string.h>,
18121         unictype/bidi_byname.h.
18122         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18123         * lib/unictype/bidi_byname.gperf: New file.
18124         * modules/unictype/bidiclass-byname (Files): Add
18125         lib/unictype/bidi_byname.gperf.
18126         (Depends-on): Add gperf.
18127         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18128         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18129         long names.
18130
18131         Tests for module 'unictype/bidiclass-longname'.
18132         * modules/unictype/bidiclass-longname-tests: New file.
18133         * tests/unictype/test-bidi_longname.c: New file.
18134
18135         New module 'unictype/bidiclass-longname'.
18136         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18137         * lib/unictype/bidi_longname.c: New file.
18138         * modules/unictype/bidiclass-longname: New file.
18139         * modules/unictype/bidiclass-all (Depends-on): Add
18140         unictype/bidiclass-longname.
18141
18142 2011-03-26  Bruno Haible  <bruno@clisp.org>
18143
18144         unictype/bidi*: Rename modules.
18145         * modules/unictype/bidiclass-all: Renamed from
18146         modules/unictype/bidicategory-all.
18147         * modules/unictype/bidiclass-name: Renamed from
18148         modules/unictype/bidiclass-name.
18149         (Description): Update.
18150         * modules/unictype/bidiclass-name-tests: Renamed from
18151         modules/unictype/bidicategory-name-tests.
18152         * modules/unictype/bidiclass-byname: Renamed from
18153         modules/unictype/bidicategory-byname.
18154         (Description): Update.
18155         * modules/unictype/bidiclass-byname-tests: Renamed from
18156         modules/unictype/bidicategory-byname-tests.
18157         * modules/unictype/bidiclass-of: Renamed from
18158         modules/unictype/bidicategory-of.
18159         (Description): Update.
18160         * modules/unictype/bidiclass-of-tests: Renamed from
18161         modules/unictype/bidicategory-of-tests.
18162         * modules/unictype/bidiclass-test: Renamed from
18163         modules/unictype/bidicategory-test.
18164         (Description): Update.
18165         * modules/unictype/bidiclass-test-tests: Renamed from
18166         modules/unictype/bidicategory-test-tests.
18167         * modules/unictype/bidicategory-all: New file, a simple redirection.
18168         * modules/unictype/bidicategory-name: Likewise.
18169         * modules/unictype/bidicategory-byname: Likewise.
18170         * modules/unictype/bidicategory-of: Likewise.
18171         * modules/unictype/bidicategory-test: Likewise.
18172         * modules/unictype/property-bidi-* (Dependencies): Update.
18173         * lib/unictype/bidi_*.c: Update comment.
18174
18175 2011-03-26  Bruno Haible  <bruno@clisp.org>
18176
18177         unictype/bidi*: Rename functions, part 2.
18178         * modules/unictype/bidicategory-name (configure.ac): Update required
18179         libunistring version.
18180         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18181
18182 2011-03-25  Bruno Haible  <bruno@clisp.org>
18183
18184         New module 'unictype/combining-class-all'.
18185         * modules/unictype/combining-class-all: New file.
18186
18187         Tests for module 'unictype/combining-class-byname'.
18188         * modules/unictype/combining-class-byname-tests: New file.
18189         * tests/unictype/test-combiningclass_byname.c: New file.
18190
18191         New module 'unictype/combining-class-byname'.
18192         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18193         * lib/unictype/combiningclass_byname.c: New file.
18194         * lib/unictype/combiningclass_byname.gperf: New file.
18195         * modules/unictype/combining-class-byname: New file.
18196
18197         Tests for module 'unictype/combining-class-longname'.
18198         * modules/unictype/combining-class-longname-tests: New file.
18199         * tests/unictype/test-combiningclass_longname.c: New file.
18200
18201         New module 'unictype/combining-class-longname'.
18202         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18203         * lib/unictype/combiningclass_longname.c: New file.
18204         * modules/unictype/combining-class-longname: New file.
18205
18206         Tests for module 'unictype/combining-class-name'.
18207         * modules/unictype/combining-class-name-tests: New file.
18208         * tests/unictype/test-combiningclass_name.c: New file.
18209
18210         New module 'unictype/combining-class-name'.
18211         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18212         * lib/unictype/combiningclass_name.c: New file.
18213         * modules/unictype/combining-class-name: New file.
18214
18215 2011-03-25  Bruno Haible  <bruno@clisp.org>
18216
18217         unictype/combining-class: Rename source files.
18218         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18219         of unictype/combining.h.
18220         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18221         Update.
18222         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18223         * modules/unictype/combining-class (Description): Fix.
18224         (Files, Makefile.am): Update.
18225         * tests/unictype/test-combiningclass.c: Renamed from
18226         tests/unictype/test-combining.c.
18227         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18228
18229 2011-03-25  Bruno Haible  <bruno@clisp.org>
18230
18231         unictype: Update list of canonical combining classes.
18232         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18233
18234 2011-03-25  Bruno Haible  <bruno@clisp.org>
18235
18236         unictype/category-byname: Recognize long names as well.
18237         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18238         a long name.
18239         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18240         unictype/categ_byname.h.
18241         (UC_CATEGORY_INDEX_*): New enumeration values.
18242         (uc_general_category_byname): Use uc_general_category_lookup and
18243         convert from index to value.
18244         * lib/unictype/categ_byname.gperf: New file.
18245         * modules/unictype/category-byname (Files): Add
18246         lib/unictype/categ_byname.gperf.
18247         (Depends-on): Add gperf.
18248         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18249         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18250         long names.
18251
18252         Tests for module 'unictype/category-longname'.
18253         * modules/unictype/category-longname-tests: New file.
18254         * tests/unictype/test-categ_longname.c: New file.
18255
18256         New module 'unictype/category-longname'.
18257         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18258         * lib/unictype/categ_longname.c: New file.
18259         * modules/unictype/category-longname: New file.
18260         * modules/unictype/category-all (Depends-on): Add it.
18261
18262 2011-03-25  Bruno Haible  <bruno@clisp.org>
18263
18264         Tests for module 'unictype/category-LC'.
18265         * modules/unictype/category-LC-tests: New file.
18266         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18267
18268         New module 'unictype/category-LC'.
18269         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18270         (UC_CATEGORY_LC): New declaration.
18271         (UC_CASED_LETTER): New macro.
18272         * lib/gen-uni-tables.c (is_category_LC): New function.
18273         (output_categories): Also handle category LC.
18274         (UC_CATEGORY_MASK_LC): New enumeration value.
18275         (general_category_byname): Also handle category LC.
18276         * lib/unictype/categ_LC.c: New file.
18277         * lib/unictype/categ_LC.h: New file, automatically generated.
18278         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18279         category LC.
18280         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18281         * modules/unictype/category-LC: New file.
18282         * modules/unictype/category-byname (Depends-on): Add
18283         unictype/category-LC.
18284         * modules/unictype/category-all (Depends-on): Likewise.
18285
18286 2011-03-25  Eric Blake  <eblake@redhat.com>
18287
18288         xmalloc: revert yesterday's regression
18289         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18290         realloc's underlying behavior (allowing allocation of zero-size
18291         objects, especially if malloc-gnu is also in use).
18292
18293 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18294
18295         maint.mk: add missing version to VC-tag
18296         * top/maint.mk: git tag was missing actual tag name; add it.
18297
18298         valgrind: do leak checking, and exit with code 1 on error (not 0)
18299         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18300         to VALGRIND.
18301
18302 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18303
18304         posix-modules: say what it does.
18305         * posix-modules: Add a line to the --help output saying what it does.
18306
18307 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18308
18309         xmalloc: Do not leak if underlying realloc is C99 compatible.
18310         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18311         This avoids a leak on C99-based systems.  See
18312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18313
18314 2011-03-24  Eric Blake  <eblake@redhat.com>
18315
18316         realloc: document portability problem
18317         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18318         passing 0 size to realloc.
18319
18320 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18321
18322         doc: update users.txt
18323         * users.txt: Add cvsps, tmpwatch
18324
18325 2011-03-23  Matt Rice  <ratmice@gmail.com>
18326
18327         doc: update users.txt
18328         * users.txt: Add gdb.
18329
18330 2011-03-23  Jim Meyering  <meyering@redhat.com>
18331
18332         doc: update users.txt
18333         Looking through matches up to the following URL (there are still
18334         several more pages), I found several projects that use gnulib:
18335         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18336         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18337         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18338
18339 2011-03-22  Bruno Haible  <bruno@clisp.org>
18340
18341         unictype/bidi*: Rename functions.
18342         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18343         uc_bidi_class, uc_is_bidi_class): New declarations.
18344         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18345         uc_bidi_category_byname.
18346         (uc_bidi_category_byname): New function.
18347         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18348         u_bidi_category_name.
18349         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18350         (uc_bidi_category_name): New function.
18351         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18352         uc_bidi_category.
18353         (uc_bidi_category): New function.
18354         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18355         uc_is_bidi_category. Invoke uc_bidi_class.
18356         (uc_is_bidi_category): New function.
18357         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18358         instead of uc_bidi_category_byname.
18359         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18360         instead of uc_bidi_category_name.
18361         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18362         uc_bidi_category.
18363         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18364         instead of uc_is_bidi_category.
18365
18366 2011-03-21  Bruno Haible  <bruno@clisp.org>
18367
18368         New module 'unictype/joininggroup-all'.
18369         * modules/unictype/joininggroup-all: New file.
18370
18371         Tests for module 'unictype/joininggroup-of'.
18372         * modules/unictype/joininggroup-of-tests: New file.
18373         * tests/unictype/test-joininggroup_of.c: New file.
18374         * tests/unictype/test-joininggroup_of.h: New file, automatically
18375         generated by gen-uni-tables.
18376
18377         New module 'unictype/joininggroup-of'.
18378         * modules/unictype/joininggroup-of: New file.
18379         * lib/unictype/joininggroup_of.c: New file.
18380         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18381         gen-uni-tables.
18382
18383         Tests for module 'unictype/joininggroup-byname'.
18384         * modules/unictype/joininggroup-byname-tests: New file.
18385         * tests/unictype/test-joininggroup_byname.c: New file.
18386
18387         New module 'unictype/joininggroup-byname'.
18388         * modules/unictype/joininggroup-byname: New file.
18389         * lib/unictype/joininggroup_byname.c: New file.
18390         * lib/unictype/joininggroup_byname.gperf: New file.
18391
18392         Tests for module 'unictype/joininggroup-name'.
18393         * modules/unictype/joininggroup-name-tests: New file.
18394         * tests/unictype/test-joininggroup_name.c: New file.
18395
18396         New module 'unictype/joininggroup-name'.
18397         * modules/unictype/joininggroup-name: New file.
18398         * lib/unictype/joininggroup_name.c: New file.
18399         * lib/unictype/joininggroup_name.h: New file.
18400
18401         New module 'unictype/joiningtype-all'.
18402         * modules/unictype/joiningtype-all: New file.
18403
18404         Tests for module 'unictype/joiningtype-of'.
18405         * modules/unictype/joiningtype-of-tests: New file.
18406         * tests/unictype/test-joiningtype_of.c: New file.
18407         * tests/unictype/test-joiningtype_of.h: New file, automatically
18408         generated by gen-uni-tables.
18409
18410         New module 'unictype/joiningtype-of'.
18411         * modules/unictype/joiningtype-of: New file.
18412         * lib/unictype/joiningtype_of.c: New file.
18413         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18414         gen-uni-tables.
18415
18416         Tests for module 'unictype/joiningtype-byname'.
18417         * modules/unictype/joiningtype-byname-tests: New file.
18418         * tests/unictype/test-joiningtype_byname.c: New file.
18419
18420         New module 'unictype/joiningtype-byname'.
18421         * modules/unictype/joiningtype-byname: New file.
18422         * lib/unictype/joiningtype_byname.c: New file.
18423
18424         Tests for module 'unictype/joiningtype-name'.
18425         * modules/unictype/joiningtype-name-tests: New file.
18426         * tests/unictype/test-joiningtype_name.c: New file.
18427
18428         New module 'unictype/joiningtype-name'.
18429         * modules/unictype/joiningtype-name: New file.
18430         * lib/unictype/joiningtype_name.c: New file.
18431
18432         unictype: Add support for Arabic shaping properties.
18433         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18434         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18435         declarations.
18436         (UC_JOINING_GROUP_*): New enumeration values.
18437         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18438         declarations.
18439         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18440         (unicode_joining_type): New variable.
18441         (UC_JOINING_GROUP_*): New enumeration values.
18442         (unicode_joining_group): New variable.
18443         (fill_arabicshaping, joining_type_as_c_identifier,
18444         output_joining_type_test, output_joining_type,
18445         joining_group_as_c_identifier, output_joining_group_test,
18446         output_joining_group): New functions.
18447         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18448         fill_arabicshaping and output_joining_type_test, output_joining_type,
18449         output_joining_group_test, output_joining_group.
18450         Reported by Simon Josefsson.
18451
18452 2011-03-21  Jim Meyering  <meyering@redhat.com>
18453
18454         strftime: fix a bug in yesterday's change
18455         * lib/strftime.c (add): Accommodate width's initial value of -1.
18456         Otherwise, nstrftime would copy uninitialized data into
18457         the result buffer.
18458
18459 2011-03-21  Jim Meyering  <meyering@redhat.com>
18460
18461         tests: add strftime-tests module
18462         * tests/test-strftime.c: New file.
18463         * modules/strftime-tests: New module.
18464
18465 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18466
18467         strftime: don't assume a byte count fits in 'int'
18468         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18469         found this problem by static analysis, using gcc -Wstrict-overflow
18470         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18471         on an integer overflow having undefined behavior, but it turns out
18472         that the argument is a size, which might not fit in 'int' anyway,
18473
18474 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18475
18476         stdio: don't require ignore_value around fwrite
18477
18478         This patch works around libc bug 11959
18479         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18480         Without this patch, applications must often write
18481         ignore_value (fwrite (...)) even though the ignore_value is
18482         not helpful here.  It's common to write many objects, using
18483         fwrite/printf/etc., and then use ferror to detect output error.
18484
18485         I considered making this patch optional, but decided against it,
18486         because libc is obviously being inconsistent here: there is no
18487         reason libc should insist that user code must inspect fwrite
18488         return's value without also insisting that it inspect printf's,
18489         putchar's, etc.  If user code wants to have a strict style where
18490         all these functions' values are checked (so that ferror need not
18491         be checked), we could add support for that style in a new gnulib
18492         module, but in the meantime it's better to be consistent and to
18493         support common usage.
18494
18495         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18496         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18497         that we are compiling in checking mode, and if not C++, and
18498         if not already wrapping fwrite for some other reason.
18499         (fwrite): #define to rpl_fwrite if the latter is defined.
18500
18501 2011-03-20  Bruno Haible  <bruno@clisp.org>
18502
18503         verror: Fix compilation error introduced on 2011-02-13.
18504         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18505         instead of __attribute__.
18506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18507
18508 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18509             Bruno Haible  <bruno@clisp.org>
18510
18511         socklen: do not depend on sys_socket
18512         While trying to modify Emacs to use gnulib's socklen module,
18513         I discovered a circular dependency: socklen depends on sys_socket
18514         and vice versa.  Emacs can use socklen, but it does not need
18515         sys_socket because it has its own substitute for sys/socket.h.
18516         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18517         gl_TYPE_SOCKLEN_T.
18518         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18519         gl_PREREQ_SYS_H_SOCKET.
18520         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18521         gl_PREREQ_SYS_H_SOCKET.
18522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18523         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18524         * modules/socklen (Depends-on): Do not depend on sys_socket.
18525         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18526
18527 2011-03-20  Jim Meyering  <meyering@redhat.com>
18528
18529         maint.mk: sort file names *after* new transformation
18530         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18531         prefix would have led to an unwarranted failure in GNU parted.
18532         Sort after that transformation.
18533
18534 2011-03-19  Jim Meyering  <meyering@redhat.com>
18535
18536         maint.mk: fix po-file syntax-check rule
18537         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18538         Patch by Bruno Haible.
18539
18540 2011-03-19  Bruno Haible  <bruno@clisp.org>
18541
18542         socklen: Update comment.
18543         * m4/socklen.m4: Update comment about platforms.
18544
18545 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18546             Bruno Haible  <bruno@clisp.org>
18547
18548         inet_ntop, inet_pton: Simplify.
18549         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18550         documented to provide socklen_t and we already depend on sys_socket.
18551         * modules/inet_pton (Depends-on): Likewise.
18552         * lib/arpa_inet.in.h: Adjust comment.
18553
18554 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18555             Bruno Haible  <bruno@clisp.org>
18556
18557         netdb: Simplify.
18558         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18559         documented to provide socklen_t and we already depend on sys_socket.
18560         * lib/netdb.in.h: Adjust comment.
18561
18562 2011-03-19  Bruno Haible  <bruno@clisp.org>
18563
18564         sys_socket, netdb: Document problem with socklen_t.
18565         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18566         platforms.
18567         * doc/posix-headers/netdb.texi: Likewise.
18568
18569 2011-03-18  Eric Blake  <eblake@redhat.com>
18570
18571         maint.mk: let po check work in VPATH build
18572         * top/maint.mk (po_file): Allow cfg.mk override.
18573         (sc_po_check): Allow VPATH use.
18574         Reported by Jiri Denemark.
18575
18576 2011-03-16  Jim Meyering  <meyering@redhat.com>
18577
18578         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18579         Before, you would have had to create one .x-sc_ file per rule in order
18580         to exempt offending files.  Now, you may instead use a Make variable --
18581         usually defined in cfg.mk -- whose name identifies the affected rule.
18582         * top/maint.mk (_sc_excl): Define.
18583         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18584         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18585
18586 2011-03-13  Bruno Haible  <bruno@clisp.org>
18587
18588         ignore-value tests: Avoid warnings.
18589         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18590         empty for gcc < 3.4.
18591
18592 2011-03-13  Bruno Haible  <bruno@clisp.org>
18593
18594         passfd: Fix link error on Solaris.
18595         * modules/passfd (Description): Correct.
18596         (Depends-on): Add socketlib.
18597         (Link): New section.
18598         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18599
18600 2011-03-13  Bruno Haible  <bruno@clisp.org>
18601
18602         passfd: Fix link error on AIX 5.2.
18603         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18604
18605 2011-03-13  Bruno Haible  <bruno@clisp.org>
18606
18607         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18608         * lib/sys_socket.in.h: Include <stddef.h>.
18609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18610         CMSG_FIRSTHDR. Remove unused variable.
18611
18612 2011-03-13  Bruno Haible  <bruno@clisp.org>
18613
18614         passfd: Fix compilation error on OpenBSD.
18615         * lib/passfd.c: Include <sys/uio.h>.
18616
18617 2011-03-13  Bruno Haible  <bruno@clisp.org>
18618
18619         passfd test: Fix warnings.
18620         * tests/test-passfd.c: Include <sys/wait.h>.
18621         (main): Fix typo.
18622
18623 2011-03-13  Bruno Haible  <bruno@clisp.org>
18624
18625         passfd module, part 4, tweaks.
18626         * tests/test-passfd.c: Reorder includes.
18627         (main): Fix perror and printf calls.
18628
18629 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18630
18631         passfd module, part 4.
18632         * modules/passfd-tests: New file.
18633         * tests/test-passfd.c: New file.
18634
18635 2011-03-13  Jim Meyering  <meyering@redhat.com>
18636
18637         Makefile: rely on GNU make; derive syntax-check rule names
18638         Rather than requiring that each sc_ rule be listed as a dependent
18639         of "check", use features of GNU make to derive the list.
18640         * Makefile (syntax-check-rules): Define.
18641         (check): Depend on the new variable, not the hard-coded list.
18642
18643 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18644             Bruno Haible  <bruno@clisp.org>
18645
18646         passfd module, part 3.
18647         * lib/passfd.h (recvfd): Add a flags argument.
18648         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18649         (recvfd): Add a flags argument.
18650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18651         exists.
18652         * modules/passfd (Depends-on): Add cloexec.
18653         Suggested by Eric Blake.
18654
18655 2011-03-13  Bruno Haible  <bruno@clisp.org>
18656
18657         passfd module, part 2, tweaks.
18658         * modules/passfd (Files): Reorder.
18659         (Depends-on): Remove errno.
18660         (Include): Remove <sys/socket.h>, <sys/un.h>.
18661         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18662         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18663         specification header. Include <sys/socket.h> always. Don't include
18664         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18665         (sendfd): Clarify that it sets errno when it fails.
18666         (recvfd): Fix specification.
18667
18668 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18669
18670         passfd module, part 2.
18671         * modules/passfd: New file.
18672         * lib/passfd.h: New file.
18673         * lib/passfd.c: New file.
18674
18675 2011-03-12  Bruno Haible  <bruno@clisp.org>
18676
18677         wcswidth, mbswidth: Avoid integer overflow.
18678         * lib/wcswidth.c: Include <limits.h>.
18679         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18680         * lib/mbswidth.c: Include <limits.h>.
18681         (mbsnwidth): Avoid 'int' overflow.
18682         Reported by Jim Meyering.
18683
18684 2011-03-12  Bruno Haible  <bruno@clisp.org>
18685
18686         futimens, utimensat: Avoid endless recursion on Solaris 10.
18687         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18688         Solaris.
18689         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18690         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18691
18692 2011-03-11  Jim Meyering  <meyering@redhat.com>
18693
18694         maint.mk: relax a regexp to accommodate other formatting styles
18695         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18696         between "ngettext" and the following "(".
18697
18698 2011-03-11  Pádraig Brady <P@draigBrady.com>
18699
18700         maint.mk: suppress a false positive warning
18701         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18702         diagnostics are marked with ngettext.
18703
18704 2011-03-10  Eric Blake  <eblake@redhat.com>
18705
18706         wchar: add explicit dependencies, for Tru64
18707         * modules/mbmemcasecoll (Depends-on): Add wchar.
18708         * modules/mbtowc (Depends-on): Likewise.
18709         * modules/vasnprintf (Depends-on): Likewise.
18710         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18711         * modules/wctomb (Depends-on): Likewise.
18712         Reported by Peter O'Gorman.
18713
18714 2011-03-08  Bruno Haible  <bruno@clisp.org>
18715
18716         passfd module, part 1, tweaks.
18717         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18718         Improve indentation. Improve AC_MSG_CHECKING messages.
18719         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18720         gl_SOCKET_FAMILIES.
18721
18722 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18723
18724         passfd module, part 1.
18725         * m4/afunix.m4: New file.
18726         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18727         sockets.
18728
18729 2011-03-08  Bruno Haible  <bruno@clisp.org>
18730
18731         regex-quote: New API.
18732         * lib/regex-quote.h: Include <stdbool.h>.
18733         (struct regex_quote_spec): New type.
18734         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18735         New declarations.
18736         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18737         'const struct regex_quote_spec *' argument.
18738         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18739         (pcre_special): New constant.
18740         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18741         New functions.
18742         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18743         'const struct regex_quote_spec *' argument.
18744         * modules/regex-quote (Depends-on): Add stdbool.
18745         * tests/test-regex-quote.c (check): Update for new API. Add test for
18746         anchored results.
18747         * NEWS: Mention the API change.
18748         Reported by Reuben Thomas and Eric Blake.
18749
18750 2011-03-06  Bruno Haible  <bruno@clisp.org>
18751
18752         regex-quote: Fix creation of POSIX extended regular expressions.
18753         * lib/regex-quote.c (ere_special): Add grouping and alternation
18754         operators.
18755
18756 2011-03-05  Bruno Haible  <bruno@clisp.org>
18757
18758         doc: Improve doc regarding autopoint vs. gnulib.
18759         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18760         disable autopoint while running autoreconf.
18761         Suggested by Ralf Wildenhues.
18762
18763 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18764
18765         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18766         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18767
18768 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18769
18770         parse-duration: remove xalloc.h dependency
18771         * lib/parse-duration.c (parse_period): handle NULL return from
18772         strdup instead of calling xstrdup().
18773         * modules/parse-duration: remove "xalloc" dependency
18774
18775 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18776
18777         bootstrap: honor m4_base when running aclocal
18778         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18779
18780 2011-03-02  Jim Meyering  <meyering@redhat.com>
18781
18782         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18783         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18784         on request from Matt Booth.
18785
18786 2011-03-01  Eric Blake  <eblake@redhat.com>
18787
18788         test-link: work on Hurd
18789         * tests/test-link.h (test_link): Hurd rejects linking directories
18790         with EISDIR instead of the POSIX-mandated EPERM.
18791
18792 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18793
18794         stdio: simplify by moving files to printf-posix, sigpipe
18795         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18796         since this symbol is needed only if printf is replaced.
18797         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18798         Require gl_ASM_SYMBOL_PREFIX.
18799         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18800         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18801         (Depends-on): Add 'raise'.
18802         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18803         * modules/stdio (Files): Remove lib/stdio-write.c,
18804         m4/asm-underscore.m4.
18805         (Depends-on): Remove 'raise'.
18806
18807         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18808         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18809         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18810         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18811
18812 2011-02-28  Bruno Haible  <bruno@clisp.org>
18813
18814         localcharset: Assume ANSI C behaviour of free().
18815         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18816         calling free().
18817         Suggested by Simon Josefsson <simon@josefsson.org>.
18818
18819 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18820             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18821             Bruno Haible  <bruno@clisp.org>  (tiny change)
18822
18823         On Cygwin, use /proc file system instead of win32 API.
18824         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18825         Win32 file names.
18826         (DllMain): Simplify by removing Cygwin specific code.
18827         (find_shared_library_fullname): Use Linux specific implementation also
18828         for Cygwin.
18829         (get_shared_library_fullname): Update accordingly.
18830         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18831         Win32 file names.
18832         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18833         Cygwin specific code.
18834
18835 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18836             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18837
18838         Fix OpenMP flag detection for various Fortran compilers.
18839         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18840         OpenMP-conditional compilation construct, to force compile
18841         failure with missing OpenMP flag.
18842         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18843
18844 2011-02-25  Eric Blake  <eblake@redhat.com>
18845
18846         strstr: expand test coverage
18847         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18848         compilation.
18849         * tests/test-memmem.c (main): Duplicate tests.
18850         * tests/test-strcasestr.c (main): Likewise.
18851         * tests/test-c-strcasestr.c (main): Likewise.
18852
18853 2011-02-25  Jim Meyering  <meyering@redhat.com>
18854
18855         maint.mk: detect missing-NL-at-EOF, too
18856         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18857         it also detects when a file lacks a newline at EOF.
18858         (require_exactly_one_NL_at_EOF_): Renamed from
18859         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18860         since people may well have .x-sc_... file names tied to the
18861         existing name.  Suggested by Eric Blake.
18862
18863 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18864
18865         dirname: move m4/dos.m4 functionality into lib/dosname.h
18866
18867         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18868         extracts symbols from it, puts them into config.h; but it's much
18869         easier to use the symbols directly.  filename.h already does this,
18870         but it disagrees with dos.m4 in some respects.  This patch
18871         introduces a different include file dosname.h that packages up
18872         dos.m4, and then later we can work on merging filename.h and
18873         dosname.h.  Applications that need only the easy-to-configure
18874         symbols should consider including dosname.h rather than dirname.h.
18875         * NEWS: Mention incompatible changes.
18876         * m4/dos.m4: Remove.
18877         * lib/dosname.h, modules/dosname: New files.
18878         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18879         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18880         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18881         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18882         Include dosname.h, not dirname.h.
18883         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18884         Include dosname.h, for definitions of symbols like ISSLASH
18885         that used to be in config.h.
18886         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18888         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18889         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18890         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18891         * modules/rmdir (Files): Likewise.
18892         * modules/stat (Files): Likewise.
18893         * modules/unlink (Files): Likewise.
18894         * modules/dirname-lgpl (Depends-on): Add dosname.
18895         * modules/lstat (Depends-on): Likewise.
18896         * modules/openat (Depends-on): Likewise.
18897         * modules/rmdir (Depends-on): Likewise.
18898         * modules/savewd (Depends-on): Likewise.
18899         * modules/stat (Depends-on): Likewise.
18900         * modules/unlink (Depends-on): Likewise.
18901         * modules/openat (Depends-on): Remove dirname-lgpl.
18902         * modules/savewd (Depends-on): Likewise.
18903         * tests/test-dirname.c: Do not use removed symbols like
18904         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18905         the remaining symbols, e.g., ISSLASH ('\\').
18906
18907 2011-02-25  Eric Blake  <eblake@redhat.com>
18908
18909         strstr: revert patches that introduced bug and pessimization
18910         * lib/str-two-way.h: Add another reference.
18911         (two_way_short_needle, two_way_long_needle): Revert changes from
18912         2011-02-24; they pessimize search speed.
18913         (critical_factorization): Partially revert changes from
18914         2010-06-22; they violate the requirement that the left half of the
18915         needle be smaller than the period of the needle.
18916
18917 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18918
18919         filenamecat: remove unnecessary dependency on dirname-lgpl
18920         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18921         is no direct dependency, just an indirect one via filenamecat-lgpl.
18922
18923         remove: remove unnecessary use of m4/dos.m4
18924         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18925         * modules/remove (FILES): Remove m4/dos.m4.
18926
18927         * lib/openat-proc.c: Don't include dirname.h; not needed.
18928
18929         backupfile: remove unnecessary use of m4/dos.m4
18930         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18931         of its symbols are used by the backupfile code.  backupfile.c does
18932         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18933         for the rare case of programs that want all their backup file
18934         names to live within 8+3 limits, and dos.m4 doesn't address that.
18935         * modules/backupfile (Files): Remove m4/dos.m4.
18936
18937 2011-02-24  Jim Meyering  <meyering@redhat.com>
18938
18939         strstr: fix a bug whereby strstr would mistakenly return NULL
18940         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18941         in period calculation.
18942         (two_way_long_needle): Likewise.
18943         The original problem was reported by Mike Stump in
18944         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18945         Ralf Wildenhues provided the short needle and haystack.
18946         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18947         Add a more involved test to trigger the bug in two_way_long_needle.
18948
18949 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18950
18951         gnulib-tool: remove use of bold display in help screen
18952         * gnulib-tool (func_usage): Do not use bold display anymore in the
18953         help screen.  That was just meant to be a temporary emphasis for a
18954         backward-incompatible change.
18955
18956 2011-02-23  Bruno Haible  <bruno@clisp.org>
18957
18958         Fix misindentation of preprocessor directives.
18959         * lib/argp-namefrob.h: Reindent preprocessor directives.
18960         * lib/getopt_int.h (struct _getopt_data): Likewise.
18961         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18962         * lib/vasnprintf.c (decode_long_double): Likewise.
18963         * tests/test-argmatch.c: Insert blank lines, for clarity.
18964         * tests/test-exclude.c: Likewise.
18965
18966 2011-02-22  Bruno Haible  <bruno@clisp.org>
18967
18968         ioctl: Fix for MacOS X in 64-bit mode.
18969         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18970         value.
18971         Suggested by Eric Blake.
18972         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18973
18974 2011-02-22  Jim Meyering  <meyering@redhat.com>
18975
18976         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18977         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18978         in lib/.
18979
18980 2011-02-22  Eric Blake  <eblake@redhat.com>
18981
18982         maint: avoid any CDPATH issue
18983         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18984
18985         maint: adjust cpp indentation for my modules, as well
18986         * Makefile (sc_cpp_indent_check): Add my name.
18987         * lib/fbufmode.c: Filter through cppi.
18988         * lib/fpurge.c: Likewise.
18989         * lib/freadable.c: Likewise.
18990         * lib/freading.c: Likewise.
18991         * lib/fwritable.c: Likewise.
18992         * lib/fwriting.c: Likewise.
18993         * lib/sigaction.c: Likewise.
18994
18995 2011-02-22  Jim Meyering  <meyering@redhat.com>
18996
18997         maint: adjust cpp indentation to reflect nesting depth
18998         I.e., in a block of code that begins with an unnested "#if",
18999         put one space between the "#" in column 1 and following token.
19000         For example,
19001         -#include <sys/vfs.h>
19002         +# include <sys/vfs.h>
19003         Do this only in .c files that are part of a module I maintain.
19004         * lib/linkat.c: Filter through cppi.
19005         * lib/nanosleep.c: Likewise.
19006         * lib/openat.c: Likewise.
19007         * lib/openat-die.c: Likewise.
19008         * lib/dup3.c: Likewise.
19009         * lib/fchownat.c: Likewise.
19010         * lib/flock.c: Likewise.
19011         * lib/fsync.c: Likewise.
19012         * lib/fts.c: Likewise.
19013         * lib/getpass.c: Likewise.
19014         * lib/gettimeofday.c: Likewise.
19015         * lib/userspec.c: Likewise.
19016         * Makefile (sc_cpp_indent_check): New rule, to check this.
19017
19018 2011-02-22  Bruno Haible  <bruno@clisp.org>
19019
19020         New module 'wctomb'.
19021         * lib/stdlib.in.h (wctomb): New declaration.
19022         * lib/wctomb.c: New file.
19023         * lib/wctomb-impl.h: New file.
19024         * m4/wctomb.m4: New file.
19025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19026         REPLACE_WCTOMB.
19027         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19028         REPLACE_WCTOMB.
19029         * modules/wctomb: New file.
19030         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19031         * doc/posix-functions/wctomb.texi: Mention the new module.
19032         * modules/wctob (Depends-on): Add wctomb.
19033
19034 2011-02-22  Bruno Haible  <bruno@clisp.org>
19035
19036         New module 'mbtowc'.
19037         * lib/stdlib.in.h (mbtowc): New declaration.
19038         * lib/mbtowc.c: New file.
19039         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19040         * m4/mbtowc.m4: New file.
19041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19042         REPLACE_MBTOWC.
19043         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19044         REPLACE_MBTOWC.
19045         * modules/mbtowc: New file.
19046         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19047         * doc/posix-functions/mbtowc.texi: Mention the new module.
19048         * modules/btowc (Depends-on): Add mbtowc.
19049
19050 2011-02-22  Bruno Haible  <bruno@clisp.org>
19051
19052         wcrtomb: Add more tests for native Windows platforms.
19053         * tests/test-wcrtomb-w32-1.sh: New file.
19054         * tests/test-wcrtomb-w32-2.sh: New file.
19055         * tests/test-wcrtomb-w32-3.sh: New file.
19056         * tests/test-wcrtomb-w32-4.sh: New file.
19057         * tests/test-wcrtomb-w32-5.sh: New file.
19058         * tests/test-wcrtomb-w32.c: New file.
19059         * modules/wcrtomb-tests (Files): Add them.
19060         (Makefile.am): Arrange to run these tests.
19061         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19062         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19063
19064 2011-02-20  Bruno Haible  <bruno@clisp.org>
19065
19066         wcrtomb: Enhance test.
19067         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19068
19069 2011-02-20  Bruno Haible  <bruno@clisp.org>
19070
19071         mbrtowc: Tiny optimization.
19072         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19073
19074 2011-02-20  Jim Meyering  <meyering@redhat.com>
19075
19076         test-exclude.c: remove unmatched #endif
19077         * tests/test-exclude.c: Remove stray #endif, left over from
19078         the change of a week ago.
19079
19080 2011-02-19  Jim Meyering  <meyering@redhat.com>
19081
19082         git-version-gen: skip "-dirty" check when appropriate
19083         * build-aux/git-version-gen: Don't run any git commands when the
19084         version string comes from .tarball-version.  Prior to this, we
19085         would run git update-index --refresh even from a just-unpacked
19086         tarball directory, and that could affect a .git/ directory in a
19087         parent of the build directory.  Reported by Mike Frysinger.
19088
19089 2011-02-19  Bruno Haible  <bruno@clisp.org>
19090
19091         unictype/property-byname: Reduce the size of the 'data' segment.
19092         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19093
19094 2011-02-19  Bruno Haible  <bruno@clisp.org>
19095
19096         unictype/scripts: Reduce the size of the 'data' segment.
19097         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19098         '%pic'.
19099         * lib/unictype/scripts_byname.gperf: Regenerated.
19100
19101 2011-02-19  Bruno Haible  <bruno@clisp.org>
19102
19103         stdint: Update documentation.
19104         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19105
19106 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19107
19108         stdint: omit redundant check for wchar.h
19109         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19110         always tests whether wchar.h exists, so remove the now-redundant test.
19111
19112 2011-02-18  Bruno Haible  <bruno@clisp.org>
19113
19114         stdint: Cut dependency to module 'wchar'.
19115         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19116         include the necessary prerequisites.
19117         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19118         * modules/stdint (Depends-on): Remove wchar.
19119         (Makefile.am): Substitute HAVE_WCHAR_H.
19120         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19121
19122 2011-02-18  Eric Blake  <eblake@redhat.com>
19123
19124         longlong: skip, rather than fail, on cross-compilation
19125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19126         when cross-compiling; regression from 2011-02-16.
19127
19128 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19129
19130         * NEWS: Mention 2011-02-08 change to stdlib.
19131
19132 2011-02-17  Bruno Haible  <bruno@clisp.org>
19133
19134         getloadavg: Add comments about platforms.
19135         * m4/getloadavg.m4: Add comment.
19136         * lib/getloadavg.c: Likewise.
19137
19138 2011-02-17  Bruno Haible  <bruno@clisp.org>
19139
19140         getloadavg: Fix link error on Solaris 2.6.
19141         * modules/getloadavg (Link): New section.
19142         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19143         linking test-getloadavg.
19144         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19145         getloadavg.
19146
19147 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19148
19149         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19150         It was 'int', but this doesn't match the IRIX 6.5 manual.
19151         Suggested by Bruno Haible in
19152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19153
19154 2011-02-17  Bruno Haible  <bruno@clisp.org>
19155
19156         havelib: Fix comments.
19157         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19158         change.
19159
19160 2011-02-17  Bruno Haible  <bruno@clisp.org>
19161
19162         havelib: Update config.rpath.
19163         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19164
19165 2011-02-17  Bruno Haible  <bruno@clisp.org>
19166
19167         getloadavg test: Add some plausibility checks.
19168         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19169         is improbable.
19170
19171 2011-02-16  Eric Blake  <eblake@redhat.com>
19172
19173         maintainer-makefile: make syntax-check a no-op from tarballs
19174         * top/maint.mk (no-vc-detected): New rule.
19175         (local-checks-available): Use it to avoid hanging if someone tries
19176         'make syntax-check' from a tarball.  Also append to any non-syntax
19177         checks already defined in cfg.mk.
19178
19179 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19180
19181         longlong: tune, particularly for common case of c99
19182
19183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19184         or running anything if c99, or if unsigned long long int does not
19185         work.  In either case, we know the answer without further tests.
19186         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19187         it at most once, and use its results for both long long int and
19188         unsigned long long int.  This is more likely to be efficient in
19189         the common case where the program wants to check for both long
19190         long int and unsigned long long int.
19191         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19192         since the answer is already known.
19193
19194 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19195
19196         getloadavg: set errno
19197         * lib/getloadavg.c: Set errno when returning -1.  If no other
19198         error number looks appropriate, set it to ENOSYS if the getloadavg
19199         looks like it can't possibly ever work, ENOTSUP otherwise.
19200         Suggested by Bruno Haible in
19201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19202
19203         getloadavg: trim unused parts and speed up 'configure'
19204         * NEWS: Document this.
19205         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19206         always compiled if getloadavg is absent.
19207         Move test code to ...
19208         * tests/test-getloadavg.c: New file, containing previous
19209         contents of test from lib/getloadavg.c.  It also contains
19210         suggestions by Bruno Haible in
19211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19212         * modules/getloadavg-tests: New file.
19213         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19214         Do tests in the same order as they're needed for getloadavg.c.
19215         Omit setgid-related tests that generate symbols KMEM_GROUP,
19216         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19217         Do only the tests that are needed to see whether the system has
19218         getloadavg, moving the other tests into ...
19219         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19220         NLIST_NAME_UNION; nobody should be using it.  Do not define
19221         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19222         relevant, as the user of this module shouldn't care how getloadavg
19223         is implemented.
19224
19225         getloadavg: omit unused var
19226         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19227
19228 2011-02-15  Jim Meyering  <meyering@redhat.com>
19229
19230         doc: update users.txt
19231         * users.txt: Update iwhd's URL.
19232
19233 2011-02-13  Bruno Haible  <bruno@clisp.org>
19234
19235         Consistent macro naming for macros that use GCC __attribute__.
19236         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19237         _ATTRIBUTE_NONNULL_.
19238         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19239         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19240         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19241         ATTRIBUTE_DEPRECATED.
19242         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19243         ATTRIBUTE_NORETURN.
19244         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19245         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19246         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19247         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19248         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19249         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19250         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19251         ATTRIBUTE_SENTINEL.
19252         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19253         ATTRIBUTE_RETURN_CHECK.
19254         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19255         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19256         ATTRIBUTE_NORETURN.
19257         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19258         Reported by Paul Eggert.
19259
19260 2011-02-13  Bruno Haible  <bruno@clisp.org>
19261
19262         Don't interfere with a program's definition of __attribute__.
19263         * lib/argp.h (__attribute__): Remove definition.
19264         (_GL_ATTRIBUTE_FORMAT): New macro.
19265         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19266         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19267         (_GL_ATTRIBUTE_FORMAT): New macro.
19268         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19269         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19270         GCC 3 or newer.
19271         * lib/error.h (__attribute__): Remove definition.
19272         (_GL_ATTRIBUTE_FORMAT): New macro.
19273         (error, error_at_line): Use it.
19274         * lib/hash.h (__attribute__): Remove definition.
19275         (ATTRIBUTE_WUR): Update definition. Define always.
19276         * lib/openat.h (__attribute__): Remove definition.
19277         (ATTRIBUTE_NORETURN): Update definition. Define always.
19278         * lib/sigpipe-die.h (__attribute__): Remove definition.
19279         (ATTRIBUTE_NORETURN): Update definition. Define always.
19280         * lib/vasnprintf.h (__attribute__): Remove definition.
19281         (_GL_ATTRIBUTE_FORMAT): New macro.
19282         (asnprintf, vasnprintf): Use it.
19283         * lib/xalloc.h (__attribute__): Remove definition.
19284         (ATTRIBUTE_NORETURN): Update definition. Define always.
19285         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19286         * lib/xmemdup0.h (__attribute__): Remove definition.
19287         (ATTRIBUTE_NORETURN): Update definition. Define always.
19288         * lib/xprintf.h (__attribute__): Remove definition.
19289         (_GL_ATTRIBUTE_FORMAT): New macro.
19290         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19291         * lib/xstrtol.h (__attribute__): Remove definition.
19292         (ATTRIBUTE_NORETURN): Update definition. Define always.
19293         * lib/xvasprintf.h (__attribute__): Remove definition.
19294         (_GL_ATTRIBUTE_FORMAT): New macro.
19295         (xasprintf, xvasprintf): Use it.
19296         * tests/test-argmatch.c (__attribute__): Remove definition.
19297         (ATTRIBUTE_NORETURN): Update definition. Define always.
19298         * tests/test-exclude.c (__attribute__): Remove definition.
19299         (ATTRIBUTE_NORETURN): Update definition. Define always.
19300         Reported by Paul Eggert.
19301
19302 2011-02-13  Bruno Haible  <bruno@clisp.org>
19303
19304         mbrtowc: Add more tests for native Windows platforms.
19305         * tests/test-mbrtowc-w32-1.sh: New file.
19306         * tests/test-mbrtowc-w32-2.sh: New file.
19307         * tests/test-mbrtowc-w32-3.sh: New file.
19308         * tests/test-mbrtowc-w32-4.sh: New file.
19309         * tests/test-mbrtowc-w32-5.sh: New file.
19310         * tests/test-mbrtowc-w32.c: New file.
19311         * modules/mbrtowc-tests (Files): Add them.
19312         (Makefile.am): Arrange to run these tests.
19313         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19314         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19315
19316 2011-02-13  Bruno Haible  <bruno@clisp.org>
19317
19318         mbrtowc: Work around native Windows bug.
19319         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19320         guess when no suitable locale for testing was found.
19321         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19322
19323 2011-02-13  Bruno Haible  <bruno@clisp.org>
19324
19325         mbsinit: Work around mingw bug.
19326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19327         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19328         Windows.
19329         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19330
19331 2011-02-13  Bruno Haible  <bruno@clisp.org>
19332
19333         mbsinit: Don't crash for a NULL argument.
19334         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19335         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19336
19337 2011-02-13  Bruno Haible  <bruno@clisp.org>
19338
19339         Don't interfere with a program's definition of __attribute__.
19340         * lib/stdio.in.h (__attribute__): Remove definition.
19341         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19342         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19343         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19344         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19345         * lib/string.in.h (__attribute__): Remove definition.
19346         Reported by Paul Eggert.
19347
19348 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19349
19350         stdlib: don't get in the way of non-GCC __attribute__
19351         See thread starting at
19352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19353         Revert previous stdlib change, installing the following instead:
19354         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19355         to get in the way of a non-GCC compiler that supports __attribute__.
19356         (_GL_ATTRIBUTE_RETURN): New macro.
19357         (_Exit): Use it instead of __attribute__.
19358
19359 2011-02-12  Bruno Haible  <bruno@clisp.org>
19360
19361         quotearg test: Avoid test failure on mingw.
19362         * tests/test-quotearg.sh: Convert the locale identifier from native
19363         Windows syntax to Unix syntax.
19364
19365 2011-02-12  Bruno Haible  <bruno@clisp.org>
19366
19367         setlocale: Prefer gnulib's override over libintl's override.
19368         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19369         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19370         GNULIB_defined_setlocale is set.
19371
19372 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19373
19374         stdlib: support non-GCC __attribute__
19375
19376         Fix a serious and tricky problem encountered when attempting to
19377         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19378         5.5, but it crashed due to memory corruption on Solaris 10 with
19379         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19380         bits that are otherwise zero.  This tagging is optional inside
19381         Emacs but is preferred and is used when __attribute__ ((__aligned
19382         (8))) works, as it does with both recent-enough GCC and with Sun C
19383         5.11.  However, Sun C 5.11 is not GCC and does not #define
19384         __GNUC__ and __GNUC_MINOR__.
19385
19386         When I added the getloadavg module to Emacs, it brought in
19387         stdlib.in.h, which contained this fragment:
19388
19389            #ifndef __attribute__
19390            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19391            #  define __attribute__(Spec)   /* empty */
19392            # endif
19393            #endif
19394
19395         When files that include <stdlib.h> were compiled with Sun C 5.11,
19396         the above code disabled __attribute__ ((__aligned (8))), which
19397         caused variables to not be properly aligned, which eventually led
19398         to the pointer corruption mentioned above.  (This was a bit hard
19399         to diagnose, unfortunately.)
19400
19401         Several "#define __attribute__(X) /* empty */" code snippets need
19402         to be eradicated from Gnulib to work with non-GCC compilers that
19403         support __attribute__.  The Autoconf way to do this is to test for
19404         each kind of attribute that we want support for, and selectively
19405         enable that in source code.
19406
19407         Fix this problem just for stdlib.h, by adding a test for the
19408         __noreturn__ attribute, and change stdlib.in.h to use that test
19409         when needed.  This technique can be easily generalized to the
19410         other *.in.h files and attributes, and a similar technique can be
19411         used for *.h and *.c files.  This patch is enough to solve the
19412         problem for Emacs + getloadavg, and I thought I'd publish it for
19413         feedback before undertaking further, similar fixes in other
19414         modules.
19415
19416         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19417         because it's not needed for stdlib.h.  It merely substitutes the
19418         value directly into stdlib.h.  We may well need to #define it, or
19419         similar symbols, for other modules, but it's nice to also have an
19420         option to not #define it for applications like Emacs that do not
19421         need it.
19422
19423         * lib/stdlib.in.h (__attribute__): Do not #define.
19424         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19425         be defined only if the _Exit module is also used.
19426         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19428         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19429         platforms.
19430         * modules/_Exit (Files): Add m4/attribute.m4.
19431         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19432         * m4/attribute.m4: New file.
19433
19434 2011-02-12  Bruno Haible  <bruno@clisp.org>
19435
19436         wcsrtombs: Work around bug on native Windows.
19437         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19438         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19439         instead of len.
19440         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19441
19442 2011-02-12  Bruno Haible  <bruno@clisp.org>
19443
19444         mbsrtowcs: Work around bug on native Windows.
19445         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19446         against mingw bug.
19447         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19448
19449 2011-02-12  Bruno Haible  <bruno@clisp.org>
19450
19451         Avoid setlocale bugs in tests.
19452         * modules/btowc (Dependencies): Add setlocale.
19453         * modules/c-strcase (Dependencies): Likewise.
19454         * modules/mbmemcasecmp (Dependencies): Likewise.
19455         * modules/mbmemcasecoll (Dependencies): Likewise.
19456         * modules/mbrtowc (Dependencies): Likewise.
19457         * modules/mbscasecmp (Dependencies): Likewise.
19458         * modules/mbscasestr (Dependencies): Likewise.
19459         * modules/mbschr (Dependencies): Likewise.
19460         * modules/mbscspn (Dependencies): Likewise.
19461         * modules/mbsinit (Dependencies): Likewise.
19462         * modules/mbsncasecmp (Dependencies): Likewise.
19463         * modules/mbsnrtowcs (Dependencies): Likewise.
19464         * modules/mbspbrk (Dependencies): Likewise.
19465         * modules/mbspcasecmp (Dependencies): Likewise.
19466         * modules/mbsrchr (Dependencies): Likewise.
19467         * modules/mbsrtowcs (Dependencies): Likewise.
19468         * modules/mbsspn (Dependencies): Likewise.
19469         * modules/mbsstr (Dependencies): Likewise.
19470         * modules/nl_langinfo (Dependencies): Likewise.
19471         * modules/quotearg (Dependencies): Likewise.
19472         * modules/unicase/locale-language (Dependencies): Likewise.
19473         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19474         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19475         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19476         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19477         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19478         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19479         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19480         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19481         * modules/vasnprintf-posix (Dependencies): Likewise.
19482         * modules/wcrtomb (Dependencies): Likewise.
19483         * modules/wcsnrtombs (Dependencies): Likewise.
19484         * modules/wcsrtombs (Dependencies): Likewise.
19485
19486 2011-02-12  Bruno Haible  <bruno@clisp.org>
19487
19488         setlocale: Workaround native Windows bug.
19489         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19490         succeeds but sets LC_CTYPE to "C", report a failure.
19491         * tests/test-setlocale2.sh: New file.
19492         * tests/test-setlocale2.c: New file.
19493         * modules/setlocale-tests (Files): Add the new files.
19494         (Makefile.am): Enable test-setlocale2.sh test.
19495         * doc/posix-functions/setlocale.texi: Mention workaround.
19496
19497 2011-02-11  Bruno Haible  <bruno@clisp.org>
19498
19499         Tests for module 'setlocale'.
19500         * modules/setlocale-tests: New file.
19501         * tests/test-setlocale1.sh: New file.
19502         * tests/test-setlocale1.c: New file.
19503
19504         New module 'setlocale'.
19505         * lib/locale.in.h (setlocale): New declaration.
19506         * lib/setlocale.c: New file, based on
19507         gettext/gettext-runtime/intl/setlocale.c.
19508         * m4/setlocale.m4: New file.
19509         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19510         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19511         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19512         REPLACE_SETLOCALE.
19513         * modules/setlocale: New file.
19514         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19515         * doc/posix-functions/setlocale.texi: Mention the new module.
19516
19517 2011-02-11  Bruno Haible  <bruno@clisp.org>
19518
19519         Prepare for locale dependent tests on mingw.
19520         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19521         because it has the wrong locale encoding.
19522         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19523         French_France.1252 instead of "fr".
19524         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19525         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19526         because it has the wrong locale encoding.
19527         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19528         native Windows, try Turkish_Turkey.65001.
19529         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19530         Chinese_China.54936.
19531
19532         Prepare for locale dependent tests on mingw.
19533         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19534         differently.
19535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19536         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19537         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19539
19540 2011-02-11  Eric Blake  <eblake@redhat.com>
19541
19542         strptime: avoid compiler warnings
19543         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19544         compiler warnings about dead code.
19545         Reported by Daniel P. Berrange.
19546
19547 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19548
19549         doc: update users.txt
19550         * users.txt: Add rcs.
19551
19552 2011-02-10  John W. Eaton  <jwe@gnu.org>
19553
19554         doc: update users.txt
19555         * users.txt: Add octave.
19556
19557 2011-02-10  Jim Meyering  <meyering@redhat.com>
19558
19559         doc: update users.txt
19560         * users.txt: Add iwhd.
19561
19562 2011-02-09  Bruno Haible  <bruno@clisp.org>
19563
19564         gnulib-tool: Make copyright notice adjustment more robust.
19565         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19566         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19567         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19568         License".
19569         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19570
19571 2011-02-06  Bruno Haible  <bruno@clisp.org>
19572
19573         New module 'towctrans'.
19574         * modules/towctrans: New file.
19575         * lib/wctype.in.h (towctrans): New declaration.
19576         * lib/towctrans.c: New file.
19577         * lib/towctrans-impl.h: New file.
19578         * m4/towctrans.m4: New file.
19579         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19580         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19581         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19582         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19583         * doc/posix-functions/towctrans.texi: Mention the new module.
19584
19585 2011-02-06  Bruno Haible  <bruno@clisp.org>
19586
19587         New module 'wctrans'.
19588         * modules/wctrans: New file.
19589         * lib/wctype.in.h (wctrans): New declaration.
19590         * lib/wctrans.c: New file.
19591         * lib/wctrans-impl.h: New file.
19592         * m4/wctrans.m4: New file.
19593         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19594         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19595         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19596         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19597         * doc/posix-functions/wctrans.texi: Mention the new module.
19598
19599 2011-02-06  Bruno Haible  <bruno@clisp.org>
19600
19601         New module 'iswctype'.
19602         * modules/iswctype: New file.
19603         * lib/wctype.in.h (iswctype): New declaration.
19604         * lib/iswctype.c: New file.
19605         * lib/iswctype-impl.h: New file.
19606         * m4/iswctype.m4: New file.
19607         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19608         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19609         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19610         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19611         * doc/posix-functions/iswctype.texi: Mention the new module and the
19612         HP-UX 11.00 problem.
19613
19614 2011-02-06  Bruno Haible  <bruno@clisp.org>
19615
19616         New module 'wctype'.
19617         * modules/wctype: Change to represent the wctype() substitute.
19618         * lib/wctype.in.h (wctype): New declaration.
19619         * lib/wctype.c: New file.
19620         * lib/wctype-impl.h: New file.
19621         * m4/wctype.m4: New file.
19622         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19623         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19624         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19625         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19626         * doc/posix-functions/wctype.texi: Mention the new module and the
19627         HP-UX 11.00 problem.
19628
19629 2011-02-06  Bruno Haible  <bruno@clisp.org>
19630
19631         wctype-h: Ensure wctype_t and wctrans_t are defined.
19632         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19633         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19634         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19635         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19636         HAVE_WCTRANS_T.
19637         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19638
19639 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19640
19641         flock: fix license typo
19642
19643         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19644         omitted.
19645
19646 2011-02-08  Bruno Haible  <bruno@clisp.org>
19647
19648         Split large sed scripts, for HP-UX sed.
19649         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19650         to avoid HP-UX limit of 99 commands, in the near future.
19651         * modules/stdlib (Makefile.am): Likewise.
19652         * modules/unistd (Makefile.am): Likewise.
19653         * modules/wchar (Makefile.am): Likewise.
19654         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19655         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19657
19658 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19659             Bruno Haible  <bruno@clisp.org>
19660
19661         stdlib: improve random_r modularization
19662         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19663         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19664         you also need the random_r module to get this material right.
19665         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19666         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19667         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19668
19669 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19670
19671         stdlib: don't depend on stdint
19672         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19673         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19674         be independent of whether stdint.h is needed.
19675         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19676         here, instead of ...
19677         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19678         struct random_data should be using the random_r module, not just
19679         the stdlib module (which wouldn't make sense: what package needs
19680         just struct random_data without also needing random_r?).
19681         * modules/stdlib (Depends-on): Remove stdint.
19682
19683         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19684         See the thread rooted at
19685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19686         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19687         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19688         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19689         __VMS)); previously it was always included (via fcntl--.h).
19690         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19691         hand; this is good enough for load averages.  Also, do not use
19692         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19693         flags directly if available and don't bother otherwise.  (Packages
19694         that need the extra reliability should use the modules that define
19695         these flags on older platforms that lack them.)
19696         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19697         fcntl-safer.
19698
19699 2011-02-08  Jim Meyering  <meyering@redhat.com>
19700
19701         di-set.h, ino-map.h: add multiple-inclusion guard
19702         Technically, the guard is required only for ino-map.h, due to its
19703         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19704         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19705         * lib/ino-map.h: Likewise.
19706
19707 2011-02-06  Bruno Haible  <bruno@clisp.org>
19708
19709         iswblank: Ensure declaration on glibc systems.
19710         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19711         * modules/iswblank (Dependencies): Add 'extensions'.
19712         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19713
19714 2011-02-06  Bruno Haible  <bruno@clisp.org>
19715
19716         New module 'iswblank'.
19717         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19718         * modules/iswblank: New file.
19719         * modules/wctype-h (Files): Remove lib/iswblank.c.
19720         (Makefile.am): Substitute GNULIB_ISWBLANK.
19721         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19722         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19723         (gl_WCTYPE_H_DEFAULTS): New macro.
19724         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19725         * modules/iswblank-tests: New file.
19726         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19727         * tests/test-wctype-h.c (main): Remove iswblank tests.
19728         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19729         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19730         of 'wctype-h'.
19731         * NEWS: Mention the change.
19732         * modules/mbchar (Depends-on): Add iswblank.
19733
19734 2011-02-08  Bruno Haible  <bruno@clisp.org>
19735
19736         di-set tests: Refactor.
19737         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19738         unnecessary includes.
19739         (ASSERT): Remove macro.
19740         (main): Make C90 compliant by avoiding variable declaration after
19741         statement.
19742         * modules/di-set-tests (Files): Add tests/macros.h.
19743
19744 2011-02-08  Bruno Haible  <bruno@clisp.org>
19745
19746         ino-map tests: Refactor.
19747         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19748         unnecessary includes.
19749         (ASSERT): Remove macro.
19750         (main): Make C90 compliant by avoiding variable declaration after
19751         statement.
19752         * modules/ino-map-tests (Files): Add tests/macros.h.
19753
19754 2011-02-08  Jim Meyering  <meyering@redhat.com>
19755
19756         di-set: add "const" to a cast
19757         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19758         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19759
19760 2011-02-06  Bruno Haible  <bruno@clisp.org>
19761
19762         Rename module 'wctype' to 'wctype-h'.
19763         * modules/wctype-h: Renamed from modules/wctype.
19764         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19765         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19766         (Files, Depends-on, Makefile.am): Update.
19767         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19768         (Files, Makefile.am): Update.
19769         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19770         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19771         * doc/posix-headers/wctype.texi: Update.
19772         * doc/posix-functions/iswalnum.texi: Update.
19773         * doc/posix-functions/iswalpha.texi: Update.
19774         * doc/posix-functions/iswblank.texi: Update.
19775         * doc/posix-functions/iswcntrl.texi: Update.
19776         * doc/posix-functions/iswdigit.texi: Update.
19777         * doc/posix-functions/iswgraph.texi: Update.
19778         * doc/posix-functions/iswlower.texi: Update.
19779         * doc/posix-functions/iswprint.texi: Update.
19780         * doc/posix-functions/iswpunct.texi: Update.
19781         * doc/posix-functions/iswspace.texi: Update.
19782         * doc/posix-functions/iswupper.texi: Update.
19783         * doc/posix-functions/iswxdigit.texi: Update.
19784         * doc/posix-functions/towlower.texi: Update.
19785         * doc/posix-functions/towupper.texi: Update.
19786         * NEWS: Mention the change.
19787         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19788         * modules/mbchar (Dependencies): Likewise.
19789         * modules/mbswidth (Dependencies): Likewise.
19790         * modules/quotearg (Dependencies): Likewise.
19791         * modules/regex (Dependencies): Likewise.
19792         * modules/wcscasecmp (Dependencies): Likewise.
19793         * modules/wcsncasecmp (Dependencies): Likewise.
19794         * modules/wcwidth (Dependencies): Likewise.
19795
19796 2011-02-06  Bruno Haible  <bruno@clisp.org>
19797
19798         New module 'wcswidth'.
19799         * modules/wcswidth: New file.
19800         * lib/wchar.in.h (wcswidth): New declaration.
19801         * lib/wcswidth.c: New file.
19802         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19803         * m4/wcswidth.m4: New file.
19804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19806         REPLACE_WCSWIDTH.
19807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19808         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19809         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19810         * doc/posix-functions/wcswidth.texi: Mention the new module.
19811
19812 2011-02-06  Bruno Haible  <bruno@clisp.org>
19813
19814         New module 'wcstok'.
19815         * modules/wcstok: New file.
19816         * lib/wchar.in.h (wcstok): New declaration.
19817         * lib/wcstok.c: New file.
19818         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19819         * m4/wcstok.m4: New file.
19820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19823         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19824         * doc/posix-functions/wcstok.texi: Mention the new module.
19825
19826 2011-02-06  Bruno Haible  <bruno@clisp.org>
19827
19828         New module 'wcsstr'.
19829         * modules/wcsstr: New file.
19830         * lib/wchar.in.h (wcsstr): New declaration.
19831         * lib/wcsstr.c: New file.
19832         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19833         * m4/wcsstr.m4: New file.
19834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19837         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19838         * doc/posix-functions/wcsstr.texi: Mention the new module.
19839
19840 2011-02-06  Bruno Haible  <bruno@clisp.org>
19841
19842         New module 'wcspbrk'.
19843         * modules/wcspbrk: New file.
19844         * lib/wchar.in.h (wcspbrk): New declaration.
19845         * lib/wcspbrk.c: New file.
19846         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19847         * m4/wcspbrk.m4: New file.
19848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19851         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19852         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19853
19854 2011-02-06  Bruno Haible  <bruno@clisp.org>
19855
19856         New module 'wcsspn'.
19857         * modules/wcsspn: New file.
19858         * lib/wchar.in.h (wcsspn): New declaration.
19859         * lib/wcsspn.c: New file.
19860         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19861         * m4/wcsspn.m4: New file.
19862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19865         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19866         * doc/posix-functions/wcsspn.texi: Mention the new module.
19867
19868 2011-02-06  Bruno Haible  <bruno@clisp.org>
19869
19870         New module 'wcscspn'.
19871         * modules/wcscspn: New file.
19872         * lib/wchar.in.h (wcscspn): New declaration.
19873         * lib/wcscspn.c: New file.
19874         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19875         * m4/wcscspn.m4: New file.
19876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19879         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19880         * doc/posix-functions/wcscspn.texi: Mention the new module.
19881
19882 2011-02-06  Bruno Haible  <bruno@clisp.org>
19883
19884         New module 'wcsrchr'.
19885         * modules/wcsrchr: New file.
19886         * lib/wchar.in.h (wcsrchr): New declaration.
19887         * lib/wcsrchr.c: New file.
19888         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19889         * m4/wcsrchr.m4: New file.
19890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19893         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19894         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19895
19896 2011-02-06  Bruno Haible  <bruno@clisp.org>
19897
19898         New module 'wcschr'.
19899         * modules/wcschr: New file.
19900         * lib/wchar.in.h (wcschr): New declaration.
19901         * lib/wcschr.c: New file.
19902         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19903         * m4/wcschr.m4: New file.
19904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19907         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19908         * doc/posix-functions/wcschr.texi: Mention the new module.
19909
19910 2011-02-06  Bruno Haible  <bruno@clisp.org>
19911
19912         New module 'wcsdup'.
19913         * modules/wcsdup: New file.
19914         * lib/wchar.in.h (wcsdup): New declaration.
19915         * lib/wcsdup.c: New file.
19916         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19917         * m4/wcsdup.m4: New file.
19918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19921         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19922         * doc/posix-functions/wcsdup.texi: Mention the new module.
19923
19924 2011-02-06  Bruno Haible  <bruno@clisp.org>
19925
19926         New module 'wcsxfrm'.
19927         * modules/wcsxfrm: New file.
19928         * lib/wchar.in.h (wcsxfrm): New declaration.
19929         * lib/wcsxfrm.c: New file.
19930         * lib/wcsxfrm-impl.h: New file.
19931         * m4/wcsxfrm.m4: New file.
19932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19935         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19936         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19937
19938 2011-02-06  Bruno Haible  <bruno@clisp.org>
19939
19940         New module 'wcscoll'.
19941         * modules/wcscoll: New file.
19942         * lib/wchar.in.h (wcscoll): New declaration.
19943         * lib/wcscoll.c: New file.
19944         * lib/wcscoll-impl.h: New file.
19945         * m4/wcscoll.m4: New file.
19946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19949         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19950         * doc/posix-functions/wcscoll.texi: Mention the new module.
19951
19952 2011-02-06  Bruno Haible  <bruno@clisp.org>
19953
19954         New module 'wcsncasecmp'.
19955         * modules/wcsncasecmp: New file.
19956         * lib/wchar.in.h (wcsncasecmp): New declaration.
19957         * lib/wcsncasecmp.c: New file.
19958         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19959         * m4/wcsncasecmp.m4: New file.
19960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19963         HAVE_WCSNCASECMP.
19964         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19965         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19966
19967 2011-02-06  Bruno Haible  <bruno@clisp.org>
19968
19969         New module 'wcscasecmp'.
19970         * modules/wcscasecmp: New file.
19971         * lib/wchar.in.h (wcscasecmp): New declaration.
19972         * lib/wcscasecmp.c: New file.
19973         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19974         * m4/wcscasecmp.m4: New file.
19975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19978         HAVE_WCSCASECMP.
19979         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19980         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19981
19982 2011-02-05  Bruno Haible  <bruno@clisp.org>
19983
19984         New module 'wcsncmp'.
19985         * modules/wcsncmp: New file.
19986         * lib/wchar.in.h (wcsncmp): New declaration.
19987         * lib/wcsncmp.c: New file.
19988         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19989         * m4/wcsncmp.m4: New file.
19990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19993         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19994         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19995
19996 2011-02-05  Bruno Haible  <bruno@clisp.org>
19997
19998         New module 'wcscmp'.
19999         * modules/wcscmp: New file.
20000         * lib/wchar.in.h (wcscmp): New declaration.
20001         * lib/wcscmp.c: New file.
20002         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20003         * m4/wcscmp.m4: New file.
20004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20007         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20008         * doc/posix-functions/wcscmp.texi: Mention the new module.
20009
20010 2011-02-05  Bruno Haible  <bruno@clisp.org>
20011
20012         New module 'wcsncat'.
20013         * modules/wcsncat: New file.
20014         * lib/wchar.in.h (wcsncat): New declaration.
20015         * lib/wcsncat.c: New file.
20016         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20017         * m4/wcsncat.m4: New file.
20018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20021         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20022         * doc/posix-functions/wcsncat.texi: Mention the new module.
20023
20024 2011-02-05  Bruno Haible  <bruno@clisp.org>
20025
20026         New module 'wcscat'.
20027         * modules/wcscat: New file.
20028         * lib/wchar.in.h (wcscat): New declaration.
20029         * lib/wcscat.c: New file.
20030         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20031         * m4/wcscat.m4: New file.
20032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20035         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20036         * doc/posix-functions/wcscat.texi: Mention the new module.
20037
20038 2011-02-05  Bruno Haible  <bruno@clisp.org>
20039
20040         New module 'wcpncpy'.
20041         * modules/wcpncpy: New file.
20042         * lib/wchar.in.h (wcpncpy): New declaration.
20043         * lib/wcpncpy.c: New file.
20044         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20045         * m4/wcpncpy.m4: New file.
20046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20048         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20049         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20050         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20051
20052 2011-02-05  Bruno Haible  <bruno@clisp.org>
20053
20054         New module 'wcsncpy'.
20055         * modules/wcsncpy: New file.
20056         * lib/wchar.in.h (wcsncpy): New declaration.
20057         * lib/wcsncpy.c: New file.
20058         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20059         * m4/wcsncpy.m4: New file.
20060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20063         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20064         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20065
20066 2011-02-05  Bruno Haible  <bruno@clisp.org>
20067
20068         New module 'wcpcpy'.
20069         * modules/wcpcpy: New file.
20070         * lib/wchar.in.h (wcpcpy): New declaration.
20071         * lib/wcpcpy.c: New file.
20072         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20073         * m4/wcpcpy.m4: New file.
20074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20076         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20077         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20078         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20079
20080 2011-02-05  Bruno Haible  <bruno@clisp.org>
20081
20082         New module 'wcscpy'.
20083         * modules/wcscpy: New file.
20084         * lib/wchar.in.h (wcscpy): New declaration.
20085         * lib/wcscpy.c: New file.
20086         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20087         * m4/wcscpy.m4: New file.
20088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20091         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20092         * doc/posix-functions/wcscpy.texi: Mention the new module.
20093
20094 2011-02-05  Bruno Haible  <bruno@clisp.org>
20095
20096         New module 'wcsnlen'.
20097         * modules/wcsnlen: New file.
20098         * lib/wchar.in.h (wcsnlen): New declaration.
20099         * lib/wcsnlen.c: New file.
20100         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20101         * m4/wcsnlen.m4: New file.
20102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20105         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20106         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20107
20108 2011-02-05  Bruno Haible  <bruno@clisp.org>
20109
20110         New module 'wcslen'.
20111         * modules/wcslen: New file.
20112         * lib/wchar.in.h (wcslen): New declaration.
20113         * lib/wcslen.c: New file.
20114         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20115         * m4/wcslen.m4: New file.
20116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20119         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20120         * doc/posix-functions/wcslen.texi: Mention the new module.
20121
20122 2011-02-05  Bruno Haible  <bruno@clisp.org>
20123
20124         New module 'wmemset'.
20125         * modules/wmemset: New file.
20126         * lib/wchar.in.h (wmemset): New declaration.
20127         * lib/wmemset.c: New file.
20128         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20129         * m4/wmemset.m4: New file.
20130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20132         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20133         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20134         * doc/posix-functions/wmemset.texi: Mention the new module.
20135
20136 2011-02-05  Bruno Haible  <bruno@clisp.org>
20137
20138         New module 'wmemmove'.
20139         * modules/wmemmove: New file.
20140         * lib/wchar.in.h (wmemmove): New declaration.
20141         * lib/wmemmove.c: New file.
20142         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20143         * m4/wmemmove.m4: New file.
20144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20146         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20147         HAVE_WMEMMOVE.
20148         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20149         * doc/posix-functions/wmemmove.texi: Mention the new module.
20150
20151 2011-02-05  Bruno Haible  <bruno@clisp.org>
20152
20153         New module 'wmemcpy'.
20154         * modules/wmemcpy: New file.
20155         * lib/wchar.in.h (wmemcpy): New declaration.
20156         * lib/wmemcpy.c: New file.
20157         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20158         * m4/wmemcpy.m4: New file.
20159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20161         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20162         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20163         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20164
20165 2011-02-05  Bruno Haible  <bruno@clisp.org>
20166
20167         New module 'wmemcmp'.
20168         * modules/wmemcmp: New file.
20169         * lib/wchar.in.h (wmemcmp): New declaration.
20170         * lib/wmemcmp.c: New file.
20171         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20172         * m4/wmemcmp.m4: New file.
20173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20175         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20176         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20177         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20178
20179 2011-02-07  Jim Meyering  <meyering@redhat.com>
20180
20181         di-set, ino-map: new modules, from coreutils
20182         * lib/di-set.c: New file.
20183         * lib/di-set.h: Likewise.
20184         * lib/ino-map.c: Likewise.
20185         * lib/ino-map.h: Likewise.
20186         * modules/di-set: Likewise.
20187         * modules/di-set-tests: Likewise.
20188         * modules/ino-map: Likewise.
20189         * modules/ino-map-tests: Likewise.
20190         * tests/test-di-set.c: Likewise.
20191         * tests/test-ino-map.c: Likewise.
20192
20193 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         getloadavg: merge minor changes from Emacs
20196
20197         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20198         (getloadavg): Use memset, not bzero.
20199
20200         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20201         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20202         clash (bug#86).
20203
20204 2010-11-14  Bruno Haible  <bruno@clisp.org>
20205
20206         Allow multiple gnulib generated replacements to coexist.
20207         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20208         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20209         * lib/langinfo.in.h (nl_item): Likewise.
20210         * lib/math.in.h (_NaN, NAN): Likewise.
20211         * lib/netdb.in.h (struct addrinfo): Likewise.
20212         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20213         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20214         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20215         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20216         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20217         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20218         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20219         pthread_mutexattr_init, pthread_mutexattr_settype,
20220         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20221         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20222         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20223         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20224         * lib/sched.in.h (struct sched_param): Likewise.
20225         * lib/se-selinux.in.h (security_class_t, security_context_t,
20226         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20227         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20228         lsetfilecon, fsetfilecon, security_check_context,
20229         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20230         Likewise.
20231         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20232         Likewise.
20233         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20234         _gl_function_taking_int_returning_void_t, union sigval,
20235         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20236         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20237         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20238         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20239         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20240         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20241         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20242         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20243         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20244         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20245         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20246         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20247         socklen_t, rpl_fd_isset): Likewise.
20248         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20249         * lib/sys_time.in.h (struct timeval): Likewise.
20250         * lib/sys_times.in.h (struct tms): Likewise.
20251         * lib/sys_utsname.in.h (struct utsname):
20252         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20253         * lib/unistd.in.h (getpagesize): Likewise.
20254         * lib/wchar.in.h (mbstate_t): Likewise.
20255         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20256         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20257         towlower, towupper): Likewise.
20258         Reported by Sam Steingold <sds@gnu.org>.
20259
20260 2011-02-05  Eric Blake  <eblake@redhat.com>
20261
20262         unsetenv: work around Haiku issues
20263         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20264         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20265
20266 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20267
20268         libposix: avoid calling error() within libposix
20269         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20270         is defined.
20271
20272 2011-02-05  Eric Blake  <eblake@redhat.com>
20273
20274         strerror_r-posix: port to cygwin
20275         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20276         implementation.
20277         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20278         * tests/test-strerror_r.c (main): Fix test.
20279         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20280         issue.
20281
20282 2011-02-05  Bruno Haible  <bruno@clisp.org>
20283
20284         New module 'wmemchr'.
20285         * modules/wmemchr: New file.
20286         * lib/wchar.in.h (wmemchr): New declaration.
20287         * lib/wmemchr.c: New file.
20288         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20289         * m4/wmemchr.m4: New file.
20290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20292         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20293         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20294         * doc/posix-functions/wmemchr.texi: Mention the new module.
20295
20296 2011-02-04  Eric Blake  <eblake@redhat.com>
20297
20298         fdopendir: detect FreeBSD bug
20299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20300         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20301
20302 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20303
20304         stdbool: do not define HAVE_STDBOOL_H
20305         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20306         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20307         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20308         imported from the latest Autoconf git.  It was motivated by Emacs,
20309         which uses gnulib but does not need HAVE_STDBOOL_H.
20310
20311 2011-02-04  Bruno Haible  <bruno@clisp.org>
20312
20313         wcsnrtombs: Prepare for new module wwcsnrtombs.
20314         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20315         * lib/wcsnrtombs.c: Include it.
20316         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20317
20318         wcsrtombs: Prepare for new module wwcsrtombs.
20319         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20320         * lib/wcsrtombs.c: Include it.
20321         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20322
20323         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20324         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20325         * lib/mbsnrtowcs.c: Include it.
20326         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20327
20328         mbsrtowcs: Prepare for new module mbsrtowwcs.
20329         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20330         * lib/mbsrtowcs.c: Include it.
20331         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20332
20333 2011-02-04  Bruno Haible  <bruno@clisp.org>
20334
20335         vasnprintf: Reduce use of malloc for small format strings.
20336         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20337         (arguments): Add room for the first 7 arguments.
20338         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20339         (char_directives, u8_directives, u16_directives, u32_directives): Add
20340         room for the first 7 directives.
20341         * lib/printf-parse.c: Include <string.h>.
20342         (PRINTF_PARSE): Change memory handling code so that it uses the first
20343         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20344         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20345         Reported by Pádraig Brady <P@draigbrady.com>.
20346
20347 2011-01-31  Eric Blake  <eblake@redhat.com>
20348
20349         dup2: work around Haiku bug
20350         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20351         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20352         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20353         * tests/test-dup2.c (main): Enhance test.
20354
20355 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20356
20357         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20358         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20359         declared by eglibc 2.11.2.
20360         * lib/stdio.in.h: Likewise.
20361
20362 2011-01-31  Eric Blake  <eblake@redhat.com>
20363
20364         ignore-value: add missing test dependency
20365         * tests/test-ignore-value.c: Revert previous change; stdio.h
20366         provides off_t.
20367         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20368
20369 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20370
20371         mktime: clarify long_int width checking
20372         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20373         the top level, to make it clearer that the assumption about
20374         long_int width is being checked.  See
20375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20376
20377 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20378
20379         ignore-value: Fix self-test.
20380         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20381
20382 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20383
20384         TYPE_MAXIMUM: avoid theoretically undefined behavior
20385         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20386         negative number, which the C Standard says has undefined behavior.
20387         In practice this is not a problem, but might as well do it by the book.
20388         Reported by Rich Felker and Eric Blake; see
20389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20390         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20391         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20393         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20394         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20395         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20396
20397         mktime: #undef mktime before #defining it
20398         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20399
20400         mktime: systematically normalize tm_isdst comparisons
20401         * lib/mktime.c (isdst_differ): New function.
20402         (__mktime_internal): Use it systematically for all isdst comparisons.
20403         This completes the fix for libc BZ #6723, and removes the need for
20404         normalizing tm_isdst.  See
20405         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20406         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20407
20408         mktime: fix some integer overflow issues and sidestep the rest
20409
20410         This was prompted by a bug report by Benjamin Lindner for MinGW
20411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20412         His bug is due to signed integer overflow (0 - INT_MIN), and I
20413         I scanned through mktime.c looking for other integer overflow
20414         problems, fixing all the bugs I found.
20415
20416         Although the C Standard says the resulting code is still not safe
20417         in the presence of integer overflow, in practice it should be good
20418         enough for all real-world two's-complement implementations, except
20419         for debugging environments that deliberately trap on integer
20420         overflow (e.g., gcc -ftrapv).
20421
20422         * lib/mktime.c (WRAPV): New macro.
20423         (SHR): Also check that long_int and time_t shift right in the
20424         usual way, before using the fast-but-unportable method.
20425         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20426         used.  The code already assumed two's complement, so there's
20427         no need to test for alternatives.  All uses removed.
20428         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20429         the C standard.  Problem reported by Rich Felker in
20430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20431         (twos_complement_arithmetic): Also check long_int and time_t.
20432         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20433         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20434         (__mktime_internal): Avoid integer overflow with unary subtraction
20435         in two instances where -1 - X is an adequate replacement for -X,
20436         since the calculations are approximate.
20437
20438 2011-01-29  Eric Blake  <eblake@redhat.com>
20439
20440         mktime: avoid infinite loop
20441         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20442         type; behavior is still undefined but portable to all known targets.
20443         Reported by Rich Felker.
20444
20445 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20446
20447         rename, unlink, same-inode: Relicense.
20448         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20449         * modules/unlink (License): Likewise.
20450         * modules/same-inode (License): Likewise.
20451
20452 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20453
20454         mktime: avoid problems on NetBSD 5 / i386
20455         * lib/mktime.c (long_int): New type.  This works around a problem
20456         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20457         but time_t is 64 bits, and where I expect the existing code is
20458         wrong in some cases.
20459         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20460         (ydhms_diff): Bring back the compile-time check for wide-enough
20461         year and yday.
20462
20463         mktime: fix misspelling in comment
20464         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20465         This merges all recent glibc changes of importance.
20466
20467 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20468
20469         move-if-change: cope with concurrent mv of identical file.
20470         * build-aux/move-if-change (CMPPROG): Accept environment
20471         variable as an override for `cmp'.
20472         (usage): Document CMPPROG.
20473         Adjust comparison to drop stdout.  Cope with failure of mv if
20474         the target file exists and is identical to the source, for
20475         parallel builds.
20476         Report from H.J. Lu against binutils in PR binutils/12283.
20477
20478 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20479
20480         * users.txt: Mention sharutils.
20481
20482 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20483
20484         * users.txt: Mention OATH Toolkit.
20485
20486 2011-01-27  Bruno Haible  <bruno@clisp.org>
20487
20488         Prepare for supporting FreeBSD 10.
20489         * build-aux/config.libpath: Remove handling of freebsd1*.
20490
20491 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20492
20493         Prepare for supporting FreeBSD 10.
20494         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20495         match FreeBSD 10.0.
20496
20497 2011-01-27  Bruno Haible  <bruno@clisp.org>
20498
20499         vma-iter, get-rusage-as: Add OpenBSD support.
20500         * modules/vma-iter (configure.ac): Test for mquery.
20501         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20502         * lib/vma-iter.c: Include <sys/mman.h>.
20503         (vma_iterate): Add an implementation based on mquery().
20504         * lib/resource-ext.h (get_rusage_as): Update comments.
20505         * lib/get-rusage-as.c: Likewise.
20506         * lib/get-rusage-data.c: Likewise.
20507
20508 2011-01-26  Karl Berry  <karl@gnu.org>
20509
20510         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20511         variables to make it easier to override the makeinfo program used.
20512
20513 2011-01-26  Eric Blake  <eblake@redhat.com>
20514
20515         fcntl: work around Haiku F_DUPFD bugs
20516         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20517         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20518         cloexec bit on duplication.
20519         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20520
20521 2011-01-26  Bruno Haible  <bruno@clisp.org>
20522
20523         Enable memory leak tests on AIX.
20524         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20525         * tests/test-fprintf-posix3.c (main): Likewise.
20526
20527 2011-01-26  Bruno Haible  <bruno@clisp.org>
20528
20529         Tests for module 'get-rusage-data'.
20530         * modules/get-rusage-data-tests: New file.
20531         * tests/test-get-rusage-data.c: New file.
20532
20533         New module 'get-rusage-data'.
20534         * lib/resource-ext.h (get_rusage_data): New declaration.
20535         * lib/get-rusage-data.c: New file.
20536         * modules/get-rusage-data: New file.
20537
20538 2011-01-25  Bruno Haible  <bruno@clisp.org>
20539
20540         get-rusage-as: Allow for easier testing.
20541         * lib/resource-ext.h (get_rusage_as): Add comment.
20542         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20543         (main): New function for interactive testing.
20544
20545 2011-01-25  Bruno Haible  <bruno@clisp.org>
20546
20547         vma-iter: Treat Haiku like BeOS.
20548         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20549         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20550
20551 2011-01-25  Eric Blake  <eblake@redhat.com>
20552
20553         c-stack: fix regression on cygwin when libsigsegv is present
20554         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20555
20556 2011-01-24  Bruno Haible  <bruno@clisp.org>
20557
20558         vma-iter: Avoid empty intervals.
20559         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20560         on an empty interval.
20561
20562 2011-01-24  Jim Meyering  <meyering@redhat.com>
20563
20564         u64: remove unnecessary #include
20565         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20566
20567 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20568
20569         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20570         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20571
20572 2011-01-23  Bruno Haible  <bruno@clisp.org>
20573
20574         New module 'vma-iter'.
20575         * lib/vma-iter.h: New file.
20576         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20577         * modules/vma-iter: New file.
20578         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20579         for get_rusage_as_via_iterator.
20580         (vma_iterate_callback): New function.
20581         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20582         * modules/get-rusage-as (Depends-on): Add vma-iter.
20583
20584 2011-01-23  Bruno Haible  <bruno@clisp.org>
20585
20586         uninorm: Tweak includes.
20587         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20588         Reported by Jim Meyering.
20589
20590 2011-01-23  Bruno Haible  <bruno@clisp.org>
20591
20592         get-rusage-as: Improve on NetBSD.
20593         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20594         /proc, like on FreeBSD.
20595
20596 2011-01-23  Jim Meyering  <meyering@redhat.com>
20597
20598         xreadlink.h: remove unnecessary #include
20599         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20600
20601         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20602         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20603
20604 2011-01-23  Bruno Haible  <bruno@clisp.org>
20605
20606         get-rusage-as: Fix bug.
20607         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20608         original limit when aborting the first loop.
20609
20610 2011-01-23  Bruno Haible  <bruno@clisp.org>
20611
20612         wctype: Ensure valid C syntax.
20613         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20614         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20615
20616 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20617
20618         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20620         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20621         as they are needed only for configure's test case.
20622         This removes two unnecessary symbols from config.h.
20623
20624         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20625         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20627         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20628         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20631         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20632         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20633         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20634         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20636         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20638         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20639         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20640         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20641         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20642
20643 2011-01-21  Eric Blake  <eblake@redhat.com>
20644
20645         maintainer-makefile: work with older git for submodule check
20646         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20647         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20648         Reported by Matthias Bolte.
20649
20650         bootstrap: minor portability fixes
20651         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20652         (usage): Omit leading capital and trailing . on help phrases, per
20653         GNU Coding Standards.
20654         (check_versions, top level): Prefix messages with script name.
20655
20656 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20657
20658         bootstrap: support --no-git option
20659         * build-aux/bootstrap: Add --no-git option, to be used when
20660         --gnulib-srcdir points to the exact desired checkout.
20661
20662 2011-01-21  Eric Blake  <eblake@redhat.com>
20663
20664         strerror_r-posix: work with glibc 2.13
20665         * lib/strerror_r.c (strerror_r): Fix return type.
20666
20667 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20668             Bruno Haible  <bruno@clisp.org>
20669
20670         uN_strstr: New unit tests.
20671         * modules/unistr/u8-strstr-tests: New file.
20672         * modules/unistr/u16-strstr-tests: New file.
20673         * modules/unistr/u32-strstr-tests: New file.
20674         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20675         * tests/unistr/test-u8-strstr.c: New file.
20676         * tests/unistr/test-u16-strstr.c: New file.
20677         * tests/unistr/test-u32-strstr.c: New file.
20678
20679 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20680             Bruno Haible  <bruno@clisp.org>
20681
20682         Make uN_strstr functions O(n) worst-case.
20683         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20684         16-bit and 32-bit unit cases, use the unibyte algorithm from
20685         lib/mbsstr.c.
20686         * lib/unistr/u8-strstr.c: Include <string.h>.
20687         (UNIT_IS_UINT8_T): New macro.
20688         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20689         (U_STRLEN, U_STRNLEN): New macros.
20690         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20691         (U_STRLEN, U_STRNLEN): New macros.
20692         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20693         (configure.ac): Update required libunistring version.
20694         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20695         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20696         malloca.
20697         (configure.ac): Update required libunistring version.
20698         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20699         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20700         malloca.
20701         (configure.ac): Update required libunistring version.
20702
20703 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20704             Bruno Haible  <bruno@clisp.org>
20705
20706         Prepare for faster uN_strstr functions.
20707         * lib/str-kmp.h: Support definable UNITs.
20708         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20709         needle_len argument.
20710         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20711         * lib/mbscasestr.c (mbscasestr): Likewise.
20712
20713 2011-01-21  Pádraig Brady <P@draigBrady.com>
20714
20715         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20716         * tests/test-malloca.c (main): Unset the environment variable
20717         to greatly speed up the test.
20718         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20719         * modules/malloca-tests: Depend on unsetenv.
20720
20721 2011-01-21  Pádraig Brady <P@draigBrady.com>
20722
20723         ignore-value: remove stdint dependency
20724         * lib/ignore-value.h: Remove <stdint.h>
20725         * modules/ignore-value: Remove stdint dependency.
20726
20727 2011-01-21  Jim Meyering  <meyering@redhat.com>
20728
20729         maint.mk: adjust variable name to be consistent with other gl_ vars
20730         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20731         to be lower case.
20732
20733 2011-01-20  Jim Meyering  <meyering@redhat.com>
20734
20735         maint.mk: make "check" depend on public-submodule-commit by default
20736         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20737
20738 2011-01-20  Bruno Haible  <bruno@clisp.org>
20739
20740         mbfile, mbiter: Complete change from 2008-12-21.
20741         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20742         * m4/mbiter.m4 (gl_MBITER): Likewise.
20743
20744 2011-01-20  Jim Meyering  <meyering@redhat.com>
20745
20746         init.sh: insert space between each function name and "()"
20747         * tests/init.sh: Make it a little easier to see that a function's
20748         name is "warn_", and not "warn" when looking at the first part of
20749         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20750
20751 2011-01-20  Jim Meyering  <meyering@redhat.com>
20752
20753         mountlist: clean up code formatting
20754         * lib/mountlist.c (read_file_system_list): Split a long line,
20755         correct bracing style, use NULL in place of "(struct statfs *)0",
20756         don't parenthesize return value, add spaces around "=" and after
20757         ";-in-for-stmt".
20758
20759 2011-01-14  Markus Duft <mduft@gentoo.org>
20760
20761         mountlist: add support for Interix
20762         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20763         Apply statvfs to all entries of /dev/fs.
20764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20765         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20766
20767 2011-01-20  Jim Meyering  <meyering@redhat.com>
20768
20769         maint.mk: improve the public-submodule-commit rule
20770         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20771         to suppress printing of its commands... unless V=1.
20772         Add git submodule's --quiet option to suppress printing of e.g.,
20773         "Entering gnulib" output.
20774         "cd" into $(srcdir) before running git submodule.
20775
20776 2011-01-20  Bruno Haible  <bruno@clisp.org>
20777
20778         include_next: Fix bug introduced on 2011-01-18.
20779         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20780         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20781         ac_cv_header_... variable if the second argument is not 'check'.
20782         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20783         gl_NEXT_HEADERS_INTERNAL.
20784
20785 2011-01-20  Bruno Haible  <bruno@clisp.org>
20786
20787         Allow the user to avoid the GNULIB_TEST_* macros.
20788         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20789         Suggested by Paul Eggert.
20790
20791 2011-01-14  Jim Meyering  <meyering@redhat.com>
20792
20793         bootstrap: avoid failure when there is no .gitmodules file
20794         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20795         has been assigned to, even when its value is the empty string.
20796         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20797         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20798         Reported by John W. Eaton <jwe@gnu.org>.
20799
20800 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20801
20802         assume <ctype.h>, ..., <time.h> exist
20803         For years gnulib has been assuming the existence of the headers
20804         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20805         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20806         them, since they don't appear to be needed.
20807         * README (Portability guidelines): Document this.
20808         * lib/flock.c: Assume <fcntl.h> exists.
20809         * lib/regex_internal.h: Assume <locale.h> exists.
20810         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20811         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20812         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20813         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20814         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20815         * m4/regex.m4 (gl_REGEX): Likewise.
20816         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20817         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20818         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20819         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20820         * tests/test-argp.c: Likewise.
20821         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20822
20823         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20824         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20825         AA_APPLE_UNIVERSAL_BUILD.  See
20826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20827         * NEWS: Document this.
20828
20829 2011-01-19  Eric Blake  <eblake@redhat.com>
20830
20831         c-stack: assume stack overflow if SA_SIGINFO unsupported
20832         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20833         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20834         sigaction will work.
20835         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20836         behavior match Linux.
20837         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20838
20839         stdbool-tests: accomodate Haiku
20840         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20841
20842         binary-io: fix O_TEXT on Haiku
20843         * modules/binary-io (Depends-on): Add fcntl-h.
20844         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20845         than blindly undefining O_TEXT.
20846         Reported by Scott McCreary.
20847
20848 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20849
20850         include_next: do not check for standard headers like stddef.h
20851
20852         I found this problem when modifying Emacs to use gnulib.
20853         I noticed that it added HAVE_STDDEF_H to config.h, even though
20854         gnulib always assumes <stddef.h> exists as per README and this
20855         symbol is unnecessary.
20856         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20857         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20858         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20859         faster for headers like stddef.h that are known to exist.
20860         (gl_CHECK_NEXT_HEADERS): Use it.
20861         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20862         rather than gl_CHECK_NEXT_HEADERS.
20863         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20864         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20865
20866 2011-01-18  Eric Blake  <eblake@redhat.com>
20867
20868         ansi-c++-opt: skip C++ dependency style if C++ is unused
20869         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20870         tests when we know C++ compilation is not desired.
20871         Reported by Scott McCreary.
20872
20873 2011-01-18  Bruno Haible  <bruno@clisp.org>
20874
20875         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20876         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20877         (main): Perform test also when getrlimit and setrlimit don't exist or
20878         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20879         limiting the address space size using setrlimit, compare the address
20880         space size before and after the the test.
20881         * tests/test-dprintf-posix2.c: Likewise.
20882         * tests/test-fprintf-posix3.sh: Update skip messages.
20883         * tests/test-dprintf-posix2.sh: Likewise.
20884         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20885         * modules/dprintf-posix-tests (Depends-on): Likewise.
20886         Reported by Bruce Korb <bkorb@gnu.org> and
20887         Gary V. Vaughan <gary@gnu.org>.
20888
20889 2011-01-18  Bruno Haible  <bruno@clisp.org>
20890
20891         get-rusage-as: Improvement for Cygwin.
20892         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20893         areas that are merely reserved.
20894
20895 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         strftime: remove dependencies on multibyte modules
20898
20899         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20900         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20901         only if __osf__ is defined, and I suspect OSF doesn't need these
20902         other modules.  If my guess is wrong, we'll need to come up with a
20903         variant of strftime that doesn't need the multibyte modules.
20904
20905         I discovered this problem when attempting modify Emacs to use the
20906         strftime module.  With the previous gnulib, this caused Emacs to
20907         need 31 new files, ranging from lib/config.charset to
20908         m4/wint_t.m4.  This was overkill and I expect would be offputting
20909         to the Emacs maintainers.  After this change, only 6 new files are
20910         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20911         stdbool.m4, and tm_gmtoff.m4.
20912
20913         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20914         Suggested by Bruno Haible in
20915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20916         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20917         and do not check for wchar.h.
20918         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20919         (Depends-on): Remove mbrlen, mbsinit, wchar.
20920
20921 2011-01-18  Bruno Haible  <bruno@clisp.org>
20922
20923         Tests for module 'get-rusage-as'.
20924         * modules/get-rusage-as-tests: New file.
20925         * tests/test-get-rusage-as.c: New file.
20926
20927         New module 'get-rusage-as'.
20928         * modules/get-rusage-as: New file.
20929         * lib/resource-ext.h: New file.
20930         * lib/get-rusage-as.c: New file.
20931
20932 2011-01-17  Eric Blake  <eblake@redhat.com>
20933
20934         sigaction: relax license from LGPLv3+ to LGPLv2+
20935         * modules/sigaction (License): Relax to LGPLv2+.
20936
20937 2011-01-14  Bruno Haible  <bruno@clisp.org>
20938
20939         filemode: Make function declarations usable in C++ mode.
20940         * lib/filemode.h: Enclose function declarations in extern "C" block.
20941         Reported by John W. Eaton <jwe@gnu.org>.
20942
20943 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20944
20945         save-cwd: no longer include "xgetcwd.h"
20946         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20947         This avoids a compilation failure in projects that use save-cwd
20948         without also using the xgetcwd module.
20949
20950 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20951
20952         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20953         This is so that a program like Emacs, which needs only dtoastr,
20954         does not have to bother with distributing and compiling ftoastr
20955         and ldtoastr.
20956         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20957         * modules/dtoastr, modules/ldtoastr: New files.
20958         * modules/ftoastr: Now works just for 'float'.
20959         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20960         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20961         dtoastr.c, ldtoastr.c.
20962
20963 2011-01-11  Jim Meyering  <meyering@redhat.com>
20964
20965         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20966         There is no need to work around the lack of the fchdir function,
20967         since gnulib can now provide a replacement when required.
20968         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20969         * modules/save-cwd (Depends-on): Add fchdir.
20970
20971 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20972
20973         openat, save-cwd: avoid xmalloc
20974
20975         This removes a direct (but undocumented) dependency of openat on
20976         xalloc, along with an indirect dependency via save-cwd.  It also
20977         removes a dependency of save-cwd on xgetcwd, and thereby
20978         indirectly on xalloc.  This change causes the openat substitute
20979         to fall back on save_cwd when memory is tight, and for save_cwd to
20980         fail instead of dying when memory is tight, but that's good enough.
20981         Problem and initial idea for fix reported by Bastien Roucaries in
20982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20983
20984         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20985         xalloc.h (for xmalloc).
20986         (openat_proc_name): Use malloc, not xmalloc.
20987         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20988         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20989
20990         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20991         This avoids heap allocation for file names whose lengths are in
20992         the range 512..1023, with the upper bound increasing to at most
20993         4031 depending on the platform's PATH_MAX.  (We do not want
20994         pathmax.h here as it might supply a non-constant PATH_MAX.)
20995         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20996         Perhaps they should be moved to malloca.h?
20997         (OPENAT_BUFFER_SIZE): Use them.
20998
20999 2011-01-10  Bruno Haible  <bruno@clisp.org>
21000
21001         doc: Update users.txt.
21002         * users.txt: Add recutils.
21003
21004 2011-01-09  Karl Berry  <karl@gnu.org>
21005
21006         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21007
21008         * doc/configmake.texi: New file.
21009         * doc/gnulib.texi: Include it.
21010         * modules/configmake: Move documentation from here.
21011
21012 2011-01-09  Bruno Haible  <bruno@clisp.org>
21013
21014         Update to Unicode 6.0.0.
21015         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21016         (get_lbp): Update for Unicode 6.0.0.
21017         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21018         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21019         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21020         U+11001, U+11038..U+11046. Remove U+06DE.
21021         (uc_width): Fix bounds of planes.
21022         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21023         lib/uniwidth/width.c.
21024         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21025         trailing whitespace removed.
21026         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21027         without comments, but with the original copyright notice.
21028         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21029         * lib/unicase/ignorable.h: Likewise.
21030         * lib/unicase/tocasefold.h: Likewise.
21031         * lib/unicase/tolower.h: Likewise.
21032         * lib/unicase/totitle.h: Likewise.
21033         * lib/unicase/toupper.h: Likewise.
21034         * lib/unictype/bidi_of.h: Likewise.
21035         * lib/unictype/blocks.h: Likewise.
21036         * lib/unictype/categ_C.h: Likewise.
21037         * lib/unictype/categ_Cn.h: Likewise.
21038         * lib/unictype/categ_L.h: Likewise.
21039         * lib/unictype/categ_Ll.h: Likewise.
21040         * lib/unictype/categ_Lm.h: Likewise.
21041         * lib/unictype/categ_Lo.h: Likewise.
21042         * lib/unictype/categ_Lu.h: Likewise.
21043         * lib/unictype/categ_M.h: Likewise.
21044         * lib/unictype/categ_Mc.h: Likewise.
21045         * lib/unictype/categ_Me.h: Likewise.
21046         * lib/unictype/categ_Mn.h: Likewise.
21047         * lib/unictype/categ_N.h: Likewise.
21048         * lib/unictype/categ_Nd.h: Likewise.
21049         * lib/unictype/categ_No.h: Likewise.
21050         * lib/unictype/categ_P.h: Likewise.
21051         * lib/unictype/categ_Po.h: Likewise.
21052         * lib/unictype/categ_S.h: Likewise.
21053         * lib/unictype/categ_Sc.h: Likewise.
21054         * lib/unictype/categ_Sk.h: Likewise.
21055         * lib/unictype/categ_Sm.h: Likewise.
21056         * lib/unictype/categ_So.h: Likewise.
21057         * lib/unictype/categ_of.h: Likewise.
21058         * lib/unictype/combining.h: Likewise.
21059         * lib/unictype/ctype_alnum.h: Likewise.
21060         * lib/unictype/ctype_alpha.h: Likewise.
21061         * lib/unictype/ctype_graph.h: Likewise.
21062         * lib/unictype/ctype_lower.h: Likewise.
21063         * lib/unictype/ctype_print.h: Likewise.
21064         * lib/unictype/ctype_punct.h: Likewise.
21065         * lib/unictype/ctype_upper.h: Likewise.
21066         * lib/unictype/decdigit.h: Likewise.
21067         * lib/unictype/digit.h: Likewise.
21068         * lib/unictype/numeric.h: Likewise.
21069         * lib/unictype/pr_alphabetic.h: Likewise.
21070         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21071         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21072         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21073         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21074         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21075         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21076         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21077         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21078         * lib/unictype/pr_case_ignorable.h: Likewise.
21079         * lib/unictype/pr_cased.h: Likewise.
21080         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21081         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21082         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21083         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21084         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21085         * lib/unictype/pr_combining.h: Likewise.
21086         * lib/unictype/pr_composite.h: Likewise.
21087         * lib/unictype/pr_currency_symbol.h: Likewise.
21088         * lib/unictype/pr_decimal_digit.h: Likewise.
21089         * lib/unictype/pr_deprecated.h: Likewise.
21090         * lib/unictype/pr_format_control.h: Likewise.
21091         * lib/unictype/pr_grapheme_base.h: Likewise.
21092         * lib/unictype/pr_grapheme_extend.h: Likewise.
21093         * lib/unictype/pr_grapheme_link.h: Likewise.
21094         * lib/unictype/pr_id_continue.h: Likewise.
21095         * lib/unictype/pr_id_start.h: Likewise.
21096         * lib/unictype/pr_ideographic.h: Likewise.
21097         * lib/unictype/pr_lowercase.h: Likewise.
21098         * lib/unictype/pr_math.h: Likewise.
21099         * lib/unictype/pr_numeric.h: Likewise.
21100         * lib/unictype/pr_other_alphabetic.h: Likewise.
21101         * lib/unictype/pr_other_id_continue.h: Likewise.
21102         * lib/unictype/pr_other_math.h: Likewise.
21103         * lib/unictype/pr_punctuation.h: Likewise.
21104         * lib/unictype/pr_sentence_terminal.h: Likewise.
21105         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21106         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21107         * lib/unictype/pr_unified_ideograph.h: Likewise.
21108         * lib/unictype/pr_uppercase.h: Likewise.
21109         * lib/unictype/pr_xid_continue.h: Likewise.
21110         * lib/unictype/pr_xid_start.h: Likewise.
21111         * lib/unictype/scripts.h: Likewise.
21112         * lib/unictype/scripts_byname.gperf: Likewise.
21113         * lib/unictype/sy_java_ident.h: Likewise.
21114         * lib/unigbrk/gbrkprop.h: Likewise.
21115         * lib/unilbrk/lbrkprop1.h: Likewise.
21116         * lib/unilbrk/lbrkprop2.h: Likewise.
21117         * lib/uninorm/decomposition-table2.h: Likewise.
21118         * lib/uniwbrk/wbrkprop.h: Likewise.
21119         * tests/unicase/test-cased.c: Likewise.
21120         * tests/unicase/test-ignorable.c: Likewise.
21121         * tests/unicase/test-uc_tolower.c: Likewise.
21122         * tests/unicase/test-uc_totitle.c: Likewise.
21123         * tests/unicase/test-uc_toupper.c: Likewise.
21124         * tests/unictype/test-categ_C.c: Likewise.
21125         * tests/unictype/test-categ_Cn.c: Likewise.
21126         * tests/unictype/test-categ_L.c: Likewise.
21127         * tests/unictype/test-categ_Ll.c: Likewise.
21128         * tests/unictype/test-categ_Lm.c: Likewise.
21129         * tests/unictype/test-categ_Lo.c: Likewise.
21130         * tests/unictype/test-categ_Lu.c: Likewise.
21131         * tests/unictype/test-categ_M.c: Likewise.
21132         * tests/unictype/test-categ_Mc.c: Likewise.
21133         * tests/unictype/test-categ_Me.c: Likewise.
21134         * tests/unictype/test-categ_Mn.c: Likewise.
21135         * tests/unictype/test-categ_N.c: Likewise.
21136         * tests/unictype/test-categ_Nd.c: Likewise.
21137         * tests/unictype/test-categ_No.c: Likewise.
21138         * tests/unictype/test-categ_P.c: Likewise.
21139         * tests/unictype/test-categ_Po.c: Likewise.
21140         * tests/unictype/test-categ_S.c: Likewise.
21141         * tests/unictype/test-categ_Sc.c: Likewise.
21142         * tests/unictype/test-categ_Sk.c: Likewise.
21143         * tests/unictype/test-categ_Sm.c: Likewise.
21144         * tests/unictype/test-categ_So.c: Likewise.
21145         * tests/unictype/test-ctype_alnum.c: Likewise.
21146         * tests/unictype/test-ctype_alpha.c: Likewise.
21147         * tests/unictype/test-ctype_graph.c: Likewise.
21148         * tests/unictype/test-ctype_lower.c: Likewise.
21149         * tests/unictype/test-ctype_print.c: Likewise.
21150         * tests/unictype/test-ctype_punct.c: Likewise.
21151         * tests/unictype/test-ctype_upper.c: Likewise.
21152         * tests/unictype/test-decdigit.h: Likewise.
21153         * tests/unictype/test-digit.h: Likewise.
21154         * tests/unictype/test-numeric.h: Likewise.
21155         * tests/unictype/test-pr_alphabetic.c: Likewise.
21156         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21157         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21158         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21159         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21160         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21161         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21162         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21163         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21164         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21165         * tests/unictype/test-pr_cased.c: Likewise.
21166         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21167         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21168         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21169         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21170         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21171         * tests/unictype/test-pr_combining.c: Likewise.
21172         * tests/unictype/test-pr_composite.c: Likewise.
21173         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21174         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21175         * tests/unictype/test-pr_deprecated.c: Likewise.
21176         * tests/unictype/test-pr_format_control.c: Likewise.
21177         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21178         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21179         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21180         * tests/unictype/test-pr_id_continue.c: Likewise.
21181         * tests/unictype/test-pr_id_start.c: Likewise.
21182         * tests/unictype/test-pr_ideographic.c: Likewise.
21183         * tests/unictype/test-pr_lowercase.c: Likewise.
21184         * tests/unictype/test-pr_math.c: Likewise.
21185         * tests/unictype/test-pr_numeric.c: Likewise.
21186         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21187         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21188         * tests/unictype/test-pr_other_math.c: Likewise.
21189         * tests/unictype/test-pr_punctuation.c: Likewise.
21190         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21191         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21192         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21193         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21194         * tests/unictype/test-pr_uppercase.c: Likewise.
21195         * tests/unictype/test-pr_xid_continue.c: Likewise.
21196         * tests/unictype/test-pr_xid_start.c: Likewise.
21197         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21198         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21199         changes.
21200         * lib/unictype/categ_Cc.h: Likewise.
21201         * lib/unictype/categ_Cf.h: Likewise.
21202         * lib/unictype/categ_Co.h: Likewise.
21203         * lib/unictype/categ_Cs.h: Likewise.
21204         * lib/unictype/categ_Lt.h: Likewise.
21205         * lib/unictype/categ_Nl.h: Likewise.
21206         * lib/unictype/categ_Pc.h: Likewise.
21207         * lib/unictype/categ_Pd.h: Likewise.
21208         * lib/unictype/categ_Pe.h: Likewise.
21209         * lib/unictype/categ_Pf.h: Likewise.
21210         * lib/unictype/categ_Pi.h: Likewise.
21211         * lib/unictype/categ_Ps.h: Likewise.
21212         * lib/unictype/categ_Z.h: Likewise.
21213         * lib/unictype/categ_Zl.h: Likewise.
21214         * lib/unictype/categ_Zp.h: Likewise.
21215         * lib/unictype/categ_Zs.h: Likewise.
21216         * lib/unictype/ctype_blank.h: Likewise.
21217         * lib/unictype/ctype_cntrl.h: Likewise.
21218         * lib/unictype/ctype_digit.h: Likewise.
21219         * lib/unictype/ctype_space.h: Likewise.
21220         * lib/unictype/ctype_xdigit.h: Likewise.
21221         * lib/unictype/mirror.h: Likewise.
21222         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21223         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21224         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21225         * lib/unictype/pr_bidi_control.h: Likewise.
21226         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21227         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21228         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21229         * lib/unictype/pr_bidi_pdf.h: Likewise.
21230         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21231         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21232         * lib/unictype/pr_dash.h: Likewise.
21233         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21234         * lib/unictype/pr_diacritic.h: Likewise.
21235         * lib/unictype/pr_extender.h: Likewise.
21236         * lib/unictype/pr_hex_digit.h: Likewise.
21237         * lib/unictype/pr_hyphen.h: Likewise.
21238         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21239         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21240         * lib/unictype/pr_ignorable_control.h: Likewise.
21241         * lib/unictype/pr_iso_control.h: Likewise.
21242         * lib/unictype/pr_join_control.h: Likewise.
21243         * lib/unictype/pr_left_of_pair.h: Likewise.
21244         * lib/unictype/pr_line_separator.h: Likewise.
21245         * lib/unictype/pr_logical_order_exception.h: Likewise.
21246         * lib/unictype/pr_non_break.h: Likewise.
21247         * lib/unictype/pr_not_a_character.h: Likewise.
21248         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21249         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21250         * lib/unictype/pr_other_id_start.h: Likewise.
21251         * lib/unictype/pr_other_lowercase.h: Likewise.
21252         * lib/unictype/pr_other_uppercase.h: Likewise.
21253         * lib/unictype/pr_paired_punctuation.h: Likewise.
21254         * lib/unictype/pr_paragraph_separator.h: Likewise.
21255         * lib/unictype/pr_pattern_syntax.h: Likewise.
21256         * lib/unictype/pr_pattern_white_space.h: Likewise.
21257         * lib/unictype/pr_private_use.h: Likewise.
21258         * lib/unictype/pr_quotation_mark.h: Likewise.
21259         * lib/unictype/pr_radical.h: Likewise.
21260         * lib/unictype/pr_soft_dotted.h: Likewise.
21261         * lib/unictype/pr_space.h: Likewise.
21262         * lib/unictype/pr_titlecase.h: Likewise.
21263         * lib/unictype/pr_variation_selector.h: Likewise.
21264         * lib/unictype/pr_white_space.h: Likewise.
21265         * lib/unictype/pr_zero_width.h: Likewise.
21266         * lib/unictype/sy_c_ident.h: Likewise.
21267         * lib/unictype/sy_c_whitespace.h: Likewise.
21268         * lib/unictype/sy_java_whitespace.h: Likewise.
21269         * lib/uninorm/composition-table.gperf: Likewise.
21270         * lib/uninorm/decomposition-table1.h: Likewise.
21271         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21272         LB8.
21273         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21274         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21275         * modules/unictype/*: Bump version number of expected libunistring
21276         version.
21277
21278 2011-01-09  Bruno Haible  <bruno@clisp.org>
21279
21280         Update to Unicode 5.2.0.
21281         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21282         trailing whitespace removed.
21283
21284 2011-01-09  Bruno Haible  <bruno@clisp.org>
21285
21286         New Unicode character properties, from Unicode 5.2.0.
21287         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21288         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21289         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21290         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21291         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21292         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21293         uc_is_property_cased, uc_is_property_case_ignorable,
21294         uc_is_property_changes_when_lowercased,
21295         uc_is_property_changes_when_uppercased,
21296         uc_is_property_changes_when_titlecased,
21297         uc_is_property_changes_when_casefolded,
21298         uc_is_property_changes_when_casemapped): New declarations.
21299         * lib/unictype/pr_byname.gperf: Add the new properties.
21300         * modules/unictype/property-byname (Depends-on): Depend on the new
21301         properties modules.
21302         * modules/unictype/property-all (Depends-on): Likewise.
21303         * MODULES.html.sh (Unicode string functions): Add
21304         unictype/property-case-ignorable, unictype/property-cased,
21305         unictype/property-changes-when-casefolded,
21306         unictype/property-changes-when-casemapped,
21307         unictype/property-changes-when-lowercased,
21308         unictype/property-changes-when-titlecased,
21309         unictype/property-changes-when-uppercased.
21310
21311         New module 'unictype/property-changes-when-casemapped'.
21312         * modules/unictype/property-changes-when-casemapped: New file.
21313         * lib/unictype/pr_changes_when_casemapped.c: New file.
21314         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21315         generated by gen-uni-tables.
21316         * modules/unictype/property-changes-when-casemapped-tests: New file.
21317         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21318         automatically generated by gen-uni-tables.
21319
21320         New module 'unictype/property-changes-when-casefolded'.
21321         * modules/unictype/property-changes-when-casefolded: New file.
21322         * lib/unictype/pr_changes_when_casefolded.c: New file.
21323         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21324         generated by gen-uni-tables.
21325         * modules/unictype/property-changes-when-casefolded-tests: New file.
21326         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21327         automatically generated by gen-uni-tables.
21328
21329         New module 'unictype/property-changes-when-titlecased'.
21330         * modules/unictype/property-changes-when-titlecased: New file.
21331         * lib/unictype/pr_changes_when_titlecased.c: New file.
21332         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21333         generated by gen-uni-tables.
21334         * modules/unictype/property-changes-when-titlecased-tests: New file.
21335         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21336         automatically generated by gen-uni-tables.
21337
21338         New module 'unictype/property-changes-when-uppercased'.
21339         * modules/unictype/property-changes-when-uppercased: New file.
21340         * lib/unictype/pr_changes_when_uppercased.c: New file.
21341         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21342         generated by gen-uni-tables.
21343         * modules/unictype/property-changes-when-uppercased-tests: New file.
21344         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21345         automatically generated by gen-uni-tables.
21346
21347         New module 'unictype/property-changes-when-lowercased'.
21348         * modules/unictype/property-changes-when-lowercased: New file.
21349         * lib/unictype/pr_changes_when_lowercased.c: New file.
21350         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21351         generated by gen-uni-tables.
21352         * modules/unictype/property-changes-when-lowercased-tests: New file.
21353         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21354         automatically generated by gen-uni-tables.
21355
21356         New module 'unictype/property-case-ignorable'.
21357         * modules/unictype/property-case-ignorable: New file.
21358         * lib/unictype/pr_case_ignorable.c: New file.
21359         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21360         by gen-uni-tables.
21361         * modules/unictype/property-case-ignorable-tests: New file.
21362         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21363         generated by gen-uni-tables.
21364
21365         New module 'unictype/property-cased'.
21366         * modules/unictype/property-cased: New file.
21367         * lib/unictype/pr_cased.c: New file.
21368         * lib/unictype/pr_cased.h: New file, automatically generated by
21369         gen-uni-tables.
21370         * modules/unictype/property-cased-tests: New file.
21371         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21372         gen-uni-tables.
21373
21374 2011-01-09  Bruno Haible  <bruno@clisp.org>
21375
21376         Update to Unicode 5.2.0.
21377         * lib/gen-uni-tables.c (output_predicate, output_category,
21378         output_combclass, output_bidi_category, output_decimal_digit_test,
21379         output_decimal_digit, output_digit_test, output_digit,
21380         output_numeric_test, output_numeric, output_mirror, output_scripts,
21381         output_scripts_byname, output_blocks, output_ident_category): Fix
21382         comment header.
21383         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21384         get_wbp.
21385         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21386         items.
21387         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21388         Changes_When_Lowercased, Changes_When_Uppercased,
21389         Changes_When_Titlecased, Changes_When_Casefolded,
21390         Changes_When_Casemapped.
21391         (is_property_alphabetic, is_property_default_ignorable_code_point):
21392         Update for Unicode 5.2.0.
21393         (is_property_cased, is_property_case_ignorable,
21394         is_property_changes_when_lowercased,
21395         is_property_changes_when_uppercased,
21396         is_property_changes_when_titlecased,
21397         is_property_changes_when_casefolded,
21398         is_property_changes_when_casemapped): New functions.
21399         (output_properties): Output also the properties cased, case_ignorable,
21400         changes_when_lowercased, changes_when_uppercased,
21401         changes_when_titlecased, changes_when_casefolded,
21402         changes_when_casemapped.
21403         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21404         Unicode TR#11 revision 17 -> 19.
21405         (LBP_CP): New enumeration value.
21406         (LBP_*): Adjust values accordingly.
21407         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21408         TR#14 revision 22 -> 24.
21409         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21410         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21411         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21412         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21413         is_WBP_MIDLETTER.
21414         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21415         the code1 and code2 of each composition rule.
21416         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21417         * lib/unicase/ignorable.h: Likewise.
21418         * lib/unicase/tocasefold.h: Likewise.
21419         * lib/unicase/tolower.h: Likewise.
21420         * lib/unicase/totitle.h: Likewise.
21421         * lib/unicase/toupper.h: Likewise.
21422         * lib/unictype/bidi_of.h: Likewise.
21423         * lib/unictype/blocks.h: Likewise.
21424         * lib/unictype/categ_C.h: Likewise.
21425         * lib/unictype/categ_Cf.h: Likewise.
21426         * lib/unictype/categ_Cn.h: Likewise.
21427         * lib/unictype/categ_L.h: Likewise.
21428         * lib/unictype/categ_Ll.h: Likewise.
21429         * lib/unictype/categ_Lm.h: Likewise.
21430         * lib/unictype/categ_Lo.h: Likewise.
21431         * lib/unictype/categ_Lu.h: Likewise.
21432         * lib/unictype/categ_M.h: Likewise.
21433         * lib/unictype/categ_Mc.h: Likewise.
21434         * lib/unictype/categ_Mn.h: Likewise.
21435         * lib/unictype/categ_N.h: Likewise.
21436         * lib/unictype/categ_Nd.h: Likewise.
21437         * lib/unictype/categ_Nl.h: Likewise.
21438         * lib/unictype/categ_No.h: Likewise.
21439         * lib/unictype/categ_P.h: Likewise.
21440         * lib/unictype/categ_Pd.h: Likewise.
21441         * lib/unictype/categ_Po.h: Likewise.
21442         * lib/unictype/categ_S.h: Likewise.
21443         * lib/unictype/categ_Sc.h: Likewise.
21444         * lib/unictype/categ_So.h: Likewise.
21445         * lib/unictype/categ_of.h: Likewise.
21446         * lib/unictype/combining.h: Likewise.
21447         * lib/unictype/ctype_alnum.h: Likewise.
21448         * lib/unictype/ctype_alpha.h: Likewise.
21449         * lib/unictype/ctype_graph.h: Likewise.
21450         * lib/unictype/ctype_lower.h: Likewise.
21451         * lib/unictype/ctype_print.h: Likewise.
21452         * lib/unictype/ctype_punct.h: Likewise.
21453         * lib/unictype/ctype_upper.h: Likewise.
21454         * lib/unictype/decdigit.h: Likewise.
21455         * lib/unictype/digit.h: Likewise.
21456         * lib/unictype/numeric.h: Likewise.
21457         * lib/unictype/pr_alphabetic.h: Likewise.
21458         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21459         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21460         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21461         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21462         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21463         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21464         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21465         * lib/unictype/pr_combining.h: Likewise.
21466         * lib/unictype/pr_composite.h: Likewise.
21467         * lib/unictype/pr_currency_symbol.h: Likewise.
21468         * lib/unictype/pr_dash.h: Likewise.
21469         * lib/unictype/pr_decimal_digit.h: Likewise.
21470         * lib/unictype/pr_deprecated.h: Likewise.
21471         * lib/unictype/pr_diacritic.h: Likewise.
21472         * lib/unictype/pr_extender.h: Likewise.
21473         * lib/unictype/pr_grapheme_base.h: Likewise.
21474         * lib/unictype/pr_grapheme_extend.h: Likewise.
21475         * lib/unictype/pr_grapheme_link.h: Likewise.
21476         * lib/unictype/pr_id_continue.h: Likewise.
21477         * lib/unictype/pr_id_start.h: Likewise.
21478         * lib/unictype/pr_ideographic.h: Likewise.
21479         * lib/unictype/pr_ignorable_control.h: Likewise.
21480         * lib/unictype/pr_logical_order_exception.h: Likewise.
21481         * lib/unictype/pr_lowercase.h: Likewise.
21482         * lib/unictype/pr_numeric.h: Likewise.
21483         * lib/unictype/pr_other_alphabetic.h: Likewise.
21484         * lib/unictype/pr_punctuation.h: Likewise.
21485         * lib/unictype/pr_sentence_terminal.h: Likewise.
21486         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21487         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21488         * lib/unictype/pr_unified_ideograph.h: Likewise.
21489         * lib/unictype/pr_uppercase.h: Likewise.
21490         * lib/unictype/pr_xid_continue.h: Likewise.
21491         * lib/unictype/pr_xid_start.h: Likewise.
21492         * lib/unictype/pr_zero_width.h: Likewise.
21493         * lib/unictype/scripts.h: Likewise.
21494         * lib/unictype/scripts_byname.gperf: Likewise.
21495         * lib/unictype/sy_java_ident.h: Likewise.
21496         * lib/unigbrk/gbrkprop.h: Likewise.
21497         * lib/unilbrk/lbrkprop1.h: Likewise.
21498         * lib/unilbrk/lbrkprop2.h: Likewise.
21499         * lib/unilbrk/lbrktables.h: Likewise.
21500         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21501         LBP_CP. Implement rule LB30.
21502         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21503         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21504         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21505         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21506         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21507         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21508         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21509         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21510         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21511         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21512         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21513         bits instead of 16 bits in the code1 and code2 of each composition
21514         rule.
21515         (uc_composition): Update for Unicode 5.2.0.
21516         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21517         * lib/uninorm/decomposition-table2.h: Likewise.
21518         * lib/uniwbrk/wbrkprop.h: Likewise.
21519         * tests/unicase/test-cased.c: Likewise.
21520         * tests/unicase/test-ignorable.c: Likewise.
21521         * tests/unicase/test-uc_tolower.c: Likewise.
21522         * tests/unicase/test-uc_totitle.c: Likewise.
21523         * tests/unicase/test-uc_toupper.c: Likewise.
21524         * tests/unictype/test-categ_C.c: Likewise.
21525         * tests/unictype/test-categ_Cf.c: Likewise.
21526         * tests/unictype/test-categ_Cn.c: Likewise.
21527         * tests/unictype/test-categ_L.c: Likewise.
21528         * tests/unictype/test-categ_Ll.c: Likewise.
21529         * tests/unictype/test-categ_Lm.c: Likewise.
21530         * tests/unictype/test-categ_Lo.c: Likewise.
21531         * tests/unictype/test-categ_Lu.c: Likewise.
21532         * tests/unictype/test-categ_M.c: Likewise.
21533         * tests/unictype/test-categ_Mc.c: Likewise.
21534         * tests/unictype/test-categ_Mn.c: Likewise.
21535         * tests/unictype/test-categ_N.c: Likewise.
21536         * tests/unictype/test-categ_Nd.c: Likewise.
21537         * tests/unictype/test-categ_Nl.c: Likewise.
21538         * tests/unictype/test-categ_No.c: Likewise.
21539         * tests/unictype/test-categ_P.c: Likewise.
21540         * tests/unictype/test-categ_Pd.c: Likewise.
21541         * tests/unictype/test-categ_Po.c: Likewise.
21542         * tests/unictype/test-categ_S.c: Likewise.
21543         * tests/unictype/test-categ_Sc.c: Likewise.
21544         * tests/unictype/test-categ_So.c: Likewise.
21545         * tests/unictype/test-ctype_alnum.c: Likewise.
21546         * tests/unictype/test-ctype_alpha.c: Likewise.
21547         * tests/unictype/test-ctype_graph.c: Likewise.
21548         * tests/unictype/test-ctype_lower.c: Likewise.
21549         * tests/unictype/test-ctype_print.c: Likewise.
21550         * tests/unictype/test-ctype_punct.c: Likewise.
21551         * tests/unictype/test-ctype_upper.c: Likewise.
21552         * tests/unictype/test-decdigit.h: Likewise.
21553         * tests/unictype/test-digit.h: Likewise.
21554         * tests/unictype/test-numeric.h: Likewise.
21555         * tests/unictype/test-pr_alphabetic.c: Likewise.
21556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21557         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21558         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21559         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21560         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21561         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21562         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21563         * tests/unictype/test-pr_combining.c: Likewise.
21564         * tests/unictype/test-pr_composite.c: Likewise.
21565         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21566         * tests/unictype/test-pr_dash.c: Likewise.
21567         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21568         * tests/unictype/test-pr_deprecated.c: Likewise.
21569         * tests/unictype/test-pr_diacritic.c: Likewise.
21570         * tests/unictype/test-pr_extender.c: Likewise.
21571         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21572         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21573         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21574         * tests/unictype/test-pr_id_continue.c: Likewise.
21575         * tests/unictype/test-pr_id_start.c: Likewise.
21576         * tests/unictype/test-pr_ideographic.c: Likewise.
21577         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21578         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21579         * tests/unictype/test-pr_lowercase.c: Likewise.
21580         * tests/unictype/test-pr_numeric.c: Likewise.
21581         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21582         * tests/unictype/test-pr_punctuation.c: Likewise.
21583         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21584         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21585         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21586         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21587         * tests/unictype/test-pr_uppercase.c: Likewise.
21588         * tests/unictype/test-pr_xid_continue.c: Likewise.
21589         * tests/unictype/test-pr_xid_start.c: Likewise.
21590         * tests/unictype/test-pr_zero_width.c: Likewise.
21591         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21592         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21593         changed behaviour: line breaking is now disallowed between a letter
21594         or '=' and '('.
21595         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21596         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21597         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21598         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21599         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21600         lib/uniwidth/width.c.
21601         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21602         without comments, but with the original copyright notice.
21603         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21604         changes.
21605         * lib/unictype/categ_Cc.h: Likewise.
21606         * lib/unictype/categ_Co.h: Likewise.
21607         * lib/unictype/categ_Cs.h: Likewise.
21608         * lib/unictype/categ_Lt.h: Likewise.
21609         * lib/unictype/categ_Me.h: Likewise.
21610         * lib/unictype/categ_Pc.h: Likewise.
21611         * lib/unictype/categ_Pe.h: Likewise.
21612         * lib/unictype/categ_Pf.h: Likewise.
21613         * lib/unictype/categ_Pi.h: Likewise.
21614         * lib/unictype/categ_Ps.h: Likewise.
21615         * lib/unictype/categ_Sk.h: Likewise.
21616         * lib/unictype/categ_Sm.h: Likewise.
21617         * lib/unictype/categ_Z.h: Likewise.
21618         * lib/unictype/categ_Zl.h: Likewise.
21619         * lib/unictype/categ_Zp.h: Likewise.
21620         * lib/unictype/categ_Zs.h: Likewise.
21621         * lib/unictype/ctype_blank.h: Likewise.
21622         * lib/unictype/ctype_cntrl.h: Likewise.
21623         * lib/unictype/ctype_digit.h: Likewise.
21624         * lib/unictype/ctype_space.h: Likewise.
21625         * lib/unictype/ctype_xdigit.h: Likewise.
21626         * lib/unictype/mirror.h: Likewise.
21627         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21628         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21629         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21630         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21631         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21632         * lib/unictype/pr_bidi_control.h: Likewise.
21633         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21634         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21635         * lib/unictype/pr_bidi_pdf.h: Likewise.
21636         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21637         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21638         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21639         * lib/unictype/pr_format_control.h: Likewise.
21640         * lib/unictype/pr_hex_digit.h: Likewise.
21641         * lib/unictype/pr_hyphen.h: Likewise.
21642         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21643         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21644         * lib/unictype/pr_iso_control.h: Likewise.
21645         * lib/unictype/pr_join_control.h: Likewise.
21646         * lib/unictype/pr_left_of_pair.h: Likewise.
21647         * lib/unictype/pr_line_separator.h: Likewise.
21648         * lib/unictype/pr_math.h: Likewise.
21649         * lib/unictype/pr_non_break.h: Likewise.
21650         * lib/unictype/pr_not_a_character.h: Likewise.
21651         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21652         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21653         * lib/unictype/pr_other_id_continue.h: Likewise.
21654         * lib/unictype/pr_other_id_start.h: Likewise.
21655         * lib/unictype/pr_other_lowercase.h: Likewise.
21656         * lib/unictype/pr_other_math.h: Likewise.
21657         * lib/unictype/pr_other_uppercase.h: Likewise.
21658         * lib/unictype/pr_paired_punctuation.h: Likewise.
21659         * lib/unictype/pr_paragraph_separator.h: Likewise.
21660         * lib/unictype/pr_pattern_syntax.h: Likewise.
21661         * lib/unictype/pr_pattern_white_space.h: Likewise.
21662         * lib/unictype/pr_private_use.h: Likewise.
21663         * lib/unictype/pr_quotation_mark.h: Likewise.
21664         * lib/unictype/pr_radical.h: Likewise.
21665         * lib/unictype/pr_soft_dotted.h: Likewise.
21666         * lib/unictype/pr_space.h: Likewise.
21667         * lib/unictype/pr_titlecase.h: Likewise.
21668         * lib/unictype/pr_variation_selector.h: Likewise.
21669         * lib/unictype/pr_white_space.h: Likewise.
21670         * lib/unictype/sy_c_ident.h: Likewise.
21671         * lib/unictype/sy_c_whitespace.h: Likewise.
21672         * lib/unictype/sy_java_whitespace.h: Likewise.
21673         * modules/uni*/*: Bump version number of expected libunistring version.
21674         Reported by Simon Josefsson.
21675
21676 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21677
21678         useless-if-before-free: fix typo in --help and make the internal,
21679         automatic version date update process work once again.
21680         --help output contained a NUL character instead of the
21681         backslash-zero that was intended.  Also, the "must lie within
21682         the first 8 lines" line is on line 9, and hence not getting
21683         automatically updated.
21684         * build-aux/useless-if-before-free: Fix the former by adding a
21685         backslash, and the latter by condensing the three lines of what-it-does
21686         to a single line, leaving one line of slack for the future.
21687
21688 2011-01-09  Bruno Haible  <bruno@clisp.org>
21689
21690         uniwidth/width: Fix width of U+1D173..U+1D17A.
21691         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21692         symbolic_width, output_width_property_test): New functions.
21693         (main): Invoke output_nonspacing_property, output_width_property_test.
21694         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21695         U+1D173..U+1D17A.
21696         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21697         1.
21698         * modules/uniwidth/*: Bump version number of expected libunistring
21699         version.
21700         * modules/unilbrk/*: Likewise.
21701
21702 2011-01-08  Bruno Haible  <bruno@clisp.org>
21703
21704         uninorm tests: Preserve copyright of Unicode data file.
21705         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21706         Mention modifications.
21707
21708 2011-01-08  Bruno Haible  <bruno@clisp.org>
21709
21710         gen-uni-tables: Prepare for Unicode 5.2.0.
21711         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21712         (debug_output_lbp, output_lbp): Update.
21713
21714 2011-01-08  Bruno Haible  <bruno@clisp.org>
21715
21716         unilbrk: Clarify gen-uni-tables.c code.
21717         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21718         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21719         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21720
21721 2011-01-07  Bruno Haible  <bruno@clisp.org>
21722
21723         strtod: Restore errno when successfully parsing Infinity or NaN.
21724         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21725         restore the original errno.
21726
21727 2011-01-07  Bruno Haible  <bruno@clisp.org>
21728
21729         remove test: Avoid failure on HP-UX 11.
21730         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21731
21732 2011-01-07  Bruno Haible  <bruno@clisp.org>
21733
21734         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21735         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21736         error code.
21737
21738 2011-01-07  Pádraig Brady <P@draigBrady.com>
21739
21740         ignore-value: fixup comments, and add Eric Blake
21741         as an author since he rewrote the macros.
21742         * lib/ignore-value.h (ignore_value):  State that
21743         we now support aggregates.  Also specify exactly
21744         when the GCC warn_unused_result feature was added.
21745
21746 2011-01-06  Eric Blake  <eblake@redhat.com>
21747
21748         ignore-value: support aggregate types
21749         * lib/ignore-value.h (ignore_value): Provide separate gcc
21750         definition.
21751         * modules/ignore-value-tests: New test module.
21752         * tests/test-ignore-value.c: New test.
21753
21754         maint.mk: improve sc_prohibit_strcmp regex
21755         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21756         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21757         definition of STRNEQ.
21758
21759         signal: work around Haiku issue with SIGBUS
21760         * lib/siglist.h: Add comment.
21761         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21762         strsignal's favoring of SIGSEGV.
21763         * tests/test-signal.c (main): Avoid test failure.
21764         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21765         Reported by Scott McCreary.
21766
21767         maint.mk: add pre-release check to ensure submodule commits are public
21768         * top/maint.mk (public-submodule-commit): New rule.
21769         (submodule-checks): New variable.
21770         (alpha beta stable): Depend on the variable.
21771
21772 2011-01-05  Pádraig Brady <P@draigBrady.com>
21773         and Jim Meyering  <meyering@redhat.com>
21774
21775         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21776         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21777         (ATTRIBUTE_DEPRECATED): Define.
21778         (_ignore_case): New function.
21779         (ignore_value): New macro, to replace the old function.
21780         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21781         * modules/ignore-value (Depends-on): Add stdint.
21782
21783 2011-01-04  Eric Blake  <eblake@redhat.com>
21784
21785         doc: regenerate INSTALL
21786         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21787         @firstparagraphindent support, now that autoconf dropped it.
21788         (INSTALL_PRELUDE): Reinstate old macro.
21789         * doc/install.texi: Resync from autoconf.
21790         * doc/INSTALL: Reflect recent autoconf update.
21791         * doc/INSTALL.ISO: Likewise.
21792         * doc/INSTALL.UTF-8: Likewise.
21793         Reported by Karl Berry.
21794
21795 2011-01-04  Bruce Korb  <address@hidden>
21796
21797         git-version-gen: avoid a sub-shell
21798         * build-aux/git-version-gen: Redirect stderr in `...` via
21799         "exec 2>...", rather than via an added sub-shell.
21800
21801 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21802
21803         git-version-gen: use (...) rather than sh -c '...'
21804         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21805         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21806
21807 2011-01-03  Jim Meyering  <meyering@redhat.com>
21808
21809         git-version-gen: convert leading TABs to spaces
21810         * build-aux/git-version-gen: Expand leading TABs.
21811
21812         git-version-gen: handle failed "git rev-list"
21813         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21814         from git and proceeding as if it had succeeded but printed no SHA1
21815         checksums, suppress the diagnostic and handle the failure.
21816         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21817
21818         git-version-gen: include command name in one more diagnostic
21819         * build-aux/git-version-gen: When the required .tarball-version file
21820         was missing or unreadable, you might see the diagnostic from "cat",
21821         but no trace of the name of the invoking script.  Now, you still see
21822         the diagnostic from cat, but also get one from "git-version-gen: ".
21823         Inspired by a patch from Bruce Korb.
21824
21825         update-copyright: adjust test to match changed code
21826         * tests/test-update-copyright.sh: Change test's expected output
21827         to match new actual output.
21828
21829 2011-01-02  Bruno Haible  <bruno@clisp.org>
21830
21831         getlogin_r: Avoid test failure on HP-UX 11.
21832         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21833         ERANGE when the second argument is zero.
21834         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21835         portability problem.
21836
21837 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21838
21839         * build-aux/update-copyright: doc Simon's changes
21840
21841 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21842
21843         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21844         environment variable.
21845
21846 2011-01-02  Bruno Haible  <bruno@clisp.org>
21847
21848         unigbrk: Avoid gcc warnings.
21849         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21850         unused variable.
21851         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21852         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21853         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21854         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21855         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21856         Change type of first argument to 'const char *'.
21857         (main): Remove unused variable.
21858         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21859         type of first argument to 'const char *'.
21860         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21861         Likewise.
21862         (main): Change type of variable 's'.
21863         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21864         to 'int'.
21865
21866 2011-01-02  Bruno Haible  <bruno@clisp.org>
21867
21868         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21869         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21870         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21871         bug.
21872         * lib/pwrite.c: Undo 2010-12-31 patch.
21873         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21874
21875 2011-01-02  Bruno Haible  <bruno@clisp.org>
21876
21877         pread: Fix test whether it works.
21878         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21879
21880 2011-01-02  Bruno Haible  <bruno@clisp.org>
21881
21882         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21883         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21884         ends in "6". Don't require a specific month name. Try also the locale
21885         names found on HP-UX 11 and Solaris 7.
21886
21887 2011-01-02  Bruno Haible  <bruno@clisp.org>
21888
21889         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21890         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21891         C linkage.
21892         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21893
21894 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21895
21896         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21897         for consistency, since the "cluster" term is not used elsewhere.
21898         * lib/unigbrk.in.h: Update name.
21899         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21900         * lib/unigbrk/u16-grapheme-next.c: Update name.
21901         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21902         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21903         * lib/unigbrk/u32-grapheme-next.c: Update name.
21904         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21905         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21906         * lib/unigbrk/u8-grapheme-next.c: Update name.
21907         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21908         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21909         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21910         Suggested by Bruno Haible.
21911
21912 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21913
21914         Remove module 'u8-grapheme-len' as too redundant with
21915         'u8-grapheme-next'.
21916         * modules/unigbrk/u8-grapheme-len: Delete file.
21917         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21918         * lib/unigbrk.in.h: Remove prototype for deleted function.
21919         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21920         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21921
21922         Remove module 'u16-grapheme-len' as too redundant with
21923         'u16-grapheme-next'.
21924         * modules/unigbrk/u16-grapheme-len: Delete file.
21925         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21926         * lib/unigbrk.in.h: Remove prototype for deleted function.
21927         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21928         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21929
21930         Remove module 'u32-grapheme-len' as too redundant with
21931         'u32-grapheme-next'.
21932         * modules/unigbrk/u32-grapheme-len: Delete file.
21933         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21934         * lib/unigbrk.in.h: Remove prototype for deleted function.
21935         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21936         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21937
21938         Suggested by Bruno Haible.
21939
21940 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21941
21942         * unigbrk.in.h: Fix typo: "ben" => "been".
21943         Reported by Bruno Haible.
21944
21945 2011-01-01  Jim Meyering  <meyering@redhat.com>
21946
21947         maint: update almost all copyright ranges to include 2011
21948         Run the new "make update-copyright" rule.
21949
21950 2011-01-01  Jim Meyering  <meyering@redhat.com>
21951
21952         maint: update-copyright: exempt doc/INSTALL*
21953         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21954         since they are generated.  Suggested by Bruno Haible.
21955
21956 2011-01-01  Jim Meyering  <meyering@redhat.com>
21957
21958         maint: refine the update-copyright rule
21959         * Makefile (update-copyright): Also exclude any file that includes
21960         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21961         code that merely generates the comment.
21962
21963 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21964
21965         New module 'u8-grapheme-len'.
21966         * modules/unigbrk/u8-grapheme-len: New file.
21967         * modules/unigbrk/u8-grapheme-len-tests: New file.
21968         * lib/unigbrk.in.h: Add prototype for new function.
21969         * lib/unigbrk/u8-grapheme-len.c: New file.
21970         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21971
21972         New module 'u16-grapheme-len'.
21973         * modules/unigbrk/u16-grapheme-len: New file.
21974         * modules/unigbrk/u16-grapheme-len-tests: New file.
21975         * lib/unigbrk.in.h: Add prototype for new function.
21976         * lib/unigbrk/u16-grapheme-len.c: New file.
21977         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21978
21979         New module 'u32-grapheme-len'.
21980         * modules/unigbrk/u32-grapheme-len: New file.
21981         * modules/unigbrk/u32-grapheme-len-tests: New file.
21982         * lib/unigbrk.in.h: Add prototype for new function.
21983         * lib/unigbrk/u32-grapheme-len.c: New file.
21984         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21985
21986         New module 'u8-grapheme-next'.
21987         * modules/unigbrk/u8-grapheme-next: New file.
21988         * modules/unigbrk/u8-grapheme-next-tests: New file.
21989         * lib/unigbrk.in.h: Add prototype for new function.
21990         * lib/unigbrk/u8-grapheme-next.c: New file.
21991         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21992
21993         New module 'u16-grapheme-next'.
21994         * modules/unigbrk/u16-grapheme-next: New file.
21995         * modules/unigbrk/u16-grapheme-next-tests: New file.
21996         * lib/unigbrk.in.h: Add prototype for new function.
21997         * lib/unigbrk/u16-grapheme-next.c: New file.
21998         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21999
22000         New module 'u32-grapheme-next'.
22001         * modules/unigbrk/u32-grapheme-next: New file.
22002         * modules/unigbrk/u32-grapheme-next-tests: New file.
22003         * lib/unigbrk.in.h: Add prototype for new function.
22004         * lib/unigbrk/u32-grapheme-next.c: New file.
22005         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22006
22007         New module 'u8-grapheme-prev'.
22008         * modules/unigbrk/u8-grapheme-prev: New file.
22009         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22010         * lib/unigbrk.in.h: Add prototype for new function.
22011         * lib/unigbrk/u8-grapheme-prev.c: New file.
22012         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22013
22014         New module 'u16-grapheme-prev'.
22015         * modules/unigbrk/u16-grapheme-prev: New file.
22016         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22017         * lib/unigbrk.in.h: Add prototype for new function.
22018         * lib/unigbrk/u16-grapheme-prev.c: New file.
22019         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22020
22021         New module 'u32-grapheme-prev'.
22022         * modules/unigbrk/u32-grapheme-prev: New file.
22023         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22024         * lib/unigbrk.in.h: Add prototype for new function.
22025         * lib/unigbrk/u32-grapheme-prev.c: New file.
22026         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22027
22028         New module 'u8-grapheme-breaks'.
22029         * modules/unigbrk/u8-grapheme-breaks: New file.
22030         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22031         * lib/unigbrk.in.h: Add prototype for new function.
22032         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22033         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22034
22035         New module 'u16-grapheme-breaks'.
22036         * modules/unigbrk/u16-grapheme-breaks: New file.
22037         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22038         * lib/unigbrk.in.h: Add prototype for new function.
22039         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22040         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22041
22042         New module 'u32-grapheme-breaks'.
22043         * modules/unigbrk/u32-grapheme-breaks: New file.
22044         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22045         * lib/unigbrk.in.h: Add prototype for new function.
22046         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22047         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22048
22049         New module 'ulc-grapheme-breaks'.
22050         * modules/unigbrk/ulc-grapheme-breaks: New file.
22051         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22052         * m4/locale-ar.m4: New file.
22053         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22054         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22055         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22056
22057 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22058
22059         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22060         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22061         modified how this file was generated before I initially submitted
22062         the module, but failed to regenerate it.  This meant that several
22063         of the level2 entries were wrong.
22064         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22065         Remove the division-by-2 that is folded into the table now that
22066         gbrkprop.h has been regenerated properly.  Now -1 entries are
22067         handled correctly.
22068
22069         New module 'unigbrk/uc-gbrk-prop-tests'.
22070         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22071         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22072         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22073         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22074
22075 2011-01-01  Bruno Haible  <bruno@clisp.org>
22076
22077         Avoid use of hexadecimal escapes.
22078         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22079         instead of hexadecimal escapes.
22080
22081 2011-01-01  Jim Meyering  <meyering@redhat.com>
22082
22083         maint: new rule to update copyright year ranges
22084         * Makefile (update-copyright): New rule.
22085
22086         maint: indent with TABs in Makefile
22087         * Makefile: Expand leading sequences of spaces to TABs
22088
22089         version-etc: update the copyright year it reports
22090         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22091
22092 2010-12-31  Bruno Haible  <bruno@clisp.org>
22093
22094         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22095         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22096         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22097         zero.
22098
22099 2010-12-31  Bruno Haible  <bruno@clisp.org>
22100
22101         pwrite: Work around HP-UX 11.11 bug.
22102         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22103         works and set REPLACE_PWRITE if not.
22104         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22105         function.
22106         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22107
22108 2010-12-31  Bruno Haible  <bruno@clisp.org>
22109
22110         pread: Work around HP-UX 11 bugs.
22111         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22112         and set REPLACE_PREAD if not.
22113         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22114
22115 2010-12-31  Eric Blake  <eblake@redhat.com>
22116
22117         nl_langinfo: fix YESEXPR on Irix 6.5
22118         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22119         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22120         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22121         it.
22122
22123 2010-12-31  Bruno Haible  <bruno@clisp.org>
22124
22125         iconv: Document HP-UX 11 bug.
22126         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22127
22128 2010-12-31  Bruno Haible  <bruno@clisp.org>
22129
22130         ldexpl: Fix link error on HP-UX 11.
22131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22132         LDEXPL_LIBM, using $ISNANL_LIBM.
22133
22134 2010-12-31  Eric Blake  <eblake@redhat.com>
22135
22136         ftello: avoid compilation failure with SunStudio c89
22137         * lib/ftello.c (ftello): Use lseek, not llseek.
22138
22139         tests: avoid failing coreutils tests on cygwin
22140         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22141         (create_exe_shims_): Return 0 when skipping.
22142
22143 2010-12-31  Bruno Haible  <bruno@clisp.org>
22144
22145         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22146         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22147
22148 2010-12-31  Bruno Haible  <bruno@clisp.org>
22149
22150         waitpid: Fix link error in C++ mode.
22151         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22152
22153 2010-12-31  Bruno Haible  <bruno@clisp.org>
22154
22155         isnan: Use GCC built-ins when possible.
22156         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22157         __builtin_isnan.
22158         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22159         (isnan): Define using GCC built-ins for GCC >= 4.0.
22160
22161 2010-12-31  Bruno Haible  <bruno@clisp.org>
22162
22163         isnand: Fix mistake.
22164         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22165         __builtin_isnand.
22166
22167 2010-12-31  Bruno Haible  <bruno@clisp.org>
22168
22169         open: Avoid C++ error on HP-UX 11.
22170         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22171
22172 2010-12-31  Bruno Haible  <bruno@clisp.org>
22173
22174         time_r: Add missing declarations on HP-UX 11.
22175         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22176         instead of HAVE_LOCALTIME_R.
22177         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22178         HAVE_LOCALTIME_R always.
22179         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22180         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22181         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22182         HAVE_LOCALTIME_R.
22183         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22184         * doc/posix-functions/localtime_r.texi: Likewise.
22185
22186 2010-12-29  Eric Blake  <eblake@redhat.com>
22187
22188         mountlist: tweak previous commit
22189         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22190         Reported by Paul Eggert.
22191
22192         mountlist: fix local drive detection on cygwin
22193         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22194         that works for cygwin.
22195
22196 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22197
22198         ftoastr, snprintf: ftoastr + snprintf module
22199         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22200         since the snprintf module now should be good enough here.
22201         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22202         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22203         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22204         GNULIB_SNPRINTF only for the test directory, and the latter
22205         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22206         seems to suffice by itself.
22207
22208 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22209
22210         alloca: one step towards thread-safety
22211         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22212         need for a static variable.  All callers changed.  This does not
22213         make the alloca replacement thread-safe, but it's one step.
22214
22215         tests: minor indenting change
22216         * tests/init.sh: Sync from coreutils housekeeping patch
22217         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22218         to keep lines within 80 columns.
22219
22220 2010-12-28  Jim Meyering  <meyering@redhat.com>
22221
22222         regex: don't infloop on persistent failing calloc
22223         * lib/regexec.c (build_trtable): Return failure indication upon
22224         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22225         In glibc, this was fixed for version 2.13:
22226         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22227
22228 2010-12-28  Bruno Haible  <bruno@clisp.org>
22229             Paul Eggert <eggert@cs.ucla.edu>
22230
22231         linkat: Make implementation robust against system behaviour variations.
22232         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22233         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22234         way, and to -2 if it needs a generic runtime test.
22235         * lib/linkat.c (solaris_optimized_link_immediate,
22236         solaris_optimized_link_follow): New functions.
22237         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22238         (check_same_link): Use it.
22239
22240 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22241
22242         New module 'unigbrk/base'.
22243         * modules/unigbrk/base: New file.
22244         * lib/unigbrk.in.h: New file.
22245
22246         New module 'unigbrk/uc-gbrk-prop'.
22247         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22248         * modules/unigbrk/uc-gbrk-prop: New file.
22249         * lib/unigbrk/gbrkprop.h: New file.
22250         * lib/unigbrk/uc-gbrk-prop.c: New file.
22251
22252         New module 'unigbrk/uc-is-grapheme-break'.
22253         * modules/unigbrk/uc-is-grapheme-break: New file.
22254         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22255         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22256         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22257         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22258         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22259
22260         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22261
22262 2010-12-27  Bruno Haible  <bruno@clisp.org>
22263
22264         linkat test: Avoid failure on Solaris 11 2010-11.
22265         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22266
22267 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22268
22269         utimens: work around glibc rounding bug on more platforms
22270         * lib/utimens.c (fdutimens): Work around rounding bug even if
22271         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22273
22274 2010-12-27  Bruno Haible  <bruno@clisp.org>
22275
22276         select tests: Improve comments.
22277         * tests/test-select.c (do_select): Add comments.
22278
22279 2010-12-27  Bruno Haible  <bruno@clisp.org>
22280
22281         select tests: Safer way of handling timeout.
22282         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22283         at every invocation.
22284
22285 2010-12-27  Bruno Haible  <bruno@clisp.org>
22286
22287         select tests: Use 'bool' where appropriate.
22288         * tests/test-select.c (connect_to_socket): Change argument type to
22289         'bool'.
22290
22291 2010-12-27  Bruno Haible  <bruno@clisp.org>
22292
22293         select tests: Use existing modules.
22294         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22295         (configure.ac): Don't test for unistd.h.
22296         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22297         declared in <unistd.h>.
22298
22299 2010-12-27  Bruno Haible  <bruno@clisp.org>
22300
22301         mbrtowc: Work around a Solaris 7 bug.
22302         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22303         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22304         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22305         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22306         MBRTOWC_NULL_ARG1_BUG.
22307         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22308         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22309         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22310         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22311
22312 2010-12-27  Jim Meyering  <meyering@redhat.com>
22313
22314         read-file.c: tweak syntax
22315         * lib/read-file.c (fread_file): Remove space after "*" in function
22316         definitions.
22317
22318 2010-12-27  Bruno Haible  <bruno@clisp.org>
22319
22320         times test: Avoid gcc warnings on OSF/1.
22321         * tests/test-times.c (main): Cast printf arguments from clock_t to
22322         'long int'.
22323
22324 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22325
22326         utimens: work around glibc rounding bug on older Linux kernels
22327         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22328         on Linux with a glibc whose utimes might not work, then work
22329         around a longstanding glibc bug involving rounding rather than
22330         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22332
22333 2010-12-26  Bruno Haible  <bruno@clisp.org>
22334
22335         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22336         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22337         _GL_CXXALIAS_SYS.
22338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22339
22340 2010-12-26  Bruno Haible  <bruno@clisp.org>
22341
22342         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22343         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22345         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22346         looking for the declaration.
22347         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22348         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22349         problem.
22350         * doc/posix-functions/inet_pton.texi: Likewise.
22351
22352 2010-12-26  Bruno Haible  <bruno@clisp.org>
22353
22354         arpa_inet: Use the common idioms with C++ support.
22355         * lib/arpa_inet.in.h: Include c++defs.h.
22356         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22357         support.
22358         * modules/arpa_inet (Depends-on): Add c++defs.
22359         (Makefile.am): Substitute the contents of c++defs.h.
22360         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22361         * modules/arpa_inet-c++-tests: New file.
22362         * tests/test-arpa_inet-c++.cc: New file.
22363
22364 2010-12-25  Bruno Haible  <bruno@clisp.org>
22365
22366         Fix more C++ link errors on Solaris 8.
22367         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22368         $(LIB_EACCESS).
22369         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22370         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22371         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22372         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22373         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22374
22375 2010-12-25  Bruno Haible  <bruno@clisp.org>
22376
22377         printf-posix: Fix link error when a non-GCC compiler is used.
22378         * lib/stdio.in.h (printf): When not using GCC, override printf
22379         correctly.
22380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22381
22382 2010-12-25  Bruno Haible  <bruno@clisp.org>
22383
22384         strerror_r-posix: Update doc.
22385         * doc/posix-functions/strerror_r.texi: Update doc about the return
22386         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22387
22388 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         utimens: simplify the logic of the previous change
22391         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22392         This should not affect whether the test succeeds or fails.
22393
22394         utimens: configure better on hosts with NFS clock skew
22395         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22396         uses the clock of the local host.  It might use the clock of the
22397         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22399
22400 2010-12-25  Bruno Haible  <bruno@clisp.org>
22401
22402         ptsname test: Avoid failure on Solaris.
22403         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22404         open a pseudo-terminal; don't use BSD-style ptys.
22405         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22406
22407 2010-12-25  Bruno Haible  <bruno@clisp.org>
22408
22409         ptsname: Avoid ERANGE failure on some systems.
22410         * lib/ptsname.c (buffer): Increase size.
22411
22412 2010-12-25  Bruno Haible  <bruno@clisp.org>
22413
22414         rename, renameat: Avoid test failures at NFS mounted locations.
22415         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22416         so that subsequent mkdir calls succeed.
22417
22418 2010-12-25  Bruno Haible  <bruno@clisp.org>
22419
22420         iswblank: Fix C++ link error on Solaris 8.
22421         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22422         _GL_FUNCDECL_SYS.
22423
22424 2010-12-25  Bruno Haible  <bruno@clisp.org>
22425
22426         unistd: Fix C++ link error on Solaris 8.
22427         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22428
22429 2010-12-25  Bruno Haible  <bruno@clisp.org>
22430
22431         readlink doc: Mention an old glibc bug.
22432         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22433
22434 2010-12-25  Bruno Haible  <bruno@clisp.org>
22435
22436         fcntl-h: Fix for use of C++ on glibc systems.
22437         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22438         also on glibc systems in C++ mode.
22439         Reported by Gary V. Vaughan <gary@gnu.org>.
22440
22441 2010-12-25  Bruno Haible  <bruno@clisp.org>
22442
22443         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22444         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22445
22446 2010-12-25  Bruno Haible  <bruno@clisp.org>
22447
22448         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22449         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22450         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22451         test whether truncl works according to ISO C 99 with IEC 60559.
22452         * m4/truncl-ieee.m4: New file.
22453         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22454         m4/signbit.m4.
22455         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22456
22457 2010-12-25  Bruno Haible  <bruno@clisp.org>
22458
22459         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22460         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22461         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22462         test whether ceill works according to ISO C 99 with IEC 60559.
22463         * m4/ceill-ieee.m4: New file.
22464         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22465         m4/signbit.m4.
22466         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22467
22468 2010-12-25  Bruno Haible  <bruno@clisp.org>
22469
22470         Ensure all prerequisites of <wchar.h> are included.
22471         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22472         before <wchar.h>.
22473         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22474         gl_MBRLEN_NUL_RETVAL): Likewise.
22475         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22476         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22477         AC_FUNC_MBRTOWC): Likewise.
22478         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22479         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22481         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22482         Likewise.
22483         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22484         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22485         (gl_WCHAR_H): Improve comments.
22486         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22487
22488 2010-12-25  Bruno Haible  <bruno@clisp.org>
22489
22490         strtok_r: Fix C syntax error in autoconf macro.
22491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22492         characters in test program.
22493
22494 2010-12-24  Bruno Haible  <bruno@clisp.org>
22495
22496         ceil, trunc, round: Fix gcc warnings.
22497         * lib/ceil.c (MIN): Undefine before redefining.
22498         * lib/trunc.c (MIN): Likewise.
22499         * lib/round.c (MIN): Likewise.
22500         Include <math.h> first.
22501
22502 2010-12-24  Bruno Haible  <bruno@clisp.org>
22503
22504         select tests: Avoid failures on OSF/1 5.1.
22505         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22506         failure of closing the last socket; it may fail with ECONNRESET.
22507
22508 2010-12-24  Eric Blake  <eblake@redhat.com>
22509
22510         stdint: avoid HP-UX 10.20 preprocessor bug
22511         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22512         than #if.
22513         * tests/test-floor2.c (main): Likewise.
22514         Reported by Peter O'Gorman.
22515
22516         pipe: make obsoletion transition easier
22517         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22518         * modules/pipe (Files): Include revived file.
22519         (Include): Drop reference, to mirror getdate's behavior.
22520
22521 2010-12-24  Bruno Haible  <bruno@clisp.org>
22522
22523         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22524         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22525         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22526         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22527
22528 2010-12-24  Bruno Haible  <bruno@clisp.org>
22529
22530         gethostname: Ensure declaration on NonStop Kernel.
22531         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22532         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22533
22534 2010-12-24  Bruno Haible  <bruno@clisp.org>
22535
22536         sys_select: Ensure all necessary types on NonStop Kernel.
22537         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22538         include <sys/time.h>.
22539         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22540         NonStop Kernel.
22541         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22542
22543 2010-12-24  Bruno Haible  <bruno@clisp.org>
22544
22545         sys_select: Remove unneeded include.
22546         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22547         have <sys/select.h>.
22548
22549 2010-12-24  Bruno Haible  <bruno@clisp.org>
22550
22551         gethostname: Provide a fallback for HOST_NAME_MAX.
22552         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22553         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22554         instead.
22555         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22556
22557 2010-12-24  Bruno Haible  <bruno@clisp.org>
22558
22559         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22560         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22561         (SA_RESTART): Likewise.
22562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22563
22564 2010-12-24  Bruno Haible  <bruno@clisp.org>
22565
22566         signal: Define NSIG.
22567         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22568         * tests/test-signal.c (nsig): New variable.
22569         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22570
22571 2010-12-24  Bruno Haible  <bruno@clisp.org>
22572
22573         rename, renameat: Avoid test failures on OSF/1 5.1.
22574         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22575         alternative error codes.
22576         * tests/test-renameat.c (main): Likewise.
22577
22578 2010-12-24  Bruno Haible  <bruno@clisp.org>
22579
22580         *printf: Detect large precisions bug on Solaris 10/SPARC.
22581         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22582         by Paul Eggert.
22583         * tests/test-snprintf-posix.h (test_function): Add this test code here
22584         too.
22585         * tests/test-sprintf-posix.h (test_function): Likewise.
22586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22587         * tests/test-vasprintf-posix.c (test_function): Likewise.
22588         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22589         around by gnulib.
22590         * doc/posix-functions/printf.texi: Likewise.
22591         * doc/posix-functions/snprintf.texi: Likewise.
22592         * doc/posix-functions/sprintf.texi: Likewise.
22593         * doc/posix-functions/vfprintf.texi: Likewise.
22594         * doc/posix-functions/vprintf.texi: Likewise.
22595         * doc/posix-functions/vsnprintf.texi: Likewise.
22596         * doc/posix-functions/vsprintf.texi: Likewise.
22597         * doc/posix-functions/dprintf.texi: Undo last commit.
22598         * doc/posix-functions/vdprintf.texi: Likewise.
22599
22600 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22601
22602         tests: port test-fdutimensat.c to Solaris 8
22603         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22604         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22605         On Solaris 8, it fails with errno == ENOSYS, because there is no
22606         futimens (so it can't use the fd), and there is no lutimens (so it
22607         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22608
22609         vsnprintf: make more consistent with snprintf; doc fixes
22610
22611         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22612         the byte count return problem was promoted from the snprintf-posix
22613         to the snprintf module.
22614         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22615         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22616         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22617         * tests/test-snprintf.c (main): Check the byte count returned.
22618         * tests/test-vsnprintf.c (main): Likewise.
22619
22620 2010-12-23  Eric Blake  <eblake@redhat.com>
22621
22622         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22623         * modules/sigpipe (License): Relax license.
22624
22625 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22626
22627         doc: document Solaris printf bug with large float precisions
22628         * doc/posix-functions/dprintf.texi (dprintf):
22629         * doc/posix-functions/fprintf.texi (fprintf):
22630         * doc/posix-functions/printf.texi (printf):
22631         * doc/posix-functions/snprintf.texi (snprintf):
22632         * doc/posix-functions/sprintf.texi (sprintf):
22633         * doc/posix-functions/vdprintf.texi (vdprintf):
22634         * doc/posix-functions/vfprintf.texi (vfprintf):
22635         * doc/posix-functions/vprintf.texi (vprintf):
22636         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22637         * doc/posix-functions/vsprintf.texi (vsprintf):
22638         Mention that these functions mishandle large floating point
22639         precisions on Solaris 10.  The same bug is also present in Solaris
22640         8, and I assume earlier.  This causes "cd gnulib-tests; make
22641         check" to fail on Solaris 8 (and I assume, later) when building
22642         the latest coreutils, in test-vasprintf-posix's call to
22643         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22644         the wide flavors (e.g., wprintf) so this patch just updates the
22645         documentation for the narrow ones.
22646
22647         test-posixtm.c: add two tests
22648         * tests/test-posixtm.c: Add two tests, to highlight the
22649         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22650         around this bug; this is merely to document it.
22651
22652 2010-12-22  Bruno Haible  <bruno@clisp.org>
22653
22654         getlogin_r: Work around portability problem on OSF/1.
22655         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22656         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22657         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22658         test for a truncated result.
22659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22660         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22661         * modules/getlogin_r (Depends-on): Add memchr.
22662         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22663
22664 2010-12-22  Bruno Haible  <bruno@clisp.org>
22665
22666         ptsname: Avoid test failure on OSF/1 5.1.
22667         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22668         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22669         (same_slave): New function.
22670         (main): Use it to compare ptsname's result with the expected file name.
22671
22672 2010-12-22  Bruno Haible  <bruno@clisp.org>
22673
22674         Port extended stdio modules to HP NonStop Kernel.
22675         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22676         macros.
22677         * lib/fbufmode.c: Update comments.
22678         * lib/fflush.c: Likewise.
22679         * lib/fpurge.c: Likewise.
22680         * lib/freadable.c: Likewise.
22681         * lib/freadahead.c: Likewise.
22682         * lib/freading.c: Likewise.
22683         * lib/freadptr.c: Likewise.
22684         * lib/freadseek.c: Likewise.
22685         * lib/fseeko.c: Likewise.
22686         * lib/fseterr.c: Likewise.
22687         * lib/fwritable.c: Likewise.
22688         * lib/fwriting.c: Likewise.
22689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22690
22691 2010-12-22  Bruno Haible  <bruno@clisp.org>
22692
22693         ttyname_r: Work around bug on OSF/1 5.1.
22694         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22695         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22696         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22697         present.
22698         * lib/ttyname_r.c (ttyname_r): Update comments.
22699
22700 2010-12-22  Bruno Haible  <bruno@clisp.org>
22701
22702         round: Implement result sign according to IEEE 754.
22703         * lib/round.c (MIN, MINUS_ZERO): New macros.
22704         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22705         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22706         * tests/test-round-ieee.c (main): Likewise.
22707         * tests/test-roundl-ieee.c (main): Likewise.
22708
22709         trunc: Implement result sign according to IEEE 754.
22710         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22711         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22712         * tests/test-trunc2.c: Include minus-zero.h.
22713         (MINUS_ZERO): New macro.
22714         (trunc_reference): Keep in sync with lib/trunc.c.
22715         * tests/test-truncf2.c: Include minus-zero.h.
22716         (MINUS_ZERO): New macro.
22717         (truncf_reference): Keep in sync with lib/trunc.c.
22718         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22719         * tests/test-trunc-ieee.c (main): Likewise.
22720         * tests/test-truncl-ieee.c (main): Likewise.
22721
22722         ceil: Implement result sign according to IEEE 754.
22723         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22724         (FUNC): Return -0.0 for -1 < x < 0.
22725         * tests/test-ceil2.c: Include minus-zero.h.
22726         (MINUS_ZERO): New macro.
22727         (ceil_reference): Keep in sync with lib/ceil.c.
22728         * tests/test-ceilf2.c: Include minus-zero.h.
22729         (MINUS_ZERO): New macro.
22730         (ceilf_reference): Keep in sync with lib/ceil.c.
22731         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22732         * tests/test-ceil-ieee.c (main): Likewise.
22733         * tests/test-ceill-ieee.c (main): Likewise.
22734
22735         floor: Implement result sign according to IEEE 754.
22736         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22737         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22738         * tests/test-floorf2.c (floorf_reference): Likewise.
22739         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22740         * tests/test-floor-ieee.c (main): Likewise.
22741         * tests/test-floorl-ieee.c (main): Likewise.
22742
22743 2010-12-22  Bruno Haible  <bruno@clisp.org>
22744
22745         getaddrinfo: Update doc.
22746         * doc/posix-functions/gai_strerror.texi: Return type is also different
22747         on AIX and HP-UX.
22748
22749 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22750
22751         getaddrinfo, inet_ntop: Update doc for Solaris.
22752         * doc/posix-functions/gai_strerror.texi: Return type is also an
22753         issue on Solaris 9 and earlier.
22754         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22755         on Solaris 10 and earlier.
22756
22757 2010-12-21  Bruno Haible  <bruno@clisp.org>
22758
22759         New module 'roundl-ieee'.
22760         * modules/roundl-ieee: New file.
22761         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22762         test whether roundl works according to ISO C 99 with IEC 60559.
22763         * m4/roundl-ieee.m4: New file.
22764         * modules/roundl-ieee-tests: New file.
22765         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22766         * tests/test-roundl.c (main): Remove signbit tests.
22767         * modules/roundl-tests (Depends-on): Remove signbit.
22768         * doc/posix-functions/roundl.texi: Mention the new module.
22769
22770 2010-12-21  Bruno Haible  <bruno@clisp.org>
22771
22772         New module 'truncl-ieee'.
22773         * modules/truncl-ieee: New file.
22774         * modules/truncl-ieee-tests: New file.
22775         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22776         * tests/test-truncl.c (main): Remove signbit tests.
22777         * modules/truncl-tests (Depends-on): Remove signbit.
22778         * doc/posix-functions/truncl.texi: Mention the new module.
22779
22780 2010-12-21  Bruno Haible  <bruno@clisp.org>
22781
22782         New module 'ceill-ieee'.
22783         * modules/ceill-ieee: New file.
22784         * modules/ceill-ieee-tests: New file.
22785         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22786         * tests/test-ceill.c (main): Remove signbit tests.
22787         * modules/ceill-tests (Depends-on): Remove signbit.
22788         * doc/posix-functions/ceill.texi: Mention the new module.
22789
22790 2010-12-21  Bruno Haible  <bruno@clisp.org>
22791
22792         New module 'floorl-ieee'.
22793         * modules/floorl-ieee: New file.
22794         * modules/floorl-ieee-tests: New file.
22795         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22796         * tests/test-floorl.c (main): Remove signbit tests.
22797         * modules/floorl-tests (Depends-on): Remove signbit.
22798         * doc/posix-functions/floorl.texi: Mention the new module.
22799
22800 2010-12-21  Bruno Haible  <bruno@clisp.org>
22801
22802         New module 'round-ieee'.
22803         * modules/round-ieee: New file.
22804         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22805         whether round works according to ISO C 99 with IEC 60559.
22806         * m4/round-ieee.m4: New file.
22807         * modules/round-ieee-tests: New file.
22808         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22809         * tests/test-round1.c (main): Remove signbit tests.
22810         * modules/round-tests (Depends-on): Remove 'signbit'.
22811         * doc/posix-functions/round.texi: Mention the new module.
22812
22813 2010-12-21  Bruno Haible  <bruno@clisp.org>
22814
22815         New module 'trunc-ieee'.
22816         * modules/trunc-ieee: New file.
22817         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22818         whether trunc works according to ISO C 99 with IEC 60559.
22819         * m4/trunc-ieee.m4: New file.
22820         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22822         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22823         * modules/trunc-ieee-tests: New file.
22824         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22825         * tests/test-trunc1.c (main): Remove signbit tests.
22826         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22827         * doc/posix-functions/trunc.texi: Mention the new module.
22828
22829 2010-12-21  Bruno Haible  <bruno@clisp.org>
22830
22831         New module 'ceil-ieee'.
22832         * modules/ceil-ieee: New file.
22833         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22834         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22835         ISO C 99 with IEC 60559.
22836         * m4/ceil-ieee.m4: New file.
22837         * modules/ceil (Files): Add lib/ceil.c.
22838         (Depends-on): Add 'float'.
22839         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22840         * lib/math.in.h (ceil): New declaration.
22841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22842         REPLACE_CEIL.
22843         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22844         * modules/ceil-ieee-tests: New file.
22845         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22846         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22847         * doc/posix-functions/ceil.texi: Mention the new module.
22848
22849 2010-12-21  Bruno Haible  <bruno@clisp.org>
22850
22851         New module 'floor-ieee'.
22852         * modules/floor-ieee: New file.
22853         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22854         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22855         ISO C 99 with IEC 60559.
22856         * m4/floor-ieee.m4: New file.
22857         * modules/floor (Files): Add lib/floor.c.
22858         (Depends-on): Add 'float'.
22859         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22860         * lib/math.in.h (floor): New declaration.
22861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22862         REPLACE_FLOOR.
22863         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22864         * modules/floor-ieee-tests: New file.
22865         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22866         * tests/test-math-c++.cc: Check the signature of 'floor'.
22867         * doc/posix-functions/floor.texi: Mention the new module.
22868
22869 2010-12-21  Bruno Haible  <bruno@clisp.org>
22870
22871         New module 'roundf-ieee'.
22872         * modules/roundf-ieee: New file.
22873         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22874         test whether roundf works according to ISO C 99 with IEC 60559.
22875         * m4/roundf-ieee.m4: New file.
22876         * modules/roundf-ieee-tests: New file.
22877         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22878         * tests/test-roundf1.c (main): Remove signbit tests.
22879         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22880         * doc/posix-functions/roundf.texi: Mention the new module.
22881
22882 2010-12-21  Bruno Haible  <bruno@clisp.org>
22883
22884         New module 'truncf-ieee'.
22885         * modules/truncf-ieee: New file.
22886         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22887         test whether truncf works according to ISO C 99 with IEC 60559.
22888         * m4/truncf-ieee.m4: New file.
22889         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22891         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22892         * modules/truncf-ieee-tests: New file.
22893         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22894         * tests/test-truncf1.c (main): Remove signbit tests.
22895         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22896         * doc/posix-functions/truncf.texi: Mention the new module.
22897
22898 2010-12-21  Bruno Haible  <bruno@clisp.org>
22899
22900         New module 'ceilf-ieee'.
22901         * modules/ceilf-ieee: New file.
22902         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22903         test whether ceilf works according to ISO C 99 with IEC 60559.
22904         * m4/ceilf-ieee.m4: New file.
22905         * modules/ceilf-ieee-tests: New file.
22906         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22907         * tests/test-ceilf1.c (main): Remove signbit tests.
22908         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22909         * doc/posix-functions/ceilf.texi: Mention the new module.
22910
22911 2010-12-21  Bruno Haible  <bruno@clisp.org>
22912
22913         New module 'floorf-ieee'.
22914         * modules/floorf-ieee: New file.
22915         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22916         test whether floorf works according to ISO C 99 with IEC 60559.
22917         * m4/floorf-ieee.m4: New file.
22918         * modules/floorf-ieee-tests: New file.
22919         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22920         * tests/test-floorf1.c (main): Remove signbit tests.
22921         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22922         * doc/posix-functions/floorf.texi: Mention the new module.
22923
22924 2010-12-21  Bruno Haible  <bruno@clisp.org>
22925
22926         Support for minus zero in autoconf macros.
22927         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22928         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22929         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22930         * tests/minus-zero.h: Update comments.
22931
22932 2010-12-21  Bruno Haible  <bruno@clisp.org>
22933
22934         Tests for module 'ceil'.
22935         * modules/ceil-tests: New file.
22936         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22937         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22938
22939 2010-12-21  Bruno Haible  <bruno@clisp.org>
22940
22941         Tests for module 'floor'.
22942         * modules/floor-tests: New file.
22943         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22944         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22945
22946 2010-12-21  Bruno Haible  <bruno@clisp.org>
22947
22948         math: Fix indentation.
22949         * lib/math.in.h (floorf): Fix indentation.
22950
22951 2010-12-21  Bruno Haible  <bruno@clisp.org>
22952
22953         Fix cross-compilation guesses on Solaris.
22954         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22955         not match "solaris2.10".
22956         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22957         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22958         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22959
22960 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22961
22962         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22963         This fixes a problem observed with the latest coreutils snapshot
22964         that caused a test to fail on Solaris 8.  src/csplit.c's call
22965         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22966         earlier, instead of returning the number of bytes that would have
22967         been generated; this causes csplit to incorrectly report memory
22968         exhaustion.
22969         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22970         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22971         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22972         comments to match.
22973         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22974         Fix typo in matching older versions of Solaris: "solaris2.10"
22975         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22976         only for guessing while cross-compiling.
22977         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22978
22979 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22980
22981         ftoastr: fix comment again
22982         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22983         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22984         Also, simplify example a bit by using flags = 0.
22985
22986 2010-12-20  Bruno Haible  <bruno@clisp.org>
22987
22988         round*, trunc*: Update documentation regarding glibc.
22989         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22990         * doc/posix-functions/round.texi: Likewise.
22991         * doc/posix-functions/roundl.texi: Likewise.
22992         * doc/posix-functions/truncf.texi: Likewise.
22993         * doc/posix-functions/trunc.texi: Likewise.
22994         * doc/posix-functions/truncl.texi: Likewise.
22995
22996 2010-12-20  Bruno Haible  <bruno@clisp.org>
22997
22998         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22999         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23000         * doc/posix-functions/round.texi: Likewise.
23001         * doc/posix-functions/roundl.texi: Likewise.
23002
23003 2010-12-20  Bruno Haible  <bruno@clisp.org>
23004
23005         ttyname_r: Add missing declaration on HP-UX 11.
23006         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23007         HAVE_TTYNAME_R.
23008         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23009         declared. Set HAVE_TTYNAME_R always.
23010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23011         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23012         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23013         HAVE_TTYNAME_R.
23014         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23015
23016 2010-12-20  Bruno Haible  <bruno@clisp.org>
23017
23018         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23019         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23020         * doc/posix-functions/getlogin_r.texi: Likewise.
23021         * tests/test-getlogin.c: Include <errno.h>.
23022         (main): Avoid test failure on HP-UX 11.11.
23023         * tests/test-getlogin_r.c (main): Likewise.
23024
23025 2010-12-20  Bruno Haible  <bruno@clisp.org>
23026
23027         getlogin_r: Add missing declaration on HP-UX 11.
23028         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23029         declared also when it exists as a function.
23030         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23031
23032 2010-12-20  Bruno Haible  <bruno@clisp.org>
23033
23034         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23035         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23036         through wcrtomb.
23037
23038 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23039
23040         ftoastr: fix comment
23041         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23043
23044 2010-12-19  Bruno Haible  <bruno@clisp.org>
23045
23046         isnan: Ensure it is a macro.
23047         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23048         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23049         Solaris.
23050
23051 2010-12-19  Bruno Haible  <bruno@clisp.org>
23052
23053         ldexpl test: Fix link error on OSF/1 5.1.
23054         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23055
23056 2010-12-19  Bruno Haible  <bruno@clisp.org>
23057
23058         wctype: Make it work in C++ mode on OSF/1 5.1.
23059         * lib/wctype.in.h (iswblank): Declare but not define here.
23060         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23061         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23062         * modules/wctype (Files): Add lib/iswblank.c.
23063
23064 2010-12-19  Bruno Haible  <bruno@clisp.org>
23065
23066         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23067         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23068         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23069
23070 2010-12-19  Bruno Haible  <bruno@clisp.org>
23071
23072         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23074         _POSIX_PII_SOCKET.
23075         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23076         * doc/posix-functions/recvfrom.texi: Likewise.
23077         * doc/posix-functions/send.texi: Likewise.
23078         * doc/posix-functions/sendto.texi: Likewise.
23079
23080 2010-12-19  Bruno Haible  <bruno@clisp.org>
23081
23082         tcgetsid: Add missing declaration on OSF/1 5.1.
23083         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23084         HAVE_TCGETSID.
23085         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23086         Don't set HAVE_TCGETSID.
23087         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23088         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23089         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23090         HAVE_TCGETSID.
23091         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23092
23093 2010-12-19  Bruno Haible  <bruno@clisp.org>
23094
23095         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23096         * lib/stdio.in.h: During the include_next statement, let recursive
23097         includes of this file include only the system header file.
23098
23099 2010-12-19  Bruno Haible  <bruno@clisp.org>
23100
23101         iconv_open: Fix regression from 2010-12-04.
23102         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23103         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23104
23105 2010-12-19  Bruno Haible  <bruno@clisp.org>
23106
23107         stdbool test: Avoid a gcc warning.
23108         * tests/test-stdbool.c (main): Fail if e1 is false.
23109         Reported by Jim Meyering.
23110
23111 2010-12-19  Jim Meyering  <meyering@redhat.com>
23112
23113         setenv: restore to working order
23114         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23115         mistakenly removed.
23116         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23117         HAVE_SETENV.
23118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23119         HAVE_SETENV.
23120
23121 2010-12-19  Bruno Haible  <bruno@clisp.org>
23122
23123         Document some different function declarations on OSF/1 5.1.
23124         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23125         * doc/posix-functions/inet_ntop.texi: Likewise.
23126         * doc/posix-functions/gethostname.texi: Likewise.
23127         * lib/unistd.in.h (gethostname): Update comment.
23128
23129 2010-12-19  Bruno Haible  <bruno@clisp.org>
23130
23131         doc: Mention vasprintf-posix module.
23132         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23133         the 'vasprintf-posix' module.
23134         * doc/glibc-functions/vasprintf.texi: Likewise.
23135
23136 2010-12-19  Bruno Haible  <bruno@clisp.org>
23137
23138         unsetenv: Add missing declaration on OSF/1 5.1.
23139         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23140         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23141         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23143         not HAVE_UNSETENV.
23144         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23145         HAVE_UNSETENV.
23146         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23147
23148 2010-12-19  Bruno Haible  <bruno@clisp.org>
23149
23150         setenv: Add missing declaration on OSF/1 5.1.
23151         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23152         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23153         declared. Don't set HAVE_SETENV.
23154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23155         not HAVE_SETENV.
23156         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23157         HAVE_SETENV.
23158         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23159
23160 2010-12-19  Bruno Haible  <bruno@clisp.org>
23161
23162         nl_langinfo tests: Avoid gcc warning.
23163         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23164
23165 2010-12-19  Bruno Haible  <bruno@clisp.org>
23166
23167         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23168         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23169         _GL_CXXALIAS_SYS.
23170
23171 2010-12-19  Bruno Haible  <bruno@clisp.org>
23172
23173         stdbool: Relax test.
23174         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23175         address to 'bool' work in static initializer, for compilers other than
23176         GCC.
23177
23178 2010-12-19  Bruno Haible  <bruno@clisp.org>
23179
23180         ftello: Add missing declaration on OSF/1 5.1.
23181         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23182         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23184         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23185         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23186
23187 2010-12-19  Bruno Haible  <bruno@clisp.org>
23188
23189         fseeko: Add missing declaration on OSF/1 5.1.
23190         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23193         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23194         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23195
23196 2010-12-19  Bruno Haible  <bruno@clisp.org>
23197
23198         fchdir: Add missing declaration on OSF/1 5.1.
23199         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23202         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23203         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23204
23205 2010-12-19  Bruno Haible  <bruno@clisp.org>
23206
23207         relocatable-prog-wrapper: Separate from relocatable-prog.
23208         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23209         uninstall-relocwrapper rule here.
23210         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23211         Reported by Ian Beckwith <ianb@erislabs.net>.
23212
23213 2010-12-19  Bruno Haible  <bruno@clisp.org>
23214
23215         unistr/u8-mbsnlen: Add missing dependency.
23216         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23217         Reported by Ian Beckwith <ianb@erislabs.net>.
23218
23219 2010-12-19  Bruno Haible  <bruno@clisp.org>
23220
23221         iconv: Make it possible again to use this module without 'iconv-h'.
23222         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23223         if it is not defined.
23224         Reported by Ian Beckwith <ianb@erislabs.net>.
23225
23226 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23227
23228         acl: port to Solaris 8 when copying from tmpfs to ufs
23229         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23230         error number.  Problem observed on Solaris 8 with latest
23231         coreutils, with "mv A B", where A is on a tmpfs file system and B
23232         is on a ufs file system.  This caused coreutils' mv/part-symlink
23233         test to fail.
23234
23235         tests: set fail=0 at start
23236         * tests/init.sh (setup_): Move fail=0 initialization here ...
23237         (mktempd_): ... from here, so that tests can rely on fail being
23238         set to 0 initially.  This fixes a problem in coreutils; see:
23239         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23240
23241 2010-12-18  Bruno Haible  <bruno@clisp.org>
23242
23243         memmem-simple: Stylistic changes.
23244         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23245         Fix preprocessor directive indentation.
23246
23247 2010-12-15  Pádraig Brady <P@draigBrady.com>
23248
23249         memmem, memmem-simple: reorganize and expand empty needle check
23250         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23251         functional checks to memmem-simple so that one has a fully functional
23252         memmem by using just this module.
23253         Restrict the performance only check to the memmem module.
23254         Also expand the empty needle check to ensure the correct
23255         pointer is returned, not just a non NULL pointer.
23256         * doc/glibc-functions/memmem.texi: Rearrange the portability
23257         documentation to correlate with the rearranged checks.
23258         Clarify exactly how the memmem and memmem-simple modules
23259         relate to each other.
23260
23261 2010-12-15  Pádraig Brady <P@draigBrady.com>
23262             Bruno Haible  <bruno@clisp.org>
23263
23264         Improve cross-compilation guesses for uClibc.
23265         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23266         that uClibc does not have the glibc bug.
23267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23268         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23269
23270 2010-12-14  Eric Blake  <eblake@redhat.com>
23271
23272         configmake: provide fallbacks for oldest supported autotools
23273         * m4/configmake.m4: New file.
23274         * modules/configmake (Files): Ship it.
23275         (configure.ac): Use it to guarantee fallbacks.
23276
23277 2010-12-13  Pádraig Brady <P@draigBrady.com>
23278
23279         read-file: Improve handling of large files
23280         * lib/read-file.c (fread_file): Minimize realloc()s
23281         for regular files, and better manage sizes around SIZE_MAX.
23282
23283 2010-12-13  Eric Blake  <eblake@redhat.com>
23284
23285         cloexec, fcntl: relax license
23286         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23287         consent from all contributors.
23288         * modules/fcntl (License): Likewise.
23289
23290 2010-12-10  Bruno Haible  <bruno@clisp.org>
23291
23292         Tests for module 'pipe-posix'.
23293         * modules/pipe-posix-tests: New file.
23294         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23295
23296 2010-12-10  Bruno Haible  <bruno@clisp.org>
23297
23298         pipe-posix: Make it work in C++ mode.
23299         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23300         (pipe): Use common idiom, not a macro definition.
23301         * lib/pipe.c: New file.
23302         * m4/pipe.m4: New file.
23303         * modules/pipe-posix (Description): Enhance.
23304         (Files): Add lib/pipe.c, m4/pipe.m4.
23305         (configure.ac): Invoke gl_FUNC_PIPE.
23306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23307         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23308         * tests/test-unistd-c++.cc: Check the signature of pipe.
23309
23310 2010-12-10  Bruno Haible  <bruno@clisp.org>
23311
23312         Rename module 'pipe' to 'spawn-pipe'.
23313         * modules/spawn-pipe: New file, renamed from modules/pipe.
23314         (Files, configure.ac, Makefile.am): Update.
23315         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23316         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23317         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23318         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23319         "spawn-pipe.h" instead of "pipe.h".
23320         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23321         to gl_SPAWN_PIPE.
23322         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23323         (Files, Makefile.am): Update.
23324         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23325         Update.
23326         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23327         Include "spawn-pipe.h" instead of "pipe.h".
23328         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23329         * lib/javacomp.c: Likewise.
23330         * lib/javaversion.c: Likewise.
23331         * lib/pipe-filter-gi.c: Likewise.
23332         * lib/pipe-filter-ii.c: Likewise.
23333         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23334         * modules/javacomp (Depends-on): Likewise.
23335         * modules/javaversion (Depends-on): Likewise.
23336         * modules/pipe-filter-gi (Depends-on): Likewise.
23337         * modules/pipe-filter-ii (Depends-on): Likewise.
23338         * MODULES.html.sh (Executing programs): Update.
23339         * NEWS: Mention the change.
23340
23341 2010-12-10  Eric Blake  <eblake@redhat.com>
23342
23343         pipe-posix: new module
23344         * modules/pipe-posix: New file.
23345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23346         (gl_UNISTD_H): Check for declaration.
23347         * modules/unistd (Makefile.am): Substitute it.
23348         * lib/unistd.in.h (pipe): Provide it for mingw.
23349         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23350         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23351
23352 2010-12-07  Bruno Haible  <bruno@clisp.org>
23353
23354         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23355         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23356         u8_strcmp_gnu.
23357         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23358
23359 2010-12-06  Bruno Haible  <bruno@clisp.org>
23360
23361         Update internal documentation.
23362         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23363
23364 2010-12-04  Bruno Haible  <bruno@clisp.org>
23365
23366         Put more information about failed tests into the test return codes.
23367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23368         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23371         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23372         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23373         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23374         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23375         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23378         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23379         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23380         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23381         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23382         returns a bit mask.
23383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23384         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23385         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23386         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23387         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23391         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23392         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23393         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23394         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23395         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23396         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23397         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23398         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23399         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23400         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23402         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23403         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23404         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23406         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23407         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23408         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23409         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23410         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23411         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23412         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23413         gl_PRINTF_PRECISION): Likewise.
23414         * m4/regex.m4 (gl_REGEX): Likewise.
23415         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23418         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23422         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23423         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23424         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23425         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23427         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23428         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23429         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23430         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23431         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23432         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23434         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23435         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23436         enumerated value.
23437         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23438
23439 2010-12-04  Bruno Haible  <bruno@clisp.org>
23440
23441         Update for Solaris 11 2010-11.
23442         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23443         Express, released in November 2010.
23444
23445 2010-12-04  Bruno Haible  <bruno@clisp.org>
23446
23447         nproc: Relax license.
23448         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23449         and Paul Eggert.
23450         Requested by Ludovic Courtès <ludo@gnu.org>.
23451
23452 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23453
23454         utimecmp: fine-grained src to nearby coarse-grained dest
23455
23456         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23457         and the source is on a file system with higher-resolution time
23458         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23459         not work, and the time stamps are close together, the algorithm to
23460         determine the exact resolution from the read-back mtime was buggy:
23461         it had a "!=" where it should have had an "==".  This bug has been
23462         in the code ever since it was introduced to gnulib.
23463         Problem reported by Dan Jacobson in
23464         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23465
23466 2010-11-30  Bruno Haible  <bruno@clisp.org>
23467
23468         strerror_r-posix: Fix autoconf test.
23469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23470
23471 2010-11-28  Bruno Haible  <bruno@clisp.org>
23472             Paul Eggert  <eggert@cs.ucla.edu>
23473
23474         Tests for module 'getdomainname'.
23475         * modules/getdomainname-tests: New file.
23476         * tests/test-getdomainname.c: New file, based on
23477         tests/test-gethostname.c.
23478
23479 2010-11-28  Bruno Haible  <bruno@clisp.org>
23480             Paul Eggert  <eggert@cs.ucla.edu>
23481
23482         getdomainname: Use the system function when possible.
23483         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23484         (getdomainname): Replace if needed. Provide the declaration if it is
23485         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23486         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23487         (getdomainname): When the system has getdomainname, call the system
23488         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23489         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23490         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23491         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23492         the function if its second argument is of type 'int' or if it is found
23493         in libnsl.
23494         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23495         <sys/systeminfo.h> and sysinfo().
23496         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23498         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23499         HAVE_GETDOMAINNAME.
23500         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23501         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23502         * doc/glibc-functions/getdomainname.texi: Document the problems with
23503         the getdomainname declaration.
23504
23505 2010-11-28  Bruno Haible  <bruno@clisp.org>
23506
23507         sys_socket: Ensure ss_family field on AIX.
23508         * lib/sys_socket.in.h (ss_family): New macro definition.
23509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23510         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23511         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23512         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23513         * modules/sys_socket (Makefile.am): Substitute
23514         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23515         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23516
23517 2010-11-27  Bruno Haible  <bruno@clisp.org>
23518
23519         readline: Improve configure output.
23520         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23521         "checking for readline..." result understandable.
23522
23523 2010-11-27  Bruno Haible  <bruno@clisp.org>
23524
23525         *printf-posix: Detect a bug on Solaris 10/x86.
23526         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23527         for floating-point output.
23528         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23529         directive.
23530         * tests/test-snprintf-posix.h (test_function): Likewise.
23531         * tests/test-sprintf-posix.h (test_function): Likewise.
23532         * tests/test-vasprintf-posix.c (test_function): Likewise.
23533         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23534         * doc/posix-functions/printf.texi: Likewise.
23535         * doc/posix-functions/snprintf.texi: Likewise.
23536         * doc/posix-functions/sprintf.texi: Likewise.
23537         * doc/posix-functions/vfprintf.texi: Likewise.
23538         * doc/posix-functions/vprintf.texi: Likewise.
23539         * doc/posix-functions/vsnprintf.texi: Likewise.
23540         * doc/posix-functions/vsprintf.texi: Likewise.
23541         * doc/glibc-functions/obstack_printf.texi: Likewise.
23542         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23543
23544 2010-11-27  Bruno Haible  <bruno@clisp.org>
23545
23546         Fix link error when module libunistring-optional is in use.
23547         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23548         * modules/striconveha-tests (Makefile.am): Likewise.
23549
23550 2010-11-27  Bruno Haible  <bruno@clisp.org>
23551
23552         regex: Mention link dependencies.
23553         * modules/regex (Link): New section.
23554         * modules/rpmatch (Link): Likewise.
23555         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23556
23557 2010-11-27  Bruno Haible  <bruno@clisp.org>
23558
23559         ftoastr: Fix compilation error on Solaris.
23560         * lib/ftoastr.c: Include <config.h>.
23561
23562 2010-11-27  Bruno Haible  <bruno@clisp.org>
23563
23564         getloadavg: Update documentation.
23565         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23566
23567 2010-11-27  Bruno Haible  <bruno@clisp.org>
23568
23569         sys_socket: Fix test whether the functions are declared.
23570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23571         not <sys/select.h>.
23572
23573 2010-11-27  Bruno Haible  <bruno@clisp.org>
23574
23575         getpass: Make sure to get system declaration on some platforms.
23576         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23577         gl_USE_SYSTEM_EXTENSIONS.
23578         * modules/getpass (Depends-on): Add extensions.
23579
23580 2010-11-26  Bruno Haible  <bruno@clisp.org>
23581
23582         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23583         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23584         'iconv' module is present.
23585         (ICONV_CONST): New macro.
23586         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23587         ICONV_CONST.
23588         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23589         set ICONV_CONST.
23590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23591         here.
23592         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23593         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23594         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23595         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23596         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23597         present.
23598
23599 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23600
23601         ftoastr: comment fix
23602         * lib/ftoastr.c: "little" -> "little or no" in comment
23603
23604 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23605
23606         stdint: port to GCC 4.3 + OSX + Octave
23607         On this platform, stdint.h is buggy and defines int64_t to long
23608         long int.  The replacement defined it to long int, causing
23609         problems with C++ style name mangling.  Instead, trust the system
23610         definition if INT64_MAX is defined, and likewise for the unsigned
23611         variant.   Problem reported by Jarno Rajahalme in
23612         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23613         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23614         and don't mess with int64_t and INT64_MAX in this case.
23615         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23616
23617 2010-11-24  Bruno Haible  <bruno@clisp.org>
23618
23619         doc: Corrections regarding MacOS X 10.4 and 10.5.
23620         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23621         MacOS X.
23622         Reported by Simon Josefsson.
23623
23624 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23625
23626         Uninstall ".bin" files installed by relocwrapper.
23627         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23628         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23629         unless it is already there.
23630
23631 2010-11-21  Bruno Haible  <bruno@clisp.org>
23632
23633         Update for NetBSD 5.0.
23634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23635         NetBSD; the test fails on NetBSD 5.0.
23636         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23637         about NetBSD.
23638
23639 2010-11-21  Bruno Haible  <bruno@clisp.org>
23640
23641         Update for HP-UX 11.23 and HP-UX 11.31.
23642         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23643         HP-UX.
23644
23645 2010-11-21  Bruno Haible  <bruno@clisp.org>
23646
23647         Update for MacOS X 10.5.
23648         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23649         MacOS X; the test fails on MacOS X 10.5.8.
23650         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23651         about MacOS X.
23652
23653 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23654
23655         bootstrap: add bootstrap_sync option.
23656         See discussion at
23657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23659         * build-aux/bootstrap: Accept --bootstrap-sync to update
23660         bootstrap if it is not identical to the local gnulib's
23661         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23662         enable this by default.  Accept --no-bootstrap-sync to disable
23663         it.
23664
23665 2010-11-20  Bruno Haible  <bruno@clisp.org>
23666
23667         Ensure that <features.h> is included before __GLIBC__ is tested.
23668         * lib/printf-parse.h: Include <features.h>.
23669         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23670         Reported by Mike Frysinger <vapier@gentoo.org>.
23671
23672         Ensure that <features.h> is included before __GLIBC__ is tested.
23673         * lib/wchar.in.h: Include <features.h>.
23674         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23675         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23676         Reported by Mike Frysinger <vapier@gentoo.org>.
23677
23678         Ensure that <features.h> is included before __GLIBC__ is tested.
23679         * lib/arpa_inet.in.h: Include <features.h>.
23680         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23681         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23682         Reported by Mike Frysinger <vapier@gentoo.org>.
23683
23684         Ensure that <features.h> is included before __GLIBC__ is tested.
23685         * build-aux/link-warning.h: Include <features.h>.
23686         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23687         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23688         Reported by Mike Frysinger <vapier@gentoo.org>.
23689
23690         Ensure that <features.h> is included before __GLIBC__ is tested.
23691         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23692         Reported by Mike Frysinger <vapier@gentoo.org>.
23693
23694 2010-11-20  Bruno Haible  <bruno@clisp.org>
23695
23696         memmem: Fix autoconf test.
23697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23698
23699 2010-11-20  Bruno Haible  <bruno@clisp.org>
23700
23701         Port to uClibc.
23702         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23703         * lib/fcntl.in.h: Likewise.
23704         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23705         * lib/mbrtowc.c (mbrtowc): Likewise.
23706         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23707         * lib/strerror_r.c: Likewise.
23708         * lib/unistr/u8-strnlen.c: Likewise.
23709         * lib/vasnprintf.c (decimal_point_char): Likewise.
23710         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23711         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23713         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23714         * tests/test-sigaction.c (handler, main): Likewise.
23715         * lib/freading.h: Treat uClibc like a non-glibc platform.
23716         * lib/freading.c: Likewise.
23717         * lib/gettext.h: Likewise.
23718         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23719         Likewise.
23720         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23721         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23722         * lib/propername.c (proper_name_utf8): Likewise.
23723         * lib/spawn.in.h: Likewise.
23724         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23725         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23726         mem_cd_iconveh_internal): Likewise.
23727         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23728         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23729         strstr, strcasestr): Likewise.
23730         * lib/unicodeio.c (unicode_to_mb): Likewise.
23731         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23732         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23733         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23734         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23735         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23736         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23737         * lib/unistr/u8-stpncpy.c: Likewise.
23738         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23739         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23742         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23744         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23747         Likewise.
23748         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23749         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23753         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23754         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23755         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23756         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23757         * tests/test-striconveha.c (main): Likewise.
23758         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23759         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23760         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23761         * doc/posix-functions/getline.texi: Likewise.
23762         Reported by Mike Frysinger <vapier@gentoo.org>.
23763
23764 2010-11-20  Bruno Haible  <bruno@clisp.org>
23765
23766         nproc: Fix condition.
23767         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23768         HAVE_PTHREAD_AFFINITY_NP.
23769
23770 2010-11-20  Bruno Haible  <bruno@clisp.org>
23771
23772         Fix a comment.
23773         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23774
23775 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23776
23777         ftoastr: don't assume snprintf
23778         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23779         Implement a subset of snprintf here, by using sprintf safely.
23780         * modules/ftoastr (Depends-on): Remove snprintf.
23781
23782 2010-11-19  Jim Meyering  <meyering@redhat.com>
23783
23784         test-rename.h: fix compilation failure
23785         * tests/test-rename.h (test_rename): Add omitted "}".
23786
23787 2010-11-17  Jim Meyering  <meyering@redhat.com>
23788
23789         maint.mk: add a URL discussing the no-@acronym policy
23790         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23791
23792 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23793
23794         ftoastr: depend on snprintf, improve comments
23795         * lib/ftoastr.c: Also mention Loitsch's draft.
23796         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23797         needed in the current implementation, but it might simplify
23798         speeding up the code later.
23799         * modules/ftoastr: Depend on snprintf; this improves portability.
23800         Suggested by Bruno Haible in the same email.
23801
23802         ftoastr: port to hosts lacking strtof and strtold
23803         Problem reported by Bruno Haible in
23804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23805         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23806         environment and strtold (and presumably strtof) are not available.
23807         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23808         (configure.ac): Require gl_C99_STRTOLD.
23809
23810 2010-11-18  Bruno Haible  <bruno@clisp.org>
23811
23812         c-strtold: Avoid link error on AIX 7.
23813         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23814         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23815         (gl_C_STRTOLD): Test whether strtold_l exists.
23816         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23817
23818 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23819
23820         intprops: new macro INT_BITS_STRLEN_BOUND
23821         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23822         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23823         not exposed.  Also, it uses a slightly tighter bound than before;
23824         though this makes no practical difference, we might as well be as
23825         tight as we easily can.
23826
23827         ftoastr: new module, for lossless conversion of floats to short strings
23828         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23829         * modules/ftoastr: New files.
23830
23831 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23832
23833         bootstrap: port to Solaris sed
23834         * build-aux/bootstrap (get_version): Port to Solaris sed.
23835         See Ralf Wildenhues's note in
23836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23837
23838 2010-11-14  Jim Meyering  <meyering@redhat.com>
23839
23840         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23841         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23842         and move definition closer to sole use.
23843
23844 2010-11-13  Jim Meyering  <meyering@redhat.com>
23845
23846         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23847         Now we require at least autoconf-2.59, which means the work-around
23848         is no longer needed.
23849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23851         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23852         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23853         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23854
23855 2010-11-13  Bruno Haible  <bruno@clisp.org>
23856
23857         rename, renameat: Avoid test failures at NFS mounted locations.
23858         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23859         functions.
23860         (test_rename): Use assert_nonexistent.
23861         * tests/test-rename.c: Include <dirent.h>.
23862         * tests/test-renameat.c: Likewise.
23863         Reported by Gary V. Vaughan <gary@gnu.org>.
23864
23865         rename, renameat: Document Linux bug with NFS
23866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23867         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23868         * doc/posix-functions/renameat.texi: Likewise.
23869         Suggested by Eric Blake.
23870
23871 2010-11-13  Bruno Haible  <bruno@clisp.org>
23872
23873         rename test: Add comments.
23874         * tests/test-rename.h (test_rename): Add structure and comments.
23875
23876 2010-11-13  Eric Blake  <eblake@redhat.com>
23877
23878         maintainer-makefile: cover a few more files
23879         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23880         scripts generated within C files, for libvirt.
23881
23882 2010-11-13  Bruno Haible  <bruno@clisp.org>
23883
23884         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23885         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23886         character, return the number of bytes that belong together, not always
23887         1.
23888         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23889         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23890         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23891         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23892         number of bytes of an invalid character.
23893         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23894         (main): Invoke it.
23895         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23896         results.
23897         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23898         malformed byte sequences.
23899         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23900         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23901         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23902         Reported by Ben Pfaff and Paolo Bonzini.
23903
23904 2010-11-13  Bruno Haible  <bruno@clisp.org>
23905
23906         openat: Work around glibc bug with fchownat() and empty file names.
23907         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23908         (gl_FUNC_FCHOWNAT): Invoke it.
23909         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23910         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23911         Reported by Gary V. Vaughan <gary@gnu.org>.
23912
23913 2010-11-13  Bruno Haible  <bruno@clisp.org>
23914
23915         openat: Ensure autoconf macro ordering.
23916         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23917         gl_USE_SYSTEM_EXTENSIONS.
23918         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23919
23920 2010-11-13  Bruno Haible  <bruno@clisp.org>
23921
23922         Update comments.
23923         * lib/unistr/u8-check.c: Update file name in comments.
23924         * lib/unistr/u8-mblen.c: Likewise.
23925         * lib/unistr/u8-prev.c: Likewise.
23926         * lib/unistr/u8-strmblen.c: Likewise.
23927         * lib/unistr/u8-strmbtouc.c: Likewise.
23928
23929 2010-11-13  Jim Meyering  <meyering@redhat.com>
23930
23931         tests: avoid test failure on Solaris 10 due to lack of PATH export
23932         * tests/test-update-copyright.sh: Don't forget to export PATH.
23933
23934         init.sh: ensure that IFS is defined, just in case...
23935         * tests/init.sh (setup_): Ensure that IFS is defined,
23936         so that saving and restoring it works as expected.  This
23937         appears to be useful at least for an old version of dash
23938         from a long time ago (RH 6).  See here for details:
23939         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23940
23941         maint.mk: tighten "test a == b" check
23942         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23943         test to files that contain something like #!/bin/sh.
23944         Without this, coreutils would get two false positives in
23945         the comments of C source files.
23946
23947 2010-11-12  Eric Blake  <eblake@redhat.com>
23948
23949         bootstrap: fix typo in previous attempt
23950         * build-aux/bootstrap (buildreq): Correct the grouping.
23951         Reported by Paul Eggert.
23952
23953         maintainer-makefile: prohibit test x == x
23954         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23955         Based on a report by Matthias Bolte.
23956
23957         bootstrap: allow FreeBSD gzip
23958         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23959         which has no '.' and goes to stderr.
23960         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23961         Reported by Matthias Bolte.
23962
23963         maintainer-makefile: check for i18n setup
23964         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23965         will likely work.
23966
23967 2010-11-12  Bruno Haible  <bruno@clisp.org>
23968
23969         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23970         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23971         * lib/nanosleep.c (nanosleep): Likewise.
23972
23973 2010-11-11  Bruno Haible  <bruno@clisp.org>
23974
23975         fcntl-h: Fix for use of C++ on glibc systems.
23976         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23977         also on glibc systems in C++ mode.
23978         Reported by Gary V. Vaughan <gary@gnu.org>.
23979
23980 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23981
23982         mknod: avoid false failure with dash
23983         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23984
23985 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23986
23987         unlink: Fix "is it should" typo in diagnostic.
23988         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23990
23991 2010-11-11  Bruno Haible  <bruno@clisp.org>
23992
23993         Tests for module 'strerror_r-posix'.
23994         * modules/strerror_r-posix-tests: New file.
23995         * tests/test-strerror_r.c: New file.
23996         * tests/test-string-c++.cc: Check the signature of strerror_r.
23997
23998         New module 'strerror_r-posix'.
23999         * lib/string.in.h (strerror_r): New declaration.
24000         * lib/strerror_r.c: New file.
24001         * m4/strerror_r.m4: New file.
24002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24003         of strerror_r.
24004         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24005         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24006         * modules/strerror_r-posix: New file.
24007         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24008         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24009         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24010         portability problems.
24011
24012 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24013
24014         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24015         line is also considered for output. Quoted function name in shell
24016         command, so temporary files for functions like MyClass::operator()
24017         are removed correctly without errors.
24018
24019 2010-11-09  Bruno Haible  <bruno@clisp.org>
24020
24021         * doc/posix-functions/strerror.texi: List more failing platforms.
24022
24023         * doc/posix-functions/strerror.texi: Add a comment.
24024
24025 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24026
24027         fdopendir: fix bug on MacOS X when low on file descriptors
24028
24029         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24030         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24031         All callers changed.
24032         (fdopendir): Invoke save_cwd at the top level, not after using
24033         multiple dup() calls to use up file descriptors.  Then retry
24034         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24035         less than the maximum number of open file descriptors, because
24036         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24037         on Mac OS X 10.6.4 for tar 1.24
24038         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24039         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24040         and for tar 1.25
24041         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24042
24043 2010-11-07  Bruno Haible  <bruno@clisp.org>
24044
24045         vasnprintf: Support I flag on glibc systems.
24046         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24047         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24048         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24049         snprintf function.
24050         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24051         glibc systems.
24052         * tests/test-vasnprintf-posix3.c: New file.
24053         * modules/vasnprintf-posix-tests (Files): Add it.
24054         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24055
24056 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24057
24058         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24059         * MODULES.html.sh: For compiler warnings, use name
24060         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24061
24062 2010-11-05  Eric Blake  <eblake@redhat.com>
24063
24064         ceil, floor: avoid spurious failure with icc
24065         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24066         [denormals-as-zero] when optimizing without -mieee-fp option.
24067         * tests/test-floorf2.c (floorf_reference): Likewise.
24068         * tests/test-ceilf1.c (dummy): New function.
24069         (main): Use it to outsmart icc's optimization.
24070         * tests/test-floorf1.c (dummy, main): Likewise.
24071
24072         tests: require working signbit
24073         * modules/ceilf-tests (Depends-on): Add signbit.
24074         * modules/ceill-tests (Depends-on): Likewise.
24075         * modules/floorf-tests (Depends-on): Likewise.
24076         * modules/floorl-tests (Depends-on): Likewise.
24077         * modules/round-tests (Depends-on): Likewise.
24078         * modules/roundf-tests (Depends-on): Likewise.
24079         * modules/roundl-tests (Depends-on): Likewise.
24080         * modules/trunc-tests (Depends-on): Likewise.
24081         * modules/truncf-tests (Depends-on): Likewise.
24082         * modules/truncl-tests (Depends-on): Likewise.
24083
24084         strtod: work around icc bug
24085         * lib/strtod.c (minus_zero): Define to working value.
24086         (strtod): Use it to avoid icc bug.
24087
24088         copysign: enhance tests
24089         * modules/copysign-tests (Files): Add minus-zero.h.
24090         * tests/test-copysign.c (main): Also test zeros.
24091
24092 2010-11-04  Eric Blake  <eblake@redhat.com>
24093
24094         ceil, floor, round, trunc: enhance tests of -0
24095         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24096         * tests/test-ceill.c (main): Likewise.
24097         * tests/test-floorf1.c (main): Likewise.
24098         * tests/test-floorl.c (main): Likewise.
24099         * tests/test-round1.c (main): Likewise.
24100         * tests/test-roundf1.c (main): Likewise.
24101         * tests/test-roundl.c (main): Likewise.
24102         * tests/test-trunc1.c (main): Likewise.
24103         * tests/test-truncf1.c (main): Likewise.
24104         * tests/test-truncl.c (main): Likewise.
24105
24106 2010-11-04  Eric Blake  <eblake@redhat.com>
24107
24108         frexp, tests: work around ICC bug with -zero
24109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24110         works with more compilers.
24111         * tests/minus-zero.h: New file.
24112         * modules/ceilf-tests (Files): Include it.
24113         * modules/ceill-tests (Files): Likewise.
24114         * modules/floorf-tests (Files): Likewise.
24115         * modules/floorl-tests (Files): Likewise.
24116         * modules/frexp-nolibm-tests (Files): Likewise.
24117         * modules/frexp-tests (Files): Likewise.
24118         * modules/frexpl-nolibm-tests (Files): Likewise.
24119         * modules/frexpl-tests (Files): Likewise.
24120         * modules/isnan-tests (Files): Likewise.
24121         * modules/isnand-nolibm-tests (Files): Likewise.
24122         * modules/isnand-tests (Files): Likewise.
24123         * modules/isnanf-nolibm-tests (Files): Likewise.
24124         * modules/isnanf-tests (Files): Likewise.
24125         * modules/isnanl-nolibm-tests (Files): Likewise.
24126         * modules/isnanl-tests (Files): Likewise.
24127         * modules/round-tests (Files): Likewise.
24128         * modules/roundf-tests (Files): Likewise.
24129         * modules/roundl-tests (Files): Likewise.
24130         * modules/ldexpl-tests (Files): Likewise.
24131         * modules/signbit-tests (Files): Likewise.
24132         * modules/snprintf-posix-tests (Files): Likewise.
24133         * modules/sprintf-posix-tests (Files): Likewise.
24134         * modules/strtod-tests (Files): Likewise.
24135         * modules/trunc-tests (Files): Likewise.
24136         * modules/truncf-tests (Files): Likewise.
24137         * modules/truncl-tests (Files): Likewise.
24138         * modules/vsnprintf-posix-tests (Files): Likewise.
24139         * modules/vsprintf-posix-tests (Files): Likewise.
24140         * modules/vasnprintf-posix-tests (Files): Likewise.
24141         * modules/vasprintf-posix-tests (Files): Likewise.
24142         * tests/test-ceilf1.c (main): Use it.
24143         * tests/test-ceill.c (main): Likewise.
24144         * tests/test-floorf1.c (main): Likewise.
24145         * tests/test-floorl.c (main): Likewise.
24146         * tests/test-frexp.c (main): Likewise.
24147         * tests/test-frexpl.c (main): Likewise.
24148         * tests/test-isnan.c (main): Likewise.
24149         * tests/test-isnand.h (main): Likewise.
24150         * tests/test-isnanf.h (main): Likewise.
24151         * tests/test-isnanl.h (main): Likewise.
24152         * tests/test-ldexpl.c (main): Likewise.
24153         * tests/test-round.c (main): Likewise.
24154         * tests/test-roundf.c (main): Likewise.
24155         * tests/test-roundl.c (main): Likewise.
24156         * tests/test-signbit.c (test_signbitf, test_signbitd)
24157         (test_signbitl): Likewise.
24158         * tests/test-snprintf-posix.h (test_function): Likewise.
24159         * tests/test-sprintf-posix.h (test_function): Likewise.
24160         * tests/test-strtod.c (main): Likewise.
24161         * tests/test-trunc1.c (main): Likewise.
24162         * tests/test-truncf1.c (main): Likewise.
24163         * tests/test-truncl.c (main): Likewise.
24164
24165         isnanl: work around icc bug
24166         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24167
24168 2010-11-03  Eric Blake  <eblake@redhat.com>
24169
24170         tests: fix compiler warnings
24171         * tests/test-getopt.h (test_getopt): Fix condition.
24172         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24173         * tests/test-pipe2.c (main): Likewise.
24174         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24175
24176         utimens: fix broken m4 test
24177         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24178
24179 2010-10-28  Bruno Haible  <bruno@clisp.org>
24180
24181         posix_spawn*, getdtablesize: Relax license.
24182         * modules/posix_spawn (License): Change to LGPLv2+.
24183         * modules/posix_spawnp (License): Likewise.
24184         * modules/posix_spawn-internal (License): Likewise.
24185         * modules/posix_spawnattr_init (License): Likewise.
24186         * modules/posix_spawnattr_getflags (License): Likewise.
24187         * modules/posix_spawnattr_setflags (License): Likewise.
24188         * modules/posix_spawnattr_getpgroup (License): Likewise.
24189         * modules/posix_spawnattr_setpgroup (License): Likewise.
24190         * modules/posix_spawnattr_getschedparam (License): Likewise.
24191         * modules/posix_spawnattr_setschedparam (License): Likewise.
24192         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24193         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24194         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24195         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24196         * modules/posix_spawnattr_getsigmask (License): Likewise.
24197         * modules/posix_spawnattr_setsigmask (License): Likewise.
24198         * modules/posix_spawnattr_destroy (License): Likewise.
24199         * modules/posix_spawn_file_actions_init (License): Likewise.
24200         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24201         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24202         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24203         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24204         * modules/getdtablesize (License): Likewise.
24205         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24206
24207 2010-10-26  Bruno Haible  <bruno@clisp.org>
24208
24209         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24210         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24211         Cygwin and mingw.
24212         Suggested by Eric Blake.
24213
24214 2010-10-26  Bruno Haible  <bruno@clisp.org>
24215
24216         stdio: Work around compilation error due to renameat() on Solaris 10.
24217         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24218         * lib/renameat.c: Don't include <unistd.h> here.
24219         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24220         Reported by Paul Eggert and Eric Blake.
24221
24222 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24223
24224         renameat: port to Solaris 10, which declares renameat in unistd.h
24225
24226         * lib/renameat.c: Include unistd.h before stdio.h, because
24227         Solaris 10 declares renameat in unistd.h.  Problem encountered
24228         when building GNU tar 1.24 on Solaris 10.
24229
24230 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24231
24232         fdopendir: fix C89 compilation
24233         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24234         compilers.
24235
24236 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24237
24238         inttostr: simplify by removing unnecessary redundancy
24239         * lib/anytostr.c: Don't include verify.h.
24240         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24241         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24242         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24243         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24244         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24245         Likewise.
24246         * modules/inttostr (Depends-on): Remove 'verify'.
24247
24248 2010-10-23  Bruno Haible  <bruno@clisp.org>
24249
24250         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24251         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24252         Reported by Eric Blake.
24253
24254 2010-10-23  Bruno Haible  <bruno@clisp.org>
24255
24256         Tests: Fix LOCALE_JA on MirBSD 10.
24257         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24258         to an UTF-8 locale.
24259         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24261         Reported by Eric Blake.
24262
24263 2010-10-21  Bruno Haible  <bruno@clisp.org>
24264
24265         nl_langinfo test: Avoid test failure on NetBSD 5.
24266         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24267         Reported by Eric Blake.
24268
24269 2010-10-21  Eric Blake  <eblake@redhat.com>
24270
24271         c-stack: work around libsigsegv 2.8 bug
24272         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24273         overflow on at least PowerPC64.
24274
24275 2010-10-17  Bruno Haible  <bruno@clisp.org>
24276
24277         userspec: Drop redundant file.
24278         * modules/userspec (Files): Remove lib/inttostr.h.
24279
24280 2010-10-17  Bruno Haible  <bruno@clisp.org>
24281
24282         nl_langinfo tests: Silence some warnings.
24283         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24284         Reported by Jim Meyering.
24285
24286 2010-10-17  Bruno Haible  <bruno@clisp.org>
24287
24288         Make use of GCC's attribute __alloc_size__.
24289         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24290         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24291         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24292         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24293         __alloc_size__.
24294         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24295         Suggested by Jim Meyering.
24296
24297 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24298
24299         bootstrap: anchor .gitignore entries.
24300         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24301         with...
24302         (insert_vc_ignore): ... this new function, which prepends `/' to
24303         all .gitignore entries before passing them to
24304         insert_sorted_if_absent.
24305
24306 2010-10-16  Bruno Haible  <bruno@clisp.org>
24307
24308         nextafter: Fix configure check.
24309         * modules/nextafter (configure.ac): Correct expected prototype.
24310
24311 2010-10-16  Bruno Haible  <bruno@clisp.org>
24312
24313         termios: Update documentation.
24314         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24315
24316 2010-10-16  Bruno Haible  <bruno@clisp.org>
24317
24318         tests: Make them compile with TinyCC.
24319         * tests/test-strstr.c (main): Remove parentheses around array
24320         initializer.
24321
24322 2010-10-15  Eric Blake  <eblake@redhat.com>
24323
24324         ignore-value: make header idempotent
24325         * lib/ignore-value.h: Add double-inclusion guards.
24326         Reported by Stefan Berger.
24327
24328 2010-10-15  Jim Meyering  <meyering@redhat.com>
24329
24330         GNUmakefile: handle "stable" target, not "major"
24331         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24332         lists in maint.mk and announce-gen.  Without this, "make stable"
24333         would fail to ensure that $(VERSION) is up to date.
24334
24335 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24336
24337         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24338         & co.
24339
24340 2010-10-14  Bruno Haible  <bruno@clisp.org>
24341
24342         vasnprintf: Don't set errno to 0.
24343         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24344         block that sets it to 0.
24345         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24346
24347 2010-10-14  Bruno Haible  <bruno@clisp.org>
24348
24349         socketlib: Fix.
24350         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24351         gl_PREREQ_SYS_H_WINSOCK2.
24352         Reported by Ian Beckwith <ianb@erislabs.net>.
24353
24354 2010-10-13  Jim Meyering  <meyering@redhat.com>
24355
24356         test-select-stdin.c: avoid warn_unused_result warnings
24357         * tests/test-select-stdin.c: Include "macros.h".
24358         ASSERT that read and fflush succeed.
24359
24360 2010-10-13  Jim Meyering  <meyering@redhat.com>
24361
24362         git-version-gen: do require git-VC'd files in cwd
24363         * build-aux/git-version-gen: Reject a git version string
24364         if there are no commits associated with the current directory.
24365         This avoids an unlikely false-positive (unrelated dir whose parent
24366         repository also contains a tag matching v*), as pointed out
24367         by Giuseppe Scrivano in
24368         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24369
24370 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24371
24372         argv-iter: omit nonconforming declaration
24373         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24374         enum arg_iter_err declaration, which doesn't conform to C99.
24375         Solaris 10 cc warns about this.
24376
24377 2010-10-13  Eric Blake  <eblake@redhat.com>
24378
24379         termios: fix compilation on mingw
24380         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24381         (gl_TERMIOS_H): Adjust it on mingw.
24382         * modules/termios (Makefile.am): Substitute new key.
24383         * lib/termios.in.h (includes): Make include_next conditional.
24384         * doc/posix-headers/termios.texi (termios.h): Update
24385         documentation.
24386         Reported by Daniel P. Berrange.
24387
24388 2010-10-13  Jim Meyering  <meyering@redhat.com>
24389
24390         git-version-gen: don't require that .git/ be in the current dir
24391         * build-aux/git-version-gen: Adjust this script so that it works
24392         when run from any working directory beneath the top-level .git/-
24393         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24395
24396         test-select: avoid warn_unused_result warnings
24397         * tests/test-select.c: Include "macros.h".
24398         ASSERT that each call to read, write, and pipe succeeds.
24399         While not technically required, also check each "close".
24400         * modules/select-tests (Files): Add tests/macros.h.
24401
24402         test-symlinkat: remove declaration of unused local
24403         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24404
24405         test-inttostr: avoid shadowing warnings
24406         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24407         and use malloc rather than the stack for the same reason as
24408         mentioned in the comment justifying the other allocation.
24409
24410 2010-10-11  Bruno Haible  <bruno@clisp.org>
24411
24412         stdlib: Allow multiple gnulib generated replacements to coexist.
24413         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24414         Reported by Sam Steingold <sds@gnu.org>.
24415
24416 2010-10-11  Jim Meyering  <meyering@redhat.com>
24417
24418         fix a documentation typo
24419         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24420
24421 2010-10-11  Eric Blake  <eblake@redhat.com>
24422
24423         futimens: work around Solaris 11 bug
24424         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24425         * tests/test-futimens.h (test_futimens): Enhance, rather than
24426         weaken test.
24427         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24428
24429 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24430
24431         Indentation.
24432         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24433         higher-level operators more to the left.
24434
24435 2010-10-11  Jim Meyering  <meyering@redhat.com>
24436
24437         test-futimens: avoid unwarranted test failure on Solaris 5.11
24438         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24439         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24440         because it tries to dereference the NULL name argument.
24441
24442 2010-10-11  Bruno Haible  <bruno@clisp.org>
24443
24444         Indentation.
24445         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24446         indentation.
24447
24448 2010-10-11  Jim Meyering  <meyering@redhat.com>
24449
24450         spawn.in.h: make indentation consistent with parentheses
24451         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24452         Make indentation consistent with parentheses.
24453
24454 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24455
24456         Fix mismatched parens in previous commit
24457         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24458         parens.
24459
24460 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24461
24462         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24463
24464         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24465         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24466         * lib/malloca.c: Include "verify.h".
24467         (verify1): Remove, replacing with a verify call.
24468         * lib/relocwrapper.c (verify1): Likewise.
24469         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24470         Likewise.
24471         * modules/malloca (Depends-on): Add 'verify'.
24472         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24473         * modules/vasnprintf (Depends-on): Add 'verify'.
24474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24475         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24476         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24477         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24478         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24479         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24480         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24481
24482         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24483
24484         Formerly the style was sometimes 2*X - 1, because the C standard
24485         was wrongly thought to disallow ?: in integral constant expressions.
24486         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24487         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24488         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24489         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24490         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24491         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24492         verify that time_t cannot be floating.
24493
24494 2010-10-08  Eric Blake  <eblake@redhat.com>
24495
24496         time: enforce recent POSIX ruling that time_t is integral
24497         * lib/time.in.h (__time_t_must_be_integral): Detect any
24498         problematic systems, allowing the rest of gnulib to assume POSIX.
24499
24500 2010-10-08  Jim Meyering  <meyering@redhat.com>
24501
24502         fdopendir: fix a bug on systems lacking openat and /proc support
24503         OpenBSD 4.7 is one such system.  The most noticeable effect was
24504         failure of any application making nontrivial use of fts: rm, du,
24505         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24506           ./rm: traversal failed: `a': Bad file descriptor
24507         Debugging that, you see that even though FD 6 was closed just
24508         prior to the opendir call in fd_clone_opendir, its resulting
24509         dir->dd_fd was 8, rather than the expected value of 6:
24510
24511         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24512         93                close (fd);
24513         (gdb) n
24514         94                dir = fd_clone_opendir (dupfd);
24515         (gdb) n
24516         95                saved_errno = errno;
24517         (gdb) p dir->dd_fd
24518         $11 = 8
24519
24520         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24521         The problem is that on OpenBSD, fd_clone_opendir has to resort
24522         to using the old-style save/restore CWD mechanism, due to its
24523         lack of openat/proc support, and *that* would steal the FD (6)
24524         that opendir was supposed to use.
24525
24526         The fix is to squirrel away the desired FD so that save_cwd uses a
24527         different one, and then free the dest FD right before calling opendir.
24528         That guarantees opendir will use the required file descriptor.
24529
24530         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24531
24532 2010-10-08  Bruno Haible  <bruno@clisp.org>
24533
24534         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24535         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24536
24537 2010-10-08  Bruno Haible  <bruno@clisp.org>
24538
24539         nanosleep: Make replacement POSIX compliant.
24540         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24541         is out of range.
24542         Reported by Jim Meyering.
24543
24544 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24545
24546         bootstrap: add hook for altering gnulib.mk, for Bison
24547         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24548         the Bison bootstrapping process can rewrite file names and variables
24549         in this file before later parts of 'bootstrap' use the file.
24550         Bison wants to include lib/gnulib.mk from the top-level makefile,
24551         so it needs the file names in this file to be relative to the top
24552         level, not relative to lib; plus it needs variable names to be
24553         rewritten.
24554         (slurp): Use the new function.
24555
24556         bootstrap: reformat for readability
24557         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24558
24559 2010-10-08  Eric Blake  <eblake@redhat.com>
24560
24561         docs: update cygwin progress
24562         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24563         1.7.7.
24564         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24565         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24566         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24567         * doc/posix-functions/carg.texi (carg): Likewise.
24568         * doc/posix-functions/cargf.texi (cargf): Likewise.
24569         * doc/posix-functions/casin.texi (casin): Likewise.
24570         * doc/posix-functions/casinf.texi (casinf): Likewise.
24571         * doc/posix-functions/casinh.texi (casinh): Likewise.
24572         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24573         * doc/posix-functions/catan.texi (catan): Likewise.
24574         * doc/posix-functions/catanf.texi (catanf): Likewise.
24575         * doc/posix-functions/catanh.texi (catanh): Likewise.
24576         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24577         * doc/posix-functions/ccos.texi (ccos): Likewise.
24578         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24579         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24580         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24581         * doc/posix-functions/cexp.texi (cexp): Likewise.
24582         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24583         * doc/posix-functions/cimag.texi (cimag): Likewise.
24584         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24585         * doc/posix-functions/clog.texi (clog): Likewise.
24586         * doc/posix-functions/clogf.texi (clogf): Likewise.
24587         * doc/posix-functions/conj.texi (conj): Likewise.
24588         * doc/posix-functions/conjf.texi (conjf): Likewise.
24589         * doc/posix-functions/cpow.texi (cpow): Likewise.
24590         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24591         * doc/posix-functions/cproj.texi (cproj): Likewise.
24592         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24593         * doc/posix-functions/creal.texi (creal): Likewise.
24594         * doc/posix-functions/crealf.texi (crealf): Likewise.
24595         * doc/posix-functions/csin.texi (csin): Likewise.
24596         * doc/posix-functions/csinf.texi (csinf): Likewise.
24597         * doc/posix-functions/csinh.texi (csinh): Likewise.
24598         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24599         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24600         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24601         * doc/posix-functions/ctan.texi (ctan): Likewise.
24602         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24603         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24604         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24605         * doc/posix-headers/complex.texi (complex.h): Likewise.
24606
24607 2010-10-07  Jim Meyering  <meyering@redhat.com>
24608
24609         parse-datetime: avoid compilation failure on OpenBSD 4.7
24610         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24611         This works around a compilation failure on OpenBSD 4.7:
24612         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24613
24614 2010-10-07  Eric Blake  <eblake@redhat.com>
24615
24616         docs: update cygwin progress
24617         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24618         1.7.6.
24619         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24620         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24621         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24622         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24623         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24624         Likewise.
24625         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24626         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24627         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24628         Likewise.
24629         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24630         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24631         Likewise.
24632         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24633         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24634         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24635         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24636         Likewise.
24637         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24638         Likewise.
24639         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24640
24641         docs: update parse-datetime history
24642         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24643         documentation of this function's history and alternatives.
24644
24645         cygwin: use more robust version check
24646         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24647         exclude an eventual cygwin 1.9.1.
24648         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24650         (gl_FUNC_STRCASESTR): Likewise.
24651         Reported by Bruno Haible.
24652
24653 2010-10-06  Bruno Haible  <bruno@clisp.org>
24654
24655         string, sys_select: Avoid #including large headers unless necessary.
24656         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24657         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24658         OSF/1, BeOS, Haiku.
24659         Reported by Jim Meyering.
24660
24661 2010-10-05  Eric Blake  <eblake@redhat.com>
24662
24663         memmem, strstr, strcasestr: fix bug with long periodic needle
24664         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24665         periodic needle having false positive.
24666         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24667         and cygwin 1.7.7.
24668         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24670         (gl_FUNC_STRCASESTR): Likewise.
24671         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24672         * tests/test-memmem.c (main): Expose the bug.
24673         * tests/test-strcasestr.c (main): Likewise.
24674         * tests/test-strstr.c (main): Likewise.
24675         * tests/test-c-strcasestr.c (main): Likewise.
24676         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24677         * doc/posix-functions/strstr.texi (strstr): Likewise.
24678         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24679         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24680
24681 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24682
24683         parse-datetime: do some more renaming
24684         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24685         parse_datetime, not get_date.  Mention the renaming.
24686         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24687         in comments.
24688         * m4/bison.m4: Likewise.
24689
24690 2010-10-05  Eric Blake  <eblake@redhat.com>
24691
24692         parse-datetime: better name than get_date
24693         * NEWS: Reword the deprecation notice.
24694         * modules/get_date: Rename to modules/parse-datetime.
24695         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24696         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24697         * lib/get_date.y: Rename to lib/parse-datetime.y.
24698         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24699         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24700         * doc/getdate.texi: Provide fallback wrapper.
24701         * lib/getdate.h: Move guts, and wrap...
24702         * lib/parse-datetime.h: ...new file.
24703         * lib/parse-datetime.y (get_date): Rename...
24704         (parse_datetime): ...to this.
24705         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24706         (gl_PARSE_DATETIME): ...to this.
24707         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24708         documentation.
24709         * modules/getdate (Files): Provide fallback docs and header.
24710         (Notice, Depends-on): Update references.
24711         * tests/test-parse-datetime.c: Likewise.
24712         * DEPENDENCIES: Likewise.
24713         * MODULES.html.sh (Date and time <time.h>): Likewise.
24714         * doc/parse-datetime.texi (Date input formats)
24715         (Authors of parse_datetime): Likewise.
24716         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24717         (Include): Likewise.
24718         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24719         * gnulib-tool: Likewise.
24720         * m4/bison.m4 (gl_BISON): Likewise.
24721         Suggested by Bruno Haible.
24722
24723 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24724
24725         more ports to Solaris tr, which needs [] around ranges
24726         * gnulib-tool: Solaris tr needs [] around ranges.
24727         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24728         * tests/test-pipe-filter-gi1.c (main): Likewise.
24729         * tests/test-pipe-filter-ii1.c (main): Likewise.
24730
24731 2010-10-05  Eric Blake  <eblake@redhat.com>
24732
24733         bootstrap: fix Solaris regression
24734         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24735         around ranges.
24736         Reported by Pádraig Brady.
24737
24738         bootstrap: work with pkg-config
24739         * build-aux/bootstrap (check_versions): Also transliterate - in
24740         prerequisite name.
24741         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24742         prerequisites that were already found, to avoid confusion.
24743         Reported by Justin Clift.
24744
24745         faccessat: remove unused wrappers
24746         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24747         presence of these wrappers dragged in -lgen on Solaris.
24748         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24749
24750 2010-10-05  Jim Meyering  <meyering@redhat.com>
24751
24752         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24753         * Makefile (sc_pragma_columns): New syntax-check rule.
24754
24755 2010-10-04  Bruno Haible  <bruno@clisp.org>
24756
24757         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24758         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24759         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24760         Reported by Bruce Korb and Eric Blake.
24761
24762 2010-10-04  Bruno Haible  <bruno@clisp.org>
24763
24764         threadlib: Make option --with-libpth-prefix work.
24765         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24766         use $LIBPTH, not just -lpth.
24767
24768 2010-10-04  Bruno Haible  <bruno@clisp.org>
24769
24770         Avoid line length limitation from HP NonStop system header files.
24771         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24772         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24773         * lib/ctype.in.h: Likewise.
24774         * lib/dirent.in.h: Likewise.
24775         * lib/errno.in.h: Likewise.
24776         * lib/fcntl.in.h: Likewise.
24777         * lib/float.in.h: Likewise.
24778         * lib/getopt.in.h: Likewise.
24779         * lib/iconv.in.h: Likewise.
24780         * lib/inttypes.in.h: Likewise.
24781         * lib/langinfo.in.h: Likewise.
24782         * lib/locale.in.h: Likewise.
24783         * lib/math.in.h: Likewise.
24784         * lib/netdb.in.h: Likewise.
24785         * lib/netinet_in.in.h: Likewise.
24786         * lib/poll.in.h: Likewise.
24787         * lib/pthread.in.h: Likewise.
24788         * lib/pty.in.h: Likewise.
24789         * lib/sched.in.h: Likewise.
24790         * lib/se-selinux.in.h: Likewise.
24791         * lib/search.in.h: Likewise.
24792         * lib/signal.in.h: Likewise.
24793         * lib/spawn.in.h: Likewise.
24794         * lib/stdarg.in.h: Likewise.
24795         * lib/stddef.in.h: Likewise.
24796         * lib/stdint.in.h: Likewise.
24797         * lib/stdio.in.h: Likewise.
24798         * lib/stdlib.in.h: Likewise.
24799         * lib/string.in.h: Likewise.
24800         * lib/strings.in.h: Likewise.
24801         * lib/sys_file.in.h: Likewise.
24802         * lib/sys_ioctl.in.h: Likewise.
24803         * lib/sys_select.in.h: Likewise.
24804         * lib/sys_socket.in.h: Likewise.
24805         * lib/sys_stat.in.h: Likewise.
24806         * lib/sys_time.in.h: Likewise.
24807         * lib/sys_times.in.h: Likewise.
24808         * lib/sys_utsname.in.h: Likewise.
24809         * lib/sys_wait.in.h: Likewise.
24810         * lib/sysexits.in.h: Likewise.
24811         * lib/termios.in.h: Likewise.
24812         * lib/time.in.h: Likewise.
24813         * lib/unistd.in.h: Likewise.
24814         * lib/wchar.in.h: Likewise.
24815         * lib/wctype.in.h: Likewise.
24816         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24817         * modules/ctype (Makefile.am): Likewise.
24818         * modules/dirent (Makefile.am): Likewise.
24819         * modules/errno (Makefile.am): Likewise.
24820         * modules/fcntl-h (Makefile.am): Likewise.
24821         * modules/float (Makefile.am): Likewise.
24822         * modules/getopt-posix (Makefile.am): Likewise.
24823         * modules/iconv-h (Makefile.am): Likewise.
24824         * modules/inttypes (Makefile.am): Likewise.
24825         * modules/langinfo (Makefile.am): Likewise.
24826         * modules/locale (Makefile.am): Likewise.
24827         * modules/math (Makefile.am): Likewise.
24828         * modules/netdb (Makefile.am): Likewise.
24829         * modules/netinet_in (Makefile.am): Likewise.
24830         * modules/poll-h (Makefile.am): Likewise.
24831         * modules/pthread (Makefile.am): Likewise.
24832         * modules/pty (Makefile.am): Likewise.
24833         * modules/sched (Makefile.am): Likewise.
24834         * modules/search (Makefile.am): Likewise.
24835         * modules/selinux-h (Makefile.am): Likewise.
24836         * modules/signal (Makefile.am): Likewise.
24837         * modules/spawn (Makefile.am): Likewise.
24838         * modules/stdarg (Makefile.am): Likewise.
24839         * modules/stddef (Makefile.am): Likewise.
24840         * modules/stdint (Makefile.am): Likewise.
24841         * modules/stdio (Makefile.am): Likewise.
24842         * modules/stdlib (Makefile.am): Likewise.
24843         * modules/string (Makefile.am): Likewise.
24844         * modules/strings (Makefile.am): Likewise.
24845         * modules/sys_file (Makefile.am): Likewise.
24846         * modules/sys_ioctl (Makefile.am): Likewise.
24847         * modules/sys_select (Makefile.am): Likewise.
24848         * modules/sys_socket (Makefile.am): Likewise.
24849         * modules/sys_stat (Makefile.am): Likewise.
24850         * modules/sys_time (Makefile.am): Likewise.
24851         * modules/sys_times (Makefile.am): Likewise.
24852         * modules/sys_utsname (Makefile.am): Likewise.
24853         * modules/sys_wait (Makefile.am): Likewise.
24854         * modules/sysexits (Makefile.am): Likewise.
24855         * modules/termios (Makefile.am): Likewise.
24856         * modules/time (Makefile.am): Likewise.
24857         * modules/unistd (Makefile.am): Likewise.
24858         * modules/wchar (Makefile.am): Likewise.
24859         * modules/wctype (Makefile.am): Likewise.
24860
24861 2010-10-04  Bruno Haible  <bruno@clisp.org>
24862
24863         read-file tests: Avoid a test failure on NonStop Kernel.
24864         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24865         a regular file.
24866         Reported by Joachim Schmitz <schmitz@hp.com>.
24867
24868 2010-10-03  Bruno Haible  <bruno@clisp.org>
24869
24870         gnulib-tool: Fixes for --create-testdir with --libtool.
24871         * gnulib-tool (func_get_automake_snippet): Don't augment
24872         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24873         an executable.
24874         (func_create_testdir): Handle module 'alloca' like func_import.
24875         Reported by Bruce Korb <bruce.korb@gmail.com>.
24876
24877 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24878
24879         Avoid some lines longer than 80 characters.
24880         * lib/stdint.in.h: Break long comment lines.
24881         * lib/math.in.h: Likewise.
24882         (_GL_NUM_UINT_WORDS): New macro, for readability.
24883         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24884         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24885         * lib/stdlib.in.h: Likewise.
24886         * lib/spawn.in.h: Likewise.
24887         * lib/sys_socket.in.h: Update an URL.
24888         * lib/sys_stat.in.h: Break long line.
24889
24890 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24891
24892         Improve pmccabe2html.
24893         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24894         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24895         when the sources change. Remove the line in the HTML about "Used
24896         ranges" (which implied that there might be other unused ranges),
24897         rename "Resume" to "Summary" (easier to understand for more users).
24898         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24899         styles, and some unnecessary blank lines.
24900
24901 2010-10-03  Bruno Haible  <bruno@clisp.org>
24902             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24903
24904         acl: Add support for ACLs on NonStop Kernel.
24905         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24906         Check whether the function aclsort() exists.
24907         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24908         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24909         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24910         (acl_nontrivial [HAVE_ACLSORT]: New function.
24911         (file_has_acl): Implement for NonStop Kernel.
24912         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24913         (qset_acl): Implement for NonStop Kernel.
24914         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24915         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24916         (main): Implement for NonStop Kernel.
24917         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24918         Kernel. Handle this flavor.
24919         * tests/test-set-mode-acl.sh: Likewise.
24920         * tests/test-copy-acl.sh: Likewise.
24921         * tests/test-copy-file.sh: Likewise.
24922
24923 2010-10-03  Bruno Haible  <bruno@clisp.org>
24924
24925         Info about ACLs on NonStop Kernel.
24926         * doc/acl-resources.txt: Add info about NonStop Kernel.
24927         References by Joachim Schmitz <schmitz@hp.com>.
24928
24929 2010-10-02  Bruno Haible  <bruno@clisp.org>
24930
24931         Define missing EDQUOT on NonStop Kernel.
24932         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24933         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24935         missing.
24936         * doc/posix-headers/errno.texi: Mention the NSK bug.
24937         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24938         Reported by Joachim Schmitz <schmitz@hp.com>.
24939
24940 2010-10-02  Bruno Haible  <bruno@clisp.org>
24941
24942         Update doc for POSIX:2008.
24943         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24944         Update URL of POSIX specification.
24945
24946 2010-10-02  Bruno Haible  <bruno@clisp.org>
24947
24948         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24949         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24950         from gnulib, not from Automake.
24951
24952 2010-10-02  Bruno Haible  <bruno@clisp.org>
24953
24954         New module 'system-posix'.
24955         * modules/system-posix: New file.
24956         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24957         module is present.
24958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24959         GNULIB_SYSTEM_POSIX.
24960         * modules/stdlib (Depends-on): Remove sys_wait.
24961         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24962         * doc/posix-functions/system.texi: Mention the new module.
24963         * doc/posix-headers/stdlib.texi: Likewise.
24964         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24965         define test_sys_wait_macros to a no-op.
24966         Reported by Sam Steingold <sds@gnu.org>.
24967
24968 2010-09-30  Bruno Haible  <bruno@clisp.org>
24969
24970         More renaming from 'getdate' to 'get_date'.
24971         * doc/get_date.texi: Renamed from doc/getdate.texi.
24972         * modules/get_date (Files): Update.
24973         * MODULES.html.sh (Date and time <time.h>): Update.
24974         * DEPENDENCIES: Update.
24975         * gnulib-tool: Update comment.
24976         * m4/bison.m4 (gl_BISON): Likewise.
24977         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24978
24979 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24980
24981         bootstrap: support ACLOCAL_FLAGS during aclocal
24982         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24983         can add additional -I dir for third-party .m4 files.
24984
24985 2010-09-30  Eric Blake  <eblake@redhat.com>
24986
24987         bootstrap: use glibtoolize on MacOS
24988         * build-aux/bootstrap (check_versions): Convert libtool into
24989         libtoolize.
24990         (tool search): Move libtool check earlier, and look for
24991         glibtoolize for MacOS.
24992         (gnulib_tool_options): Auto-add --libtool when appropriate.
24993         Reported by Justin Clift.
24994
24995         poll: fix typo that broke test on MacOS
24996         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24997         Reported by Justin Clift.
24998
24999         getdate: rename to get_date
25000         Note: getdate.h is not renamed, to minimize client impact.
25001         * modules/getdate: Mark obsolete.  Move old contents...
25002         * modules/get_date: ...to new module name.
25003         * modules/getdate-tests: Move...
25004         * modules/get_date-tests: ...here.
25005         * m4/getdate.m4: Move...
25006         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25007         * lib/getdate.y: Move...
25008         * lib/get_date.y: ...here.
25009         * tests/test-getdate.c: Move...
25010         * tests/test-get_date.c: ...here.
25011         * doc/posix-functions/getdate.texi (getdate): Update name.
25012         * NEWS: Mention the change.
25013
25014 2010-09-29  Bruno Haible  <bruno@clisp.org>
25015
25016         Separate the module 'waitpid' from the module 'sys_wait'.
25017         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25018         present.
25019         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25020         gl_MODULE_INDICATOR_FOR_TESTS.
25021         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25022         * modules/sys_wait (Depends-on): Remove waitpid.
25023         (Makefile.am): Substitute GNULIB_WAITPID.
25024         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25025         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25026         signature only if the 'waitpid' module is present.
25027         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25028         * NEWS: Mention the change.
25029         * modules/grantpt (Depends-on): Add waitpid.
25030         * modules/wait-process (Depends-on): Likewise.
25031
25032 2010-09-29  Bruno Haible  <bruno@clisp.org>
25033
25034         More tests for module 'sys_wait'.
25035         * modules/sys_wait-c++-tests: New file.
25036         * tests/test-sys_wait-c++.cc: New file.
25037         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25038         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25039
25040 2010-09-29  Bruno Haible  <bruno@clisp.org>
25041
25042         New module 'waitpid'.
25043         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25044         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25045         Don't include <process.h>.
25046         (waitpid): Declare only, using modern idiom.
25047         * m4/waitpid.m4: New file.
25048         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25049         * modules/waitpid: New file.
25050         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25051         (Makefile.am): Update.
25052         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25053
25054 2010-09-28  Bruno Haible  <bruno@clisp.org>
25055
25056         poll: Assume ANSI C.
25057         * lib/poll.c (poll): Use an ANSI C declaration.
25058
25059 2010-09-28  Bruno Haible  <bruno@clisp.org>
25060
25061         poll-h: Create poll.h on all platforms.
25062         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25063         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25064         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25065         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25066         (gl_REPLACE_POLL_H): Don't set POLL_H.
25067         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25068         * modules/poll-h (Depends-on): Add include_next.
25069         (Makefile.am): Create poll.h unconditionally. Substitute also
25070         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25071
25072 2010-09-28  Bruno Haible  <bruno@clisp.org>
25073
25074         Tests for module 'poll-h'.
25075         * modules/poll-h-c++-tests: New file.
25076         * tests/test-poll-h-c++.cc: New file.
25077
25078         Tests for module 'poll-h'.
25079         * modules/poll-h-tests: New file.
25080         * tests/test-poll-h.c: New file.
25081
25082 2010-09-28  Bruno Haible  <bruno@clisp.org>
25083
25084         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25085         * modules/poll-h (Depends-on): Add 'extensions'.
25086
25087 2010-09-28  Bruno Haible  <bruno@clisp.org>
25088
25089         New module 'poll-h'.
25090         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25091         (poll): Use modern idiom.
25092         * modules/poll-h: New file.
25093         * modules/poll (Files): Remove lib/poll.in.h.
25094         (Depends-on): Add poll-h.
25095         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25096         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25097         * m4/poll_h.m4: New file.
25098         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25099         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25100         and invoke gl_REPLACE_POLL_H.
25101         * lib/poll.c: Use common idiom.
25102         * tests/test-poll.c: Likewise.
25103         * doc/posix-headers/poll.texi: Mention the poll-h module.
25104         Suggested by Eric Blake.
25105
25106 2010-09-26  Bruno Haible  <bruno@clisp.org>
25107
25108         sys_wait: Implement WSTOPSIG.
25109         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25110         Reported by Simon Josefsson.
25111
25112 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25113
25114         stdlib, sys_wait: Avoid compilation error on mingw.
25115         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25116
25117 2010-09-26  Bruno Haible  <bruno@clisp.org>
25118
25119         stdlib tests: Avoid code duplication.
25120         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25121         * modules/sys_wait-tests (Files): Likewise.
25122         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25123         * tests/test-stdlib.c: Include test-sys_wait.h.
25124         (main): Invoke test_sys_wait_macros.
25125         * tests/test-sys_wait.c: Include test-sys_wait.h.
25126         (main): Invoke test_sys_wait_macros.
25127
25128 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25129
25130         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25131         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25132         sure Windows sockets are working before calling getaddrinfo.
25133         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25134         * doc/gnulib.texi (Windows sockets): Fix typo.
25135
25136 2010-09-25  Bruno Haible  <bruno@clisp.org>
25137
25138         Tests for module 'regex-quote'.
25139         * modules/regex-quote-tests: New file.
25140         * tests/test-regex-quote.c: New file.
25141
25142         New module 'regex-quote'.
25143         * lib/regex-quote.h: New file.
25144         * lib/regex-quote.c: New file.
25145         * modules/regex-quote: New file.
25146         Suggested by Reuben Thomas <rrt@sc3d.org>.
25147
25148 2010-09-24  Bruno Haible  <bruno@clisp.org>
25149
25150         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25151         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25152
25153 2010-09-23  Bruno Haible  <bruno@clisp.org>
25154
25155         setenv: Relax license.
25156         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25157         Blake.
25158         Requested by Eric Blake.
25159
25160 2010-09-22  Bruno Haible  <bruno@clisp.org>
25161
25162         termios: Relax license.
25163         * modules/termios (License): Change to LGPLv2+.
25164         Requested by Eric Blake.
25165
25166 2010-09-22  Bruno Haible  <bruno@clisp.org>
25167
25168         threadlib: Allow the package to change the default to 'no'.
25169         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25170         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25171         Reported by Paul Eggert.
25172
25173 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25174             Bruno Haible  <bruno@clisp.org>
25175
25176         Fix endless loop in mbmemcasecoll.
25177         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25178         byte.
25179         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25180
25181 2010-09-22  Bruno Haible  <bruno@clisp.org>
25182
25183         Tests for module 'memcoll'.
25184         * modules/memcoll-tests: New file.
25185         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25186
25187         memcoll, xmemcoll: Clarify size vs. length.
25188         * modules/memcoll.c (memcoll0): Clarify specification.
25189         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25190         passed to collate_error.
25191
25192 2010-09-22  Bruno Haible  <bruno@clisp.org>
25193
25194         Tests for module 'memcasecmp'.
25195         * modules/memcasecmp-tests: New file.
25196         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25197
25198 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25199
25200         * lib/pthread.in.h: Add split double-inclusion guard, and include
25201         system <pthread.h> if there is one.  Use @@-style as in other
25202         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25203         pthread.h doesn't.
25204         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25205         (pthread_mutexattr_settype, pthread_mutex_trylock):
25206         New static inline functions, if there's no system <pthread.h>.
25207         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25208         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25209         Approximate with mutexes if the system lacks spinlocks, as in
25210         MacOS.
25211         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25212         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25213         @@-style.  Check for spinlocks separately.
25214         (gl_PTHREAD_DEFAULTS): New macro.
25215         * modules/pthread: Redo to use a more typical style for in.h files.
25216
25217 2010-09-21  Eric Blake  <eblake@redhat.com>
25218
25219         net_if: enhance tests
25220         * tests/test-net_if.c (main): Move signature checks earlier.
25221         Print failures to stderr.
25222         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25223         Document the bug that we do not yet fix.
25224
25225 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25226
25227         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25228         about gnulib, not GSS.
25229
25230 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25231
25232         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25233         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25234         for Emacs.
25235         * build-aux/pmccabe2html: Make Makefile.am example code more
25236         cut-and-paste friendly.
25237
25238 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25239
25240         * tests/test-net_if.c: New file.
25241         * modules/net_if-tests: New file.
25242
25243 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25244
25245         pthread: add pthread_spin_destroy
25246         * lib/pthread.in.h (pthread_spin_destroy): New function.
25247
25248 2010-09-19  Bruno Haible  <bruno@clisp.org>
25249
25250         gnulib-tool: Fix --help output.
25251         * gnulib-tool (func_usage): Fix help message.
25252         Reported by Reuben Thomas <rrt@sc3d.org>.
25253
25254 2010-09-18  Jim Meyering  <meyering@redhat.com>
25255
25256         maint.mk: avoid unexpanded \n in two diagnostics
25257         * top/maint.mk (sc_prohibit_always_true_header_tests):
25258         Don't use a literal \n in a halt=... assignment.  It would not be
25259         expanded, and the two \n bytes would appear in the diagnostic output
25260         rather than the desired newline.  Use halt=$$(printf ... instead.
25261         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25262
25263 2010-09-18  Bruno Haible  <bruno@clisp.org>
25264
25265         netinet_in: Doc tweak.
25266         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25268
25269 2010-09-18  Jim Meyering  <meyering@redhat.com>
25270
25271         init.sh: correct an outdated comment
25272         * tests/init.sh (create_exe_shims_):  s/function/alias/
25273
25274         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25275         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25276         a file named "*.exe" is removed between the glob expansion and the
25277         processing of that oddly named file.
25278
25279 2010-09-17  Eric Blake  <eblake@redhat.com>
25280
25281         mirbsd: add some more support
25282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25283         in BSD family.
25284         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25285         devices as OpenBSD.
25286         * m4/host-os.m4 (mirbsd): Add MirBSD.
25287
25288         tests: fix unportable assumption on sys/wait.h
25289         * tests/test-sys_wait.c (main): Relax test.
25290         * tests/test-stdlib.c (main): Likewise.
25291
25292         init.sh: accomodate directory with no .exes
25293         * tests/init.sh: Accomodate directory containing only scripts.
25294
25295         tests: avoid compiler warning
25296         * tests/test-stdlib.c (main): Use the variable.
25297
25298         fdutimens, fdutimensat: update signature, again
25299         * lib/utimens.h (gl_futimens): Delete, and move signature...
25300         (fdutimens): ...here.
25301         (fdutimensat): Rearrange signature.
25302         (lutimensat): Rename variable for clarity.
25303         * lib/fdutimensat.c (fdutimensat): Update signature.
25304         * lib/utimens.c (fdutimens): Likewise.
25305         (gl_futimens): Delete.
25306         (utimens, lutimens): Update callers.
25307         * lib/futimens.c (futimens): Likewise.
25308         * tests/test-fdutimensat.c: Likewise.
25309         * tests/test-utimens.c: Likewise.
25310         * tests/test-futimens.h: Update comment.
25311         * NEWS: Mention this.
25312         Suggested by Paul Eggert.
25313
25314 2010-09-17  Bruno Haible  <bruno@clisp.org>
25315
25316         Take over the maintenance of some older macros from Autoconf.
25317         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25318         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25319         GNU Autoconf.
25320         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25321         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25322
25323 2010-09-17  Eric Blake  <eblake@redhat.com>
25324
25325         fdutimensat: drop atflag validation
25326         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25327         with valid fd, to close a race scenario where futimens is
25328         unsupported and FILE was replaced by a symlink.
25329         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25330         accordingly.
25331         Suggested by Paul Eggert.
25332
25333 2010-09-16  Bruno Haible  <bruno@clisp.org>
25334
25335         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25336         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25337
25338 2010-09-16  Bruno Haible  <bruno@clisp.org>
25339
25340         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25341         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25342         login_tty exists.
25343         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25344
25345 2010-09-16  Bruno Haible  <bruno@clisp.org>
25346
25347         login_tty: Make the replacement code work on BSD systems.
25348         * lib/login_tty.c: Include <sys/ioctl.h>.
25349         (login_tty): Use ioctl TIOCSCTTY when available.
25350         * modules/login_tty (Depends-on): Add sys_ioctl.
25351         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25352
25353 2010-09-16  Bruno Haible  <bruno@clisp.org>
25354
25355         login_tty: Stricter unit test.
25356         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25357         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25358         and tcgetsid() after login_tty.
25359         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25360
25361 2010-09-16  Bruno Haible  <bruno@clisp.org>
25362
25363         New module 'tcgetsid'.
25364         * lib/tcgetsid.c: New file.
25365         * m4/tcgetsid.m4: New file.
25366         * modules/tcgetsid: New file.
25367         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25368         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25369         GNULIB_TCGETSID, HAVE_TCGETSID.
25370         * lib/termios.in.h: Include <sys/types.h>.
25371         (tcgetsid): New declaration.
25372         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25373         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25374         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25375         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25376
25377 2010-09-16  Bruno Haible  <bruno@clisp.org>
25378
25379         Tests for module 'termios'.
25380         * modules/termios-c++-tests: New file.
25381         * modules/termios-tests: New file.
25382         * tests/test-termios-c++.cc: New file.
25383         * tests/test-termios.c: New file.
25384
25385         New module 'termios'.
25386         * modules/termios: New file.
25387         * lib/termios.in.h: New file.
25388         * m4/termios_h.m4: New file.
25389         * doc/posix-headers/termios.texi: Mention the new module.
25390
25391 2010-09-16  Eric Blake  <eblake@redhat.com>
25392
25393         fdutimensat: add an atflag parameter
25394         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25395         * lib/utimens.h (fdutimensat): Update prototype.
25396         * tests/test-fdutimensat.c: Adjust test to match.
25397         * NEWS: Document the change.
25398         Suggested by Paul Eggert.
25399
25400 2010-09-16  Bruno Haible  <bruno@clisp.org>
25401
25402         Fix typos in comments.
25403         * lib/striconveh.h: Fix typo in comment.
25404         * lib/login_tty.c (login_tty): Likewise.
25405
25406 2010-09-15  Bruno Haible  <bruno@clisp.org>
25407
25408         stdlib: clarify MirBSD WEXITSTATUS bug
25409         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25410         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25411
25412 2010-09-15  Eric Blake  <eblake@redhat.com>
25413
25414         stdlib: work around MirBSD WEXITSTATUS bug
25415         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25416         * modules/stdlib (Depends-on): Add sys_wait.
25417         * tests/test-sys_wait.c (main): Enhance test.
25418         * tests/test-stdlib.c (main): Likewise.
25419         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25420
25421         docs: mention MacOS issue with WEXITSTATUS(constant)
25422         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25423         issue.
25424         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25425
25426         strnlen: add tests
25427         * modules/strnlen-tests: New file.
25428         * tests/test-strnlen.c: Likewise.
25429
25430 2010-09-14  Bruno Haible  <bruno@clisp.org>
25431
25432         unistr/base: Avoid link errors when module 'libunistring' is also used.
25433         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25434         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25435         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25436         Declare also when HAVE_LIBUNISTRING is set.
25437         Reported by Pádraig Brady <P@draigbrady.com>.
25438
25439 2010-09-14  Eric Blake  <eblake@redhat.com>
25440
25441         test-rawmemchr: make more robust
25442         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25443         (Depends-on, configure.ac): Add needed prerequisites to use it.
25444         * modules/memchr-tests (Files, Depends-on, configure.ac):
25445         Likewise, to avoid implicit reliance on memchr module prereqs.
25446         * tests/test-memchr.c (main): Ensure proper masking.
25447         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25448         reads.
25449
25450         memchr: detect glibc Alpha bug
25451         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25452         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25453         Alpha.
25454         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25455         * tests/test-memchr.c (main): Enhance test.
25456         Reported by Nelson H. F. Beebe.
25457
25458 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25459
25460         fts, getcwd, glob: audit for dirfd returning -1
25461         * lib/fts.c (opendir): Remove #define; no longer used.
25462         (opendirat): New arg PDIR_FD.  All callers changed.
25463         (fts_build, _opendir2): Use new opendirat to avoid the need for
25464         dirfd, or for checking whether dirfd returns a negative value.
25465         Don't use opendir; always use openat followed by fdopendir.
25466         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25467         it.
25468         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25469         returns -1 here.
25470         * modules/fts (Depends-on): Remove dirfd.
25471         * modules/getcwd (Depends-on): Likewise.
25472
25473 2010-09-13  Eric Blake  <eblake@redhat.com>
25474
25475         float: fix broken MirBSD header
25476         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25477         * doc/posix-headers/float.texi (float.h): Document it.
25478
25479 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25480
25481         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25482         * lib/fts.c (opendirat): New arg extra_flags.
25483         (__opendir2): Use it to avoid following symlinks when opening
25484         a directory, if symlinks are not supposed to be followed.  See
25485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25486
25487         fdopendir: preserve argument fd before returning
25488         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25489         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25490         (fdopendir): Use them, arranging for FD to be open to the same
25491         directory that it was when it started.  (It might be temporarily
25492         closed while fdopendir is running, so this not thread- or
25493         signal-safe.)  Be careful to do the right thing even when file
25494         descriptors are scarce and dup fails with errno == EMFILE.  See
25495         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25496
25497 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25498
25499         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25500         * NEWS: Document change.
25501         * m4/regex.m4: Disable test for regoff_t size.
25502
25503 2010-09-13  Jim Meyering  <meyering@redhat.com>
25504
25505         fts: don't operate on an invalid file descriptor after failed dup
25506         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25507         negative file descriptor.
25508
25509 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25510
25511         savedir: add streamsavedir, deprecate fdsavedir
25512         * NEWS: Mention deprecation of fdsavedir.
25513         * lib/savedir.c (streamsavedir): New extern function, whose name
25514         ends in "savedir" to be consistent with the others.  This differs
25515         from savedirstream in that it doesn't close its argument.  The
25516         next version of GNU tar will use this instead of fdsavedir, to
25517         avoid some race conditions and conserve file descriptors.
25518         (savedirstream): Reimplement as a wrapper around streamsavedir.
25519         (fdsavedir): Add a comment deprecating this function.  As far as
25520         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25521         * lib/savedir.h (streamsavedir): New decl.
25522         (fdsavedir): Add a comment deprecating this.
25523
25524 2010-09-10  Bruno Haible  <bruno@clisp.org>
25525
25526         langinfo: Fix last commit.
25527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25528         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25530
25531 2010-09-10  Bruno Haible  <bruno@clisp.org>
25532
25533         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25534         * lib/progreloc.c (O_EXEC): Define fallback.
25535
25536 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25539         * NEWS: Document recent changes to fcntl-h.
25540         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25541         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25542         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25543         Similarly for O_SEARCH; this last was already true, but not documented.
25544         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25545         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25546         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25547         Likewise.
25548         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25549         is zero, not whether it is defined.
25550         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25551         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25552         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25553
25554 2010-09-10  Bruno Haible  <bruno@clisp.org>
25555
25556         langinfo, nl_langinfo: Fix for IRIX 5.3.
25557         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25558         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25559         HAVE_LANGINFO_YESEXPR.
25560         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25561         HAVE_LANGINFO_YESEXPR.
25562         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25563         HAVE_LANGINFO_T_FMT_AMPM is 0.
25564         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25565         HAVE_LANGINFO_YESEXPR is 0.
25566         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25567         NOEXPR.
25568         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25569         * doc/posix-functions/nl_langinfo.texi: Likewise.
25570         Reported by Eric Blake.
25571
25572 2010-09-10  Bruno Haible  <bruno@clisp.org>
25573
25574         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25575         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25576         on FreeBSD 8.0 and OpenBSD 4.6.
25577         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25578         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25579         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25580         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25581         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25582         ac_includes_default.
25583         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25584
25585 2010-09-09  Eric Blake  <eblake@redhat.com>
25586
25587         strsignal: work around NetBSD bug
25588         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25589         * lib/string.in.h (includes): Likewise.
25590         * doc/posix-functions/strsignal.texi (strsignal): Document the
25591         bug.
25592         Reported by Nelson H. F. Beebe.
25593
25594         gnulib-tool: work with NetBSD /bin/sh
25595         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25596         (func_get_description, func_get_comment, func_get_status)
25597         (func_get_notice, func_get_applicability, func_get_filelist)
25598         (func_get_dependencies, func_get_autoconf_early_snippet)
25599         (func_get_autoconf_snippet, func_get_automake_snippet)
25600         (func_get_include_directive, func_get_link_directive)
25601         (func_get_license, func_get_maintainer, func_import): Avoid
25602         shell syntax errors from parsing syntax extensions.
25603
25604 2010-09-09  Bruno Haible  <bruno@clisp.org>
25605
25606         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25607         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25608         a reliable way to determine whether the 'alias' command works.
25609
25610 2010-09-08  Jim Meyering  <meyering@redhat.com>
25611
25612         init.sh: penalize a set-x-impaired shell; don't disqualify it
25613         * tests/init.sh: Too many shells corrupt application stderr when
25614         you set -x, so we can't afford to disqualify them, since at least
25615         on Irix-6.5, that would disqualify all bourne shells.
25616         Instead, use a two-pass approach.
25617         On the first pass, try to find a shell that meets the stricter
25618         condition that set -x does not corrupt stderr.
25619         If no shell meets the stricter condition, retest each candidate
25620         shell, but without that extra condition.  Finally, when
25621         VERBOSE=yes is requested and set -x might cause trouble, simply
25622         issue a warning and refrain from enabling debug output.
25623
25624 2010-09-08  Eric Blake  <eblake@redhat.com>
25625
25626         unsetenv: fix OpenBSD bug
25627         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25628         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25629         documentation.
25630         Reported by Jim Meyering.
25631
25632         strtod: work around IRIX 6.5 bug
25633         * lib/strtod.c (strtod): Reparse number on shorter string if
25634         exponent parse was invalid.
25635         * tests/test-strtod.c (main): Add check for "0x1p 2".
25636         Reported by Tom G. Christensen.
25637
25638         getopt: optimize previous patch
25639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25640         empty variable.  Speed up awk script.
25641         Reported by Paolo Bonzini.
25642
25643 2010-09-08  Jim Meyering  <meyering@redhat.com>
25644
25645         test.sh: disqualify shells for which set -x corrupts stderr
25646         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25647         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25648         appear in stderr output.  For example, this command:
25649             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25650         prints "P=1" on those two systems:
25651
25652 2010-09-08  Bruno Haible  <bruno@clisp.org>
25653
25654         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25655         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25656         commands, because some shells ignore redirections when there is an
25657         error in the command lookup.
25658         Reported by Eric Blake.
25659
25660 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25661
25662         * lib/regex.h: Fix a mention of `regex_compile' (should be
25663         `re_compile_pattern').
25664         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25665         (re_set_registers): Correct name of parameter in comment.
25666
25667         * doc/regex.texi: Add documentation for missing syntax flags.
25668         Remove commented-out documentation of defunct syntax option
25669         RE_NO_EMPTY_ALTS.
25670         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25671         Add documentation of re_set_registers.
25672         Document trick to re-use a pattern buffer by setting fastmap manually.
25673         Update documentation of struct re_pattern_buffer per public members.
25674         Uncomment documentation of equivalence class operators and
25675         collating symbol operators, since they are now implemented,
25676         Explain leftmost-longest matching in relation to alternatives.
25677         Tidy documentation of substring matching.
25678         Remove POSIX documentation, which is done better in
25679         glibc, and refer the reader there. Keep BSD API documentation, as
25680         that is not readily available elsewhere.
25681
25682 2010-09-07  Eric Blake  <eblake@redhat.com>
25683
25684         getopt: handle POSIXLY_CORRECT set but not exported
25685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25686         export state of POSIXLY_CORRECT, due to bash set -o posix.
25687         Reported by Dustin J. Mitchell.
25688
25689 2010-09-05  Bruno Haible  <bruno@clisp.org>
25690
25691         gnulib-tool: Highlight the changed options.
25692         * gnulib-tool (func_usage): Display the --import, --add-import,
25693         --remove-import explanations in bold font.
25694
25695 2010-09-06  Karl Berry  <karl@gnu.org>
25696
25697         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25698
25699 2010-09-05  Bruno Haible  <bruno@clisp.org>
25700
25701         uniwidth/width: Update comment.
25702         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25703         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25704
25705 2010-09-05  Bruno Haible  <bruno@clisp.org>
25706
25707         isinf, isnan: Relax license.
25708         * modules/isinf (License): Change from GPL to LGPL, with consent from
25709         Ben Pfaff.
25710         * modules/isnan (License): Likewise.
25711         Requested by Ludovic Courtès.
25712
25713 2010-09-04  Bruno Haible  <bruno@clisp.org>
25714
25715         gnulib-tool: Help migration from --import to --add-import or --update.
25716         * gnulib-tool: Emit a verbose error message when --import is used
25717         without any module name.
25718
25719 2010-09-04  Bruno Haible  <bruno@clisp.org>
25720
25721         Update doc about gnulib-tool.
25722         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25723         'gnulib-tool --update' in more detail.
25724         Reported by Eric Blake.
25725
25726 2010-09-04  Bruno Haible  <bruno@clisp.org>
25727
25728         gnulib-tool: Change --import. New options --add/remove-import.
25729         * gnulib-tool: New options --add-import, --remove-import.
25730         (func_usage): Document them.
25731         (have_associative): Define always.
25732         (func_import): In import mode, don't merge the specified settings with
25733         the cached settings. Implement remove-import mode.
25734         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25735         Explain when to use them versus --import.
25736         (Simple update): Use --add-import instead of --import.
25737         * NEWS: Mention the change.
25738
25739 2010-09-04  Bruno Haible  <bruno@clisp.org>
25740
25741         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25742         separate gnulib.mk.
25743
25744 2010-09-04  Bruno Haible  <bruno@clisp.org>
25745
25746         gnulib-tool: Don't talk about CVS any more.
25747         * gnulib-tool (func_usage, func_import): Write "version control"
25748         instead of CVS.
25749
25750 2010-09-04  Jim Meyering  <meyering@redhat.com>
25751
25752         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25753         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25754         false positives (whose names may be ill-chosen) when searching
25755         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25756         would cause a false-positive.
25757
25758         avoid coreutils "make distcheck" failure
25759         Coreutils tests with an absolute build directory name that contains
25760         a space.  Not quoting this directory name caused a failure.
25761         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25762         * tests/test-vc-list-files-cvs.sh: Likewise.
25763
25764 2010-09-04  Bruno Haible  <bruno@clisp.org>
25765
25766         gnulib-tool: Avoid error when run in a package without Makefile.am.
25767         * gnulib-tool: When collecting the m4dirs in a package that does not
25768         have a Makefile.am, eliminate those directories that contain no
25769         gnulib-cache.m4. Fix expression that counts these directories.
25770
25771 2010-09-04  Bruno Haible  <bruno@clisp.org>
25772
25773         update-copyright test: Improve output when perl is missing or too old.
25774         * tests/test-update-copyright.sh: Move test of Perl version down after
25775         the test whether Perl exists. Provide an explanation relating Perl's
25776         error message to Automake's SKIP: message.
25777
25778 2010-09-04  Bruno Haible  <bruno@clisp.org>
25779
25780         Don't augment PATH in TESTS_ENVIRONMENT.
25781         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25782         set abs_aux_dir instead of augmenting PATH.
25783         * modules/vc-list-files-tests (Makefile.am): Likewise.
25784         * tests/test-update-copyright.sh: Augment PATH here.
25785         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25786         path_prepend_.
25787         * tests/test-vc-list-files-git.sh: Likewise.
25788
25789 2010-09-04  Jim Meyering  <meyering@redhat.com>
25790
25791         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25792         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25793
25794 2010-09-04  Bruno Haible  <bruno@clisp.org>
25795
25796         strdup: Fix compilation error in C++ mode.
25797         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25798         the macro.
25799
25800 2010-09-04  Bruno Haible  <bruno@clisp.org>
25801
25802         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25803         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25804         macro into a function.
25805         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25806
25807 2010-09-04  Bruno Haible  <bruno@clisp.org>
25808
25809         Set PATH_SEPARATOR the same way autoconf does.
25810         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25811         the value of PATH_SEPARATOR the same way autoconf-generated configure
25812         scripts do.
25813         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25814         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25815
25816 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25817
25818         Set PATH_SEPARATOR the same way autoconf does.
25819         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25820         the same way autoconf-generated configure scripts do.
25821         * posix-modules: Likewise.
25822
25823 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25824
25825         hash: fix safe_hasher const typo
25826         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25827         const; otherwise, there is a type error later.
25828
25829 2010-09-02  Jim Meyering  <meyering@redhat.com>
25830
25831         test-update-copyright.sh: require perl 5.8.0
25832         * tests/test-update-copyright.sh: Require 5.8.0,
25833         which Tom G. Christensen has confirmed is adequate,
25834         while 5.6.1 is not.
25835
25836 2010-09-02  Eric Blake  <eblake@redhat.com>
25837
25838         tests: init.sh improvements for re-exec'ing with zsh
25839         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25840         -vx through shell re-exec.
25841         Reported by Tom G. Christensen.
25842
25843         wctype: fix typo in previous commit
25844         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25845         Reported by Ludovic Courtès.
25846
25847 2010-09-02  Jim Meyering  <meyering@redhat.com>
25848
25849         test-update-copyright.sh: skip test if Perl is too old
25850         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25851         Reported by Tom G. Christensen.
25852
25853 2010-09-02  Bruno Haible  <bruno@clisp.org>
25854
25855         wctype: Avoid compilation error on IRIX 6.5.30.
25856         * lib/wctype.in.h (iswblank): Declare with a replacement if
25857         REPLACE_ISWBLANK is set.
25858         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25859         declared. Set REPLACE_ISWBLANK.
25860         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25861         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25862         * doc/posix-headers/wctype.texi: Likewise.
25863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25864
25865 2010-09-01  Bruno Haible  <bruno@clisp.org>
25866
25867         New module 'socketlib'.
25868         * modules/socketlib: New file.
25869         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25870         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25871         * modules/sockets (Depends-on): Add socketlib.
25872         Suggested by Sam Steingold <sds@gnu.org>.
25873
25874 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25877
25878         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25879         when one needs search access to a directory but not read access.
25880         On systems where it is available, it works in some cases where
25881         O_RDONLY does not, namely on directories that are searchable but
25882         not readable, and which need only to be searchable.  If O_SEARCH
25883         is not available, fall back to the traditional method of using
25884         O_RDONLY.
25885
25886         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25887         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25888         when opening a directory that needs only to be searchable.
25889         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25890         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25891         * lib/openat-proc.c (openat_proc_name): Likewise.
25892         * lib/openat.c (openat_needs_fchdir): Likewise.
25893         * lib/save-cwd.c (save_cwd): Likewise.
25894         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25895
25896 2010-08-28  Bruno Haible  <bruno@clisp.org>
25897
25898         New module 'host-cpu-c-abi'.
25899         * modules/host-cpu-c-abi: New file.
25900         * m4/host-cpu-c-abi.m4: New file, based on part of
25901         clisp/src/m4/general.m4.
25902         Requested by Sam Steingold <sds@gnu.org>.
25903
25904 2010-08-31  Eric Blake  <eblake@redhat.com>
25905         and Jim Meyering  <meyering@redhat.com>
25906
25907         hash: factor, and guard against misbehaving hasher function
25908         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25909         of table->hasher's return value.  Also protect against a hash value
25910         so large that adding it to table->bucket results in a NULL pointer.
25911         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25912         Use it in place of open-coded check-and-abort.
25913
25914 2010-08-30  Bruno Haible  <bruno@clisp.org>
25915
25916         hash: silence spurious clang warning
25917         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25918         Reported by Eric Blake.
25919
25920 2010-08-30  Eric Blake  <eblake@redhat.com>
25921
25922         strstr, memmem, strcasestr: avoid leaked shell message
25923         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25924         FreeBSD.
25925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25927
25928         tests: silence clang warning
25929         * tests/test-malloca.c (do_allocation): Avoid dead store.
25930
25931 2010-08-29  Bruno Haible  <bruno@clisp.org>
25932
25933         gettext: Fix recent mistake.
25934         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25935
25936 2010-08-29  Bruno Haible  <bruno@clisp.org>
25937
25938         selinux-h: Offer a --without-selinux option.
25939         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25940         --without-selinux was specified, skip all tests and define
25941         HAVE_SELINUX_SELINUX_H to 0.
25942         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25943         set LIB_SELINUX to empty.
25944         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25945         gl_LIBSELINUX. If --without-selinux was specified, replace
25946         selinux/context.h.
25947         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25948
25949 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25950             Bruno Haible  <bruno@clisp.org>
25951
25952         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25953         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25954         of HAVE_REALLOC.
25955         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25956         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25957         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25958         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25959
25960 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25961             Bruno Haible  <bruno@clisp.org>
25962
25963         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25964         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25965         HAVE_CALLOC.
25966         * lib/xmalloc.c: Update accordingly.
25967         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25968         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25969         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25970
25971 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25972             Bruno Haible  <bruno@clisp.org>
25973
25974         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25975         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25976         HAVE_MALLOC.
25977         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25978         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25979         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25980
25981 2010-08-29  Bruno Haible  <bruno@clisp.org>
25982
25983         Update modules list.
25984         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25985         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25986         (String handling <string.h>): Add astrxfrm.
25987         (File system functions): Add readlinkat.
25988
25989 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25990
25991         Tests for module 'realloc-gnu'.
25992         * modules/realloc-gnu-tests: New file.
25993         * tests/test-realloc-gnu.c: New file.
25994
25995         Tests for module 'calloc-gnu'.
25996         * modules/calloc-gnu-tests: New file.
25997         * tests/test-calloc-gnu.c: New file.
25998
25999         Tests for module 'malloc-gnu'.
26000         * modules/malloc-gnu-tests: New file.
26001         * tests/test-malloc-gnu.c: New file.
26002
26003 2010-08-28  Bruno Haible  <bruno@clisp.org>
26004
26005         Rename module 'realloc' -> 'realloc-gnu'.
26006         * modules/realloc-gnu: New file, copied from modules/realloc.
26007         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26008         obsolete.
26009         * modules/mgetgroups (Depends-on): Update.
26010         * doc/posix-functions/realloc.texi: Update.
26011         * NEWS: Mention the change.
26012
26013         Rename module 'calloc' -> 'calloc-gnu'.
26014         * modules/calloc-gnu: New file, copied from modules/calloc.
26015         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26016         obsolete.
26017         * doc/posix-functions/calloc.texi: Update.
26018         * NEWS: Mention the change.
26019
26020         Rename module 'malloc' -> 'malloc-gnu'.
26021         * modules/malloc-gnu: New file, copied from modules/malloc.
26022         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26023         obsolete.
26024         * modules/argp (Depends-on): Update.
26025         * modules/regex (Depends-on): Update.
26026         * doc/posix-functions/malloc.texi: Update.
26027         * NEWS: Mention the change.
26028
26029 2010-08-28  Eric Blake  <eblake@redhat.com>
26030
26031         pread, pwrite: add missing dependency
26032         * modules/pread (Depends-on): Add extensions.
26033         * modules/pwrite (Depends-on): Likewise.
26034
26035 2010-08-28  Bruno Haible  <bruno@clisp.org>
26036
26037         unistr/u*-strchr: Fix tests dependencies.
26038         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26039         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26040         Reported by Ian Beckwith <ianb@erislabs.net>.
26041
26042 2010-08-28  Bruno Haible  <bruno@clisp.org>
26043
26044         read-file: Don't occupy too much unused memory.
26045         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26046
26047 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26048             Eric Blake  <eblake@redhat.com>
26049             Bruno Haible  <bruno@clisp.org>
26050
26051         read-file: Avoid memory reallocations with regular files.
26052         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26053         (fread_file): With regular files, use the remaining length as the
26054         initial buffer size.  Check against overflow.
26055         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26056         sys_stat.
26057
26058 2010-08-28  Bruno Haible  <bruno@clisp.org>
26059
26060         ftello: Relax license.
26061         * modules/ftello (License): Relax to LGPLv2+.
26062         Reported by Eric Blake.
26063
26064 2010-08-28  Bruno Haible  <bruno@clisp.org>
26065
26066         Avoid relocwrapper link errors due to gnulib replacement functions.
26067         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26068         function.
26069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26070
26071 2010-08-28  Bruno Haible  <bruno@clisp.org>
26072
26073         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26074         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26075         defined.
26076         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26077         Suggested by Eric Blake.
26078
26079 2010-08-28  Bruno Haible  <bruno@clisp.org>
26080
26081         sys_socket, netdb: Ensure socklen_t gets defined.
26082         * modules/sys_socket (Depends-on): Add socklen.
26083         * modules/netdb (Depends-on): Likewise.
26084         * modules/getaddrinfo (Depends-on): Remove socklen.
26085         * modules/getsockopt (Depends-on): Likewise.
26086         * modules/setsockopt (Depends-on): Likewise.
26087         * tests/test-sys_socket.c: Check that socklen_t is defined.
26088         * tests/test-netdb.c: Likewise.
26089         * m4/socklen.m4: Update comments.
26090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26091
26092 2010-08-27  Eric Blake  <eblake@redhat.com>
26093
26094         login_tty: add missing dependency
26095         * modules/login_tty (Depends-on): Add pty.
26096
26097 2010-08-26  Eric Blake  <eblake@redhat.com>
26098
26099         lib-symbol-versions: fix m4 quoting
26100         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26101         format for AC_LINK_IFELSE.
26102
26103         glob: fix compile test
26104         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26105
26106         btowc: fix missing file
26107         * modules/btowc (Files): Also ship locale-fr.m4.
26108
26109         lseek: fix link test
26110         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26111         AC_LINK_IFELSE.
26112
26113         include_next: silence autoconf 2.68 warning
26114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26115         AC_COMPILE_IFELSE as special.
26116         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26117         autoconf < 2.68.
26118
26119         acl: fix compilation test
26120         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26121         AC_COMPILE_IFELSE.
26122
26123 2010-08-26  Bruno Haible  <bruno@clisp.org>
26124
26125         Modernize AC_TRY_RUN invocations.
26126         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26127         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26128         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26129         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26130         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26131         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26134         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26135         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26137         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26138         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26141         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26142         gl_MBRLEN_NUL_RETVAL): Likewise.
26143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26144         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26145         Likewise.
26146         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26147         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26148         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26149         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26150         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26151         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26152         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26153         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26154         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26155         Likewise.
26156         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26157         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26158         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26159         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26161         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26162         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26163         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26164         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26166
26167 2010-08-26  Bruno Haible  <bruno@clisp.org>
26168
26169         Modernize AC_TRY_LINK invocations.
26170         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26171         AC_TRY_LINK.
26172         * m4/argp.m4 (gl_ARGP): Likewise.
26173         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26174         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26175         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26176         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26177         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26178         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26179         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26180         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26181         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26182         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26183         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26184         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26185         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26186         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26187         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26188         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26189         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26190         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26191         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26192         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26193         Likewise.
26194         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26195         Likewise.
26196         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26197         Likewise.
26198         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26200         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26201         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26202         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26203         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26204         * m4/servent.m4 (gl_SERVENT): Likewise.
26205         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26206         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26207         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26208         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26209         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26210         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26211         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26213         * modules/tsearch-tests (configure.ac): Likewise.
26214
26215 2010-08-26  Bruno Haible  <bruno@clisp.org>
26216
26217         Modernize AC_TRY_COMPILE invocations.
26218         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26219         AC_TRY_COMPILE.
26220         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26221         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26222         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26223         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26224         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26225         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26226         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26227         * m4/lock.m4 (gl_LOCK): Likewise.
26228         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26229         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26230         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26231         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26232         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26233         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26234         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26235         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26236         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26237         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26238         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26239         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26240         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26241         extraneous semicolon.
26242
26243 2010-08-26  Jim Meyering  <meyering@redhat.com>
26244
26245         stat-time: relax license LGPL
26246         * modules/stat-time (License): Change from GPL to LGPL,
26247         with consent from all contributors, for use in libguile.
26248         Requested by Ludovic Courtès.
26249
26250 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26251
26252         poll: return immediately on POLLHUP.
26253         * lib/poll.c (poll): Always set timeout before wait_timeout is
26254         computed.
26255
26256 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26257
26258         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26259         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26260         rmdir ("dir/.//"), unlinkat.
26261
26262 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26263
26264         stdbool: avoid spurious failure with modern xlc
26265         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26266
26267 2010-08-24  Bruno Haible  <bruno@clisp.org>
26268
26269         getloadavg: simplify code
26270         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26271         gl_have_func. Update comments.
26272
26273 2010-08-24  Eric Blake  <eblake@redhat.com>
26274
26275         getloadavg: don't define SVR4 on cygwin
26276         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26277         only define SVR4 when -lkvm is required.
26278         Reported by Yaakov Selkowitz.
26279
26280 2010-08-24  Bruno Haible  <bruno@clisp.org>
26281
26282         priv-set: fix comment
26283         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26284
26285 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26286
26287         priv-set: fix comments
26288         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26289         to match code, as suggested by David Bartley in:
26290         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26291
26292 2010-08-23  Eric Blake  <eblake@redhat.com>
26293
26294         stdbool: avoid rejecting clang
26295         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26296         * tests/test-stdbool.c: Enable more tests if using the system
26297         <stdbool.h> instead of the gnulib replacement.
26298         (main): Move xlc bug test to a runtime test for all compilers.
26299         Reported by Anders Kaseorg.
26300
26301         argz: fix shell quoting issue
26302         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26303         Reported by Charles Wilson.
26304
26305 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26306             Erik Faye-Lund <kusmabite@gmail.com>
26307
26308         poll, select: handle ERROR_BROKEN_PIPE.
26309         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26310         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26311         * lib/select.c (win32_compute_revents): Do not mark a pipe
26312         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26313
26314 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26315
26316         fts: allow compilation with C++
26317         * lib/fts_.h: Specify extern "C" linkage with C++.
26318
26319 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26320
26321         Fix gnulib-tool sed script de-commentation for AIX sed.
26322         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26323         sed.
26324
26325 2010-08-17  Eric Blake  <eblake@redhat.com>
26326
26327         test-stddef: test for (some) offsetof bugs
26328         * tests/test-stddef.c: Enhance test to ensure correct type of
26329         offsetof.
26330         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26331         that we are not fixing at this time.
26332
26333 2010-08-15  Bruno Haible  <bruno@clisp.org>
26334
26335         stpncpy: Allow stpncpy to be defined as a macro.
26336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26337         if it's already correctly declared.
26338         * lib/string.in.h (stpncpy): Undefine before redefining.
26339         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26340
26341 2010-08-14  Bruno Haible  <bruno@clisp.org>
26342
26343         Rename module 'memxfrm' to 'amemxfrm'.
26344         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26345         (amemxfrm): Renamed from memxfrm.
26346         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26347         (amemxfrm): Renamed from memxfrm.
26348         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26349         * NEWS: Mention the change.
26350         * MODULES.html.sh (String handling <string.h>): Update.
26351         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26352         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26353         * lib/unicase/u16-casexfrm.c: Likewise.
26354         * lib/unicase/u32-casexfrm.c: Likewise.
26355         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26356         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26357         * lib/uninorm/u16-normxfrm.c: Likewise.
26358         * lib/uninorm/u32-normxfrm.c: Likewise.
26359         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26360         memxfrm.
26361         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26362         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26363         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26364         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26365         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26366         Suggested by Paul Eggert.
26367
26368 2010-08-14  Bruno Haible  <bruno@clisp.org>
26369
26370         Tests for module 'astrxfrm'.
26371         * modules/astrxfrm-tests: New file.
26372         * tests/test-astrxfrm.c: New file.
26373
26374         New module 'astrxfrm'.
26375         * lib/astrxfrm.h: New file.
26376         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26377         * modules/astrxfrm: New file.
26378
26379 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26380
26381         regex: Tweak doc.
26382         * doc/regex.texi (Overview): Don't mention regex.c.
26383         (GNU Regular Expression Compiling): Likewise.
26384         (Match-end-of-line Operator): Mention 'not_eol'.
26385
26386 2010-08-14  Brian Gough  <bjg@gnu.org>
26387             Bruno Haible  <bruno@clisp.org>
26388
26389         git-merge-changelog: add doc relating to use with bzr and hg.
26390         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26391
26392 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26393
26394         pthread: fix pthread.h creation for srcdir != builddir
26395         * modules/pthread (Makefile.am): Fix the rule to work also in a
26396         non-srcdir build.
26397
26398 2010-08-13  Karl Berry  <karl@gnu.org>
26399
26400         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26401         * doc/posix-*/*: force line break before @url of POSIX
26402         specifications.
26403         Suggested by Werner Lemberg.
26404
26405 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26406
26407         strtod: fix const diagnostic
26408         * lib/strtod.c (strtod): Don't assign const char * to char *,
26409         as this elicits a warning from GCC when warnings are enabled.
26410
26411 2010-08-10  Pádraig Brady <P@draigbrady.com>
26412         and Eric Blake  <eblake@redhat.com>
26413
26414         copy-acl: ignore ENOTSUP on HP-UX
26415         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26416         so that it is available for HP-UX.
26417         * lib/copy-acl.c (qcopy_acl): Use it.
26418         Reported by Patrick M. Callahan.
26419
26420 2010-08-10  Eric Blake  <eblake@redhat.com>
26421
26422         open, chown: relax license
26423         * modules/open (License): Change to LGPLv2+, with consent by all
26424         authors, for use in augeas.
26425         * modules/chown (License): Likewise.
26426         * modules/lchown (Likewise): Likewise.
26427         Requested by Adam Stokes.
26428
26429 2010-08-09  Karl Berry  <karl@gnu.org>
26430
26431         * build-aux/ar-lib: new file, import from Automake.
26432         * config/srclist.txt: autocheck for updates.
26433
26434 2010-08-09  Eric Blake  <eblake@redhat.com>
26435
26436         readlinkat: adjust client modules
26437         * modules/areadlinkat (Depends-on): Use readlinkat, not
26438         symlinkat.
26439         * modules/areadlinkat-with-size (Depends-on): Likewise.
26440
26441         mknod: be more vocal about danger of running tests as root
26442         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26443         root, since that is just asking for problems.
26444         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26445
26446         readlinkat: split into its own module
26447         * modules/symlinkat: Split readlinkat...
26448         * modules/readlinkat: ...into separate module.
26449         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26450         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26451         * lib/symlinkat.c (readlinkat): Move...
26452         * lib/readlinkat.c: ...into new file.
26453         * modules/symlinkat-tests: Split readlinkat test...
26454         * modules/readlinkat-tests: ...into separate module.
26455         * tests/test-symlinkat.c: Split...
26456         * tests/test-readlinkat.c: ...into new file.
26457         * NEWS: Document the split.
26458         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26459         * lib/unistd.in.h (readlinkat): Likewise.
26460         Suggested by Bruno Haible.
26461
26462 2010-08-08  Bruno Haible  <bruno@clisp.org>
26463
26464         memxfrm: Speed up.
26465         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26466         that usually only one call to strxfrm is necessary for each string
26467         part.
26468         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26469
26470 2010-08-07  Karl Berry  <karl@gnu.org>
26471
26472         * doc/posix-headers/limits.texi,
26473         * doc/posix-functions/malloc.texi,
26474         * doc/posix-functions/strsignal.texi: missing @item.
26475         * doc/ld-version-script.texi: spurious leading i.
26476         * doc/regex.texi (Interval Operators): no commas inside @var.
26477
26478 2010-08-01  Bruno Haible  <bruno@clisp.org>
26479
26480         Integrate the regex documentation.
26481         * doc/gnulib.texi: Define 'cn' index.
26482         (Regular expressions): New a chapter that includes regex.texi and
26483         regexprops-generic.texi.
26484         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26485         syntax.
26486
26487         Whitespace cleanup.
26488         * doc/regex.texi: Remove trailing spaces.
26489
26490         Add regex documentation.
26491         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26492         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26493         Written by Kathy A. Hargreaves and Karl Berry.
26494
26495 2010-08-01  Bruno Haible  <bruno@clisp.org>
26496
26497         link: Update documentation.
26498         * doc/posix-functions/link.texi: Update regarding Solaris.
26499
26500 2010-07-31  Bruno Haible  <bruno@clisp.org>
26501
26502         Update modules list.
26503         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26504         (String handling <string.h>): Add memcmp2, memxfrm.
26505         (Container data structures): Add xlist, xsublist, xoset.
26506         (Core language properties): Add alignof, unused-parameter.
26507         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26508         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26509         (Unibyte characters <ctype.h>): New section.
26510         (String handling <string.h>): New section.
26511         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26512         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26513         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26514         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26515         tan, tanh, tanl, y0, y1, yn.
26516         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26517         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26518         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26519         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26520         unlockpt, vdprintf, vdprintf-posix.
26521         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26522         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26523         xconcat-filename.
26524         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26525         getdtablesize, pipe2, pipe2-safer.
26526         (Security): New section.
26527         (Networking functions): Add accept4.
26528         (Signal handling): Add sigpipe.
26529         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26530         mbmemcasecoll.
26531         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26532         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26533         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26534         pipe-filter-ii.
26535         (Misc): Add argp-version-etc, login_tty, parse-duration.
26536
26537 2010-07-31  Bruno Haible  <bruno@clisp.org>
26538
26539         Improve doc in MODULES.html.
26540         * modules/linkat (Description): Add the word "function".
26541         * modules/mkfifo (Description): Likewise.
26542         * modules/mknod (Description): Likewise.
26543         * modules/remove (Description): Likewise.
26544         * modules/renameat (Description): Likewise.
26545         * modules/stat (Description): Likewise.
26546         * modules/symlink (Description): Likewise.
26547         * modules/unlink (Description): Likewise.
26548
26549 2010-07-31  Bruno Haible  <bruno@clisp.org>
26550
26551         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26552         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26553         option --enable/disable-c++ instead of --enable/disable-cxx.
26554         * NEWS: Mention the change.
26555
26556 2010-07-31  Bruno Haible  <bruno@clisp.org>
26557
26558         readlink, areadlink: Relax test a bit.
26559         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26560         alternative to ENOTDIR.
26561         * tests/test-areadlink.h (test_areadlink): Likewise.
26562         Reported by Rainer Tammer.
26563
26564 2010-07-31  Bruno Haible  <bruno@clisp.org>
26565
26566         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26567         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26568         character, perform the search using U_STRCHR.
26569         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26570         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26571         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26572         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26573         Suggested by Paolo Bonzini.
26574
26575 2010-07-31  Bruno Haible  <bruno@clisp.org>
26576
26577         unistr/u*-strstr: Fix dependencies.
26578         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26579         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26580         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26581
26582 2010-07-31  Bruno Haible  <bruno@clisp.org>
26583
26584         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26585         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26586         the beginning of the loop.
26587         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26588         cases in 'switch' statement.
26589
26590         unistr/u8-strchr: Fix several bugs.
26591         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26592         the string. When not found, return NULL, not a pointer near the end.
26593
26594         More tests for unistr/u8-strchr.
26595         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26596         that the function does not read past the first occurrence of the byte
26597         being searched.
26598         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26599         * tests/unistr/test-u16-strchr.c (main): New function.
26600         * tests/unistr/test-u32-strchr.c (main): New function.
26601
26602 2010-07-31  Bruno Haible  <bruno@clisp.org>
26603
26604         posix-modules: Ignore backup files of documentation files.
26605         * posix-modules: grep only through files named *.texi.
26606
26607 2010-07-31  Bruno Haible  <bruno@clisp.org>
26608
26609         symlinkat: Fix documentation.
26610         * doc/posix-functions/readlinkat.texi: Fix module name.
26611
26612 2010-07-31  Bruno Haible  <bruno@clisp.org>
26613
26614         fchownat: Replace also when chown has the trailing slash bug.
26615         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26616         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26617         introduced on 2010-04-10.
26618         Reported by Rainer Tammer.
26619
26620 2010-07-31  Bruno Haible  <bruno@clisp.org>
26621
26622         linkat: Work around AIX 7.1 bug.
26623         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26624         whether linkat handles trailing slash correctly. If not, replace linkat
26625         and define LINKAT_TRAILING_SLASH_BUG.
26626         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26627         check whether (fd1,file1) points to a directory if file1 or file2 ends
26628         in a slash. Code taken from lib/link.c.
26629         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26630         Reported by Rainer Tammer.
26631
26632 2010-07-31  Bruno Haible  <bruno@clisp.org>
26633
26634         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26635         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26636         This disables an xlc optimization that was causing wrong test results.
26637         Reported by Rainer Tammer.
26638
26639 2010-07-31  Bruno Haible  <bruno@clisp.org>
26640
26641         iconv: Work around AIX 6.1..7.1 bug.
26642         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26643         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26644         cross-compiling, guess no on all versions of AIX.
26645         Reported by Rainer Tammer.
26646
26647 2010-07-31  Bruno Haible  <bruno@clisp.org>
26648
26649         readlink: Relax test a bit.
26650         * tests/test-readlink.h (test_readlink): Allow different errno value
26651         when readlink is called with a file name that ends in / and refers to
26652         a file.
26653         Suggested by Eric Blake.
26654         Reported by Rainer Tammer.
26655
26656 2010-07-31  Bruno Haible  <bruno@clisp.org>
26657
26658         copysign: Does not require -lm on glibc systems.
26659         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26660         gl_COMMON_DOUBLE_MATHFUNC.
26661         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26662
26663 2010-07-31  Bruno Haible  <bruno@clisp.org>
26664
26665         duplocale: Work around AIX 7.1 bug.
26666         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26667         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26668         * lib/duplocale.c (rpl_duplocale): Update comment.
26669         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26670         Reported by Rainer Tammer.
26671
26672 2010-07-30  Bruno Haible  <bruno@clisp.org>
26673
26674         dirfd: Avoid link error on AIX 7.1.
26675         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26676         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26677         exist, set REPLACE_DIRFD.
26678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26679         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26680         * doc/posix-functions/dirfd.texi: Update.
26681         Reported by Rainer Tammer.
26682
26683 2010-07-30  Eric Blake  <eblake@redhat.com>
26684
26685         strtod: next round of AIX fixes
26686         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26687         exponent.
26688         * tests/test-strtod.c (main): Enhance tests.
26689         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26690         Reported by Rainer Tammer.
26691
26692         futimens: fix configure check
26693         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26694         Reported by Bruno Haible.
26695
26696 2010-07-30  Bruno Haible  <bruno@clisp.org>
26697
26698         getline: Update regarding AIX.
26699         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26700         Reported by Rainer Tammer.
26701
26702 2010-07-30  Bruno Haible  <bruno@clisp.org>
26703
26704         wcwidth: Drop replacement on AIX 7.
26705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26706         AIX 7.
26707         Reported by Rainer Tammer.
26708
26709 2010-07-30  Bruno Haible  <bruno@clisp.org>
26710
26711         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26713         a 'char *'.
26714         Reported by Rainer Tammer.
26715
26716 2010-07-30  Bruno Haible  <bruno@clisp.org>
26717
26718         unlink: Update regarding AIX.
26719         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26720         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26721         Reported by Rainer Tammer.
26722
26723 2010-07-30  Bruno Haible  <bruno@clisp.org>
26724
26725         symlink: Update regarding AIX.
26726         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26727         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26728         Reported by Rainer Tammer.
26729
26730 2010-07-30  Bruno Haible  <bruno@clisp.org>
26731
26732         strndup: Update regarding AIX.
26733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26734         AIX 7.
26735         Reported by Rainer Tammer.
26736
26737 2010-07-30  Bruno Haible  <bruno@clisp.org>
26738
26739         stat: Update regarding AIX.
26740         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26741         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26742         Reported by Rainer Tammer.
26743
26744 2010-07-30  Bruno Haible  <bruno@clisp.org>
26745
26746         truncl: Fix autoconf test.
26747         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26748         whether truncl works.
26749         Reported by Rainer Tammer.
26750
26751 2010-07-30  Bruno Haible  <bruno@clisp.org>
26752
26753         round: Update regarding AIX.
26754         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26755         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26756         Reported by Rainer Tammer.
26757
26758 2010-07-30  Bruno Haible  <bruno@clisp.org>
26759
26760         rename: Update regarding AIX.
26761         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26762         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26763         Reported by Rainer Tammer.
26764
26765 2010-07-30  Bruno Haible  <bruno@clisp.org>
26766
26767         printf.m4: Update regarding AIX.
26768         * m4/printf.m4: Update comments regarding AIX.
26769         Reported by Rainer Tammer.
26770
26771 2010-07-30  Bruno Haible  <bruno@clisp.org>
26772
26773         iconv: Update regarding AIX.
26774         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26775         AIX 7.
26776         Reported by Rainer Tammer.
26777
26778 2010-07-30  Bruno Haible  <bruno@clisp.org>
26779
26780         getopt: Update regarding AIX.
26781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26782         no on AIX.
26783         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26784         Reported by Rainer Tammer.
26785
26786 2010-07-30  Bruno Haible  <bruno@clisp.org>
26787
26788         ldexpl; Update regarding AIX.
26789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26790         on AIX 7.
26791         Reported by Rainer Tammer.
26792
26793 2010-07-30  Bruno Haible  <bruno@clisp.org>
26794
26795         frexpl: Update regarding AIX.
26796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26797         on AIX 7.
26798         Reported by Rainer Tammer.
26799
26800 2010-07-30  Bruno Haible  <bruno@clisp.org>
26801
26802         open, fopen: Update regarding AIX.
26803         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26804         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26805         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26806         * doc/posix-functions/fopen.texi: Likewise.
26807         Reported by Rainer Tammer.
26808
26809 2010-07-30  Bruno Haible  <bruno@clisp.org>
26810
26811         chown: Update doc regarding AIX.
26812         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26813         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26814         Reported by Rainer Tammer.
26815
26816 2010-07-30  Eric Blake  <eblake@redhat.com>
26817
26818         strtod: fix bug in replacement function on AIX
26819         * lib/strtod.c (strtod): Special case broken "0x" parse in
26820         underlying strtod.
26821         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26822         * doc/posix-functions/strtod.texi (strtod): Likewise.
26823         Reported by Rainer Tammer.
26824
26825 2010-07-30  Bruno Haible  <bruno@clisp.org>
26826
26827         mbrlen: Fix cross-compilation guess for AIX.
26828         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26829         guess. Leftover from 2008-12-22.
26830
26831 2010-07-30  Bruno Haible  <bruno@clisp.org>
26832
26833         mbrtowc: Fix cross-compilation guess for AIX.
26834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26835         guess. Leftover from 2008-12-21.
26836
26837 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26838
26839         init.sh: work around trap limitation of some shells
26840         * tests/init.sh (setup_): Move exit trap outside of shell function.
26841
26842 2010-07-29  Eric Blake  <eblake@redhat.com>
26843
26844         strtod: aid debugging
26845         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26846         understanding why strtod is rejected.
26847
26848 2010-07-28  Bruno Haible  <bruno@clisp.org>
26849
26850         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26851         * lib/unistr/u8-chr.c: Include <string.h>.
26852         * tests/unistr/test-u8-chr.c: Likewise.
26853         * tests/unistr/test-u16-chr.c: Likewise.
26854         * tests/unistr/test-u32-chr.c: Likewise.
26855         * tests/unistr/test-u8-strchr.c: Likewise.
26856         * tests/unistr/test-u16-strchr.c: Likewise.
26857         * tests/unistr/test-u32-strchr.c: Likewise.
26858         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26859         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26860         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26861         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26862
26863 2010-07-28  Bruno Haible  <bruno@clisp.org>
26864
26865         Use spaces for indentation, not tabs.
26866         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26867
26868 2010-07-27  Bruno Haible  <bruno@clisp.org>
26869
26870         mbspcasecmp: Fix function specification.
26871         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26872         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26873         Reported by Eric Blake <eblake@redhat.com>.
26874
26875 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26876
26877         timespec: use cast and not conditional, as truncation isn't possible
26878         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26879         instead of a conditional.  Comment about the situation in more detail.
26880         This undoes most of the 2009-10-29 patch.
26881
26882 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26883
26884         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26885         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26886         * lib/unistr/u8-strchr.c: Likewise.
26887         * modules/unistr/u8-chr: Depend on memchr.
26888
26889         unistr/u*-strchr: add tests
26890         * modules/unistr/u8-strchr-tests: New file.
26891         * modules/unistr/u16-strchr-tests: New file.
26892         * modules/unistr/u32-strchr-tests: New file.
26893         * tests/unistr/test-strchr.h: New file.
26894         * tests/unistr/test-u8-strchr.c: New file.
26895         * tests/unistr/test-u16-strchr.c: New file.
26896         * tests/unistr/test-u32-strchr.c: New file.
26897
26898         unistr/u*-chr: test multibyte sequences more
26899         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26900         test vector.
26901         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26902         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26903         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26904
26905         unistr/u*-chr: test multibyte sequences
26906         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26907
26908         unistr/u*-chr: prepare for multibyte tests
26909         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26910         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26911         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26912         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26913         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26914         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26915
26916 2010-07-18  Bruno Haible  <bruno@clisp.org>
26917
26918         unistr/u8-strchr: Optimize non-ASCII argument case.
26919         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26920         because the first byte often matches anyway.
26921         Reported by Pádraig Brady <P@draigbrady.com>.
26922
26923 2010-07-15  Karl Berry  <karl@gnu.org>
26924
26925         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26926
26927 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26928
26929         getcwd: on Solaris, work better if ancestors are inaccessible
26930         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26931         buffer and size, try again with a large buffer.  This works better
26932         on Solaris, since its getcwd succeeds even if the path to the root
26933         is inaccessible, and this is helpful in common cases such as .zfs
26934         hidden directories.  Problem reported by J Chapman Flack in
26935         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26936         Use system getcwd if it's declared, not merely if it's partly
26937         working; use the partly-working test only to avoid needless effort
26938         if the system getcwd fails.
26939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26940         comment that was already obsolete and is now even more obsolete.
26941         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26942         now might call strdup.
26943
26944 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26945
26946         pthread: Add enough so that coreutils/src/sort.c compiles.
26947         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26948         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26949         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26950         Include <sys/types.h>, in case it defines pthread_t.
26951         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26952         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26953         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26954         (pthread_rwlockattr_t, pthread_spinlock_t):
26955         New typedefs, if HAVE_PTHREAD_T is not defined.
26956         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26957         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26958         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26959         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26960         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26961         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26962         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26963         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26964         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26965         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26966         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26967         New macros.
26968         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26969         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26970         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26971         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26972         (pthread_spin_unlock): New dummy functions.
26973         (pthread_create): Return EAGAIN; don't set errno.
26974         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26975         require AC_C_INLINE.
26976         * modules/pthread (Depends-on): Add sched, time.
26977         (pthread.h): Use AM_V_GEN.
26978
26979 2010-07-13  Bruno Haible  <bruno@clisp.org>
26980
26981         striconveh: Don't malloc memory if the result buffer is sufficient.
26982         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26983         buffer if its size is sufficient.
26984         Reported by Ludovic Courtès <ludo@gnu.org>.
26985
26986 2010-07-13  Bruno Haible  <bruno@clisp.org>
26987
26988         strtod: Add safety check.
26989         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26990
26991 2010-07-12  Bruno Haible  <bruno@clisp.org>
26992
26993         Unify tests that set gl_cv_func_ldexpl_no_libm.
26994         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26995         gl_FUNC_LDEXPL.
26996         (gl_FUNC_LDEXPL): Invoke it.
26997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26998
26999 2010-07-12  Bruno Haible  <bruno@clisp.org>
27000
27001         Unify tests that set gl_cv_func_ldexp_no_libm.
27002         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27003         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27004         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27005         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27006         * modules/strtod (Files): Add m4/ldexp.m4.
27007
27008 2010-07-12  Bruno Haible  <bruno@clisp.org>
27009
27010         Unify tests that set gl_cv_func_frexpl_no_libm.
27011         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27012         gl_FUNC_FREXPL_NO_LIBM.
27013         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27015
27016 2010-07-12  Bruno Haible  <bruno@clisp.org>
27017
27018         Unify tests that set gl_cv_func_frexp_no_libm.
27019         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27020         gl_FUNC_FREXP_NO_LIBM.
27021         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27022         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27023
27024 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27025
27026         memcoll: clarify sizes versus lengths, document better, and tweak perf
27027         * lib/memcoll.c (strcoll_loop, memcoll0):
27028         Improve quality of descriptive comments.  Name variables
27029         consistently as to whether they are lengths (which do not include
27030         terminating null) versus sizes (which do).
27031         * lib/xmemcoll.c (xmemcoll0): Likewise.
27032         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27033         returned when s1size == 0; this is easier to compile and saves
27034         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27035
27036 2010-07-12  Bruno Haible  <bruno@clisp.org>
27037
27038         Tests for module '_Exit'.
27039         * modules/_Exit-tests: New file.
27040         * tests/test-_Exit.sh: New file.
27041         * tests/test-_Exit.c: New file.
27042
27043         New module '_Exit'.
27044         * lib/stdlib.in.h (__attribute__): New macro.
27045         (_Exit): New declaration.
27046         * lib/_Exit.c: New file.
27047         * m4/_Exit.m4: New file.
27048         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27049         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27050         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27051         * modules/_Exit: New file.
27052         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27053         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27054
27055 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27056
27057         strtod: make it more-accurate typically, and don't require libm
27058         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27059         Include limits.h.  Don't include string.h.
27060         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27061         (locale_isspace): New function, so that no casts are needed to
27062         check whether *s is a space.
27063         (ldexp): Provide an unused dummy if not available.
27064         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27065         (strtod): Use them.  This implementation prefers to use the
27066         underlying strtod if available, falling back on our own code
27067         only to fix known bugs.  This is more likely to produce an
27068         accurate result.  Also, it avoids the use of libm functions.
27069         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27070         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27071         was absent, but it caused a test failure with coreutils.
27072         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27073         with libm.
27074         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27075         * modules/strtod-tests (Makefile.am): Likewise.
27076
27077 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27078             Bruno Haible  <bruno@clisp.org>
27079
27080         unistr/u8-strchr: Optimize ASCII argument case.
27081         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27082
27083 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27084
27085         (x)memcoll: minor tweaks
27086         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27087         is after the type that it qualifies.
27088         (memcoll0): Likewise.
27089         * lib/memcoll.h (memcoll0): Likewise.
27090         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27091         * lib/xmemcoll.h (xmemcoll0): Likewise.
27092         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27093         differs from memcoll in that the NUL byte is part of the argument.
27094         Omit the abort-checks, as performance is a real issue here.  Plus,
27095         the checks were wrong anyway (an off-by-one error).  Omit local
27096         variable 'diff', as it's a bit clearer that way.
27097         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27098         no longer needed.
27099
27100 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27101
27102         (x)memcoll: speedup when input is known to be NUL delimited
27103         * lib/memcoll.c: Include stdlib.
27104         (memcoll0): New function.
27105         (strcoll_loop): New function, refactored for use in both memcoll
27106         and memcoll0.
27107         * lib/memcoll.h (memcoll0): Add prototype.
27108         * lib/xmemcoll.c (xmemcoll0): New function.
27109         (collate_error): New function, refactored for use in both xmemcoll
27110         and xmemcoll0.
27111         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27112         * m4/memcoll.m4: add inline invocation.
27113
27114 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27115
27116         * build-aux/bootstrap: Remove any local translations
27117         from the translation project synchronization directory,
27118         so that local only translations are not distributed.
27119
27120 2010-07-04  Bruno Haible  <bruno@clisp.org>
27121
27122         fsusage: Clarify which code applies to which platforms.
27123         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27124         platform.
27125         * lib/fsusage.c (get_fs_usage): Likewise.
27126
27127 2010-07-04  Bruno Haible  <bruno@clisp.org>
27128
27129         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27130         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27131         Reported by Martin Lambers <marlam@marlam.de>.
27132
27133 2010-07-04  Jim Meyering  <meyering@redhat.com>
27134
27135         hash: once again explicitly disallow insertion of NULL
27136         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27137         inserting a NULL pointer cannot work with these functions.
27138         Add a comment with details.
27139         This reverts part of the 2010-07-01 commit, 5bef1a35
27140         "hash: extend module to deal with non-pointer keys".
27141
27142 2010-07-01  Bruno Haible  <bruno@clisp.org>
27143
27144         stdbool: Update doc.
27145         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27146         Info from Christian Weisgerber <naddy@mips.inka.de>.
27147
27148 2010-07-01  Jim Meyering  <meyering@redhat.com>
27149
27150         hash: extend module to deal with non-pointer keys
27151         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27152         but that allows insertion of non-pointer entries.
27153         Do not disallow an ENTRY value of NULL.
27154         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27155         * lib/hash.h (hash_insert0): Declare.
27156
27157 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27158
27159         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27160         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27161         not present (i.e. with autoconf 2.59 and when using gettextize, not
27162         gnulib), require AC_GNU_SOURCE instead.
27163
27164 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27165
27166         idpriv-drop: Fix tests.
27167         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27168         not to the test-idpriv-droptemp program.
27169
27170 2010-06-29  Bruno Haible  <bruno@clisp.org>
27171
27172         string: Fix syntax error with g++ 2.96.
27173         * lib/string.in.h (__pure__): Remove definition.
27174         (_GL_ATTRIBUTE_PURE): New macro.
27175         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27176         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27177         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27178
27179 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27180
27181         unitypes: Fix bug introduced on 2010-05-18.
27182         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27183
27184 2010-06-22  Eric Blake  <eblake@redhat.com>
27185
27186         memmem: slight optimization
27187         * lib/str-two-way.h (critical_factorization): Update comments.
27188         Reduce work during factorization phase.
27189         Reported by Carlos Bueno <carlos@bueno.org>.
27190
27191 2010-06-21  Bruno Haible  <bruno@clisp.org>
27192
27193         Fix HAVE_CALLOC_POSIX misnomer.
27194         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27195         !HAVE_CALLOC_POSIX.
27196         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27197         HAVE_CALLOC_POSIX.
27198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27199         instead of HAVE_CALLOC_POSIX.
27200         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27201         HAVE_CALLOC_POSIX.
27202
27203         Use modern idiom for calloc() replacement.
27204         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27205         AC_FUNC_CALLOC.
27206         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27207         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27208         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27209         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27210         (gl_REPLACE_CALLOC): New macro.
27211
27212 2010-06-21  Bruno Haible  <bruno@clisp.org>
27213
27214         Fix HAVE_REALLOC_POSIX misnomer.
27215         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27216         !HAVE_REALLOC_POSIX.
27217         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27218         HAVE_REALLOC_POSIX.
27219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27220         instead of HAVE_REALLOC_POSIX.
27221         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27222         HAVE_REALLOC_POSIX.
27223
27224         Use modern idiom for realloc() replacement.
27225         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27226         AC_FUNC_REALLOC.
27227         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27228         Autoconf's AC_FUNC_REALLOC.
27229         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27230         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27231         (gl_REPLACE_REALLOC): New macro.
27232         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27233
27234 2010-06-21  Bruno Haible  <bruno@clisp.org>
27235
27236         Fix HAVE_MALLOC_POSIX misnomer.
27237         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27238         !HAVE_MALLOC_POSIX.
27239         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27240         HAVE_MALLOC_POSIX.
27241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27242         instead of HAVE_MALLOC_POSIX.
27243         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27244         HAVE_MALLOC_POSIX.
27245
27246         Use modern idiom for malloc() replacement.
27247         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27248         AC_FUNC_MALLOC.
27249         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27250         Autoconf's AC_FUNC_MALLOC.
27251         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27252         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27253         (gl_REPLACE_MALLOC): New macro.
27254         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27255
27256 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27257
27258         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27259         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27260         This macro takes 3 arguments, not 4.
27261
27262 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27263
27264         ipv6: fix detection under mingw
27265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27266         in6_addr.
27267
27268 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27269
27270         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27271         that strtod() works when cross-compiling to a glibc version known
27272         to work.
27273
27274 2010-06-15  Bruno Haible  <bruno@clisp.org>
27275
27276         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27277
27278 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27279
27280         select: Correct timeout.
27281         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27282
27283 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27284
27285         git-version-gen: init shell var to avoid env var influence
27286         * build-aux/git-version-gen (v): Init shell var to empty.
27287
27288 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27289
27290         priv-set: Don't assume that priv.h exists merely because getppriv does.
27291         See Jan Andersen's bug report about AIX 5L in
27292         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27293         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27294         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27295         * lib/priv-set.h: Likewise.
27296         * tests/test-priv-set.c: Likewise.
27297
27298 2010-06-13  Bruno Haible  <bruno@clisp.org>
27299
27300         relocatable: Make it easier to test whether to install wrappers.
27301         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27302         RELOCATABLE_VIA_WRAPPER.
27303
27304 2010-06-13  Bruno Haible  <bruno@clisp.org>
27305
27306         gnulib-tool: Display specified modules and dependencies differently.
27307         * gnulib-tool (func_show_module_list): New function.
27308         (func_import, func_create_testdir): Invoke it.
27309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27310
27311 2010-06-13  Bruno Haible  <bruno@clisp.org>
27312
27313         gnulib-tool: Align code of func_import and func_create_testdir.
27314         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27315         specified_modules.
27316
27317 2010-06-12  Jim Meyering  <meyering@redhat.com>
27318
27319         test-inttostr: avoid spurious failure on Solaris 9
27320         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27321         to accept "%ju".  Reported by Bruno Haible.
27322
27323 2010-06-11  Jim Meyering  <meyering@redhat.com>
27324
27325         test-sys_socket: mark variables as used more readably
27326         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27327         as "used" explicitly via (void) statement casts.  This is more
27328         readable than using them in an artificial return expression.
27329         Suggestion from Bruno Haible.
27330
27331 2010-06-11  Bruno Haible  <bruno@clisp.org>
27332
27333         Avoid some more warnings from "gcc -Wwrite-strings".
27334         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27335         to 'const char *'.
27336         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27337         * tests/test-c-strcasestr.c (main): Likewise.
27338         * tests/test-mbscasestr1.c (main): Likewise.
27339         * tests/test-mbscasestr2.c (main): Likewise.
27340         * tests/test-memmem.c (main): Likewise.
27341         * tests/test-strstr.c (main): Likewise.
27342         * tests/test-strcasestr.c (main): Likewise.
27343
27344 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27345
27346         init.sh: change framework_failure_ to fail with status 99, not 1
27347         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27348         automake's parallel-tests rule that this is an unexpected failure,
27349         even if the test is listed in XFAIL_TESTS.
27350
27351 2010-06-11  Jim Meyering  <meyering@redhat.com>
27352
27353         test-inttostr: avoid warnings about 4-6KB literal strings
27354         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27355         Include "macros.h", for its definition of ASSERT.
27356         (CK): s/assert/ASSERT/
27357         * modules/inttostr-tests (Files): Add macros.h.
27358
27359         init.sh: don't use $ME_ or skip_ before they are defined
27360         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27361         their first uses.  Also hoist their companions: warn_, fail_,
27362         framework_failure_, $stderr_fileno.  Prompted by a patch from
27363         Stefano Lattarini.
27364
27365         test-sys_socket: avoid set-but-not-used warnings from gcc
27366         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27367         avoid warning about set-but-not-used variables.
27368
27369         test-xvasprintf: avoid 'const' discard warnings
27370         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27371         "const" when assigning from literal strings.
27372         (test_xasprintf): Add "void" in function argument list to placate
27373         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27374
27375         tests: avoid compilation warnings in argmatch and exclude tests...
27376         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27377         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27378         Since it always exits, declare with the "noreturn" attribute.
27379         * tests/test-argmatch.c: Likewise.
27380
27381         tests: avoid 'const' discard warnings in mbsstr tests
27382         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27383         * tests/test-mbsstr2.c (main): Likewise.
27384
27385         test-verify: avoid warning from gcc's -Wmissing-declarations
27386         * tests/test-verify.c (function): Declare to be static.
27387
27388         test-inttostr.c: include <string.h> for use of strcmp
27389         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27390
27391         test-linkat: avoid failed assertion on "other" architectures
27392         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27393         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27394         sparc: https://bugs.launchpad.net/bugs/591968
27395
27396 2010-06-11  Jim Meyering  <meyering@redhat.com>
27397
27398         printf.m4: avoid autoconf's "Expanded Before Required" warning
27399         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27400         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27401         autoconf warning.
27402
27403 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27404
27405         Replacement header templates are now named with ".in", not "_".
27406         * doc/gnulib-intro.texi: Correct.
27407
27408 2010-06-10  Jim Meyering  <meyering@redhat.com>
27409
27410         inttostr-tests: depend on snprintf, not snprintf-posix
27411         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27412         snprintf-posix, to avoid this aclocal failure:
27413           missing file gnulib-tests/vasnprintf.c
27414           configure.ac:45: error: expected source file, required through \
27415           AC_LIBSOURCES, not found
27416
27417 2010-06-10  Jim Meyering  <meyering@redhat.com>
27418
27419         inttostr: add a new function, inttostr, and tests
27420         The namesake function was not available.  The existence of the
27421         template file, inttostr.c makes its addition nontrivial.
27422         * lib/anytostr.c: Rename from inttostr.c.
27423         (anytostr): Rename from inttostr.
27424         * lib/inttostr.c: New file.
27425         * modules/inttostr (Files): Add anytostr.c.
27426         (Makefile.am): Set lib_SOURCES instead of ...
27427         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27428         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27429         * lib/offtostr.c: Likewise.
27430         * lib/uinttostr.c: Likewise.
27431         * lib/umaxtostr.c: Likewise.
27432         * modules/inttostr-tests: New file.
27433         * tests/test-inttostr.c: New file.  Test these functions.
27434
27435 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27436             Bruno Haible  <bruno@clisp.org>
27437
27438         Add "Extending Gnulib" chapter to manual.
27439         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27440         chapter.
27441         (Extending Gnulib): New chapter.
27442         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27443         chapter.
27444
27445 2010-06-09  Bruno Haible  <bruno@clisp.org>
27446
27447         Avoid relocwrapper link errors due to gnulib replacement functions.
27448         * lib/areadlink.c: Use the system's malloc, realloc functions.
27449         (areadlink): Set errno to ENOMEM explicitly.
27450         * modules/areadlink (Depends-on): Remove malloc-posix.
27451         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27452
27453 2010-06-09  Bruno Haible  <bruno@clisp.org>
27454
27455         Avoid relocwrapper link errors due to gnulib replacement functions.
27456         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27457         * lib/malloca.c: Likewise.
27458         * lib/relocatable.c: Likewise.
27459         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27460         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27461         * lib/setenv.c: Use the system's malloc, realloc functions.
27462         * lib/strerror.c: Use the system's sprintf function.
27463         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27464
27465 2010-06-04  Bruno Haible  <bruno@clisp.org>
27466
27467         Prefer documented low-level autoconf macro names.
27468         * m4/lib-link.m4: Use m4_translit instead of translit.
27469         * m4/environ.m4: Likewise.
27470         * m4/mathfunc.m4: Likewise.
27471         * m4/onceonly.m4: Likewise.
27472         * m4/stdint.m4: Likewise.
27473         Suggested by Eric Blake.
27474
27475 2010-06-04  Martin Lambers  <marlam@marlam.de>
27476             Bruno Haible  <bruno@clisp.org>
27477
27478         havelib: Allow library names with '+' characters.
27479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27480         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27481
27482 2010-06-09  Bruno Haible  <bruno@clisp.org>
27483
27484         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27485         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27486         realloc failed.
27487
27488 2010-06-08  Peter Simons  <simons@cryp.to>
27489
27490         maint.mk: make the news-check rule more configurable
27491         * top/maint.mk (news-check-lines-spec): New variable.
27492         (news-check): Use "sed -n 1,10p" in place of "head".
27493
27494 2010-06-07  Jim Meyering  <meyering@redhat.com>
27495
27496         do-release-commit-and-tag: fix typo in --help
27497         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27498
27499         regex: avoid new dead-code warning with gcc-4.6.0
27500         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27501         if-block containing a while-loop.  It's been unused for at least
27502         5 years.
27503
27504 2010-06-05  Bruno Haible  <bruno@clisp.org>
27505
27506         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27507         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27508
27509 2010-06-04  Bruno Haible  <bruno@clisp.org>
27510
27511         Update to GNU gettext 0.18.1.
27512         * modules/gettext (configure.ac): Require gettext infrastructure from
27513         version 0.18.1.
27514
27515 2010-06-03  Bruno Haible  <bruno@clisp.org>
27516
27517         Don't use AC_LIBOBJ with file names in subdirectories.
27518         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27519         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27520         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27521         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27522         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27523         gl_LIBUNISTRING_LIBSOURCE.
27524         (Makefile.am): Augment lib_SOURCES here, conditionally.
27525         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27526
27527 2010-06-03  Bruno Haible  <bruno@clisp.org>
27528
27529         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27530         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27531         expansion does not end with a newline.
27532         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27533         unnecessary newline.
27534
27535 2010-06-03  Bruno Haible  <bruno@clisp.org>
27536
27537         Reduce dependencies.
27538         * tests/test-quotearg.h: New file, extracted from
27539         tests/test-quotearg.c.
27540         * tests/test-quotearg-simple.c: New file, extracted from
27541         tests/test-quotearg.c.
27542         * tests/test-quotearg.c: Don't include <ctype.h>.
27543         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27544         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27545         use_quote_double_quotes, use_quotearg_colon): Moved to
27546         tests/test-quotearg.h.
27547         (results_g, flag_results, custom_quotes, custom_results): Moved
27548         to tests/test-quotearg-simple.c.
27549         (main): Moved the part that does not depend on gettext to
27550         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27551         performed.
27552         * modules/quotearg-simple: New file.
27553         * modules/quotearg-simple-tests: New file.
27554         * modules/quotearg (Depends-on): Add quotearg-simple.
27555         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27556         (Files): Add tests/test-quotearg.h.
27557         Reported by Paolo Bonzini.
27558
27559 2010-06-03  Bruno Haible  <bruno@clisp.org>
27560
27561         Reduce dependencies.
27562         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27563
27564 2010-06-03  Bruno Haible  <bruno@clisp.org>
27565
27566         time: Undefine more broken macros.
27567         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27568         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27569         Reported by Eric Blake.
27570
27571 2010-06-03  Bruno Haible  <bruno@clisp.org>
27572
27573         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27574         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27575         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27576         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27577         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27578         Reported by Ludovic Courtès <ludo@gnu.org>.
27579
27580 2010-06-02  Eric Blake  <eblake@redhat.com>
27581
27582         time: work with mingw + pthreads-win32 library
27583         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27584         if timespec is defined only in pthread.h.
27585         * modules/time (Makefile.am): Substitute it.
27586         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27587         <pthread.h>, when needed.
27588         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27589         from the library.
27590
27591 2010-05-31  Bruno Haible  <bruno@clisp.org>
27592
27593         Avoid expanding two macros in the wrong order.
27594         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27595         gl_LIBUNISTRING if it is defined.
27596         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27597         autoconf >= 2.64.
27598         Reported by Ludovic Courtès <ludo@gnu.org>.
27599
27600 2010-05-27  Jim Meyering  <meyering@redhat.com>
27601
27602         maint.mk: also prohibit "#undef" of always-defined symbols
27603         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27604         Allow more than one space before the symbol name.
27605         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27606         the regexp uses alternation.
27607
27608 2010-05-26  Eric Blake  <eblake@redhat.com>
27609
27610         maint.mk: avoid echo -e
27611         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27612         Convert all uses of echo -* to printf.
27613         Reported by Matthias Bolte.
27614
27615 2010-05-25  Bruno Haible  <bruno@clisp.org>
27616
27617         Update to GNU gettext 0.18, part 2.
27618         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27619         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27620
27621 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27622
27623         Add missing include in test-pwrite.c.
27624         * tests/test-pwrite.c: Include string.h, for strcmp.
27625
27626 2010-05-24  Bruno Haible  <bruno@clisp.org>
27627
27628         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27629
27630 2010-05-24  Bruno Haible  <bruno@clisp.org>
27631
27632         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27633         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27634         iconveh_error argument.
27635         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27636         U_STRCONV_TO_LOCALE.
27637         * lib/unistr/u16-strcoll.c: Likewise.
27638         * lib/unistr/u32-strcoll.c: Likewise.
27639         * modules/unistr/u8-strcoll (Depends-on): Add
27640         uniconv/u8-strconv-to-enc, localcharset. Remove
27641         uniconv/u8-strconv-to-locale.
27642         (configure.ac): Bump version number.
27643         * modules/unistr/u16-strcoll (Depends-on): Add
27644         uniconv/u16-strconv-to-enc, localcharset. Remove
27645         uniconv/u16-strconv-to-locale.
27646         (configure.ac): Bump version number.
27647         * modules/unistr/u32-strcoll (Depends-on): Add
27648         uniconv/u32-strconv-to-enc, localcharset. Remove
27649         uniconv/u32-strconv-to-locale.
27650         (configure.ac): Bump version number.
27651
27652 2010-05-24  Bruno Haible  <bruno@clisp.org>
27653
27654         Avoid a test failure on NetBSD 5.0.
27655         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27656         an iconv() bug.
27657
27658 2010-05-24  Bruno Haible  <bruno@clisp.org>
27659
27660         Adjust #include directive style.
27661         * modules/regex (Includes): Recommend to write <regex.h>.
27662
27663 2010-05-24  Bruno Haible  <bruno@clisp.org>
27664
27665         regex: Don't require alloca.
27666         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27667         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27668         only inside if (0).
27669
27670 2010-05-23  Jim Meyering  <meyering@redhat.com>
27671
27672         test-renameat.c: include <sys/stat.h>
27673         * tests/test-renameat.c: Include <sys/stat.h>; required for
27674         definition of S_IS* macros.
27675
27676 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27677
27678         Update maintainer documentation for 'relocatable-prog' module.
27679         * doc/relocatable-maint.texi: Update.
27680         Comments by Bruno Haible.
27681
27682 2010-05-23  Bruno Haible  <bruno@clisp.org>
27683
27684         git-merge-changelog: Enable --split-merged-entry by default.
27685         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27686         (usage): Don't mention this option any more.
27687         Reported by Ralf Wildenhues.
27688
27689 2010-05-23  Jim Meyering  <meyering@redhat.com>
27690
27691         test-pwrite: do not leave behind a test file named "out"
27692         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27693         The trivial-looking use of init.sh is really necessary.
27694         It ensures that the temporary file, "out", is created in
27695         a temporary directory, and removed upon termination.
27696         * tests/test-pwrite.sh: Re-add file.
27697         * modules/pwrite-tests: Reference it.
27698
27699 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27700
27701         Fix output redirection buglet in init.sh.
27702         * tests/init.sh: Fix redirection of stderr.
27703
27704 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27705
27706         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27707
27708 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27709
27710         * modules/valgrind-tests: New file.
27711         * m4/valgrind-tests.m4: New file.
27712         * doc/valgrind-tests.texi: New file.
27713         * doc/gnulib.texi (Running self-tests under valgrind): New
27714         section.
27715
27716 2010-05-19  Bruno Haible  <bruno@clisp.org>
27717
27718         Clean up dead code in recent commit.
27719         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27720         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27721         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27722         Suggested by Paolo Bonzini.
27723
27724 2010-05-19  Bruno Haible  <bruno@clisp.org>
27725
27726         Avoid valgrind error reports from libunistring.
27727         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27728         * modules/libunistring (Files): Add it.
27729         * modules/libunistring-optional (Files): Likewise.
27730
27731 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27732             Bruno Haible  <bruno@clisp.org>
27733
27734         New module 'libunistring-optional'.
27735         * modules/libunistring-optional: New file.
27736         * m4/libunistring-base.m4: New file.
27737         * m4/libunistring-optional.m4: New file.
27738         * lib/unicase.in.h: Renamed from lib/unicase.h.
27739         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27740         * lib/unictype.in.h: Renamed from lib/unictype.h.
27741         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27742         * lib/uniname.in.h: Renamed from lib/uniname.h.
27743         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27744         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27745         * lib/unistr.in.h: Renamed from lib/unistr.h.
27746         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27747         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27748         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27749         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27750         gl_LIBUNISTRING. If the library was found, determine the installed
27751         version and set LIBUNISTRING_VERSION.
27752         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27753         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27754         handle a configuration option --with-included-libunistring.
27755         * modules/libunistring (Files): Add m4/absolute-header.m4.
27756         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27757         Add m4/libunistring-base.m4.
27758         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27759         (Makefile.am): Build unicase.h from unicase.in.h.
27760         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27761         Add m4/libunistring-base.m4.
27762         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27763         (Makefile.am): Build uniconv.h from uniconv.in.h.
27764         * modules/unictype/base (Files): Use unictype.in.h instead of
27765         unictype.h. Add m4/libunistring-base.m4.
27766         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27767         (Makefile.am): Build unictype.h from unictype.in.h.
27768         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27769         Add m4/libunistring-base.m4.
27770         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27771         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27772         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27773         Add m4/libunistring-base.m4.
27774         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27775         (Makefile.am): Build uniname.h from uniname.in.h.
27776         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27777         Add m4/libunistring-base.m4.
27778         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27779         (Makefile.am): Build uninorm.h from uninorm.in.h.
27780         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27781         unistdio.h. Add m4/libunistring-base.m4.
27782         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27783         (Makefile.am): Build unistdio.h from unistdio.in.h.
27784         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27785         Add m4/libunistring-base.m4.
27786         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27787         (Makefile.am): Build unistr.h from unistr.in.h.
27788         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27789         Add m4/libunistring-base.m4.
27790         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27791         (Makefile.am): Build unitypes.h from unitypes.in.h.
27792         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27793         Add m4/libunistring-base.m4.
27794         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27795         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27796         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27797         uniwidth.h. Add m4/libunistring-base.m4.
27798         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27799         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27800         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27801         instead of augmenting lib_SOURCES.
27802         * modules/unicase/empty-suffix-context: Likewise.
27803         * modules/unicase/locale-language: Likewise.
27804         * modules/unicase/tolower: Likewise.
27805         * modules/unicase/totitle: Likewise.
27806         * modules/unicase/toupper: Likewise.
27807         * modules/unicase/u8-casecmp: Likewise.
27808         * modules/unicase/u8-casecoll: Likewise.
27809         * modules/unicase/u8-casefold: Likewise.
27810         * modules/unicase/u8-casexfrm: Likewise.
27811         * modules/unicase/u8-ct-casefold: Likewise.
27812         * modules/unicase/u8-ct-tolower: Likewise.
27813         * modules/unicase/u8-ct-totitle: Likewise.
27814         * modules/unicase/u8-ct-toupper: Likewise.
27815         * modules/unicase/u8-is-cased: Likewise.
27816         * modules/unicase/u8-is-casefolded: Likewise.
27817         * modules/unicase/u8-is-lowercase: Likewise.
27818         * modules/unicase/u8-is-titlecase: Likewise.
27819         * modules/unicase/u8-is-uppercase: Likewise.
27820         * modules/unicase/u8-prefix-context: Likewise.
27821         * modules/unicase/u8-suffix-context: Likewise.
27822         * modules/unicase/u8-tolower: Likewise.
27823         * modules/unicase/u8-totitle: Likewise.
27824         * modules/unicase/u8-toupper: Likewise.
27825         * modules/unicase/u16-casecmp: Likewise.
27826         * modules/unicase/u16-casecoll: Likewise.
27827         * modules/unicase/u16-casefold: Likewise.
27828         * modules/unicase/u16-casexfrm: Likewise.
27829         * modules/unicase/u16-ct-casefold: Likewise.
27830         * modules/unicase/u16-ct-tolower: Likewise.
27831         * modules/unicase/u16-ct-totitle: Likewise.
27832         * modules/unicase/u16-ct-toupper: Likewise.
27833         * modules/unicase/u16-is-cased: Likewise.
27834         * modules/unicase/u16-is-casefolded: Likewise.
27835         * modules/unicase/u16-is-lowercase: Likewise.
27836         * modules/unicase/u16-is-titlecase: Likewise.
27837         * modules/unicase/u16-is-uppercase: Likewise.
27838         * modules/unicase/u16-prefix-context: Likewise.
27839         * modules/unicase/u16-suffix-context: Likewise.
27840         * modules/unicase/u16-tolower: Likewise.
27841         * modules/unicase/u16-totitle: Likewise.
27842         * modules/unicase/u16-toupper: Likewise.
27843         * modules/unicase/u32-casecmp: Likewise.
27844         * modules/unicase/u32-casecoll: Likewise.
27845         * modules/unicase/u32-casefold: Likewise.
27846         * modules/unicase/u32-casexfrm: Likewise.
27847         * modules/unicase/u32-ct-casefold: Likewise.
27848         * modules/unicase/u32-ct-tolower: Likewise.
27849         * modules/unicase/u32-ct-totitle: Likewise.
27850         * modules/unicase/u32-ct-toupper: Likewise.
27851         * modules/unicase/u32-is-cased: Likewise.
27852         * modules/unicase/u32-is-casefolded: Likewise.
27853         * modules/unicase/u32-is-lowercase: Likewise.
27854         * modules/unicase/u32-is-titlecase: Likewise.
27855         * modules/unicase/u32-is-uppercase: Likewise.
27856         * modules/unicase/u32-prefix-context: Likewise.
27857         * modules/unicase/u32-suffix-context: Likewise.
27858         * modules/unicase/u32-tolower: Likewise.
27859         * modules/unicase/u32-totitle: Likewise.
27860         * modules/unicase/u32-toupper: Likewise.
27861         * modules/unicase/ulc-casecmp: Likewise.
27862         * modules/unicase/ulc-casecoll: Likewise.
27863         * modules/unicase/ulc-casexfrm: Likewise.
27864         * modules/uniconv/u8-conv-from-enc: Likewise.
27865         * modules/uniconv/u8-conv-to-enc: Likewise.
27866         * modules/uniconv/u8-strconv-from-enc: Likewise.
27867         * modules/uniconv/u8-strconv-from-locale: Likewise.
27868         * modules/uniconv/u8-strconv-to-enc: Likewise.
27869         * modules/uniconv/u8-strconv-to-locale: Likewise.
27870         * modules/uniconv/u16-conv-from-enc: Likewise.
27871         * modules/uniconv/u16-conv-to-enc: Likewise.
27872         * modules/uniconv/u16-strconv-from-enc: Likewise.
27873         * modules/uniconv/u16-strconv-from-locale: Likewise.
27874         * modules/uniconv/u16-strconv-to-enc: Likewise.
27875         * modules/uniconv/u16-strconv-to-locale: Likewise.
27876         * modules/uniconv/u32-conv-from-enc: Likewise.
27877         * modules/uniconv/u32-conv-to-enc: Likewise.
27878         * modules/uniconv/u32-strconv-from-enc: Likewise.
27879         * modules/uniconv/u32-strconv-from-locale: Likewise.
27880         * modules/uniconv/u32-strconv-to-enc: Likewise.
27881         * modules/uniconv/u32-strconv-to-locale: Likewise.
27882         * modules/unictype/bidicategory-byname: Likewise.
27883         * modules/unictype/bidicategory-name: Likewise.
27884         * modules/unictype/bidicategory-of: Likewise.
27885         * modules/unictype/bidicategory-test: Likewise.
27886         * modules/unictype/block-list: Likewise.
27887         * modules/unictype/block-test: Likewise.
27888         * modules/unictype/category-C: Likewise.
27889         * modules/unictype/category-Cc: Likewise.
27890         * modules/unictype/category-Cf: Likewise.
27891         * modules/unictype/category-Cn: Likewise.
27892         * modules/unictype/category-Co: Likewise.
27893         * modules/unictype/category-Cs: Likewise.
27894         * modules/unictype/category-L: Likewise.
27895         * modules/unictype/category-Ll: Likewise.
27896         * modules/unictype/category-Lm: Likewise.
27897         * modules/unictype/category-Lo: Likewise.
27898         * modules/unictype/category-Lt: Likewise.
27899         * modules/unictype/category-Lu: Likewise.
27900         * modules/unictype/category-M: Likewise.
27901         * modules/unictype/category-Mc: Likewise.
27902         * modules/unictype/category-Me: Likewise.
27903         * modules/unictype/category-Mn: Likewise.
27904         * modules/unictype/category-N: Likewise.
27905         * modules/unictype/category-Nd: Likewise.
27906         * modules/unictype/category-Nl: Likewise.
27907         * modules/unictype/category-No: Likewise.
27908         * modules/unictype/category-P: Likewise.
27909         * modules/unictype/category-Pc: Likewise.
27910         * modules/unictype/category-Pd: Likewise.
27911         * modules/unictype/category-Pe: Likewise.
27912         * modules/unictype/category-Pf: Likewise.
27913         * modules/unictype/category-Pi: Likewise.
27914         * modules/unictype/category-Po: Likewise.
27915         * modules/unictype/category-Ps: Likewise.
27916         * modules/unictype/category-S: Likewise.
27917         * modules/unictype/category-Sc: Likewise.
27918         * modules/unictype/category-Sk: Likewise.
27919         * modules/unictype/category-Sm: Likewise.
27920         * modules/unictype/category-So: Likewise.
27921         * modules/unictype/category-Z: Likewise.
27922         * modules/unictype/category-Zl: Likewise.
27923         * modules/unictype/category-Zp: Likewise.
27924         * modules/unictype/category-Zs: Likewise.
27925         * modules/unictype/category-and: Likewise.
27926         * modules/unictype/category-and-not: Likewise.
27927         * modules/unictype/category-byname: Likewise.
27928         * modules/unictype/category-name: Likewise.
27929         * modules/unictype/category-none: Likewise.
27930         * modules/unictype/category-of: Likewise.
27931         * modules/unictype/category-or: Likewise.
27932         * modules/unictype/category-test: Likewise.
27933         * modules/unictype/combining-class: Likewise.
27934         * modules/unictype/ctype-alnum: Likewise.
27935         * modules/unictype/ctype-alpha: Likewise.
27936         * modules/unictype/ctype-blank: Likewise.
27937         * modules/unictype/ctype-cntrl: Likewise.
27938         * modules/unictype/ctype-digit: Likewise.
27939         * modules/unictype/ctype-graph: Likewise.
27940         * modules/unictype/ctype-lower: Likewise.
27941         * modules/unictype/ctype-print: Likewise.
27942         * modules/unictype/ctype-punct: Likewise.
27943         * modules/unictype/ctype-space: Likewise.
27944         * modules/unictype/ctype-upper: Likewise.
27945         * modules/unictype/ctype-xdigit: Likewise.
27946         * modules/unictype/decimal-digit: Likewise.
27947         * modules/unictype/digit: Likewise.
27948         * modules/unictype/mirror: Likewise.
27949         * modules/unictype/numeric: Likewise.
27950         * modules/unictype/property-alphabetic: Likewise.
27951         * modules/unictype/property-ascii-hex-digit: Likewise.
27952         * modules/unictype/property-bidi-arabic-digit: Likewise.
27953         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27954         * modules/unictype/property-bidi-block-separator: Likewise.
27955         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27956         * modules/unictype/property-bidi-common-separator: Likewise.
27957         * modules/unictype/property-bidi-control: Likewise.
27958         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27959         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27960         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27961         * modules/unictype/property-bidi-european-digit: Likewise.
27962         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27963         * modules/unictype/property-bidi-left-to-right: Likewise.
27964         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27965         * modules/unictype/property-bidi-other-neutral: Likewise.
27966         * modules/unictype/property-bidi-pdf: Likewise.
27967         * modules/unictype/property-bidi-segment-separator: Likewise.
27968         * modules/unictype/property-bidi-whitespace: Likewise.
27969         * modules/unictype/property-byname: Likewise.
27970         * modules/unictype/property-combining: Likewise.
27971         * modules/unictype/property-composite: Likewise.
27972         * modules/unictype/property-currency-symbol: Likewise.
27973         * modules/unictype/property-dash: Likewise.
27974         * modules/unictype/property-decimal-digit: Likewise.
27975         * modules/unictype/property-default-ignorable-code-point: Likewise.
27976         * modules/unictype/property-deprecated: Likewise.
27977         * modules/unictype/property-diacritic: Likewise.
27978         * modules/unictype/property-extender: Likewise.
27979         * modules/unictype/property-format-control: Likewise.
27980         * modules/unictype/property-grapheme-base: Likewise.
27981         * modules/unictype/property-grapheme-extend: Likewise.
27982         * modules/unictype/property-grapheme-link: Likewise.
27983         * modules/unictype/property-hex-digit: Likewise.
27984         * modules/unictype/property-hyphen: Likewise.
27985         * modules/unictype/property-id-continue: Likewise.
27986         * modules/unictype/property-id-start: Likewise.
27987         * modules/unictype/property-ideographic: Likewise.
27988         * modules/unictype/property-ids-binary-operator: Likewise.
27989         * modules/unictype/property-ids-trinary-operator: Likewise.
27990         * modules/unictype/property-ignorable-control: Likewise.
27991         * modules/unictype/property-iso-control: Likewise.
27992         * modules/unictype/property-join-control: Likewise.
27993         * modules/unictype/property-left-of-pair: Likewise.
27994         * modules/unictype/property-line-separator: Likewise.
27995         * modules/unictype/property-logical-order-exception: Likewise.
27996         * modules/unictype/property-lowercase: Likewise.
27997         * modules/unictype/property-math: Likewise.
27998         * modules/unictype/property-non-break: Likewise.
27999         * modules/unictype/property-not-a-character: Likewise.
28000         * modules/unictype/property-numeric: Likewise.
28001         * modules/unictype/property-other-alphabetic: Likewise.
28002         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28003         * modules/unictype/property-other-grapheme-extend: Likewise.
28004         * modules/unictype/property-other-id-continue: Likewise.
28005         * modules/unictype/property-other-id-start: Likewise.
28006         * modules/unictype/property-other-lowercase: Likewise.
28007         * modules/unictype/property-other-math: Likewise.
28008         * modules/unictype/property-other-uppercase: Likewise.
28009         * modules/unictype/property-paired-punctuation: Likewise.
28010         * modules/unictype/property-paragraph-separator: Likewise.
28011         * modules/unictype/property-pattern-syntax: Likewise.
28012         * modules/unictype/property-pattern-white-space: Likewise.
28013         * modules/unictype/property-private-use: Likewise.
28014         * modules/unictype/property-punctuation: Likewise.
28015         * modules/unictype/property-quotation-mark: Likewise.
28016         * modules/unictype/property-radical: Likewise.
28017         * modules/unictype/property-sentence-terminal: Likewise.
28018         * modules/unictype/property-soft-dotted: Likewise.
28019         * modules/unictype/property-space: Likewise.
28020         * modules/unictype/property-terminal-punctuation: Likewise.
28021         * modules/unictype/property-test: Likewise.
28022         * modules/unictype/property-titlecase: Likewise.
28023         * modules/unictype/property-unassigned-code-value: Likewise.
28024         * modules/unictype/property-unified-ideograph: Likewise.
28025         * modules/unictype/property-uppercase: Likewise.
28026         * modules/unictype/property-variation-selector: Likewise.
28027         * modules/unictype/property-white-space: Likewise.
28028         * modules/unictype/property-xid-continue: Likewise.
28029         * modules/unictype/property-xid-start: Likewise.
28030         * modules/unictype/property-zero-width: Likewise.
28031         * modules/unictype/scripts: Likewise.
28032         * modules/unictype/syntax-c-ident: Likewise.
28033         * modules/unictype/syntax-c-whitespace: Likewise.
28034         * modules/unictype/syntax-java-ident: Likewise.
28035         * modules/unictype/syntax-java-whitespace: Likewise.
28036         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28037         * modules/unilbrk/u8-width-linebreaks: Likewise.
28038         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28039         * modules/unilbrk/u16-width-linebreaks: Likewise.
28040         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28041         * modules/unilbrk/u32-width-linebreaks: Likewise.
28042         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28043         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28044         * modules/uniname/uniname: Likewise.
28045         * modules/uninorm/canonical-decomposition: Likewise.
28046         * modules/uninorm/composition: Likewise.
28047         * modules/uninorm/decomposing-form: Likewise.
28048         * modules/uninorm/decomposition: Likewise.
28049         * modules/uninorm/filter: Likewise.
28050         * modules/uninorm/nfc: Likewise.
28051         * modules/uninorm/nfd: Likewise.
28052         * modules/uninorm/nfkc: Likewise.
28053         * modules/uninorm/nfkd: Likewise.
28054         * modules/uninorm/u8-normalize: Likewise.
28055         * modules/uninorm/u8-normcmp: Likewise.
28056         * modules/uninorm/u8-normcoll: Likewise.
28057         * modules/uninorm/u8-normxfrm: Likewise.
28058         * modules/uninorm/u16-normalize: Likewise.
28059         * modules/uninorm/u16-normcmp: Likewise.
28060         * modules/uninorm/u16-normcoll: Likewise.
28061         * modules/uninorm/u16-normxfrm: Likewise.
28062         * modules/uninorm/u32-normalize: Likewise.
28063         * modules/uninorm/u32-normcmp: Likewise.
28064         * modules/uninorm/u32-normcoll: Likewise.
28065         * modules/uninorm/u32-normxfrm: Likewise.
28066         * modules/unistdio/u8-asnprintf: Likewise.
28067         * modules/unistdio/u8-asprintf: Likewise.
28068         * modules/unistdio/u8-snprintf: Likewise.
28069         * modules/unistdio/u8-sprintf: Likewise.
28070         * modules/unistdio/u8-u8-asnprintf: Likewise.
28071         * modules/unistdio/u8-u8-asprintf: Likewise.
28072         * modules/unistdio/u8-u8-snprintf: Likewise.
28073         * modules/unistdio/u8-u8-sprintf: Likewise.
28074         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28075         * modules/unistdio/u8-u8-vasprintf: Likewise.
28076         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28077         * modules/unistdio/u8-u8-vsprintf: Likewise.
28078         * modules/unistdio/u8-vasnprintf: Likewise.
28079         * modules/unistdio/u8-vasprintf: Likewise.
28080         * modules/unistdio/u8-vsnprintf: Likewise.
28081         * modules/unistdio/u8-vsprintf: Likewise.
28082         * modules/unistdio/u16-asnprintf: Likewise.
28083         * modules/unistdio/u16-asprintf: Likewise.
28084         * modules/unistdio/u16-snprintf: Likewise.
28085         * modules/unistdio/u16-sprintf: Likewise.
28086         * modules/unistdio/u16-u16-asnprintf: Likewise.
28087         * modules/unistdio/u16-u16-asprintf: Likewise.
28088         * modules/unistdio/u16-u16-snprintf: Likewise.
28089         * modules/unistdio/u16-u16-sprintf: Likewise.
28090         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28091         * modules/unistdio/u16-u16-vasprintf: Likewise.
28092         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28093         * modules/unistdio/u16-u16-vsprintf: Likewise.
28094         * modules/unistdio/u16-vasnprintf: Likewise.
28095         * modules/unistdio/u16-vasprintf: Likewise.
28096         * modules/unistdio/u16-vsnprintf: Likewise.
28097         * modules/unistdio/u16-vsprintf: Likewise.
28098         * modules/unistdio/u32-asnprintf: Likewise.
28099         * modules/unistdio/u32-asprintf: Likewise.
28100         * modules/unistdio/u32-snprintf: Likewise.
28101         * modules/unistdio/u32-sprintf: Likewise.
28102         * modules/unistdio/u32-u32-asnprintf: Likewise.
28103         * modules/unistdio/u32-u32-asprintf: Likewise.
28104         * modules/unistdio/u32-u32-snprintf: Likewise.
28105         * modules/unistdio/u32-u32-sprintf: Likewise.
28106         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28107         * modules/unistdio/u32-u32-vasprintf: Likewise.
28108         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28109         * modules/unistdio/u32-u32-vsprintf: Likewise.
28110         * modules/unistdio/u32-vasnprintf: Likewise.
28111         * modules/unistdio/u32-vasprintf: Likewise.
28112         * modules/unistdio/u32-vsnprintf: Likewise.
28113         * modules/unistdio/u32-vsprintf: Likewise.
28114         * modules/unistdio/ulc-asnprintf: Likewise.
28115         * modules/unistdio/ulc-asprintf: Likewise.
28116         * modules/unistdio/ulc-fprintf: Likewise.
28117         * modules/unistdio/ulc-snprintf: Likewise.
28118         * modules/unistdio/ulc-sprintf: Likewise.
28119         * modules/unistdio/ulc-vasnprintf: Likewise.
28120         * modules/unistdio/ulc-vasprintf: Likewise.
28121         * modules/unistdio/ulc-vfprintf: Likewise.
28122         * modules/unistdio/ulc-vsnprintf: Likewise.
28123         * modules/unistdio/ulc-vsprintf: Likewise.
28124         * modules/unistr/u8-check: Likewise.
28125         * modules/unistr/u8-chr: Likewise.
28126         * modules/unistr/u8-cmp: Likewise.
28127         * modules/unistr/u8-cmp2: Likewise.
28128         * modules/unistr/u8-cpy: Likewise.
28129         * modules/unistr/u8-cpy-alloc: Likewise.
28130         * modules/unistr/u8-endswith: Likewise.
28131         * modules/unistr/u8-mblen: Likewise.
28132         * modules/unistr/u8-mbsnlen: Likewise.
28133         * modules/unistr/u8-mbtouc: Likewise.
28134         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28135         * modules/unistr/u8-mbtoucr: Likewise.
28136         * modules/unistr/u8-move: Likewise.
28137         * modules/unistr/u8-next: Likewise.
28138         * modules/unistr/u8-prev: Likewise.
28139         * modules/unistr/u8-set: Likewise.
28140         * modules/unistr/u8-startswith: Likewise.
28141         * modules/unistr/u8-stpcpy: Likewise.
28142         * modules/unistr/u8-stpncpy: Likewise.
28143         * modules/unistr/u8-strcat: Likewise.
28144         * modules/unistr/u8-strchr: Likewise.
28145         * modules/unistr/u8-strcmp: Likewise.
28146         * modules/unistr/u8-strcoll: Likewise.
28147         * modules/unistr/u8-strcpy: Likewise.
28148         * modules/unistr/u8-strcspn: Likewise.
28149         * modules/unistr/u8-strdup: Likewise.
28150         * modules/unistr/u8-strlen: Likewise.
28151         * modules/unistr/u8-strmblen: Likewise.
28152         * modules/unistr/u8-strmbtouc: Likewise.
28153         * modules/unistr/u8-strncat: Likewise.
28154         * modules/unistr/u8-strncmp: Likewise.
28155         * modules/unistr/u8-strncpy: Likewise.
28156         * modules/unistr/u8-strnlen: Likewise.
28157         * modules/unistr/u8-strpbrk: Likewise.
28158         * modules/unistr/u8-strrchr: Likewise.
28159         * modules/unistr/u8-strspn: Likewise.
28160         * modules/unistr/u8-strstr: Likewise.
28161         * modules/unistr/u8-strtok: Likewise.
28162         * modules/unistr/u8-to-u16: Likewise.
28163         * modules/unistr/u8-to-u32: Likewise.
28164         * modules/unistr/u8-uctomb: Likewise.
28165         * modules/unistr/u16-check: Likewise.
28166         * modules/unistr/u16-chr: Likewise.
28167         * modules/unistr/u16-cmp: Likewise.
28168         * modules/unistr/u16-cmp2: Likewise.
28169         * modules/unistr/u16-cpy: Likewise.
28170         * modules/unistr/u16-cpy-alloc: Likewise.
28171         * modules/unistr/u16-endswith: Likewise.
28172         * modules/unistr/u16-mblen: Likewise.
28173         * modules/unistr/u16-mbsnlen: Likewise.
28174         * modules/unistr/u16-mbtouc: Likewise.
28175         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28176         * modules/unistr/u16-mbtoucr: Likewise.
28177         * modules/unistr/u16-move: Likewise.
28178         * modules/unistr/u16-next: Likewise.
28179         * modules/unistr/u16-prev: Likewise.
28180         * modules/unistr/u16-set: Likewise.
28181         * modules/unistr/u16-startswith: Likewise.
28182         * modules/unistr/u16-stpcpy: Likewise.
28183         * modules/unistr/u16-stpncpy: Likewise.
28184         * modules/unistr/u16-strcat: Likewise.
28185         * modules/unistr/u16-strchr: Likewise.
28186         * modules/unistr/u16-strcmp: Likewise.
28187         * modules/unistr/u16-strcoll: Likewise.
28188         * modules/unistr/u16-strcpy: Likewise.
28189         * modules/unistr/u16-strcspn: Likewise.
28190         * modules/unistr/u16-strdup: Likewise.
28191         * modules/unistr/u16-strlen: Likewise.
28192         * modules/unistr/u16-strmblen: Likewise.
28193         * modules/unistr/u16-strmbtouc: Likewise.
28194         * modules/unistr/u16-strncat: Likewise.
28195         * modules/unistr/u16-strncmp: Likewise.
28196         * modules/unistr/u16-strncpy: Likewise.
28197         * modules/unistr/u16-strnlen: Likewise.
28198         * modules/unistr/u16-strpbrk: Likewise.
28199         * modules/unistr/u16-strrchr: Likewise.
28200         * modules/unistr/u16-strspn: Likewise.
28201         * modules/unistr/u16-strstr: Likewise.
28202         * modules/unistr/u16-strtok: Likewise.
28203         * modules/unistr/u16-to-u32: Likewise.
28204         * modules/unistr/u16-to-u8: Likewise.
28205         * modules/unistr/u16-uctomb: Likewise.
28206         * modules/unistr/u32-check: Likewise.
28207         * modules/unistr/u32-chr: Likewise.
28208         * modules/unistr/u32-cmp: Likewise.
28209         * modules/unistr/u32-cmp2: Likewise.
28210         * modules/unistr/u32-cpy: Likewise.
28211         * modules/unistr/u32-cpy-alloc: Likewise.
28212         * modules/unistr/u32-endswith: Likewise.
28213         * modules/unistr/u32-mblen: Likewise.
28214         * modules/unistr/u32-mbsnlen: Likewise.
28215         * modules/unistr/u32-mbtouc: Likewise.
28216         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28217         * modules/unistr/u32-mbtoucr: Likewise.
28218         * modules/unistr/u32-move: Likewise.
28219         * modules/unistr/u32-next: Likewise.
28220         * modules/unistr/u32-prev: Likewise.
28221         * modules/unistr/u32-set: Likewise.
28222         * modules/unistr/u32-startswith: Likewise.
28223         * modules/unistr/u32-stpcpy: Likewise.
28224         * modules/unistr/u32-stpncpy: Likewise.
28225         * modules/unistr/u32-strcat: Likewise.
28226         * modules/unistr/u32-strchr: Likewise.
28227         * modules/unistr/u32-strcmp: Likewise.
28228         * modules/unistr/u32-strcoll: Likewise.
28229         * modules/unistr/u32-strcpy: Likewise.
28230         * modules/unistr/u32-strcspn: Likewise.
28231         * modules/unistr/u32-strdup: Likewise.
28232         * modules/unistr/u32-strlen: Likewise.
28233         * modules/unistr/u32-strmblen: Likewise.
28234         * modules/unistr/u32-strmbtouc: Likewise.
28235         * modules/unistr/u32-strncat: Likewise.
28236         * modules/unistr/u32-strncmp: Likewise.
28237         * modules/unistr/u32-strncpy: Likewise.
28238         * modules/unistr/u32-strnlen: Likewise.
28239         * modules/unistr/u32-strpbrk: Likewise.
28240         * modules/unistr/u32-strrchr: Likewise.
28241         * modules/unistr/u32-strspn: Likewise.
28242         * modules/unistr/u32-strstr: Likewise.
28243         * modules/unistr/u32-strtok: Likewise.
28244         * modules/unistr/u32-to-u16: Likewise.
28245         * modules/unistr/u32-to-u8: Likewise.
28246         * modules/unistr/u32-uctomb: Likewise.
28247         * modules/uniwbrk/u8-wordbreaks: Likewise.
28248         * modules/uniwbrk/u16-wordbreaks: Likewise.
28249         * modules/uniwbrk/u32-wordbreaks: Likewise.
28250         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28251         * modules/uniwbrk/wordbreak-property: Likewise.
28252         * modules/uniwidth/u8-strwidth: Likewise.
28253         * modules/uniwidth/u8-width: Likewise.
28254         * modules/uniwidth/u16-strwidth: Likewise.
28255         * modules/uniwidth/u16-width: Likewise.
28256         * modules/uniwidth/u32-strwidth: Likewise.
28257         * modules/uniwidth/u32-width: Likewise.
28258         * modules/uniwidth/width: Likewise.
28259         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28260         with $(LIBUNISTRING).
28261         * modules/unicase/ignorable-tests: Likewise.
28262         * modules/unicase/locale-language-tests: Likewise.
28263         * modules/unicase/tolower-tests: Likewise.
28264         * modules/unicase/totitle-tests: Likewise.
28265         * modules/unicase/toupper-tests: Likewise.
28266         * modules/unicase/u8-casecmp-tests: Likewise.
28267         * modules/unicase/u8-casecoll-tests: Likewise.
28268         * modules/unicase/u8-casefold-tests: Likewise.
28269         * modules/unicase/u8-is-cased-tests: Likewise.
28270         * modules/unicase/u8-is-casefolded-tests: Likewise.
28271         * modules/unicase/u8-is-lowercase-tests: Likewise.
28272         * modules/unicase/u8-is-titlecase-tests: Likewise.
28273         * modules/unicase/u8-is-uppercase-tests: Likewise.
28274         * modules/unicase/u8-tolower-tests: Likewise.
28275         * modules/unicase/u8-totitle-tests: Likewise.
28276         * modules/unicase/u8-toupper-tests: Likewise.
28277         * modules/unicase/u16-casecmp-tests: Likewise.
28278         * modules/unicase/u16-casecoll-tests: Likewise.
28279         * modules/unicase/u16-casefold-tests: Likewise.
28280         * modules/unicase/u16-is-cased-tests: Likewise.
28281         * modules/unicase/u16-is-casefolded-tests: Likewise.
28282         * modules/unicase/u16-is-lowercase-tests: Likewise.
28283         * modules/unicase/u16-is-titlecase-tests: Likewise.
28284         * modules/unicase/u16-is-uppercase-tests: Likewise.
28285         * modules/unicase/u16-tolower-tests: Likewise.
28286         * modules/unicase/u16-totitle-tests: Likewise.
28287         * modules/unicase/u16-toupper-tests: Likewise.
28288         * modules/unicase/u32-casecmp-tests: Likewise.
28289         * modules/unicase/u32-casecoll-tests: Likewise.
28290         * modules/unicase/u32-casefold-tests: Likewise.
28291         * modules/unicase/u32-is-cased-tests: Likewise.
28292         * modules/unicase/u32-is-casefolded-tests: Likewise.
28293         * modules/unicase/u32-is-lowercase-tests: Likewise.
28294         * modules/unicase/u32-is-titlecase-tests: Likewise.
28295         * modules/unicase/u32-is-uppercase-tests: Likewise.
28296         * modules/unicase/u32-tolower-tests: Likewise.
28297         * modules/unicase/u32-totitle-tests: Likewise.
28298         * modules/unicase/u32-toupper-tests: Likewise.
28299         * modules/unicase/ulc-casecmp-tests: Likewise.
28300         * modules/unicase/ulc-casecoll-tests: Likewise.
28301         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28302         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28303         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28304         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28305         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28306         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28307         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28308         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28309         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28310         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28311         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28312         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28313         * modules/unictype/bidicategory-byname-tests: Likewise.
28314         * modules/unictype/bidicategory-name-tests: Likewise.
28315         * modules/unictype/bidicategory-of-tests: Likewise.
28316         * modules/unictype/bidicategory-test-tests: Likewise.
28317         * modules/unictype/block-list-tests: Likewise.
28318         * modules/unictype/block-of-tests: Likewise.
28319         * modules/unictype/block-test-tests: Likewise.
28320         * modules/unictype/category-C-tests: Likewise.
28321         * modules/unictype/category-Cc-tests: Likewise.
28322         * modules/unictype/category-Cf-tests: Likewise.
28323         * modules/unictype/category-Cn-tests: Likewise.
28324         * modules/unictype/category-Co-tests: Likewise.
28325         * modules/unictype/category-Cs-tests: Likewise.
28326         * modules/unictype/category-L-tests: Likewise.
28327         * modules/unictype/category-Ll-tests: Likewise.
28328         * modules/unictype/category-Lm-tests: Likewise.
28329         * modules/unictype/category-Lo-tests: Likewise.
28330         * modules/unictype/category-Lt-tests: Likewise.
28331         * modules/unictype/category-Lu-tests: Likewise.
28332         * modules/unictype/category-M-tests: Likewise.
28333         * modules/unictype/category-Mc-tests: Likewise.
28334         * modules/unictype/category-Me-tests: Likewise.
28335         * modules/unictype/category-Mn-tests: Likewise.
28336         * modules/unictype/category-N-tests: Likewise.
28337         * modules/unictype/category-Nd-tests: Likewise.
28338         * modules/unictype/category-Nl-tests: Likewise.
28339         * modules/unictype/category-No-tests: Likewise.
28340         * modules/unictype/category-P-tests: Likewise.
28341         * modules/unictype/category-Pc-tests: Likewise.
28342         * modules/unictype/category-Pd-tests: Likewise.
28343         * modules/unictype/category-Pe-tests: Likewise.
28344         * modules/unictype/category-Pf-tests: Likewise.
28345         * modules/unictype/category-Pi-tests: Likewise.
28346         * modules/unictype/category-Po-tests: Likewise.
28347         * modules/unictype/category-Ps-tests: Likewise.
28348         * modules/unictype/category-S-tests: Likewise.
28349         * modules/unictype/category-Sc-tests: Likewise.
28350         * modules/unictype/category-Sk-tests: Likewise.
28351         * modules/unictype/category-Sm-tests: Likewise.
28352         * modules/unictype/category-So-tests: Likewise.
28353         * modules/unictype/category-Z-tests: Likewise.
28354         * modules/unictype/category-Zl-tests: Likewise.
28355         * modules/unictype/category-Zp-tests: Likewise.
28356         * modules/unictype/category-Zs-tests: Likewise.
28357         * modules/unictype/category-and-not-tests: Likewise.
28358         * modules/unictype/category-and-tests: Likewise.
28359         * modules/unictype/category-byname-tests: Likewise.
28360         * modules/unictype/category-name-tests: Likewise.
28361         * modules/unictype/category-none-tests: Likewise.
28362         * modules/unictype/category-of-tests: Likewise.
28363         * modules/unictype/category-or-tests: Likewise.
28364         * modules/unictype/category-test-withtable-tests: Likewise.
28365         * modules/unictype/combining-class-tests: Likewise.
28366         * modules/unictype/ctype-alnum-tests: Likewise.
28367         * modules/unictype/ctype-alpha-tests: Likewise.
28368         * modules/unictype/ctype-blank-tests: Likewise.
28369         * modules/unictype/ctype-cntrl-tests: Likewise.
28370         * modules/unictype/ctype-digit-tests: Likewise.
28371         * modules/unictype/ctype-graph-tests: Likewise.
28372         * modules/unictype/ctype-lower-tests: Likewise.
28373         * modules/unictype/ctype-print-tests: Likewise.
28374         * modules/unictype/ctype-punct-tests: Likewise.
28375         * modules/unictype/ctype-space-tests: Likewise.
28376         * modules/unictype/ctype-upper-tests: Likewise.
28377         * modules/unictype/ctype-xdigit-tests: Likewise.
28378         * modules/unictype/decimal-digit-tests: Likewise.
28379         * modules/unictype/digit-tests: Likewise.
28380         * modules/unictype/mirror-tests: Likewise.
28381         * modules/unictype/numeric-tests: Likewise.
28382         * modules/unictype/property-alphabetic-tests: Likewise.
28383         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28384         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28385         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28386         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28387         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28388         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28389         * modules/unictype/property-bidi-control-tests: Likewise.
28390         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28391         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28392         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28393         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28394         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28395         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28396         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28397         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28398         * modules/unictype/property-bidi-pdf-tests: Likewise.
28399         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28400         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28401         * modules/unictype/property-byname-tests: Likewise.
28402         * modules/unictype/property-combining-tests: Likewise.
28403         * modules/unictype/property-composite-tests: Likewise.
28404         * modules/unictype/property-currency-symbol-tests: Likewise.
28405         * modules/unictype/property-dash-tests: Likewise.
28406         * modules/unictype/property-decimal-digit-tests: Likewise.
28407         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28408         * modules/unictype/property-deprecated-tests: Likewise.
28409         * modules/unictype/property-diacritic-tests: Likewise.
28410         * modules/unictype/property-extender-tests: Likewise.
28411         * modules/unictype/property-format-control-tests: Likewise.
28412         * modules/unictype/property-grapheme-base-tests: Likewise.
28413         * modules/unictype/property-grapheme-extend-tests: Likewise.
28414         * modules/unictype/property-grapheme-link-tests: Likewise.
28415         * modules/unictype/property-hex-digit-tests: Likewise.
28416         * modules/unictype/property-hyphen-tests: Likewise.
28417         * modules/unictype/property-id-continue-tests: Likewise.
28418         * modules/unictype/property-id-start-tests: Likewise.
28419         * modules/unictype/property-ideographic-tests: Likewise.
28420         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28421         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28422         * modules/unictype/property-ignorable-control-tests: Likewise.
28423         * modules/unictype/property-iso-control-tests: Likewise.
28424         * modules/unictype/property-join-control-tests: Likewise.
28425         * modules/unictype/property-left-of-pair-tests: Likewise.
28426         * modules/unictype/property-line-separator-tests: Likewise.
28427         * modules/unictype/property-logical-order-exception-tests: Likewise.
28428         * modules/unictype/property-lowercase-tests: Likewise.
28429         * modules/unictype/property-math-tests: Likewise.
28430         * modules/unictype/property-non-break-tests: Likewise.
28431         * modules/unictype/property-not-a-character-tests: Likewise.
28432         * modules/unictype/property-numeric-tests: Likewise.
28433         * modules/unictype/property-other-alphabetic-tests: Likewise.
28434         * modules/unictype/property-other-default-ignorable-code-point-tests:
28435         Likewise.
28436         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28437         * modules/unictype/property-other-id-continue-tests: Likewise.
28438         * modules/unictype/property-other-id-start-tests: Likewise.
28439         * modules/unictype/property-other-lowercase-tests: Likewise.
28440         * modules/unictype/property-other-math-tests: Likewise.
28441         * modules/unictype/property-other-uppercase-tests: Likewise.
28442         * modules/unictype/property-paired-punctuation-tests: Likewise.
28443         * modules/unictype/property-paragraph-separator-tests: Likewise.
28444         * modules/unictype/property-pattern-syntax-tests: Likewise.
28445         * modules/unictype/property-pattern-white-space-tests: Likewise.
28446         * modules/unictype/property-private-use-tests: Likewise.
28447         * modules/unictype/property-punctuation-tests: Likewise.
28448         * modules/unictype/property-quotation-mark-tests: Likewise.
28449         * modules/unictype/property-radical-tests: Likewise.
28450         * modules/unictype/property-sentence-terminal-tests: Likewise.
28451         * modules/unictype/property-soft-dotted-tests: Likewise.
28452         * modules/unictype/property-space-tests: Likewise.
28453         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28454         * modules/unictype/property-test-tests: Likewise.
28455         * modules/unictype/property-titlecase-tests: Likewise.
28456         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28457         * modules/unictype/property-unified-ideograph-tests: Likewise.
28458         * modules/unictype/property-uppercase-tests: Likewise.
28459         * modules/unictype/property-variation-selector-tests: Likewise.
28460         * modules/unictype/property-white-space-tests: Likewise.
28461         * modules/unictype/property-xid-continue-tests: Likewise.
28462         * modules/unictype/property-xid-start-tests: Likewise.
28463         * modules/unictype/property-zero-width-tests: Likewise.
28464         * modules/unictype/scripts-tests: Likewise.
28465         * modules/unictype/syntax-c-ident-tests: Likewise.
28466         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28467         * modules/unictype/syntax-java-ident-tests: Likewise.
28468         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28469         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28470         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28471         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28472         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28473         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28474         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28475         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28476         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28477         * modules/uniname/uniname-tests: Likewise.
28478         * modules/uninorm/canonical-decomposition-tests: Likewise.
28479         * modules/uninorm/compat-decomposition-tests: Likewise.
28480         * modules/uninorm/composition-tests: Likewise.
28481         * modules/uninorm/decomposing-form-tests: Likewise.
28482         * modules/uninorm/decomposition-tests: Likewise.
28483         * modules/uninorm/filter-tests: Likewise.
28484         * modules/uninorm/nfc-tests: Likewise.
28485         * modules/uninorm/nfd-tests: Likewise.
28486         * modules/uninorm/nfkc-tests: Likewise.
28487         * modules/uninorm/nfkd-tests: Likewise.
28488         * modules/uninorm/u8-normcmp-tests: Likewise.
28489         * modules/uninorm/u8-normcoll-tests: Likewise.
28490         * modules/uninorm/u16-normcmp-tests: Likewise.
28491         * modules/uninorm/u16-normcoll-tests: Likewise.
28492         * modules/uninorm/u32-normcmp-tests: Likewise.
28493         * modules/uninorm/u32-normcoll-tests: Likewise.
28494         * modules/unistdio/u8-asnprintf-tests: Likewise.
28495         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28496         * modules/unistdio/u8-vasprintf-tests: Likewise.
28497         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28498         * modules/unistdio/u8-vsprintf-tests: Likewise.
28499         * modules/unistdio/u16-asnprintf-tests: Likewise.
28500         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28501         * modules/unistdio/u16-vasprintf-tests: Likewise.
28502         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28503         * modules/unistdio/u16-vsprintf-tests: Likewise.
28504         * modules/unistdio/u32-asnprintf-tests: Likewise.
28505         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28506         * modules/unistdio/u32-vasprintf-tests: Likewise.
28507         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28508         * modules/unistdio/u32-vsprintf-tests: Likewise.
28509         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28510         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28511         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28512         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28513         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28514         * modules/unistr/u8-check-tests: Likewise.
28515         * modules/unistr/u8-chr-tests: Likewise.
28516         * modules/unistr/u8-cmp-tests: Likewise.
28517         * modules/unistr/u8-cmp2-tests: Likewise.
28518         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28519         * modules/unistr/u8-cpy-tests: Likewise.
28520         * modules/unistr/u8-mblen-tests: Likewise.
28521         * modules/unistr/u8-mbsnlen-tests: Likewise.
28522         * modules/unistr/u8-mbtouc-tests: Likewise.
28523         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28524         * modules/unistr/u8-mbtoucr-tests: Likewise.
28525         * modules/unistr/u8-move-tests: Likewise.
28526         * modules/unistr/u8-next-tests: Likewise.
28527         * modules/unistr/u8-prev-tests: Likewise.
28528         * modules/unistr/u8-set-tests: Likewise.
28529         * modules/unistr/u8-stpcpy-tests: Likewise.
28530         * modules/unistr/u8-stpncpy-tests: Likewise.
28531         * modules/unistr/u8-strcat-tests: Likewise.
28532         * modules/unistr/u8-strcmp-tests: Likewise.
28533         * modules/unistr/u8-strcoll-tests: Likewise.
28534         * modules/unistr/u8-strcpy-tests: Likewise.
28535         * modules/unistr/u8-strdup-tests: Likewise.
28536         * modules/unistr/u8-strlen-tests: Likewise.
28537         * modules/unistr/u8-strmblen-tests: Likewise.
28538         * modules/unistr/u8-strmbtouc-tests: Likewise.
28539         * modules/unistr/u8-strncat-tests: Likewise.
28540         * modules/unistr/u8-strncmp-tests: Likewise.
28541         * modules/unistr/u8-strncpy-tests: Likewise.
28542         * modules/unistr/u8-strnlen-tests: Likewise.
28543         * modules/unistr/u8-to-u16-tests: Likewise.
28544         * modules/unistr/u8-to-u32-tests: Likewise.
28545         * modules/unistr/u8-uctomb-tests: Likewise.
28546         * modules/unistr/u16-check-tests: Likewise.
28547         * modules/unistr/u16-chr-tests: Likewise.
28548         * modules/unistr/u16-cmp-tests: Likewise.
28549         * modules/unistr/u16-cmp2-tests: Likewise.
28550         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28551         * modules/unistr/u16-cpy-tests: Likewise.
28552         * modules/unistr/u16-mblen-tests: Likewise.
28553         * modules/unistr/u16-mbsnlen-tests: Likewise.
28554         * modules/unistr/u16-mbtouc-tests: Likewise.
28555         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28556         * modules/unistr/u16-mbtoucr-tests: Likewise.
28557         * modules/unistr/u16-move-tests: Likewise.
28558         * modules/unistr/u16-next-tests: Likewise.
28559         * modules/unistr/u16-prev-tests: Likewise.
28560         * modules/unistr/u16-set-tests: Likewise.
28561         * modules/unistr/u16-stpcpy-tests: Likewise.
28562         * modules/unistr/u16-stpncpy-tests: Likewise.
28563         * modules/unistr/u16-strcat-tests: Likewise.
28564         * modules/unistr/u16-strcmp-tests: Likewise.
28565         * modules/unistr/u16-strcoll-tests: Likewise.
28566         * modules/unistr/u16-strcpy-tests: Likewise.
28567         * modules/unistr/u16-strdup-tests: Likewise.
28568         * modules/unistr/u16-strlen-tests: Likewise.
28569         * modules/unistr/u16-strmblen-tests: Likewise.
28570         * modules/unistr/u16-strmbtouc-tests: Likewise.
28571         * modules/unistr/u16-strncat-tests: Likewise.
28572         * modules/unistr/u16-strncmp-tests: Likewise.
28573         * modules/unistr/u16-strncpy-tests: Likewise.
28574         * modules/unistr/u16-strnlen-tests: Likewise.
28575         * modules/unistr/u16-to-u32-tests: Likewise.
28576         * modules/unistr/u16-to-u8-tests: Likewise.
28577         * modules/unistr/u16-uctomb-tests: Likewise.
28578         * modules/unistr/u32-check-tests: Likewise.
28579         * modules/unistr/u32-chr-tests: Likewise.
28580         * modules/unistr/u32-cmp-tests: Likewise.
28581         * modules/unistr/u32-cmp2-tests: Likewise.
28582         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28583         * modules/unistr/u32-cpy-tests: Likewise.
28584         * modules/unistr/u32-mblen-tests: Likewise.
28585         * modules/unistr/u32-mbsnlen-tests: Likewise.
28586         * modules/unistr/u32-mbtouc-tests: Likewise.
28587         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28588         * modules/unistr/u32-mbtoucr-tests: Likewise.
28589         * modules/unistr/u32-move-tests: Likewise.
28590         * modules/unistr/u32-next-tests: Likewise.
28591         * modules/unistr/u32-prev-tests: Likewise.
28592         * modules/unistr/u32-set-tests: Likewise.
28593         * modules/unistr/u32-stpcpy-tests: Likewise.
28594         * modules/unistr/u32-stpncpy-tests: Likewise.
28595         * modules/unistr/u32-strcat-tests: Likewise.
28596         * modules/unistr/u32-strcmp-tests: Likewise.
28597         * modules/unistr/u32-strcoll-tests: Likewise.
28598         * modules/unistr/u32-strcpy-tests: Likewise.
28599         * modules/unistr/u32-strdup-tests: Likewise.
28600         * modules/unistr/u32-strlen-tests: Likewise.
28601         * modules/unistr/u32-strmblen-tests: Likewise.
28602         * modules/unistr/u32-strmbtouc-tests: Likewise.
28603         * modules/unistr/u32-strncat-tests: Likewise.
28604         * modules/unistr/u32-strncmp-tests: Likewise.
28605         * modules/unistr/u32-strncpy-tests: Likewise.
28606         * modules/unistr/u32-strnlen-tests: Likewise.
28607         * modules/unistr/u32-to-u16-tests: Likewise.
28608         * modules/unistr/u32-to-u8-tests: Likewise.
28609         * modules/unistr/u32-uctomb-tests: Likewise.
28610         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28611         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28612         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28613         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28614         * modules/uniwidth/u8-strwidth-tests: Likewise.
28615         * modules/uniwidth/u8-width-tests: Likewise.
28616         * modules/uniwidth/u16-strwidth-tests: Likewise.
28617         * modules/uniwidth/u16-width-tests: Likewise.
28618         * modules/uniwidth/u32-strwidth-tests: Likewise.
28619         * modules/uniwidth/u32-width-tests: Likewise.
28620         * modules/uniwidth/width-tests: Likewise.
28621
28622 2010-05-18  Richard Jones  <rjones@redhat.com>
28623
28624         doc: users.txt: list hivex
28625         * users.txt: Add hivex.
28626
28627 2010-05-18  Richard Jones  <rjones@redhat.com>
28628
28629         doc: users.txt: list febootstrap
28630         * users.txt: Add febootstrap.
28631
28632 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28633
28634         bootstrap: fix an error when gnulib is not used as a git submodule
28635         * build-aux/bootstrap (gnulib_path): If its length is zero then
28636         assign "gnulib" to it.
28637         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28638
28639 2010-05-16  Bruno Haible  <bruno@clisp.org>
28640
28641         Avoid autoconf warnings about AM_ICONV.
28642         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28643         2.64.
28644
28645 2010-05-16  Bruno Haible  <bruno@clisp.org>
28646
28647         absolute-header: Make the macro usable in more situations.
28648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28649         from gl_ABSOLUTE_HEADER.
28650         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28651
28652 2010-05-16  James Youngman  <jay@gnu.org>
28653
28654         doc: update users.txt
28655         * users.txt: Add CSSC.
28656
28657 2010-05-16  Jim Meyering  <meyering@redhat.com>
28658
28659         init.sh: fix an error in the previous change; add more comments
28660         * tests/init.sh: Compare exit code in loop against 9, not 2.
28661         Patch by Bruno Haible.
28662         Make the two tests more similar by adding an empty "then" clause.
28663         Add comments.
28664
28665         init.sh: avoid unnecessary shell re-exec
28666         * tests/init.sh: Improve the re-exec-required check to first test the
28667         current shell.  If it passes the test, do not search for a shell that
28668         does pass, and do not re-exec.  This test is particularly contorted to
28669         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28670         of $(...) evokes a syntax error and causes immediate shell exit with
28671         status 2.  Bruno Haible reported that the re-exec made it impossible
28672         to single-step through any init.sh-using script.
28673
28674 2010-05-16  Bruno Haible  <bruno@clisp.org>
28675
28676         Fix collision between gnulib's and libintl's printf replacements.
28677         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28678         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28679         (printf): When using GNU C, map the __printf__ function to rpl_printf
28680         via __asm__. When not using GNU C, define rpl_printf instead of
28681         __printf__.
28682         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28683         commit.
28684         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28685         commit.
28686         * m4/asm-underscore.m4: New file.
28687         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28688         * modules/stdio (Files): Add m4/asm-underscore.m4.
28689         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28690         Reported by Ben Pfaff.
28691
28692 2010-05-16  Bruno Haible  <bruno@clisp.org>
28693
28694         verify: Avoid skipping the test on openSUSE 11.0.
28695         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28696
28697 2010-05-13  Bruno Haible  <bruno@clisp.org>
28698
28699         Avoid useless warnings from G++.
28700         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28701         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28702         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28703
28704 2010-05-11  Jim Meyering  <meyering@redhat.com>
28705
28706         maint.mk: tweak preceding change
28707         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28708         regexps tighter by anchoring at EOL, and make the new group "shy"
28709         for slightly decreased overhead.
28710
28711 2010-05-11  Eric Blake  <eblake@redhat.com>
28712
28713         maint.mk: gnulib doesn't guarantee NSIG
28714         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28715
28716 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28717
28718         test-pwrite.c: Remove unused variable declaration.
28719         * tests/test-pwrite.c (main): Remove read_buf declaration.
28720
28721         Remove useless test-pwrite.sh file.
28722         * tests/test-pwrite.sh: Delete file.
28723         * modules/pwrite-tests: Remove references.
28724         Reported by Bruno Haible.
28725
28726 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28727
28728         init.sh: fix a typo
28729         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28730
28731 2010-05-10  Jim Meyering  <meyering@redhat.com>
28732
28733         maint.mk: avoid using a temporary file in the always-defined-macros check
28734         * top/maint.mk (.re-defmac): Remove rule.
28735         (gl_trap_): Remove definition.
28736         (sc_prohibit_always-defined_macros): Rewrite not to create and
28737         depend on a temporary file.  Instead, depend on GNU grep's ability
28738         to read a list of regular expressions from stdin when given "-f -".
28739
28740 2010-05-09  Bruno Haible  <bruno@clisp.org>
28741
28742         Update to GNU gettext 0.18, part 1.
28743         * m4/gettext.m4: Update to GNU gettext 0.18.
28744         * m4/intl.m4: Likewise.
28745         * m4/po.m4: Likewise.
28746         * modules/gettext (Files): Add m4/fcntl-o.m4.
28747         (configure.ac): Require gettext infrastructure from version 0.18.
28748
28749 2010-05-09  Jim Meyering  <meyering@redhat.com>
28750
28751         init.sh: enable MALLOC_PERTURB_
28752         * tests/init.sh: Enable glibc's malloc-perturbing option.
28753
28754         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28755         With my recent change in init.sh from the two-line form:
28756             -#   : ${srcdir=.}
28757             -#   . "$srcdir/init.sh"; path_prepend_ .
28758             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28759         I noticed that using the one-line form would cause this test
28760         to fail with a false-positive, or to stop working altogether,
28761         depending on whether help-version changed or all the tests did.
28762         * top/maint.mk (_hv_regex): Remove this definition.
28763         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28764         (_hv_regex_strong): Use a stronger regex to check for conformance.
28765         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28766         Give a separate diagnostic for lack of conforming use.
28767
28768         maint.mk: prohibit definition of symbols defined by gnulib
28769         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28770         definition of symbols defined by gnulib.
28771
28772 2010-05-09  Bruno Haible  <bruno@clisp.org>
28773
28774         acl: Avoid test failure on Cygwin-hosted mingw.
28775         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28776
28777 2010-05-09  Bruno Haible  <bruno@clisp.org>
28778
28779         error: Use system's fcntl function.
28780         * lib/error.c (fcntl): Undefine.
28781
28782 2010-05-09  Jim Meyering  <meyering@redhat.com>
28783
28784         verify: adjust formatting to be more consistent
28785         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28786         argument-list '('s, and after one comma.
28787
28788 2010-05-09  Bruno Haible  <bruno@clisp.org>
28789
28790         error: More reliable output on mingw.
28791         * lib/error.c: Include <windows.h>.
28792         (is_open): New function.
28793         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28794         defined.
28795
28796 2010-05-09  Bruno Haible  <bruno@clisp.org>
28797
28798         vasnprintf: Fix syntax errors in libintl build on mingw.
28799         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28800         pad_ourselves and prec_ourselves after use.
28801
28802 2010-05-08  Bruno Haible  <bruno@clisp.org>
28803
28804         * lib/config.charset: Update comments for Cygwin 1.7.
28805         * lib/localcharset.c: Likewise.
28806
28807 2010-05-07  Jim Meyering  <meyering@redhat.com>
28808
28809         init.sh: improve comments
28810         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28811         . "${srcdir=.}/init.sh"; path_prepend_ .
28812         Add a note about path_prepend_ and the alternative of using
28813         TESTS_ENVIRONMENT.
28814
28815 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28816
28817         exclude: Unescape hashed patterns in wildcard mode.
28818         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28819         to the hash list.
28820         * tests/test-exclude8.sh: New test case.
28821         * modules/exclude-tests: Add new test.
28822
28823 2010-05-05  Eric Blake  <eblake@redhat.com>
28824
28825         verify: automate tests
28826         * modules/verify-tests: New module.
28827         * tests/test-verify.sh: New file.
28828         * tests/test-verify.c: Guard each negative test with a unique id.
28829         Also avoid warning about unused left hand of comma expressions.
28830
28831 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28832
28833         Further improvements to verify.h, suggested by Eric Blake.
28834         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28835         the GL_* versions, to avoid collision with OpenGL.
28836         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28837         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28838         than testing merely whether it's defined.
28839
28840         Modify verify.h to pacify gcc -Wredundant_decls.
28841         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28842         These use the prefix "GL_" since they're likely to be useful elsewhere.
28843         We may need to break them out into a different .h file.
28844         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28845         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28846         of verify_function__.
28847
28848 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28849
28850         Tests for module pwrite.
28851         * modules/pwrite-tests: New file.
28852         * tests/test-pwrite.sh: New file.
28853         * tests/test-pwrite.c: New file.
28854
28855         New module pwrite.
28856         * lib/unistd.in.h (pwrite): New declaration.
28857         * lib/pwrite.c: New file, from glibc with modifications.
28858         * m4/pwrite.m4: New file.
28859         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28861         REPLACE_PWRITE.
28862         * modules/pwrite: New file.
28863         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28864         REPLACE_PWRITE.
28865         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28866         * doc/posix-functions/pwrite.texi: Mention the new module.
28867
28868 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28869
28870         pread: Update documentation.
28871         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28872
28873 2010-05-04  Eric Blake  <eblake@redhat.com>
28874
28875         docs: update cygwin progress
28876         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28877         this bug.
28878         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28879         Added in cygwin 1.7.2.
28880         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28881         Likewise.
28882         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28883         Likewise.
28884         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28885         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28886         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28887         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28888         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28889         Mention nproc module.
28890         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28891         bug in cygwin 1.7.5 addition.
28892         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28893         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28894         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28895         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28896         1.7.5.
28897         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28898         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28899         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28900         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28901         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28902         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28903         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28904         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28905         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28906         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28907         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28908         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28909         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28910         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28911         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28912         Likewise.
28913         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28914         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28915         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28916         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28917         Likewise.
28918         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28919         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28920         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28921         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28922         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28923         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28924         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28925         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28926         Likewise.
28927         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28928         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28929         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28930         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28931         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28932         Likewise.
28933         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28934         Likewise.
28935         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28936         Likewise.
28937         * doc/glibc-functions/xdrrec_endofrecord.texi
28938         (xdrrec_endofrecord): Likewise.
28939         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28940         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28941         Likewise.
28942         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28943         Likewise.
28944
28945 2010-05-04  Jim Meyering  <meyering@redhat.com>
28946
28947         gendocs.sh: make its "-s FILE" option more useful
28948         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28949         $PACKAGE to reflect the probably-different basename of "FILE".
28950
28951 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28952
28953         bootstrap: don't ignore download_po_files failure
28954         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28955         failure.
28956
28957 2010-05-03  Jim Meyering  <meyering@redhat.com>
28958
28959         maint.mk: allow to pass options to gendocs.sh
28960         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28961         (gendocs_options_): New overridable variable.
28962
28963         gnu-web-doc-update: don't ignore configure or build failure
28964         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28965
28966         announce-gen: backslash-escape '@'s in --help output
28967         * build-aux/announce-gen: Fix syntax errors.
28968
28969         maint.mk, announce-gen: allow project-specific announcement mail headers
28970         * top/maint.mk (translation_project_): Define default.
28971         (announcement_Cc_, announcement_mail_headers_): Likewise.
28972         (announcement): Invoke announce-gen with new --mail-headers option.
28973         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28974
28975         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28976         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28977         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28978         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28979         line in the "err2" output file when running "make check" in verbose
28980         mode (i.e., with set -x enabled).
28981
28982 2010-05-03  Bruno Haible  <bruno@clisp.org>
28983
28984         wctob: Fix for weird platforms.
28985         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28986         argument value.
28987
28988 2010-05-03  Jim Meyering  <meyering@redhat.com>
28989
28990         maint.mk: prohibit unwarranted use of <strings.h>
28991         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28992         strings.h in a file that does not also use strcasecmp, strncasecmp,
28993         ffs or ffsll.
28994
28995         maint.mk: remove obsolete comments
28996         * top/maint.mk: Remove stale, commented-out rules.
28997
28998 2010-05-02  Bruno Haible  <bruno@clisp.org>
28999
29000         wcwidth: Declare also when it's aliased.
29001         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29002         macro.
29003
29004 2010-05-02  Bruno Haible  <bruno@clisp.org>
29005
29006         Fix regression from 2010-04-25.
29007         * gnulib-tool (func_modules_transitive_closure): Check the status of
29008         all modules, not only of the tests that are of the form foo-tests where
29009         foo is a module.
29010
29011 2010-05-02  Bruno Haible  <bruno@clisp.org>
29012
29013         wctob: Work around nasty Cygwin 1.7.2 bug.
29014         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29015         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29016
29017 2010-05-01  Bruno Haible  <bruno@clisp.org>
29018
29019         fpurge: Sharper test.
29020         * tests/test-fpurge.c (main): Add one more ftell check.
29021         * modules/fpurge-tests (Depends-on): Add ftell.
29022         Suggested by Eric Blake.
29023
29024 2010-05-01  Bruno Haible  <bruno@clisp.org>
29025
29026         ftello: Another test.
29027         * tests/test-ftello3.c: New file.
29028         * modules/ftello-tests (Files): Add it.
29029         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29030         MOSTLYCLEANFILES.
29031
29032         ftell: Another test.
29033         * tests/test-ftell3.c: New file.
29034         * modules/ftell-tests (Files): Add it.
29035         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29036         MOSTLYCLEANFILES.
29037
29038 2010-05-01  Bruno Haible  <bruno@clisp.org>
29039
29040         ftell, ftello: Work around Solaris bug.
29041         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29042         * lib/ftello.c: Include stdio-impl.h.
29043         (ftello): On Solaris, when _IOWRT is set, compute the result without
29044         looking at _IOREAD.
29045         * modules/ftello (Files): Add lib/stdio-impl.h.
29046         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29047         * doc/posix-functions/ftello.texi: Likewise.
29048         Reported by Eric Blake.
29049
29050 2010-05-01  Bruno Haible  <bruno@clisp.org>
29051
29052         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29053         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29054         the _IOWRT flag is also set.
29055
29056 2010-05-01  Bruno Haible  <bruno@clisp.org>
29057
29058         Fix doc about a HP-UX stdio bug.
29059         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29060         * doc/posix-functions/ftello.texi: Likewise.
29061
29062 2010-05-01  Bruno Haible  <bruno@clisp.org>
29063
29064         lseek test: Fix failure on Solaris.
29065         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29066         output.
29067
29068 2010-04-30  Jim Meyering  <meyering@redhat.com>
29069
29070         bootstrap: don't ignore failure to generate po*/Makevars
29071         * build-aux/bootstrap (with_gettext): Don't ignore failure
29072         to create po/Makevars or runtime-po/Makevars.
29073
29074 2010-04-29  Eric Blake  <eblake@redhat.com>
29075
29076         headers: relax license to LGPLv2+
29077         * modules/fcntl-h (License): Relax license.
29078         * modules/getopt-posix (License): Likewise.
29079         * modules/locale (License): Likewise.
29080         * modules/math (License): Likewise.
29081         * modules/pty (License): Likewise.
29082         * modules/sched (License): Likewise.
29083         * modules/search (License): Likewise.
29084         * modules/spawn (License): Likewise.
29085         * modules/stdarg (License): Likewise.
29086         * modules/sysexits (License): Likewise.
29087
29088 2010-04-29  Jim Meyering  <meyering@redhat.com>
29089
29090         inttypes: relax license to LGPLv2+
29091         * modules/inttypes (License): Relax license.
29092
29093 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29094
29095         * top/maint.mk (indent): Run twice to produce idempotent results.
29096
29097 2010-04-28  Bruno Haible  <bruno@clisp.org>
29098
29099         getdate: Generate getdate.c in the source directory.
29100         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29101         MOSTLYCLEANFILES.
29102         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29103
29104 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29105
29106         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29107         is not declared as a const *; avoid warnings in that case.
29108
29109 2010-04-28  Eric Blake  <eblake@redhat.com>
29110
29111         canonicalize-lgpl: avoid compiler warning
29112         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29113         declaration' / 'extraneous semicolon' warning with some compilers.
29114         Reported by Andreas Gruenbacher.
29115
29116 2010-04-28  Jim Meyering  <meyering@redhat.com>
29117
29118         init.sh: ensure a more reliable exit status when exiting via trap
29119         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29120         Inspired by patches from Dmitry V. Levin.
29121         Also trap on signal 3 (SIGQUIT).
29122
29123 2010-04-27  Bruno Haible  <bruno@clisp.org>
29124
29125         Update doc about utimes().
29126         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29127         'utimens' module.
29128         Reported by Andreas Gruenbacher <agruen@suse.de>.
29129
29130 2010-04-27  Eric Blake  <eblake@redhat.com>
29131
29132         full-read, full-write: relax license
29133         * modules/full-read (License): Drop to LGPLv2+.
29134         * modules/full-write (License): Likewise.
29135         * modules/safe-read (License): Likewise.
29136         * modules/safe-write (License): Likewise.
29137
29138         pthread: mention library for linking
29139         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29140
29141 2010-04-27  Jim Meyering  <meyering@redhat.com>
29142
29143         maint.mk: fix a bug introduced in last change
29144         * top/maint.mk (gl_assured_headers_): Now that all names are on
29145         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29146         is not anchored to end of word, it should be adequate.
29147
29148         maint.mk: avoid side-effect in latest syntax-check
29149         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29150         to run commands via $(shell...), and hence to incur cost only when
29151         the new rule is actually run.
29152
29153         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29154         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29155         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29156         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29157         (gl_assured_headers_, az_, AZ_): Define.
29158         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29159
29160 2010-04-26  Jim Meyering  <jim@meyering.net>
29161             Bruno Haible  <bruno@clisp.org>
29162
29163         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29164         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29165         Prompted by an exchange with Gilles Espinasse.
29166
29167 2010-04-26  Jim Meyering  <meyering@redhat.com>
29168
29169         git-version-gen: aesthetic tweak
29170         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29171         so that the command remains on a single line.
29172
29173 2010-04-26  Eric Blake  <eblake@redhat.com>
29174
29175         git-version-gen: allow use on EBCDIC hosts
29176         * build-aux/git-version-gen (dirty): Use literal rather than tying
29177         ourselves to ascii.
29178         Reported by Steve Goetze.
29179
29180 2010-04-25  Bruno Haible  <bruno@clisp.org>
29181
29182         netdb: Add support for GNULIB_POSIXCHECK.
29183         * lib/netdb.in.h: Include warn-on-use.h.
29184         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29185         functions are used when GNULIB_POSIXCHECK is defined and the
29186         getaddrinfo module is not in use.
29187         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29188         freeaddrinfo, gai_strerror, getnameinfo are declared.
29189         * modules/netdb (Depends-on): Add warn-on-use.
29190         (Makefile.am): Include warn-on-use.h in netdb.h.
29191
29192 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29193
29194         build: avoid "make check" failure without .git/ directory
29195         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29196         there is no .git/ directory.
29197
29198 2010-04-25  Bruno Haible  <bruno@clisp.org>
29199
29200         ptsname: Fix misuse of ttyname_r.
29201         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29202         of errno.
29203
29204 2010-04-25  Bruno Haible  <bruno@clisp.org>
29205
29206         ttyname_r: Make it work on Solaris 10.
29207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29208         if the system function has the POSIX declaration. Test whether the
29209         function fails if the buffer is less than 128 bytes large.
29210         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29211         system's ttyname_r function. Provide a reasonably large buffer.
29212         * modules/ttyname_r (Depends-on): Add extensions.
29213         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29214
29215 2010-04-25  Bruno Haible  <bruno@clisp.org>
29216
29217         Use the 'extensions' module for some more functions on Solaris.
29218         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29219         module.
29220         * doc/posix-functions/ctime_r.texi: Likewise.
29221         * doc/posix-functions/getgrgid_r.texi: Likewise.
29222         * doc/posix-functions/getgrnam_r.texi: Likewise.
29223         * doc/posix-functions/getpwnam_r.texi: Likewise.
29224         * doc/posix-functions/getpwuid_r.texi: Likewise.
29225         * doc/posix-functions/readdir_r.texi: Likewise.
29226         * doc/posix-functions/sigwait.texi: Likewise.
29227         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29228         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29229
29230 2010-04-25  Bruno Haible  <bruno@clisp.org>
29231
29232         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29234         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29235         * lib/ttyname_r.c: Include <limits.h>.
29236         (ttyname_r): Define using the system's ttyname_r function, if it exists
29237         and not on Solaris.
29238         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29239         set.
29240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29241         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29242         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29243         Reported by Simon Josefsson.
29244
29245 2010-04-25  Bruno Haible  <bruno@clisp.org>
29246
29247         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29248         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29249         * doc/posix-functions/ctime_r.texi: Likewise.
29250         * doc/posix-functions/getgrgid_r.texi: Likewise.
29251         * doc/posix-functions/getgrnam_r.texi: Likewise.
29252         * doc/posix-functions/getlogin_r.texi: Likewise.
29253         * doc/posix-functions/getpwnam_r.texi: Likewise.
29254         * doc/posix-functions/getpwuid_r.texi: Likewise.
29255         * doc/posix-functions/readdir_r.texi: Likewise.
29256         * doc/posix-functions/sigwait.texi: Likewise.
29257         * doc/posix-functions/ttyname_r.texi: Likewise.
29258         Reported by Simon Josefsson.
29259
29260 2010-04-25  Bruno Haible  <bruno@clisp.org>
29261
29262         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29263         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29264         also to --create-testdir.
29265         (func_acceptable): Don't consider the status of *-tests modules here.
29266         (func_modules_transitive_closure): Consider it here, before including a
29267         test module.
29268         (func_import, func_create_testdir): Set inc_all_direct_tests,
29269         inc_all_indirect_tests.
29270         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29271         --create-testdir and --create-megatestdir.
29272
29273 2010-04-25  Bruno Haible  <bruno@clisp.org>
29274
29275         gnulib-tool: Add --without-*-tests options.
29276         * gnulib-tool (func_usage): Document the --without-*-tests options.
29277         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29278         excl_unportable_tests): New variables.
29279         Fail if they are specified with --import or --update.
29280         (func_acceptable): Respect the excl_*_tests variables.
29281         (func_import): Set the excl_*_tests variables to empty.
29282
29283 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29284             Bruno Haible  <bruno@clisp.org>
29285
29286         Work around a MacOS X 10.4 bug with openpty.
29287         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29288         * tests/test-openpty.c (main): Close the master side explicitly.
29289
29290 2010-04-25  Bruno Haible  <bruno@clisp.org>
29291
29292         strnlen: Fix a C++ test error on MacOS X and Solaris.
29293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29294         the function is not declared.
29295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29296         Simon Josefsson.
29297
29298 2010-04-24  Bruno Haible  <bruno@clisp.org>
29299
29300         Avoid a gcc warning.
29301         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29302         of correct type for %08lx directive.
29303         Reported by Eric Blake.
29304
29305 2010-04-24  Bruno Haible  <bruno@clisp.org>
29306
29307         vasnprintf: Correct errno value in case of out-of-memory.
29308         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29309         or sprintf. Use the errno value from SNPRINTF or sprintf.
29310         Reported by Ian Beckwith <ianb@erislabs.net>.
29311
29312 2010-04-24  Bruno Haible  <bruno@clisp.org>
29313
29314         ansi-c++-opt: Find correct compiler when cross-compiling.
29315         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29316         AC_CHECK_PROGS.
29317         Reported by Simon Josefsson.
29318
29319 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29320
29321         vc-list-files: Add support for subversion
29322         * build-aux/vc-list-files: Use "svn list" to generate the list of
29323         files controlled by subversion.
29324
29325 2010-04-23  Jim Meyering  <meyering@redhat.com>
29326
29327         vc-list-files tests: convert to use init.sh
29328         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29329         path_prepend_.
29330         Use Exit, not exit.
29331         Use skip_ rather than open coding it.
29332         Remove trap set-up and compare definitions.
29333         * tests/test-vc-list-files-git.sh: Likewise.
29334         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29335
29336 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29337
29338         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29339         backup files.
29340
29341 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29342
29343         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29344
29345 2010-04-20  Eric Blake  <eblake@redhat.com>
29346
29347         tests: be robust to ignored SIGPIPE
29348         * tests/test-select-in.sh: Consume all output.
29349         * tests/test-lseek.sh: Check correct exit status, while avoiding
29350         EPIPE.
29351
29352 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29353             Bruno Haible  <bruno@clisp.org>
29354
29355         visibility: Don't use -fvisibility if it leads to a warning.
29356         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29357         yes, don't pretend that visibility works if it leads to a warning.
29358         Reported by Mike Gran <spk121@yahoo.com>.
29359
29360 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29361
29362         * build-aux/bootstrap: Use "git -h" for testing for supported options
29363         instead of "git --help".  The short-form option only shows a summary,
29364         and doesn't layout the full man page.  Grep for the full option name
29365         in the summary, too.
29366
29367 2010-04-19  Bruno Haible  <bruno@clisp.org>
29368
29369         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29370         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29371         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29372         mention of RELOCATABLE_STRIP.
29373         Reported by Sylvain Beucler <beuc@beuc.net>.
29374
29375 2010-04-19  Bruno Haible  <bruno@clisp.org>
29376
29377         * lib/diffseq.h: Fix typo in comment.
29378         Reported by Eric Blake.
29379
29380 2010-04-19  Bruno Haible  <bruno@clisp.org>
29381
29382         ioctl: Move autoconf macro to a .m4 file.
29383         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29384         * modules/ioctl (Files): Add it.
29385         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29386         Reported by Ian Beckwith <ianb@erislabs.net>.
29387
29388 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29389             Bruno Haible  <bruno@clisp.org>
29390
29391         diffseq: Accommodate use-case with abstract arrays.
29392         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29393         is not defined.
29394         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29395         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29396
29397 2010-04-18  Bruno Haible  <bruno@clisp.org>
29398
29399         * doc/posix-headers/stdbool.texi: More precise wording.
29400
29401 2010-04-17  Jim Meyering  <meyering@redhat.com>
29402
29403         maint.mk: use gnu-style indentation in an embedded perl script
29404         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29405         Rename variable: s/two/last_two_bytes/
29406
29407 2010-04-16  Eric Blake  <eblake@redhat.com>
29408
29409         test-stdbool: skip test that fails with Solaris CC
29410         * tests/test-stdbool.c (f): Skip test that causes compilation
29411         error under buggy C++ compiler.
29412         * lib/stdbool.in.h: Document the limitation.
29413         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29414
29415         setenv: allow compilation with C++
29416         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29417         register keyword.
29418
29419         stdint: allow test to pass with C++
29420         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29421
29422         getopt: allow compilation with C++
29423         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29424         struct.
29425         * lib/getopt.c (_getopt_internal_r): Use correct type.
29426         Reported by Dagobert Michelson, via Joel E. Denny.
29427
29428 2010-04-16  Bruno Haible  <bruno@clisp.org>
29429
29430         Override netdb.h always.
29431         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29432         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29433         Reported by Ludovic Courtès <ludo@gnu.org>.
29434
29435 2010-04-15  Bruno Haible  <bruno@clisp.org>
29436
29437         openpty: Fix mistake from 2010-03-21.
29438         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29439         Reported by Simon Josefsson.
29440
29441 2010-04-15  Eric Blake  <eblake@redhat.com>
29442
29443         test-forkpty: fix expected signature
29444         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29445         Reported by Simon Josefsson.
29446
29447 2010-04-15  Jim Meyering  <meyering@redhat.com>
29448
29449         maint.mk: texinfo_suffix_re_: correct the default regexp
29450         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29451
29452         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29453         make it configurable via texinfo_suffix_re_.
29454
29455 2010-04-14  Eric Blake  <eblake@redhat.com>
29456
29457         strtok_r: relax license to LGPLv2+
29458         * modules/strtok_r (License): Relax license.
29459         Reported by Matthias Bolte.
29460
29461 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29462
29463         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29464         version 1.4.4 by default instead of requiring the libgcrypt
29465         version used during build.  This makes it possible to use the
29466         application with older but still binary compatible libgcrypt
29467         versions.
29468
29469 2010-04-13  Eric Blake  <eblake@redhat.com>
29470
29471         getopt-gnu: match recent glibc fixes and posix ruling
29472         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29473         '+' handling, when requesting extensions.
29474         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29475         'W;' handling.
29476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29477         * doc/posix-functions/getopt.texi (getopt): Document this.
29478         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29479         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29480         Likewise.
29481
29482         getopt: merge bug fixes from glibc
29483         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29484         diagnostics.  Honor '+:' correctly.  Reject ';'.
29485
29486         getopt-posix: detect MacOS bug
29487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29488         optind when missing a required argument.
29489         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29490         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29491         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29492         Likewise.
29493
29494         getopt-posix: avoid spurious failure on Solaris
29495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29496         an indicator that setting optind=1 is sufficient for reset.
29497
29498         getopt-posix: avoid spurious failure on FreeBSD
29499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29500         in POSIX mode, since the m4 test uses it.
29501
29502         gnulib-tool: silence warning on BSD sh
29503         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29504
29505 2010-04-13  Jim Meyering  <meyering@redhat.com>
29506
29507         doc: users.txt: GNU patch now uses gnulib
29508         * users.txt: Add patch.
29509
29510 2010-04-12  Jim Meyering  <meyering@redhat.com>
29511
29512         maint.mk: generate more concise timing data for syntax-check rules
29513         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29514         " done" from each line that reports a syntax-check test duration.
29515
29516 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29517
29518         git-version-gen: use "git update-index..." rather than "git status"
29519         * build-aux/git-version-gen: Use git update-index --refresh, not
29520         "git status".  With some versions of git, "git status" would fail
29521         to update the index and result in an unwarranted "-dirty" suffix.
29522
29523 2010-04-11  Jim Meyering  <meyering@redhat.com>
29524
29525         openat: correct formatting (no semantic change)
29526         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29527         Suggested by Bruno Haible.
29528
29529 2010-04-11  Bruno Haible  <bruno@clisp.org>
29530
29531         Stricter declaration checking in testdirs.
29532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29533         If for_tests is true, augment AM_CPPFLAGS to define
29534         GNULIB_STRICT_CHECKING.
29535         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29536         GNULIB_STRICT_CHECKING is defined, verify that the function is
29537         declared.
29538
29539 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29540             Bruno Haible  <bruno@clisp.org>
29541
29542         libunistring: Improve configure output.
29543         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29544         Don't say "consider installing GNU libunistring" when checking again
29545         with libiconv.
29546
29547 2010-04-11  Bruno Haible  <bruno@clisp.org>
29548
29549         libunistring: Correct value of $LTLIBUNISTRING.
29550         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29551         correct the value of $LTLIBUNISTRING.
29552
29553 2010-04-11  Bruno Haible  <bruno@clisp.org>
29554
29555         havelib: Add static libraries to LIBS in the right order.
29556         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29557         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29558
29559 2010-04-11  Bruno Haible  <bruno@clisp.org>
29560
29561         libunistring: Detect libunistring also when it depends on libiconv.
29562         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29563         the second AC_LIB_HAVE_LINKFLAGS invocation.
29564
29565 2010-04-11  James Youngman  <jay@gnu.org>
29566
29567         close-stream: declare local scalars to be "const"
29568         * lib/close-stream.c (close_stream): Make boolean variables const
29569         to document the fact that we set but do not change them.
29570
29571 2010-04-11  Bruno Haible  <bruno@clisp.org>
29572
29573         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29574
29575 2010-04-11  Jim Meyering  <meyering@redhat.com>
29576
29577         maint.mk: don't include dist-check.mk
29578         * top/maint.mk: Remove bogus include directive.
29579
29580         maint.mk: improve empty-line-at-EOF check
29581         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29582         solution, rather than tail+Perl-based one.  The latter would read
29583         a few kilobytes from the end of each file, and did not handle empty
29584         files properly.
29585
29586         maint.mk: print the elapsed time for each syntax-check rule
29587         * top/maint.mk (sc_m_rules_): Save start time in a file.
29588         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29589         (local-check): Interpose the .z rules
29590
29591 2010-04-11  Jim Meyering  <meyering@redhat.com>
29592
29593         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29594         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29595         empty file with one that ends in an empty line.
29596
29597 2010-04-10  Bruno Haible  <bruno@clisp.org>
29598
29599         mkdir: Make it work on mingw64.
29600         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29601         * lib/mkdir.c: Update comment.
29602         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29603
29604 2010-04-10  Bruno Haible  <bruno@clisp.org>
29605
29606         Don't override improved macro from newer autoconf.
29607         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29608         autoconf >= 2.62.
29609         Reported by Joel E. Denny <jdenny@clemson.edu>.
29610
29611 2010-04-10  Jim Meyering  <meyering@redhat.com>
29612
29613         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29614         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29615
29616         maint.mk: correct a diagnostic
29617         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29618         in diagnostic; now use $prohibit.
29619
29620 2010-04-10  Bruno Haible  <address@hidden>
29621
29622         fchownat: Fix a C++ test error on Solaris 8.
29623         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29624         the function does not exist.
29625
29626 2010-04-10  Bruno Haible  <bruno@clisp.org>
29627
29628         vasnprintf: Add more tests.
29629         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29630         (test_function): Test converting an invalid wide string.
29631
29632         vasnprintf: Correct handling of unconvertible wide string arguments.
29633         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29634         VASNPRINTF.
29635         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29636         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29637         smaller than the expected maximum need for the directive. Set errno to
29638         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29639         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29641         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29642         * modules/vasnprintf (Files): Add m4/printf.m4.
29643         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29644
29645 2010-04-10  Bruno Haible  <bruno@clisp.org>
29646
29647         vasnprintf: Fix crash in %ls directive.
29648         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29649         string is passed as argument to %ls, with no precision and no width.
29650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29651
29652 2010-04-10  Bruno Haible  <bruno@clisp.org>
29653
29654         vasnprintf: Fix multiple test failures on mingw.
29655         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29656         _snprintf, or snwprintf, not _snwprintf.
29657
29658 2010-04-10  Bruno Haible  <bruno@clisp.org>
29659
29660         write: Fix a C++ test error on mingw.
29661         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29662
29663 2010-04-10  Bruno Haible  <bruno@clisp.org>
29664
29665         vasnprintf test: Reduce code duplication.
29666         * tests/test-vasnprintf.c (test_function): New function, extracted from
29667         test_vasnprintf.
29668         (test_vasnprintf, test_asnprintf): Invoke it.
29669
29670 2010-04-10  Bruno Haible  <bruno@clisp.org>
29671
29672         strnlen: Fix warning in C++ mode on MacOS X.
29673         * lib/string.in.h (strnlen): Use the modern idiom.
29674         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29675         defining strnlen as a macro already in <config.h>.
29676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29677         REPLACE_STRNLEN.
29678         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29679         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29680
29681 2010-04-08  James Youngman  <jay@gnu.org>
29682
29683         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29684         the example.
29685
29686 2010-04-09  Jim Meyering  <meyering@redhat.com>
29687
29688         maint.mk: print better diagnostic when there is no $(_hv_file)
29689         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29690         announce that when $(_hv_file) (aka help-version) does not exist.
29691
29692         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29693         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29694         not try to interpret its random input bytes.  Jarno Rajahalme reported
29695         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29696         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29697         (mktempd_): Likewise, just in case.
29698
29699         ftruncate: add two years to projected module removal date: 2012
29700         * m4/ftruncate.m4: Adjust comments.
29701
29702         ftruncate: mark module as obsolete; even MinGW provides it, now
29703         * modules/ftruncate (Status): Obsolete.
29704         (Notice): Say that.
29705         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29707
29708 2010-04-08  Bruno Haible  <bruno@clisp.org>
29709
29710         Fix side effects from tests-related modules.
29711         * modules/dprintf-posix (Comment): New section.
29712         * modules/fprintf-posix (Comment): Likewise.
29713         * modules/obstack-printf-posix (Comment): Likewise.
29714         * modules/printf-posix (Comment): Likewise.
29715         * modules/snprintf-posix (Comment): Likewise.
29716         * modules/sprintf-posix (Comment): Likewise.
29717         * modules/vasnprintf-posix (Comment): Likewise.
29718         * modules/vasprintf-posix (Comment): Likewise.
29719         * modules/vdprintf-posix (Comment): Likewise.
29720         * modules/vfprintf-posix (Comment): Likewise.
29721         * modules/vprintf-posix (Comment): Likewise.
29722         * modules/vsnprintf-posix (Comment): Likewise.
29723         * modules/vsprintf-posix (Comment): Likewise.
29724         * modules/xprintf-posix (Comment): Likewise.
29725         * modules/xvasprintf-posix (Comment): Likewise.
29726         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29727         * modules/floorf-tests (Depends-on): Likewise.
29728         * modules/round-tests (Depends-on): Likewise.
29729         * modules/roundf-tests (Depends-on): Likewise.
29730         * modules/trunc-tests (Depends-on): Likewise.
29731         * modules/truncf-tests (Depends-on): Likewise.
29732         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29733         'fprintf-posix' module is not present.
29734         * tests/test-floorf2.c (check): Likewise.
29735         * tests/test-trunc2.c (check): Likewise.
29736         * tests/test-truncf2.c (check): Likewise.
29737         * tests/test-round2.c (equal): Likewise.
29738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29739
29740 2010-04-07  Karl Berry  <karl@gnu.org>
29741
29742         * config/srclist.txt,
29743         * config/srclistvars.sh,
29744         * config/srclist-update: doc fixes.
29745
29746 2010-04-07  Jim Meyering  <meyering@redhat.com>
29747
29748         maint.mk: add a PATH crosschecking syntax-check rule
29749         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29750         Useful if you use a test like the one in help-version (coreutils,
29751         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29752         printed by prog --version.
29753
29754 2010-04-06  Bruno Haible  <bruno@clisp.org>
29755
29756         Fix link error on mingw.
29757         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29758         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29759
29760 2010-04-06  Bruno Haible  <bruno@clisp.org>
29761
29762         Assume rmdir exists.
29763         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29764
29765 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29766
29767         doc: update users.txt
29768         * users.txt: Add gcal.
29769
29770 2010-04-06  Jim Meyering  <meyering@redhat.com>
29771
29772         init.sh: simply unset TMPDIR rather than risking env -i
29773         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29774         although it probably works fine on all Unix-based systems, some
29775         systems (Cygwin?) cannot tolerate a totally cleared environment.
29776         Suggestion from Eric Blake.
29777
29778 2010-04-06  Jim Meyering  <meyering@redhat.com>
29779
29780         init.sh: portability fix: use env's POSIX-specified -i option not -u
29781         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29782         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29783
29784 2010-04-05  Bruno Haible  <bruno@clisp.org>
29785
29786         btowc: Work around Cygwin 1.7.2 bug.
29787         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29788         does not map NUL to 0.
29789         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29790
29791 2010-04-05  Bruno Haible  <bruno@clisp.org>
29792
29793         Make the multithread modules work on Cygwin 1.7.2.
29794         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29795         imported symbols can be declared weak, so that it returns "no" on
29796         Cygwin 1.7.2.
29797
29798 2010-04-05  Bruno Haible  <bruno@clisp.org>
29799
29800         Use the module 'strncat'.
29801         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29802
29803         Tests for module 'strncat'.
29804         * modules/strncat-tests: New file.
29805         * tests/test-strncat.c: New file.
29806
29807         New module 'strncat'.
29808         * lib/string.in.h (strncat): New declaration.
29809         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29810         * m4/strncat.m4: New file, based on m4/memchr.m4.
29811         * modules/strncat: New file.
29812         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29813         is declared.
29814         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29815         REPLACE_STRNCAT.
29816         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29817         REPLACE_STRNCAT.
29818         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29819         module.
29820         * tests/test-string-c++.cc: Check signature of strncat.
29821
29822 2010-04-05  Jim Meyering  <meyering@redhat.com>
29823
29824         xstrtoumax-tests: convert to use init.sh
29825         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29826         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29827         Use Exit, not exit.
29828         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29829
29830         xstrtoimax-tests: convert to use init.sh
29831         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29832         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29833         Use Exit, not exit.
29834         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29835
29836 2010-04-05  Bruno Haible  <bruno@clisp.org>
29837
29838         sys_socket: Avoid #define replacements in C++ mode.
29839         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29840         warning to the function if possible, rather than #defining the symbol
29841         to a dysfunctional alias.
29842
29843 2010-04-05  Bruno Haible  <bruno@clisp.org>
29844
29845         fseeko: Fix C++ test error on mingw.
29846         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29847         gl_FUNC_FSEEKO.
29848         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29849         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29851         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29852
29853 2010-04-05  Bruno Haible  <bruno@clisp.org>
29854
29855         duplocale: Improve test output.
29856         * tests/test-duplocale.c (main): Print reason for skipped test.
29857
29858 2010-04-05  Bruno Haible  <bruno@clisp.org>
29859
29860         Assume rmdir exists.
29861         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29862         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29863
29864 2010-04-05  Bruno Haible  <bruno@clisp.org>
29865
29866         Fix link error on Solaris 8 with cc.
29867         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29868
29869 2010-04-05  Bruno Haible  <bruno@clisp.org>
29870
29871         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29872         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29873
29874 2010-04-05  Bruno Haible  <bruno@clisp.org>
29875
29876         vasprintf: Update documentation.
29877         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29878
29879 2010-04-05  Bruno Haible  <bruno@clisp.org>
29880
29881         ptsname: Improve test.
29882         * tests/test-ptsname.c (main): Also try the various master names of BSD
29883         systems.
29884
29885 2010-04-05  Bruno Haible  <bruno@clisp.org>
29886
29887         memchr: Avoid a possible C++ test error.
29888         * lib/string.in.h (memchr): Provide declaration if function is missing.
29889         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29890         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29892         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29893
29894 2010-04-05  Bruno Haible  <bruno@clisp.org>
29895
29896         strtok_r: Improve idiom.
29897         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29898         AC_LIBOBJ is used.
29899
29900 2010-04-05  Bruno Haible  <bruno@clisp.org>
29901
29902         strdup: Improve idiom.
29903         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29904         AC_LIBOBJ is used.
29905         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29906         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29907         when AC_LIBOBJ is used.
29908
29909 2010-04-05  Bruno Haible  <bruno@clisp.org>
29910
29911         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29912         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29913         don't set REPLACE_MBSINIT to 1.
29914         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29915         don't set REPLACE_MBRTOWC to 1.
29916         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29917         exist, don't set REPLACE_MBSRTOWCS to 1.
29918         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29919         exist, don't set REPLACE_MBSNRTOWCS to 1.
29920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29921         don't set REPLACE_WCRTOMB to 1.
29922         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29923         exist, don't set REPLACE_WCSRTOMBS to 1.
29924         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29925         exist, don't set REPLACE_WCSNRTOMBS to 1.
29926
29927 2010-04-05  Bruno Haible  <bruno@clisp.org>
29928
29929         ldexpl: Improve idiom.
29930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29931         make sure to set HAVE_DECL_LDEXPL to 0.
29932
29933 2010-04-05  Jim Meyering  <meyering@redhat.com>
29934
29935         xstrtol-tests: convert to use init.sh
29936         * modules/xstrtol-tests (Files): Add tests/init.sh.
29937         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29938         Use Exit, not exit.
29939         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29940
29941         atexit-tests: convert to use init.sh
29942         * modules/atexit-tests (Files): Add tests/init.sh.
29943         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29944         Use Exit, not exit.
29945         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29946
29947         init.sh: fix typo
29948         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29949
29950         init.sh: make it easier for a test script to write to the tty, ...
29951         when using automake's parallel-tests mode.
29952         * tests/init.sh (stderr_fileno_): Define overridable variable.
29953         (warn_): New function, to use it.
29954         (fail_, skip_, framework_failure_): Use warn_.
29955
29956 2010-04-04  Bruno Haible  <bruno@clisp.org>
29957
29958         btowc: Avoid warning.
29959         * lib/btowc.c: Include <stdlib.h>.
29960         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29961
29962 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29963             Bruno Haible  <bruno@clisp.org>
29964
29965         wchar: Port to NetBSD 1.5.
29966         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29967         * lib/wctype.in.h (WEOF): Likewise.
29968
29969 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29970             Bruno Haible  <bruno@clisp.org>
29971
29972         Port extended stdio to NetBSD 1.5.
29973         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29974         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29975         older.
29976
29977 2010-04-04  Bruno Haible  <bruno@clisp.org>
29978
29979         string: Remove unused substitution.
29980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29981         HAVE_DECL_STRERROR.
29982         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29983
29984 2010-04-04  Bruno Haible  <bruno@clisp.org>
29985
29986         strtod: Avoid a possible C++ test error.
29987         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29988         set REPLACE_STRTOD.
29989
29990 2010-04-04  Bruno Haible  <bruno@clisp.org>
29991
29992         strerror: Update documentation.
29993         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29994
29995 2010-04-04  Bruno Haible  <bruno@clisp.org>
29996
29997         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29998         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29999         _GL_CXXALIAS_SYS_CAST.
30000
30001 2010-04-04  Bruno Haible  <bruno@clisp.org>
30002
30003         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30004         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30005         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30006         REPLACE_FREXPL to 1.
30007         * doc/posix-functions/frexpl.texi: Update documentation.
30008
30009 2010-04-04  Bruno Haible  <bruno@clisp.org>
30010
30011         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30012         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30013
30014 2010-04-04  Bruno Haible  <bruno@clisp.org>
30015
30016         Implement nanosleep for native Windows.
30017         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30018
30019 2010-04-04  Bruno Haible  <bruno@clisp.org>
30020
30021         math: Fix some C++ test errors on Solaris 8.
30022         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30023
30024 2010-04-04  Bruno Haible  <bruno@clisp.org>
30025
30026         math: Fix some C++ test errors on Cygwin.
30027         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30028         truncl): Provide declaration if the system does not have it.
30029         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30030         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30031         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30032         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30033         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30034         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30035         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30036         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30037         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30038         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30039         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30040         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30041         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30042         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30043         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30044         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30046         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30047         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30048         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30049         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30050         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30051
30052 2010-04-04  Bruno Haible  <bruno@clisp.org>
30053
30054         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30055         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30056         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30057         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30058         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30059         * m4/isinf.m4 (gl_ISINF): Likewise.
30060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30061
30062 2010-04-04  Bruno Haible  <bruno@clisp.org>
30063
30064         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30065         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30066
30067 2010-04-04  Bruno Haible  <bruno@clisp.org>
30068
30069         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30070         * modules/tmpfile (configure.ac): Update.
30071
30072         tmpfile: Fix C++ test error on mingw.
30073         * lib/stdio.in.h (tmpfile): New declaration.
30074         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30075         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30076         * modules/tmpfile (Depends-on): Add stdio.
30077         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30078         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30079         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30080         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30081         REPLACE_TMPFILE.
30082         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30083
30084 2010-04-04  Bruno Haible  <bruno@clisp.org>
30085
30086         ioctl: Fix C++ test error on mingw.
30087         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30088         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30089         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30090
30091 2010-04-03  Bruno Haible  <bruno@clisp.org>
30092
30093         wcwidth: Fix C++ test error on mingw.
30094         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30096         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30097
30098 2010-04-03  Bruno Haible  <bruno@clisp.org>
30099
30100         nanosleep: Fix C++ test error on mingw.
30101         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30102         * lib/time.in.h (nanosleep): Use modern idiom.
30103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30104         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30105         REPLACE_NANOSLEEP to 1.
30106         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30107         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30108
30109 2010-04-03  Bruno Haible  <bruno@clisp.org>
30110
30111         strptime: Fix C++ test error on mingw.
30112         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30113         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30114         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30115         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30117         not REPLACE_STRPTIME.
30118         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30119         REPLACE_STRPTIME.
30120
30121 2010-04-03  Bruno Haible  <bruno@clisp.org>
30122
30123         timegm: Fix C++ test error on mingw.
30124         * lib/time.in.h (timegm): Use modern idiom.
30125         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30126         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30127         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30128         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30129
30130 2010-04-03  Bruno Haible  <bruno@clisp.org>
30131
30132         timegm: Assume declaration if function exists.
30133         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30134         if it exists. Don't clobber ac_cv_func_timegm.
30135
30136 2010-04-03  Bruno Haible  <bruno@clisp.org>
30137
30138         time_r: Fix C++ test error on mingw.
30139         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30140         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30141         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30142         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30143         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30144
30145 2010-04-03  Bruno Haible  <bruno@clisp.org>
30146
30147         time_r: Minor updates.
30148         * modules/time_r (Description): Mention the provided functions.
30149         * lib/time_r.c: Don't include <string.h>.
30150         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30151         * doc/posix-functions/localtime_r.texi: Likewise.
30152
30153 2010-04-03  Bruno Haible  <bruno@clisp.org>
30154
30155         time: Fix regression introduced on 2010-03-08.
30156         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30157         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30158
30159 2010-04-03  Jim Meyering  <meyering@redhat.com>
30160
30161         maint.mk: don't silently disable project-specific syntax-check rules
30162         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30163         that they need to convert their project-specific syntax-check rules
30164         to use the new _sc_search_regexp.
30165
30166 2010-04-03  Bruno Haible  <bruno@clisp.org>
30167
30168         fchdir: Fix regression introduced on 2010-03-08.
30169         * lib/unistd.in.h (fchdir): Fix declaration.
30170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30172         REPLACE_FCHDIR.
30173         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30174         REPLACE_FCHDIR.
30175
30176 2010-04-03  Bruno Haible  <bruno@clisp.org>
30177
30178         getpagesize: Fix C++ test error on mingw.
30179         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30180         system does not declare the function.
30181         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30182         declared.
30183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30184         HAVE_DECL_GETPAGESIZE.
30185         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30186
30187 2010-04-03  Bruno Haible  <bruno@clisp.org>
30188
30189         stdio: Make C++ tests work on mingw.
30190         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30191         does not declare the function.
30192
30193 2010-04-03  Bruno Haible  <bruno@clisp.org>
30194
30195         ftello: Fix C++ test error on mingw.
30196         * lib/stdio.in.h (ftello): Use modern idiom.
30197         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30198         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30199         is missing and that it needs to be replaced.
30200         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30202         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30203
30204 2010-04-03  Bruno Haible  <bruno@clisp.org>
30205
30206         fseeko: Fix C++ test error on mingw.
30207         * lib/stdio.in.h (fseeko): Use modern idiom.
30208         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30210         is missing and that it needs to be replaced.
30211         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30213         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30214
30215 2010-04-03  Bruno Haible  <bruno@clisp.org>
30216
30217         mkstemp: Fix C++ test error on mingw.
30218         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30219         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30220         function is missing and that it needs to be replaced.
30221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30222         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30223
30224 2010-04-03  Bruno Haible  <bruno@clisp.org>
30225
30226         stpncpy: Fix C++ test error on mingw.
30227         * lib/string.in.h (stpncpy): Use modern idiom.
30228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30229         function is missing and that it needs to be replaced.
30230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30231         REPLACE_STPNCPY.
30232         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30233
30234 2010-04-03  Bruno Haible  <bruno@clisp.org>
30235
30236         sys_stat: Fix C++ test error on mingw.
30237         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30238         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30239
30240 2010-04-03  Bruno Haible  <bruno@clisp.org>
30241
30242         pty: Update doc.
30243         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30244
30245 2010-04-03  Bruno Haible  <bruno@clisp.org>
30246
30247         unistd: Fix C++ test error on mingw.
30248         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30249
30250 2010-04-03  Bruno Haible  <bruno@clisp.org>
30251
30252         Update doc regarding mingw.
30253         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30254         * doc/glibc-functions/login_tty.texi: Likewise.
30255         * doc/glibc-functions/forkpty.texi: Likewise.
30256
30257 2010-04-03  Bruno Haible  <bruno@clisp.org>
30258
30259         stdlib: Avoid compilation failure of c-strtold on mingw.
30260         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30261
30262 2010-04-03  Bruno Haible  <bruno@clisp.org>
30263
30264         locale: Make C++ tests work on Cygwin and mingw.
30265         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30266         cannot provide the function.
30267         Reported by Simon Josefsson.
30268
30269 2010-04-03  Bruno Haible  <bruno@clisp.org>
30270
30271         localename: Port to MacOS X 10.6.
30272         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30273         memory layout of the locales in MacOS X 10.6 as well.
30274         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30275
30276 2010-04-02  Bruno Haible  <bruno@clisp.org>
30277
30278         gnulib-tool: Ensure that long-running tests are executed last.
30279         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30280         running tests after the one for the other tests.
30281
30282 2010-04-02  Bruno Haible  <bruno@clisp.org>
30283
30284         gnulib-tool: Ensure the tests in the main directory are executed first.
30285         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30286         start with the current directory.
30287
30288 2010-04-02  Bruno Haible  <bruno@clisp.org>
30289
30290         Tests for module 'havelib', moved here from GNU gettext.
30291         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30292         modifications.
30293         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30294         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30295         with modifications.
30296         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30297         modifications.
30298         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30299         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30300         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30301         with modifications.
30302         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30303         with modifications.
30304         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30305         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30306         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30307         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30308         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30309         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30310         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30311         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30312         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30313         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30314         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30315         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30316         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30317         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30318         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30319         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30320         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30321         with modifications.
30322         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30323         with modifications.
30324         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30325         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30326         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30327         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30328         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30329         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30330         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30331         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30332         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30333         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30334         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30335         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30336         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30337         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30338         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30339         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30340         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30341         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30342         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30343         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30344         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30345         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30346         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30347         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30348         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30349         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30350         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30351         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30352         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30353         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30354         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30355         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30356         * tests/havelib/rpathx/rpathx.c: New file, from
30357         gettext/autoconf-lib-link.
30358         * tests/havelib/rpathx/Makefile.am: New file, from
30359         gettext/autoconf-lib-link.
30360         * tests/havelib/rpathx/configure.ac: New file, from
30361         gettext/autoconf-lib-link with modifications.
30362         * tests/havelib/rpathy/rpathy.c: New file, from
30363         gettext/autoconf-lib-link.
30364         * tests/havelib/rpathy/Makefile.am: New file, from
30365         gettext/autoconf-lib-link.
30366         * tests/havelib/rpathy/configure.ac: New file, from
30367         gettext/autoconf-lib-link with modifications.
30368         * tests/havelib/rpathz/rpathz.c: New file, from
30369         gettext/autoconf-lib-link.
30370         * tests/havelib/rpathz/Makefile.am: New file, from
30371         gettext/autoconf-lib-link.
30372         * tests/havelib/rpathz/configure.ac: New file, from
30373         gettext/autoconf-lib-link with modifications.
30374         * tests/havelib/rpathlx/usex.c: New file, from
30375         gettext/autoconf-lib-link.
30376         * tests/havelib/rpathlx/Makefile.am: New file, from
30377         gettext/autoconf-lib-link.
30378         * tests/havelib/rpathlx/configure.ac: New file, from
30379         gettext/autoconf-lib-link with modifications.
30380         * tests/havelib/rpathly/usey.c: New file, from
30381         gettext/autoconf-lib-link.
30382         * tests/havelib/rpathly/Makefile.am: New file, from
30383         gettext/autoconf-lib-link.
30384         * tests/havelib/rpathly/configure.ac: New file, from
30385         gettext/autoconf-lib-link with modifications.
30386         * tests/havelib/rpathlz/usez.c: New file, from
30387         gettext/autoconf-lib-link.
30388         * tests/havelib/rpathlz/Makefile.am: New file, from
30389         gettext/autoconf-lib-link.
30390         * tests/havelib/rpathlz/configure.ac: New file, from
30391         gettext/autoconf-lib-link with modifications.
30392         * tests/havelib/rpathlyx/usey.c: New file, from
30393         gettext/autoconf-lib-link.
30394         * tests/havelib/rpathlyx/Makefile.am: New file, from
30395         gettext/autoconf-lib-link.
30396         * tests/havelib/rpathlyx/configure.ac: New file, from
30397         gettext/autoconf-lib-link with modifications.
30398         * tests/havelib/rpathlzyx/usez.c: New file, from
30399         gettext/autoconf-lib-link.
30400         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30401         gettext/autoconf-lib-link.
30402         * tests/havelib/rpathlzyx/configure.ac: New file, from
30403         gettext/autoconf-lib-link with modifications.
30404         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30405         with modifications.
30406
30407 2010-04-02  Bruno Haible  <bruno@clisp.org>
30408
30409         gnulib-tool: Create distributed built sources also for the tests.
30410         * gnulib-tool (func_create_testdir): Also generate distributed built
30411         sources in the tests directory.
30412
30413 2010-04-02  Bruno Haible  <bruno@clisp.org>
30414
30415         gnulib-tool: Obey user's environment variables.
30416         * gnulib-tool (func_create_testdir): When creating built sources,
30417         respect the environment variables for autoconf, automake, etc. given by
30418         the user.
30419
30420 2010-04-02  Bruno Haible  <bruno@clisp.org>
30421
30422         gnulib-tool: Provide the value of --m4-base to modules.
30423         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30424         of gl_m4_base.
30425
30426 2010-04-02  Eric Blake  <eblake@redhat.com>
30427
30428         maint.mk: fix some fallout
30429         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30430         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30431
30432 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30433
30434         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30435         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30436         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30437         (sc_cast_of_x_alloc_return_value): Likewise.
30438         (sc_cast_of_alloca_return_value): Likewise.
30439         (sc_space_tab): Likewise.
30440         (sc_prohibit_atoi_atof): Likewise.
30441         (sc_prohibit_magic_number_exit): Likewise.
30442         (sc_error_exit_success): Likewise.
30443         (sc_file_system): Likewise.
30444         (sc_prohibit_have_config_h): Likewise.
30445         (sc_require_config_h): Likewise.
30446         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30447         (sc_obsolete_symbols): Likewise.
30448         (sc_changelog): Likewise.
30449         (sc_program_name): Likewise.
30450         (sc_the_the): Likewise.
30451         (sc_trailing_blank): Likewise.
30452         (sc_two_space_separator_in_usage): Likewise.
30453         (sc_useless_cpp_parens): Likewise.
30454         (sc_GPL_version): Likewise.
30455         (sc_GFDL_version): Likewise.
30456         (sc_texinfo_acronym): Likewise.
30457         (sc_prohibit_cvs_keyword): Likewise.
30458         (sc_prohibit_stat_st_blocks): Likewise.
30459         (sc_prohibit_S_IS_definition): Likewise.
30460         (sc_redundant_const): Likewise.
30461         (sc_makefile_TAB_only_indentation): Likewise.
30462         (sc_m4_quote_check): Likewise.
30463         (sc_makefile_path_separator_check): Likewise.
30464         (sc_copyright_check): Likewise.
30465         (sc_Wundef_boolean): Likewise.
30466         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30467
30468         maint.mk: match 0 or more whitespace-before-function-call '('
30469         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30470         that have zero or two-and-more spaces between the function name
30471         and the open parenthesis.
30472         (sc_error_message_warn_fatal): Likewise.
30473         (sc_error_message_uppercase): Likewise.
30474         (sc_error_message_period): Likewise.
30475
30476 2010-03-31  Eric Blake  <eblake@redhat.com>
30477
30478         maint.mk: check for [ as well as test
30479         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30480         Based on a libvirt report by Matthias Bolte.
30481
30482         gnumakefile: don't squelch _version output
30483         * top/GNUmakefile (_version): Create one-shot dependency rather
30484         than using $(shell) when version must be regenerated.
30485         (_autoreconf): Run verbosely, by default.
30486
30487         sys_time: avoid compiler warnings
30488         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30489         unconditional, fixing regression from 2010-03-29.
30490         Reported by Simon Josefsson.
30491
30492 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30493
30494         maint.mk: s/_header_without_use/_sc_header_without_use/
30495         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30496         (sc_prohibit_assert_without_use): Use the new name.
30497         (sc_prohibit_close_stream_without_use): Likewise.
30498         (sc_prohibit_getopt_without_use): Likewise.
30499         (sc_prohibit_quotearg_without_use): Likewise.
30500         (sc_prohibit_quote_without_use): Likewise.
30501         (sc_prohibit_long_options_without_use): Likewise.
30502         (sc_prohibit_inttostr_without_use): Likewise.
30503         (sc_prohibit_ignore_value_without_use): Likewise.
30504         (sc_prohibit_error_without_use): Likewise.
30505         (sc_prohibit_xalloc_without_use): Likewise.
30506         (sc_prohibit_hash_without_use): Likewise.
30507         (sc_prohibit_hash_pjw_without_use): Likewise.
30508         (sc_prohibit_safe_read_without_use): Likewise.
30509         (sc_prohibit_argmatch_without_use): Likewise.
30510         (sc_prohibit_canonicalize_without_use): Likewise.
30511         (sc_prohibit_root_dev_ino_without_use): Likewise.
30512         (sc_prohibit_openat_without_use): Likewise.
30513         (sc_prohibit_c_ctype_without_use): Likewise.
30514         (sc_prohibit_signal_without_use): Likewise.
30515         (sc_prohibit_intprops_without_use): Likewise.
30516
30517 2010-03-30  Eric Blake  <eblake@redhat.com>
30518
30519         maint: improve module indicators
30520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30521         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30522         columns, and avoid extra macro expansion.
30523
30524         fdopendir: work around FreeBSD bug
30525         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30526         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30527         * modules/dirent (Makefile.am): Substitute it.
30528         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30529         declaration.
30530         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30531         fix.
30532         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30533
30534 2010-03-29  Bruno Haible  <bruno@clisp.org>
30535
30536         Emit #pragma system_header after the inclusion guard, not before.
30537         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30538         guard that spans the entire file, not before. This enables an
30539         optimization in GCC's preprocessor.
30540         * lib/ctype.in.h: Likewise.
30541         * lib/dirent.in.h: Likewise.
30542         * lib/errno.in.h: Likewise.
30543         * lib/float.in.h: Likewise.
30544         * lib/getopt.in.h: Likewise.
30545         * lib/iconv.in.h: Likewise.
30546         * lib/langinfo.in.h: Likewise.
30547         * lib/locale.in.h: Likewise.
30548         * lib/math.in.h: Likewise.
30549         * lib/netdb.in.h: Likewise.
30550         * lib/netinet_in.in.h: Likewise.
30551         * lib/pty.in.h: Likewise.
30552         * lib/sched.in.h: Likewise.
30553         * lib/se-selinux.in.h: Likewise.
30554         * lib/search.in.h: Likewise.
30555         * lib/spawn.in.h: Likewise.
30556         * lib/stdarg.in.h: Likewise.
30557         * lib/stdint.in.h: Likewise.
30558         * lib/string.in.h: Likewise.
30559         * lib/strings.in.h: Likewise.
30560         * lib/sys_file.in.h: Likewise.
30561         * lib/sys_ioctl.in.h: Likewise.
30562         * lib/sys_time.in.h: Likewise.
30563         * lib/sys_times.in.h: Likewise.
30564         * lib/sys_utsname.in.h: Likewise.
30565         * lib/sys_wait.in.h: Likewise.
30566         * lib/sysexits.in.h: Likewise.
30567         * lib/wctype.in.h: Likewise.
30568
30569 2010-03-28  James Youngman  <jay@gnu.org>
30570
30571         save-cwd: don't leak a file descriptor when the caller execs.
30572         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30573         saved file descriptor.
30574         * modules/save-cwd (Depends-on): Depend on cloexec.
30575
30576 2010-03-29  Bruno Haible  <bruno@clisp.org>
30577
30578         Remove vestiges of fts-lgpl module.
30579         * lib/fts_.h: Assume GNULIB_FTS is 1.
30580         * lib/fts.c: Likewise.
30581         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30582
30583 2010-03-28  Bruno Haible  <bruno@clisp.org>
30584
30585         Fix definition of tests witness macro.
30586         * gnulib-tool (func_import): Fix definition of witness macro.
30587
30588 2010-03-28  Bruno Haible  <bruno@clisp.org>
30589
30590         Fix ioctl's protoype on glibc systems.
30591         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30592         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30593         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30594         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30595         signature. If not, arrange to replace the ioctl function.
30596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30597         REPLACE_IOCTL.
30598         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30599         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30600         Reported by Ludovic Courtès <ludo@gnu.org>.
30601
30602 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30603
30604         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30605         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30606         made it so grep -r --include=GLOB* ... did not work.
30607
30608 2010-03-26  Jim Meyering  <meyering@redhat.com>
30609             Eric Blake  <eblake@redhat.com>
30610
30611         maint.mk: prohibit use of test's -o and -a operators
30612         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30613
30614 2010-03-28  Bruno Haible  <bruno@clisp.org>
30615
30616         Remove unused GNULIB_XYZ macro definitions.
30617         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30618         invocation.
30619
30620 2010-03-28  Bruno Haible  <bruno@clisp.org>
30621
30622         Mark privileged tests modules.
30623         * modules/idpriv-drop-tests (Status): New section.
30624         * modules/idpriv-droptemp-tests (Status): New section.
30625
30626 2010-03-28  Bruno Haible  <bruno@clisp.org>
30627
30628         Split C++ tests into separate tests modules.
30629         * modules/dirent-c++-tests: New file, extracted from
30630         modules/dirent-tests.
30631         * modules/dirent-tests: Depend on it.
30632         * modules/fcntl-h-c++-tests: New file, extracted from
30633         modules/fcntl-h-tests.
30634         * modules/fcntl-h-tests: Depend on it.
30635         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30636         * modules/glob-tests: Depend on it.
30637         * modules/iconv-h-c++-tests: New file, extracted from
30638         modules/iconv-h-tests.
30639         * modules/iconv-h-tests: Depend on it.
30640         * modules/langinfo-c++-tests: New file, extracted from
30641         modules/langinfo-tests.
30642         * modules/langinfo-tests: Depend on it.
30643         * modules/locale-c++-tests: New file, extracted from
30644         modules/locale-tests.
30645         * modules/locale-tests: Depend on it.
30646         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30647         * modules/math-tests: Depend on it.
30648         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30649         * modules/pty-tests: Depend on it.
30650         * modules/search-c++-tests: New file, extracted from
30651         modules/search-tests.
30652         * modules/search-tests: Depend on it.
30653         * modules/signal-c++-tests: New file, extracted from
30654         modules/signal-tests.
30655         * modules/signal-tests: Depend on it.
30656         * modules/spawn-c++-tests: New file, extracted from
30657         modules/spawn-tests.
30658         * modules/spawn-tests: Depend on it.
30659         * modules/stdio-c++-tests: New file, extracted from
30660         modules/stdio-tests.
30661         * modules/stdio-tests: Depend on it.
30662         * modules/stdlib-c++-tests: New file, extracted from
30663         modules/stdlib-tests.
30664         * modules/stdlib-tests: Depend on it.
30665         * modules/string-c++-tests: New file, extracted from
30666         modules/string-tests.
30667         * modules/string-tests: Depend on it.
30668         * modules/sys_ioctl-c++-tests: New file, extracted from
30669         modules/sys_ioctl-tests.
30670         * modules/sys_ioctl-tests: Depend on it.
30671         * modules/sys_select-c++-tests: New file, extracted from
30672         modules/sys_select-tests.
30673         * modules/sys_select-tests: Depend on it.
30674         * modules/sys_socket-c++-tests: New file, extracted from
30675         modules/sys_socket-tests.
30676         * modules/sys_socket-tests: Depend on it.
30677         * modules/sys_stat-c++-tests: New file, extracted from
30678         modules/sys_stat-tests.
30679         * modules/sys_stat-tests: Depend on it.
30680         * modules/sys_time-c++-tests: New file, extracted from
30681         modules/sys_time-tests.
30682         * modules/sys_time-tests: Depend on it.
30683         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30684         * modules/time-tests: Depend on it.
30685         * modules/unistd-c++-tests: New file, extracted from
30686         modules/unistd-tests.
30687         * modules/unistd-tests: Depend on it.
30688         * modules/wchar-c++-tests: New file, extracted from
30689         modules/wchar-tests.
30690         * modules/wchar-tests: Depend on it.
30691         * modules/wctype-c++-tests: New file, extracted from
30692         modules/wctype-tests.
30693         * modules/wctype-tests: Depend on it.
30694         Reported by Simon Josefsson.
30695
30696 2010-03-28  Bruno Haible  <bruno@clisp.org>
30697
30698         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30699         * gnulib-tool (func_exists_module): New function, extracted from
30700         func_verify_module.
30701         (func_verify_module): Use it.
30702         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30703         'foo' only if 'foo' exists.
30704         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30705         module.
30706
30707 2010-03-28  Bruno Haible  <bruno@clisp.org>
30708
30709         gnulib-tool: Add support for special categories of tests.
30710         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30711         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30712         (func_usage): Document them.
30713         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30714         inc_unportable_tests, inc_all_tests): New variables.
30715         (func_acceptable): Consider these variables.
30716         (func_modules_transitive_closure): Make it work when the 'Status' field
30717         consists of multiple words.
30718         (func_import): Store and restore the values of inc_cxx_tests,
30719         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30720         inc_all_tests in gnulib-comp.m4.
30721         (func_create_testdir): Set inc_all_tests to true.
30722         * doc/gnulib.texi (Extra tests modules): New section.
30723         Suggested by Jim Meyering.
30724
30725 2010-03-28  Bruno Haible  <bruno@clisp.org>
30726
30727         ansi-c++-opt: Allow turning off the C++ build by default.
30728         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30729         gl_CXX_CHOICE_DEFAULT_NO is defined.
30730         Requested by Eric Blake.
30731
30732 2010-03-28  Bruno Haible  <bruno@clisp.org>
30733
30734         unistd: Avoid #define replacements in C++ mode.
30735         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30736         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30737         setsockopt, shutdown, select): In C++, attach a warning to the function
30738         if possible, rather than #defining the symbol to a dysfunctional alias.
30739         Reported by John W. Eaton <jwe@gnu.org>.
30740
30741 2010-03-28  Bruno Haible  <bruno@clisp.org>
30742
30743         Fix link errors on mingw.
30744         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30745         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30746         $(LIBSOCKET).
30747         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30748         $(LIBSOCKET).
30749
30750 2010-03-28  Bruno Haible  <bruno@clisp.org>
30751             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30752
30753         lib-ignore: Determine different options for different compilers.
30754         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30755         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30756         Add comments.
30757         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30758         * NEWS: Mention the change.
30759
30760 2010-03-27  Bruno Haible  <bruno@clisp.org>
30761
30762         Remove unused GNULIB_XYZ macro definitions.
30763         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30764         * modules/fseek (configure.ac): Likewise.
30765         * modules/ioctl (configure.ac): Likewise.
30766         * modules/open (configure.ac): Likewise.
30767         * modules/stdlib-safer (configure.ac): Likewise.
30768
30769 2010-03-27  Bruno Haible  <bruno@clisp.org>
30770
30771         Add a remark about certain modules.
30772         * modules/malloc (Comment): New section.
30773         * modules/realloc (Comment): Likewise.
30774         * modules/sigpipe (Comment): Likewise.
30775
30776 2010-03-27  Bruno Haible  <bruno@clisp.org>
30777
30778         Resolve conflict between the two kinds of module indicators.
30779         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30780         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30781         * modules/canonicalize (configure.ac): Invoke
30782         gl_MODULE_INDICATOR_FOR_TESTS.
30783         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30784         GNULIB_XYZ.
30785         * tests/test-dirent-c++.cc: Likewise.
30786         * tests/test-dirent-safer.c: Likewise.
30787         * tests/test-dup2.c: Likewise.
30788         * tests/test-fchdir.c: Likewise.
30789         * tests/test-fcntl-h-c++.cc: Likewise.
30790         * tests/test-getopt.c: Likewise.
30791         * tests/test-getopt.h: Likewise.
30792         * tests/test-langinfo-c++.cc: Likewise.
30793         * tests/test-locale-c++.cc: Likewise.
30794         * tests/test-math-c++.cc: Likewise.
30795         * tests/test-pty-c++.cc: Likewise.
30796         * tests/test-search-c++.cc: Likewise.
30797         * tests/test-signal-c++.cc: Likewise.
30798         * tests/test-spawn-c++.cc: Likewise.
30799         * tests/test-stdio-c++.cc: Likewise.
30800         * tests/test-stdlib-c++.cc: Likewise.
30801         * tests/test-string-c++.cc: Likewise.
30802         * tests/test-sys_ioctl-c++.cc: Likewise.
30803         * tests/test-sys_select-c++.cc: Likewise.
30804         * tests/test-sys_socket-c++.cc: Likewise.
30805         * tests/test-sys_stat-c++.cc: Likewise.
30806         * tests/test-sys_time-c++.cc: Likewise.
30807         * tests/test-time-c++.cc: Likewise.
30808         * tests/test-unistd-c++.cc: Likewise.
30809         * tests/test-wchar-c++.cc: Likewise.
30810         * tests/uninorm/test-u8-nfc.c: Likewise.
30811         * tests/uninorm/test-u8-nfd.c: Likewise.
30812         * tests/uninorm/test-u8-nfkc.c: Likewise.
30813         * tests/uninorm/test-u8-nfkd.c: Likewise.
30814         * tests/uninorm/test-u16-nfc.c: Likewise.
30815         * tests/uninorm/test-u16-nfd.c: Likewise.
30816         * tests/uninorm/test-u16-nfkc.c: Likewise.
30817         * tests/uninorm/test-u16-nfkd.c: Likewise.
30818         * tests/uninorm/test-u32-nfc.c: Likewise.
30819         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30820         * tests/uninorm/test-u32-nfd.c: Likewise.
30821         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30822         * tests/uninorm/test-u32-nfkc.c: Likewise.
30823         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30824         * tests/uninorm/test-u32-nfkd.c: Likewise.
30825         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30826         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30827
30828 2010-03-27  Bruno Haible  <bruno@clisp.org>
30829
30830         Distinguish two kinds of module indicators.
30831         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30832         gl_MODULE_INDICATOR.
30833         (gl_MODULE_INDICATOR): New macro.
30834         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30835         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30836         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30837         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30838         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30839         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30840         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30841         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30842         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30843         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30844         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30845         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30847         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30848         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30850         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30851         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30852         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30853         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30854         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30855         * modules/cloexec (configure.ac): Likewise.
30856         * modules/getopt-gnu (configure.ac): Likewise.
30857         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30858         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30859         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30860         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30861
30862 2010-03-27  Bruno Haible  <bruno@clisp.org>
30863
30864         New module description field 'Comment'.
30865         * gnulib-tool: New option --extract-comment.
30866         (func_usage): Document it.
30867         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30868         (func_get_comment): New function.
30869         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30870
30871 2010-03-27  Bruno Haible  <bruno@clisp.org>
30872
30873         Addendum to 2010-02-07 commit.
30874         * gnulib-tool (func_usage): Document --extract-applicability option.
30875
30876 2010-03-27  Bruno Haible  <bruno@clisp.org>
30877
30878         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30879         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30880         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30881         rather than link errors.
30882
30883 2010-03-27  Bruno Haible  <bruno@clisp.org>
30884
30885         Avoid side effects from tests-related modules on the compilation of lib.
30886         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30887         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30888         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30889         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30890         macro.
30891         (func_import): Define a witness macro. Assign it a value that depends
30892         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30893         tests-related modules.
30894         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30895         Reported by Jim Meyering.
30896
30897 2010-03-27  Bruno Haible  <bruno@clisp.org>
30898
30899         Factorize common .m4 code.
30900         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30901         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30902         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30903         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30904         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30905         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30906         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30907         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30908         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30909         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30910         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30911         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30912         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30913         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30914         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30915         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30916         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30917         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30919         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30920         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30921         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30922         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30924         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30925         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30926         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30928         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30929         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30930         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30931         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30932
30933 2010-03-27  Bruno Haible  <bruno@clisp.org>
30934
30935         Fix a compilation error on Cygwin with g++ >= 4.3.
30936         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30937         if it is undefined or if we alias it to chmod.
30938         (lstat): Don't warn about the use of this function if it is undefined
30939         or if we alias it to stat.
30940         Reported by Simon Josefsson.
30941
30942 2010-03-27  Bruno Haible  <bruno@clisp.org>
30943
30944         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30945         * modules/getlogin (configure.ac): Update.
30946
30947         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30948         * modules/getlogin_r (configure.ac): Update.
30949
30950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30951         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30952         * modules/inet_ntop (configure.ac): Update.
30953
30954         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30955         * modules/inet_pton (configure.ac): Update.
30956
30957         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30958         * modules/mbslen (configure.ac): Update.
30959
30960         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30961         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30962         * modules/forkpty (configure.ac): Update.
30963         * modules/openpty (configure.ac): Update.
30964
30965 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30966
30967         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30968         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30969
30970 2010-03-25  Eric Blake  <eblake@redhat.com>
30971
30972         maint: use pragma consistently across replacement headers
30973         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30974         * lib/dirent.in.h (system_header): Likewise.
30975         * lib/errno.in.h (system_header): Likewise.
30976         * lib/float.in.h (system_header): Likewise.
30977         * lib/getopt.in.h (system_header): Likewise.
30978         * lib/iconv.in.h (system_header): Likewise.
30979         * lib/inttypes.in.h (system_header): Likewise.
30980         * lib/langinfo.in.h (system_header): Likewise.
30981         * lib/locale.in.h (system_header): Likewise.
30982         * lib/math.in.h (system_header): Likewise.
30983         * lib/netdb.in.h (system_header): Likewise.
30984         * lib/netinet_in.in.h (system_header): Likewise.
30985         * lib/pty.in.h (system_header): Likewise.
30986         * lib/sched.in.h (system_header): Likewise.
30987         * lib/se-selinux.in.h (system_header): Likewise.
30988         * lib/search.in.h (system_header): Likewise.
30989         * lib/spawn.in.h (system_header): Likewise.
30990         * lib/stdarg.in.h (system_header): Likewise.
30991         * lib/stdint.in.h (system_header): Likewise.
30992         * lib/string.in.h (system_header): Likewise.
30993         * lib/strings.in.h (system_header): Likewise.
30994         * lib/sys_file.in.h (system_header): Likewise.
30995         * lib/sys_ioctl.in.h (system_header): Likewise.
30996         * lib/sys_socket.in.h (system_header): Likewise.
30997         * lib/sys_times.in.h (system_header): Likewise.
30998         * lib/sys_utsname.in.h (system_header): Likewise.
30999         * lib/sys_wait.in.h (system_header): Likewise.
31000         * lib/sysexits.in.h (system_header): Likewise.
31001         * lib/unistd.in.h (system_header): Likewise.
31002         * lib/wctype.in.h (system_header): Likewise.
31003
31004         arpa/inet: fix mingw compilation warning
31005         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31006         Reported by Matthew Bolte.
31007
31008 2010-03-25  Bruno Haible  <bruno@clisp.org>
31009
31010         Avoid collision between gnulib wrapper and libintl wrapper.
31011         * lib/printf.c (printf): Don't define if a printf wrapper is already
31012         defined in intl/printf.c.
31013         Reported by Michel Boaventura <michel@michelboaventura.com>.
31014
31015 2010-03-25  Bruno Haible  <bruno@clisp.org>
31016
31017         Use ANSI C.
31018         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31019
31020 2010-03-25  Bruno Haible  <bruno@clisp.org>
31021
31022         Minor formatting changes.
31023         * lib/acosl.c: Insert space before function argument list.
31024         * lib/argz.c: Likewise.
31025         * lib/asinl.c: Likewise.
31026         * lib/expl.c: Likewise.
31027         * lib/gen-uni-tables.c: Likewise.
31028         * lib/gettext.h: Likewise.
31029         * lib/glthread/lock.h: Likewise.
31030         * lib/tanl.c: Likewise.
31031         * lib/uniname/uniname.c: Likewise.
31032         * tests/test-idpriv-drop.c: Likewise.
31033         * tests/test-idpriv-droptemp.c: Likewise.
31034         * tests/test-lock.c: Likewise.
31035         * tests/test-tls.c: Likewise.
31036         * lib/argp-help.c: Insert space before function-like macro argument
31037         list.
31038         * lib/memcmp.c: Likewise.
31039         * tests/test-base64.c: Likewise.
31040         * lib/localename.c: Insert space before sizeof's argument list.
31041         * lib/safe-alloc.h: Likewise.
31042         * lib/file-set.h: Insert space before macro argument list.
31043         * tests/test-argp.c: Likewise.
31044         * lib/argp-namefrob.h: Insert space before function parameter list.
31045         * lib/getaddrinfo.c: Likewise.
31046         * lib/netdb.in.h: Likewise.
31047         * lib/parse-duration.h: Likewise.
31048         * lib/parse-duration.c: Likewise.
31049         * lib/poll.c: Likewise.
31050         * lib/select.c: Likewise.
31051         * lib/trim.h: Likewise.
31052         * tests/test-usleep.c: Likewise.
31053         * lib/ldexpl.c: Insert space before function parameter list and before
31054         function argument list.
31055         * lib/logl.c: Likewise.
31056         * lib/sqrtl.c: Likewise.
31057         * lib/trim.c: Likewise.
31058         * lib/cosl.c: Use GNU style indentation. Insert space before function
31059         argument list.
31060         * lib/sinl.c: Likewise.
31061         * lib/tsearch.c: Insert space after 'for'.
31062         Reported by Jim Meyering.
31063
31064 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31065
31066         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31067         config header before grepping, as it's not present before
31068         autoreconf/configure are run.  Reported by Simon Josefsson.
31069
31070 2010-03-23  Bruno Haible  <bruno@clisp.org>
31071
31072         pt_chown: Make it work with automake < 1.11.
31073         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31074         Reported by Simon Josefsson.
31075
31076 2010-03-23  Bruno Haible  <bruno@clisp.org>
31077
31078         pt_chown: Don't depend on GPLed modules.
31079         * lib/pt_chown.c: Don't include idpriv.h.
31080         (main): Don't drop privileges.
31081         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31082         Reported by Simon Josefsson.
31083
31084 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31085
31086         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31087         suggestions from karl@freefriends.org (Karl Berry).
31088
31089 2010-03-22  Eric Blake  <eblake@redhat.com>
31090
31091         gethostname: further tweaks
31092         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31093         are overriding gethostname.
31094         Suggested by Bruno Haible.
31095
31096 2010-03-21  Bruno Haible  <bruno@clisp.org>
31097
31098         Fix comments.
31099         * lib/forkpty.c (rpl_forkpty): Fix comment.
31100         * lib/openpty.c (rpl_openpty): Likewise.
31101         Reported by Eric Blake.
31102
31103 2010-03-22  Eric Blake  <eblake@redhat.com>
31104
31105         gethostname: fix build on mingw
31106         * lib/unistd.in.h (includes): Work around fact that mingw
31107         <winsock2.h> re-includes <unistd.h>, by avoiding any
31108         redeclarations if we are being included by <winsock2.h>.
31109         Reported by Matthias Bolte.
31110
31111 2010-03-21  Bruno Haible  <bruno@clisp.org>
31112
31113         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31114         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31115         modifications.
31116         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31117         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31118         provide the replacement.
31119         * modules/forkpty (Depends-on): Add openpty, login_tty.
31120         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31121         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31122         * doc/glibc-functions/forkpty.texi: More supported platforms.
31123         * config/srclist.txt: Add forkpty.c (commented).
31124
31125 2010-03-21  Bruno Haible  <bruno@clisp.org>
31126
31127         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31128         (Makefile.am): Verify that PTY_LIB is defined.
31129
31130         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31131
31132 2010-03-21  Bruno Haible  <bruno@clisp.org>
31133
31134         Tests for module 'login_tty'.
31135         * modules/login_tty-tests: New file.
31136         * tests/test-login_tty.c: New file.
31137
31138         New module 'login_tty'.
31139         * lib/login_tty.c: New file.
31140         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31141         * modules/login_tty: New file.
31142         * doc/glibc-functions/login_tty.texi: Mention the new module.
31143
31144 2010-03-21  Bruno Haible  <bruno@clisp.org>
31145
31146         login_tty: Documentation.
31147         * doc/glibc-functions/login_tty.texi: New file.
31148         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31149
31150 2010-03-21  Bruno Haible  <bruno@clisp.org>
31151
31152         pty: Consistent macro naming.
31153         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31154         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31155         * modules/pty (configure.ac): Update.
31156
31157 2010-03-21  Bruno Haible  <bruno@clisp.org>
31158
31159         Tests for openpty: Make stricter.
31160         * tests/test-openpty.c (main): Add test of canonical processing and
31161         erase.
31162         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31163
31164         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31165         * lib/openpty.c (openpty): New replacement function.
31166         * lib/pty.in.h: Include <termios.h>.
31167         (openpty): Update declaration. Add comments.
31168         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31169         is not declared, arrange to provide the replacement. Check for _getpty
31170         and posix_openpt.
31171         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31172         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31173         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31174         * modules/pty-tests (test_pty_c___LDADD): New variable.
31175         * doc/glibc-functions/openpty.texi: More supported platforms.
31176
31177 2010-03-21  Bruno Haible  <bruno@clisp.org>
31178
31179         setenv: Tweaks.
31180         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31181         the test program.
31182         * doc/posix-functions/setenv.texi: Update platforms list.
31183
31184 2010-03-21  Bruno Haible  <bruno@clisp.org>
31185
31186         New module 'unlockpt'.
31187         * lib/unlockpt.c: New file, from glibc with modifications.
31188         * m4/unlockpt.m4: New file.
31189         * modules/unlockpt: New file.
31190         * lib/stdlib.in.h (unlockpt): New declaration.
31191         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31192         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31193         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31194         HAVE_UNLOCKPT.
31195         * doc/posix-functions/unlockpt.texi: Mention the new module.
31196         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31197         * config/srclist.txt: Add unlockpt.c (commented).
31198
31199 2010-03-21  Jim Meyering  <meyering@redhat.com>
31200
31201         maint.mk: prohibit inclusion of "intprops.h" without use
31202         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31203
31204 2010-03-21  Bruno Haible  <bruno@clisp.org>
31205
31206         New module 'grantpt'.
31207         * lib/grantpt.c: New file, from glibc with modifications.
31208         * m4/grantpt.m4: New file.
31209         * modules/grantpt: New file.
31210         * lib/stdlib.in.h (grantpt): New declaration.
31211         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31212         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31213         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31214         HAVE_GRANTPT.
31215         * doc/posix-functions/grantpt.texi: Mention the new module.
31216         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31217         * config/srclist.txt: Add grantpt.c (commented).
31218
31219 2010-03-21  Bruno Haible  <bruno@clisp.org>
31220
31221         New module 'pt_chown'.
31222         * lib/pt_chown.c: New file, from glibc with modifications.
31223         * lib/pty-private.h: New file, from glibc with modifications.
31224         * modules/pt_chown: New file.
31225         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31226
31227 2010-03-21  Bruno Haible  <bruno@clisp.org>
31228
31229         Tests for module 'ptsname'.
31230         * modules/ptsname-tests: New file.
31231         * tests/test-ptsname.c: New file.
31232
31233         New module 'ptsname'.
31234         * lib/ptsname.c: New file, from glibc with modifications.
31235         * m4/ptsname.m4: New file.
31236         * modules/ptsname: New file.
31237         * lib/stdlib.in.h (ptsname): New declaration.
31238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31240         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31241         HAVE_PTSNAME.
31242         * doc/posix-functions/ptsname.texi: Mention the new module.
31243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31244         * config/srclist.txt: Add ptsname.c (commented).
31245
31246 2010-03-21  Bruno Haible  <bruno@clisp.org>
31247
31248         Tests for module 'ttyname_r'.
31249         * modules/ttyname_r-tests: New file.
31250         * tests/test-ttyname_r.c: New file.
31251
31252         New module 'ttyname_r'.
31253         * lib/ttyname_r.c: New file.
31254         * m4/ttyname_r.m4: New file.
31255         * modules/ttyname_r: New file.
31256         * lib/unistd.in.h (ttyname_r): New declaration.
31257         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31259         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31260         HAVE_TTYNAME_R.
31261         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31262         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31263
31264 2010-03-20  Bruno Haible  <bruno@clisp.org>
31265
31266         signal: Undefine macro definitions in C++ mode.
31267         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31268         sigfillset): Undefine macro definitions from the system header in C++
31269         mode.
31270         Reported by John W. Eaton <jwe@gnu.org>.
31271
31272 2010-03-20  Bruno Haible  <bruno@clisp.org>
31273
31274         Ensure no #include statements inside extern "C" { ... }.
31275         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31276         contain #include statements.
31277         * lib/time.in.h: Likewise.
31278
31279 2010-03-20  Bruno Haible  <bruno@clisp.org>
31280
31281         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31282         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31283         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31284         Reported by John W. Eaton <jwe@gnu.org>.
31285
31286 2010-03-20  Bruno Haible  <bruno@clisp.org>
31287
31288         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31289         Reported by Jim Meyering.
31290
31291 2010-03-20  Bruno Haible  <bruno@clisp.org>
31292
31293         pipe: Set errno upon failure.
31294         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31295         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31296         errno value in error message.
31297
31298 2010-03-20  Bruno Haible  <bruno@clisp.org>
31299             Jim Meyering  <meyering@redhat.com>
31300
31301         lchown: Avoid "unused variable" warning.
31302         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31303
31304 2010-03-20  Bruno Haible  <bruno@clisp.org>
31305
31306         Work around unlink() bug on MacOS X 10.5.6.
31307         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31308         attempting to unlink a parent directory.
31309         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31310         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31311         activate for the replacement function.
31312         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31313
31314 2010-03-20  Bruno Haible  <bruno@clisp.org>
31315
31316         Fix link errors on Solaris 8.
31317         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31318         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31319
31320 2010-03-19  Jim Meyering  <meyering@redhat.com>
31321
31322         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31323         The _LIBC implementation of build_range_exp correctly honors the
31324         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31325         However, the non-_LIBC implementation would ignore that syntax-bit
31326         flag and return REG_ERANGE unconditionally.
31327         This change makes it honor that flag.
31328         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31329         Make two pointer parameters "const".
31330         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31331         (parse_bracket_exp): Update caller.
31332
31333         regex.m4: correct the reversed range endpoint ([b-a]) test
31334         * m4/regex.m4: When requiring that [b-a] evoke failure,
31335         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31336         test pass once again for x86-based systems.
31337
31338 2010-03-19  Bruno Haible  <bruno@clisp.org>
31339
31340         scandir: Fix link error on Solaris 8.
31341         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31342         macros.
31343
31344 2010-03-19  Bruno Haible  <bruno@clisp.org>
31345
31346         getusershell: Fix documentation.
31347         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31348         module.
31349         * doc/glibc-functions/setusershell.texi: Likewise.
31350
31351         getusershell: Provide declaration, missing on Solaris 9.
31352         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31353         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31354         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31355         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31357         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31358         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31359         HAVE_GETUSERSHELL.
31360         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31361
31362 2010-03-19  Bruno Haible  <bruno@clisp.org>
31363
31364         wctype: Provide iswblank function.
31365         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31366         exists and is fine.
31367         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31368         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31369         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31370         * doc/posix-functions/iswblank.texi: Update.
31371
31372 2010-03-19  Bruno Haible  <bruno@clisp.org>
31373
31374         Tests of module 'pty' in C++ mode.
31375         * modules/pty-tests: New file.
31376         * tests/test-pty-c++.cc: New file.
31377         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31378
31379 2010-03-19  Eric Blake  <eblake@redhat.com>
31380
31381         logb: fix documentation
31382         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31383         1.5 declaration bug.
31384
31385         forkpty, openpty: prefer glibc's const-safe prototype
31386         * lib/forkpty.c (rpl_forkpty): New file.
31387         * lib/openpty.c (rpl_openpty): Likewise.
31388         * modules/forkpty (Files): Distribute it.
31389         * modules/openpty (Files): Likewise.
31390         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31391         check...
31392         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31393         replacement for for non-const BSD signature.
31394         * modules/pty (Makefile.am): Substitute witnesses.
31395         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31396         * tests/test-forkpty.c: Update signature check.
31397         * tests/test-openpty.c: Likewise.
31398         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31399         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31400
31401         forkpty, openpty: split functions into new modules
31402         * modules/pty (Makefile.am): Substitute new witnesses.
31403         (Libraries): Move library detection...
31404         * modules/forkpty: ...into new module.
31405         * modules/openpty: Another new module.
31406         * modules/pty-tests: Rename and split...
31407         * modules/forkpty-tests: ...to this...
31408         * modules/openpty-tests: ...and this.
31409         * tests/test-pty.c: Rename and split...
31410         * tests/test-forkpty.c: ...to this...
31411         * tests/test-openpty.c: ...and this.
31412         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31413         (gl_PTY): Split library searching...
31414         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31415         (gl_FORKPTY, gl_OPENPTY): New macros.
31416         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31417         * NEWS: Mention the split.
31418         * MODULES.html.sh (Misc): Document the modules.
31419         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31420         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31421
31422         pty: improve replacement header
31423         * lib/pty.in.h: New file.
31424         * modules/pty (Files): Ship it.
31425         (Makefile.am): Always build replacement.
31426         * m4/pty.m4: Rename...
31427         * m4/pty_h.m4: ...to this.
31428         (gl_PTY): Modernize setting of witness macros; update check of
31429         forkpty to take proper advantage of cache.
31430         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31431
31432         getopt: avoid compiler warning
31433         * lib/getopt.c (attribute_hidden): Remove unused macro.
31434
31435 2010-03-18  Bruno Haible  <bruno@clisp.org>
31436
31437         Fix link errors on Solaris 8.
31438         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31439         * modules/search-tests (test_search_c___LDADD): Likewise.
31440         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31441         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31442         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31443         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31444         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31445         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31446         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31447
31448 2010-03-18  Bruno Haible  <bruno@clisp.org>
31449
31450         Fix bug introduced on 2010-03-14.
31451         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31452         (gl_SPAWN_H): Require it.
31453         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31454         Reported by Simon Josefsson.
31455
31456 2010-03-18  Bruno Haible  <bruno@clisp.org>
31457
31458         Fix typo introduced on 2009-12-31.
31459         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31460         posix_spawn_file_actions_adddup2.
31461
31462 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31463         and Eric Blake  <eblake@redhat.com>
31464
31465         test-vc-list-files-git: make more robust
31466         * tests/test-vc-list-files-git.sh: Unset problematic environment
31467         variables.  Chain commands together.
31468
31469 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31470
31471         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31472         `AC_CHECK_DECL' invocation.
31473
31474 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31475
31476         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31477         appears before executable statements. Suggested by Petr Sumbera
31478         <Petr.Sumbera@Sun.COM>.
31479
31480 2010-03-14  Bruno Haible  <bruno@clisp.org>
31481
31482         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31483         portability problems. Instead use a simpler test.
31484         (main): Check that invalid arguments are rejected only on Linux.
31485
31486 2010-03-14  Bruno Haible  <bruno@clisp.org>
31487
31488         Fix bug introduced on 2009-12-31.
31489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31490         gl_PREREQ_SYS_H_WINSOCK2 always.
31491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31492         SYS_SOCKET_H variable.
31493         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31494         Update comments.
31495         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31496         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31499         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31500
31501 2010-03-14  Bruno Haible  <bruno@clisp.org>
31502
31503         Fix values returned by sinl, cosl.
31504         * lib/trigl.h: Add specification comments.
31505         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31506         that combines the values from the precomputed table with the values of
31507         the Chebyshev polynomials.
31508
31509 2010-03-14  Bruno Haible  <bruno@clisp.org>
31510
31511         Fix compilation error when modules 'posix_spawn[p]' are not used.
31512         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31514
31515 2010-03-14  Bruno Haible  <bruno@clisp.org>
31516
31517         Fix compilation error on mingw when module 'time_r' is not used.
31518         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31519         is 1.
31520         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31521         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31522         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31524
31525 2010-03-14  Bruno Haible  <bruno@clisp.org>
31526
31527         Fix compilation error with Sun C.
31528         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31529         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31530         instead of GCC specific ULONG_LONG_MAX.
31531         * lib/xstrtoll.c: Likewise.
31532         * lib/xstrtoull.c: Likewise.
31533
31534 2010-03-13  Bruno Haible  <bruno@clisp.org>
31535
31536         Allow the user to disable C++ code and tests.
31537         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31538         (gl_PROG_ANSI_CXX): Require it.
31539
31540 2010-03-13  Bruno Haible  <bruno@clisp.org>
31541
31542         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31543         cases.
31544
31545 2010-03-13  Bruno Haible  <bruno@clisp.org>
31546
31547         Test that gnulib does not break the standard C++ headers.
31548         * tests/test-locale-c++2.cc: New file.
31549         * modules/locale-tests (Files): Add it.
31550         (Makefile.am): Compile it for test-locale-c++.
31551         * tests/test-math-c++2.cc: New file.
31552         * modules/math-tests (Files): Add it.
31553         (Makefile.am): Compile it for test-math-c++.
31554         * tests/test-signal-c++2.cc: New file.
31555         * modules/signal-tests (Files): Add it.
31556         (Makefile.am): Compile it for test-signal-c++.
31557         * tests/test-stdio-c++2.cc: New file.
31558         * modules/stdio-tests (Files): Add it.
31559         (Makefile.am): Compile it for test-stdio-c++.
31560         * tests/test-stdlib-c++2.cc: New file.
31561         * modules/stdlib-tests (Files): Add it.
31562         (Makefile.am): Compile it for test-stdlib-c++.
31563         * tests/test-string-c++2.cc: New file.
31564         * modules/string-tests (Files): Add it.
31565         (Makefile.am): Compile it for test-string-c++.
31566         * tests/test-time-c++2.cc: New file.
31567         * modules/time-tests (Files): Add it.
31568         (Makefile.am): Compile it for test-time-c++.
31569         Reported by John W. Eaton <jwe@gnu.org>.
31570
31571 2010-03-13  Bruno Haible  <bruno@clisp.org>
31572
31573         * gnulib-tool (func_usage): Clarify which options are available for
31574         --create-testdir and --create-megatestdir.
31575
31576 2010-03-13  Bruno Haible  <bruno@clisp.org>
31577
31578         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31579         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31580         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31581         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31582         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31583         when appropriate.
31584         Reported by Jim Meyering.
31585
31586 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31587
31588         * gnulib-tool (func_import): Explain origin of code.
31589
31590 2010-03-12  Bruno Haible  <bruno@clisp.org>
31591
31592         Fix problem with automake's definition of CXXLINK.
31593         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31594         Reported by Simon Josefsson and Ludovic Courtès.
31595
31596 2010-03-12  Bruno Haible  <bruno@clisp.org>
31597
31598         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31599         stable releases.
31600
31601 2010-03-11  Bruno Haible  <bruno@clisp.org>
31602
31603         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31604         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31605         whether the system provides one variant or multiple variants of the
31606         function.
31607         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31608         C++ compilers.
31609         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31610         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31611         Reported by Jim Meyering.
31612
31613 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31614
31615         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31616
31617 2010-03-08  Bruno Haible  <bruno@clisp.org>
31618
31619         gnulib-tool: Add support for --libtool in --create-testdir.
31620         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31621         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31622
31623 2010-03-08  Eric Blake  <eblake@redhat.com>
31624
31625         gnulib-tool.texi: mention possibility of git submodule
31626         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31627         submodules.
31628         * doc/.gitignore: Ignore another generated file.
31629
31630 2010-03-08  Karl Berry  <karl@gnu.org>
31631
31632         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31633         of committing gnulib files while skipping others.
31634
31635 2010-03-07  Bruno Haible  <bruno@clisp.org>
31636
31637         Tests of module 'wctype' in C++ mode.
31638         * tests/test-wctype-c++.cc: New file.
31639         * modules/wctype-tests (Files): Add it and tests/signature.h.
31640         (Depends-on): Add ansi-c++-opt.
31641         (Makefile.am): Arrange to compile and run test-wctype-c++.
31642
31643         Tests of module 'wchar' in C++ mode.
31644         * tests/test-wchar-c++.cc: New file.
31645         * modules/wchar-tests (Files): Add it and tests/signature.h.
31646         (Depends-on): Add ansi-c++-opt.
31647         (Makefile.am): Arrange to compile and run test-wchar-c++.
31648         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31649         gl_MODULE_INDICATOR.
31650
31651         Tests of module 'unistd' in C++ mode.
31652         * tests/test-unistd-c++.cc: New file.
31653         * modules/unistd-tests (Files): Add it and tests/signature.h.
31654         (Depends-on): Add ansi-c++-opt.
31655         (Makefile.am): Arrange to compile and run test-unistd-c++.
31656         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31657         gl_MODULE_INDICATOR.
31658
31659         Tests of module 'time' in C++ mode.
31660         * tests/test-time-c++.cc: New file.
31661         * modules/time-tests (Files): Add it and tests/signature.h.
31662         (Depends-on): Add ansi-c++-opt.
31663         (Makefile.am): Arrange to compile and run test-time-c++.
31664         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31665
31666         Tests of module 'sys_time' in C++ mode.
31667         * tests/test-sys_time-c++.cc: New file.
31668         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31669         (Depends-on): Add ansi-c++-opt.
31670         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31671         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31672         gl_MODULE_INDICATOR.
31673
31674         Tests of module 'sys_stat' in C++ mode.
31675         * tests/test-sys_stat-c++.cc: New file.
31676         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31677         (Depends-on): Add ansi-c++-opt.
31678         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31679         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31680         gl_MODULE_INDICATOR.
31681
31682         Tests of module 'sys_socket' in C++ mode.
31683         * tests/test-sys_socket-c++.cc: New file.
31684         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31685         (Depends-on): Add ansi-c++-opt.
31686         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31687         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31688         gl_MODULE_INDICATOR.
31689
31690         Tests of module 'sys_select' in C++ mode.
31691         * tests/test-sys_select-c++.cc: New file.
31692         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31693         (Depends-on): Add ansi-c++-opt.
31694         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31695         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31696         gl_MODULE_INDICATOR.
31697
31698         Tests of module 'sys_ioctl' in C++ mode.
31699         * tests/test-sys_ioctl-c++.cc: New file.
31700         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31701         (Depends-on): Add ansi-c++-opt.
31702         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31704         gl_MODULE_INDICATOR.
31705
31706         Tests of module 'string' in C++ mode.
31707         * tests/test-string-c++.cc: New file.
31708         * modules/string-tests (Files): Add it and tests/signature.h.
31709         (Depends-on): Add ansi-c++-opt.
31710         (Makefile.am): Arrange to compile and run test-string-c++.
31711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31712         gl_MODULE_INDICATOR.
31713
31714         Tests of module 'stdlib' in C++ mode.
31715         * tests/test-stdlib-c++.cc: New file.
31716         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31717         (Depends-on): Add ansi-c++-opt.
31718         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31719         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31720         gl_MODULE_INDICATOR.
31721
31722         Tests of module 'stdio' in C++ mode.
31723         * tests/test-stdio-c++.cc: New file.
31724         * modules/stdio-tests (Files): Add it and tests/signature.h.
31725         (Depends-on): Add ansi-c++-opt.
31726         (Makefile.am): Arrange to compile and run test-stdio-c++.
31727         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31728         gl_MODULE_INDICATOR.
31729
31730         Tests of module 'spawn' in C++ mode.
31731         * tests/test-spawn-c++.cc: New file.
31732         * modules/spawn-tests (Files): Add it and tests/signature.h.
31733         (Depends-on): Add ansi-c++-opt.
31734         (Makefile.am): Arrange to compile and run test-spawn-c++.
31735         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31736         gl_MODULE_INDICATOR.
31737
31738         Tests of module 'signal' in C++ mode.
31739         * tests/test-signal-c++.cc: New file.
31740         * modules/signal-tests (Files): Add it and tests/signature.h.
31741         (Depends-on): Add ansi-c++-opt.
31742         (Makefile.am): Arrange to compile and run test-signal-c++.
31743         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31744         gl_MODULE_INDICATOR.
31745
31746         Tests of module 'search' in C++ mode.
31747         * tests/test-search-c++.cc: New file.
31748         * modules/search-tests (Files): Add it and tests/signature.h.
31749         (Depends-on): Add ansi-c++-opt.
31750         (Makefile.am): Arrange to compile and run test-search-c++.
31751         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31752         gl_MODULE_INDICATOR.
31753
31754         Tests of module 'math' in C++ mode.
31755         * tests/test-math-c++.cc: New file.
31756         * modules/math-tests (Files): Add it and tests/signature.h.
31757         (Depends-on): Add ansi-c++-opt.
31758         (Makefile.am): Arrange to compile and run test-math-c++.
31759         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31760
31761         Tests of module 'locale' in C++ mode.
31762         * tests/test-locale-c++.cc: New file.
31763         * modules/locale-tests (Files): Add it and tests/signature.h.
31764         (Depends-on): Add ansi-c++-opt.
31765         (Makefile.am): Arrange to compile and run test-locale-c++.
31766         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31767         gl_MODULE_INDICATOR.
31768
31769         Tests of module 'langinfo' in C++ mode.
31770         * tests/test-langinfo-c++.cc: New file.
31771         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31772         (Depends-on): Add ansi-c++-opt.
31773         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31774         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31775         gl_MODULE_INDICATOR.
31776
31777         Tests of module 'iconv-h' in C++ mode.
31778         * tests/test-iconv-h-c++.cc: New file.
31779         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31780         (Depends-on): Add ansi-c++-opt.
31781         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31782
31783         Tests of module 'glob' in C++ mode.
31784         * tests/test-glob-c++.cc: New file.
31785         * modules/glob-tests (Files): Add it.
31786         (Depends-on): Add ansi-c++-opt.
31787         (Makefile.am): Arrange to compile and run test-glob-c++.
31788
31789         Tests of module 'fcntl-h' in C++ mode.
31790         * tests/test-fcntl-h-c++.cc: New file.
31791         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31792         (Depends-on): Add ansi-c++-opt.
31793         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31794         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31795         gl_MODULE_INDICATOR.
31796
31797         Tests of module 'dirent' in C++ mode.
31798         * tests/test-dirent-c++.cc: New file.
31799         * modules/dirent-tests (Files): Add it and tests/signature.h.
31800         (Depends-on): Add ansi-c++-opt.
31801         (Makefile.am): Arrange to compile and run test-dirent-c++.
31802         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31803         gl_MODULE_INDICATOR.
31804
31805         New module 'ansi-c++-opt'.
31806         * modules/ansi-c++-opt: New file.
31807         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31808
31809         Document C++ namespace mode.
31810         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31811
31812         wctype: Avoid #define replacements in C++ mode.
31813         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31814         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31815         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31816         In C++, define a namespaced alias symbol.
31817         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31818         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31819         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31820         rule.
31821
31822         wchar: Avoid #define replacements in C++ mode.
31823         * lib/wchar.in.h: Include c++defs.h.
31824         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31825         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31826         symbol.
31827         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31828         * modules/wchar (Depends-on): Add c++defs.
31829         (Makefile.am): Update wchar.h rule.
31830
31831         unistd: Avoid #define replacements in C++ mode.
31832         * lib/unistd.in.h: Include c++defs.h.
31833         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31834         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31835         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31836         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31837         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31838         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31839         symbol.
31840         (environ): Update.
31841         * modules/unistd (Depends-on): Add c++defs.
31842         (Makefile.am): Update unistd.h rule.
31843
31844         time: Avoid #define replacements in C++ mode.
31845         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31846         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31847         define a namespaced alias symbol.
31848         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31849         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31850         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31851         * modules/time (Depends-on): Add c++defs, warn-on-use.
31852         (Makefile.am): Update time.h rule.
31853         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31854         * modules/nanosleep (configure.ac): Likewise.
31855         * modules/strptime (configure.ac): Likewise.
31856         * modules/timegm (configure.ac): Likewise.
31857
31858         sys_time: Avoid #define replacements in C++ mode.
31859         * lib/sys_time.in.h: Include c++defs.h.
31860         (gettimeofday): In C++, define a namespaced alias symbol.
31861         * modules/sys_time (Depends-on): Add c++defs.
31862         (Makefile.am): Update sys/time.h rule.
31863
31864         sys_stat: Avoid #define replacements in C++ mode.
31865         * lib/sys_stat.in.h: Include c++defs.h.
31866         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31867         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31868         namespaced alias symbol.
31869         In C++, define a namespaced alias symbol.
31870         * modules/sys_stat (Depends-on): Add c++defs.
31871         (Makefile.am): Update sys/stat.h rule.
31872
31873         sys_socket: Avoid #define replacements in C++ mode.
31874         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31875         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31876         definitions also when the system has a <sys/socket.h>.
31877         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31878         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31879         In C++, define a namespaced alias symbol.
31880         * modules/sys_socket (Depends-on): Add c++defs.
31881         (Makefile.am): Update sys/socket.h rule.
31882
31883         sys_select: Avoid #define replacements in C++ mode.
31884         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31885         definitions also when the system has a <sys/select.h>.
31886         (select): In C++, define a namespaced alias symbol.
31887         * modules/sys_select (Depends-on): Add c++defs.
31888         (Makefile.am): Update sys/select.h rule.
31889
31890         sys_ioctl: Avoid #define replacements in C++ mode.
31891         * lib/sys_ioctl.in.h: Include c++defs.h.
31892         (ioctl): In C++, define a namespaced alias symbol.
31893         * modules/sys_ioctl (Depends-on): Add c++defs.
31894         (Makefile.am): Update sys/ioctl.h rule.
31895
31896         string: Avoid #define replacements in C++ mode.
31897         * lib/string.in.h: Include c++defs.h.
31898         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31899         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31900         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31901         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31902         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31903         * modules/string (Depends-on): Add c++defs.
31904         (Makefile.am): Update string.h rule.
31905
31906         stdlib: Avoid #define replacements in C++ mode.
31907         * lib/stdlib.in.h: Include c++defs.h.
31908         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31909         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31910         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31911         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31912         symbol.
31913         * modules/stdlib (Depends-on): Add c++defs.
31914         (Makefile.am): Update stdlib.h rule.
31915
31916         stdio: Avoid #define replacements in C++ mode.
31917         * lib/stdio.in.h: Include c++defs.h.
31918         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31919         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31920         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31921         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31922         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31923         namespaced alias symbol.
31924         * modules/stdio (Depends-on): Add c++defs.
31925         (Makefile.am): Update stdio.h rule.
31926
31927         spawn: Avoid #define replacements in C++ mode.
31928         * lib/spawn.in.h: Include c++defs.h.
31929         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31930         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31931         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31932         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31933         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31934         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31935         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31936         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31937         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31938         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31939         In C++, define a namespaced alias symbol.
31940         * modules/spawn (Depends-on): Add c++defs.
31941         (Makefile.am): Update spawn.h rule.
31942
31943         signal: Avoid #define replacements in C++ mode.
31944         * lib/signal.in.h: Include c++defs.h.
31945         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31946         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31947         namespaced alias symbol.
31948         * modules/signal (Depends-on): Add c++defs.
31949         (Makefile.am): Update signal.h rule.
31950
31951         search: Avoid #define replacements in C++ mode.
31952         * lib/search.in.h: Include c++defs.h.
31953         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31954         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31955         symbol.
31956         * modules/search (Depends-on): Add c++defs.
31957         (Makefile.am): Update search.h rule.
31958
31959         math: Avoid #define replacements in C++ mode.
31960         * lib/math.in.h: Include c++defs.h.
31961         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31962         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31963         trunc, truncl): In C++, define a namespaced alias symbol.
31964         * modules/math (Depends-on): Add c++defs.
31965         (Makefile.am): Update math.h rule.
31966
31967         locale: Avoid #define replacements in C++ mode.
31968         * lib/locale.in.h: Include c++defs.h.
31969         (duplocale): In C++, define a namespaced alias symbol.
31970         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31971         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31972         * modules/locale (Depends-on): Add c++defs.
31973         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31974
31975         langinfo: Avoid #define replacements in C++ mode.
31976         * lib/langinfo.in.h: Include c++defs.h.
31977         (nl_langinfo): In C++, define a namespaced alias symbol.
31978         * modules/langinfo (Depends-on): Add c++defs.
31979         (Makefile.am): Update langinfo.h rule.
31980
31981         iconv-h: Avoid #define replacements in C++ mode.
31982         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31983         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31984         symbol.
31985         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31986         whenever iconv is present.
31987         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31988         (Makefile.am): Update iconv.h rule.
31989
31990         glob: Avoid #define replacements in C++ mode.
31991         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31992         (_gl_glob_errfunc_fn): New type.
31993         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31994         symbol.
31995         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31996         (Makefile.am): Update glob.h rule.
31997
31998         fcntl-h: Avoid #define replacements in C++ mode.
31999         * lib/fcntl.in.h: Include c++defs.h.
32000         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32001         * modules/fcntl-h (Depends-on): Add c++defs.
32002         (Makefile.am): Update fcntl.h rule.
32003
32004         dirent: Avoid #define replacements in C++ mode.
32005         * lib/dirent.in.h: Include c++defs.h.
32006         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32007         namespaced alias symbol.
32008         (dirfd): Update declaration.
32009         * modules/dirent (Depends-on): Add c++defs.
32010         (Makefile.am): Update dirent.h rule.
32011
32012         ctype: Make it usable in C++ code.
32013         * lib/ctype.in.h: Include c++defs.h.
32014         (isblank): Declare as extern "C".
32015         * modules/ctype (Depends-on): Add c++defs.
32016         (Makefile.am): Update ctype.h rule.
32017
32018         New module 'c++defs'.
32019         * modules/c++defs: New file.
32020         * build-aux/c++defs.h: New file.
32021         Reported by John W. Eaton <jwe@gnu.org>.
32022
32023 2010-03-07  Bruno Haible  <bruno@clisp.org>
32024
32025         logb: Provide missing declaration for Cygwin.
32026         * lib/math.in.h (logb): New declaration.
32027         * m4/logb.m4: New file.
32028         * modules/logb (Files): Add m4/logb.m4.
32029         (Depends-on): Add math.
32030         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32031         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32033         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32034         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32035
32036 2010-03-07  Bruno Haible  <bruno@clisp.org>
32037
32038         Fix test-cond link error.
32039         * tests/test-cond.c: Include <stdio.h>.
32040
32041 2010-03-07  Bruno Haible  <bruno@clisp.org>
32042
32043         Fix test-dirent-safer link error.
32044         * modules/dirent-safer-tests (Makefile.am): Define
32045         test_dirent_safer_LDADD.
32046
32047 2010-03-07  Bruno Haible  <bruno@clisp.org>
32048
32049         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32050         among default module list.
32051
32052 2010-03-07  Bruno Haible  <bruno@clisp.org>
32053
32054         Fix link error on platforms with GNU libiconv.
32055         * modules/unistr/u8-strcoll-tests (Makefile): Define
32056         test_u8_strcoll_LDADD.
32057         * modules/unistr/u16-strcoll-tests (Makefile): Define
32058         test_u16_strcoll_LDADD.
32059         * modules/unistr/u32-strcoll-tests (Makefile): Define
32060         test_u32_strcoll_LDADD.
32061
32062 2010-03-07  Bruno Haible  <bruno@clisp.org>
32063
32064         Use POSIX declarations for socket functions.
32065         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32066         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32067         rpl_sendto): Change declaration to match POSIX.
32068         * lib/connect.c (rpl_connect): Likewise.
32069         * lib/accept.c (rpl_accept): Likewise.
32070         * lib/bind.c (rpl_bind): Likewise.
32071         * lib/getpeername.c (rpl_getpeername): Likewise.
32072         * lib/getsockname.c (rpl_getsockname): Likewise.
32073         * lib/recv.c (rpl_recv): Likewise.
32074         * lib/send.c (rpl_send): Likewise.
32075         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32076         * lib/sendto.c (rpl_sendto): Likewise.
32077
32078 2010-03-06  Bruno Haible  <bruno@clisp.org>
32079
32080         Clarify access, euidaccess, faccessat.
32081         * doc/posix-functions/faccessat.texi: Mention security problem under
32082         "Other problems", not "Portability problems".
32083         * doc/posix-functions/access.texi: Likewise. Mention a related security
32084         problem.
32085         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32086         * lib/euidaccess.c: Add comments about platforms.
32087         * lib/unistd.in.h (access, euidaccess): Add warnings.
32088
32089 2010-03-07  Bruno Haible  <bruno@clisp.org>
32090
32091         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32092         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32093         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32094         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32095         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32096         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32097         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32098         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32099         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32101         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32102         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32103         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32104         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32105         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32106         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32107         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32108         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32109         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32110         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32111         Likewise.
32112         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32113         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32114         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32115         Likewise.
32116         * tests/test-spawn.c (main): Make it work when
32117         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32118
32119 2010-03-07  Bruno Haible  <bruno@clisp.org>
32120
32121         Fix incorrect Makefile.am generation in German locale.
32122         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32123         Execute sed command with character range in C locale.
32124
32125 2010-03-06  Bruno Haible  <bruno@clisp.org>
32126
32127         Tests for module 'iconv-h'.
32128         * modules/iconv-h-tests: New file.
32129         * tests/test-iconv-h.c: New file.
32130
32131         New module 'iconv-h'.
32132         * modules/iconv-h: New file.
32133         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32134         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32135         (configure.ac): Remove gl_ICONV_H.
32136         (Makefile.am): Remove rule for iconv.h.
32137
32138 2010-03-06  Bruno Haible  <bruno@clisp.org>
32139
32140         More consistent naming of *.m4 files.
32141         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32142         * modules/wctype (Files): Update.
32143
32144         More consistent naming of *.m4 files.
32145         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32146         * modules/wchar (Files): Update.
32147
32148 2010-03-06  Jim Meyering  <meyering@redhat.com>
32149
32150         euidaccess: relax license to LGPLv2+
32151         * modules/euidaccess (License): Relax to LGPLv2+.
32152
32153 2010-03-06  Bruno Haible  <bruno@clisp.org>
32154
32155         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32156         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32157         (Makefile.am): Augment lib_SOURCES instead.
32158
32159 2010-03-04  Jim Meyering  <meyering@redhat.com>
32160
32161         utime: remove obsolete module
32162         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32163         unnecessary for years, and has been marked as obsolete for 10 months.
32164         * modules/utime: Remove file.
32165         * lib/utime.c: Remove file.
32166         * m4/utime.m4: Remove file.
32167         * m4/utimes-null.m4: Remove file.
32168         * doc/posix-functions/utime.texi (utime): Remove reference to
32169         the module.  Move the sole "fixed by gnulib" item into the
32170         "problems not fixed by Gnulib" list.
32171         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32172
32173 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32174
32175         * modules/exit (License): Relax license to LGPLv2+.
32176         (Status): Mark as obsolete.
32177         * NEWS: Mention deprecated 'exit' module.
32178         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32179         of now obsolete 'exit'.
32180
32181 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32182
32183         fts-lgpl: remove unused module
32184         * modules/fts-lgpl: Remove.
32185         * MODULES.html.sh (func_all_modules): Adjust.
32186         * check-module (find_included_lib_files): Adjust.
32187         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32188
32189 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32190
32191         copy-acl: enhance Solaris ACL error handling
32192         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32193         * lib/set-mode-acl.c (qset_acl): Likewise.
32194
32195 2010-03-02  Bruno Haible  <bruno@clisp.org>
32196
32197         spawn: Don't override the system defined values on FreeBSD 8.
32198         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32199         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32200         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32201         if HAVE_POSIX_SPAWN is 1.
32202         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32203
32204 2010-03-01  Bruno Haible  <bruno@clisp.org>
32205
32206         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32207         regarding Automake.
32208
32209 2010-02-25  Bruno Haible  <bruno@clisp.org>
32210
32211         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32212         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32213         setting, not afterwards.
32214         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32215
32216 2010-02-24  Eric Blake  <eblake@redhat.com>
32217
32218         bootstrap, git-version-gen: use timestamp
32219         * build-aux/git-version-gen (scriptversion): Force UTC.
32220         * build-aux/bootstrap (scriptversion): New variable.
32221
32222         bootstrap: allow older git
32223         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32224         older than 1.6.4.  Requested by the libvirt project.
32225
32226 2010-02-23  Eric Blake  <eblake@redhat.com>
32227
32228         warn-on-use: work with old autoconf
32229         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32230         AS_VAR semantics of autoconf 2.60.
32231         Reported by Bruno Haible.
32232
32233         bootstrap: improve some comments
32234         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32235         clarification comments.
32236
32237         gettimeofday: provide correct function
32238         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32239         when replacement is declared, otherwise provide gettimeofday.
32240         Reported by Michael Goffioul.
32241
32242 2010-02-23  Jim Meyering  <meyering@redhat.com>
32243
32244         lib-ignore: relax license to "unlimited", not LGPLv2+
32245         * modules/lib-ignore (License): Relax to "unlimited".
32246
32247 2010-02-23  Jim Meyering  <meyering@redhat.com>
32248
32249         lib-ignore: relax license to LGPLv2+
32250         * modules/lib-ignore (License): Relax to LGPLv2+.
32251
32252 2010-02-22  Eric Blake  <eblake@redhat.com>
32253
32254         lseek: avoid bash 3.2 broken pipe bug
32255         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32256         warning from bash 3.2.
32257         Reported by Ben Pfaff, with analysis from Bruno Haible.
32258
32259         bootstrap: support non-FSF copyright holder
32260         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32261         bootstrap.conf override of COPYRIGHT_HOLDER.
32262         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32263
32264         bootstrap: interoperate with gettext 0.14.1
32265         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32266
32267         bootstrap: allow for alternate submodule location
32268         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32269         hardcoding submodule location.
32270         (gnulib_mk): Allow direct use of Makefile.am.
32271
32272         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32273         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32274         rather than reconfiguring where the submodule points.
32275
32276         gettimeofday: restore support for platforms that lack function
32277         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32278         replacement if function is missing.
32279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32280         * modules/sys_time (Makefile.am): Substitute it.
32281         * lib/sys_time.in.h (gettimeofday): Check it.
32282         Reported by Michael Goffioul.
32283
32284 2010-02-21  Bruno Haible  <bruno@clisp.org>
32285
32286         * lib/stdio.in.h (obstack_printf): Fix typo.
32287
32288 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32289
32290         vc-list-files: use bzr ls's -R option
32291         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32292         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32293
32294 2010-02-21  Jim Meyering  <meyering@redhat.com>
32295
32296         init.sh: fix EXEEXT shims to work also for names like test-prog
32297         * tests/init.sh: Re-exec a better shell, when needed.
32298         If the current shell lacks support for posix $(...), an init.sh-using
32299         test will now try to find a shell that supports that.  If EXEEXT is
32300         nonempty, we also require support for hyphen-in-alias-name and shell
32301         substitutions like ${var#glob}.  Failure to find such a shell results
32302         in a skipped test.
32303
32304 2010-02-21  Bruno Haible  <bruno@clisp.org>
32305
32306         Really work around around "broken pipe" error message from bash 3.2.
32307         * gnulib-tool (func_reset_sigpipe): Remove function.
32308         (echo): In bash 3.2, define to a function that uses printf.
32309         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32310
32311 2010-02-20  Bruno Haible  <bruno@clisp.org>
32312
32313         Restore support for automake 1.9.6 with autoconf 2.61.
32314         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32315         Reported by James Youngman <jay@gnu.org>.
32316
32317 2010-02-20  Bruno Haible  <bruno@clisp.org>
32318
32319         Improve *printf warning condition.
32320         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32321         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32322         and the function is overridden due to SIGPIPE emulation.
32323
32324 2010-02-20  Bruno Haible  <bruno@clisp.org>
32325
32326         * lib/stdio.in.h: Tweak comments.
32327
32328 2010-02-19  Bruno Haible  <bruno@clisp.org>
32329
32330         Make it easier to find modules. New gnulib-tool option '--find'.
32331         * gnulib-tool: New option --find.
32332         (func_usage): Document it.
32333         (func_sanitize_modulelist): New function, extracted from
32334         func_all_modules.
32335         (func_all_modules): Invoke it.
32336         * doc/gnulib-tool.texi (Which modules?): New node.
32337
32338 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32339
32340         * lib/sys_select.in.h: Provide select replacement even if
32341         sys/select.h exists on a system, for Interix.
32342
32343 2010-02-18  Jim Meyering  <meyering@redhat.com>
32344
32345         init.sh: don't use $(...) just yet
32346         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32347         to accommodate e.g., Solaris' /bin/sh.
32348
32349 2010-02-17  Bruno Haible  <bruno@clisp.org>
32350
32351         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32352         Reported by Ludovic Courtès <ludo@gnu.org>.
32353
32354 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32355
32356         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32357         linking with -lintl.
32358
32359 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32360
32361         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32362         if not provided by the system's netdb.h.  Reported by
32363         ludo@gnu.org (Ludovic Courtès).
32364
32365 2010-02-15  Jim Meyering  <meyering@redhat.com>
32366
32367         init.sh: improve portability and efficiency
32368         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32369         "dummy" in a for loop.
32370         Use '!', not '^' to select the complement of a character set used
32371         in a "case" statement.
32372         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32373         Suggestions from Eric Blake.
32374
32375         init.sh: automatically accommodate programs with the .exe suffix
32376         Automatically arrange for an invocation of "prog" to execute the
32377         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32378         may use the simpler "prog", yet still work when built on a system
32379         that requires specifying the added suffix.
32380         Do this by constructing a function named "prog" that invokes
32381         "prog.exe" for each .exe file in selected directories.
32382         * tests/init.sh (find_exe_basenames_): New function.
32383         (create_exe_shim_functions_): New function.
32384         (path_prepend_): Use it.
32385
32386         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32387         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32388         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32389
32390 2010-02-14  Jim Meyering  <meyering@redhat.com>
32391
32392         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32393         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32394         (sc_prohibit_hash_pjw_without_use): New rule.
32395
32396         maint.mk: allow the default upload destination dir to be overridden
32397         * top/maint.mk (upload_dest_dir_): Define with a default that
32398         preserves the status quo.
32399         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32400         Reported by Peter Simons.
32401
32402         maint.mk: prohibit inclusion of "hash.h" without_use
32403         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32404
32405 2010-02-10  Jim Meyering  <meyering@redhat.com>
32406
32407         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32408         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32409
32410 2010-02-09  Eric Blake  <ebb9@byu.net>
32411         and Bruno Haible  <bruno@clisp.org>
32412
32413         obstack-printf-posix: ensure declaration
32414         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32415         extracted from gl_FUNC_OBSTACK_PRINTF.
32416         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32417         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32418         Likewise.
32419         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32420         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32421         0.
32422
32423 2010-02-08  Bruno Haible  <bruno@clisp.org>
32424
32425         gnulib-tool: Fix typo in 2010-02-07 commit.
32426         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32427         Reported by Eric Blake.
32428
32429 2010-02-07  Bruno Haible  <bruno@clisp.org>
32430
32431         gnulib-tool: Fix up caching patches.
32432         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32433         option --no-cache. Use associative arrays when supported by the shell.
32434         (sed_comments): New variable.
32435         (modcache): Renamed from do_cache.
32436         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32437         abbreviate unnecessarily.
32438         (have_associative): New variable.
32439         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32440         way also for ksh and zsh.
32441         (func_init_sed_convert_to_cache_statements): New function, extracted
32442         from func_cache_lookup_module. Add support for associative arrays.
32443         Don't set the c_MODULE_cached variable here. Ignore all lines before
32444         the first field header. Remove only the final newline, not all trailing
32445         newlines. Support empty fields correctly. Limit the use of 'eval' to
32446         assignments.
32447         (func_get_description, func_get_status, func_get_notice,
32448         func_get_applicability, func_get_filelist, func_get_dependencies,
32449         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32450         func_get_automake_snippet, func_get_include_directive,
32451         func_get_link_directive, func_get_license, func_get_maintainer):
32452         Update documentation. List the unoptimized code first. Add support for
32453         associative arrays. Limit the use of 'eval' to assignments.
32454         (func_get_applicability): Undo stylistic pessimisations.
32455         (func_get_automake_snippet, func_get_include_directive): Reduce code
32456         duplication.
32457         (func_modules_transitive_closure, func_modules_add_dummy,
32458         func_modules_notice, func_modules_to_filelist, func_add_file,
32459         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32460         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32461         func_create_testdir, func_create_megatestdir): Update documentation.
32462
32463 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32464
32465         * gnulib-tool (func_cache_lookup_module): Store the module name
32466         belonging to the cache variable; error out if two different
32467         module names map to the same cache variable name.
32468
32469 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32470
32471         gnulib-tool: Make caching optional.
32472         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32473         Update matching short versions of --no-changelog.
32474         (func_usage): Update.
32475         (sed_extract_cache_prog): Renamed from ...
32476         (sed_extract_prog): ... this; revert to old extraction script.
32477         (func_get_description, func_get_status)
32478         (func_get_notice, func_get_applicability, func_get_filelist)
32479         (func_get_dependencies, func_get_autoconf_early_snippet)
32480         (func_get_autoconf_snippet, func_get_automake_snippet)
32481         (func_get_include_directive, func_get_link_directive)
32482         (func_get_license, func_get_maintainer): If $do_cache is false,
32483         use old, non-caching extraction scripts.
32484         Suggestion by Bruno Haible.
32485
32486 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32487
32488         gnulib-tool: cache module metainformation.
32489         * gnulib-tool (sed_extract_prog): Match newline before each
32490         header, and rewrite header to a shell variable suffix.
32491         (func_cache_var, func_cache_lookup_module): New functions,
32492         to turn a module name into a cache variable prefix, and to
32493         look up and cache module metainformation.
32494         (func_get_description, func_get_status)
32495         (func_get_notice, func_get_applicability, func_get_filelist)
32496         (func_get_dependencies, func_get_autoconf_early_snippet)
32497         (func_get_autoconf_snippet, func_get_automake_snippet)
32498         (func_get_include_directive, func_get_link_directive)
32499         (func_get_license, func_get_maintainer): Use
32500         func_cache_lookup_module.
32501
32502 2010-02-07  Bruno Haible  <bruno@clisp.org>
32503
32504         fnctl: Fix missing dependency.
32505         * modules/fcntl (Depends-on): Add getdtablesize.
32506         Reported by John W. Eaton <jwe@gnu.org>.
32507
32508 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32509
32510         Argp: fix recognition of short alias options.
32511
32512         * lib/argp-parse.c (convert_options): Fix improper use of
32513         `|' between character values.
32514         * tests/test-argp.c (group1_option): New alias option
32515         --read (-r).
32516         (group1_parser): Special handling for 'r'.
32517         (test15): New test case.
32518         (test_fun): Add test15.
32519         * tests/test-argp-2.sh: Update expected --help and --usage
32520         outputs.
32521
32522 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32523
32524         * tests/test-argp.c: Fix indentation.
32525
32526 2010-02-04  Eric Blake  <ebb9@byu.net>
32527
32528         gettimeofday: expose type of second argument
32529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32530         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32531         * tests/test-gettimeofday.c: Use it to silence warning.
32532         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32533         the issue.
32534
32535 2010-02-03  Jim Meyering  <meyering@redhat.com>
32536
32537         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32538         * lib/regcomp.c (TYPE_SIGNED): Define.
32539         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32540
32541         regcomp.c: avoid a new -Wshadow warning
32542         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32543
32544 2010-02-01  Jim Meyering  <meyering@redhat.com>
32545
32546         removing useless parentheses in cpp #define directives
32547         For motivation, see commit c0221df4, "define STREQ(a,b)
32548         consistently, removing useless parentheses"
32549         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32550         * lib/mountlist.c (MNT_IGNORE): Likewise.
32551         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32552
32553 2010-02-01  Eric Blake  <ebb9@byu.net>
32554
32555         sys_time: use link-warning
32556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32557         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32558         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32559         * modules/sys_time (Depends-on): Add warn-on-use.
32560         (Makefile.am): Always build replacement.
32561         (configure.ac): Update substitutions.
32562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32563         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32564         bother with SYS_TIME_H.
32565         * modules/gettimeofday (configure.ac): Declare indicator.
32566         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32567         in use.
32568
32569         closein-tests: silence compiler warning
32570         * tests/test-closein.c (main): Ignore fread result.
32571         * modules/closein-tests (Depends-on): Add ignore-value.
32572
32573         tests: silence warning about system return
32574         * tests/test-areadlink-with-size.c (main): Ignore system result.
32575         * tests/test-areadlink.c (main): Likewise.
32576         * tests/test-areadlinkat-with-size.c (main): Likewise.
32577         * tests/test-areadlinkat.c (main): Likewise.
32578         * tests/test-canonicalize-lgpl.c (main): Likewise.
32579         * tests/test-canonicalize.c (main): Likewise.
32580         * tests/test-chown.c (main): Likewise.
32581         * tests/test-fchownat.c (main): Likewise.
32582         * tests/test-fdutimensat.c (main): Likewise.
32583         * tests/test-fstatat.c (main): Likewise.
32584         * tests/test-futimens.c (main): Likewise.
32585         * tests/test-lchown.c (main): Likewise.
32586         * tests/test-link.c (main): Likewise.
32587         * tests/test-linkat.c (main): Likewise.
32588         * tests/test-lstat.c (main): Likewise.
32589         * tests/test-mkdir.c (main): Likewise.
32590         * tests/test-mkdirat.c (main): Likewise.
32591         * tests/test-mkfifo.c (main): Likewise.
32592         * tests/test-mkfifoat.c (main): Likewise.
32593         * tests/test-mknod.c (main): Likewise.
32594         * tests/test-readlink.c (main): Likewise.
32595         * tests/test-remove.c (main): Likewise.
32596         * tests/test-rename.c (main): Likewise.
32597         * tests/test-renameat.c (main): Likewise.
32598         * tests/test-rmdir.c (main): Likewise.
32599         * tests/test-symlink.c (main): Likewise.
32600         * tests/test-symlinkat.c (main): Likewise.
32601         * tests/test-unlink.c (main): Likewise.
32602         * tests/test-unlinkat.c (main): Likewise.
32603         * tests/test-utimens.c (main): Likewise.
32604         * tests/test-utimensat.c (main): Likewise.
32605         * modules/areadlink-tests (Depends-on): Add ignore-value.
32606         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32607         * modules/areadlinkat-tests (Depends-on): Likewise.
32608         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32609         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32610         * modules/canonicalize-tests (Depends-on): Likewise.
32611         * modules/chown-tests (Depends-on): Likewise.
32612         * modules/fdutimensat-tests (Depends-on): Likewise.
32613         * modules/futimens-tests (Depends-on): Likewise.
32614         * modules/lchown-tests (Depends-on): Likewise.
32615         * modules/link-tests (Depends-on): Likewise.
32616         * modules/linkat-tests (Depends-on): Likewise.
32617         * modules/lstat-tests (Depends-on): Likewise.
32618         * modules/mkdir-tests (Depends-on): Likewise.
32619         * modules/mkfifo-tests (Depends-on): Likewise.
32620         * modules/mkfifoat-tests (Depends-on): Likewise.
32621         * modules/mknod-tests (Depends-on): Likewise.
32622         * modules/openat-tests (Depends-on): Likewise.
32623         * modules/readlink-tests (Depends-on): Likewise.
32624         * modules/remove-tests (Depends-on): Likewise.
32625         * modules/rename-tests (Depends-on): Likewise.
32626         * modules/renameat-tests (Depends-on): Likewise.
32627         * modules/rmdir-tests (Depends-on): Likewise.
32628         * modules/symlink-tests (Depends-on): Likewise.
32629         * modules/symlinkat-tests (Depends-on): Likewise.
32630         * modules/unlink-tests (Depends-on): Likewise.
32631         * modules/utimens-tests (Depends-on): Likewise.
32632         * modules/utimensat-tests (Depends-on): Likewise.
32633
32634 2010-01-31  Bruno Haible  <bruno@clisp.org>
32635
32636         Perform the same test for many <math.h> functions.
32637         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32638         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32639         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32640         of gl_MATHFUNC.
32641         * modules/acos (configure.ac): Likewise.
32642         * modules/asin (configure.ac): Likewise.
32643         * modules/atan (configure.ac): Likewise.
32644         * modules/atan2 (configure.ac): Likewise.
32645         * modules/cbrt (configure.ac): Likewise.
32646         * modules/copysign (configure.ac): Likewise.
32647         * modules/cos (configure.ac): Likewise.
32648         * modules/cosh (configure.ac): Likewise.
32649         * modules/erf (configure.ac): Likewise.
32650         * modules/erfc (configure.ac): Likewise.
32651         * modules/exp (configure.ac): Likewise.
32652         * modules/fmod (configure.ac): Likewise.
32653         * modules/hypot (configure.ac): Likewise.
32654         * modules/j0 (configure.ac): Likewise.
32655         * modules/j1 (configure.ac): Likewise.
32656         * modules/jn (configure.ac): Likewise.
32657         * modules/lgamma (configure.ac): Likewise.
32658         * modules/log (configure.ac): Likewise.
32659         * modules/log10 (configure.ac): Likewise.
32660         * modules/log1p (configure.ac): Likewise.
32661         * modules/pow (configure.ac): Likewise.
32662         * modules/remainder (configure.ac): Likewise.
32663         * modules/sin (configure.ac): Likewise.
32664         * modules/sinh (configure.ac): Likewise.
32665         * modules/tan (configure.ac): Likewise.
32666         * modules/tanh (configure.ac): Likewise.
32667         * modules/y0 (configure.ac): Likewise.
32668         * modules/y1 (configure.ac): Likewise.
32669         * modules/yn (configure.ac): Likewise.
32670         Suggested by Paolo Bonzini.
32671
32672 2010-01-31  Bruno Haible  <bruno@clisp.org>
32673
32674         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32675
32676 2010-01-31  Bruno Haible  <bruno@clisp.org>
32677
32678         Work around getdelim() bug on FreeBSD 8.0.
32679         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32680         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32681         not work.
32682         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32683         is 1.
32684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32685         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32686         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32687         a non-zero size.
32688         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32689
32690 2010-01-31  Bruno Haible  <bruno@clisp.org>
32691
32692         Work around getline() bug on FreeBSD 8.0.
32693         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32694         and a non-zero size.
32695         * tests/test-getline.c (main): Likewise.
32696         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32697         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32698
32699 2010-01-28  Eric Blake  <ebb9@byu.net>
32700
32701         regex: fix build failure
32702         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32703         platforms.
32704
32705 2010-01-28  Jim Meyering  <meyering@redhat.com>
32706
32707         regex: do not ignore memory allocation failure
32708         * lib/regex_internal.c (create_cd_newstate): Detect
32709         re_node_set_init_copy failure.   Extracted from glibc commit
32710         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32711
32712         regex: sync more white-space changes from libc
32713         * lib/regex_internal.c: White-space only changes.
32714         * lib/regexec.c: Likewise.
32715
32716         regex: add many uses of __attribute_warn_unused_result__
32717         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32718         * lib/regexec.c: Likewise.
32719         Extracted from a messy glibc commit.
32720
32721         regcomp.c: spelling and merge-artifact from glibc
32722         * lib/regcomp.c: Merge remainder of glibc's
32723         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32724
32725         regcomp.c: sync white-space changes from glibc
32726         * lib/regcomp.c: Merge to accommodate white space
32727         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32728
32729         regcomp.c: do not ignore internal return values
32730         * lib/regcomp.c: Do not ignore internal return values.
32731         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32732         but without its white-space changes and spelling fixes.
32733
32734         regex_internal.h: define __attribute_warn_unused_result__
32735         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32736
32737         maint: add a syntax-check rule to check for vulnerable Makefile.in
32738         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32739
32740 2010-01-27  Jim Meyering  <meyering@redhat.com>
32741
32742         ncftpput-ftp: clean up spaces
32743         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32744         Remove trailing blanks.
32745
32746 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32747
32748         * build-aux/git-version-gen: Fix copyright statement.
32749         * build-aux/gnupload: Likewise.
32750         * tests/test-arcfour.c: Likewise.
32751         * tests/test-arctwo.c: Likewise.
32752         * tests/test-count-one-bits.c: Likewise.
32753         * tests/test-crc.c: Likewise.
32754         * tests/test-des.c: Likewise.
32755         * tests/test-gc-arcfour.c: Likewise.
32756         * tests/test-gc-arctwo.c: Likewise.
32757         * tests/test-gc-des.c: Likewise.
32758         * tests/test-gc-hmac-md5.c: Likewise.
32759         * tests/test-gc-hmac-sha1.c: Likewise.
32760         * tests/test-gc-md2.c: Likewise.
32761         * tests/test-gc-md4.c: Likewise.
32762         * tests/test-gc-md5.c: Likewise.
32763         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32764         * tests/test-gc-rijndael.c: Likewise.
32765         * tests/test-gc-sha1.c: Likewise.
32766         * tests/test-gc.c: Likewise.
32767         * tests/test-gethostname.c: Likewise.
32768         * tests/test-gettimeofday.c: Likewise.
32769         * tests/test-hash.c: Likewise.
32770         * tests/test-hmac-md5.c: Likewise.
32771         * tests/test-hmac-sha1.c: Likewise.
32772         * tests/test-md2.c: Likewise.
32773         * tests/test-md4.c: Likewise.
32774         * tests/test-md5.c: Likewise.
32775         * tests/test-memchr.c: Likewise.
32776         * tests/test-memchr2.c: Likewise.
32777         * tests/test-memcmp.c: Likewise.
32778         * tests/test-memmem.c: Likewise.
32779         * tests/test-memrchr.c: Likewise.
32780         * tests/test-rawmemchr.c: Likewise.
32781         * tests/test-read-file.c: Likewise.
32782         * tests/test-rijndael.c: Likewise.
32783         * tests/test-sockets.c: Likewise.
32784         * tests/test-strchrnul.c: Likewise.
32785         * tests/test-strstr.c: Likewise.
32786         * tests/test-strtod.c: Likewise.
32787         * build-aux/ncftpput-ftp: Likewise.
32788
32789 2010-01-26  Eric Blake  <ebb9@byu.net>
32790
32791         ignore-value: update recommended header name
32792         * modules/ignore-value (Include): Only use <> for headers that
32793         exist in glibc.
32794
32795 2010-01-26  Jim Meyering  <meyering@redhat.com>
32796
32797         test-userspec.c: avoid compiler warnings
32798         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32799         and "initialization discards qualifiers..." warnings.
32800         Put the first "uid" in its own scope, and make char* members "const".
32801
32802 2010-01-25  Bruno Haible  <bruno@clisp.org>
32803
32804         gnulib-tool: Make warning diagnostics consistent.
32805         * gnulib-tool (func_warning): New function.
32806         Use it everywhere where gnulib-tool produces output to stderr and it is
32807         not a fatal error.
32808
32809 2010-01-25  Bruno Haible  <bruno@clisp.org>
32810
32811         Fix test dependencies.
32812         * modules/xstrtol-tests (Depends-on): Add inttypes.
32813         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32814
32815 2010-01-25 Pádraig Brady <P@draigBrady.com>
32816
32817         syntax-check: detect incorrect boolean macro values in config.h
32818         * modules/maintainer-makefile (configure.ac): Parameterize the location
32819         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32820         The logic is from Eric Blake and the location indicated by Jim Meyering.
32821         Note the more natural CONFIG_HEADER name is prohibited by automake
32822         for backwards compatibility reasons.
32823         * top/maint.mk (sc_Wundef_boolean): New rule.
32824
32825 2010-01-25  Jim Meyering  <meyering@redhat.com>
32826
32827         bootstrap: detect MacOS 10.6's shasum, too
32828         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32829         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32830
32831 2010-01-23  Jim Meyering  <meyering@redhat.com>
32832
32833         xstrtoll: new module
32834         * modules/xstrtoll: New file.
32835         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32836         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32837         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32838         ./configure fails if you use this module and lack "long long".
32839         * modules/xstrtoll-tests: New module.
32840         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32841         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32842         new init.sh-based test framework.
32843
32844 2010-01-24  Bruno Haible  <bruno@clisp.org>
32845
32846         Tests for module 'yn'.
32847         * modules/yn-tests: New file.
32848         * tests/test-yn.c: New file.
32849
32850         Tests for module 'y1'.
32851         * modules/y1-tests: New file.
32852         * tests/test-y1.c: New file.
32853
32854         Tests for module 'y0'.
32855         * modules/y0-tests: New file.
32856         * tests/test-y0.c: New file.
32857
32858         Tests for module 'tanh'.
32859         * modules/tanh-tests: New file.
32860         * tests/test-tanh.c: New file.
32861
32862         Tests for module 'tan'.
32863         * modules/tan-tests: New file.
32864         * tests/test-tan.c: New file.
32865
32866         Tests for module 'sqrt'.
32867         * modules/sqrt-tests: New file.
32868         * tests/test-sqrt.c: New file.
32869
32870         Tests for module 'sinh'.
32871         * modules/sinh-tests: New file.
32872         * tests/test-sinh.c: New file.
32873
32874         Tests for module 'sin'.
32875         * modules/sin-tests: New file.
32876         * tests/test-sin.c: New file.
32877
32878         Tests for module 'rint'.
32879         * modules/rint-tests: New file.
32880         * tests/test-rint.c: New file.
32881
32882         Tests for module 'remainder'.
32883         * modules/remainder-tests: New file.
32884         * tests/test-remainder.c: New file.
32885
32886         Tests for module 'pow'.
32887         * modules/pow-tests: New file.
32888         * tests/test-pow.c: New file.
32889
32890         Tests for module 'nextafter'.
32891         * modules/nextafter-tests: New file.
32892         * tests/test-nextafter.c: New file.
32893
32894         Tests for module 'modf'.
32895         * modules/modf-tests: New file.
32896         * tests/test-modf.c: New file.
32897
32898         Tests for module 'logb'.
32899         * modules/logb-tests: New file.
32900         * tests/test-logb.c: New file.
32901
32902         Tests for module 'log1p'.
32903         * modules/log1p-tests: New file.
32904         * tests/test-log1p.c: New file.
32905
32906         Tests for module 'log10'.
32907         * modules/log10-tests: New file.
32908         * tests/test-log10.c: New file.
32909
32910         Tests for module 'log'.
32911         * modules/log-tests: New file.
32912         * tests/test-log.c: New file.
32913
32914         Tests for module 'lgamma'.
32915         * modules/lgamma-tests: New file.
32916         * tests/test-lgamma.c: New file.
32917
32918         Tests for module 'ldexp'.
32919         * modules/ldexp-tests: New file.
32920         * tests/test-ldexp.c: New file.
32921
32922         Tests for module 'jn'.
32923         * modules/jn-tests: New file.
32924         * tests/test-jn.c: New file.
32925
32926         Tests for module 'j1'.
32927         * modules/j1-tests: New file.
32928         * tests/test-j1.c: New file.
32929
32930         Tests for module 'j0'.
32931         * modules/j0-tests: New file.
32932         * tests/test-j0.c: New file.
32933
32934         Tests for module 'hypot'.
32935         * modules/hypot-tests: New file.
32936         * tests/test-hypot.c: New file.
32937
32938         Tests for module 'fmod'.
32939         * modules/fmod-tests: New file.
32940         * tests/test-fmod.c: New file.
32941
32942         Tests for module 'fabs'.
32943         * modules/fabs-tests: New file.
32944         * tests/test-fabs.c: New file.
32945
32946         Tests for module 'exp'.
32947         * modules/exp-tests: New file.
32948         * tests/test-exp.c: New file.
32949
32950         Tests for module 'erfc'.
32951         * modules/erfc-tests: New file.
32952         * tests/test-erfc.c: New file.
32953
32954         Tests for module 'erf'.
32955         * modules/erf-tests: New file.
32956         * tests/test-erf.c: New file.
32957
32958         Tests for module 'cosh'.
32959         * modules/cosh-tests: New file.
32960         * tests/test-cosh.c: New file.
32961
32962         Tests for module 'cos'.
32963         * modules/cos-tests: New file.
32964         * tests/test-cos.c: New file.
32965
32966         Tests for module 'copysign'.
32967         * modules/copysign-tests: New file.
32968         * tests/test-copysign.c: New file.
32969
32970         Tests for module 'cbrt'.
32971         * modules/cbrt-tests: New file.
32972         * tests/test-cbrt.c: New file.
32973
32974         Tests for module 'atan2'.
32975         * modules/atan2-tests: New file.
32976         * tests/test-atan2.c: New file.
32977
32978         Tests for module 'atan'.
32979         * modules/atan-tests: New file.
32980         * tests/test-atan.c: New file.
32981
32982         Tests for module 'asin'.
32983         * modules/asin-tests: New file.
32984         * tests/test-asin.c: New file.
32985
32986         Tests for module 'acos'.
32987         * modules/acos-tests: New file.
32988         * tests/test-acos.c: New file.
32989
32990 2010-01-24  Bruno Haible  <bruno@clisp.org>
32991
32992         Fix tests for common <math.h> functions.
32993         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32994         code snippet that references the function pointer, rather than merely
32995         calling the function. Substitute the FUNC_LIBM variable.
32996         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32997         * modules/acos (configure.ac): Likewise.
32998         * modules/asin (configure.ac): Likewise.
32999         * modules/atan (configure.ac): Likewise.
33000         * modules/atan2 (configure.ac): Likewise.
33001         * modules/cbrt (configure.ac): Likewise.
33002         * modules/copysign (configure.ac): Likewise.
33003         * modules/cos (configure.ac): Likewise.
33004         * modules/cosh (configure.ac): Likewise.
33005         * modules/erf (configure.ac): Likewise.
33006         * modules/erfc (configure.ac): Likewise.
33007         * modules/exp (configure.ac): Likewise.
33008         * modules/fabs (configure.ac): Likewise.
33009         * modules/fmod (configure.ac): Likewise.
33010         * modules/hypot (configure.ac): Likewise.
33011         * modules/j0 (configure.ac): Likewise.
33012         * modules/j1 (configure.ac): Likewise.
33013         * modules/jn (configure.ac): Likewise.
33014         * modules/ldexp (configure.ac): Likewise.
33015         * modules/lgamma (configure.ac): Likewise.
33016         * modules/log (configure.ac): Likewise.
33017         * modules/log10 (configure.ac): Likewise.
33018         * modules/log1p (configure.ac): Likewise.
33019         * modules/logb (configure.ac): Likewise.
33020         * modules/modf (configure.ac): Likewise.
33021         * modules/nextafter (configure.ac): Likewise.
33022         * modules/pow (configure.ac): Likewise.
33023         * modules/remainder (configure.ac): Likewise.
33024         * modules/rint (configure.ac): Likewise.
33025         * modules/sin (configure.ac): Likewise.
33026         * modules/sinh (configure.ac): Likewise.
33027         * modules/tan (configure.ac): Likewise.
33028         * modules/tanh (configure.ac): Likewise.
33029         * modules/y0 (configure.ac): Likewise.
33030         * modules/y1 (configure.ac): Likewise.
33031         * modules/yn (configure.ac): Likewise.
33032
33033 2010-01-24  Bruno Haible  <bruno@clisp.org>
33034
33035         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33036         * tests/test-acosl.c (x): New variable.
33037         (main): Store argument in x and fetch it from x.
33038         * tests/test-asinl.c (x): New variable.
33039         (main): Store argument in x and fetch it from x.
33040         * tests/test-atanl.c (x): New variable.
33041         (main): Store argument in x and fetch it from x.
33042         * tests/test-cosl.c (x): New variable.
33043         (main): Store argument in x and fetch it from x.
33044         * tests/test-expl.c (x): New variable.
33045         (main): Store argument in x and fetch it from x.
33046         * tests/test-logl.c (x): New variable.
33047         (main): Store argument in x and fetch it from x.
33048         * tests/test-sinl.c (x): New variable.
33049         (main): Store argument in x and fetch it from x.
33050         * tests/test-sqrtl.c (x): New variable.
33051         (main): Store argument in x and fetch it from x.
33052         * tests/test-tanl.c (x): New variable.
33053         (main): Store argument in x and fetch it from x.
33054
33055 2010-01-24  Bruno Haible  <bruno@clisp.org>
33056
33057         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33058         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33059         assignments to the initial TESTS_ENVIRONMENT.
33060         * doc/gnulib.texi (Unit test modules): Document it.
33061         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33062         TESTS_ENVIRONMENT.
33063         * modules/btowc-tests (Makefile.am): Likewise.
33064         * modules/c-stack-tests (Makefile.am): Likewise.
33065         * modules/c-strcase-tests (Makefile.am): Likewise.
33066         * modules/copy-file-tests (Makefile.am): Likewise.
33067         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33068         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33069         * modules/mbrtowc-tests (Makefile.am): Likewise.
33070         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33071         * modules/mbscasestr-tests (Makefile.am): Likewise.
33072         * modules/mbschr-tests (Makefile.am): Likewise.
33073         * modules/mbscspn-tests (Makefile.am): Likewise.
33074         * modules/mbsinit-tests (Makefile.am): Likewise.
33075         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33076         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33077         * modules/mbspbrk-tests (Makefile.am): Likewise.
33078         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33079         * modules/mbsrchr-tests (Makefile.am): Likewise.
33080         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33081         * modules/mbsspn-tests (Makefile.am): Likewise.
33082         * modules/mbsstr-tests (Makefile.am): Likewise.
33083         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33084         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33085         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33086         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33087         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33088         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33089         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33090         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33091         * modules/wcrtomb-tests (Makefile.am): Likewise.
33092         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33093         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33094         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33095         assignments from TESTS_ENVIRONMENT.
33096         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33097         augmentation.
33098         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33099         * modules/atexit-tests (Makefile.am): Likewise.
33100         * modules/binary-io-tests (Makefile.am): Likewise.
33101         * modules/closein-tests (Makefile.am): Likewise.
33102         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33103         * modules/exclude-tests (Makefile.am): Likewise.
33104         * modules/fflush-tests (Makefile.am): Likewise.
33105         * modules/fpending-tests (Makefile.am): Likewise.
33106         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33107         * modules/freadahead-tests (Makefile.am): Likewise.
33108         * modules/freadptr-tests (Makefile.am): Likewise.
33109         * modules/freadseek-tests (Makefile.am): Likewise.
33110         * modules/fseek-tests (Makefile.am): Likewise.
33111         * modules/fseeko-tests (Makefile.am): Likewise.
33112         * modules/ftell-tests (Makefile.am): Likewise.
33113         * modules/ftello-tests (Makefile.am): Likewise.
33114         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33115         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33116         * modules/lseek-tests (Makefile.am): Likewise.
33117         * modules/parse-duration-tests (Makefile.am): Likewise.
33118         * modules/perror-tests (Makefile.am): Likewise.
33119         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33120         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33121         * modules/pipe-tests (Makefile.am): Likewise.
33122         * modules/pread-tests (Makefile.am): Likewise.
33123         * modules/printf-posix-tests (Makefile.am): Likewise.
33124         * modules/select-tests (Makefile.am): Likewise.
33125         * modules/sigpipe-tests (Makefile.am): Likewise.
33126         * modules/tsearch-tests (Makefile.am): Likewise.
33127         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33128         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33129         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33130         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33131         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33132         * modules/version-etc-tests (Makefile.am): Likewise.
33133         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33134         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33135         * modules/xalloc-die-tests (Makefile.am): Likewise.
33136         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33137         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33138         * modules/xstrtol-tests (Makefile.am): Likewise.
33139         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33140         * modules/yesno-tests (Makefile.am): Likewise.
33141         Suggested by Jim Meyering.
33142
33143 2010-01-24  Bruno Haible  <bruno@clisp.org>
33144
33145         More documentation.
33146         * doc/gnulib.texi (Writing modules): New chapter.
33147         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33148         the new chapter.
33149
33150 2010-01-24  Jim Meyering  <meyering@redhat.com>
33151
33152         maint.mk: do not prepend "./" after filtering
33153         * top/maint.mk (_prepend_srcdir_prefix): New variable
33154         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33155         "./" when $(srcdir) is ".".
33156
33157         define STREQ(a,b) consistently, removing useless parentheses
33158         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33159         since the only risk is that "a" or "b" contains an unparenthesized
33160         comma, but if either did that, STREQ would have 3 or more arguments.
33161         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33162         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33163         * lib/hash-triple.c (STREQ): Likewise.
33164         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33165         * lib/getugroups.c (STREQ): Likewise.
33166
33167 2010-01-23  Jim Meyering  <meyering@redhat.com>
33168
33169         maint.mk: fix syntax-check in a non-srcdir build directory
33170         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33171         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33172
33173 2010-01-22  Jim Meyering  <meyering@redhat.com>
33174
33175         userspec: add unit tests
33176         * tests/test-userspec.c: New file.
33177         * modules/userspec-tests: Likewise.
33178
33179 2010-01-21  Jim Meyering  <meyering@redhat.com>
33180
33181         maint.mk: handle source file names containing "." robustly
33182         * top/maint.mk (_dot_escaped_srcdir): Define.
33183         (VC_LIST): Use it in LHS of sed substitution.
33184
33185 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33186
33187         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33188         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33189         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33190         from a non-srcdir build.
33191
33192 2010-01-20  Eric Blake  <ebb9@byu.net>
33193
33194         warn-on-use: use instead of link-warning
33195         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33196         * modules/unistd (Depends-on, Makefile.am): Likewise.
33197         * modules/arpa_inet (Depends-on): Replace link-warning with
33198         warn-on-use.
33199         (Makefile.am): Update rules accordingly.
33200         * modules/ctype (Depends-on, Makefile.am): Likewise.
33201         * modules/dirent (Depends-on, Makefile.am): Likewise.
33202         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33203         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33204         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33205         * modules/locale (Depends-on, Makefile.am): Likewise.
33206         * modules/math (Depends-on, Makefile.am): Likewise.
33207         * modules/search (Depends-on, Makefile.am): Likewise.
33208         * modules/signal (Depends-on, Makefile.am): Likewise.
33209         * modules/spawn (Depends-on, Makefile.am): Likewise.
33210         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33211         * modules/string (Depends-on, Makefile.am): Likewise.
33212         * modules/strings (Depends-on, Makefile.am): Likewise.
33213         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33214         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33215         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33216         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33217         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33218         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33219         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33220         * modules/wchar (Depends-on, Makefile.am): Likewise.
33221         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33222         should be poisoned.
33223         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33224         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33225         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33226         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33227         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33228         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33229         * m4/math_h.m4 (gl_MATH_H): Likewise.
33230         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33231         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33232         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33233         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33234         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33235         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33236         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33242         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33243         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33244         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33245         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33246         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33247         GL_LINK_WARNING.
33248         * lib/ctype.in.h: Likewise.
33249         * lib/dirent.in.h: Likewise.
33250         * lib/fcntl.in.h: Likewise.
33251         * lib/inttypes.in.h: Likewise.
33252         * lib/langinfo.in.h: Likewise.
33253         * lib/locale.in.h: Likewise.
33254         * lib/math.in.h: Likewise.
33255         * lib/search.in.h: Likewise.
33256         * lib/signal.in.h: Likewise.
33257         * lib/spawn.in.h: Likewise.
33258         * lib/stdio.in.h: Likewise.
33259         * lib/stdlib.in.h: Likewise.
33260         * lib/string.in.h: Likewise.
33261         * lib/strings.in.h: Likewise.
33262         * lib/sys_file.in.h: Likewise.
33263         * lib/sys_ioctl.in.h: Likewise.
33264         * lib/sys_select.in.h: Likewise.
33265         * lib/sys_socket.in.h: Likewise.
33266         * lib/sys_stat.in.h: Likewise.
33267         * lib/sys_times.in.h: Likewise.
33268         * lib/sys_utsname.in.h: Likewise.
33269         * lib/unistd.in.h: Likewise.
33270         * lib/wchar.in.h: Likewise.
33271
33272 2010-01-20  Bruno Haible  <bruno@clisp.org>
33273
33274         Avoid duplicate -lm.
33275         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33276         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33279         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33280         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33281         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33282         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33283         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33284         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33285         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33286         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33287         Reported by Paolo Bonzini.
33288
33289 2010-01-19  Bruno Haible  <bruno@clisp.org>
33290
33291         langinfo, nl_langinfo: Relicense under LGPLv2+.
33292         * modules/langinfo (License): Change to LGPLv2+.
33293         * modules/nl_langinfo (License): Likewise.
33294         Patch by David Lutterkort <lutter@redhat.com>.
33295
33296 2010-01-19  Bruno Haible  <bruno@clisp.org>
33297
33298         Avoid compilation error with cc on OSF/1 5.1.
33299         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33300         statement, not before.
33301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33302
33303 2010-01-18  Bruno Haible  <bruno@clisp.org>
33304
33305         Avoid a link error due to the __printf__ symbol.
33306         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33307         and 2.6.x.
33308         (__format__, __printf__): Remove definitions.
33309         * lib/argp-fmtstream.h: Likewise.
33310         * lib/argp.h: Likewise.
33311         * lib/error.h: Likewise.
33312         * lib/vasnprintf.h: Likewise.
33313         * lib/xprintf.h: Likewise.
33314         * lib/xvasprintf.h: Likewise.
33315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33316
33317 2010-01-18  Bruno Haible  <bruno@clisp.org>
33318
33319         Tests for module 'tanl'.
33320         * modules/tanl-tests: New file.
33321         * tests/test-tanl.c: New file.
33322
33323         Tests for module 'sqrtl'.
33324         * modules/sqrtl-tests: New file.
33325         * tests/test-sqrtl.c: New file.
33326
33327         Tests for module 'sinl'.
33328         * modules/sinl-tests: New file.
33329         * tests/test-sinl.c: New file.
33330
33331         Tests for module 'logl'.
33332         * modules/logl-tests: New file.
33333         * tests/test-logl.c: New file.
33334
33335         Tests for module 'expl'.
33336         * modules/expl-tests: New file.
33337         * tests/test-expl.c: New file.
33338
33339         Tests for module 'cosl'.
33340         * modules/cosl-tests: New file.
33341         * tests/test-cosl.c: New file.
33342
33343         Tests for module 'atanl'.
33344         * modules/atanl-tests: New file.
33345         * tests/test-atanl.c: New file.
33346
33347         Tests for module 'asinl'.
33348         * modules/asinl-tests: New file.
33349         * tests/test-asinl.c: New file.
33350
33351         Tests for module 'acosl'.
33352         * modules/acosl-tests: New file.
33353         * tests/test-acosl.c: New file.
33354
33355         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33356         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33357         tanl): Use the standard gnulib idiom.
33358         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33359         * lib/sinl.c: Likewise.
33360         * lib/tanl.c: Don't include trigl.c.
33361         (kernel_tanl): Make static.
33362         * lib/sincosl.c: Include trigl.h first.
33363         * lib/trigl.c: Likewise.
33364         * m4/acosl.m4: New file.
33365         * m4/asinl.m4: New file.
33366         * m4/atanl.m4: New file.
33367         * m4/cosl.m4: New file.
33368         * m4/expl.m4: New file.
33369         * m4/logl.m4: New file.
33370         * m4/sinl.m4: New file.
33371         * m4/sqrtl.m4: New file.
33372         * m4/tanl.m4: New file.
33373         * m4/mathl.m4: Remove file.
33374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33375         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33376         Don't initialize GNULIB_MATHL.
33377         * modules/acosl: New file.
33378         * modules/asinl: New file.
33379         * modules/atanl: New file.
33380         * modules/cosl: New file.
33381         * modules/expl: New file.
33382         * modules/logl: New file.
33383         * modules/sinl: New file.
33384         * modules/sqrtl: New file.
33385         * modules/tanl: New file.
33386         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33387         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33388         substitute GNULIB_MATHL.
33389         * modules/mathl: Rewritten.
33390         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33391         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33392         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33393         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33394         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33395         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33396         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33397         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33398         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33399
33400 2010-01-18  Bruno Haible  <bruno@clisp.org>
33401
33402         sqrt: Make gl_FUNC_SQRT requirable.
33403         * m4/sqrt.m4: New file.
33404         * modules/sqrt (Files): Add it.
33405         (configure.ac): Invoke gl_FUNC_SQRT.
33406
33407 2010-01-18  Bruno Haible  <bruno@clisp.org>
33408
33409         New modules for common <math.h> functions.
33410         * m4/mathfunc.m4: New file.
33411         * modules/acos: New file.
33412         * modules/asin: New file.
33413         * modules/atan: New file.
33414         * modules/atan2: New file.
33415         * modules/cbrt: New file.
33416         * modules/copysign: New file.
33417         * modules/cos: New file.
33418         * modules/cosh: New file.
33419         * modules/erf: New file.
33420         * modules/erfc: New file.
33421         * modules/exp: New file.
33422         * modules/fabs: New file.
33423         * modules/fmod: New file.
33424         * modules/hypot: New file.
33425         * modules/j0: New file.
33426         * modules/j1: New file.
33427         * modules/jn: New file.
33428         * modules/ldexp: New file.
33429         * modules/lgamma: New file.
33430         * modules/log: New file.
33431         * modules/log10: New file.
33432         * modules/log1p: New file.
33433         * modules/logb: New file.
33434         * modules/modf: New file.
33435         * modules/nextafter: New file.
33436         * modules/pow: New file.
33437         * modules/remainder: New file.
33438         * modules/rint: New file.
33439         * modules/sin: New file.
33440         * modules/sinh: New file.
33441         * modules/sqrt: New file.
33442         * modules/tan: New file.
33443         * modules/tanh: New file.
33444         * modules/y0: New file.
33445         * modules/y1: New file.
33446         * modules/yn: New file.
33447         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33448         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33449         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33450         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33451         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33452         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33453         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33454         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33455         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33456         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33457         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33458         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33459         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33460         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33461         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33462         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33463         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33464         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33465         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33466         * doc/posix-functions/log.texi: Mention the 'log' module.
33467         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33468         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33469         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33470         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33471         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33472         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33473         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33474         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33475         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33476         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33477         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33478         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33479         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33480         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33481         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33482         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33483
33484 2010-01-18  Jim Meyering  <meyering@redhat.com>
33485
33486         ignore-value: relax license to LGPLv2+
33487         * modules/ignore-value (License): Relax to LGPLv2+.
33488
33489         getdate: don't leak when TZ contains two or more '"'s
33490         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33491         double quote in TZ after the first one.
33492
33493         readtokens: do not leak internal token_lengths buffer
33494         * lib/readtokens.c (readtokens): Free the local, lengths,
33495         when the supplied "token_lengths" parameter is NULL.
33496
33497 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33498
33499         Fix a couple of missing LIBTHREAD link failures on AIX.
33500         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33501         $(LIBTHREAD).
33502         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33503
33504         Link test-poll against INET_PTON_LIB.
33505         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33506         for inet_pton on Solaris 10.
33507
33508 2010-01-17  Bruno Haible  <bruno@clisp.org>
33509
33510         unistdio/*-sprintf: Fix typo in module description.
33511         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33512         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33513         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33514         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33515         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33516         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33517         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33519
33520 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33521
33522         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33523         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33524         variables in shell case patterns, for AIX and HP-UX ksh.
33525
33526         Split large sed scripts, for HP-UX sed.
33527         * modules/stdio: Split sed scripts around 50 sed commands,
33528         to avoid HP-UX limit of 99 commands, in the near future.
33529         * modules/string: Likewise.
33530         * modules/unistd: Likewise.
33531
33532         gnulib-tool: avoid writing in the current directory.
33533         * gnulib-tool (func_emit_lib_Makefile_am)
33534         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33535         not in the current directory, so concurrent gnulib-tool
33536         instances do not interfere.
33537
33538 2010-01-16  Jim Meyering  <meyering@redhat.com>
33539
33540         doc: update users.txt
33541         * users.txt: Add grep.
33542         (diffutils, gzip): Update URLs.
33543
33544 2010-01-12  Bruno Haible  <bruno@clisp.org>
33545
33546         posix_spawn: Avoid test failure on Cygwin.
33547         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33548         characters.
33549         Reported by Simon Josefsson.
33550
33551 2010-01-12  Bruno Haible  <bruno@clisp.org>
33552
33553         * tests/test-cond.c (main): When skipping the test, show the reason.
33554
33555 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33556
33557         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33558
33559 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33560
33561         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33562         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33563
33564 2010-01-12  Eric Blake  <ebb9@byu.net>
33565
33566         build: guarantee AS_VAR_IF
33567         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33568         (gl_AS_VAR_IF): Move...
33569         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33570         Reported by Simon Josefsson.
33571
33572 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33573
33574         * lib/stdio.in.h: Fix typo.
33575
33576 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33577
33578         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33579         libgpg-error.
33580
33581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33582
33583         * tests/test-xalloc-die.sh: Use $EXEEXT.
33584
33585 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33586             Bruno Haible  <bruno@clisp.org>
33587
33588         getlogin, getlogin_r: Avoid test failure.
33589         * tests/test-getlogin.c: Include <stdio.h>.
33590         (main): Skip the test when the function fails because stdin is not a
33591         tty.
33592         * tests/test-getlogin_r.c: Include <stdio.h>.
33593         (main): Skip the test when the function fails because stdin is not a
33594         tty.
33595
33596 2010-01-11  Eric Blake  <ebb9@byu.net>
33597
33598         tests: avoid more large file warnings
33599         * tests/test-fflush.c: Avoid warning about ftell use.
33600         * tests/test-fseek.c: Avoid warning about fseek use.
33601
33602 2010-01-10  Bruno Haible  <bruno@clisp.org>
33603
33604         nproc: Work better on Linux when /proc and /sys are not mounted.
33605         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33606         as lower bound when, on glibc/Linux systems,
33607         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33608         Suggested by Pádraig Brady <P@draigbrady.com>.
33609         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33610
33611         nproc: Refactor.
33612         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33613         extracted from num_processors.
33614         (num_processors): Call it.
33615
33616 2010-01-11  Jim Meyering  <meyering@redhat.com>
33617
33618         utimecmp: avoid new warning from upcoming gcc-4.5.0
33619         * lib/utimecmp.c (BILLION): Define using #define rather than an
33620         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33621
33622 2010-01-11  Eric Blake  <ebb9@byu.net>
33623
33624         math: add portability warnings for classification macros
33625         * modules/math (Depends-on): Add warn-on-use.
33626         (Makefile.am): Provide new substitutions.
33627         * m4/math_h.m4 (gl_MATH_H): Require inline.
33628         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33629         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33630         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33631         implement warnings.
33632
33633         unistd: warn on use of environ without module
33634         * modules/unistd (Depends-on): Add warn-on-use.
33635         (Makefile.am): Provide new substitutions.
33636         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33637         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33638
33639         stdio: warn on suspicious uses
33640         * modules/stdio (Depends-on): Add warn-on-use.
33641         (Makefile.am): Provide new substitutions.
33642         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33643         fseeko.
33644         * lib/stdio.in.h (gets): Always warn on use.
33645         (fseek, ftell): Adjust when warnings are issued, and honor
33646         _GL_NO_LARGE_FILES as a way to silence the warning.
33647         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33648         any warning about large file offsets.
33649         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33650         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33651         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33652         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33653         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33654         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33655         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33656         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33657
33658         warn-on-use: new module
33659         * modules/warn-on-use: New file.
33660         * build-aux/warn-on-use.h: Likewise.
33661         * m4/warn-on-use.m4: Likewise.
33662         * MODULES.html.sh (Support for building): Mention it.
33663
33664 2010-01-10  Bruno Haible  <bruno@clisp.org>
33665
33666         Tests for module 'unistr/u32-strdup'.
33667         * modules/unistr/u32-strdup-tests: New file.
33668         * tests/unistr/test-u32-strdup.c: New file.
33669
33670         Tests for module 'unistr/u16-strdup'.
33671         * modules/unistr/u16-strdup-tests: New file.
33672         * tests/unistr/test-u16-strdup.c: New file.
33673
33674         Tests for module 'unistr/u8-strdup'.
33675         * modules/unistr/u8-strdup-tests: New file.
33676         * tests/unistr/test-u8-strdup.c: New file.
33677         * tests/unistr/test-strdup.h: New file.
33678
33679         Tests for module 'unistr/u32-strncmp'.
33680         * modules/unistr/u32-strncmp-tests: New file.
33681         * tests/unistr/test-u32-strncmp.c: New file.
33682
33683         Tests for module 'unistr/u16-strncmp'.
33684         * modules/unistr/u16-strncmp-tests: New file.
33685         * tests/unistr/test-u16-strncmp.c: New file.
33686
33687         Tests for module 'unistr/u8-strncmp'.
33688         * modules/unistr/u8-strncmp-tests: New file.
33689         * tests/unistr/test-u8-strncmp.c: New file.
33690         * tests/unistr/test-strncmp.h: New file.
33691
33692         Tests for module 'unistr/u32-strcoll'.
33693         * modules/unistr/u32-strcoll-tests: New file.
33694         * tests/unistr/test-u32-strcoll.c: New file.
33695
33696         Tests for module 'unistr/u16-strcoll'.
33697         * modules/unistr/u16-strcoll-tests: New file.
33698         * tests/unistr/test-u16-strcoll.c: New file.
33699
33700         Tests for module 'unistr/u8-strcoll'.
33701         * modules/unistr/u8-strcoll-tests: New file.
33702         * tests/unistr/test-u8-strcoll.c: New file.
33703
33704         Tests for module 'unistr/u32-strcmp'.
33705         * modules/unistr/u32-strcmp-tests: New file.
33706         * tests/unistr/test-u32-strcmp.c: New file.
33707         * tests/unistr/test-u32-strcmp.h: New file.
33708
33709         Tests for module 'unistr/u16-strcmp'.
33710         * modules/unistr/u16-strcmp-tests: New file.
33711         * tests/unistr/test-u16-strcmp.c: New file.
33712         * tests/unistr/test-u16-strcmp.h: New file.
33713
33714         Tests for module 'unistr/u8-strcmp'.
33715         * modules/unistr/u8-strcmp-tests: New file.
33716         * tests/unistr/test-u8-strcmp.c: New file.
33717         * tests/unistr/test-u8-strcmp.h: New file.
33718         * tests/unistr/test-strcmp.h: New file.
33719
33720         Tests for module 'unistr/u32-strncat'.
33721         * modules/unistr/u32-strncat-tests: New file.
33722         * tests/unistr/test-u32-strncat.c: New file.
33723
33724         Tests for module 'unistr/u16-strncat'.
33725         * modules/unistr/u16-strncat-tests: New file.
33726         * tests/unistr/test-u16-strncat.c: New file.
33727
33728         Tests for module 'unistr/u8-strncat'.
33729         * modules/unistr/u8-strncat-tests: New file.
33730         * tests/unistr/test-u8-strncat.c: New file.
33731         * tests/unistr/test-strncat.h: New file.
33732
33733         Tests for module 'unistr/u32-strcat'.
33734         * modules/unistr/u32-strcat-tests: New file.
33735         * tests/unistr/test-u32-strcat.c: New file.
33736
33737         Tests for module 'unistr/u16-strcat'.
33738         * modules/unistr/u16-strcat-tests: New file.
33739         * tests/unistr/test-u16-strcat.c: New file.
33740
33741         Tests for module 'unistr/u8-strcat'.
33742         * modules/unistr/u8-strcat-tests: New file.
33743         * tests/unistr/test-u8-strcat.c: New file.
33744         * tests/unistr/test-strcat.h: New file.
33745
33746         Tests for module 'unistr/u32-stpncpy'.
33747         * modules/unistr/u32-stpncpy-tests: New file.
33748         * tests/unistr/test-u32-stpncpy.c: New file.
33749
33750         Tests for module 'unistr/u16-stpncpy'.
33751         * modules/unistr/u16-stpncpy-tests: New file.
33752         * tests/unistr/test-u16-stpncpy.c: New file.
33753
33754         Tests for module 'unistr/u8-stpncpy'.
33755         * modules/unistr/u8-stpncpy-tests: New file.
33756         * tests/unistr/test-u8-stpncpy.c: New file.
33757         * tests/unistr/test-stpncpy.h: New file.
33758
33759         Tests for module 'unistr/u32-strncpy'.
33760         * modules/unistr/u32-strncpy-tests: New file.
33761         * tests/unistr/test-u32-strncpy.c: New file.
33762
33763         Tests for module 'unistr/u16-strncpy'.
33764         * modules/unistr/u16-strncpy-tests: New file.
33765         * tests/unistr/test-u16-strncpy.c: New file.
33766
33767         Tests for module 'unistr/u8-strncpy'.
33768         * modules/unistr/u8-strncpy-tests: New file.
33769         * tests/unistr/test-u8-strncpy.c: New file.
33770         * tests/unistr/test-strncpy.h: New file.
33771
33772         Tests for module 'unistr/u32-stpcpy'.
33773         * modules/unistr/u32-stpcpy-tests: New file.
33774         * tests/unistr/test-u32-stpcpy.c: New file.
33775
33776         Tests for module 'unistr/u16-stpcpy'.
33777         * modules/unistr/u16-stpcpy-tests: New file.
33778         * tests/unistr/test-u16-stpcpy.c: New file.
33779
33780         Tests for module 'unistr/u8-stpcpy'.
33781         * modules/unistr/u8-stpcpy-tests: New file.
33782         * tests/unistr/test-u8-stpcpy.c: New file.
33783         * tests/unistr/test-stpcpy.h: New file.
33784
33785         Tests for module 'unistr/u32-strcpy'.
33786         * modules/unistr/u32-strcpy-tests: New file.
33787         * tests/unistr/test-u32-strcpy.c: New file.
33788
33789         Tests for module 'unistr/u16-strcpy'.
33790         * modules/unistr/u16-strcpy-tests: New file.
33791         * tests/unistr/test-u16-strcpy.c: New file.
33792
33793         Tests for module 'unistr/u8-strcpy'.
33794         * modules/unistr/u8-strcpy-tests: New file.
33795         * tests/unistr/test-u8-strcpy.c: New file.
33796         * tests/unistr/test-strcpy.h: New file.
33797
33798         Tests for module 'unistr/u32-strnlen'.
33799         * modules/unistr/u32-strnlen-tests: New file.
33800         * tests/unistr/test-u32-strnlen.c: New file.
33801
33802         Tests for module 'unistr/u16-strnlen'.
33803         * modules/unistr/u16-strnlen-tests: New file.
33804         * tests/unistr/test-u16-strnlen.c: New file.
33805
33806         Tests for module 'unistr/u8-strnlen'.
33807         * modules/unistr/u8-strnlen-tests: New file.
33808         * tests/unistr/test-u8-strnlen.c: New file.
33809         * tests/unistr/test-strnlen.h: New file.
33810
33811         Tests for module 'unistr/u32-strlen'.
33812         * modules/unistr/u32-strlen-tests: New file.
33813         * tests/unistr/test-u32-strlen.c: New file.
33814
33815         Tests for module 'unistr/u16-strlen'.
33816         * modules/unistr/u16-strlen-tests: New file.
33817         * tests/unistr/test-u16-strlen.c: New file.
33818
33819         Tests for module 'unistr/u8-strlen'.
33820         * modules/unistr/u8-strlen-tests: New file.
33821         * tests/unistr/test-u8-strlen.c: New file.
33822
33823         Tests for module 'unistr/u32-prev'.
33824         * modules/unistr/u32-prev-tests: New file.
33825         * tests/unistr/test-u32-prev.c: New file.
33826
33827         Tests for module 'unistr/u16-prev'.
33828         * modules/unistr/u16-prev-tests: New file.
33829         * tests/unistr/test-u16-prev.c: New file.
33830
33831         Tests for module 'unistr/u8-prev'.
33832         * modules/unistr/u8-prev-tests: New file.
33833         * tests/unistr/test-u8-prev.c: New file.
33834
33835         Tests for module 'unistr/u32-next'.
33836         * modules/unistr/u32-next-tests: New file.
33837         * tests/unistr/test-u32-next.c: New file.
33838
33839         Tests for module 'unistr/u16-next'.
33840         * modules/unistr/u16-next-tests: New file.
33841         * tests/unistr/test-u16-next.c: New file.
33842
33843         Tests for module 'unistr/u8-next'.
33844         * modules/unistr/u8-next-tests: New file.
33845         * tests/unistr/test-u8-next.c: New file.
33846
33847         Tests for module 'unistr/u32-strmbtouc'.
33848         * modules/unistr/u32-strmbtouc-tests: New file.
33849         * tests/unistr/test-u32-strmbtouc.c: New file.
33850
33851         Tests for module 'unistr/u16-strmbtouc'.
33852         * modules/unistr/u16-strmbtouc-tests: New file.
33853         * tests/unistr/test-u16-strmbtouc.c: New file.
33854
33855         Tests for module 'unistr/u8-strmbtouc'.
33856         * modules/unistr/u8-strmbtouc-tests: New file.
33857         * tests/unistr/test-u8-strmbtouc.c: New file.
33858
33859         Tests for module 'unistr/u32-strmblen'.
33860         * modules/unistr/u32-strmblen-tests: New file.
33861         * tests/unistr/test-u32-strmblen.c: New file.
33862
33863         Tests for module 'unistr/u16-strmblen'.
33864         * modules/unistr/u16-strmblen-tests: New file.
33865         * tests/unistr/test-u16-strmblen.c: New file.
33866
33867         Tests for module 'unistr/u8-strmblen'.
33868         * modules/unistr/u8-strmblen-tests: New file.
33869         * tests/unistr/test-u8-strmblen.c: New file.
33870
33871         Tests for module 'unistr/u32-cpy-alloc'.
33872         * modules/unistr/u32-cpy-alloc-tests: New file.
33873         * tests/unistr/test-u32-cpy-alloc.c: New file.
33874
33875         Tests for module 'unistr/u16-cpy-alloc'.
33876         * modules/unistr/u16-cpy-alloc-tests: New file.
33877         * tests/unistr/test-u16-cpy-alloc.c: New file.
33878
33879         Tests for module 'unistr/u8-cpy-alloc'.
33880         * modules/unistr/u8-cpy-alloc-tests: New file.
33881         * tests/unistr/test-u8-cpy-alloc.c: New file.
33882         * tests/unistr/test-cpy-alloc.h: New file.
33883
33884         Tests for module 'unistr/u32-mbsnlen'.
33885         * modules/unistr/u32-mbsnlen-tests: New file.
33886         * tests/unistr/test-u32-mbsnlen.c: New file.
33887
33888         Tests for module 'unistr/u16-mbsnlen'.
33889         * modules/unistr/u16-mbsnlen-tests: New file.
33890         * tests/unistr/test-u16-mbsnlen.c: New file.
33891
33892         Tests for module 'unistr/u8-mbsnlen'.
33893         * modules/unistr/u8-mbsnlen-tests: New file.
33894         * tests/unistr/test-u8-mbsnlen.c: New file.
33895
33896         Tests for module 'unistr/u32-chr'.
33897         * modules/unistr/u32-chr-tests: New file.
33898         * tests/unistr/test-u32-chr.c: New file.
33899
33900         Tests for module 'unistr/u16-chr'.
33901         * modules/unistr/u16-chr-tests: New file.
33902         * tests/unistr/test-u16-chr.c: New file.
33903
33904         Tests for module 'unistr/u8-chr'.
33905         * modules/unistr/u8-chr-tests: New file.
33906         * tests/unistr/test-u8-chr.c: New file.
33907         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33908
33909         Tests for module 'unistr/u32-cmp2'.
33910         * modules/unistr/u32-cmp2-tests: New file.
33911         * tests/unistr/test-u32-cmp2.c: New file.
33912
33913         Tests for module 'unistr/u16-cmp2'.
33914         * modules/unistr/u16-cmp2-tests: New file.
33915         * tests/unistr/test-u16-cmp2.c: New file.
33916
33917         Tests for module 'unistr/u8-cmp2'.
33918         * modules/unistr/u8-cmp2-tests: New file.
33919         * tests/unistr/test-u8-cmp2.c: New file.
33920         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33921
33922         Tests for module 'unistr/u32-cmp'.
33923         * modules/unistr/u32-cmp-tests: New file.
33924         * tests/unistr/test-u32-cmp.c: New file.
33925
33926         Tests for module 'unistr/u16-cmp'.
33927         * modules/unistr/u16-cmp-tests: New file.
33928         * tests/unistr/test-u16-cmp.c: New file.
33929
33930         Tests for module 'unistr/u8-cmp'.
33931         * modules/unistr/u8-cmp-tests: New file.
33932         * tests/unistr/test-u8-cmp.c: New file.
33933         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33934
33935         Tests for module 'unistr/u32-set'.
33936         * modules/unistr/u32-set-tests: New file.
33937         * tests/unistr/test-u32-set.c: New file.
33938
33939         Tests for module 'unistr/u16-set'.
33940         * modules/unistr/u16-set-tests: New file.
33941         * tests/unistr/test-u16-set.c: New file.
33942
33943         Tests for module 'unistr/u8-set'.
33944         * modules/unistr/u8-set-tests: New file.
33945         * tests/unistr/test-u8-set.c: New file.
33946         * tests/unistr/test-set.h: New file.
33947
33948         Tests for module 'unistr/u32-move'.
33949         * modules/unistr/u32-move-tests: New file.
33950         * tests/unistr/test-u32-move.c: New file.
33951
33952         Tests for module 'unistr/u16-move'.
33953         * modules/unistr/u16-move-tests: New file.
33954         * tests/unistr/test-u16-move.c: New file.
33955
33956         Tests for module 'unistr/u8-move'.
33957         * modules/unistr/u8-move-tests: New file.
33958         * tests/unistr/test-u8-move.c: New file.
33959         * tests/unistr/test-move.h: New file.
33960
33961         Tests for module 'unistr/u32-cpy'.
33962         * modules/unistr/u32-cpy-tests: New file.
33963         * tests/unistr/test-u32-cpy.c: New file.
33964
33965         Tests for module 'unistr/u16-cpy'.
33966         * modules/unistr/u16-cpy-tests: New file.
33967         * tests/unistr/test-u16-cpy.c: New file.
33968
33969         Tests for module 'unistr/u8-cpy'.
33970         * modules/unistr/u8-cpy-tests: New file.
33971         * tests/unistr/test-u8-cpy.c: New file.
33972         * tests/unistr/test-cpy.h: New file.
33973
33974 2010-01-09  Bruno Haible  <bruno@clisp.org>
33975
33976         Tests for module 'unistr/u32-uctomb'.
33977         * modules/unistr/u32-uctomb-tests: New file.
33978         * tests/unistr/test-u32-uctomb.c: New file.
33979
33980         Tests for module 'unistr/u16-uctomb'.
33981         * modules/unistr/u16-uctomb-tests: New file.
33982         * tests/unistr/test-u16-uctomb.c: New file.
33983
33984         Tests for module 'unistr/u8-uctomb'.
33985         * modules/unistr/u8-uctomb-tests: New file.
33986         * tests/unistr/test-u8-uctomb.c: New file.
33987
33988         Tests for module 'unistr/u32-mbtoucr'.
33989         * modules/unistr/u32-mbtoucr-tests: New file.
33990         * tests/unistr/test-u32-mbtoucr.c: New file.
33991
33992         Tests for module 'unistr/u16-mbtoucr'.
33993         * modules/unistr/u16-mbtoucr-tests: New file.
33994         * tests/unistr/test-u16-mbtoucr.c: New file.
33995
33996         Tests for module 'unistr/u8-mbtoucr'.
33997         * modules/unistr/u8-mbtoucr-tests: New file.
33998         * tests/unistr/test-u8-mbtoucr.c: New file.
33999
34000         Tests for module 'unistr/u32-mbtouc'.
34001         * modules/unistr/u32-mbtouc-tests: New file.
34002         * tests/unistr/test-u32-mbtouc.c: New file.
34003
34004         Tests for module 'unistr/u16-mbtouc'.
34005         * modules/unistr/u16-mbtouc-tests: New file.
34006         * tests/unistr/test-u16-mbtouc.c: New file.
34007
34008         Tests for module 'unistr/u8-mbtouc'.
34009         * modules/unistr/u8-mbtouc-tests: New file.
34010         * tests/unistr/test-u8-mbtouc.c: New file.
34011
34012         Tests for module 'unistr/u32-mbtouc-unsafe'.
34013         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34014         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34015         * tests/unistr/test-u32-mbtouc.h: New file.
34016
34017         Tests for module 'unistr/u16-mbtouc-unsafe'.
34018         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34019         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34020         * tests/unistr/test-u16-mbtouc.h: New file.
34021
34022         Tests for module 'unistr/u8-mbtouc-unsafe'.
34023         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34024         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34025         * tests/unistr/test-u8-mbtouc.h: New file.
34026
34027         Tests for module 'unistr/u32-mblen'.
34028         * modules/unistr/u32-mblen-tests: New file.
34029         * tests/unistr/test-u32-mblen.c: New file.
34030
34031         Tests for module 'unistr/u16-mblen'.
34032         * modules/unistr/u16-mblen-tests: New file.
34033         * tests/unistr/test-u16-mblen.c: New file.
34034
34035         Tests for module 'unistr/u8-mblen'.
34036         * modules/unistr/u8-mblen-tests: New file.
34037         * tests/unistr/test-u8-mblen.c: New file.
34038
34039         Tests for module 'unistr/u32-to-u16'.
34040         * modules/unistr/u32-to-u16-tests: New file.
34041         * tests/unistr/test-u32-to-u16.c: New file.
34042
34043         Tests for module 'unistr/u32-to-u8'.
34044         * modules/unistr/u32-to-u8-tests: New file.
34045         * tests/unistr/test-u32-to-u8.c: New file.
34046
34047         Tests for module 'unistr/u16-to-u32'.
34048         * modules/unistr/u16-to-u32-tests: New file.
34049         * tests/unistr/test-u16-to-u32.c: New file.
34050
34051         Tests for module 'unistr/u16-to-u8'.
34052         * modules/unistr/u16-to-u8-tests: New file.
34053         * tests/unistr/test-u16-to-u8.c: New file.
34054
34055         Tests for module 'unistr/u8-to-u32'.
34056         * modules/unistr/u8-to-u32-tests: New file.
34057         * tests/unistr/test-u8-to-u32.c: New file.
34058
34059         Tests for module 'unistr/u8-to-u16'.
34060         * modules/unistr/u8-to-u16-tests: New file.
34061         * tests/unistr/test-u8-to-u16.c: New file.
34062
34063         Tests for module 'unistr/u32-check'.
34064         * modules/unistr/u32-check-tests: New file.
34065         * tests/unistr/test-u32-check.c: New file.
34066
34067         Tests for module 'unistr/u16-check'.
34068         * modules/unistr/u16-check-tests: New file.
34069         * tests/unistr/test-u16-check.c: New file.
34070
34071         Tests for module 'unistr/u8-check'.
34072         * modules/unistr/u8-check-tests: New file.
34073         * tests/unistr/test-u8-check.c: New file.
34074
34075         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34076         (category_equals): New function.
34077         (main): Add more tests.
34078         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34079
34080         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34081
34082 2010-01-10  Bruno Haible  <bruno@clisp.org>
34083
34084         unistr/u*-strcoll: Try harder to distinguish different strings.
34085         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34086         compare s1 and s2 to see if they are different.
34087
34088 2010-01-10  Bruno Haible  <bruno@clisp.org>
34089
34090         unistr/u*-stpncpy: Fix the return value.
34091         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34092         description of the return value consistent with stpncpy in glibc.
34093         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34094         written non-NUL unit.
34095
34096 2010-01-10  Bruno Haible  <bruno@clisp.org>
34097
34098         unistr/u*-next: Add missing dependencies.
34099         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34100         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34101         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34102
34103 2010-01-10  Bruno Haible  <bruno@clisp.org>
34104
34105         unistr/u8-mbsnlen: Fix return value for incomplete character.
34106         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34107         u8_mblen.
34108         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34109         Remove unistr/u8-mblen.
34110         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34111         u16_mblen.
34112         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34113         Remove unistr/u16-mblen.
34114
34115 2010-01-10  Bruno Haible  <bruno@clisp.org>
34116
34117         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34118         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34119         Reported by Brian Gough <bjg@gnu.org> and
34120         Chris Clayton <chris2553@googlemail.com> via
34121         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34122
34123 2010-01-09  Bruno Haible  <bruno@clisp.org>
34124
34125         unistr/u16-to-u32: Reject invalid input.
34126         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34127         u16_mbtouc.
34128         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34129         Remove unistr/u16-mbtouc.
34130
34131         unistr/u16-to-u8: Reject invalid input.
34132         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34133         u16_mbtouc.
34134         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34135         Remove unistr/u16-mbtouc.
34136
34137         unistr/u8-to-u32: Reject invalid input.
34138         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34139         u8_mbtouc.
34140         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34141         Remove unistr/u8-mbtouc.
34142
34143         unistr/u8-to-u16: Reject invalid input.
34144         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34145         u8_mbtouc.
34146         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34147         Remove unistr/u8-mbtouc.
34148
34149 2010-01-09  Bruno Haible  <bruno@clisp.org>
34150
34151         Tests for module 'getlogin'.
34152         * modules/getlogin-tests: New file.
34153         * tests/test-getlogin.c: New file.
34154
34155         New module 'getlogin'.
34156         * lib/unistd.in.h (getlogin): New declaration.
34157         * lib/getlogin.c: New file.
34158         * m4/getlogin.m4: New file.
34159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34160         HAVE_GETLOGIN.
34161         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34162         HAVE_GETLOGIN.
34163         * modules/getlogin: New file.
34164         * doc/posix-functions/getlogin.texi: Mention the new module.
34165         Reported by John W. Eaton <jwe@gnu.org>.
34166
34167 2010-01-09  Bruno Haible  <bruno@clisp.org>
34168
34169         getlogin_r: Support for native Windows.
34170         * lib/getlogin_r.c: Include <windows.h>
34171         (getlogin_r): Implement for native Windows.
34172         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34173         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34174         via John W. Eaton <jwe@gnu.org>.
34175
34176 2010-01-09  Bruno Haible  <bruno@clisp.org>
34177
34178         getlogin_r: Small fixes.
34179         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34180         succeeds.
34181         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34182         before testing whether getlogin_r is declared. No need to set
34183         HAVE_DECL_GETLOGIN_R to 1.
34184         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34185
34186 2010-01-09  Bruno Haible  <bruno@clisp.org>
34187
34188         * lib/unistd.in.h (getlogin_r): Add comment.
34189
34190 2010-01-09  Bruno Haible  <bruno@clisp.org>
34191
34192         Tests for module 'getlogin_r'.
34193         * modules/getlogin_r-tests: New file.
34194         * tests/test-getlogin_r.c: New file.
34195
34196 2010-01-09  Jim Meyering  <meyering@redhat.com>
34197
34198         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34199         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34200         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34201
34202 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34203
34204         * lib/dup2.c (rpl_dup2): Improve comment.
34205
34206 2010-01-08  Eric Blake  <ebb9@byu.net>
34207
34208         maint.mk: allow packages to add makefile @@ exceptions
34209         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34210         (sc_makefile_check): Rename...
34211         (sc_makefile_at_at_check): ...to this, and use hook.
34212
34213         dup2: work around mingw bug
34214         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34215         Reported by Simon Josefsson.
34216
34217 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34218
34219         glob: Fix C++ compilation.
34220         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34221         C++.
34222
34223 2010-01-07  Bruno Haible  <bruno@clisp.org>
34224
34225         Fix indentation of wctype.in.h, broken since 2007-01-06.
34226         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34227
34228 2010-01-07  Bruno Haible  <bruno@clisp.org>
34229
34230         mbslen: Avoid collision with system function.
34231         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34232         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34233         * m4/mbslen.m4: New file.
34234         * modules/mbslen (Files): Add it.
34235         (configure.ac): Invoke gl_MBSLEN.
34236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34237         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34238         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34239         via Ian Beckwith <ianb@erislabs.net>.
34240
34241 2010-01-07  Bruno Haible  <bruno@clisp.org>
34242
34243         dirent: Document the last fix.
34244         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34245
34246 2010-01-07  Bruno Haible  <bruno@clisp.org>
34247
34248         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34249         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34250         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34251         va_list are defined.
34252         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34253         Reported by Eric Blake.
34254
34255 2010-01-07  Bruno Haible  <bruno@clisp.org>
34256
34257         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34258         * modules/xlist (Depends-on): Add 'list',
34259         * modules/xoset (Depends-on): Add 'oset'.
34260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34261
34262 2010-01-07  Bruno Haible  <bruno@clisp.org>
34263
34264         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34265         * doc/posix-functions/strncasecmp.texi: Likewise.
34266
34267 2010-01-07  Bruno Haible  <bruno@clisp.org>
34268
34269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34270
34271 2010-01-07  John W. Eaton  <jwe@octave.org>
34272
34273         wctype: allow C++ use
34274         * lib/wctype.in.h: Add extern "C" block for C++.
34275
34276 2010-01-06  Eric Blake  <ebb9@byu.net>
34277
34278         maint.mk: detect incorrect GFDL usage
34279         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34280
34281 2010-01-06  Jim Meyering  <meyering@redhat.com>
34282         and Eric Blake  <ebb9@byu.net>
34283
34284         maint.mk: ignore multi-line copyright in NEWS
34285         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34286
34287 2010-01-06  Eric Blake  <ebb9@byu.net>
34288
34289         select: add missing dependency
34290         * modules/select-tests (Depends-on): Move sockets dependency...
34291         * modules/select (Depends-on): ...here.
34292         Reported by Ian Beckwith.
34293
34294         doc: regenerate INSTALL
34295         * doc/INSTALL: Reflect recent autoconf update.
34296         * doc/INSTALL.ISO: Likewise.
34297         * doc/INSTALL.UTF-8: Likewise.
34298
34299         pread: fix compilation on glibc
34300         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34301         Reported by Ralf Wildenhues.
34302
34303         dirent: fix test failure
34304         * lib/dirent.in.h (includes): Guarantee ino_t.
34305         Reported by Ralf Wildenhues.
34306
34307 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34308
34309         linkat, renameat: avoid bad free
34310         * lib/at-func2.c (at_func2): Fix typo.
34311         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34312
34313 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34314
34315         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34316         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34317         to avoid failure of symlink test later.
34318
34319 2010-01-06  Eric Blake  <ebb9@byu.net>
34320
34321         stdio, unistd: guarantee ssize_t
34322         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34323         2008 are exposed when needed.
34324         * lib/stdio.in.h (includes): Likewise.
34325         Reported by Ralf Wildenhues.
34326
34327 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34328
34329         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34330         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34331         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34332
34333 2010-01-06  Jim Meyering  <meyering@redhat.com>
34334
34335         readtokens: this module *does* require xalloc.h
34336         It uses only functions that were omitted by the old syntax-check rule.
34337         * lib/readtokens.c: Include "xalloc.h" once again.
34338         * modules/readtokens (Depends-on): Add xalloc.
34339         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34340
34341 2010-01-05  Eric Blake  <ebb9@byu.net>
34342
34343         maint: support 'make announcement' from a VPATH build
34344         * top/maint.mk (announcement): Look for correct NEWS file.
34345
34346 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34347
34348         utimens (fdutimens): ignore a negative FD, per contract
34349         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34350         when we have a valid file descriptor.  Otherwise, using a brand
34351         new glibc (with just-patched futimens that now fails with EBADF)
34352         would cause this function to fail with ENOSYS.
34353         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34354         See also http://bugzilla.redhat.com/552320.
34355
34356 2010-01-05  Eric Blake  <ebb9@byu.net>
34357
34358         strcase: document what it provides
34359         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34360         gnulib module.
34361         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34362         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34363
34364 2010-01-05  Jim Meyering  <meyering@redhat.com>
34365
34366         maint: remove useless inclusions of "xalloc.h"
34367         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34368         * lib/readtokens.c: Likewise.
34369         * lib/same.c: Likewise.
34370         * modules/getloadavg (Depends-on): Remove xalloc.
34371         * modules/readtokens: Likewise.
34372         * modules/same: Likewise.
34373
34374         maint.mk: include 4 more function names in alloca.h-checking regexp
34375         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34376         regexp.  Before, we would give a false-positive (saying alloca.h
34377         is included unnecessarily) when the only uses involved omitted symbols.
34378
34379         xalloc.h: use consistent formatting
34380         * lib/xalloc.h: Move declarations to start in the first column.
34381
34382 2010-01-05  Eric Blake  <ebb9@byu.net>
34383
34384         mkdir: avoid xalloc
34385         * lib/mkdir.c (includes): Drop unused header.
34386         Reported by John W. Eaton.
34387
34388 2010-01-04  Jim Meyering  <meyering@redhat.com>
34389
34390         nl_langinfo: avoid configure-time syntax error
34391         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34392         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34393         the empty string.  Don't let that provoke a shell syntax error.
34394
34395         regcomp, regexec, fnmatch: avoid array bounds read error
34396         * lib/regcomp.c (build_equiv_class): From glibc:
34397         Use only the low 24 bits of a findidx return value as an index
34398         into the weights array.  Patch by Ulrich Drepper:
34399         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34400         * lib/regexec.c (check_node_accept_bytes): Likewise.
34401         * lib/fnmatch_loop.c (FCT): Likewise.
34402
34403         regcomp: skip collseq lookup when there are no rules
34404         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34405         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34406
34407         regcomp: recognize ill-formed { } expressions
34408         * lib/regcomp.c (parse_dup_op): From glibc:
34409         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34410
34411         regcomp: fix typo in comment
34412         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34413         s/satisfy/satisfies/.
34414
34415         regcomp: sync from glibc: remove dead store
34416         * lib/regcomp.c (duplicate_node_closure): Remove useless
34417         search_duplicated_node call and dead store.
34418
34419         regcomp: sync from glibc; always use nl_langinfo
34420         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34421         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34422         * modules/regex (Depends-on): Add nl_langinfo.
34423
34424 2010-01-04  Eric Blake  <ebb9@byu.net>
34425
34426         fdopendir: fix configure test
34427         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34428
34429 2010-01-01  Bruno Haible  <bruno@clisp.org>
34430
34431         wchar: Remove unused configure check.
34432         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34433
34434 2010-01-01  Eric Blake  <ebb9@byu.net>
34435
34436         headers: make check of system header explicit
34437         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34438         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34439         ourselves.
34440         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34443         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34444         internals.
34445         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34446         missing.
34447         Suggested by Bruno Haible.
34448
34449 2010-01-01  Jim Meyering  <meyering@redhat.com>
34450
34451         ChangeLog: tweak to eliminate unnecessary copyright line
34452         * ChangeLog: Remove a copyright line that was mistakenly updated
34453         by today's update-copyright run.  Reported by Eric Blake.
34454
34455         test-update-copyright: don't let envvar setting cause test failure
34456         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34457
34458 2010-01-01  Bruno Haible  <bruno@clisp.org>
34459
34460         localename: Avoid gcc warning.
34461         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34462         function if it is not used.
34463
34464 2010-01-01  Jim Meyering  <meyering@redhat.com>
34465
34466         update nearly all FSF copyright year lists to include 2010
34467         Use the same procedure as for 2009, outlined in
34468         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34469
34470         version-etc: set COPYRIGHT_YEAR to 2010
34471         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34472
34473 2009-12-31  Eric Blake  <ebb9@byu.net>
34474
34475         doc: correct availability of cygwin 1.5.x getopt
34476         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34477         variables.
34478         * doc/posix-functions/opterr.texi (opterr): Likewise.
34479         * doc/posix-functions/optind.texi (optind): Likewise.
34480         * doc/posix-functions/optopt.texi (optopt): Likewise.
34481         * doc/posix-functions/tzname.texi (tzname): Likewise.
34482
34483         openat: update maintainer
34484         * modules/openat (Maintainer): Add myself.
34485
34486         utimens: avoid shadowing warning
34487         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34488         buffers into one, to avoid shadowing, as well as avoiding a
34489         redundant stat.
34490         Reported by Jim Meyering.
34491
34492         test-dup2: avoid compiler warning
34493         * tests/test-dup2.c (is_inheritable): Only define if used.
34494
34495 2010-01-01  Bruno Haible  <bruno@clisp.org>
34496
34497         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34498         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34499         defined, use wctomb instead of wcrtomb.
34500
34501 2010-01-01  Bruno Haible  <bruno@clisp.org>
34502
34503         iconv: Reject native Solaris iconv.
34504         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34505         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34506
34507 2009-12-31  Bruno Haible  <bruno@clisp.org>
34508
34509         * tests/test-signal.c (main): Remove test of 'SIG'.
34510
34511 2009-12-31  Bruno Haible  <bruno@clisp.org>
34512
34513         spawn: Fix incomplete fix.
34514         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34515         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34516         warnings for GNULIB_POSIXCHECK again.
34517         Reported by Eric Blake.
34518
34519 2009-12-31  Bruno Haible  <bruno@clisp.org>
34520
34521         Avoid namespace pollution on glibc systems.
34522         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34523         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34524         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34525         glibc systems.
34526
34527 2009-12-31  Bruno Haible  <bruno@clisp.org>
34528
34529         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34530         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34531         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34532         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34533         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34534         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34535         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34536
34537 2009-12-31  Bruno Haible  <bruno@clisp.org>
34538
34539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34540         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34541         afterwards.
34542
34543 2009-12-31  Bruno Haible  <bruno@clisp.org>
34544
34545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34546         SYS_UTSNAME_H.
34547
34548 2009-12-31  Bruno Haible  <bruno@clisp.org>
34549
34550         spawn: Fix misapplied patch.
34551         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34552         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34553         warnings for GNULIB_POSIXCHECK.
34554
34555 2009-12-31  Bruno Haible  <bruno@clisp.org>
34556
34557         times: Update after sys_times changed.
34558         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34559         * modules/times (Files): Add it.
34560         (configure.ac): Invoke gl_FUNC_TIMES.
34561
34562 2009-12-31  Bruno Haible  <bruno@clisp.org>
34563
34564         Use AC_C_INLINE where necessary.
34565         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34566         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34568         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34569         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34570         * m4/mbiter.m4 (gl_MBITER): Likewise.
34571         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34572         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34573         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34574         * modules/u64 (configure.ac): Likewise.
34575
34576 2009-12-31  Bruno Haible  <bruno@clisp.org>
34577
34578         Use AC_C_INLINE instead of module 'inline' where possible.
34579         * modules/inline (Description): Clarify purpose.
34580         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34581         * modules/count-one-bits (Depends-on): Remove inline.
34582         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34583         * modules/openat (Depends-on): Remove inline.
34584         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34585         instead of depending on module 'inline'.
34586         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34587         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34588         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34589         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34590         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34591         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34592         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34593         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34594         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34595         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34596         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34597         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34598         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34599         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34600         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34601         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34602         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34603         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34604         Likewise.
34605         * modules/unictype/property-ascii-hex-digit (Depends-on,
34606         configure.ac): Likewise.
34607         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34608         configure.ac): Likewise.
34609         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34610         configure.ac): Likewise.
34611         * modules/unictype/property-bidi-block-separator (Depends-on,
34612         configure.ac): Likewise.
34613         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34614         configure.ac): Likewise.
34615         * modules/unictype/property-bidi-common-separator (Depends-on,
34616         configure.ac): Likewise.
34617         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34618         Likewise.
34619         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34620         configure.ac): Likewise.
34621         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34622         configure.ac): Likewise.
34623         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34624         configure.ac): Likewise.
34625         * modules/unictype/property-bidi-european-digit (Depends-on,
34626         configure.ac): Likewise.
34627         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34628         configure.ac): Likewise.
34629         * modules/unictype/property-bidi-left-to-right (Depends-on,
34630         configure.ac): Likewise.
34631         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34632         configure.ac): Likewise.
34633         * modules/unictype/property-bidi-other-neutral (Depends-on,
34634         configure.ac): Likewise.
34635         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34636         Likewise.
34637         * modules/unictype/property-bidi-segment-separator (Depends-on,
34638         configure.ac): Likewise.
34639         * modules/unictype/property-bidi-whitespace (Depends-on,
34640         configure.ac): Likewise.
34641         * modules/unictype/property-combining (Depends-on, configure.ac):
34642         Likewise.
34643         * modules/unictype/property-composite (Depends-on, configure.ac):
34644         Likewise.
34645         * modules/unictype/property-currency-symbol (Depends-on,
34646         configure.ac): Likewise.
34647         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34648         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34649         Likewise.
34650         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34651         configure.ac): Likewise.
34652         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34653         Likewise.
34654         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34655         Likewise.
34656         * modules/unictype/property-extender (Depends-on, configure.ac):
34657         Likewise.
34658         * modules/unictype/property-format-control (Depends-on, configure.ac):
34659         Likewise.
34660         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34661         Likewise.
34662         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34663         Likewise.
34664         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34665         Likewise.
34666         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34667         Likewise.
34668         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34669         Likewise.
34670         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34671         Likewise.
34672         * modules/unictype/property-id-start (Depends-on, configure.ac):
34673         Likewise.
34674         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34675         Likewise.
34676         * modules/unictype/property-ids-binary-operator (Depends-on,
34677         configure.ac): Likewise.
34678         * modules/unictype/property-ids-trinary-operator (Depends-on,
34679         configure.ac): Likewise.
34680         * modules/unictype/property-ignorable-control (Depends-on,
34681         configure.ac): Likewise.
34682         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34683         Likewise.
34684         * modules/unictype/property-join-control (Depends-on, configure.ac):
34685         Likewise.
34686         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34687         Likewise.
34688         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34689         Likewise.
34690         * modules/unictype/property-logical-order-exception (Depends-on,
34691         configure.ac): Likewise.
34692         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34693         Likewise.
34694         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34695         * modules/unictype/property-non-break (Depends-on, configure.ac):
34696         Likewise.
34697         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34698         Likewise.
34699         * modules/unictype/property-numeric (Depends-on, configure.ac):
34700         Likewise.
34701         * modules/unictype/property-other-alphabetic (Depends-on,
34702         configure.ac): Likewise.
34703         * modules/unictype/property-other-default-ignorable-code-point
34704         (Depends-on, configure.ac): Likewise.
34705         * modules/unictype/property-other-grapheme-extend (Depends-on,
34706         configure.ac): Likewise.
34707         * modules/unictype/property-other-id-continue (Depends-on,
34708         configure.ac): Likewise.
34709         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34710         Likewise.
34711         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34712         Likewise.
34713         * modules/unictype/property-other-math (Depends-on, configure.ac):
34714         Likewise.
34715         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34716         Likewise.
34717         * modules/unictype/property-paired-punctuation (Depends-on,
34718         configure.ac): Likewise.
34719         * modules/unictype/property-paragraph-separator (Depends-on,
34720         configure.ac): Likewise.
34721         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34722         Likewise.
34723         * modules/unictype/property-pattern-white-space (Depends-on,
34724         configure.ac): Likewise.
34725         * modules/unictype/property-private-use (Depends-on, configure.ac):
34726         Likewise.
34727         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34728         Likewise.
34729         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34730         Likewise.
34731         * modules/unictype/property-radical (Depends-on, configure.ac):
34732         Likewise.
34733         * modules/unictype/property-sentence-terminal (Depends-on,
34734         configure.ac): Likewise.
34735         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34736         Likewise.
34737         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34738         * modules/unictype/property-terminal-punctuation (Depends-on,
34739         configure.ac): Likewise.
34740         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34741         Likewise.
34742         * modules/unictype/property-unassigned-code-value (Depends-on,
34743         configure.ac): Likewise.
34744         * modules/unictype/property-unified-ideograph (Depends-on,
34745         configure.ac): Likewise.
34746         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34747         Likewise.
34748         * modules/unictype/property-variation-selector (Depends-on,
34749         configure.ac): Likewise.
34750         * modules/unictype/property-white-space (Depends-on, configure.ac):
34751         Likewise.
34752         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34753         Likewise.
34754         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34755         Likewise.
34756         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34757         Likewise.
34758         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34759         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34760         Likewise.
34761
34762 2009-12-31  Bruno Haible  <bruno@clisp.org>
34763
34764         Remove unnecessary AC_C_INLINE invocation.
34765         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34766         since 2009-08-21.
34767
34768 2009-12-31  Jim Meyering  <meyering@redhat.com>
34769
34770         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34771         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34772         With this change, we can all remove the gpg_key_ID = ... definition
34773         from our respective cfg.mk files.
34774
34775         maint.mk: create announcement template in ~/, not in /tmp
34776         * top/maint.mk (emit_upload_commands): Adjust.
34777         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34778         Remove temporary file, .ci-msg.
34779
34780 2009-12-31  Eric Blake  <ebb9@byu.net>
34781
34782         link-warning: always build headers with link warnings
34783         * modules/arpa_inet (Makefile.am): Always build replacement
34784         header.
34785         * modules/ctype (Makefile.am): Likewise.
34786         * modules/dirent (Makefile.am): Likewise.
34787         * modules/inttypes (Makefile.am): Likewise.
34788         * modules/langinfo (Makefile.am): Likewise.
34789         * modules/locale (Makefile.am): Likewise.
34790         * modules/spawn (Makefile.am): Likewise.
34791         * modules/sys_file (Makefile.am): Likewise.
34792         * modules/sys_ioctl (Makefile.am): Likewise.
34793         * modules/sys_select (Makefile.am): Likewise.
34794         * modules/sys_socket (Makefile.am): Likewise.
34795         * modules/sys_times (Makefile.am): Likewise.
34796         * modules/sys_utsname (Makefile.am): Likewise.
34797         * modules/sys_wait (Makefile.am): Likewise.
34798         * modules/wchar (Makefile.am): Likewise.
34799         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34800         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34801         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34802         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34803         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34804         Likewise.
34805         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34806         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34807         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34808         Likewise.
34809         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34810         Likewise.
34811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34813         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34815         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34817         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34818         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34819         (gl_WCHAR_H_DEFAULTS): Likewise.
34820
34821 2009-12-31  Eric Blake  <ebb9@byu.net>
34822
34823         signal, spawn: use link warnings
34824         * lib/signal.in.h (sigset_t): Make unconditional.
34825         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34826         (sigpending, sigprocmask, sigaction): Add link warnings.
34827         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34828         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34829         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34830         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34831         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34832         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34833         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34834         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34835         (posix_spawn_file_actions_destroy)
34836         (posix_spawn_file_actions_addopen)
34837         (posix_spawn_file_actions_addclose)
34838         (posix_spawn_file_actions_adddup2): Likewise.
34839         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34840         * tests/test-signal.c (main): Enhance test.
34841
34842         spawn: improve wrapper support
34843         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34844         (gl_SPAWN_H_DEFAULTS): New defaults.
34845         * modules/spawn (Makefile.am): Substitute them.
34846         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34847         Only declare if missing or broken.
34848
34849         sys_times, sys_utsname: use include_next
34850         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34851         header.
34852         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34854         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34855         * modules/sys_times (Depends-on): Add include_next.
34856         (Makefile.am): Substitute additional values.
34857         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34858         * lib/sys_times.in.h (includes): Include native header, if
34859         available.
34860         * lib/sys_utsname.in.h (includes): Likewise.
34861         * tests/test-sys_times.c (main): Enhance test.
34862
34863         fdutimensat: revert prior patch
34864         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34865         utimens.h.
34866         Reported by Bruno Haible.
34867
34868 2009-12-30  Eric Blake  <ebb9@byu.net>
34869
34870         sys_wait: drop link-warning dependency
34871         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34872         link-warning efforts.
34873         * lib/sys_wait.in.h: Likewise.
34874
34875         fdutimensat: remove bogus dependency
34876         * modules/fdutimensat (Depends-on): Drop inline.
34877
34878         unistd: fix typo
34879         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34880
34881 2009-12-30  Bruno Haible  <bruno@clisp.org>
34882
34883         Fix compilation error with Solaris cc.
34884         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34885         * lib/unicase/u16-is-invariant.c: Likewise.
34886         * lib/unicase/u32-is-invariant.c: Likewise.
34887         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34888
34889 2009-12-30  Bruno Haible  <bruno@clisp.org>
34890
34891         Fix test crash.
34892         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34893         locales.
34894         Reported by Simon Josefsson <simon@josefsson.org>.
34895
34896 2009-12-30  Bruno Haible  <bruno@clisp.org>
34897
34898         Fix compilation error on most platforms.
34899         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34900         Reported by Simon Josefsson <simon@josefsson.org>
34901         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34902
34903 2009-12-30  Eric Blake  <ebb9@byu.net>
34904
34905         futimens, utimensat: work around ntfs-3g bug
34906         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34907         a ctime bug is present, and expand workaround to cover ntfs-3g.
34908         * lib/utimens.c (fdutimens, lutimens): Likewise.
34909         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34910         (validate_timespec): Adjust return value.
34911         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34912         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34913         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34914
34915 2009-12-29  Eric Blake  <ebb9@byu.net>
34916
34917         link-warning: make usage consistent
34918         * modules/ctype (Depends-on): Add link-warning.
34919         (Makefile.am): Update rules accordingly.
34920         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34921         * modules/locale (Depends-on, Makefile.am): Likewise.
34922         * modules/sys_file (Makefile.am): Likewise.
34923         * modules/getopt-posix (Makefile.am): Delete unused link warning
34924         efforts.
34925         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34926         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34927         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34928         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34929
34930         stdio: remove unused variables
34931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34933         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34934
34935         tests: test more substitute headers
34936         * modules/ctype-tests: New file.
34937         * modules/dirent-tests: Likewise.
34938         * modules/spawn-tests: Likewise.
34939         * modules/sys_file-tests: Likewise.
34940         * modules/sys_ioctl-tests: Likewise.
34941         * modules/sys_wait-tests: Likewise.
34942         * tests/test-ctype.c: Likewise.
34943         * tests/test-dirent.c: Likewise.
34944         * tests/test-spawn.c: Likewise.
34945         * tests/test-sys_file.c: Likewise.
34946         * tests/test-sys_ioctl.c: Likewise.
34947         * tests/test-sys_wait.c: Likewise.
34948         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34949         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34950         whether or not flock is in use.
34951
34952         tests: remove License section from module
34953         * modules/arpa_inet-tests: Remove unneeded section.
34954         * modules/byteswap-tests: Likewise.
34955         * modules/ceilf-tests: Likewise.
34956         * modules/ceill-tests: Likewise.
34957         * modules/crypto/des-tests: Likewise.
34958         * modules/crypto/gc-arcfour-tests: Likewise.
34959         * modules/crypto/gc-arctwo-tests: Likewise.
34960         * modules/crypto/gc-des-tests: Likewise.
34961         * modules/crypto/gc-hmac-md5-tests: Likewise.
34962         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34963         * modules/crypto/gc-md2-tests: Likewise.
34964         * modules/crypto/gc-md4-tests: Likewise.
34965         * modules/crypto/gc-md5-tests: Likewise.
34966         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34967         * modules/crypto/gc-rijndael-tests: Likewise.
34968         * modules/crypto/gc-sha1-tests: Likewise.
34969         * modules/crypto/gc-tests: Likewise.
34970         * modules/crypto/md2-tests: Likewise.
34971         * modules/crypto/md4-tests: Likewise.
34972         * modules/fcntl-h-tests: Likewise.
34973         * modules/floorf-tests: Likewise.
34974         * modules/floorl-tests: Likewise.
34975         * modules/frexp-nolibm-tests: Likewise.
34976         * modules/frexp-tests: Likewise.
34977         * modules/frexpl-nolibm-tests: Likewise.
34978         * modules/frexpl-tests: Likewise.
34979         * modules/getaddrinfo-tests: Likewise.
34980         * modules/inttypes-tests: Likewise.
34981         * modules/isfinite-tests: Likewise.
34982         * modules/isinf-tests: Likewise.
34983         * modules/ldexpl-tests: Likewise.
34984         * modules/locale-tests: Likewise.
34985         * modules/math-tests: Likewise.
34986         * modules/netdb-tests: Likewise.
34987         * modules/netinet_in-tests: Likewise.
34988         * modules/printf-frexp-tests: Likewise.
34989         * modules/printf-frexpl-tests: Likewise.
34990         * modules/priv-set-tests: Likewise.
34991         * modules/random_r-tests: Likewise.
34992         * modules/round-tests: Likewise.
34993         * modules/roundf-tests: Likewise.
34994         * modules/roundl-tests: Likewise.
34995         * modules/search-tests: Likewise.
34996         * modules/select-tests: Likewise.
34997         * modules/signal-tests: Likewise.
34998         * modules/stdbool-tests: Likewise.
34999         * modules/stddef-tests: Likewise.
35000         * modules/stdint-tests: Likewise.
35001         * modules/stdio-tests: Likewise.
35002         * modules/stdlib-tests: Likewise.
35003         * modules/string-tests: Likewise.
35004         * modules/strings-tests: Likewise.
35005         * modules/sys_select-tests: Likewise.
35006         * modules/sys_socket-tests: Likewise.
35007         * modules/sys_stat-tests: Likewise.
35008         * modules/sys_time-tests: Likewise.
35009         * modules/sys_utsname-tests: Likewise.
35010         * modules/sysexits-tests: Likewise.
35011         * modules/time-tests: Likewise.
35012         * modules/trunc-tests: Likewise.
35013         * modules/truncf-tests: Likewise.
35014         * modules/truncl-tests: Likewise.
35015         * modules/tsearch-tests: Likewise.
35016         * modules/unistd-tests: Likewise.
35017         * modules/wchar-tests: Likewise.
35018         * modules/wctype-tests: Likewise.
35019
35020         tests: fix license on several tests
35021         * tests/test-des.c: Update to GPLv3+.
35022         * tests/test-flock.c: Likewise.
35023         * tests/test-fsync.c: Likewise.
35024         * tests/test-futimens.h: Likewise.
35025         * tests/test-gc-arcfour.c: Likewise.
35026         * tests/test-gc-arctwo.c: Likewise.
35027         * tests/test-gc-des.c: Likewise.
35028         * tests/test-gc-hmac-md5.c: Likewise.
35029         * tests/test-gc-hmac-sha1.c: Likewise.
35030         * tests/test-gc-md2.c: Likewise.
35031         * tests/test-gc-md4.c: Likewise.
35032         * tests/test-gc-md5.c: Likewise.
35033         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35034         * tests/test-gc-rijndael.c: Likewise.
35035         * tests/test-gc-sha1.c: Likewise.
35036         * tests/test-gc.c: Likewise.
35037         * tests/test-getcwd.c: Likewise.
35038         * tests/test-link.c: Likewise.
35039         * tests/test-link.h: Likewise.
35040         * tests/test-lutimens.h: Likewise.
35041         * tests/test-md2.c: Likewise.
35042         * tests/test-md4.c: Likewise.
35043         * tests/test-mkdir.h: Likewise.
35044         * tests/test-rename.c: Likewise.
35045         * tests/test-rename.h: Likewise.
35046         * tests/test-safe-alloc.c: Likewise.
35047         * tests/test-utimens-common.h: Likewise.
35048         * tests/test-utimens.h: Likewise.
35049
35050         maint: sync license texts
35051         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35052         * doc/gpl-3.0.texi: Revert copyright year update.
35053         * doc/lgpl-3.0.texi: Likewise.
35054
35055 2009-12-29  Jim Meyering  <meyering@redhat.com>
35056
35057         update nearly all FSF copyright year lists to include 2009
35058         The files named by the following are exempted:
35059             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35060               test -f "$dst" && { echo "$dst"; continue; }
35061               test -d "$dst" || continue
35062               echo "$dst"/$(basename "$src")
35063             done > exempt
35064             git ls-files tests/unictype >> exempt
35065         In the remaining files, convert to all-interval notation if
35066         - there is already at least one year interval like 2000-2003
35067         - the file is maintained by me
35068         - the file is in lib/uni*/, where that style already prevails
35069         Otherwise, use update-copyright's default.
35070
35071 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35072         and Eric Blake  <ebb9@byu.net>
35073
35074         tests: don't require debug system() to pass
35075         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35076         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35077         * tests/test-unlink.h (test_unlink_func): Likewise.
35078         * tests/test-fstatat.c (main): ...into callers.
35079         * tests/test-lstat.c (main): Likewise.
35080         * tests/test-rmdir.c (main): Likewise.
35081         * tests/test-unlink.c (main): Likewise.
35082         * tests/test-unlinkat.c (main): Likewise.
35083         * tests/test-areadlink-with-size.c (main): Don't require a
35084         debug-only system call to pass, aiding cross-testing to mingw.
35085         * tests/test-areadlink.c (main): Likewise.
35086         * tests/test-areadlinkat-with-size.c (main): Likewise.
35087         * tests/test-areadlinkat.c (main): Likewise.
35088         * tests/test-canonicalize-lgpl.c (main): Likewise.
35089         * tests/test-canonicalize.c (main): Likewise.
35090         * tests/test-chown.c (main): Likewise.
35091         * tests/test-fchownat.c (main): Likewise.
35092         * tests/test-lchown.c (main): Likewise.
35093         * tests/test-fdutimensat.c (main): Likewise.
35094         * tests/test-futimens.c (main): Likewise.
35095         * tests/test-link.c (main): Likewise.
35096         * tests/test-linkat.c (main): Likewise.
35097         * tests/test-mkdir.c (main): Likewise.
35098         * tests/test-mkdirat.c (main): Likewise.
35099         * tests/test-mkfifo.c (main): Likewise.
35100         * tests/test-mkfifoat.c (main): Likewise.
35101         * tests/test-mknod.c (main): Likewise.
35102         * tests/test-readlink.c (main): Likewise.
35103         * tests/test-remove.c (main): Likewise.
35104         * tests/test-rename.c (main): Likewise.
35105         * tests/test-renameat.c (main): Likewise.
35106         * tests/test-symlink.c (main): Likewise.
35107         * tests/test-symlinkat.c (main): Likewise.
35108         * tests/test-utimens.c (main): Likewise.
35109         * tests/test-utimensat.c (main): Likewise.
35110
35111 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35112
35113         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35114         on $(UNUSED_PARAMETER_H) to avoid build failure.
35115
35116 2009-12-28  Jim Meyering  <meyering@redhat.com>
35117
35118         update-copyright: you may specify a max. line length other than 72
35119         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35120
35121         maint: use consistent FSF copyright line syntax
35122         * lib/posixtm.c: Add missing comma in FSF copyright line.
35123         * lib/posixtm.h: Likewise.
35124         * lib/getugroups.c: Add missing ", Inc.".
35125
35126         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35127         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35128         FSF copyright line.  Remove trailing blanks.
35129
35130 2009-12-28  Eric Blake  <ebb9@byu.net>
35131
35132         test-dup2: reduce dependencies
35133         * modules/cloexec (Configure.ac): Set witness.
35134         * modules/dup2-tests (Depends-on): Drop cloexec.
35135         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35136         not present.
35137         Suggested by Bruno Haible.
35138
35139 2009-12-26  Bruno Haible  <bruno@clisp.org>
35140
35141         Remove an unneeded dependency.
35142         * modules/fseterr (Depends-on): Remove dup2.
35143
35144 2009-12-26  Eric Blake  <ebb9@byu.net>
35145
35146         tests: use macros.h in more places
35147         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35148         (ASSERT_STREAM): Provide default of stderr.
35149         * tests/test-dirent-safer.c: Include macros.h, using alternate
35150         stream for assertions.
35151         * tests/test-dup-safer.c: Likewise.
35152         * tests/test-freopen-safer.c: Likewise.
35153         * tests/test-getopt.c: Likewise.
35154         * tests/test-openat-safer.c: Likewise.
35155         * tests/test-pipe.c: Likewise.
35156         * tests/test-popen-safer.c: Likewise.
35157         * modules/dirent-safer-tests (Files): Include macros.h.
35158         * modules/unistd-safer-tests (Files): Likewise.
35159         * modules/freopen-safer-tests (Files): Likewise.
35160         * modules/getopt-posix-tests (Files): Likewise.
35161         * modules/openat-safer-tests (Files): Likewise.
35162         * modules/pipe-tests (Files): Likewise.
35163
35164 2009-12-26  Bruno Haible  <bruno@clisp.org>
35165
35166         javacomp: Portability fix.
35167         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35168         that it also works on Solaris.
35169
35170 2009-12-26  Bruno Haible  <bruno@clisp.org>
35171
35172         localename: Fix storage allocation of gl_locale_name_thread's result.
35173         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35174         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35175         all platforms that have 'uselocale'.
35176         (gl_locale_name_thread_unsafe): New function, extracted from
35177         gl_locale_name_thread.
35178         (gl_locale_name_thread): Call struniq on all platforms that have
35179         'uselocale'.
35180         * tests/test-localename.c (test_locale_name_thread): Check that the
35181         resulting strings are permanently allocated.
35182         * modules/localename-tests (Depends-on): Add strdup.
35183
35184 2009-12-26  Bruno Haible  <bruno@clisp.org>
35185
35186         * tests/test-localename.c (categories): Fill in the strings.
35187
35188 2009-12-26  Jim Meyering  <meyering@redhat.com>
35189
35190         isdir: complete the removal of m4/isdir.m4
35191         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35192
35193         isdir: clean up, since at least grep still uses it
35194         * lib/isdir.c: Include "isdir.h".
35195         (S_ISDIR): Remove now-unneeded definition.
35196         * modules/isdir (Files): Add lib/isdir.h.
35197         * lib/isdir.h: New file, with declaration.
35198         * m4/isdir.m4: Remove file -- unneeded.
35199
35200 2009-12-25  Bruno Haible  <bruno@clisp.org>
35201
35202         selinux-h: Make generated .h files standalone.
35203         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35204         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35205         * lib/se-selinux.in.h: Likewise.
35206         * modules/selinux-h (Depends-on): Add unused-parameter.
35207         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35208         selinux/selinux.h and selinux/context.h.
35209         Suggested by Eric Blake.
35210
35211 2009-12-25  Bruno Haible  <bruno@clisp.org>
35212
35213         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35214         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35215         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35216         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35217         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35218
35219 2009-12-24  Bruno Haible  <bruno@clisp.org>
35220
35221         openat: Fix warning.
35222         * lib/openat-proc.c: Include <unistd.h>.
35223
35224 2009-12-24  Bruno Haible  <bruno@clisp.org>
35225
35226         New module 'unused-parameter'.
35227         * build-aux/unused-parameter.h: New file, extracted from earlier
35228         gnulib-common.m4.
35229         * modules/unused-parameter: New file.
35230         * lib/unistr.h: Include unused-parameter.h.
35231         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35232         _GL_UNUSED.
35233         * modules/unistr/base (Depends-on): Add unused-parameter.
35234
35235 2009-12-24  Bruno Haible  <bruno@clisp.org>
35236
35237         Add missing dependencies to 'extensions' module.
35238         * m4/extensions.m4: Add comment.
35239         * modules/accept4 (Depends-on): Add extensions.
35240         * modules/dup3 (Depends-on): Likewise.
35241         * modules/fcntl (Depends-on): Likewise.
35242         * modules/futimens (Depends-on): Likewise.
35243         * modules/mknod (Depends-on): Likewise.
35244         * modules/pipe2 (Depends-on): Likewise.
35245         * modules/stat-time (Depends-on): Likewise.
35246         * modules/strcasestr-simple (Depends-on): Likewise.
35247         * modules/strsignal (Depends-on): Likewise.
35248         * modules/utimensat (Depends-on): Likewise.
35249         * modules/localcharset (Depends-on): Likewise. Needed because of
35250         gl_FCNTL_O_FLAGS.
35251         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35252         AC_TYPE_MBSTATE_T.
35253         * modules/wcsnrtombs (Depends-on): Likewise.
35254         * modules/wcsrtombs (Depends-on): Likewise.
35255
35256 2009-12-24  Bruno Haible  <bruno@clisp.org>
35257
35258         binary-io: Avoid gcc warning due to SET_BINARY.
35259         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35260         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35261
35262 2009-12-24  Bruno Haible  <bruno@clisp.org>
35263
35264         Avoid future namespace pollution on glibc systems.
35265         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35266         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35267         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35268         glibc systems.
35269
35270 2009-12-24  Bruno Haible  <bruno@clisp.org>
35271
35272         Refactor common macros used in tests.
35273         * tests/macros.h: New file.
35274         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35275         and/or <stdlib.h>, if appropriate.
35276         (ASSERT, SIZEOF): Remove macros.
35277         * tests/test-areadlink-with-size.c: Likewise.
35278         * tests/test-areadlinkat.c: Likewise.
35279         * tests/test-areadlinkat-with-size.c: Likewise.
35280         * tests/test-argmatch.c: Likewise.
35281         * tests/test-argv-iter.c: Likewise.
35282         * tests/test-array-mergesort.c: Likewise.
35283         * tests/test-array_list.c: Likewise.
35284         * tests/test-array_oset.c: Likewise.
35285         * tests/test-avltree_list.c: Likewise.
35286         * tests/test-avltree_oset.c: Likewise.
35287         * tests/test-avltreehash_list.c: Likewise.
35288         * tests/test-base64.c: Likewise.
35289         * tests/test-binary-io.c: Likewise.
35290         * tests/test-bitrotate.c: Likewise.
35291         * tests/test-btowc.c: Likewise.
35292         * tests/test-byteswap.c: Likewise.
35293         * tests/test-c-ctype.c: Likewise.
35294         * tests/test-c-stack.c: Likewise.
35295         * tests/test-c-strcasecmp.c: Likewise.
35296         * tests/test-c-strcasestr.c: Likewise.
35297         * tests/test-c-strncasecmp.c: Likewise.
35298         * tests/test-c-strstr.c: Likewise.
35299         * tests/test-canonicalize-lgpl.c: Likewise.
35300         * tests/test-canonicalize.c: Likewise.
35301         * tests/test-carray_list.c: Likewise.
35302         * tests/test-ceilf1.c: Likewise.
35303         * tests/test-ceilf2.c: Likewise.
35304         * tests/test-ceill.c: Likewise.
35305         * tests/test-chown.c: Likewise.
35306         * tests/test-cloexec.c: Likewise.
35307         * tests/test-copy-acl.c: Likewise.
35308         * tests/test-copy-file.c: Likewise.
35309         * tests/test-count-one-bits.c: Likewise.
35310         * tests/test-dprintf-posix.c: Likewise.
35311         * tests/test-dup2.c: Likewise.
35312         * tests/test-dup3.c: Likewise.
35313         * tests/test-duplocale.c: Likewise.
35314         * tests/test-fbufmode.c: Likewise.
35315         * tests/test-fchdir.c: Likewise.
35316         * tests/test-fchownat.c: Likewise.
35317         * tests/test-fcntl-safer.c: Likewise.
35318         * tests/test-fcntl.c: Likewise.
35319         * tests/test-fdopendir.c: Likewise.
35320         * tests/test-fdutimensat.c: Likewise.
35321         * tests/test-fflush2.c: Likewise.
35322         * tests/test-file-has-acl.c: Likewise.
35323         * tests/test-filevercmp.c: Likewise.
35324         * tests/test-flock.c: Likewise.
35325         * tests/test-floorf1.c: Likewise.
35326         * tests/test-floorf2.c: Likewise.
35327         * tests/test-floorl.c: Likewise.
35328         * tests/test-fnmatch.c: Likewise.
35329         * tests/test-fopen.h: Likewise.
35330         * tests/test-fpending.c: Likewise.
35331         * tests/test-fprintf-posix.c: Likewise.
35332         * tests/test-fpurge.c: Likewise.
35333         * tests/test-freadable.c: Likewise.
35334         * tests/test-freadahead.c: Likewise.
35335         * tests/test-freading.c: Likewise.
35336         * tests/test-freadptr.c: Likewise.
35337         * tests/test-freadptr2.c: Likewise.
35338         * tests/test-freadseek.c: Likewise.
35339         * tests/test-freopen.c: Likewise.
35340         * tests/test-frexp.c: Likewise.
35341         * tests/test-frexpl.c: Likewise.
35342         * tests/test-fseek.c: Likewise.
35343         * tests/test-fseeko.c: Likewise.
35344         * tests/test-fstatat.c: Likewise.
35345         * tests/test-fstrcmp.c: Likewise.
35346         * tests/test-fsync.c: Likewise.
35347         * tests/test-ftell.c: Likewise.
35348         * tests/test-ftello.c: Likewise.
35349         * tests/test-func.c: Likewise.
35350         * tests/test-futimens.c: Likewise.
35351         * tests/test-fwritable.c: Likewise.
35352         * tests/test-fwriting.c: Likewise.
35353         * tests/test-getcwd.c: Likewise.
35354         * tests/test-getdate.c: Likewise.
35355         * tests/test-getdelim.c: Likewise.
35356         * tests/test-getdtablesize.c: Likewise.
35357         * tests/test-getgroups.c: Likewise.
35358         * tests/test-getline.c: Likewise.
35359         * tests/test-getndelim2.c: Likewise.
35360         * tests/test-glob.c: Likewise.
35361         * tests/test-hash.c: Likewise.
35362         * tests/test-i-ring.c: Likewise.
35363         * tests/test-iconv-utf.c: Likewise.
35364         * tests/test-iconv.c: Likewise.
35365         * tests/test-idpriv-drop.c: Likewise.
35366         * tests/test-idpriv-droptemp.c: Likewise.
35367         * tests/test-inet_ntop.c: Likewise.
35368         * tests/test-inet_pton.c: Likewise.
35369         * tests/test-isblank.c: Likewise.
35370         * tests/test-isfinite.c: Likewise.
35371         * tests/test-isinf.c: Likewise.
35372         * tests/test-isnan.c: Likewise.
35373         * tests/test-isnand.h: Likewise.
35374         * tests/test-isnanf.h: Likewise.
35375         * tests/test-isnanl.h: Likewise.
35376         * tests/test-lchown.c: Likewise.
35377         * tests/test-ldexpl.c: Likewise.
35378         * tests/test-link.c: Likewise.
35379         * tests/test-linkat.c: Likewise.
35380         * tests/test-linked_list.c: Likewise.
35381         * tests/test-linkedhash_list.c: Likewise.
35382         * tests/test-localename.c: Likewise.
35383         * tests/test-lseek.c: Likewise.
35384         * tests/test-lstat.c: Likewise.
35385         * tests/test-mbmemcasecmp.c: Likewise.
35386         * tests/test-mbmemcasecoll.c: Likewise.
35387         * tests/test-mbrtowc.c: Likewise.
35388         * tests/test-mbscasecmp.c: Likewise.
35389         * tests/test-mbscasestr1.c: Likewise.
35390         * tests/test-mbscasestr2.c: Likewise.
35391         * tests/test-mbscasestr3.c: Likewise.
35392         * tests/test-mbscasestr4.c: Likewise.
35393         * tests/test-mbschr.c: Likewise.
35394         * tests/test-mbscspn.c: Likewise.
35395         * tests/test-mbsinit.c: Likewise.
35396         * tests/test-mbsncasecmp.c: Likewise.
35397         * tests/test-mbsnrtowcs.c: Likewise.
35398         * tests/test-mbspbrk.c: Likewise.
35399         * tests/test-mbspcasecmp.c: Likewise.
35400         * tests/test-mbsrchr.c: Likewise.
35401         * tests/test-mbsrtowcs.c: Likewise.
35402         * tests/test-mbsspn.c: Likewise.
35403         * tests/test-mbsstr1.c: Likewise.
35404         * tests/test-mbsstr2.c: Likewise.
35405         * tests/test-mbsstr3.c: Likewise.
35406         * tests/test-memchr.c: Likewise.
35407         * tests/test-memchr2.c: Likewise.
35408         * tests/test-memcmp.c: Likewise.
35409         * tests/test-memmem.c: Likewise.
35410         * tests/test-memrchr.c: Likewise.
35411         * tests/test-mkdir.c: Likewise.
35412         * tests/test-mkdirat.c: Likewise.
35413         * tests/test-mkfifo.c: Likewise.
35414         * tests/test-mkfifoat.c: Likewise.
35415         * tests/test-mknod.c: Likewise.
35416         * tests/test-nanosleep.c: Likewise.
35417         * tests/test-nl_langinfo.c: Likewise.
35418         * tests/test-obstack-printf.c: Likewise.
35419         * tests/test-open.c: Likewise.
35420         * tests/test-openat.c: Likewise.
35421         * tests/test-pipe-filter-gi1.c: Likewise.
35422         * tests/test-pipe-filter-gi2-main.c: Likewise.
35423         * tests/test-pipe-filter-ii1.c: Likewise.
35424         * tests/test-pipe-filter-ii2-main.c: Likewise.
35425         * tests/test-pipe2.c: Likewise.
35426         * tests/test-popen.h: Likewise.
35427         * tests/test-posixtm.c: Likewise.
35428         * tests/test-pread.c: Likewise.
35429         * tests/test-printf-frexp.c: Likewise.
35430         * tests/test-printf-frexpl.c: Likewise.
35431         * tests/test-printf-posix.c: Likewise.
35432         * tests/test-priv-set.c: Likewise.
35433         * tests/test-quotearg.c: Likewise.
35434         * tests/test-random_r.c: Likewise.
35435         * tests/test-rawmemchr.c: Likewise.
35436         * tests/test-rbtree_list.c: Likewise.
35437         * tests/test-rbtree_oset.c: Likewise.
35438         * tests/test-rbtreehash_list.c: Likewise.
35439         * tests/test-readlink.c: Likewise.
35440         * tests/test-remove.c: Likewise.
35441         * tests/test-rename.c: Likewise.
35442         * tests/test-renameat.c: Likewise.
35443         * tests/test-rmdir.c: Likewise.
35444         * tests/test-round1.c: Likewise.
35445         * tests/test-roundf1.c: Likewise.
35446         * tests/test-roundl.c: Likewise.
35447         * tests/test-safe-alloc.c: Likewise.
35448         * tests/test-sameacls.c: Likewise.
35449         * tests/test-set-mode-acl.c: Likewise.
35450         * tests/test-setenv.c: Likewise.
35451         * tests/test-sigaction.c: Likewise.
35452         * tests/test-signbit.c: Likewise.
35453         * tests/test-sleep.c: Likewise.
35454         * tests/test-snprintf-posix.c: Likewise.
35455         * tests/test-snprintf.c: Likewise.
35456         * tests/test-sprintf-posix.c: Likewise.
35457         * tests/test-stat-time.c: Likewise.
35458         * tests/test-stat.c: Likewise.
35459         * tests/test-strcasestr.c: Likewise.
35460         * tests/test-strchrnul.c: Likewise.
35461         * tests/test-strerror.c: Likewise.
35462         * tests/test-striconv.c: Likewise.
35463         * tests/test-striconveh.c: Likewise.
35464         * tests/test-striconveha.c: Likewise.
35465         * tests/test-strsignal.c: Likewise.
35466         * tests/test-strstr.c: Likewise.
35467         * tests/test-strtod.c: Likewise.
35468         * tests/test-strverscmp.c: Likewise.
35469         * tests/test-symlink.c: Likewise.
35470         * tests/test-symlinkat.c: Likewise.
35471         * tests/test-trunc1.c: Likewise.
35472         * tests/test-trunc2.c: Likewise.
35473         * tests/test-truncf1.c: Likewise.
35474         * tests/test-truncf2.c: Likewise.
35475         * tests/test-truncl.c: Likewise.
35476         * tests/test-uname.c: Likewise.
35477         * tests/test-unlink.c: Likewise.
35478         * tests/test-unlinkat.c: Likewise.
35479         * tests/test-unsetenv.c: Likewise.
35480         * tests/test-usleep.c: Likewise.
35481         * tests/test-utimens.c: Likewise.
35482         * tests/test-utimensat.c: Likewise.
35483         * tests/test-vasnprintf-posix.c: Likewise.
35484         * tests/test-vasnprintf-posix2.c: Likewise.
35485         * tests/test-vasnprintf.c: Likewise.
35486         * tests/test-vasprintf-posix.c: Likewise.
35487         * tests/test-vasprintf.c: Likewise.
35488         * tests/test-vdprintf-posix.c: Likewise.
35489         * tests/test-vfprintf-posix.c: Likewise.
35490         * tests/test-vprintf-posix.c: Likewise.
35491         * tests/test-vsnprintf-posix.c: Likewise.
35492         * tests/test-vsnprintf.c: Likewise.
35493         * tests/test-vsprintf-posix.c: Likewise.
35494         * tests/test-wcrtomb.c: Likewise.
35495         * tests/test-wcsnrtombs.c: Likewise.
35496         * tests/test-wcsrtombs.c: Likewise.
35497         * tests/test-wctype.c: Likewise.
35498         * tests/test-wcwidth.c: Likewise.
35499         * tests/test-xfprintf-posix.c: Likewise.
35500         * tests/test-xmemdup0.c: Likewise.
35501         * tests/test-xprintf-posix.c: Likewise.
35502         * tests/test-xvasprintf.c: Likewise.
35503         * tests/unicase/test-locale-language.c: Likewise.
35504         * tests/unicase/test-mapping-part1.h: Likewise.
35505         * tests/unicase/test-predicate-part1.h: Likewise.
35506         * tests/unicase/test-u8-casecmp.c: Likewise.
35507         * tests/unicase/test-u8-casecoll.c: Likewise.
35508         * tests/unicase/test-u8-casefold.c: Likewise.
35509         * tests/unicase/test-u8-is-cased.c: Likewise.
35510         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35511         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35512         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35513         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35514         * tests/unicase/test-u8-tolower.c: Likewise.
35515         * tests/unicase/test-u8-totitle.c: Likewise.
35516         * tests/unicase/test-u8-toupper.c: Likewise.
35517         * tests/unicase/test-u16-casecmp.c: Likewise.
35518         * tests/unicase/test-u16-casecoll.c: Likewise.
35519         * tests/unicase/test-u16-casefold.c: Likewise.
35520         * tests/unicase/test-u16-is-cased.c: Likewise.
35521         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35522         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35523         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35524         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35525         * tests/unicase/test-u16-tolower.c: Likewise.
35526         * tests/unicase/test-u16-totitle.c: Likewise.
35527         * tests/unicase/test-u16-toupper.c: Likewise.
35528         * tests/unicase/test-u32-casecmp.c: Likewise.
35529         * tests/unicase/test-u32-casecoll.c: Likewise.
35530         * tests/unicase/test-u32-casefold.c: Likewise.
35531         * tests/unicase/test-u32-is-cased.c: Likewise.
35532         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35533         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35534         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35535         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35536         * tests/unicase/test-u32-tolower.c: Likewise.
35537         * tests/unicase/test-u32-totitle.c: Likewise.
35538         * tests/unicase/test-u32-toupper.c: Likewise.
35539         * tests/unicase/test-ulc-casecmp.c: Likewise.
35540         * tests/unicase/test-ulc-casecoll.c: Likewise.
35541         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35542         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35543         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35544         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35545         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35546         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35547         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35548         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35549         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35550         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35551         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35552         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35553         * tests/unictype/test-bidi_byname.c: Likewise.
35554         * tests/unictype/test-bidi_name.c: Likewise.
35555         * tests/unictype/test-bidi_of.c: Likewise.
35556         * tests/unictype/test-bidi_test.c: Likewise.
35557         * tests/unictype/test-block_list.c: Likewise.
35558         * tests/unictype/test-block_of.c: Likewise.
35559         * tests/unictype/test-block_test.c: Likewise.
35560         * tests/unictype/test-categ_and.c: Likewise.
35561         * tests/unictype/test-categ_and_not.c: Likewise.
35562         * tests/unictype/test-categ_byname.c: Likewise.
35563         * tests/unictype/test-categ_name.c: Likewise.
35564         * tests/unictype/test-categ_none.c: Likewise.
35565         * tests/unictype/test-categ_of.c: Likewise.
35566         * tests/unictype/test-categ_or.c: Likewise.
35567         * tests/unictype/test-categ_test_withtable.c: Likewise.
35568         * tests/unictype/test-combining.c: Likewise.
35569         * tests/unictype/test-decdigit.c: Likewise.
35570         * tests/unictype/test-digit.c: Likewise.
35571         * tests/unictype/test-mirror.c: Likewise.
35572         * tests/unictype/test-numeric.c: Likewise.
35573         * tests/unictype/test-pr_byname.c: Likewise.
35574         * tests/unictype/test-pr_test.c: Likewise.
35575         * tests/unictype/test-predicate-part1.h: Likewise.
35576         * tests/unictype/test-scripts.c: Likewise.
35577         * tests/unictype/test-sy_c_ident.c: Likewise.
35578         * tests/unictype/test-sy_java_ident.c: Likewise.
35579         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35580         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35581         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35582         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35583         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35584         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35585         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35586         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35587         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35588         * tests/uninorm/test-compat-decomposition.c: Likewise.
35589         * tests/uninorm/test-composition.c: Likewise.
35590         * tests/uninorm/test-decomposing-form.c: Likewise.
35591         * tests/uninorm/test-decomposition.c: Likewise.
35592         * tests/uninorm/test-u8-nfc.c: Likewise.
35593         * tests/uninorm/test-u8-nfd.c: Likewise.
35594         * tests/uninorm/test-u8-nfkc.c: Likewise.
35595         * tests/uninorm/test-u8-nfkd.c: Likewise.
35596         * tests/uninorm/test-u8-normcmp.c: Likewise.
35597         * tests/uninorm/test-u8-normcoll.c: Likewise.
35598         * tests/uninorm/test-u16-nfc.c: Likewise.
35599         * tests/uninorm/test-u16-nfd.c: Likewise.
35600         * tests/uninorm/test-u16-nfkc.c: Likewise.
35601         * tests/uninorm/test-u16-nfkd.c: Likewise.
35602         * tests/uninorm/test-u16-normcmp.c: Likewise.
35603         * tests/uninorm/test-u16-normcoll.c: Likewise.
35604         * tests/uninorm/test-u32-nfc.c: Likewise.
35605         * tests/uninorm/test-u32-nfd.c: Likewise.
35606         * tests/uninorm/test-u32-nfkc.c: Likewise.
35607         * tests/uninorm/test-u32-nfkd.c: Likewise.
35608         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35609         * tests/uninorm/test-u32-normcmp.c: Likewise.
35610         * tests/uninorm/test-u32-normcoll.c: Likewise.
35611         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35612         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35613         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35614         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35615         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35616         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35617         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35618         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35619         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35620         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35621         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35622         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35623         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35624         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35625         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35626         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35627         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35628         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35629         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35630         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35631         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35632         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35633         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35634         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35635         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35636         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35637         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35638         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35639         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35640         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35641         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35642         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35643         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35644         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35645         * tests/uniwidth/test-u8-width.c: Likewise.
35646         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35647         * tests/uniwidth/test-u16-width.c: Likewise.
35648         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35649         * tests/uniwidth/test-u32-width.c: Likewise.
35650         * tests/uniwidth/test-uc_width.c: Likewise.
35651         * tests/uniwidth/test-uc_width2.c: Likewise.
35652         * modules/acl-tests (Files): Add tests/macros.h.
35653         * modules/areadlink-tests (Files): Likewise.
35654         * modules/areadlink-with-size-tests (Files): Likewise.
35655         * modules/areadlinkat-tests (Files): Likewise.
35656         * modules/areadlinkat-with-size-tests (Files): Likewise.
35657         * modules/argmatch-tests (Files): Likewise.
35658         * modules/argv-iter-tests (Files): Likewise.
35659         * modules/array-list-tests (Files): Likewise.
35660         * modules/array-mergesort-tests (Files): Likewise.
35661         * modules/array-oset-tests (Files): Likewise.
35662         * modules/avltree-list-tests (Files): Likewise.
35663         * modules/avltree-oset-tests (Files): Likewise.
35664         * modules/avltreehash-list-tests (Files): Likewise.
35665         * modules/base64-tests (Files): Likewise.
35666         * modules/binary-io-tests (Files): Likewise.
35667         * modules/bitrotate-tests (Files): Likewise.
35668         * modules/btowc-tests (Files): Likewise.
35669         * modules/byteswap-tests (Files): Likewise.
35670         * modules/c-ctype-tests (Files): Likewise.
35671         * modules/c-stack-tests (Files): Likewise.
35672         * modules/c-strcase-tests (Files): Likewise.
35673         * modules/c-strcasestr-tests (Files): Likewise.
35674         * modules/c-strstr-tests (Files): Likewise.
35675         * modules/canonicalize-lgpl-tests (Files): Likewise.
35676         * modules/canonicalize-tests (Files): Likewise.
35677         * modules/carray-list-tests (Files): Likewise.
35678         * modules/ceilf-tests (Files): Likewise.
35679         * modules/ceill-tests (Files): Likewise.
35680         * modules/chown-tests (Files): Likewise.
35681         * modules/cloexec-tests (Files): Likewise.
35682         * modules/copy-file-tests (Files): Likewise.
35683         * modules/count-one-bits-tests (Files): Likewise.
35684         * modules/dprintf-posix-tests (Files): Likewise.
35685         * modules/dup2-tests (Files): Likewise.
35686         * modules/dup3-tests (Files): Likewise.
35687         * modules/duplocale-tests (Files): Likewise.
35688         * modules/fbufmode-tests (Files): Likewise.
35689         * modules/fchdir-tests (Files): Likewise.
35690         * modules/fcntl-safer-tests (Files): Likewise.
35691         * modules/fcntl-tests (Files): Likewise.
35692         * modules/fdopendir-tests (Files): Likewise.
35693         * modules/fdutimensat-tests (Files): Likewise.
35694         * modules/fflush-tests (Files): Likewise.
35695         * modules/filevercmp-tests (Files): Likewise.
35696         * modules/flock-tests (Files): Likewise.
35697         * modules/floorf-tests (Files): Likewise.
35698         * modules/floorl-tests (Files): Likewise.
35699         * modules/fnmatch-tests (Files): Likewise.
35700         * modules/fopen-safer-tests (Files): Likewise.
35701         * modules/fopen-tests (Files): Likewise.
35702         * modules/fpending-tests (Files): Likewise.
35703         * modules/fprintf-posix-tests (Files): Likewise.
35704         * modules/fpurge-tests (Files): Likewise.
35705         * modules/freadable-tests (Files): Likewise.
35706         * modules/freadahead-tests (Files): Likewise.
35707         * modules/freading-tests (Files): Likewise.
35708         * modules/freadptr-tests (Files): Likewise.
35709         * modules/freadseek-tests (Files): Likewise.
35710         * modules/freopen-tests (Files): Likewise.
35711         * modules/frexp-nolibm-tests (Files): Likewise.
35712         * modules/frexp-tests (Files): Likewise.
35713         * modules/frexpl-nolibm-tests (Files): Likewise.
35714         * modules/frexpl-tests (Files): Likewise.
35715         * modules/fseek-tests (Files): Likewise.
35716         * modules/fseeko-tests (Files): Likewise.
35717         * modules/fstrcmp-tests (Files): Likewise.
35718         * modules/fsync-tests (Files): Likewise.
35719         * modules/ftell-tests (Files): Likewise.
35720         * modules/ftello-tests (Files): Likewise.
35721         * modules/func-tests (Files): Likewise.
35722         * modules/futimens-tests (Files): Likewise.
35723         * modules/fwritable-tests (Files): Likewise.
35724         * modules/fwriting-tests (Files): Likewise.
35725         * modules/getcwd-tests (Files): Likewise.
35726         * modules/getdate-tests (Files): Likewise.
35727         * modules/getdelim-tests (Files): Likewise.
35728         * modules/getdtablesize-tests (Files): Likewise.
35729         * modules/getgroups-tests (Files): Likewise.
35730         * modules/getline-tests (Files): Likewise.
35731         * modules/getndelim2-tests (Files): Likewise.
35732         * modules/glob-tests (Files): Likewise.
35733         * modules/hash-tests (Files): Likewise.
35734         * modules/i-ring-tests (Files): Likewise.
35735         * modules/iconv-tests (Files): Likewise.
35736         * modules/iconv_open-utf-tests (Files): Likewise.
35737         * modules/idpriv-drop-tests (Files): Likewise.
35738         * modules/idpriv-droptemp-tests (Files): Likewise.
35739         * modules/inet_ntop-tests (Files): Likewise.
35740         * modules/inet_pton-tests (Files): Likewise.
35741         * modules/isblank-tests (Files): Likewise.
35742         * modules/isfinite-tests (Files): Likewise.
35743         * modules/isinf-tests (Files): Likewise.
35744         * modules/isnan-tests (Files): Likewise.
35745         * modules/isnand-nolibm-tests (Files): Likewise.
35746         * modules/isnand-tests (Files): Likewise.
35747         * modules/isnanf-nolibm-tests (Files): Likewise.
35748         * modules/isnanf-tests (Files): Likewise.
35749         * modules/isnanl-nolibm-tests (Files): Likewise.
35750         * modules/isnanl-tests (Files): Likewise.
35751         * modules/lchown-tests (Files): Likewise.
35752         * modules/ldexpl-tests (Files): Likewise.
35753         * modules/link-tests (Files): Likewise.
35754         * modules/linkat-tests (Files): Likewise.
35755         * modules/linked-list-tests (Files): Likewise.
35756         * modules/linkedhash-list-tests (Files): Likewise.
35757         * modules/localename-tests (Files): Likewise.
35758         * modules/lseek-tests (Files): Likewise.
35759         * modules/lstat-tests (Files): Likewise.
35760         * modules/mbmemcasecmp-tests (Files): Likewise.
35761         * modules/mbmemcasecoll-tests (Files): Likewise.
35762         * modules/mbrtowc-tests (Files): Likewise.
35763         * modules/mbscasecmp-tests (Files): Likewise.
35764         * modules/mbscasestr-tests (Files): Likewise.
35765         * modules/mbschr-tests (Files): Likewise.
35766         * modules/mbscspn-tests (Files): Likewise.
35767         * modules/mbsinit-tests (Files): Likewise.
35768         * modules/mbsncasecmp-tests (Files): Likewise.
35769         * modules/mbsnrtowcs-tests (Files): Likewise.
35770         * modules/mbspbrk-tests (Files): Likewise.
35771         * modules/mbspcasecmp-tests (Files): Likewise.
35772         * modules/mbsrchr-tests (Files): Likewise.
35773         * modules/mbsrtowcs-tests (Files): Likewise.
35774         * modules/mbsspn-tests (Files): Likewise.
35775         * modules/mbsstr-tests (Files): Likewise.
35776         * modules/memchr-tests (Files): Likewise.
35777         * modules/memchr2-tests (Files): Likewise.
35778         * modules/memcmp-tests (Files): Likewise.
35779         * modules/memmem-tests (Files): Likewise.
35780         * modules/memrchr-tests (Files): Likewise.
35781         * modules/mkdir-tests (Files): Likewise.
35782         * modules/mkfifo-tests (Files): Likewise.
35783         * modules/mkfifoat-tests (Files): Likewise.
35784         * modules/mknod-tests (Files): Likewise.
35785         * modules/nanosleep-tests (Files): Likewise.
35786         * modules/nl_langinfo-tests (Files): Likewise.
35787         * modules/obstack-printf-tests (Files): Likewise.
35788         * modules/open-tests (Files): Likewise.
35789         * modules/openat-tests (Files): Likewise.
35790         * modules/pipe-filter-gi-tests (Files): Likewise.
35791         * modules/pipe-filter-ii-tests (Files): Likewise.
35792         * modules/pipe2-tests (Files): Likewise.
35793         * modules/popen-safer-tests (Files): Likewise.
35794         * modules/popen-tests (Files): Likewise.
35795         * modules/posixtm-tests (Files): Likewise.
35796         * modules/pread-tests (Files): Likewise.
35797         * modules/printf-frexp-tests (Files): Likewise.
35798         * modules/printf-frexpl-tests (Files): Likewise.
35799         * modules/printf-posix-tests (Files): Likewise.
35800         * modules/priv-set-tests (Files): Likewise.
35801         * modules/quotearg-tests (Files): Likewise.
35802         * modules/random_r-tests (Files): Likewise.
35803         * modules/rawmemchr-tests (Files): Likewise.
35804         * modules/rbtree-list-tests (Files): Likewise.
35805         * modules/rbtree-oset-tests (Files): Likewise.
35806         * modules/rbtreehash-list-tests (Files): Likewise.
35807         * modules/readlink-tests (Files): Likewise.
35808         * modules/remove-tests (Files): Likewise.
35809         * modules/rename-tests (Files): Likewise.
35810         * modules/renameat-tests (Files): Likewise.
35811         * modules/rmdir-tests (Files): Likewise.
35812         * modules/round-tests (Files): Likewise.
35813         * modules/roundf-tests (Files): Likewise.
35814         * modules/roundl-tests (Files): Likewise.
35815         * modules/safe-alloc-tests (Files): Likewise.
35816         * modules/setenv-tests (Files): Likewise.
35817         * modules/sigaction-tests (Files): Likewise.
35818         * modules/signbit-tests (Files): Likewise.
35819         * modules/sleep-tests (Files): Likewise.
35820         * modules/snprintf-posix-tests (Files): Likewise.
35821         * modules/snprintf-tests (Files): Likewise.
35822         * modules/sprintf-posix-tests (Files): Likewise.
35823         * modules/stat-tests (Files): Likewise.
35824         * modules/stat-time-tests (Files): Likewise.
35825         * modules/strcasestr-tests (Files): Likewise.
35826         * modules/strchrnul-tests (Files): Likewise.
35827         * modules/strerror-tests (Files): Likewise.
35828         * modules/striconv-tests (Files): Likewise.
35829         * modules/striconveh-tests (Files): Likewise.
35830         * modules/striconveha-tests (Files): Likewise.
35831         * modules/strsignal-tests (Files): Likewise.
35832         * modules/strstr-tests (Files): Likewise.
35833         * modules/strtod-tests (Files): Likewise.
35834         * modules/strverscmp-tests (Files): Likewise.
35835         * modules/symlink-tests (Files): Likewise.
35836         * modules/symlinkat-tests (Files): Likewise.
35837         * modules/trunc-tests (Files): Likewise.
35838         * modules/truncf-tests (Files): Likewise.
35839         * modules/truncl-tests (Files): Likewise.
35840         * modules/uname-tests (Files): Likewise.
35841         * modules/unicase/cased-tests (Files): Likewise.
35842         * modules/unicase/ignorable-tests (Files): Likewise.
35843         * modules/unicase/locale-language-tests (Files): Likewise.
35844         * modules/unicase/tolower-tests (Files): Likewise.
35845         * modules/unicase/totitle-tests (Files): Likewise.
35846         * modules/unicase/toupper-tests (Files): Likewise.
35847         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35848         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35849         * modules/unicase/u8-casefold-tests (Files): Likewise.
35850         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35851         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35852         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35853         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35854         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35855         * modules/unicase/u8-tolower-tests (Files): Likewise.
35856         * modules/unicase/u8-totitle-tests (Files): Likewise.
35857         * modules/unicase/u8-toupper-tests (Files): Likewise.
35858         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35859         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35860         * modules/unicase/u16-casefold-tests (Files): Likewise.
35861         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35862         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35863         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35864         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35865         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35866         * modules/unicase/u16-tolower-tests (Files): Likewise.
35867         * modules/unicase/u16-totitle-tests (Files): Likewise.
35868         * modules/unicase/u16-toupper-tests (Files): Likewise.
35869         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35870         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35871         * modules/unicase/u32-casefold-tests (Files): Likewise.
35872         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35873         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35874         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35875         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35876         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35877         * modules/unicase/u32-tolower-tests (Files): Likewise.
35878         * modules/unicase/u32-totitle-tests (Files): Likewise.
35879         * modules/unicase/u32-toupper-tests (Files): Likewise.
35880         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35881         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35882         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35883         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35884         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35885         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35886         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35887         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35888         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35889         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35890         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35891         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35892         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35893         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35894         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35895         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35896         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35897         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35898         * modules/unictype/block-list-tests (Files): Likewise.
35899         * modules/unictype/block-of-tests (Files): Likewise.
35900         * modules/unictype/block-test-tests (Files): Likewise.
35901         * modules/unictype/category-C-tests (Files): Likewise.
35902         * modules/unictype/category-Cc-tests (Files): Likewise.
35903         * modules/unictype/category-Cf-tests (Files): Likewise.
35904         * modules/unictype/category-Cn-tests (Files): Likewise.
35905         * modules/unictype/category-Co-tests (Files): Likewise.
35906         * modules/unictype/category-Cs-tests (Files): Likewise.
35907         * modules/unictype/category-L-tests (Files): Likewise.
35908         * modules/unictype/category-Ll-tests (Files): Likewise.
35909         * modules/unictype/category-Lm-tests (Files): Likewise.
35910         * modules/unictype/category-Lo-tests (Files): Likewise.
35911         * modules/unictype/category-Lt-tests (Files): Likewise.
35912         * modules/unictype/category-Lu-tests (Files): Likewise.
35913         * modules/unictype/category-M-tests (Files): Likewise.
35914         * modules/unictype/category-Mc-tests (Files): Likewise.
35915         * modules/unictype/category-Me-tests (Files): Likewise.
35916         * modules/unictype/category-Mn-tests (Files): Likewise.
35917         * modules/unictype/category-N-tests (Files): Likewise.
35918         * modules/unictype/category-Nd-tests (Files): Likewise.
35919         * modules/unictype/category-Nl-tests (Files): Likewise.
35920         * modules/unictype/category-No-tests (Files): Likewise.
35921         * modules/unictype/category-P-tests (Files): Likewise.
35922         * modules/unictype/category-Pc-tests (Files): Likewise.
35923         * modules/unictype/category-Pd-tests (Files): Likewise.
35924         * modules/unictype/category-Pe-tests (Files): Likewise.
35925         * modules/unictype/category-Pf-tests (Files): Likewise.
35926         * modules/unictype/category-Pi-tests (Files): Likewise.
35927         * modules/unictype/category-Po-tests (Files): Likewise.
35928         * modules/unictype/category-Ps-tests (Files): Likewise.
35929         * modules/unictype/category-S-tests (Files): Likewise.
35930         * modules/unictype/category-Sc-tests (Files): Likewise.
35931         * modules/unictype/category-Sk-tests (Files): Likewise.
35932         * modules/unictype/category-Sm-tests (Files): Likewise.
35933         * modules/unictype/category-So-tests (Files): Likewise.
35934         * modules/unictype/category-Z-tests (Files): Likewise.
35935         * modules/unictype/category-Zl-tests (Files): Likewise.
35936         * modules/unictype/category-Zp-tests (Files): Likewise.
35937         * modules/unictype/category-Zs-tests (Files): Likewise.
35938         * modules/unictype/category-and-not-tests (Files): Likewise.
35939         * modules/unictype/category-and-tests (Files): Likewise.
35940         * modules/unictype/category-byname-tests (Files): Likewise.
35941         * modules/unictype/category-name-tests (Files): Likewise.
35942         * modules/unictype/category-none-tests (Files): Likewise.
35943         * modules/unictype/category-of-tests (Files): Likewise.
35944         * modules/unictype/category-or-tests (Files): Likewise.
35945         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35946         * modules/unictype/combining-class-tests (Files): Likewise.
35947         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35948         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35949         * modules/unictype/ctype-blank-tests (Files): Likewise.
35950         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35951         * modules/unictype/ctype-digit-tests (Files): Likewise.
35952         * modules/unictype/ctype-graph-tests (Files): Likewise.
35953         * modules/unictype/ctype-lower-tests (Files): Likewise.
35954         * modules/unictype/ctype-print-tests (Files): Likewise.
35955         * modules/unictype/ctype-punct-tests (Files): Likewise.
35956         * modules/unictype/ctype-space-tests (Files): Likewise.
35957         * modules/unictype/ctype-upper-tests (Files): Likewise.
35958         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35959         * modules/unictype/decimal-digit-tests (Files): Likewise.
35960         * modules/unictype/digit-tests (Files): Likewise.
35961         * modules/unictype/mirror-tests (Files): Likewise.
35962         * modules/unictype/numeric-tests (Files): Likewise.
35963         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35964         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35965         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35966         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35967         Likewise.
35968         * modules/unictype/property-bidi-block-separator-tests (Files):
35969         Likewise.
35970         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35971         Likewise.
35972         * modules/unictype/property-bidi-common-separator-tests (Files):
35973         Likewise.
35974         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35975         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35976         Likewise.
35977         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35978         Likewise.
35979         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35980         Likewise.
35981         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35982         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35983         Likewise.
35984         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35985         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35986         Likewise.
35987         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35988         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35989         * modules/unictype/property-bidi-segment-separator-tests (Files):
35990         Likewise.
35991         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35992         * modules/unictype/property-byname-tests (Files): Likewise.
35993         * modules/unictype/property-combining-tests (Files): Likewise.
35994         * modules/unictype/property-composite-tests (Files): Likewise.
35995         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35996         * modules/unictype/property-dash-tests (Files): Likewise.
35997         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35998         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35999         Likewise.
36000         * modules/unictype/property-deprecated-tests (Files): Likewise.
36001         * modules/unictype/property-diacritic-tests (Files): Likewise.
36002         * modules/unictype/property-extender-tests (Files): Likewise.
36003         * modules/unictype/property-format-control-tests (Files): Likewise.
36004         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36005         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36006         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36007         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36008         * modules/unictype/property-hyphen-tests (Files): Likewise.
36009         * modules/unictype/property-id-continue-tests (Files): Likewise.
36010         * modules/unictype/property-id-start-tests (Files): Likewise.
36011         * modules/unictype/property-ideographic-tests (Files): Likewise.
36012         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36013         * modules/unictype/property-ids-trinary-operator-tests (Files):
36014         Likewise.
36015         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36016         * modules/unictype/property-iso-control-tests (Files): Likewise.
36017         * modules/unictype/property-join-control-tests (Files): Likewise.
36018         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36019         * modules/unictype/property-line-separator-tests (Files): Likewise.
36020         * modules/unictype/property-logical-order-exception-tests (Files):
36021         Likewise.
36022         * modules/unictype/property-lowercase-tests (Files): Likewise.
36023         * modules/unictype/property-math-tests (Files): Likewise.
36024         * modules/unictype/property-non-break-tests (Files): Likewise.
36025         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36026         * modules/unictype/property-numeric-tests (Files): Likewise.
36027         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36028         * modules/unictype/property-other-default-ignorable-code-point-tests
36029         (Files): Likewise.
36030         * modules/unictype/property-other-grapheme-extend-tests (Files):
36031         Likewise.
36032         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36033         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36034         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36035         * modules/unictype/property-other-math-tests (Files): Likewise.
36036         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36037         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36038         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36039         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36040         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36041         * modules/unictype/property-private-use-tests (Files): Likewise.
36042         * modules/unictype/property-punctuation-tests (Files): Likewise.
36043         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36044         * modules/unictype/property-radical-tests (Files): Likewise.
36045         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36046         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36047         * modules/unictype/property-space-tests (Files): Likewise.
36048         * modules/unictype/property-terminal-punctuation-tests (Files):
36049         Likewise.
36050         * modules/unictype/property-test-tests (Files): Likewise.
36051         * modules/unictype/property-titlecase-tests (Files): Likewise.
36052         * modules/unictype/property-unassigned-code-value-tests (Files):
36053         Likewise.
36054         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36055         * modules/unictype/property-uppercase-tests (Files): Likewise.
36056         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36057         * modules/unictype/property-white-space-tests (Files): Likewise.
36058         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36059         * modules/unictype/property-xid-start-tests (Files): Likewise.
36060         * modules/unictype/property-zero-width-tests (Files): Likewise.
36061         * modules/unictype/scripts-tests (Files): Likewise.
36062         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36063         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36064         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36065         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36066         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36067         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36068         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36069         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36070         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36071         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36072         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36073         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36074         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36075         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36076         * modules/uninorm/composition-tests (Files): Likewise.
36077         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36078         * modules/uninorm/decomposition-tests (Files): Likewise.
36079         * modules/uninorm/filter-tests (Files): Likewise.
36080         * modules/uninorm/nfc-tests (Files): Likewise.
36081         * modules/uninorm/nfd-tests (Files): Likewise.
36082         * modules/uninorm/nfkc-tests (Files): Likewise.
36083         * modules/uninorm/nfkd-tests (Files): Likewise.
36084         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36085         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36086         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36087         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36088         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36089         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36090         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36091         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36092         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36093         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36094         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36095         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36096         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36097         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36098         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36099         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36100         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36101         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36102         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36103         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36104         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36105         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36106         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36107         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36108         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36109         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36110         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36111         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36112         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36113         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36114         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36115         * modules/uniwidth/u8-width-tests (Files): Likewise.
36116         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36117         * modules/uniwidth/u16-width-tests (Files): Likewise.
36118         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36119         * modules/uniwidth/u32-width-tests (Files): Likewise.
36120         * modules/uniwidth/width-tests (Files): Likewise.
36121         * modules/unlink-tests (Files): Likewise.
36122         * modules/unsetenv-tests (Files): Likewise.
36123         * modules/usleep-tests (Files): Likewise.
36124         * modules/utimens-tests (Files): Likewise.
36125         * modules/utimensat-tests (Files): Likewise.
36126         * modules/vasnprintf-posix-tests (Files): Likewise.
36127         * modules/vasnprintf-tests (Files): Likewise.
36128         * modules/vasprintf-posix-tests (Files): Likewise.
36129         * modules/vasprintf-tests (Files): Likewise.
36130         * modules/vdprintf-posix-tests (Files): Likewise.
36131         * modules/vfprintf-posix-tests (Files): Likewise.
36132         * modules/vprintf-posix-tests (Files): Likewise.
36133         * modules/vsnprintf-posix-tests (Files): Likewise.
36134         * modules/vsnprintf-tests (Files): Likewise.
36135         * modules/vsprintf-posix-tests (Files): Likewise.
36136         * modules/wcrtomb-tests (Files): Likewise.
36137         * modules/wcsnrtombs-tests (Files): Likewise.
36138         * modules/wcsrtombs-tests (Files): Likewise.
36139         * modules/wctype-tests (Files): Likewise.
36140         * modules/wcwidth-tests (Files): Likewise.
36141         * modules/xmemdup0-tests (Files): Likewise.
36142         * modules/xprintf-posix-tests (Files): Likewise.
36143         * modules/xvasprintf-tests (Files): Likewise.
36144
36145 2009-12-24  Eric Blake  <ebb9@byu.net>
36146
36147         test-nanosleep: fix typo
36148         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36149         patch.
36150         Reported by Bruno Haible.
36151
36152 2009-12-24  Bruno Haible  <bruno@clisp.org>
36153
36154         Reduce namespace pollution on glibc systems.
36155         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36156         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36157         systems.
36158         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36159         <getopt.h> on glibc systems.
36160         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36161         systems.
36162         * lib/fcntl.c: Include <unistd.h> here instead.
36163
36164 2009-12-24  Bruno Haible  <bruno@clisp.org>
36165
36166         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36167
36168 2009-12-24  Eric Blake  <ebb9@byu.net>
36169
36170         tests: add signature checks
36171         * tests/signature.h (SIGNATURE_CHECK): New file.
36172         * modules/atexit-tests (Files): Use it.
36173         * modules/btowc-tests (Files): Likewise.
36174         * modules/canonicalize-lgpl-tests (Files): Likewise.
36175         * modules/ceilf-tests (Files): Likewise.
36176         * modules/ceill-tests (Files): Likewise.
36177         * modules/chown-tests (Files): Likewise.
36178         * modules/dprintf-posix-tests (Files): Likewise.
36179         * modules/dup2-tests (Files): Likewise.
36180         * modules/dup3-tests (Files): Likewise.
36181         * modules/duplocale-tests (Files): Likewise.
36182         * modules/fchdir-tests (Files): Likewise.
36183         * modules/fcntl-tests (Files): Likewise.
36184         * modules/fdopendir-tests (Files): Likewise.
36185         * modules/fflush-tests (Files): Likewise.
36186         * modules/flock-tests (Files): Likewise.
36187         * modules/floorf-tests (Files): Likewise.
36188         * modules/floorl-tests (Files): Likewise.
36189         * modules/fnmatch-tests (Files): Likewise.
36190         * modules/fopen-tests (Files): Likewise.
36191         * modules/fprintf-posix-tests (Files): Likewise.
36192         * modules/freopen-tests (Files): Likewise.
36193         * modules/frexp-nolibm-tests (Files): Likewise.
36194         * modules/frexp-tests (Files): Likewise.
36195         * modules/frexpl-nolibm-tests (Files): Likewise.
36196         * modules/frexpl-tests (Files): Likewise.
36197         * modules/fseek-tests (Files): Likewise.
36198         * modules/fseeko-tests (Files): Likewise.
36199         * modules/fsync-tests (Files): Likewise.
36200         * modules/ftell-tests (Files): Likewise.
36201         * modules/ftello-tests (Files): Likewise.
36202         * modules/futimens-tests (Files): Likewise.
36203         * modules/getaddrinfo-tests (Files): Likewise.
36204         * modules/getcwd-tests (Files): Likewise.
36205         * modules/getdelim-tests (Files): Likewise.
36206         * modules/getdtablesize-tests (Files): Likewise.
36207         * modules/getgroups-tests (Files): Likewise.
36208         * modules/gethostname-tests (Files): Likewise.
36209         * modules/getline-tests (Files): Likewise.
36210         * modules/getopt-posix-tests (Files): Likewise.
36211         * modules/gettimeofday-tests (Files): Likewise.
36212         * modules/glob-tests (Files): Likewise.
36213         * modules/iconv-tests (Files): Likewise.
36214         * modules/inet_ntop-tests (Files): Likewise.
36215         * modules/inet_pton-tests (Files): Likewise.
36216         * modules/isblank-tests (Files): Likewise.
36217         * modules/lchown-tests (Files): Likewise.
36218         * modules/ldexpl-tests (Files): Likewise.
36219         * modules/link-tests (Files): Likewise.
36220         * modules/linkat-tests (Files): Likewise.
36221         * modules/lseek-tests (Files): Likewise.
36222         * modules/lstat-tests (Files): Likewise.
36223         * modules/mbrtowc-tests (Files): Likewise.
36224         * modules/mbsinit-tests (Files): Likewise.
36225         * modules/mbsnrtowcs-tests (Files): Likewise.
36226         * modules/mbsrtowcs-tests (Files): Likewise.
36227         * modules/memchr-tests (Files): Likewise.
36228         * modules/memcmp-tests (Files): Likewise.
36229         * modules/memmem-tests (Files): Likewise.
36230         * modules/memrchr-tests (Files): Likewise.
36231         * modules/mkdir-tests (Files): Likewise.
36232         * modules/mkfifo-tests (Files): Likewise.
36233         * modules/mkfifoat-tests (Files): Likewise.
36234         * modules/mknod-tests (Files): Likewise.
36235         * modules/nanosleep-tests (Files): Likewise.
36236         * modules/nl_langinfo-tests (Files): Likewise.
36237         * modules/obstack-printf-tests (Files): Likewise.
36238         * modules/open-tests (Files): Likewise.
36239         * modules/openat-tests (Files): Likewise.
36240         * modules/perror-tests (Files): Likewise.
36241         * modules/pipe2-tests (Files): Likewise.
36242         * modules/poll-tests (Files): Likewise.
36243         * modules/popen-tests (Files): Likewise.
36244         * modules/posix_spawn-tests (Files): Likewise.
36245         * modules/posix_spawnp-tests (Files): Likewise.
36246         * modules/pread-tests (Files): Likewise.
36247         * modules/printf-posix-tests (Files): Likewise.
36248         * modules/pty-tests (Files): Likewise.
36249         * modules/random_r-tests (Files): Likewise.
36250         * modules/rawmemchr-tests (Files): Likewise.
36251         * modules/readlink-tests (Files): Likewise.
36252         * modules/remove-tests (Files): Likewise.
36253         * modules/rename-tests (Files): Likewise.
36254         * modules/renameat-tests (Files): Likewise.
36255         * modules/rmdir-tests (Files): Likewise.
36256         * modules/round-tests (Files): Likewise.
36257         * modules/roundf-tests (Files): Likewise.
36258         * modules/roundl-tests (Files): Likewise.
36259         * modules/select-tests (Files): Likewise.
36260         * modules/setenv-tests (Files): Likewise.
36261         * modules/sigaction-tests (Files): Likewise.
36262         * modules/sleep-tests (Files): Likewise.
36263         * modules/snprintf-posix-tests (Files): Likewise.
36264         * modules/snprintf-tests (Files): Likewise.
36265         * modules/sprintf-posix-tests (Files): Likewise.
36266         * modules/stat-tests (Files): Likewise.
36267         * modules/strcasestr-tests (Files): Likewise.
36268         * modules/strchrnul-tests (Files): Likewise.
36269         * modules/strerror-tests (Files): Likewise.
36270         * modules/strsignal-tests (Files): Likewise.
36271         * modules/strstr-tests (Files): Likewise.
36272         * modules/strtod-tests (Files): Likewise.
36273         * modules/strverscmp-tests (Files): Likewise.
36274         * modules/symlink-tests (Files): Likewise.
36275         * modules/symlinkat-tests (Files): Likewise.
36276         * modules/times-tests (Files): Likewise.
36277         * modules/trunc-tests (Files): Likewise.
36278         * modules/truncf-tests (Files): Likewise.
36279         * modules/truncl-tests (Files): Likewise.
36280         * modules/tsearch-tests (Files): Likewise.
36281         * modules/uname-tests (Files): Likewise.
36282         * modules/unlink-tests (Files): Likewise.
36283         * modules/unsetenv-tests (Files): Likewise.
36284         * modules/usleep-tests (Files): Likewise.
36285         * modules/utimensat-tests (Files): Likewise.
36286         * modules/vasprintf-tests (Files): Likewise.
36287         * modules/vdprintf-posix-tests (Files): Likewise.
36288         * modules/vfprintf-posix-tests (Files): Likewise.
36289         * modules/vprintf-posix-tests (Files): Likewise.
36290         * modules/vsnprintf-posix-tests (Files): Likewise.
36291         * modules/vsnprintf-tests (Files): Likewise.
36292         * modules/vsprintf-posix-tests (Files): Likewise.
36293         * modules/wcrtomb-tests (Files): Likewise.
36294         * modules/wcsnrtombs-tests (Files): Likewise.
36295         * modules/wcsrtombs-tests (Files): Likewise.
36296         * modules/wcwidth-tests (Files): Likewise.
36297         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36298         * tests/test-isinf.c (isinf): Likewise.
36299         * tests/test-isnan.c (isnan): Likewise.
36300         * tests/test-signbit.c (signbit): Likewise.
36301         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36302         declaration, either as macro or with correct signature.
36303         (select): Ensure function under test is declared with correct
36304         signature in correct header.
36305         * tests/test-atexit.c (atexit): Likewise.
36306         * tests/test-btowc.c (btowc): Likewise.
36307         * tests/test-canonicalize-lgpl.c (realpath)
36308         (canonicalize_file_name): Likewise.
36309         * tests/test-ceilf1.c (ceilf): Likewise.
36310         * tests/test-ceill.c (ceill): Likewise.
36311         * tests/test-chown.c (chown): Likewise.
36312         * tests/test-dprintf-posix.c (dprintf): Likewise.
36313         * tests/test-dup2.c (dup2): Likewise.
36314         * tests/test-dup3.c (dup3): Likewise.
36315         * tests/test-duplocale.c (duplocale): Likewise.
36316         * tests/test-fchdir.c (fchdir): Likewise.
36317         * tests/test-fchownat.c (fchownat): Likewise.
36318         * tests/test-fcntl.c (fcntl): Likewise.
36319         * tests/test-fdopendir.c (fdopendir): Likewise.
36320         * tests/test-fflush.c (fflush): Likewise.
36321         * tests/test-flock.c (flock): Likewise.
36322         * tests/test-floorf1.c (floorf): Likewise.
36323         * tests/test-floorl.c (floorl): Likewise.
36324         * tests/test-fnmatch.c (fnmatch): Likewise.
36325         * tests/test-fopen.c (fopen): Likewise.
36326         * tests/test-fprintf-posix.c (fprintf): Likewise.
36327         * tests/test-freopen.c (freopen): Likewise.
36328         * tests/test-frexp.c (frexp): Likewise.
36329         * tests/test-frexpl.c (frexpl): Likewise.
36330         * tests/test-fseek.c (fseek): Likewise.
36331         * tests/test-fseeko.c (fseeko): Likewise.
36332         * tests/test-fstatat.c (fstatat): Likewise.
36333         * tests/test-fsync.c (fsync): Likewise.
36334         * tests/test-ftell.c (ftell): Likewise.
36335         * tests/test-ftello.c (ftello): Likewise.
36336         * tests/test-futimens.c (futimens): Likewise.
36337         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36338         (gai_strerror): Likewise.
36339         * tests/test-getcwd.c (getcwd): Likewise.
36340         * tests/test-getdelim.c (getdelim): Likewise.
36341         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36342         * tests/test-getgroups.c (getgroups): Likewise.
36343         * tests/test-gethostname.c (gethostname): Likewise.
36344         * tests/test-getline.c (getline): Likewise.
36345         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36346         Likewise.
36347         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36348         * tests/test-glob.c (glob, globfree): Likewise.
36349         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36350         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36351         * tests/test-inet_pton.c (inet_pton): Likewise.
36352         * tests/test-isblank.c (isblank): Likewise.
36353         * tests/test-lchown.c (lchown): Likewise.
36354         * tests/test-ldexpl.c (ldexpl): Likewise.
36355         * tests/test-link.c (link): Likewise.
36356         * tests/test-linkat.c (linkat): Likewise.
36357         * tests/test-lseek.c (lseek): Likewise.
36358         * tests/test-lstat.c (lstat): Likewise.
36359         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36360         * tests/test-mbsinit.c (mbsinit): Likewise.
36361         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36362         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36363         * tests/test-memchr.c (memchr): Likewise.
36364         * tests/test-memcmp.c (memcmp): Likewise.
36365         * tests/test-memmem.c (memmem): Likewise.
36366         * tests/test-memrchr.c (memrchr): Likewise.
36367         * tests/test-mkdir.c (mkdir): Likewise.
36368         * tests/test-mkdirat.c (mkdirat): Likewise.
36369         * tests/test-mkfifo.c (mkfifo): Likewise.
36370         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36371         * tests/test-mknod.c (mknod): Likewise.
36372         * tests/test-nanosleep.c (nanosleep): Likewise.
36373         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36374         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36375         Likewise.
36376         * tests/test-open.c (open): Likewise.
36377         * tests/test-openat.c (openat): Likewise.
36378         * tests/test-perror.c (perror): Likewise.
36379         * tests/test-pipe2.c (pipe2): Likewise.
36380         * tests/test-poll.c (poll): Likewise.
36381         * tests/test-popen.c (popen, pclose): Likewise.
36382         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36383         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36384         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36385         (posix_spawn_file_actions_destroy)
36386         (posix_spawn_file_actions_addclose)
36387         (posix_spawn_file_actions_addopen)
36388         (posix_spawn_file_actions_adddup2): Likewise.
36389         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36390         * tests/test-pread.c (pread): Likewise.
36391         * tests/test-printf-posix.c (printf): Likewise.
36392         * tests/test-pty.c (openpty, forkpty): Likewise.
36393         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36394         (random_r): Likewise.
36395         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36396         * tests/test-readlink.c (readlink): Likewise.
36397         * tests/test-remove.c (remove): Likewise.
36398         * tests/test-rename.c (rename): Likewise.
36399         * tests/test-renameat.c (renameat): Likewise.
36400         * tests/test-rmdir.c (rmdir): Likewise.
36401         * tests/test-round1.c (round): Likewise.
36402         * tests/test-roundf1.c (roundf): Likewise.
36403         * tests/test-roundl.c (roundl): Likewise.
36404         * tests/test-setenv.c (setenv): Likewise.
36405         * tests/test-sigaction.c (sigaction): Likewise.
36406         * tests/test-sleep.c (sleep): Likewise.
36407         * tests/test-snprintf.c (snprintf): Likewise.
36408         * tests/test-sprintf-posix.c (sprintf): Likewise.
36409         * tests/test-stat.c (stat): Likewise.
36410         * tests/test-stpncpy.c (stpncpy): Likewise.
36411         * tests/test-strcasestr.c (strcasestr): Likewise.
36412         * tests/test-strchrnul.c (strchrnul): Likewise.
36413         * tests/test-strerror.c (strerror): Likewise.
36414         * tests/test-strsignal.c (strsignal): Likewise.
36415         * tests/test-strstr.c (strstr): Likewise.
36416         * tests/test-strtod.c (strtod): Likewise.
36417         * tests/test-strverscmp.c (strverscmp): Likewise.
36418         * tests/test-symlink.c (symlink): Likewise.
36419         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36420         * tests/test-times.c (times): Likewise.
36421         * tests/test-trunc1.c (trunc): Likewise.
36422         * tests/test-truncf1.c (truncf): Likewise.
36423         * tests/test-truncl.c (truncl): Likewise.
36424         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36425         Likewise.
36426         * tests/test-uname.c (uname): Likewise.
36427         * tests/test-unlink.c (unlink): Likewise.
36428         * tests/test-unlinkat.c (unlinkat): Likewise.
36429         * tests/test-unsetenv.c (unsetenv): Likewise.
36430         * tests/test-usleep.c (usleep): Likewise.
36431         * tests/test-utimensat.c (utimensat): Likewise.
36432         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36433         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36434         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36435         * tests/test-vprintf-posix.c (vprintf): Likewise.
36436         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36437         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36438         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36439         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36440         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36441         * tests/test-wcwidth.c (wcwidth): Likewise.
36442
36443         build: pull in conditional headers during GNULIB_POSIXCHECK
36444         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36445         definitions from any conditionally-included headers.
36446         * lib/stdlib.in.h (includes): Likewise.
36447         * lib/unistd.in.h (includes): Likewise.
36448
36449 2009-12-24  Bruno Haible  <bruno@clisp.org>
36450
36451         * tests/test-argv-iter.c: Include header file being tested immediately
36452         after config.h.
36453         * tests/test-base64.c: Likewise.
36454         * tests/test-flock.c: Likewise.
36455         * tests/test-fsync.c: Likewise.
36456         * tests/test-getdate.c: Likewise.
36457         * tests/test-getndelim2.c: Likewise.
36458         * tests/test-isfinite.c: Likewise.
36459         * tests/test-isinf.c: Likewise.
36460         * tests/test-strerror.c: Likewise.
36461         * tests/test-strsignal.c: Likewise.
36462
36463 2009-12-23  Eric Blake  <ebb9@byu.net>
36464
36465         unistd: work around cygwin bug
36466         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36467         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36468         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36469
36470 2009-12-23  Bruno Haible  <bruno@clisp.org>
36471
36472         localename: More tests.
36473         * tests/test-localename.c (SIZEOF): New macro.
36474         (categories): New variable.
36475         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36476         test_locale_name_default): Add test w.r.t. thread locale.
36477         (test_locale_name_thread): New function.
36478         (main): Invoke it.
36479
36480         localename: Make aware of thread locale.
36481         * lib/localename.h (gl_locale_name_thread): New declaration.
36482         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36483         behaviour with respect to thread locale.
36484         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36485         <langinfo.h>, glthread/lock.h.
36486         (SIZE_BITS): New macro.
36487         (string_hash): New function.
36488         (struct hash_node): New type.
36489         (HASH_TABLE_SIZE): New macro.
36490         (struniq_hash_table, struniq_lock): New variables.
36491         (struniq): New function.
36492         (gl_locale_name_thread): New function.
36493         (gl_locale_name): Invoke it.
36494         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36495         * modules/localename (Depends-on): Add lock.
36496         Reported by Mike Gran <spk121@yahoo.com>.
36497
36498 2009-12-23  Eric Blake  <ebb9@byu.net>
36499
36500         va-args: new module
36501         * modules/va-args: New file.
36502         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36503         * MODULES.html.sh (Core language properties): Mention it.
36504
36505         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36506         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36507         named alias for __attribute__((__unused__)).
36508         * lib/chown.c: Update client.
36509         * lib/fchmodat.c: Likewise.
36510         * lib/fts.c: Likewise.
36511         * lib/getdate.y: Likewise.
36512         * lib/getgroups.c: Likewise.
36513         * lib/getopt.c: Likewise.
36514         * lib/getugroups.c: Likewise.
36515         * lib/mkdir.c: Likewise.
36516         * lib/mkfifo.c: Likewise.
36517         * lib/mkfifoat.c: Likewise.
36518         * lib/mknod.c: Likewise.
36519         * lib/mknodat.c: Likewise.
36520         * lib/readlink.c: Likewise.
36521         * lib/se-context.in.h: Likewise.
36522         * lib/se-selinux.in.h: Likewise.
36523         * lib/sockets.c: Likewise.
36524         * lib/symlink.c: Likewise.
36525         * lib/symlinkat.c: Likewise.
36526         * lib/unicodeio.c: Likewise.
36527         * lib/unistr.h: Likewise.
36528         * tests/test-areadlink.c: Likewise.
36529         * tests/test-areadlinkat.c: Likewise.
36530         * tests/test-filenamecat.c: Likewise.
36531         * tests/test-fseeko.c: Likewise.
36532         * tests/test-ftello.c: Likewise.
36533         * tests/test-getdate.c: Likewise.
36534         * tests/test-getgroups.c: Likewise.
36535         * tests/test-gethostname.c: Likewise.
36536         * tests/test-quotearg.c: Likewise.
36537         * tests/test-version-etc.c: Likewise.
36538         * tests/test-xalloc-die.c: Likewise.
36539         * tests/test-xfprintf-posix.c: Likewise.
36540         * tests/test-xprintf-posix.c: Likewise.
36541         * tests/test-xvasprintf.c: Likewise.
36542
36543         tests: avoid compiler warnings
36544         * tests/test-fcntl.c (main): Delete unused parameters.
36545         * tests/test-freopen-safer.c (main): Likewise.
36546         * tests/test-xalloc-die.c (main): Mark unused parameters.
36547         * tests/test-fseeko.c (main): Likewise.
36548         * tests/test-ftello.c (main): Likewise.
36549         * tests/test-nanosleep.c (main): Avoid declaration warning.
36550         * tests/test-sleep.c (main): Likewise.
36551         * tests/test-unsetenv.c (main): Silence warning about string
36552         literal.
36553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36554
36555 2009-12-23  Bruno Haible  <bruno@clisp.org>
36556
36557         * tests/test-localename.c (test_locale_name): New function, extracted
36558         from main. Also test mixed situations.
36559         (test_locale_name_posix, test_locale_name_environ,
36560         test_locale_name_default): New functions.
36561         (main): Invoke them all.
36562         * modules/localename-tests (configure.ac): Test for newlocale.
36563
36564 2009-12-23  Bruno Haible  <bruno@clisp.org>
36565
36566         unistd: Ensure getcwd gets declared before being overridden.
36567         * lib/unistd.in.h: Conditionally include <io.h>.
36568
36569 2009-12-22  Bruno Haible  <bruno@clisp.org>
36570
36571         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36572         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36573         (gl_WCHAR_H): Invoke it.
36574         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36575         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36576         Reported by Karl Berry <karl@freefriends.org>.
36577
36578 2009-12-22  Eric Blake  <ebb9@byu.net>
36579
36580         math, unistd: avoid redundant includes
36581         * lib/math.in.h (isnan): No need to re-include <math.h>.
36582         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36583
36584         getsubopt: work around cygwin bug
36585         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36586         avoid conflicting with system getsubopt.
36587         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36588         bug.
36589
36590         getopt: synchronize from glibc
36591         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36592         parameter order.  Adjust all callers.
36593         (_getopt_internal_r, main): Adjust quoting in error messages.
36594         Drop considerations for outdated POSIX 1003.2 error message.
36595         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36596         callers.
36597         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36598
36599         test-getopt: test stderr behavior
36600         * modules/getopt-posix-tests (Depends-on): Add dup2.
36601         * tests/test-getopt.c (ASSERT): Avoid stderr.
36602         (main): Move stderr to a temporary file.
36603         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36604         Instead, add parameter to inform caller if output occurred.
36605         (test_getopt): Adjust all existing tests to expect silence, and
36606         add new tests of leading ":".
36607         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36608         glibc shortcomings with leading "-:" or "+:" in optstring.
36609         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36610         Likewise.
36611         * doc/posix-functions/getopt.texi (getopt): Likewise.
36612
36613         test-getopt: enhance test
36614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36615         supports optind=0.
36616         * tests/test-getopt.c (OPTIND_MIN): Move...
36617         * tests/test-getopt.h (OPTIND_MIN): ...here.
36618         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36619         Require that optind=0 works, since modern BSD supports it in
36620         addition to optreset, and since coreutils expects it.
36621         (test_getopt_long_only): New test.
36622         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36623         glibc shortcomings with 'W;', and enforcement of optind=0.
36624         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36625         Likewise.
36626
36627 2009-12-21  Bruno Haible  <bruno@clisp.org>
36628
36629         localename: Improvements for MacOS X and Cygwin.
36630         * lib/localename.h (gl_locale_name_environ): New declaration.
36631         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36632         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36633         (gl_locale_name_posix): Invoke it.
36634         (gl_locale_name_default): Add comments. Use Windows native API also on
36635         Cygwin.
36636
36637 2009-12-21  Bruno Haible  <bruno@clisp.org>
36638
36639         Update list of Win32 locale ids.
36640         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36641         (LANG_SAMI): Renamed from LANG_SAAMI.
36642         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36643         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36644         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36645         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36646         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36647         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36648         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36649         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36650         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36651         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36652         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36653         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36654         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36655         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36656         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36657         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36658         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36659         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36660         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36661         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36662         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36663         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36664         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36665         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36666         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36667         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36668         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36669         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36670         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36671         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36672         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36673         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36674         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36675         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36676         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36677         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36678         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36679         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36680         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36681         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36682         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36683         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36684         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36685         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36686         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36687         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36688         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36689         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36690         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36691         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36692         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36693         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36694         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36695         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36696         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36697         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36698         Add more languages and countries for Sami, Sorbian. Add more countries
36699         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36700         for Pashto. Change country for Syriac, Tswana.
36701
36702 2009-12-21  Eric Blake  <ebb9@byu.net>
36703
36704         test-utimens: avoid spurious failure
36705         * tests/test-chown.h (nap): Factor...
36706         * tests/nap.h: ...into new file.
36707         * tests/test-lchown.h (nap): Avoid duplication.
36708         * tests/test-utimens-common.h (nap): Use shared implementation,
36709         necessary on file systems with 1-second resolution.
36710         * modules/chown-tests (Files): Include new file.
36711         * modules/fdutimensat-tests (Files): Likewise.
36712         * modules/futimens-tests (Files): Likewise.
36713         * modules/lchown-tests (Files): Likewise.
36714         * modules/openat-tests (Files): Likewise.
36715         * modules/utimens-tests (Files): Likewise.
36716         * modules/utimensat-tests (Files): Likewise.
36717
36718 2009-12-19  Eric Blake  <ebb9@byu.net>
36719
36720         futimens, utimensat: work around Linux bug
36721         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36722         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36723         * lib/utimensat.c (rpl_utimensat): Work around it.
36724         * lib/futimens.c (rpl_futimens): Adjust comment.
36725
36726         utimens: work around Linux ctime bug
36727         * lib/utimens.c (detect_ctime_bug): New helper function.
36728         (update_timespec): Differentiate between workaround needed for
36729         this bug vs. what is needed for systems that lack utimensat.
36730         (fdutimens, lutimens): Work around bug.
36731
36732         utimens: check for ctime update
36733         * tests/test-utimens-common.h (check_ctime): Define.
36734         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36735         * tests/test-futimens.h (test_futimens): Likewise.
36736         * tests/test-lutimens.h (test_lutimens): Likewise.
36737         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36738         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36739
36740 2009-12-19  Bruno Haible  <bruno@clisp.org>
36741
36742         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36743         * tests/test-dprintf-posix2.sh: New file.
36744         * tests/test-dprintf-posix2.c: New file.
36745         * modules/dprintf-posix-tests (Files): Add them.
36746         (configure.ac): Check for getrlimit and setrlimit.
36747         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36748
36749 2009-12-19  Bruno Haible  <bruno@clisp.org>
36750
36751         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36752         * tests/test-fprintf-posix3.sh: New file.
36753         * tests/test-fprintf-posix3.c: New file.
36754         * modules/fprintf-posix-tests (Files): Add them.
36755         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36756
36757 2009-12-19  Eric Blake  <ebb9@byu.net>
36758
36759         dirfd: fix prototype
36760         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36761         * lib/dirfd.c (dirfd): Likewise.
36762
36763         canonicalize: reduce memory usage
36764         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36765         allocation to size.
36766         Reported by Solar Designer <solar@openwall.com>.
36767
36768 2009-12-19  Bruno Haible  <bruno@clisp.org>
36769
36770         New module attribute 'Applicability'.
36771         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36772         * gnulib-tool: New option --extract-applicability.
36773         (func_usage): Document it.
36774         (sed_extract_prog): Recognize it.
36775         (func_get_applicability): New function.
36776         (func_import): Generalize handling of 'link-warning' module.
36777         * modules/link-warning (Applicability): New section.
36778         * modules/arg-nonnull (Applicability): New section.
36779         Repoted by Simon Josefsson <simon@josefsson.org>.
36780
36781 2009-12-19  Bruno Haible  <bruno@clisp.org>
36782
36783         fflush: tweak
36784         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36785         * lib/fseeko.c (rpl_fseeko): Likewise.
36786
36787 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36788
36789         * lib/gl_list.h: Fix typo in comment.
36790
36791 2009-12-16  Eric Blake  <ebb9@byu.net>
36792
36793         fcntl: use to simplify other modules
36794         * modules/cloexec (Depends-on): Add fcntl.
36795         * modules/fchdir (Depends-on): Likewise.
36796         * modules/fd-safer-flag (Depends-on): Likewise.
36797         * modules/unistd-safer (Depends-on): Likewise.
36798         * modules/dup3 (configure.ac): Set module indicator.
36799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36800         missing.
36801         * lib/fchdir.c (_gl_register_dup): Fix comment.
36802         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36803         * lib/dup-safer.c (dup_safer): Likewise.
36804         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36805         * lib/dup3.c (dup3): Likewise.
36806         * tests/test-fchdir.c (main): Enhance test.
36807         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36808
36809         fcntl: port portions of fcntl to mingw
36810         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36811         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36812         replacement for mingw.
36813         * modules/fcntl (Description): Update.
36814         (Depends-on): Add dup2.
36815         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36816         * modules/fcntl-h (Makefile.am): Substitute it.
36817         * lib/fcntl.in.h (fcntl): Update declaration.
36818         (F_DUPFD, F_GETFD): New macros, when needed.
36819         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36820         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36821         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36822         we now guarantee.
36823
36824         fcntl: work around cygwin bug in F_DUPFD
36825         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36826         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36827         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36828         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36829         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36830
36831         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36832         * modules/fcntl (Files): List new files.
36833         (configure.ac): Run a test.
36834         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36835         * lib/fcntl.c (rpl_fcntl): Likewise.
36836         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36837         (gl_FCNTL_H): Always replace fcntl.h.
36838         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36839         * lib/fcntl.in.h (fcntl): Declare replacement.
36840         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36841         needed, plus a witness.
36842         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36843         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36844         * tests/test-fcntl.c: New file.
36845         * modules/fcntl-tests: Likewise.
36846
36847         binary-io: avoid potential compilation warning
36848         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36849         directives.
36850
36851         fflush: avoid compilation error on NetBSD
36852         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36853         between off_t and fpos_t, since the latter is sometimes a struct.
36854         * lib/fseeko.c (rpl_fseeko): Likewise.
36855         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36856
36857 2009-12-15  Eric Blake  <ebb9@byu.net>
36858
36859         fcntl-h, stdio, sys_ioctl: fix declarations
36860         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36861         function must not take arguments.
36862         * lib/sys_ioctl.in.h (ioctl): Likewise.
36863         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36864         (open): Add a link warning.
36865
36866 2009-12-15  Jim Meyering  <meyering@redhat.com>
36867
36868         areadlink, areadlink-with-size: relax license to LGPLv2+
36869         * modules/areadlink (License): Relax to LGPLv2+.
36870         * modules/areadlink-with-size (License): Likewise.
36871
36872 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36873             Bruno Haible  <bruno@clisp.org>
36874
36875         *printf: Fix memory leak.
36876         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36877         * lib/vfprintf.c (vfprintf): Likewise.
36878         * lib/dprintf.c (dprintf): Likewise.
36879         * lib/vdprintf.c (vdprintf): Likewise.
36880
36881 2009-12-14  Eric Blake  <ebb9@byu.net>
36882
36883         accept4: adjust module dependencies
36884         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36885
36886         utimens: one more try at avoiding compiler warning
36887         * lib/utimens.c (lutimens): Lower scope of result.
36888
36889 2009-12-13  Bruno Haible  <bruno@clisp.org>
36890
36891         Move the malloc checking from module 'list' to new module 'xlist'.
36892         * modules/xlist: New file.
36893         * lib/gl_xlist.h: New file.
36894         * lib/gl_xlist.c: New file.
36895         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36896         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36897         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36898         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36899         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36900         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36901         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36902         gl_sortedlist_nx_add): New declarations.
36903         (struct gl_list_implementation): Rename and change methods accordingly.
36904         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36905         (gl_list_nx_create): Renamed from gl_list_create.
36906         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36907         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36908         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36909         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36910         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36911         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36912         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36913         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36914         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36915         gl_list_create_empty.
36916         (gl_list_nx_create): Renamed from gl_list_create.
36917         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36918         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36919         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36920         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36921         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36922         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36923         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36924         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36925         * lib/gl_array_list.c: Don't include xalloc.h.
36926         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36927         NULL upon out-of-memory.
36928         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36929         out-of-memory.
36930         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36931         Change return type to 'int'.
36932         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36933         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36934         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36935         upon out-of-memory.
36936         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36937         upon out-of-memory.
36938         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36939         upon out-of-memory.
36940         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36941         upon out-of-memory.
36942         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36943         out-of-memory.
36944         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36945         Update.
36946         (gl_array_list_implementation): Update.
36947         * lib/gl_carray_list.c: Don't include xalloc.h.
36948         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36949         Return NULL upon out-of-memory.
36950         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36951         out-of-memory.
36952         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36953         Change return type to 'int'.
36954         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36955         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36956         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36957         upon out-of-memory.
36958         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36959         upon out-of-memory.
36960         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36961         out-of-memory.
36962         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36963         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36964         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36965         Update.
36966         (gl_carray_list_implementation): Update.
36967         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36968         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36969         gl_linked_create_empty. Return NULL upon out-of-memory.
36970         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36971         out-of-memory.
36972         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36973         Change return type to 'int'. Return -1 upon out-of-memory.
36974         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36975         out-of-memory.
36976         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36977         upon out-of-memory.
36978         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36979         upon out-of-memory.
36980         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36981         NULL upon out-of-memory.
36982         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36983         upon out-of-memory.
36984         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36985         out-of-memory.
36986         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36987         Update.
36988         * lib/gl_linked_list.c: Don't include xalloc.h.
36989         (gl_linked_list_implementation): Update.
36990         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36991         (add_to_bucket): Change return type to 'int'.
36992         (gl_linkedhash_list_implementation): Update.
36993         * lib/gl_anytree_list1.h (free_subtree): New function.
36994         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36995         gl_tree_create_empty. Return NULL upon out-of-memory.
36996         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36997         Change return type to 'int'. Return -1 upon out-of-memory.
36998         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36999         out-of-memory.
37000         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37001         (gl_tree_remove_node): New function, moved here from
37002         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37003         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37004         Update.
37005         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37006         malloc, not xmalloc. Return NULL upon out-of-memory.
37007         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37008         out-of-memory.
37009         (gl_tree_remove_node_from_tree): New function, extracted from
37010         gl_tree_remove_node.
37011         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37012         upon out-of-memory.
37013         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37014         out-of-memory.
37015         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37016         upon out-of-memory.
37017         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37018         upon out-of-memory.
37019         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37020         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37021         not xmalloc. Return NULL upon out-of-memory.
37022         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37023         out-of-memory.
37024         (gl_tree_remove_node_from_tree): New function, extracted from
37025         gl_tree_remove_node.
37026         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37027         upon out-of-memory.
37028         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37029         out-of-memory.
37030         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37031         upon out-of-memory.
37032         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37033         upon out-of-memory.
37034         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37035         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37036         gl_anytree_list1.h before gl_anyavltree_list2.h.
37037         (gl_avltree_list_implementation): Update.
37038         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37039         gl_anytree_list1.h before gl_anyavltree_list2.h.
37040         (gl_rbtree_list_implementation): Update.
37041         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37042         Change return type to 'int'. Return -1 upon out-of-memory. Use
37043         __builtin_expect.
37044         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37045         (gl_avltreehash_list_implementation): Update.
37046         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37047         (gl_rbtreehash_list_implementation): Update.
37048         * modules/array-list (Depends-on): Remove xalloc.
37049         * modules/carray-list (Depends-on): Likewise.
37050         * modules/linked-list (Depends-on): Likewise.
37051         * modules/linkedhash-list (Depends-on): Likewise.
37052         * modules/avltree-list (Depends-on): Likewise.
37053         * modules/rbtree-list (Depends-on): Likewise.
37054         * modules/avltreehash-list (Depends-on): Likewise.
37055         * modules/rbtreehash-list (Depends-on): Likewise.
37056
37057         * modules/xsublist: New file.
37058         * lib/gl_xsublist.h: New file.
37059         * lib/gl_xsublist.c: New file.
37060         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37061         (gl_sublist_nx_create): New declaration.
37062         * lib/gl_sublist.c: Don't include xalloc.h.
37063         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37064         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37065         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37066         Change return type to 'int'. Return -1 upon out-of-memory.
37067         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37068         upon out-of-memory.
37069         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37070         NULL upon out-of-memory.
37071         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37072         upon out-of-memory.
37073         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37074         NULL upon out-of-memory.
37075         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37076         NULL upon out-of-memory.
37077         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37078         upon out-of-memory.
37079         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37080         (gl_sublist_list_implementation): Update.
37081         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37082         upon out-of-memory.
37083         * modules/sublist (Depends-on): Remove xalloc.
37084
37085         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37086         * tests/test-carray_list.c: Likewise.
37087         * tests/test-linked_list.c: Likewise.
37088         * tests/test-linkedhash_list.c: Likewise.
37089         * tests/test-avltree_list.c: Likewise.
37090         * tests/test-rbtree_list.c: Likewise.
37091         * tests/test-avltreehash_list.c: Likewise.
37092         * tests/test-rbtreehash_list.c: Likewise.
37093         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37094         * modules/carray-list-tests (Makefile.am): Likewise.
37095         * modules/linked-list-tests (Makefile.am): Likewise.
37096         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37097         * modules/avltree-list-tests (Makefile.am): Likewise.
37098         * modules/rbtree-list-tests (Makefile.am): Likewise.
37099         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37100         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37101
37102         * NEWS: Mention the changes.
37103
37104         * lib/clean-temp.c: Include gl_xlist.h.
37105         * modules/clean-temp (Depends-on): Add xlist.
37106
37107         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37108         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37109
37110         * tests/test-array_oset.c: Include gl_xlist.h.
37111         * modules/array-oset-tests (Depends-on): Add xlist.
37112
37113         Reported by José E. Marchesi <jemarch@gnu.org>.
37114
37115 2009-12-13  Bruno Haible  <bruno@clisp.org>
37116
37117         Move the malloc checking from module 'oset' to new module 'xoset'.
37118         * modules/xoset: New file.
37119         * lib/gl_xoset.h: New file.
37120         * lib/gl_xoset.c: New file.
37121         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37122         declarations.
37123         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37124         (struct gl_oset_implementation): Rename and change methods accordingly.
37125         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37126         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37127         'int'. Mark as __warn_unused_result__.
37128         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37129         gl_oset_create_empty.
37130         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37131         'int'.
37132         * lib/gl_array_oset.c: Don't include xalloc.h.
37133         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37134         malloc, not xmalloc.
37135         (grow): Change return type to 'int'. Don't call xalloc_die.
37136         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37137         to 'int'.
37138         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37139         'int'.
37140         (gl_array_oset_implementation): Update.
37141         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37142         gl_tree_create_empty.
37143         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37144         'int'.
37145         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37146         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37147         xmalloc.
37148         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37149         not xmalloc.
37150         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37151         xmalloc.
37152         (gl_avltree_oset_implementation): Update.
37153         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37154         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37155         xmalloc.
37156         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37157         not xmalloc.
37158         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37159         xmalloc.
37160         (gl_rbtree_oset_implementation): Update.
37161         * modules/array-oset (Depends-on): Remove xalloc.
37162         * modules/avltree-oset (Depends-on): Likewise.
37163         * modules/rbtree-oset (Depends-on): Likewise.
37164         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37165         * tests/test-avltree_oset.c: Likewise.
37166         * tests/test-rbtree_oset.c: Likewise.
37167         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37168         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37169         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37170         * NEWS: Mention the change.
37171
37172 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37173
37174         maint.mk: allow a project to override release-prep commands
37175         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37176         commands into a new rule.
37177         (release-prep): New rule.
37178         (release-prep-hook): New overridable variable.
37179
37180 2009-12-13  Bruno Haible  <bruno@clisp.org>
37181
37182         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37183
37184 2009-12-13  Jim Meyering  <meyering@redhat.com>
37185
37186         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37187         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37188
37189 2009-12-12  Bruno Haible  <bruno@clisp.org>
37190
37191         duplocale: Tweak.
37192         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37193
37194 2009-12-12  Karl Berry  <karl@gnu.org>
37195
37196         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37197
37198 2009-12-12  Bruno Haible  <bruno@clisp.org>
37199
37200         * m4/po.m4: Undo incorrect untabification.
37201
37202 2009-12-12  Bruno Haible  <bruno@clisp.org>
37203
37204         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37205         * modules/c-strtod (Depends-on): Add locale.
37206         * modules/c-strtold (Depends-on): Likewise.
37207
37208 2009-12-12  Bruno Haible  <bruno@clisp.org>
37209
37210         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37211
37212 2009-12-11  Eric Blake  <ebb9@byu.net>
37213
37214         setenv: relax requirement in light of POSIX ruling
37215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37216         not NULL.
37217         * tests/test-setenv.c (main): Relax test.
37218         * tests/test-unsetenv.c (main): Likewise.
37219         * doc/posix-functions/setenv.texi (setenv): Document this.
37220         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37221
37222 2009-12-11  Bruno Haible  <bruno@clisp.org>
37223
37224         New module 'fd-safer-flag'.
37225         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37226         * lib/dup-safer.c (dup_safer_flag): Remove function.
37227         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37228         * lib/fd-safer.c (fd_safer_flag): Remove function.
37229         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37230         * modules/cloexec (configure.ac): Drop indicator macro.
37231         * modules/fd-safer-flag: New file.
37232         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37233         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37234         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37235
37236 2009-12-11  Bruno Haible  <bruno@clisp.org>
37237
37238         Tests for module 'nl_langinfo'.
37239         * modules/nl_langinfo-tests: New file.
37240         * tests/test-nl_langinfo.sh: New file.
37241         * tests/test-nl_langinfo.c: New file.
37242
37243         New module 'nl_langinfo'.
37244         * lib/nl_langinfo.c: New file.
37245         * m4/nl_langinfo.m4: New file.
37246         * modules/nl_langinfo: New file.
37247         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37248
37249 2009-12-11  Bruno Haible  <bruno@clisp.org>
37250
37251         Tests for module 'langinfo'.
37252         * modules/langinfo-tests: New file.
37253         * tests/test-langinfo.c: New file.
37254
37255         New module 'langinfo'.
37256         * lib/langinfo.in.h: New file.
37257         * m4/langinfo_h.m4: New file.
37258         * modules/langinfo: New file.
37259         * doc/posix-headers/langinfo.texi: Mention the new module.
37260
37261 2009-12-11  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/config.charset: Untabify.
37264
37265 2009-12-11  Bruno Haible  <bruno@clisp.org>
37266
37267         * modules/unistd-safer (configure.ac): Drop indicator macro.
37268
37269 2009-12-11  Bruno Haible  <bruno@clisp.org>
37270
37271         Move pipe2-safer code to its own file.
37272         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37273         * lib/pipe-safer.c (pipe2_safer): Remove function.
37274         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37275         (Makefile.am): Add it to lib_SOURCES.
37276
37277 2009-12-10  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37280
37281 2009-12-10  Bruno Haible  <bruno@clisp.org>
37282
37283         Declare which arguments expect non-NULL values, for GCC and clang.
37284         * build-aux/arg-nonnull.h: New file.
37285         * modules/arg-nonnull: New file.
37286         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37287         (inet_ntop, inet_pton): Use it.
37288         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37289         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37290         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37291         (open, openat): Use it.
37292         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37293         (fnmatch): Use it.
37294         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37295         (getopt, getopt_long, getopt_long_only): Use it.
37296         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37297         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37298         Use it.
37299         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37300         (iconv_open): Use it.
37301         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37302         (strtoimax, strtoumax): Use it.
37303         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37304         (duplocale): Use it.
37305         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37306         (frexp, frexpl): Use it.
37307         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37308         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37309         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37310         (tsearch, tfind, tdelete, twalk): Use it.
37311         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37312         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37313         sigpending): Use it.
37314         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37315         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37316         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37317         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37318         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37319         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37320         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37321         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37322         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37323         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37324         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37325         Use it.
37326         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37327         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37328         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37329         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37330         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37331         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37332         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37333         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37334         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37335         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37336         strtoull, unsetenv): Use it.
37337         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37338         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37339         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37340         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37341         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37342         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37343         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37344         (strcasecmp, strncasecmp): Use it.
37345         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37346         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37347         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37348         rpl_setsockopt): Use it.
37349         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37350         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37351         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37352         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37353         (gettimeofday): Use it.
37354         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37355         (times): Use it.
37356         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37357         (uname): Use it.
37358         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37359         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37360         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37361         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37362         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37363         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37364         unlinkat, write): Use it.
37365         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37366         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37367         * lib/argv-iter.h: Include arg-nonnull.h.
37368         (_ATTRIBUTE_NONNULL_): Remove macro.
37369         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37370         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37371         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37372         optimization.
37373         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37374         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37375         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37376         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37377         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37378         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37379         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37380         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37381         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37382         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37383         * modules/dirent (Depends-on): Add arg-nonnull.
37384         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37385         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37386         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37387         * modules/fnmatch (Depends-on): Add arg-nonnull.
37388         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37389         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37390         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37391         * modules/glob (Depends-on): Add arg-nonnull.
37392         (Makefile.am): Insert arg-nonnull.h into glob.h.
37393         * modules/iconv_open (Depends-on): Add arg-nonnull.
37394         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37395         * modules/inttypes (Depends-on): Add arg-nonnull.
37396         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37397         * modules/locale (Depends-on): Add arg-nonnull.
37398         (Makefile.am): Insert arg-nonnull.h into locale.h.
37399         * modules/math (Depends-on): Add arg-nonnull.
37400         (Makefile.am): Insert arg-nonnull.h into math.h.
37401         * modules/netdb (Depends-on): Add arg-nonnull.
37402         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37403         * modules/search (Depends-on): Add arg-nonnull.
37404         (Makefile.am): Insert arg-nonnull.h into search.h.
37405         * modules/signal (Depends-on): Add arg-nonnull.
37406         (Makefile.am): Insert arg-nonnull.h into signal.h.
37407         * modules/spawn (Depends-on): Add arg-nonnull.
37408         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37409         * modules/stdio (Depends-on): Add arg-nonnull.
37410         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37411         * modules/stdlib (Depends-on): Add arg-nonnull.
37412         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37413         * modules/string (Depends-on): Add arg-nonnull.
37414         (Makefile.am): Insert arg-nonnull.h into string.h.
37415         * modules/strings (Depends-on): Add arg-nonnull.
37416         (Makefile.am): Insert arg-nonnull.h into strings.h.
37417         * modules/sys_socket (Depends-on): Add arg-nonnull.
37418         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37419         * modules/sys_stat (Depends-on): Add arg-nonnull.
37420         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37421         * modules/sys_time (Depends-on): Add arg-nonnull.
37422         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37423         * modules/sys_times (Depends-on): Add arg-nonnull.
37424         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37425         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37426         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37427         * modules/time (Depends-on): Add arg-nonnull.
37428         (Makefile.am): Insert arg-nonnull.h into time.h.
37429         * modules/unistd (Depends-on): Add arg-nonnull.
37430         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37431         * modules/wchar (Depends-on): Add arg-nonnull.
37432         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37433         * modules/argv-iter (Depends-on): Add arg-nonnull.
37434         * tests/test-canonicalize.c (null_ptr): New function.
37435         (main): Use it.
37436         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37437         (main): Use it.
37438         * tests/test-memmem.c (null_ptr): New function.
37439         (main): Use it.
37440         Reported by Jim Meyering.
37441
37442 2009-12-10  Bruno Haible  <bruno@clisp.org>
37443
37444         Use spaces for indentation, not tabs.
37445         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37446         * m4/*.m4: Untabify.
37447         * build-aux/*.h: Untabify.
37448         * tests/**/*.[hc]: Untabify.
37449         * README: New section "Indent with spaces, not TABs", based on
37450         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37451         * NEWS: Mention the change.
37452
37453 2009-12-10  Bruno Haible  <bruno@clisp.org>
37454
37455         pty test: Fix link error.
37456         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37457         test_pty_LDADD.
37458
37459 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37460
37461         * modules/pty: New file.
37462         * modules/pty-tests: New file.
37463         * m4/pty.m4: New file.
37464         * tests/test-pty.c: New file.
37465         * doc/glibc-headers/pty.texi: Modified.
37466         * doc/glibc-functions/forkpty.texi: Modified.
37467         * doc/glibc-functions/openpty.texi: Modified.
37468
37469 2009-12-10  Bruno Haible  <bruno@clisp.org>
37470
37471         Avoid syntax error in C++ mode.
37472         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37473
37474 2009-12-10  Bruno Haible  <bruno@clisp.org>
37475
37476         Use sed with option -e.
37477         * gnulib-tool (func_version, func_emit_copyright_notice,
37478         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37479         option -e to sed.
37480         * modules/link-warning (Makefile.am): Likewise.
37481
37482 2009-12-10  Jim Meyering  <meyering@redhat.com>
37483
37484         mgetgroups: do not write bytes beyond end of malloc'd buffer
37485         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37486         username, we call getgroups with a one-element-shorter buffer,
37487         but still told it the length was original, max_n_groups.
37488
37489 2009-12-09  Eric Blake  <ebb9@byu.net>
37490
37491         cloexec: relax license
37492         * modules/cloexec (Maintainer): Add myself.
37493         (License): Use LGPL, not GPL.
37494
37495         link-warning: optimize generation
37496         * modules/link-warning (Makefile.am): Reduce process usage.
37497
37498 2009-12-09  Bruno Haible  <bruno@clisp.org>
37499
37500         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37501         workaround was added on 2009-11-17.
37502
37503 2009-12-09  Jim Meyering  <meyering@redhat.com>
37504             Bruno Haible  <bruno@clisp.org>
37505
37506         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37507         * modules/link-warning (Makefile.am): Make the comment-removing sed
37508         command more robust in the face of bootstrap-prepended comment lines.
37509
37510 2009-12-09  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37513         most one group.
37514
37515 2009-12-09  Simon Josefsson <simon@josefsson.org>
37516             Bruno Haible  <bruno@clisp.org>
37517
37518         * build-aux/link-warning.h: Add copyright notice.
37519         * modules/link-warning (Makefile.am): Generate link-warning.h from
37520         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37521         * NEWS: Mention change in link-warning module.
37522         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37523         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37524         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37525         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37526         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37527         * modules/math (Makefile.am): Add dependency to math.h.
37528         * modules/search (Makefile.am): Add dependency to search.h.
37529         * modules/signal (Makefile.am): Add dependency to signal.h.
37530         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37531         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37532         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37533         * modules/string (Makefile.am): Add dependency to string.h.
37534         * modules/strings (Makefile.am): Add dependency to strings.h.
37535         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37536         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37537         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37538         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37539         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37540         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37541         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37542         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37543         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37544
37545 2009-12-09  Bruno Haible  <bruno@clisp.org>
37546
37547         fchdir: Optimize away rpl_fstat when possible.
37548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37549         REPLACE_OPEN_DIRECTORY.
37550         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37551
37552 2009-12-09  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/fchdir.c: Update comment.
37555
37556 2009-12-09  Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37559
37560 2009-12-08  Eric Blake  <ebb9@byu.net>
37561
37562         fchdir: avoid memory leak on re-registration.
37563         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37564
37565 2009-12-08  Jim Meyering  <meyering@redhat.com>
37566
37567         init.sh: avoid Solaris 10 /bin/sh portability problem
37568         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37569         sourced script:
37570           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37571           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37572           bar
37573         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37574         and two tests used that idiom.
37575         * tests/init.sh: Update suggested usage comments.
37576         (path_prepend_): New function, to be used in place
37577         of the --src-path=DIR option.
37578         (setup_): Move PATH-prepending code into path_prepend_.
37579         * tests/test-pread.sh: Adapt to new usage.
37580         * tests/test-xalloc-die.sh: Likewise.
37581
37582 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37583
37584         * doc/gnulib.texi (Glibc pty.h): Add.
37585         * doc/glibc-functions/forkpty.texi: Add.
37586         * doc/glibc-functions/openpty.texi: Add.
37587         Suggested by Bruno Haible.
37588
37589 2009-12-08  Eric Blake  <ebb9@byu.net>
37590
37591         fchdir: fix logic bugs
37592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37593         * tests/test-fchdir.c (main): Enhance test.
37594         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37595         is in use.
37596
37597         dup2: fix logic bugs
37598         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37599         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37600         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37601         exists.
37602         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37603
37604 2009-12-07  Eric Blake  <ebb9@byu.net>
37605
37606         unlink: fix m4 detection
37607         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37608
37609         unistd-safer: add unit test
37610         * modules/unistd-safer-tests: New file.
37611         * tests/test-dup-safer.c: Likewise.
37612         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37613         * tests/test-dup2.c (setmode): Likewise.
37614         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37615
37616         cloexec: preserve text vs. binary across dup_cloexec
37617         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37618         mode.
37619         * modules/dup2-tests (Depends-on): Add binary-io.
37620         * modules/cloexec-tests (Depends-on): Likewise.
37621         * tests/test-dup2.c (setmode, is_mode): New helpers.
37622         (main): Add tests that translation mode is preserved.
37623         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37624         Reported by Bruno Haible.
37625
37626         mgetgroups: reduce duplicate listings
37627         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37628         resulting array.
37629         * tests/test-chown.h (test_chown): Simplify client.
37630         * tests/test-lchown.h (test_lchown): Likewise.
37631
37632 2009-12-06  Bruno Haible  <bruno@clisp.org>
37633
37634         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37635         value.
37636
37637 2009-12-06  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/progname.c: Include stdio.h, stdlib.h.
37640         (set_program_name): Reject a NULL argument.
37641
37642 2009-12-05  Eric Blake  <ebb9@byu.net>
37643
37644         pipe2-safer: new module
37645         * modules/pipe2-safer: New file.
37646         * lib/unistd-safer.h (pipe2_safer): New prototype.
37647         * lib/unistd--.h (pipe2): New wrapper.
37648         * lib/pipe-safer.c (pipe2_safer): New function.
37649         * modules/pipe (Depends-on): Add pipe2-safer.
37650         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37651
37652         stdlib-safer: preserve cloexec flag for mkostemp[s]
37653         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37654         fd_safer_flag.
37655
37656         unistd-safer: allow preservation of cloexec status via flag
37657         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37658         prototypes.
37659         * lib/dup-safer.c (dup_safer_flag): New function.
37660         * lib/fd-safer.c (fd_safer_flag): Likewise.
37661         * modules/cloexec (configure.ac): Set witness.
37662
37663         test-dup2: enhance test
37664         * modules/dup2-tests (Depends-on): Add cloexec.
37665         * tests/test-dup2.c (main): Enhance test.
37666
37667         cloexec: add dup_cloexec
37668         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37669         header and comments.
37670         * lib/cloexec.c (set_cloexec_flag): Add comments.
37671         (dup_cloexec): New function, with mingw implementation borrowed
37672         from...
37673         * lib/w32spawn.h (dup_noinherit): ...here.
37674         * modules/execute (Depends-on): Add cloexec.
37675         * modules/pipe (Depends-on): Likewise.
37676         * modules/cloexec (Depends-on): Add dup2.
37677         * modules/cloexec-tests (Files): New file.
37678         * tests/test-cloexec.c: Likewise.
37679
37680         test-xalloc-die: fix test for mingw
37681         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37682         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37683         directory and .exe suffix off argv[0] output.
37684
37685         test-fseeko: fix test for mingw
37686         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37687         than undefining fseek, so test will pass on mingw.
37688
37689 2009-12-05  Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/progname.h (set_program_name): Clarify specification.
37692         * lib/progname.c (set_program_name): Likewise.
37693         Reported by Jim Meyering.
37694
37695 2009-12-05  Jim Meyering  <meyering@redhat.com>
37696
37697         maint.mk: backslash-escape parens in default regexp
37698         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37699         backslash-escape the literal parentheses.
37700
37701         maint.mk: news-date-check: use grep -E
37702         * top/maint.mk (today): Define a Make variable, not a...
37703         (news-date-check): ...shell variable.
37704         (news-date-regexp): Use the Make variable.
37705         Use grep's -E option.  Change the failing diagnostic to mention
37706         the variable, $(news-date-regexp).
37707
37708 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37709
37710         maintainer-makefile: allow customization of NEWS entry format
37711         * top/maint.mk (news-date-regexp): New overridable variable.
37712         (news-date-check): Use it.
37713
37714 2009-12-04  Eric Blake  <ebb9@byu.net>
37715
37716         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37717         * lib/mgetgroups.h (xgetgroups): New prototype.
37718         * lib/mgetgroups.c (xgetgroups): New wrapper.
37719         (mgetgroups): Handle ENOSYS.
37720         * modules/mgetgroups (Depends-on): Add realloc.
37721         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37722
37723         mgetgroups: avoid argument promotion issues with -1
37724         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37725         for invalid gid_t.
37726         * tests/test-chown.h (getegid, test_chown): Likewise.
37727         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37728
37729 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37730
37731         exclude: Fix header file problems.
37732         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37733
37734 2009-12-01  Jim Meyering  <meyering@redhat.com>
37735
37736         fts: fts_open: do not let an empty string cause immediate failure
37737         This is required in support of GNU rm, for which the command
37738         "rm A '' B" must process and remove both A and B, in spite of
37739         the empty string argument.
37740         * lib/fts.c (fts_open): Do not let the presence of an empty string
37741         cause fts_open to fail immediately.  Most fts-using tools must be
37742         able to process all arguments, in order, and can be expected to
37743         diagnose such arguments themselves.
37744
37745 2009-11-30  Eric Blake  <ebb9@byu.net>
37746
37747         utimens: fix compilation error
37748         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37749         Declare variable at right scope.
37750
37751 2009-11-29  Jim Meyering  <meyering@redhat.com>
37752
37753         bootstrap: handle perl-5.11's changed --version output
37754         * build-aux/bootstrap (get_version): Handle perl separately,
37755         since perl-5.11's --version output is different.
37756
37757 2009-11-28  Jim Meyering  <meyering@redhat.com>
37758
37759         userspec: depend on the inttostr module, too
37760         * modules/userspec (Depends-on): Add inttostr.
37761
37762         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37763         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37764         number of MAXUID when it evaluates to (uid_t) -1.
37765         Likewise for group ID.  Reported by Matt McCutchen in
37766         <http://savannah.gnu.org/bugs/?28113>
37767
37768         userspec: reformat to use spaces, not TABs
37769         * lib/userspec.c: Expand TABs to spaces.
37770         Add Emacs' "indent-tabs-mode: nil" hint.
37771
37772 2009-11-27  Eric Blake  <ebb9@byu.net>
37773
37774         getopt-gnu: flush out another BSD bug
37775         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37776         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37777         flush out BSD bug.
37778         * tests/test-getopt.h (test_getopt): End lists with NULL.
37779         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37780         (test_getopt_long_posix): Enhance test.
37781         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37782         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37783         getopt-gnu.
37784         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37785         Likewise.
37786
37787 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37788
37789         * modules/idpriv-droptemp-tests (Notice): Fix text.
37790
37791 2009-11-27  Jim Meyering  <meyering@redhat.com>
37792
37793         test-xalloc-die: avoid spurious failure due to libtool argv difference
37794         In a libtool-enabled project, this test would fail due to a difference
37795         in the emitted program name, e.g.,
37796         -test-xalloc-die: memory exhausted
37797         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37798         Use program to avoid that.
37799         * modules/xalloc-die-tests (Depends-on): Add progname.
37800         * tests/test-xalloc-die.c: Include progname.h".
37801         (program_name): Remove decl.
37802         (main): Call set_program_name.
37803         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37804
37805 2009-11-26  Richard Jones  <rjones@redhat.com>
37806
37807         w32sock: leave win32 error in place.
37808         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37809
37810 2009-11-26  Eric Blake  <ebb9@byu.net>
37811
37812         init.sh: suggest to use skip_ and fail_ functions in comments
37813         * tests/init.sh: Add a sentence.
37814
37815 2009-11-25  Bruno Haible  <bruno@clisp.org>
37816
37817         init.sh: add documentation in comments
37818         * tests/init.sh: Add some developer and user documentation.
37819
37820 2009-11-26  Jim Meyering  <meyering@redhat.com>
37821
37822         init.sh: accommodate even those who specify bogus srcdir manually
37823         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37824         configure-time tests to be sanitized, so that there is no need to
37825         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37826         (with no double quotes) suffices.  However, since tests may be
37827         invoked manually, and since you may explicitly set srcdir to the
37828         name of a directory containing spaces, do quote its uses here.
37829         * tests/test-pread.sh: Likewise.
37830         Suggested by Bruno Haible.
37831
37832         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37833         * tests/test-pread.sh: Write no data into the pipe, because
37834         test-pread actually reads none.  This avoids a diagnostic,
37835         "bash: echo: write error: Broken pipe", that arises in the unusual
37836         event something is ignoring SIGPIPE, and might be interpreted
37837         as some sort of failure.  Reported by Bruno Haible.
37838
37839 2009-11-25  Jim Meyering  <meyering@redhat.com>
37840
37841         test-pread: cover failure with ESPIPE and EINVAL
37842         * tests/test-pread.c (main): Test for failure, too.
37843         * tests/test-pread.sh: Invoke with stdin on a pipe.
37844         Suggested by Eric Blake.
37845
37846         pread: improvement and fix
37847         * modules/pread (Depends-on): Depend on lseek, for portability to
37848         e.g., mingw.  Suggested by Eric Blake.
37849         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37850
37851         unistd.in.h: correct declaration of pread
37852         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37853         Reported by Richard W.M. Jones.
37854
37855         test-pread.sh: distribute the test script
37856         * modules/pread-tests (Files): Include test-pread.sh.
37857
37858         test-pread.sh: clean up
37859         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37860         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37861         That is unnecessary, since it's always ".".
37862         Suggestion from Eric Blake.
37863
37864         test-pread.sh: make executable
37865         * tests/test-pread.sh: Set executable bit.
37866         Reported by Eric Blake.
37867
37868         correct typo in test-pread.sh
37869         * tests/test-pread.sh: Add #! line.
37870
37871         test pread
37872         * tests/test-pread.c: New file.
37873         * tests/test-pread.sh: Likewise.
37874         * modules/pread-tests: Likewise.
37875
37876         pread: new module
37877         * modules/pread: New file.
37878         * lib/unistd.in.h (pread): Define/declare.
37879         * lib/pread.c (pread): New file.
37880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37881         * modules/unistd (Makefile.am): Substitute witnesses.
37882         * doc/posix-functions/pread.texi (pread): Update.
37883         * MODULES.html.sh: Add pread.
37884
37885 2009-11-25  Jim Meyering  <meyering@redhat.com>
37886
37887         tests/init.sh: new file to be used via most *.sh tests
37888         * tests/init.sh: New file.
37889
37890 2009-11-25  Eric Blake  <ebb9@byu.net>
37891
37892         utimens: work around older Linux failure with symlinks
37893         * lib/utimens.c (lutimensat_works_really): New variable.
37894         (fdutimens, lutimens): Use it to manage kernels that support
37895         nanosecond times on files, but not on symlinks.
37896         Reported by OndÅ™ej Vašík.
37897
37898         utimes: fix configure grammar
37899         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37900
37901 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37902
37903         regex: Fix fastmap for multibyte character ranges.
37904         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37905         characters when a multibyte character range is included.
37906
37907 2009-11-22  Andy Wingo  <wingo@pobox.com>
37908
37909         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37910         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37911
37912 2009-11-24  Bruno Haible  <bruno@clisp.org>
37913
37914         doc: Most *_l functions exist in MacOS X 10.5.
37915         * doc/posix-functions/duplocale.texi: Update platforms list.
37916         * doc/posix-functions/freelocale.texi: Likewise.
37917         * doc/posix-functions/newlocale.texi: Likewise.
37918         * doc/posix-functions/uselocale.texi: Likewise.
37919         * doc/posix-functions/isalnum_l.texi: Likewise.
37920         * doc/posix-functions/isalpha_l.texi: Likewise.
37921         * doc/posix-functions/isblank_l.texi: Likewise.
37922         * doc/posix-functions/iscntrl_l.texi: Likewise.
37923         * doc/posix-functions/isdigit_l.texi: Likewise.
37924         * doc/posix-functions/isgraph_l.texi: Likewise.
37925         * doc/posix-functions/islower_l.texi: Likewise.
37926         * doc/posix-functions/isprint_l.texi: Likewise.
37927         * doc/posix-functions/ispunct_l.texi: Likewise.
37928         * doc/posix-functions/isspace_l.texi: Likewise.
37929         * doc/posix-functions/isupper_l.texi: Likewise.
37930         * doc/posix-functions/iswalnum_l.texi: Likewise.
37931         * doc/posix-functions/iswalpha_l.texi: Likewise.
37932         * doc/posix-functions/iswblank_l.texi: Likewise.
37933         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37934         * doc/posix-functions/iswctype_l.texi: Likewise.
37935         * doc/posix-functions/iswdigit_l.texi: Likewise.
37936         * doc/posix-functions/iswgraph_l.texi: Likewise.
37937         * doc/posix-functions/iswlower_l.texi: Likewise.
37938         * doc/posix-functions/iswprint_l.texi: Likewise.
37939         * doc/posix-functions/iswpunct_l.texi: Likewise.
37940         * doc/posix-functions/iswspace_l.texi: Likewise.
37941         * doc/posix-functions/iswupper_l.texi: Likewise.
37942         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37943         * doc/posix-functions/isxdigit_l.texi: Likewise.
37944         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37945         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37946         * doc/posix-functions/strcoll_l.texi: Likewise.
37947         * doc/posix-functions/strfmon_l.texi: Likewise.
37948         * doc/posix-functions/strftime_l.texi: Likewise.
37949         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37950         * doc/posix-functions/strxfrm_l.texi: Likewise.
37951         * doc/posix-functions/tolower_l.texi: Likewise.
37952         * doc/posix-functions/toupper_l.texi: Likewise.
37953         * doc/posix-functions/towctrans_l.texi: Likewise.
37954         * doc/posix-functions/towlower_l.texi: Likewise.
37955         * doc/posix-functions/towupper_l.texi: Likewise.
37956         * doc/posix-functions/wcscoll_l.texi: Likewise.
37957         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37958         * doc/posix-functions/wctrans_l.texi: Likewise.
37959         * doc/posix-functions/wctype_l.texi: Likewise.
37960         * doc/glibc-functions/strptime_l.texi: Likewise.
37961         * doc/glibc-functions/strtod_l.texi: Likewise.
37962         * doc/glibc-functions/strtof_l.texi: Likewise.
37963         * doc/glibc-functions/strtol_l.texi: Likewise.
37964         * doc/glibc-functions/strtold_l.texi: Likewise.
37965         * doc/glibc-functions/strtoll_l.texi: Likewise.
37966         * doc/glibc-functions/strtoul_l.texi: Likewise.
37967         * doc/glibc-functions/strtoull_l.texi: Likewise.
37968         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37969         * doc/glibc-functions/wcstod_l.texi: Likewise.
37970         * doc/glibc-functions/wcstof_l.texi: Likewise.
37971         * doc/glibc-functions/wcstol_l.texi: Likewise.
37972         * doc/glibc-functions/wcstold_l.texi: Likewise.
37973         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37974         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37975         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37976
37977 2009-11-24  Bruno Haible  <bruno@clisp.org>
37978
37979         duplocale: Fix logic bug.
37980         * lib/duplocale.c: Don't include <langinfo.h>.
37981         (_NL_LOCALE_NAME): Remove macro.
37982         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37983         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37984
37985 2009-11-23  Jim Meyering  <meyering@redhat.com>
37986
37987         test-update-copyright: don't hard-code /usr/bin/perl
37988         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37989         perl to print the current year.  Gilles Espinasse reported that
37990         the replaced use of perl was hard-coded as /usr/bin/perl.
37991
37992 2009-11-23  Bruno Haible  <bruno@clisp.org>
37993
37994         duplocale: Add support for glibc 2.3.x.
37995         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37996
37997 2009-11-22  Bruno Haible  <bruno@clisp.org>
37998
37999         vasnprintf: Tiny optimization.
38000         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38001         MacOS X.
38002
38003 2009-11-22  Bruno Haible  <bruno@clisp.org>
38004
38005         Tests for module 'duplocale'.
38006         * modules/duplocale-tests: New file.
38007         * tests/test-duplocale.c: New file.
38008
38009         New module 'duplocale'.
38010         * m4/duplocale.m4: New file.
38011         * lib/locale.in.h (duplocale): New declaration.
38012         * lib/duplocale.c: New file.
38013         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38014         gl_LOCALE_H_DEFAULTS): New macros.
38015         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38016         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38017         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38018         REPLACE_DUPLOCALE.
38019         * modules/duplocale: New file.
38020         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38021
38022 2009-11-22  Bruno Haible  <bruno@clisp.org>
38023
38024         * modules/locale-tests (configure.ac): Test for newlocale function.
38025         * tests/test-locale.c: When the system has extended locale functions,
38026         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38027
38028         locale: Make locale_t available when possible.
38029         * lib/locale.in.h: Include <xlocale.h> when it exists.
38030         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38031         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38032         * modules/locale (Depends-on): Add extensions.
38033         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38034         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38035
38036 2009-11-22  Bruno Haible  <bruno@clisp.org>
38037
38038         Add comments.
38039         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38040         invocation.
38041         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38042         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38043         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38044
38045 2009-11-22  Bruno Haible  <bruno@clisp.org>
38046
38047         error: account for the possibility of freopen (stdout).
38048         * lib/error.c: Include <unistd.h>.
38049         (flush_stdout): New function, extracted from error and error_at_line.
38050         Determine stdout's fd dynamically.
38051         (error, error_at_line): Invoke flush_stdout.
38052         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38053         * modules/error (Depends-on): Add unistd.
38054
38055 2009-11-22  Bruno Haible  <bruno@clisp.org>
38056
38057         diffseq: Add comment.
38058         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38059
38060 2009-11-22  Jim Meyering  <meyering@redhat.com>
38061
38062         c-stack: avoid defining an unused static function
38063         * lib/c-stack.c (find_stack_direction): Do not define this function
38064         when it will not be used.
38065
38066         diffseq: avoid spurious gcc warnings
38067         * lib/diffseq.h (IF_LINT2): Define.
38068         (compareseq): Use it to initialize two members of "part".
38069         This avoids two used-uninitialized warnings.
38070
38071 2009-11-21  Jim Meyering  <meyering@redhat.com>
38072
38073         c-stack: avoid "ignoring return value of `write'" warning
38074         * lib/c-stack.c: Include "ignore-value.h".
38075         (die): Explicitly ignore each write return value.
38076         * modules/c-stack (Depends-on): Add ignore-value.
38077
38078 2009-11-21  Bruno Haible  <bruno@clisp.org>
38079
38080         diffseq: reduce scope of variable 'best'.
38081         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38082         variable, earlier used for two different purposes.
38083
38084 2009-11-21  Jim Meyering  <meyering@redhat.com>
38085
38086         diffseq: remove useless assignment to "best"
38087         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38088         assignment.  At that point "best" is already guaranteed to be zero.
38089
38090 2009-11-20  Eric Blake  <ebb9@byu.net>
38091
38092         build: mention ftp redirector in release announcements
38093         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38094         values that used to come from cfg.mk; mention FTP redirect URL.
38095         * build-aux/announce-gen: Mention the mirror list.
38096         Suggested by Karl Berry.
38097
38098         nanosleep: improve port to mingw
38099         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38101         LIB_NANOSLEEP, but only when needed.
38102         * modules/select (Link): Document LIBSOCKET.
38103         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38104         enough.
38105
38106         nanosleep: work around cygwin bug
38107         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38108         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38109         bug.
38110         (getnow): Delete, not needed.
38111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38112         LIB_CLOCK_GETTIME.
38113         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38114         clock-time, gettime.
38115         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38116         bug.
38117         * modules/nanosleep-tests: New test.
38118         * tests/test-nanosleep.c: New file.
38119
38120         sleep: work around cygwin bug
38121         * lib/sleep.c (rpl_sleep): Work around the bug.
38122         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38123         (gl_PREREQ_SLEEP): Delete unused macro.
38124         * modules/sleep (Depends-on): Add verify.
38125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38126         * modules/unistd (Makefile.am): Substitute witness.
38127         * lib/unistd.in.h (sleep): Update prototype.
38128         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38129         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38130         * modules/sleep-tests (Depends-on): Check for alarm.
38131
38132 2009-11-20  Jim Meyering  <meyering@redhat.com>
38133
38134         maint.mk: improve sc_prohibit_magic_number_exit
38135         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38136         so it does not match uses like System.exit(1).
38137         Add comments showing how to correct all offenders.
38138
38139 2009-11-19  Eric Blake  <ebb9@byu.net>
38140
38141         xalloc-die-tests: add missing library
38142         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38143
38144         test-xvasprintf: silence compiler warnings
38145         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38146         empty string from gcc.
38147
38148 2009-11-19  Jim Meyering  <meyering@redhat.com>
38149
38150         xfreopen: new module, from coreutils
38151         * modules/xfreopen: New module.
38152         * lib/xfreopen.c: New file.
38153         * lib/xfreopen.h: New file.
38154         * MODULES.html.sh (File stream based Input/Output"): Add it.
38155
38156 2009-11-19  Eric Blake  <ebb9@byu.net>
38157
38158         manywarnings: depend on warnings
38159         * modules/manywarnings (Depends-on): Add warnings.
38160
38161         build: avoid compiler warnings
38162         * lib/select.c (rpl_select): Delete unused variable.
38163         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38164
38165 2009-11-18  Eric Blake  <ebb9@byu.net>
38166
38167         tests: avoid false negative with --with-packager
38168         * tests/test-version-etc.sh: Discard packager information.
38169         * tests/test-argp-version-etc-1.sh: Likewise.
38170         Reported by Mike Frysinger.
38171
38172         utimens: fix regression on Solaris
38173         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38174         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38175         can only change fd timestamps via futimesat.  Instead, use an
38176         additional witness macro to avoid BSD bug.
38177         Reported by Jim Meyering.
38178
38179 2009-11-17  Eric Blake  <ebb9@byu.net>
38180
38181         usleep: use it to simplify tests
38182         * modules/stat-time-tests (Depends-on): Add usleep.
38183         (configure.ac): Drop usleep check.
38184         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38185         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38186         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38187         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38188         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38189         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38190         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38191         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38192         Likewise.
38193         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38194         * tests/test-lchown.h (nap): Likewise.
38195         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38196         * tests/test-stat-time.c (nap): Likewise.
38197         * tests/test-utimens-common.h (nap): Update comments.
38198
38199         usleep: new module
38200         * modules/usleep: New file.
38201         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38202         * lib/usleep.c (usleep): Likewise.
38203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38204         * modules/unistd (Makefile.am): Substitute witnesses.
38205         * lib/unistd.in.h (usleep): Add declaration.
38206         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38207         * MODULES.html.sh (Date and time): Likewise.
38208         * modules/usleep-tests (Depends-on): New test.
38209         * tests/test-usleep.c: New file.
38210
38211         chown: work around OpenBSD bug
38212         * lib/chown.c (rpl_chown): Work around the bug.
38213         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38214         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38215         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38216         * modules/chown (Depends-on): Add stdbool.
38217         * modules/lchown (Depends-on): Likewise.
38218         * doc/posix-functions/chown.texi (chown): Document the bug.
38219         * doc/posix-functions/lchown.texi (lchown): Likewise.
38220         * tests/test-lchown.h (test_chown): Relax test.
38221
38222         mkstemp: avoid conflict with C++ keyword template
38223         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38224         * lib/mkostemp.c (mkostemp): Likewise.
38225         * lib/mkostemps.c (mkostemps): Likewise.
38226         * lib/mkstemp.c (mkstemp): Likewise.
38227         * lib/mkstemps.c (mkstemps): Likewise.
38228
38229         xalloc-die-tests: optimize
38230         * tests/test-xalloc-die.sh: Reduce number of processes.
38231
38232 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38233
38234         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38235         patch from ludo@gnu.org (Ludovic Courtès).
38236
38237 2009-11-17  Jim Meyering  <meyering@redhat.com>
38238
38239         version-etc: use proper license string
38240         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38241         * modules/version-etc-fsf: Likewise.
38242
38243 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38244
38245         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38246         printed to stdout.  Deal with EOL differences.
38247
38248 2009-11-17  Eric Blake  <ebb9@byu.net>
38249
38250         unsetenv: work around Solaris bug
38251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38252         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38253         Reported by Jim Meyering.
38254
38255         vasnprintf: avoid compiler warnings
38256         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38257         variables.
38258         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38259
38260 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38261
38262         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38263         settings since xalloc-die is no longer the self test,
38264         xalloc-die.sh is.
38265
38266 2009-11-17  Jim Meyering  <meyering@redhat.com>
38267
38268         test-xalloc-die.sh: make the code agree with the commit log
38269         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38270         at the end, just in case you happen to have a test-xalloc-die
38271         program in some other PATH directory.
38272
38273         test-xalloc-die.sh: fix a portability bug
38274         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38275         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38276         Otherwise, argv[0] (as often seen in diagnostics) would be too
38277         system-dependent, sometimes with, and sometimes without the leading "./".
38278
38279         version-etc-fsf: relax license to LGPLv3+
38280         * modules/version-etc-fsf (License): Relax license.
38281
38282 2009-11-16  Eric Blake  <ebb9@byu.net>
38283
38284         xalloc-die-tests: avoid printing null pointer
38285         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38286         shell script.
38287         * tests/test-xalloc-die.c (program_name): Declare.
38288         * tests/test-xalloc-die.sh (tmpfiles): New file.
38289
38290         setenv, unsetenv: work around various bugs
38291         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38292         (setenv) [HAVE_SETENV]: Work around bugs.
38293         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38295         for bugs.
38296         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38297         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38299         * modules/stdlib (Makefile.am): Update substitutions.
38300         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38301         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38302         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38303         * modules/setenv-tests: New test.
38304         * modules/unsetenv-tests: Likewise.
38305         * tests/test-setenv.c: New file.
38306         * tests/test-unsetenv.c: Likewise.
38307
38308 2009-11-16  Jim Meyering  <meyering@redhat.com>
38309
38310         version-etc: relax license to LGPLv3+
38311         * modules/version-etc (License): Relax license.
38312
38313         better AC_REQUIRE expanded-before-required-warning avoidance
38314         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38315         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38316         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38317         which is no longer needed.
38318
38319 2009-11-16  Eric Blake  <ebb9@byu.net>
38320
38321         test-freading: clean up temporary file
38322         * tests/test-freading.c (main): Remove file on success, and use
38323         ASSERT more liberally.
38324         Reported by Jim Meyering.
38325
38326 2009-11-16  Jim Meyering  <meyering@redhat.com>
38327
38328         avoid new AC_REQUIRE expanded-before-required warnings
38329         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38330         merely using it.
38331         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38332         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38333
38334 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38335
38336         * tests/test-xalloc-die.c: New file.
38337         * modules/xalloc-die-tests: New file.
38338         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38339         XFAIL_TESTS so it can be appended by modules.
38340
38341 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38342
38343         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38344         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38345
38346 2009-11-14  Eric Blake  <ebb9@byu.net>
38347
38348         fnmatch: avoid compiler warning
38349         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38350         to silence compiler warning about mismatch signedness in ?:.
38351         Reported by Robert Millan.
38352
38353         intprops: add double-inclusion guard
38354         * lib/intprops.h: Allow idempotent includes.
38355         Suggested by Bruce Korb.
38356
38357         openat: detect Solaris fchownat bug
38358         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38359         penalizing glibc chownat when only lchownat is broken.
38360         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38361         trailing slash bugs.
38362         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38363         * modules/openat-tests (Files): Include more files.
38364         (Depends-on): Add mgetgroups, sleep, stat-time.
38365         (configure.ac): Add additional checks.
38366         (Makefile.am): Build new test.
38367         * tests/test-fchownat.c: New file.
38368
38369         lchown: detect Solaris and FreeBSD bug
38370         * lib/lchown.c (rpl_lchown): Work around bug.
38371         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38373         * modules/unistd (Makefile.am): Populate it.
38374         * lib/unistd.in.h (lchown): Update declaration.
38375         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38376         * modules/lchown-tests: New file.
38377         * tests/test-lchown.h (test_lchown): Likewise.
38378         * tests/test-lchown.c (main): Likewise.
38379
38380         chown: detect Solaris and FreeBSD bug
38381         * lib/chown.c (rpl_chown): Work around bug.
38382         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38383         (gl_PREREQ_CHOWN): Delete.
38384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38385         * modules/unistd (Makefile.am): Populate it.
38386         * lib/unistd.in.h (chown): Update declaration.
38387         * lib/lchown.c (chown): Update client.
38388         * modules/lchown (Depends-on): Add lstat.
38389         * doc/posix-functions/chown.texi (chown): Document the bug.
38390         * doc/posix-functions/getgroups.texi (getgroups): Document
38391         getgroups pitfall.
38392         * modules/chown-tests: New file.
38393         * tests/test-chown.h (test_chown): Likewise.
38394         * tests/test-chown.c (main): Likewise.
38395
38396 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38397
38398         gnulib-tool: correctly detect absence of m4 directories
38399         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38400
38401 2009-11-14  Jim Meyering  <meyering@redhat.com>
38402
38403         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38404         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38405
38406 2009-11-14  John W. Eaton  <jwe@gnu.org>
38407
38408         strftime.h: wrap funtion declaration in extern "C" block
38409         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38410
38411 2009-11-13  Eric Blake  <ebb9@byu.net>
38412
38413         getgroups: avoid compiler warning
38414         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38415
38416         getgroups: work around FreeBSD bug
38417         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38418         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38419         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38420         * tests/test-getgroups.c (main): Fix buffer overrun.
38421
38422         getgroups: avoid compilation failure
38423         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38424         * modules/getgroups (Depends-on): Add stdint.
38425
38426 2009-11-13  Jim Meyering  <meyering@redhat.com>
38427
38428         test-getgroups: avoid compilation failure
38429         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38430
38431 2009-11-13  Eric Blake  <ebb9@byu.net>
38432
38433         mgetgroups: new module, taken from coreutils
38434         * modules/mgetgroups: New file.
38435         * lib/mgetgroups.h: Likewise.
38436         * lib/mgetgroups.c (mgetgroups): Likewise.
38437         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38438         * MODULES.html.sh (Users and groups): Mention it.
38439
38440         getgroups: don't expose GETGROUPS_T to user
38441         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38442         an element at a time if GETGROUPS_T is wrong size.
38443         * lib/getugroups.h (getugroups): Change signature.
38444         * lib/unistd.in.h (getgroups): Likewise.
38445         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38446         signature needs fixing.
38447         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38448         AC_TYPE_GETGROUPS.
38449         * modules/group-member (Depends-on): Add getgroups.
38450         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38451         (group_member): Rely on getgroups replacement.
38452         * lib/getugroups.c (getugroups): Use gid_t.
38453         * tests/test-getgroups.c (main): Likewise.
38454         * NEWS: Mention the signature change.
38455         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38456         problem with signature.
38457         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38458         GETGROUPS_T is still useful for setgroups.
38459
38460         getgroups, getugroups: provide stubs for mingw
38461         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38462         * lib/getugroups.c (getugroups): Likewise.
38463         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38464         function.  Modernize replacement scheme.
38465         (gl_PREREQ_GETGROUPS): Delete.
38466         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38467         * modules/getgroups (configure.ac): Declare witness.
38468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38469         * modules/unistd (Depends-on): Substitute witness.
38470         * lib/unistd.in.h (getgroups): Declare replacement.
38471
38472         getgroups: avoid calling exit
38473         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38474         drop xalloc.
38475         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38476         dependencies.
38477         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38478         exiting, in the rare case of malloc failure.
38479
38480         getgroups: fix logic error
38481         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38482         has more than 20 groups.
38483         * modules/getgroups-tests: New test.
38484         * tests/test-getgroups.c: New file.
38485
38486 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38487
38488         * tests/test-base64.c: Improve.
38489
38490 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38491
38492         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38493         Blake <ebb9@byu.net>.
38494
38495 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38496
38497         * tests/test-xvasprintf.c: Add %s%s related checks.
38498
38499 2009-11-12  Eric Blake  <ebb9@byu.net>
38500
38501         version-etc: match standards.texi style
38502         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38503         and use <> only for URLs.
38504
38505 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38506
38507         fts: do not fail on a submount during traversal
38508         * lib/fts.c (fts_build): Read the stat info again after opening
38509         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38510         Original report at http://bugzilla.redhat.com/501848.
38511
38512 2009-11-12  Jim Meyering  <meyering@redhat.com>
38513
38514         bootstrap: sync from coreutils
38515         * build-aux/bootstrap (bootstrap_epilogue): New function.
38516         Use git_modules_config in one more place.  This make bootstrap's
38517         --gnulib-srcdir option more useful for testing.
38518
38519         bootstrap: generalize autoheader check
38520         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38521         AC_CONFIG_HEADERS.
38522
38523 2009-11-11  Eric Blake  <ebb9@byu.net>
38524
38525         mkfifoat: use new modules for Solaris and BSD bugs
38526         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38527         * lib/mkfifoat.c (mknodat): Split...
38528         * lib/mknodat.c (mknodat): ...into new file.
38529         * modules/mkfifoat (Files): Ship new file.
38530         (Depends-on): Add mkfifo, mknod.
38531         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38532         (Depends-on): Add symlink.
38533         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38534         redundant with test_mkfifo.h.
38535         (do_mkfifoat, do_mknodat): New helpers.
38536
38537         mknod: new module
38538         * modules/mknod: New file.
38539         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38540         * lib/mknod.c (mknod): Likewise.
38541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38542         defaults.
38543         * modules/sys_stat (Makefile.am): Substitute them.
38544         * lib/sys_stat.in.h (mknod): Declare replacement.
38545         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38546         Document it.
38547         * doc/posix-functions/mknod.texi (mknod): Likewise.
38548         * modules/mknod-tests: New test.
38549         * tests/test-mknod.c: Likewise.
38550
38551         mkfifo: new module
38552         * modules/mkfifo: New file.
38553         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38554         * lib/mkfifo.c (mkfifo): Likewise.
38555         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38556         defaults.
38557         * modules/sys_stat (Makefile.am): Substitute them.
38558         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38559         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38560         Document it.
38561         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38562         * modules/mkfifo-tests: New test.
38563         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38564         from test-mkfifoat.c.
38565         * tests/test-mkfifo.c: New file.
38566
38567         readlink: detect FreeBSD bug
38568         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38569         slash on symlink.
38570         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38571         * tests/test-readlink.h (test_readlink): Enhance test.
38572
38573         symlink: detect FreeBSD bug
38574         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38575         slash on symlink.
38576         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38577         * tests/test-symlink.h (test_symlink): Enhance test.
38578
38579 2009-11-10  Eric Blake  <ebb9@byu.net>
38580
38581         link: detect FreeBSD bug
38582         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38583         symlink.
38584         * doc/posix-functions/link.texi (link): Document the bug.
38585         * tests/test-link.h (test_link): Enhance test.
38586         * tests/test-linkat.c (main): Update caller.
38587
38588         unlink, remove: detect FreeBSD bug
38589         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38590         slash on symlink.
38591         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38592         * doc/posix-functions/remove.texi (remove): Likewise.
38593         * tests/test-unlink.h (test_unlink): Enhance test.
38594         * tests/test-remove.c (main): Likewise.
38595
38596 2009-11-09  Eric Blake  <ebb9@byu.net>
38597
38598         rename: detect FreeBSD bug
38599         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38600         slash on symlink.
38601         * modules/renameat-tests (Depends-on): Add filenamecat.
38602         * tests/test-rename.h (test_rename): Allow one more errno.
38603         * tests/test-renameat.c (main): Likewise.
38604         * doc/posix-functions/rename.texi (rename): Document the bug.
38605
38606         open: detect FreeBSD bug
38607         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38608         symlink.
38609         * doc/posix-functions/open.texi (open): Document the bug.
38610         * doc/posix-functions/utimes.texi (utimes): Likewise.
38611         * tests/test-open.h (test_open): Add parameters, and test symlink
38612         handling.
38613         * tests/test-open.c (main): Adjust caller.
38614         * tests/test-fcntl-safer.c (main): Likewise.
38615         * modules/open-tests (Depends-on): Add stdbool, symlink.
38616         * modules/fcntl-safer-tests (Depends-on): Likewise.
38617         * tests/test-openat.c (main): Add test-open tests.
38618
38619         stat: detect FreeBSD bug
38620         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38621         symlink.
38622         * doc/posix-functions/stat.texi (stat): Document the bug.
38623         * tests/test-stat.h (test_stat_func): Add argument.
38624         * tests/test-stat.c (main): Adjust caller.
38625         * tests/test-fstatat.c (main): Likewise.
38626         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38627         Reported by Jim Meyering.
38628
38629 2009-11-09  James Youngman  <jay@gnu.org>
38630
38631         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38632         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38633
38634 2009-11-08  Jim Meyering  <meyering@redhat.com>
38635
38636         utimens: remove invalid futimesat call
38637         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38638         It used the file descriptor of the target file as the DIR_FD
38639         parameter and NULL as the file name.  That caused failure with
38640         errno == EFAULT on FreeBSD-8.0-rc2
38641
38642 2009-11-07  Eric Blake  <ebb9@byu.net>
38643
38644         fflush, freadseek: use fseeko, not fseek
38645         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38646         (clear_ungetc_buffer): Avoid potential problems on large files.
38647         * lib/freadseek.c (freadseek): Likewise.
38648         * modules/freadseek (Depends-on): Add fseeko.
38649         * modules/fseek (configure.ac): Set a witness.
38650         * tests/test-fflush.c (main): Use fseeko.
38651         * tests/test-fpurge.c (fseek): Disable link warning.
38652         * tests/test-freadable.c (fseek): Likewise.
38653         * tests/test-freading.c (fseek): Likewise.
38654         * tests/test-fseeko.c (fseek): Likewise.
38655         * tests/test-ftell.c (fseek): Likewise.
38656         * tests/test-ftello.c (fseek): Likewise.
38657         * tests/test-fwritable.c (fseek): Likewise.
38658         * tests/test-fwriting.c (fseek): Likewise.
38659
38660 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38661
38662         * modules/memchr (Depends-on): Drop getpagesize dependency.
38663
38664 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38665
38666         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38667         Reported by Ludovic Courtès.
38668         * build-aux/pmccabe2html: Improve example usage.
38669         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38670
38671 2009-11-06  Jim Meyering  <meyering@redhat.com>
38672
38673         do-release-commit-and-tag: New module.
38674         Automate the release-commit and tag process.
38675         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38676         * modules/do-release-commit-and-tag: New file.
38677         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38678
38679 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38680
38681         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38682         because test-select.c uses inet_pton.
38683
38684 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38685
38686         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38687         GETADDRINFO_LIB.  Bump serial number.
38688         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38689         Suggested by Eric Blake <ebb9@byu.net>.
38690
38691 2009-11-05  Eric Blake  <ebb9@byu.net>
38692
38693         strtod: detect darwin bug
38694         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38695         Reported by Leo Davis.
38696
38697         freopen-safer: new module
38698         * modules/freopen-safer: New module.
38699         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38700         * lib/freopen-safer.c (freopen_safer): New file.
38701         * lib/stdio-safer.h (freopen_safer): New declaration.
38702         * lib/stdio--.h (freopen): New override.
38703         * MODULES.html.sh (File stream based Input/Output): Mention it.
38704         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38705         freopen-safer module.
38706         * doc/posix-functions/stderr.texi (stderr): Likewise.
38707         * doc/posix-functions/stdin.texi (stdin): Likewise.
38708         * doc/posix-functions/stdout.texi (stdout): Likewise.
38709         * modules/freopen-safer-tests: New test.
38710         * tests/test-reopen-safer.c: New file.
38711
38712 2009-11-05  Jim Meyering  <meyering@redhat.com>
38713
38714         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38715         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38716
38717 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38718
38719         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38720
38721 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38722
38723         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38724
38725 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38726
38727         Fix link error.
38728         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38729         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38730
38731 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38732
38733         * tests/test-func.c: Also test value of __func__.
38734
38735 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38736
38737         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38738         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38739
38740 2009-11-05  Bruno Haible  <bruno@clisp.org>
38741
38742         Fix link error.
38743         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38744         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38745         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38746
38747 2009-11-05  Bruno Haible  <bruno@clisp.org>
38748
38749         Tests for module 'inet_pton'.
38750         * modules/inet_pton-tests: New file.
38751         * tests/test-inet_pton.c: New file.
38752
38753 2009-11-05  Bruno Haible  <bruno@clisp.org>
38754
38755         Tests for module 'inet_ntop'.
38756         * modules/inet_ntop-tests: New file.
38757         * tests/test-inet_ntop.c: New file.
38758
38759 2009-11-04  Eric Blake  <ebb9@byu.net>
38760
38761         stdlib-safer: wrap all mkstemp variants
38762         * modules/mkostemp (configure.ac): Set witness.
38763         * modules/mkostemps (configure.ac): Likewise.
38764         * modules/mkstemps (configure.ac): Likewise.
38765         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38766         (mkstemps_safer): Wrap more functions.
38767         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38768         wrapping.
38769         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38770         (mkstemps_safer): Implement the wrappers.
38771
38772         mkstemps, mkostemps: new modules
38773         * modules/mkostemps: New module.
38774         * modules/mkstemps: Likewise.
38775         * lib/mkostemps.c (mkostemps): New file.
38776         * lib/mkstemps.c (mkstemps): Likewise.
38777         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38778         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38780         * modules/stdlib (Makefile.am): Substitute them.
38781         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38782         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38783         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38784         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38785         * MODULES.html.sh (File system functions): Mention them.
38786
38787         tempname: resync from glibc
38788         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38789         same values for __GT_FILE as glibc.  Abort even when assertions
38790         are disabled.
38791         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38792         match its value otherwise.  Allow idempotent inclusion.
38793         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38794         * lib/mkostemp.c (mkostemp): Likewise.
38795         * lib/mkstemp.c (mkstemp): Likewise.
38796         * lib/tmpfile.c (tmpfile): Likewise.
38797         * NEWS: Document this.
38798
38799         utimens: fix use of futimens on older Linux
38800         * lib/utimens.c (fdutimens): Use updated, rather than original,
38801         timespec to avoid bug in older Linux kernel.
38802         Reported by Simon Josefsson.
38803
38804 2009-11-04  Bruno Haible  <bruno@clisp.org>
38805
38806         Make num_processors more flexible and consistent.
38807         * lib/nproc.h (enum nproc_query): New type.
38808         (num_processors): Add a 'query' argument.
38809         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38810         (num_processors): Add a 'query' argument. Test the value of the
38811         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38812         mingw, count the number of CPUs available for the current process.
38813         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38814         Check for sched_getaffinity and sched_getaffinity_np.
38815         * modules/nproc (Depends-on): Add c-ctype, extensions.
38816         * NEWS: Mention the change.
38817
38818 2009-11-03  Bruno Haible  <bruno@clisp.org>
38819
38820         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38821
38822 2009-11-03  Jim Meyering  <meyering@redhat.com>
38823
38824         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38825         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38826         if it is defined.
38827
38828 2009-11-02  Eric Blake  <ebb9@byu.net>
38829
38830         mktime, timegm: share common declaration
38831         * lib/mktime-internal.h: New file.
38832         * lib/mktime.c: Use it rather than open-coding a declaration.
38833         * lib/timegm.c: Likewise.
38834         * modules/mktime (Files): Ship it.
38835         * modules/timegm (Files): Likewise.
38836         Suggested by Bruno Haible.
38837
38838         test-update-copyright: update test to match script changes
38839         * tests/test-update-copyright.sh: Avoid hard-coding perl
38840         location.  Don't update *.bak created by earlier runs.
38841
38842 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38843             Simon Josefsson  <simon@josefsson.org>
38844             Bruno Haible  <bruno@clisp.org>
38845
38846         Fix link error on Solaris 8.
38847         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38848         also in libnsl. Define also INET_PTON_LIB.
38849         * modules/inet_pton (Link): New section.
38850
38851 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38852             Bruno Haible  <bruno@clisp.org>
38853
38854         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38855         * modules/inet_ntop (Link): New section.
38856         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38857
38858 2009-11-02  Eric Blake  <ebb9@byu.net>
38859
38860         maint: avoid compiler warnings in m4 macros
38861         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38862         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38863
38864 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38865
38866         * m4/pmccabe2html.m4: Remove file.
38867         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38868         function.  Change maintainer.
38869         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38870         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38871         Courtès).
38872
38873 2009-10-31  Eric Blake  <ebb9@byu.net>
38874
38875         fseeko: fix m4 regression
38876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38877         regression from 2009-10-27.
38878         Reported by Ralf Wildenhues.
38879
38880 2009-10-31  Jim Meyering  <meyering@redhat.com>
38881
38882         inttostr: aesthetics and improved (compile-time) safety
38883         Define inttype_is_signed rather than inttype_is_unsigned,
38884         since the sole use is via "#if inttype_is_signed".
38885         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38886         inttype_is_unsigned.
38887         * lib/offtostr.c (inttype_is_signed): Likewise.
38888         * lib/uinttostr.c (inttype_is_signed): Likewise.
38889         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38890         * lib/inttostr.c (inttostr): Use verify to cross-check the
38891         inttype_is_signed value and the signedness of the actual type.
38892         * modules/inttostr (Depends-on): Add verify.
38893
38894 2009-10-30  Eric Blake  <ebb9@byu.net>
38895
38896         build: avoid compiler warnings
38897         * lib/fchmodat.c (lchmod): Mark unused variables.
38898         * lib/getopt.c (_getopt_initialize): Likewise.
38899         * lib/mktime.c (__mktime_internal): Provide prototype.
38900         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38901         older gcc that do not understand #pragma GCC diagnostic.
38902         * lib/uinttostr.c (inttype_is_unsigned): Define.
38903         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38904
38905 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38906
38907         stat: fix compilation on AIX
38908         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38909         only see struct stat64.
38910
38911 2009-10-30  Eric Blake  <ebb9@byu.net>
38912
38913         exclude: make more robust
38914         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38915         rather than masking a coding bug.
38916         Suggested by Bruno Haible.
38917
38918 2009-10-30  Jim Meyering  <meyering@redhat.com>
38919
38920         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38921         Rather than putting #!/usr/bin/perl on the first line,
38922         start with a variant of what's recommended by "man perlrun" that
38923         invokes the first "perl" program from your shell's search path.
38924         * build-aux/gitlog-to-changelog: Replace #!... as above.
38925         Add a "Local Variables" perl mode setting.
38926         Prompted by a patch from Ludovic Courtès.
38927         Improved by Eric Blake.
38928         * build-aux/useless-if-before-free: Likewise.
38929         * build-aux/announce-gen: Likewise.
38930         * build-aux/update-copyright: Likewise.
38931
38932 2009-10-29  Eric Blake  <ebb9@byu.net>
38933
38934         filenamecat-lgpl: adjust clients
38935         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38936         filenamecat.
38937         * modules/renameat (Depends-on): Likewise.
38938
38939         filenamecat: split into filenamecat-lgpl
38940         * modules/filenamecat-lgpl: New module.
38941         * modules/filenamecat (Files): Move library-safe files into
38942         filenamecat-lgpl.
38943         (Depends-on): Add filenamecat-lgpl.
38944         (configure.ac): Declare witness.
38945         * lib/filenamecat.h (file_name_concat): Only declare when using
38946         GPL module.
38947         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38948         Move...
38949         * lib/filenamecat-lgpl.c: ...into new file.
38950         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38951         (gl_FILE_NAME_CONCAT): Use it.
38952         * MODULES.html.sh (File system functions): Mention new module.
38953
38954         argp: avoid memory leak
38955         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38956         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38957         base_name, since the latter malloc()s and can call exit().
38958         Leak introduced 2006-07-03.
38959
38960         dirname-lgpl: adjust clients that don't need full dirname
38961         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38962         * modules/filenamecat (Depends-on): Likewise.
38963         * modules/linkat (Depends-on): Likewise.
38964         * modules/mkancesdirs (Depends-on): Likewise.
38965         * modules/mkdir (Depends-on): Likewise.
38966         * modules/openat (Depends-on): Likewise.
38967         * modules/savewd (Depends-on): Likewise.
38968         * modules/rename (Depends-on): Likewise.
38969         (License): Relax license.
38970         * modules/mkdir-tests (Depends-on): Drop progname.
38971         (Makefile.am): Delete unneeded LDADD.
38972         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38973
38974         dirname: split into dirname-lgpl
38975         * modules/dirname-lgpl: New module.
38976         * modules/dirname (Files): Move library-safe files into
38977         dirname-lgpl.
38978         (Depends-on): Add dirname-lgpl.
38979         (configure.ac): Declare witness.
38980         * modules/double-slash-root (License): Relax license.
38981         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38982         module.
38983         * lib/dirname.c (dir_len, mdir_name): Move...
38984         * lib/dirname-lgpl.c: ...into new file.
38985         * lib/basename.c (last_component, base_len): Move...
38986         * lib/basename-lgpl.c: ...into new file.
38987         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38988         (gl_DIRNAME): Use it.
38989         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38990         Mention new module.
38991         * modules/dirname-tests (Depends-on): Add progname.
38992         * tests/test-dirname.c (program_name): Delete.
38993
38994         mkdir: make safe for libraries
38995         * modules/mkdir (Depends-on): Drop xalloc.
38996         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38997         exit.
38998
38999         tests: avoid some compiler warnings
39000         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39001         literals.
39002         * tests/test-memchr.c (main): Avoid type mismatch.
39003         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39004         * tests/test-base64.c (main): Likewise.
39005         * tests/test-getdelim.c (main): Likewise.
39006         * tests/test-gethostname.c (main): Likewise.
39007         * tests/test-getline.c (main): Likewise.
39008         * tests/test-netinet_in.c (main): Likewise.
39009         * tests/test-select.c (open_server_socket, main): Likewise.
39010         * tests/test-select-stdin.c (main): Likewise.
39011         * tests/test-sockets.c (main): Likewise.
39012         * tests/test-strsignal.c (main): Likewise.
39013         * tests/test-sys_select.c (main): Likewise.
39014         * tests/test-sys_socket.c (main): Likewise.
39015         * tests/test-u64.c (main): Likewise.
39016         * tests/test-xfprintf-posix.c (main): Likewise.
39017         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39018
39019         sockets: avoid compiler warning
39020         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39021
39022         maint: detect usage(1) and other suspicious exits
39023         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39024
39025 2009-10-29  Jim Meyering  <meyering@redhat.com>
39026
39027         timespec: long-to-int truncation could make timespec_cmp malfunction
39028         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39029         a multiple of 2^32 nanoseconds as no difference.
39030
39031 2009-10-28  Jim Meyering  <meyering@redhat.com>
39032
39033         fprintftime: wrap macro code argument in "do {...} while(0)"
39034         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39035         cpy macro must be a statement that can be followed by a semicolon.
39036         Now that the else clause contains a comment and is hence longer
39037         than one line, I require curly braces.  That in turn requires
39038         that we wrap this code block in the standard do...while(0).
39039
39040         fprintftime: remove stray semicolon from previous change
39041         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39042
39043         fprintftime: avoid a warning about ignored fwrite return value
39044         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39045         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39046         that is unsafe.
39047         * modules/fprintftime (Depends-on): Add ignore-value.
39048
39049         exclude: avoid an unwarranted warning
39050         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39051
39052 2009-10-27  Eric Blake  <ebb9@byu.net>
39053
39054         fseek: avoid compilation failure when fflush is replaced
39055         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39056         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39057         module is in use.
39058         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39059         module is not in use; since REPLACE_FSEEK worked otherwise.
39060         (GNULIB_FTELLO): Likewise for ftell.
39061         Reported by Ian Beckwith and others.
39062
39063 2009-10-27  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39066         Reported by Jim Meyering.
39067
39068 2009-10-27  Jim Meyering  <jim@meyering.net>
39069             Bruno Haible  <bruno@clisp.org>
39070
39071         Avoid warning despite dropping the return value of fwrite.
39072         * lib/unicodeio.c: Include ignore-value.h.
39073         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39074         * modules/unicodeio (Depends-on): Add ignore-value.
39075
39076 2009-10-26  Eric Blake  <ebb9@byu.net>
39077
39078         areadlinkat: fix fallback path
39079         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39080         pointer and zero.
39081
39082 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39083
39084         Use a better IO block size for modern systems
39085         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39086         * lib/md2.c: Likewise.
39087         * lib/md4.c: Likewise.
39088         * lib/md5.c: Likewise.
39089         * lib/sha1.c: Likewise.
39090         * lib/sha256.c: Likewise.
39091         * lib/sha512.c: Likewise.
39092
39093 2009-10-22  Eric Blake  <ebb9@byu.net>
39094
39095         tests: avoid several compiler warnings
39096         * tests/test-getcwd.c (main): Avoid buffer underflow.
39097         * tests/test-getdate.c (main): String literals are not safe with
39098         putenv, so use setenv.  Declare unused argument.
39099         * modules/getdate-tests (Depends-on): Add setenv.
39100         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39101         problems with string literals in char *.
39102         * tests/test-hash.c (main): Avoid shadowing declaration.
39103         (insert_new): Treat string literals as char const *.
39104         * tests/test-getopt.h (test_getopt): Likewise.
39105         (getopt_loop): Alter types to minimize casting elsewhere.
39106         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39107         (test_getopt_long_posix): Likewise.
39108         (do_getopt_long): Add wrapper to minimize casting.
39109         * tests/test-atexit.c (clear_temp_file): Use void.
39110         * tests/test-areadlink-with-size.c (main): Declare unused
39111         arguments.
39112         * tests/test-areadlink.c (main): Likewise.
39113         * tests/test-areadlinkat-with-size.c (main): Likewise.
39114         * tests/test-areadlinkat.c (main): Likewise.
39115         * tests/test-canonicalize-lgpl.c (main): Likewise.
39116         * tests/test-canonicalize.c (main): Likewise.
39117         * tests/test-dirent-safer.c (main): Likewise.
39118         * tests/test-dirname.c (main): Likewise.
39119         * tests/test-dup2.c (main): Likewise.
39120         * tests/test-fchdir.c (main): Likewise.
39121         * tests/test-fcntl-h.c (main): Likewise.
39122         * tests/test-fcntl-safer.c (main): Likewise.
39123         * tests/test-fdopendir.c (main): Likewise.
39124         * tests/test-fdutimensat.c (main): Likewise.
39125         * tests/test-fflush.c (main): Likewise.
39126         * tests/test-filenamecat.c (main): Likewise.
39127         * tests/test-filevercmp.c (main): Likewise.
39128         * tests/test-fopen-safer.c (main): Likewise.
39129         * tests/test-fopen.c (main): Likewise.
39130         * tests/test-fpending.c (main): Likewise.
39131         * tests/test-fpurge.c (main): Likewise.
39132         * tests/test-freading.c (main): Likewise.
39133         * tests/test-fstatat.c (main): Likewise.
39134         * tests/test-fsync.c (main): Likewise.
39135         * tests/test-futimens.c (main): Likewise.
39136         * tests/test-getndelim2.c (main): Likewise.
39137         * tests/test-gettimeofday.c (main): Likewise.
39138         * tests/test-getopt.c (main): Likewise.
39139         * tests/test-i-ring.c (main): Likewise.
39140         * tests/test-inttypes.c (main): Likewise.
39141         * tests/test-link.c (main): Likewise.
39142         * tests/test-lstat.c (main): Likewise.
39143         * tests/test-math.c (main): Likewise.
39144         * tests/test-md5.c (main): Likewise.
39145         * tests/test-memchr2.c (main): Likewise.
39146         * tests/test-memrchr.c (main): Likewise.
39147         * tests/test-mkdir.c (main): Likewise.
39148         * tests/test-mkdirat.c (main): Likewise.
39149         * tests/test-mkfifoat.c (main): Likewise.
39150         * tests/test-open.c (main): Likewise.
39151         * tests/test-openat-safer.c (main): Likewise.
39152         * tests/test-openat.c (main): Likewise.
39153         * tests/test-quotearg.c (main): Likewise.
39154         * tests/test-rawmemchr.c (main): Likewise.
39155         * tests/test-readlink.c (main): Likewise.
39156         * tests/test-remove.c (main): Likewise.
39157         * tests/test-rename.c (main): Likewise.
39158         * tests/test-renameat.c (main): Likewise.
39159         * tests/test-rmdir.c (main): Likewise.
39160         * tests/test-sha1.c (main): Likewise.
39161         * tests/test-signal.c (main): Likewise.
39162         * tests/test-sigaction.c (main): Likewise.
39163         * tests/test-stat.c (main): Likewise.
39164         * tests/test-stat-time.c (main): Likewise.
39165         * tests/test-stddef.c (main): Likewise.
39166         * tests/test-stdint.c (main): Likewise.
39167         * tests/test-stdio.c (main): Likewise.
39168         * tests/test-stdlib.c (main): Likewise.
39169         * tests/test-strchrnul.c (main): Likewise.
39170         * tests/test-strerror.c (main): Likewise.
39171         * tests/test-string.c (main): Likewise.
39172         * tests/test-strtod.c (main): Likewise.
39173         * tests/test-strverscmp.c (main): Likewise.
39174         * tests/test-symlink.c (main): Likewise.
39175         * tests/test-symlinkat.c (main): Likewise.
39176         * tests/test-sys_stat.c (main): Likewise.
39177         * tests/test-sys_time.c (main): Likewise.
39178         * tests/test-time.c (main): Likewise.
39179         * tests/test-unistd.c (main): Likewise.
39180         * tests/test-unlink.c (main): Likewise.
39181         * tests/test-unlinkat.c (main): Likewise.
39182         * tests/test-utimens.c (main): Likewise.
39183         * tests/test-utimensat.c (main): Likewise.
39184         * tests/test-version-etc.c (main): Likewise.
39185         * tests/test-wchar.c (main): Likewise.
39186         * tests/test-wctype.c (main): Likewise.
39187         * tests/test-xprintf-posix.c (main): Likewise.
39188         * tests/test-posixtm.c (main): Likewise.
39189         (STREQ): Delete unused macro.
39190         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39191         shadowed variables.
39192         * tests/test-memchr.c (main): Likewise.
39193
39194 2009-10-21  Eric Blake  <ebb9@byu.net>
39195
39196         areadlinkat: avoid failure on older glibc
39197         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39198         rather than mis-comparing 0 against FUNC_RESULT of char*.
39199
39200 2009-10-21  Bruno Haible  <bruno@clisp.org>
39201
39202         * modules/stpncpy (License): Relicense under LGPLv2+.
39203         Reported by David Lutterkort <lutter@redhat.com>.
39204
39205 2009-10-20  Eric Blake  <ebb9@byu.net>
39206
39207         utimensat: work around Solaris 9 bug
39208         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39209         has trailing slash bugs.
39210         * tests/test-lutimens.h (test_lutimens): Enhance test.
39211         * tests/test-utimens.h (test_utimens): Likewise.
39212         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39213         * doc/posix-functions/utimes.texi (utimes): Likewise.
39214         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39215         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39216         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39217         * doc/posix-functions/futimens.texi (futimens): Likewise.
39218
39219         fdutimensat: new module
39220         * modules/fdutimensat: New file.
39221         * lib/fdutimensat.c (fdutimensat): Likewise.
39222         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39223         * MODULES.html.sh (File system functions): Mention module.
39224         * modules/fdutimensat-tests: New test.
39225         * tests/test-fdutimensat.c: Likewise.
39226
39227         doc: regenerate INSTALL
39228         * doc/INSTALL: Reflect recent autoconf update.
39229         * doc/INSTALL.ISO: Likewise.
39230         * doc/INSTALL.UTF-8: Likewise.
39231
39232 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39233
39234         acl: warn if ACL support is not detected
39235         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39236
39237 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39238
39239         * lib/nproc.h: Add extern "C" block for C++.
39240
39241 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39242             Bruno Haible  <bruno@clisp.org>
39243
39244         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39245         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39246         * doc/posix-functions/isalpha.texi: Likewise.
39247         * doc/posix-functions/isblank.texi: Likewise.
39248         * doc/posix-functions/iscntrl.texi: Likewise.
39249         * doc/posix-functions/isdigit.texi: Likewise.
39250         * doc/posix-functions/isgraph.texi: Likewise.
39251         * doc/posix-functions/islower.texi: Likewise.
39252         * doc/posix-functions/isprint.texi: Likewise.
39253         * doc/posix-functions/ispunct.texi: Likewise.
39254         * doc/posix-functions/isspace.texi: Likewise.
39255         * doc/posix-functions/isupper.texi: Likewise.
39256         * doc/posix-functions/isxdigit.texi: Likewise.
39257
39258 2009-10-18  Bruno Haible  <bruno@clisp.org>
39259
39260         Tests for module 'isblank'.
39261         * modules/isblank-tests: New file.
39262         * tests/test-isblank.c: New file.
39263
39264         New module 'isblank'.
39265         * lib/isblank.c: New file.
39266         * m4/isblank.m4: New file.
39267         * modules/isblank: New file.
39268         * doc/posix-functions/isblank.texi: Mention the new module.
39269
39270 2009-10-18  Bruno Haible  <bruno@clisp.org>
39271
39272         New module 'ctype'.
39273         * lib/ctype.in.h: New file.
39274         * m4/ctype.m4: New file.
39275         * modules/ctype: New file.
39276         * doc/posix-headers/ctype.texi: Mention the new module.
39277
39278 2009-10-18  Jim Meyering  <meyering@redhat.com>
39279
39280         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39281         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39282         right after its initialization, rather than farther down.
39283         Keeping these in close proximity makes it easier to ensure
39284         that each such variable is initialized.  E.g.,
39285
39286             LIB_CLOCK_GETTIME=
39287             AC_SUBST([LIB_CLOCK_GETTIME])
39288
39289         This change also increments these serial numbers.
39290         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39291         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39293
39294 2009-10-18  Bruno Haible  <bruno@clisp.org>
39295
39296         Don't let environment variables perturb build.
39297         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39298         (gl_PREREQ_GETHRXTIME): ... not here.
39299
39300 2009-10-18  Bruno Haible  <bruno@clisp.org>
39301
39302         Avoid symlink attack in localcharset module.
39303         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39304         (O_NOFOLLOW): Define fallback.
39305         (get_charset_aliases): Don't open the file if it is a symbolic link.
39306         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39307         gl_FCNTL_H.
39308         (gl_FCNTL_H): Require it.
39309         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39310         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39311         Reported by Fergal Glynn <fglynn@veracode.com>.
39312
39313 2009-10-18  Bruno Haible  <bruno@clisp.org>
39314
39315         Implement nproc for mingw.
39316         * lib/nproc.c: Include <windows.h>
39317         (num_processors): On native Windows platforms, try GetSystemInfo.
39318
39319 2009-10-18  Bruno Haible  <bruno@clisp.org>
39320
39321         Implement nproc for IRIX.
39322         * lib/nproc.c: Include <sys/sysmp.h>.
39323         (num_processors): On IRIX systems, try sysmp.
39324         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39325
39326 2009-10-18  Bruno Haible  <bruno@clisp.org>
39327
39328         Implement nproc for HP-UX.
39329         * lib/nproc.c: Include <sys/pstat.h>
39330         (num_processors): On HP-UX systems, try pstat_getdynamic.
39331         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39332         pstat_getdynamic.
39333
39334 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39335             Bruno Haible  <bruno@clisp.org>
39336
39337         Implement nproc for NetBSD, OpenBSD.
39338         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39339         (ARRAY_SIZE): New macro.
39340         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39341         * m4/nproc.m4: New file.
39342         * modules/nproc (Files): Add m4/nproc.m4.
39343         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39344         (Makefile.am): Instead, augment lib_SOURCES.
39345
39346 2009-10-18  Bruno Haible  <bruno@clisp.org>
39347
39348         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39349         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39350         sys/param.h.
39351
39352 2009-10-16  Eric Blake  <ebb9@byu.net>
39353
39354         utimensat: new module
39355         * modules/utimensat: New file.
39356         * lib/utimensat.c (utimensat): Likewise.
39357         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39358         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39359         so we can work around Linux bugs.
39360         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39361         * modules/sys_stat (Makefile.am): Substitute them.
39362         * lib/sys_stat.in.h (utimensat): Declare it.
39363         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39364         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39365         * modules/utimensat-tests: New test.
39366         * tests/test-utimensat.c: Likewise.
39367
39368         utimens: let lutimens work on non-symlinks
39369         * lib/utimens.c (lutimens): Fall back to utimens rather than
39370         failing with ENOSYS, when file is not a symlink.
39371         (utimens): Reduce redirection.
39372         * tests/test-lutimens.h (test_lutimens): Update test to cover
39373         non-symlinks.
39374         * tests/test-utimens.h (test_utimens): Update test to cover
39375         symlinks.
39376         * tests/test-utimens.c (main): Update caller.
39377
39378         utimens: cache whether utimensat syscall works
39379         * lib/utimens.c (utimensat_works_really): New cache variable.
39380         (fdutimens, lutimens): Use it to avoid failing syscall.
39381
39382         test-stat-time, test-utimens: improve portability
39383         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39384         ext4 on alpha, and for cygwin.
39385         * tests/test-utimens-common.h: New file.
39386         (nap): Factor delays into single function.
39387         * tests/test-lutimens.h (test_lutimens): Use new header.
39388         * tests/test-futimens.h (test_futimens): Likewise.
39389         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39390         timestamps to occur from same machine, as was done previously for
39391         test_utimens.
39392         * modules/utimens-tests (Files): Ship new file.
39393         * modules/futimens-tests (Files): Likewise.
39394         Reported in part by Jim Meyering.
39395
39396         sys_stat: sort replacement declarations
39397         * lib/sys_stat.in.h: Sort declarations.
39398         * lib/futimens.c (futimens): Fix typo.
39399
39400 2009-10-15  Jim Meyering  <meyering@redhat.com>
39401
39402         don't let environment settings perturb build
39403         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39404         could cause a configure-time and/or build-time malfunction.
39405         Typically, a configure-time function-in-library test is performed
39406         via code like this:
39407
39408           LIB_VAR=
39409           AC_SUBST([LIB_VAR])
39410           prefix_saved_LIBS=$LIBS
39411             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39412                        [test "$ac_cv_search_FUNC" = "none required" ||
39413                         LIB_VAR=$ac_cv_search_FUNC])
39414           LIBS=$prefix_saved_LIBS
39415
39416         However, in each of the files affected by this change, the LIB_VAR=
39417         initialization was omitted.  Thus, when set in the environment, its
39418         value would propagate into generated Makefiles when FUNC is not found
39419         in LIB_NAME.
39420         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39423
39424 2009-10-14  Eric Blake  <ebb9@byu.net>
39425
39426         fchdir: avoid infinite recursion in mingw
39427         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39428         recursing.
39429
39430         test-stat-time: port to mingw
39431         * tests/test-stat-time.c (force_unlink): Return a value.
39432         (test_ctime) [W32]: Fix compilation error.
39433         (nap): Don't call usleep with too large an argument.  Use
39434         force_unlink.
39435         * doc/pastposix-functions/usleep.texi (usleep): Document the
39436         portability issue.
39437
39438 2009-10-13  Jim Meyering  <meyering@redhat.com>
39439
39440         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39441         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39442         * modules/pipe-filter-ii: Likewise.
39443         * modules/sys_socket-tests: Likewise.
39444         * modules/tsearch-tests: Likewise.
39445         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39446         (check): Depend on it.
39447
39448 2009-10-12  Eric Blake  <ebb9@byu.net>
39449
39450         utimens-tests: port to NFS file systems
39451         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39452         comparisons to avoid spurious failures from timestamp drift
39453         between NFS machines.
39454
39455 2009-10-12  Eric Blake  <ebb9@byu.net>
39456
39457         stat-time-tests: minor cleanups
39458         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39459         * tests/test-stat-time.c (nap): Separate assignment from call.
39460         Suggested by Paolo Bonzini and Bruno Haible.
39461
39462         sys_stat: guarantee struct timespec
39463         * lib/sys_stat.in.h (includes): Always include <time.h>
39464         * modules/sys_stat (Depends-on): Add time.
39465         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39466         mode_t permission values.
39467         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39468         get at subsecond timestamps.
39469
39470 2009-10-10  Eric Blake  <ebb9@byu.net>
39471
39472         futimens: new module
39473         * modules/futimens: New file.
39474         * lib/futimens.c (futimens): Likewise.
39475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39476         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39477         we can work around Linux bugs.
39478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39479         * modules/sys_stat (Makefile.am): Substitute them.
39480         * lib/sys_stat.in.h (futimens): Declare it.
39481         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39482         * doc/posix-functions/futimens.texi (futimens): Likewise.
39483         * modules/futimens-tests: New test.
39484         * tests/test-futimens.c: Likewise.
39485
39486         utimens: introduce fdutimens
39487         * lib/utimens.h (fdutimens): New prototype.
39488         * lib/utimens.c (gl_futimens): Move guts...
39489         (fdutimens): ...to new interface.
39490         * tests/test-utimens.c (do_fdutimens): Use it.
39491
39492         utimens: add UTIME_NOW and UTIME_OMIT support
39493         * lib/utimens.c (validate_timespec, update_timespec): New helper
39494         functions.
39495         (gl_futimens, lutimens): Use them.
39496         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39497         stdbool, sys_stat.
39498         (Link): Mention resulting library dependency.
39499         * modules/utimecmp (Link): Likewise.
39500         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39501         (Makefile.am): Pick up library dependency.
39502         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39503         definition.
39504         * tests/test-sys_stat.c: Test the definitions.
39505         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39506         * NEWS: Document library dependency.
39507
39508         utimecmp: support symlink timestamps
39509         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39510         hashing when possible.  Use pathconf when available.
39511         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39512         * modules/utimecmp (Depends-on): Add lstat.
39513
39514         utimens: add lutimens interface
39515         * lib/utimens.c (lutimens): New function.
39516         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39517         * lib/utimens.h (lutimens): Declare new interface.
39518         * tests/test-utimens.c (main): Enhance test.
39519         * tests/test-lutimens.h (test_lutimens): New file.
39520         * modules/utimens-tests (Files): Distribute it.
39521         (Depends-on): Add symlink.
39522         (configure.ac): Check for usleep.
39523
39524         utimens: validate futimens usage
39525         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39526         fewer syscalls on failure later on.  Avoid compiler warning on
39527         mingw.
39528         * modules/utimens (Depends-on): Add dup2.
39529
39530         utimens: add test
39531         * modules/utimens-tests: New test.
39532         * tests/test-utimens.h: New file.
39533         * tests/test-futimens.h: Likewise.
39534         * tests/test-utimens.c: Likewise.
39535
39536         doc: mention timestamp portability issues
39537         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39538         instead.
39539         * doc/posix-functions/utime.texi (utime): Likewise.
39540         * doc/posix-functions/utimes.texi (utimes): Likewise.
39541         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39542         instead.
39543         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39544         module.
39545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39546         Mention weakness with symlink timestamps.
39547         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39548         to utimensat/futimens instead.
39549         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39550
39551         test-dup2: enhance test
39552         * tests/test-dup2.c (main): Also check AT_FDCWD.
39553
39554         test-stat-time: avoid more spurious failures
39555         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39556         xfs; and avoid race if the two timestamps cross quantization edge.
39557
39558         relocatable: prefer 'file system' over 'filesystem'
39559         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39560         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39561         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39562         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39563         * lib/relocatable.c (compute_curr_prefix): Likewise.
39564
39565 2009-10-10  Jim Meyering  <meyering@redhat.com>
39566
39567         stat-time-tests: check for the usleep function
39568         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39569
39570 2009-10-10  Bruno Haible  <bruno@clisp.org>
39571
39572         * modules/xnanosleep: Put the Link section after the Include section.
39573
39574 2009-10-09  Eric Blake  <ebb9@byu.net>
39575
39576         dup2: work around FreeBSD 6.1 bug
39577         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39578         * doc/posix-functions/dup2.texi (dup2): Document it.
39579         Reported by Nelson H. F. Beebe and Jim Meyering.
39580
39581         test-stat-time: port to buggy NFS clients
39582         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39583         (test_ctime): Also skip test if mtime and ctime are skewed.
39584
39585         maint: prefer 'file system' over 'filesystem'
39586         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39587         * doc/posix-functions/lstat.texi (lstat): Likewise.
39588         * lib/file-has-acl.c (file_has_acl): Likewise.
39589         * lib/fwriteerror.c [TEST]: Likewise.
39590         * tests/test-areadlink.h (test_areadlink): Likewise.
39591         * tests/test-areadlinkat-with-size.c (main): Likewise.
39592         * tests/test-areadlinkat.c (main): Likewise.
39593         * tests/test-canonicalize-lgpl.c (main): Likewise.
39594         * tests/test-canonicalize.c (main): Likewise.
39595         * tests/test-fstatat.c (main): Likewise.
39596         * tests/test-linkat.c (main): Likewise.
39597         * tests/test-lstat.h (test_lstat_func): Likewise.
39598         * tests/test-mkdir.h (test_mkdir): Likewise.
39599         * tests/test-readlink.h (test_readlink): Likewise.
39600         * tests/test-remove.c (main): Likewise.
39601         * tests/test-rename.h (test_rename): Likewise.
39602         * tests/test-renameat.c (main): Likewise.
39603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39604         * tests/test-symlink.h (test_symlink): Likewise.
39605         * tests/test-symlinkat.c (main): Likewise.
39606         * tests/test-unlink.h (test_unlink_func): Likewise.
39607         * tests/test-unlinkat.c (main): Likewise.
39608
39609         maint: make realtime library usage explicit
39610         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39611         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39612         * modules/settime (Link): Likewise.
39613         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39614
39615         test-stat-time: speed up execution
39616         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39617         warning on mingw.
39618         (nap): New helper function.
39619         (prepare_test): Use it to reduce sleep time.
39620         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39621         execution.
39622         * modules/stat-time-tests (configure.ac): Check for usleep.
39623
39624 2009-10-09  Jim Meyering  <meyering@redhat.com>
39625
39626         selinux-h: always use getfilecon wrappers
39627         * lib/getfilecon.c: New file.
39628         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39629         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39630         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39631         (fgetfilecon): Provide a stub.
39632         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39633         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39634         file unconditionally.
39635         When <selinux/selinux.h> is found, arrange to use wrappers.
39636         * modules/selinux-h (Files): Add getfilecon.c.
39637         (Makefile.am): Substitute include-next-related bits
39638         into the now-always-generated selinux/selinux.h file.
39639         * doc/glibc-functions/lgetfilecon.texi: New file.
39640         * doc/glibc-functions/fgetfilecon.texi: New file.
39641         * doc/glibc-functions/getfilecon.texi: New file.
39642         * doc/glibc-functions/getfilecon-desc.texi: New file.
39643         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39644         which to pull in the new files.
39645         * MODULES.html.sh (Misc): Add selinux-h.
39646
39647 2009-10-08  Jim Meyering  <meyering@redhat.com>
39648
39649         unistd: fix comment typo
39650         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39651
39652 2009-10-08  Eric Blake  <ebb9@byu.net>
39653
39654         areadlink: use SIZE_MAX consistently
39655         * modules/areadlink (Depends-on): Add stdint.
39656         * modules/areadlink-with-size (Depends-on): Likewise.
39657         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39658         gives NULL; drop sys/types, since unistd gives size_t; and add
39659         stdint for SIZE_MAX.
39660         (SIZE_MAX): Rely on headers.
39661         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39662         and add stdint.
39663         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39664         (SIZE_MAX): Likewise.
39665         (INITIAL_BUF_SIZE): Turn into enum.
39666         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39667
39668 2009-10-08  Jim Meyering  <meyering@redhat.com>
39669
39670         areadlinkat: avoid compilation failure
39671         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39672         Fix typo in comment.
39673
39674 2009-10-07  Eric Blake  <ebb9@byu.net>
39675
39676         areadlinkat-with-size: new module
39677         * modules/areadlinkat-with-size: New module.
39678         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39679         * lib/areadlink.h (areadlinkat): Declare it.
39680         * MODULES.html.sh (File system functions): Mention it.
39681         * modules/areadlinkat-with-size-tests: New test.
39682         * tests/test-areadlinkat-with-size.c: New file.
39683
39684         xreadlinkat: new module
39685         * modules/xreadlinkat: New module.
39686         * lib/xreadlinkat.c (xreadlinkat): New file.
39687         * lib/xreadlink.h (xreadlinkat): Declare it.
39688         * MODULES.html.sh (File system functions): Mention it.
39689
39690         areadlinkat: new module
39691         * lib/at-func.c (FUNC_FAIL): New define.
39692         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39693         * modules/areadlinkat: New module.
39694         * lib/linkat.c (areadlinkat): Move...
39695         * lib/areadlinkat.c (areadlinkat): ...to new file.
39696         * lib/areadlink.h (areadlinkat): Declare it.
39697         * modules/linkat (Depends-on): Add areadlinkat.
39698         * MODULES.html.sh (File system functions): Mention it.
39699         * modules/areadlinkat-tests: New test.
39700         * tests/test-areadlinkat.c: New file.
39701
39702         areadlink, areadlink-with-size: add tests
39703         * modules/areadlink-tests: New test.
39704         * modules/areadlink-with-size-tests: Likewise.
39705         * tests/test-areadlink.h: New file.
39706         * tests/test-areadlink.c: Likewise.
39707         * tests/test-areadlink-with-size.c: Likewise.
39708
39709         maint: minor cleanups
39710         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39711         _UNUSED_PARAMETER_ instead.
39712         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39713         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39714         * modules/linkat-tests (Files): Distribute test-link.h.
39715
39716         openat, utimens: whitespace cleanup
39717         * lib/openat.c: Prefer space throughout, rather than mix of 8
39718         spaces vs. tabs.
39719         * lib/at-func.c: Likewise.
39720         * lib/utimens.c: Likewise.
39721
39722         openat: avoid using wrong fd
39723         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39724         working directory chooses same fd.
39725         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39726
39727         mkdir, mkdirat: fix cygwin 1.5.x bug
39728         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39729         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39730         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39731         bug.
39732         (gl_PREREQ_MKDIR): Delete unused macro.
39733         * modules/mkdir (Files): Track file rename.
39734         (configure.ac): Update macro name.
39735         * modules/openat (Depends-on): Add mkdir.
39736         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39737
39738         mkdir, mkdirat: add tests
39739         * modules/mkdir-tests: New test.
39740         * tests/test-mkdir.h: New file.
39741         * tests/test-mkdir.c: Likewise.
39742         * tests/test-mkdirat.c: Likewise.
39743         * modules/openat-tests (Files): Add new files.
39744         (Makefile.am): Run new test.
39745
39746 2009-10-06  Eric Blake  <ebb9@byu.net>
39747
39748         doc: tweak *at function documentation
39749         * doc/posix-functions/faccessat.texi (faccessat): Mention
39750         known issue with replacement.
39751         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39752         * doc/posix-functions/linkat.texi (linkat): Likewise.
39753         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39754         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39755         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39756         * doc/posix-functions/renameat.texi (renameat): Likewise.
39757         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39758
39759         openat: fix GNU/Hurd bug in unlinkat
39760         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39761         broken.
39762         * doc/posix-functions/unlink.texi (unlink): Document this.
39763         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39764
39765         fdopendir: fix GNU/Hurd bug
39766         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39767         allowing non-directory fds.
39768         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39770         * modules/dirent (Makefile.am): Substitute it.
39771         * lib/dirent.in.h (fdopendir): Declare replacement.
39772         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39773         * tests/test-fdopendir.c (main): Test something other than
39774         /dev/null, since on Hurd that behaves like a directory.
39775
39776         test-symlink: port to GNU/Hurd
39777         * tests/test-symlink.h (test_symlink): Relax expected errno.
39778
39779         doc: tweak more cygwin information
39780         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39781         now compatible with glibc.
39782         * doc/posix-functions/getopt.texi (getopt): Likewise.
39783
39784         getopt-gnu: add another test
39785         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39786         guarantee behavior relied on by m4.
39787         * tests/test-getopt.c (main): Use it.
39788         * modules/getopt-posix-tests (Depends-on): Add setenv.
39789         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39790
39791         getopt: fix compilation on darwin
39792         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39793         include.
39794         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39795         Reported by Ludovic Courtès.
39796
39797 2009-10-06  Bruno Haible  <bruno@clisp.org>
39798
39799         * modules/size_max (Description): Discourage its use.
39800         Reported by Simon Josefsson.
39801
39802 2009-10-06  Jim Meyering  <meyering@redhat.com>
39803
39804         linkat: avoid compilation failure
39805         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39806
39807 2009-10-05  Eric Blake  <ebb9@byu.net>
39808
39809         linkat: support Linux 2.6.17
39810         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39811         linkat on Linux, but allow cache variable override.
39812         * lib/linkat.c (rpl_linkat): Define override.
39813         * modules/linkat (Depends-on): Add symlinkat.
39814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39815         * modules/unistd (Makefile.am): Substitute it.
39816         * lib/unistd.in.h (linkat): Declare replacement.
39817         Reported by Pádraig Brady.
39818
39819         quotearg: port test to systems with C.UTF-8 locale
39820         * tests/test-quotearg.c (struct result_strings): Add another
39821         member, differentiating between C.ASCII and C.UTF-8 handling.
39822         (compare_strings): Add parameter.
39823         (main): Adjust all callers.
39824
39825         getopt: avoid clash with FreeBSD _getopt_internal
39826         * lib/getopt.in.h (_getopt_internal): Override the name.
39827         * lib/getopt_int.h (includes): Pick up any overrides.
39828         Reported by Reuben Thomas.
39829
39830         hash: allow C89 compilation
39831         * lib/hash.c (check_tuning): Move declaration before statement.
39832         Reported by Reuben Thomas.
39833
39834 2009-10-05  Karl Berry  <karl@gnu.org>
39835
39836         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39837
39838 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39839             Bruno Haible  <bruno@clisp.org>
39840
39841         * lib/uname.c (uname): Use a table-driven algorithm to compute
39842         Windows NT versions.
39843
39844 2009-10-04  Bruno Haible  <bruno@clisp.org>
39845
39846         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39847         program_invocation_short_name.
39848         * modules/progname (configure.ac): Test for presence of
39849         program_invocation_short_name.
39850         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39851
39852 2009-10-04  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/progname.c (set_program_name): Fix comment.
39855         Reported by Jim Meyering.
39856
39857 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39858             Bruno Haible  <bruno@clisp.org>
39859
39860         * lib/uname.c: Include <string.h>.
39861         (uname): Do only one call to GetVersionEx in the common case.
39862
39863 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39864             Bruno Haible  <bruno@clisp.org>
39865
39866         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39867         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39868         (uname): Add support for Windows CE and various non-x86 CPU types.
39869
39870 2009-10-03  Bruno Haible  <bruno@clisp.org>
39871
39872         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39873         invocation to tests/configure.ac.
39874         Reported by Ian Beckwith <ianb@erislabs.net>.
39875
39876 2009-10-02  Eric Blake  <ebb9@byu.net>
39877
39878         fchdir: avoid compiler warning
39879         * lib/fchdir.c (canonicalize_file_name)
39880         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39881
39882         test-open: support mingw errno values
39883         * tests/test-open.h (test_open): Relax test.
39884         * tests/test-fopen.h (test_fopen): Likewise.
39885         * tests/test-openat-safer.c (main): Likewise.
39886
39887         open: fix opening directory on mingw
39888         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39889
39890         test-open: on GNU/Hurd, /dev/null is a directory
39891         * tests/test-fopen.h (main): Rename...
39892         (test_fopen): ...to this.  Use a guaranteed non-directory when
39893         confirming open behavior on trailing slash.
39894         * tests/test-openat-safer.c (main): Likewise.
39895         * tests/test-open.h (main): Likewise....
39896         (test_open): ...to this.
39897         * tests/test-fopen.c (main): Adjust caller.
39898         * tests/test-fopen-safer.c (main): Likewise.
39899         * tests/test-open.c (main): Likewise.
39900         * tests/test-fcntl-safer.c (main): Likewise.
39901         Reported by Samuel Thibault.
39902
39903         rename, fchdir: don't ignore chdir failure
39904         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39905         * lib/rename.c (rpl_rename) [W32]: Likewise.
39906         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39907         an empty destination directory if source cannot be renamed,
39908         although there is still possibility for failure.
39909         * doc/posix-functions/rename.texi (rename): Document the race.
39910         Reported by Jim Meyering.
39911
39912         maint: cleanup whitespace in recent commits
39913         * lib/rename.c (rpl_rename): Remove tabs.
39914         * tests/test-link.h (test_link): Likewise.
39915         * lib/fchdir.c (get_name): Likewise.
39916         Reported by Jim Meyering.
39917
39918 2009-10-02  Ben Pfaff  <blp@gnu.org>
39919
39920         relocatable-prog-wrapper: Add missing dependency on
39921         double-slash-root.
39922         * modules/relocatable-prog-wrapper: Add dependency.
39923         Reported by Ian Beckwith <ianb@erislabs.net>.
39924
39925 2009-10-02  Eric Blake  <ebb9@byu.net>
39926
39927         renameat: fix Solaris bugs
39928         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39929         needed fixing.
39930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39931         * modules/stdio (Makefile.am): Substitute it.
39932         * lib/stdio.in.h (renameat): Declare replacement.
39933         * lib/renameat.c (rpl_renameat): Implement fix.
39934
39935         renameat: new module
39936         * modules/renameat: New file.
39937         * lib/renameat.c (renameat): Likewise.
39938         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39940         * modules/stdio (Makefile.am): Substitute them.
39941         * lib/stdio.in.h (renameat): Declare it.
39942         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39943         * doc/posix-functions/renameat.texi (renameat): Likewise.
39944         * modules/renameat-tests: New test.
39945         * tests/test-renameat.c: Likewise.
39946
39947         rename: fix mingw bugs
39948         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39949         directory overwrite bugs.
39950
39951         rename: fix another cygwin 1.5 bug
39952         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39953         checks.
39954         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39955         unnecessary cygwin workarounds.  Also work around bug with moving
39956         full directory onto an empty one.
39957         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39958
39959         rename-dest-slash: merge into rename module
39960         * modules/rename-dest-slash (Status): Mark obsolete.
39961         (Depends-on): Add rename.
39962         (Files): Let rename do it all.
39963         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39964         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39965         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39966         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39967         * lib/rename.c (rpl_rename): Update comments.
39968
39969         rename: fix cygwin 1.5.x bugs
39970         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39971         * lib/rename.c (rpl_rename): Work around them.
39972         * modules/rename (Depends-on): Add same-inode.
39973
39974         rename: fix Solaris 10 bug
39975         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39976         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39977         was the only bug.
39978
39979         rename: fix Solaris 9 bug
39980         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39981         on non-directory.  Avoid calling exit.
39982         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39983         strdup.
39984         * modules/rename-tests (Depends-on): Drop lstat.
39985         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39986         (gl_PREREQ_RENAME): Delete unused macro.
39987
39988         rename-dest-slash: fix NetBSD bug
39989         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39990         links.
39991         * modules/rename-dest-slash (Depends-on): Add same-inode.
39992
39993         rename-tests: new test, exposes several platform bugs
39994         * modules/rename-tests: New file.
39995         * tests/test-rename.h: Likewise.
39996         * tests/test-rename.c: Likewise.
39997         * doc/posix-functions/rename.texi (rename): Improve documentation,
39998         including bugs that will eventually be fixed in gnulib.
39999
40000 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40001
40002         * lib/uname.c: Include <stdlib.h>
40003         (uname): Assume version info is available.
40004
40005 2009-10-02  Jim Meyering  <meyering@redhat.com>
40006
40007         gnu-web-doc-update: correct --help output
40008         * build-aux/gnu-web-doc-update: Make --help output relevant.
40009
40010         gnu-web-doc-update: add standard options
40011         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40012
40013         gnu-web-doc-update: New module.
40014         Use this script to automatically update the on-line web documentation
40015         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40016         * modules/gnu-web-doc-update: New file, from coreutils.
40017         * build-aux/gnu-web-doc-update: New script.
40018
40019 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40020
40021         link: LoadLibrary is not needed.
40022         * lib/link.c: Use GetModuleHandle.
40023
40024 2009-10-01  Eric Blake  <ebb9@byu.net>
40025
40026         getopt: bump serial number
40027         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40028         change.
40029
40030         tests: tighten link, rmdir, and remove tests
40031         * tests/test-link.h (includes): No need to use <config.h> here.
40032         Clean up if directory hard link was created, otherwise test for
40033         trailing '.'.
40034         * tests/test-linkat.c (main): Simplify.
40035         * tests/test-remove.c (main): Enhance test for trailing '.'.
40036         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40037
40038 2009-10-01  Jim Meyering  <meyering@redhat.com>
40039
40040         maint.mk: requiring "make major" was annoying, for a "minor" release.
40041         What is intended is "stable", to contrast with alpha and beta,
40042         so require "make stable", not "make major".
40043         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40044         (get_tool_versions): Likewise.
40045         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40046
40047 2009-09-30  Ben Pfaff  <blp@gnu.org>
40048
40049         Fix broken build of replacement for Windows tmpfile().
40050         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40051         flags argument added along with the 'mkostemp' module.
40052
40053 2009-09-28  Bruno Haible  <bruno@clisp.org>
40054
40055         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40056         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40057         to 'remove_elt'.
40058         (gl_list_remove): Update.
40059         * lib/gl_list.c (gl_list_remove): Update.
40060         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40061         to 'remove_elt'.
40062         (gl_oset_remove): Update.
40063         * lib/gl_list.c (gl_oset_remove): Update.
40064         Reported by Eric Blake.
40065
40066 2009-09-28  Eric Blake  <ebb9@byu.net>
40067
40068         doc: mention yet more cygwin 1.7 status
40069         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40070         cygwin.
40071         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40072         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40073
40074         argp: fix test failure
40075         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40076         that are not upper-case.  Pass correct range to tolower.
40077
40078 2009-09-27  Jim Meyering  <meyering@redhat.com>
40079
40080         test-yesno: work around sparc-dash here-document infelicity
40081         Without this change, the literal \177 byte in a here document
40082         would make dash 0.5.5.1-3 access uninitialized memory.
40083         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40084         Instead, use a marker, "@", and filter through tr to create the desired
40085         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40086
40087 2009-09-27  Bruno Haible  <bruno@clisp.org>
40088
40089         Disable untested support for new flavours of ACLs on AIX.
40090         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40091         progress.
40092         * lib/set-mode-acl.c (qset_acl): Likewise.
40093
40094 2008-12-07  Bruno Haible  <bruno@clisp.org>
40095
40096         Add support for new flavours of ACLs on AIX. (Untested.)
40097         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40098         (file_has_acl): Add support for newer AIX.
40099         * lib/set-mode-acl.c (qset_acl): Likewise.
40100         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40101         Rainer Tammer <tammer@tammer.net>.
40102
40103 2009-09-26  Eric Blake  <ebb9@byu.net>
40104
40105         argp: fix compilation of getopt
40106         * lib/getopt.in.h (includes): Use different guard than glibc.
40107         Reported by Sergey Poznyakoff.
40108
40109         doc: mention more cygwin 1.7 status
40110         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40111         bug.
40112         * doc/posix-functions/execl.texi (execl): Likewise.
40113         * doc/posix-functions/execle.texi (execle): Likewise.
40114         * doc/posix-functions/execlp.texi (execlp): Likewise.
40115         * doc/posix-functions/execv.texi (execv): Likewise.
40116         * doc/posix-functions/execve.texi (execve): Likewise.
40117         * doc/posix-functions/execvp.texi (execvp): Likewise.
40118         * doc/glibc-functions/canonicalize_file_name.texi
40119         (canonicalize_file_name): Cygwin 1.7 now provides this.
40120         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40121         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40122         on AT_SYMLINK_NOFOLLOW.
40123
40124 2009-09-24  Eric Blake  <ebb9@byu.net>
40125
40126         test-linkat: make test more robust
40127         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40128
40129         getopt: fix inclusion guards for cygwin
40130         * modules/getopt-posix (Depends-on): Add include-next.
40131         (Makefile.am): Substitute more items in replacement header.
40132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40133         <getopt.h>.
40134         * lib/getopt.in.h (includes): Use split inclusion guard, and
40135         prefer <getopt.h> over include <unistd.h> when one is present.
40136         (option): Also override name of 'struct option'.
40137
40138         same-inode: revert prior change; it is not yet ready
40139         * NEWS: Undo mention of this change.
40140         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40141         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40142         * lib/cycle-check.c (cycle_check): Likewise.
40143         * lib/same.c (same_name): Likewise.
40144         * lib/at-func2.c (at_func2): Likewise.
40145
40146 2009-09-23  Eric Blake  <ebb9@byu.net>
40147
40148         linkat: new module
40149         * modules/linkat: New file.
40150         * lib/at-func2.c (at_func2): Likewise.
40151         * lib/linkat.c (linkat): Likewise.
40152         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40153         * lib/openat-priv.h (at_func2): Add declaration.
40154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40155         * modules/unistd (Makefile.am): Substitute them.
40156         * lib/unistd.in.h (linkat): Declare it.
40157         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40158         * doc/posix-functions/linkat.texi (linkat): Likewise.
40159         * doc/posix-functions/link.texi (link): Tweak wording.
40160         * tests/test-link.c (main): Move guts...
40161         * tests/test-link.h (test_link): ...into new file.
40162         * modules/linkat-tests: New test.
40163         * tests/test-linkat.c: Likewise.
40164         * modules/link-tests (Files): Ship new file.
40165         (Depends-on): Add stdbool.
40166
40167         dirname: add library-safe mdir_name
40168         * lib/dirname.h (mdir_name): New prototype.
40169         * lib/dirname.c (dir_name): Move guts...
40170         (mdir_name): ...to new function that avoids xalloc_die.
40171
40172         fchdir: another mingw fix
40173         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40174         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40175         on mingw (where it has not yet been ported), and make it optional
40176         elsewhere.
40177         (_gl_register_fd): Use it.
40178
40179         same-inode: make SAME_INODE tri-state, to port to mingw
40180         * NEWS: Mention this change.
40181         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40182         st_ino always being 0.
40183         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40184         * lib/cycle-check.c (cycle_check): Likewise.
40185         * lib/same.c (same_name): Likewise.
40186
40187         lstat: avoid mingw compilation error
40188         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40189         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40190         lstat ourselves.
40191         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40192         was adequate.
40193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40194         the checks for lstat.
40195         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40196
40197         link: fix test failure on Solaris 9
40198         * lib/link.c (rpl_link): Don't assume link will catch bogus
40199         trailing slash on source.
40200
40201         test-symlinkat: enhance test
40202         * tests/test-readlink.c (main): Move guts...
40203         * tests/test-readlink.h (test_readlink): ...into new file.
40204         * tests/test-symlink.c (main): Move guts...
40205         * tests/test-symlink.h (test_symlink): ...into new file.
40206         * tests/test-symlinkat.c (main): Use new files for further
40207         coverage.
40208         (do_symlink, do_readlink): New helper functions.
40209         * modules/symlink-tests (Files): Ship new file.
40210         (Depends-on): Add stdbool.
40211         * modules/readlink-tests (Files): Ship new file.
40212         (Depends-on): Add stdbool.
40213         * modules/symlinkat-tests (Files): Use new files.
40214
40215 2009-09-23  Eric Blake  <ebb9@byu.net>
40216
40217         readlink: document portability issue with symlink length
40218         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40219         systems have bogus st_size on symlinks, and mention the
40220         areadlink-with-size module.
40221         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40222         * doc/posix-functions/readlink.texi (readlink): Mention the
40223         areadlink module, and ERANGE failure.
40224         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40225         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40226
40227         readlink: fix Solaris 9 bug with trailing slash
40228         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40229         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40230         * doc/posix-functions/readlink.texi (readlink): Document this.
40231         * modules/readlink-tests: New test.
40232         * tests/test-readlink.c: Likewise.
40233
40234         readlink: fix cygwin 1.5.x bug with return type
40235         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40236         * lib/unistd.in.h (readlink): Use ssize_t.
40237         * lib/readlink.c (readlink): Likewise.
40238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40239         * modules/unistd (Makefile.am): Substitute it.
40240         * lib/unistd.in.h (readlink): Declare replacement.
40241         * doc/posix-functions/readlink.texi (readlink): Document this.
40242
40243         symlink: use throughout gnulib
40244         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40245         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40246         symlink is not used.
40247         * modules/symlinkat (Depends-on): Add symlink.
40248         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40249         * modules/canonicalize-tests (Depends-on): Likewise.
40250         * modules/lstat-tests (Depends-on): Likewise.
40251         * modules/openat-tests (Depends-on): Likewise.
40252         * modules/remove-tests (Depends-on): Likewise.
40253         * modules/rmdir-tests (Depends-on): Likewise.
40254         * modules/unlink-tests (Depends-on): Likewise.
40255         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40256         * tests/test-canonicalize.c (symlink): Likewise.
40257         * tests/test-fstatat.c (symlink): Likewise.
40258         * tests/test-lstat.c (symlink): Likewise.
40259         * tests/test-remove.c (symlink): Likewise.
40260         * tests/test-rmdir.c (symlink): Likewise.
40261         * tests/test-unlink.c (symlink): Likewise.
40262         * tests/test-unlinkat.c (symlink): Likewise.
40263
40264         symlink: new module, for Solaris 9 bug
40265         * modules/symlink: New file.
40266         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40267         * lib/symlink.c: Likewise.
40268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40269         * modules/unistd (Makefile.am): Substitute them.
40270         * lib/unistd.in.h (symlink): Declare replacement.
40271         * MODULES.html.sh (File system functions): Mention it.
40272         * doc/posix-functions/symlink.texi (symlink): Likewise.
40273         * modules/symlink-tests: New test.
40274         * tests/test-symlink.c: Likewise.
40275
40276 2009-09-23  Bruno Haible  <bruno@clisp.org>
40277
40278         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40279         when needed.
40280         Test case: gnulib-tool --import --with-tests atexit inttypes.
40281         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40282
40283 2009-09-23  Bruno Haible  <bruno@clisp.org>
40284
40285         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40286         subcommand, not in a subshell.
40287
40288 2009-09-22  Eric Blake  <ebb9@byu.net>
40289
40290         unistd: sort replacement declarations
40291         * lib/unistd.in.h: Sort declarations.
40292
40293         open, openat: minor optimization
40294         * lib/open.c (open): If open succeeded, len is non-zero.
40295         * lib/openat.c (rpl_openat): Likewise.
40296
40297         link-follow: ensure correct result
40298         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40300         distinguish between possible failures.
40301
40302 2009-09-21  Eric Blake  <ebb9@byu.net>
40303
40304         fts: avoid compiler warning
40305         * lib/fts.c (dirent_inode_sort_may_be_useful)
40306         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40307
40308 2009-09-19  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/progreloc.c (canonicalize_file_name): New declaration.
40311
40312 2009-09-19  Eric Blake  <ebb9@byu.net>
40313
40314         link: fix quoting
40315         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40316
40317         openat: fix openat bugs on Solaris 9
40318         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40319         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40320         * modules/openat (Depends-on): Add open.
40321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40322         * modules/fcntl-h (Makefile.am): Substitute it.
40323         * lib/fcntl.in.h (openat): Declare replacement.
40324         * doc/posix-functions/openat.texi (openat): Document this.
40325
40326         openat: move fstatat and unlinkat into correct files
40327         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40328         compiled.
40329         * lib/openat.c (fstatat, unlinkat): Move...
40330         * lib/fstatat.c (fstatat): ...into correct files.
40331         * lib/unlinkat.c (unlinkat): Likewise.
40332
40333         openat: fix unlinkat bugs on Solaris 9
40334         * lib/unlinkat.c (unlinkat): New file.
40335         * modules/openat (Depends-on): Add unlink.
40336         (Files): Distribute it.
40337         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40338         trailing slash behavior is broken.
40339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40340         * modules/unistd (Makefile.am): Substitute it.
40341         * lib/unistd.in.h (unlinkat): Declare replacement.
40342         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40343
40344         openat: fix fstatat bugs on Solaris 9
40345         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40346         stat.
40347         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40348
40349         test-unlinkat: enhance test, to expose Solaris 9 bug
40350         * tests/test-unlink.c (main): Factor guts...
40351         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40352         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40353         * tests/test-rmdir.c (main): Adjust caller.
40354         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40355         (unlinker): New helper function.
40356         (rmdirat): Enhance check.
40357         * modules/rmdir-tests (Depends-on): Add stdbool.
40358         * modules/unlink-tests (Depends-on): Likewise.
40359         (Files): Add test-unlink.h.
40360         * modules/openat-tests (Files): Likewise.
40361         (Depends-on): Add unlinkdir.
40362
40363         test-fstatat: new test, to expose Solaris 9 bugs
40364         * tests/test-stat.c (main): Factor guts...
40365         * tests/test-stat.h (test_stat_func): ...into new file.
40366         * tests/test-lstat.c (main): Factor guts...
40367         * tests/test-lstat.h (test_lstat_func): ...into new file.
40368         * tests/test-fstatat.c: New file.
40369         * modules/stat-tests (Files): Add test-stat.h.
40370         * modules/lstat-tests (Files): Add test-lstat.h.
40371         (Depends-on): Add stdbool.
40372         * modules/openat-tests (Depends-on): Add pathmax.
40373         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40374         (Makefile.am): Run new test.
40375
40376         remove: new module, for mingw and Solaris 9 bugs
40377         * modules/remove: New file.
40378         * lib/remove.c: Likewise.
40379         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40381         * modules/stdio (Makefile.am): Use them.
40382         * lib/stdio.in.h (remove): Declare replacement.
40383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40384         * doc/posix-functions/remove.texi (remove): Likewise.
40385         * modules/remove-tests: New test.
40386         * tests/test-remove.c: Likewise.
40387
40388         unlink: new module, for Solaris 9 bug
40389         * modules/unlink: New file.
40390         * lib/unlink.c: Likewise.
40391         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40393         * modules/unistd (Makefile.am): Use them.
40394         * lib/unistd.in.h (stat): Declare replacement.
40395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40396         * doc/posix-functions/unlink.texi (unlink): Likewise.
40397         * modules/unlink-tests: New test.
40398         * tests/test-unlink.c: Likewise.
40399
40400         lstat: fix Solaris 9 bug
40401         * lib/lstat.c (lstat): Also check for trailing slash on
40402         non-symlink, non-directories.  Use stat module to simplify logic.
40403         * doc/posix-functions/lstat.texi (lstat): Document it.
40404         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40405         (configure.ac): Check for symlink.
40406         * tests/test-lstat.c (main): Add more tests.
40407
40408         stat: add as dependency to other modules
40409         * modules/chown (Depends-on): Add stat.
40410         * modules/euidaccess (Depends-on): Likewise.
40411         * modules/fchdir (Depends-on): Likewise.
40412         * modules/isdir (Depends-on): Likewise.
40413         * modules/link (Depends-on): Likewise.
40414         * modules/lstat (Depends-on): Likewise.
40415         * modules/mkdir-p (Depends-on): Likewise.
40416         * modules/modechange (Depends-on): Likewise.
40417         * modules/open (Depends-on): Likewise.
40418         * modules/readlink (Depends-on): Likewise.
40419         * modules/same (Depends-on): Likewise.
40420
40421         stat: fix Solaris 9 bug
40422         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40423         slash.
40424         * lib/stat.c (rpl_stat): Work around it.
40425         * doc/posix-functions/stat.texi (stat): Update documentation.
40426
40427         stat: new module, for mingw bug
40428         * modules/stat: New file.
40429         * lib/stat.c: Likewise.
40430         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40432         * modules/sys_stat (Makefile.am): Use them.
40433         * lib/sys_stat.in.h (stat): Declare replacement.
40434         * lib/openat.c (fstatat): Deal with lstat and stat being function
40435         macros.
40436         * modules/openat (Depends-on): Add inline.
40437         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40438         * doc/posix-functions/stat.texi (stat): Likewise.
40439         * modules/stat-tests: New test.
40440         * tests/test-stat.c: Likewise.
40441
40442 2009-09-19  Jim Meyering  <meyering@redhat.com>
40443
40444         syntax-check: detect unnecessary inclusion of canonicalize.h
40445         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40446
40447 2009-09-19  Eric Blake  <ebb9@byu.net>
40448
40449         canonicalize-lgpl: adjust clients to use correct header
40450         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40451         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40452         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40453         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40454         * lib/progreloc.c (includes): Likewise.
40455
40456 2009-09-19  Jim Meyering  <meyering@redhat.com>
40457
40458         test-posixtm.c: correct a comment
40459         * tests/test-posixtm.c: Correct first-line comment.
40460         Spotted by Eric Blake.
40461
40462 2009-09-16  Jim Meyering  <meyering@redhat.com>
40463
40464         posixtm-tests: make T const-correct; add a test case
40465         * tests/test-posixtm.c (T): Declare const.
40466         Add a test for -(2^31+1).
40467         Remove useless can-succeed-only-in-2002 test.
40468
40469         posixtm-tests: adjust the sole failing test
40470         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40471         expected output matches what mktime now produces.  Cross-checked via
40472         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40473
40474         posixtm: move #ifdef'd tests into a new module
40475         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40476         * tests/test-posixtm.c: ... this new file.
40477         * modules/posixtm-tests: New module.
40478
40479 2009-09-19  Eric Blake  <ebb9@byu.net>
40480
40481         openat: simplify use of at-func.c
40482         * lib/at-func.c (includes): Include prerequisites here, to
40483         simplify requirements on client files.
40484         * lib/openat-priv.h: Add double-inclusion guard.
40485         * lib/faccessat.c (includes): Simplify.
40486         * lib/fchmodat.c (includes): Likewise.
40487         * lib/fchownat.c (includes): Likewise.
40488         * lib/mkdirat.c (includes): Likewise.
40489         * lib/mkfifoat.c (includes): Likewise.
40490         * lib/symlinkat.c (includes): Likewise.
40491
40492         openat: allow return of fd 0
40493         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40494         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40495         unistd-safer.
40496         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40497         <fcntl.h>; this module does not leak fds.
40498         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40499         must be allowed to return 0, leaving openat_safer to add the
40500         safety.
40501         (openat_permissive): Avoid writing to just-opened fd 2 if
40502         restoring the current directory fails.
40503         * lib/openat-die.c (openat_restore_fail): Add comment.
40504         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40505         (save_cwd): Guarantee safe fd, but without use of open_safer.
40506         * tests/test-openat.c: New test.
40507         * modules/openat-tests (Files, Makefile.am): Distribute and build
40508         new file.
40509
40510         relocatable-prog-wrapper: fix build
40511         * modules/relocatable-prog-wrapper (Files): Update name of
40512         canonicalize m4 file, broken on 2009-09-17.
40513         Reported by emad hajjar <aleppos@hotmail.com>.
40514
40515 2009-09-19  Bruno Haible  <bruno@clisp.org>
40516
40517         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40518         * lib/safe-alloc.c: Likewise.
40519         Reported by Ian Beckwith <ianb@erislabs.net>.
40520
40521 2009-09-18  Bruno Haible  <bruno@clisp.org>
40522
40523         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40524         Reported by <erobles@sensacd.com.mx>.
40525
40526 2009-09-17  Eric Blake  <ebb9@byu.net>
40527
40528         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40529         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40530         slashes when checking if last component is missing.
40531         * tests/test-canonicalize.c (main): Test this.
40532
40533         canonicalize, canonicalize-lgpl: honor // if distinct from /
40534         * modules/canonicalize (Files): Add double-slash-root.m4.
40535         * modules/canonicalize-lgpl (Files): Likewise.
40536         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40537         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40538         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40539         fallback definition.
40540         (canonicalize_filename_mode): Use it to protect //.
40541         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40542         (__realpath): Likewise.
40543         * tests/test-canonicalize.c (main): Test this.
40544         * tests/test-canonicalize-lgpl.c (main): Likewise.
40545         * modules/canonicalize-tests (Depends-on): Add same-inode.
40546         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40547
40548         canonicalize-lgpl: fix glibc bug with trailing slash
40549         * m4/canonicalize-lgpl.m4: Move contents...
40550         * m4/canonicalize.m4: ...here.
40551         (gl_CANONICALIZE_LGPL): Factor realpath check...
40552         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40553         glibc 2.3.5 bug, fixed 2005-04-27.
40554         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40555         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40556         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40557         * modules/canonicalize-lgpl (Files): Manage file rename.
40558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40559         * modules/stdlib (Makefile.am): Substitute witness.
40560         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40561         is needed.
40562         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40563         replacement is required.
40564         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40565         * doc/glibc-functions/canonicalize_file_name.texi
40566         (canonicalize_file_name): Document this.
40567         * doc/posix-functions/realpath.texi (realpath): Likewise.
40568
40569         canonicalize-lgpl: reject non-directory with trailing slash
40570         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40571         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40572         catches failures in glibc 2.3.5.
40573         * tests/test-canonicalize.c (main): Likewise.
40574
40575         canonicalize-lgpl: use native realpath if it works
40576         * lib/canonicalize-lgpl.c (realpath): Guard with
40577         FUNC_REALPATH_WORKS.
40578         * lib/stdlib.in.h (realpath): Make declaration optional based on
40579         HAVE_REALPATH.
40580         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40581         native realpath works.
40582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40583         * modules/stdlib (Makefile.am): Substitute witness.
40584
40585         canonicalize, canonicalize-lgpl: use <stdlib.h>
40586         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40587         (Include): Mention <stdlib.h>.
40588         (configure.ac): Mention functions we provide.
40589         * modules/canonicalize (configure.ac): Likewise.
40590         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40591         realpath if canonicalize_file_name is missing.
40592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40593         * modules/stdlib (Makefile.am): Substitute witnesses.
40594         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40595         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40596         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40597         * NEWS: Document this.
40598         * doc/glibc-functions/canonicalize_file_name.texi
40599         (canonicalize_file_name): Likewise.
40600         * doc/posix-functions/realpath.texi (realpath): Likewise.
40601         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40602
40603         test-canonicalize: consolidate into single C program
40604         * tests/test-canonicalize.sh: Delete; move setup into...
40605         * tests/test-canonicalize.c (main): ...the program, making it
40606         easier to run in debugger.  Add some tests.
40607         * modules/canonicalize-tests (Files): Remove unused file.
40608         (Depends-on): Add progname.
40609         (configure.ac, Makefile.am): Simplify.
40610
40611         test-canonicalize-lgpl: consolidate into single C program
40612         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40613         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40614         easier to run in debugger.  Add some tests.
40615         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40616         (configure.ac, Makefile.am): Simplify.
40617
40618         canonicalize: avoid resolvepath
40619         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40620         unnecessary checks.
40621         * lib/canonicalize.c (includes): Simplify.
40622         (canonicalize_file_name): Drop resolvepath implementation.
40623         * modules/canonicalize (Depends-on): Drop filenamecat.
40624
40625         canonicalize: don't lose errno
40626         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40627         over calls to free.
40628
40629         canonicalize: simplify errno handling
40630         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40631         assignment.
40632
40633         canonicalize, canonicalize-lgpl: update module dependencies
40634         * modules/canonicalize (Depends-on): Add extensions, lstat,
40635         pathmax, stdlib.
40636         (Files): Drop pathmax.h.
40637         (configure.ac): Adjust macro name.
40638         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40639         lstat, stdlib, sys_stat.
40640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40641         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40642         extensions.
40643         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40644         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40645         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40646         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40647         declaration, if available.
40648         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40649         we can rely on the readlink module.
40650         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40651         (includes): Use <unistd.h> unconditionally.
40652
40653 2009-09-17  Eric Blake  <ebb9@byu.net>
40654
40655         maint: make Include sections of modules consistent
40656         * modules/alloca: Use only header name; no need to list #include.
40657         * modules/alloca-opt: Likewise.
40658         * modules/arpa_inet: Likewise.
40659         * modules/canon-host: Likewise.
40660         * modules/configmake: Likewise.
40661         * modules/dirent: Likewise.
40662         * modules/eealloc: Likewise.
40663         * modules/environ: Likewise.
40664         * modules/fchdir: Likewise.
40665         * modules/fcntl: Likewise.
40666         * modules/fcntl-h: Likewise.
40667         * modules/gethrxtime: Likewise.
40668         * modules/gettime: Likewise.
40669         * modules/ignore-value: Likewise.
40670         * modules/inet_ntop: Likewise.
40671         * modules/inet_pton: Likewise.
40672         * modules/inttypes: Likewise.
40673         * modules/isnand-nolibm: Likewise.
40674         * modules/isnanf-nolibm: Likewise.
40675         * modules/mbchar: Likewise.
40676         * modules/mbfile: Likewise.
40677         * modules/mbiter: Likewise.
40678         * modules/mbuiter: Likewise.
40679         * modules/netdb: Likewise.
40680         * modules/netinet_in: Likewise.
40681         * modules/nproc: Likewise.
40682         * modules/pagealign_alloc: Likewise.
40683         * modules/poll: Likewise.
40684         * modules/printf-frexp: Likewise.
40685         * modules/pthread: Likewise.
40686         * modules/putenv: Likewise.
40687         * modules/random_r: Likewise.
40688         * modules/relocatable-prog: Likewise.
40689         * modules/search: Likewise.
40690         * modules/select: Likewise.
40691         * modules/selinux-h: Likewise.
40692         * modules/settime: Likewise.
40693         * modules/signal: Likewise.
40694         * modules/size_max: Likewise.
40695         * modules/socklen: Likewise.
40696         * modules/ssize_t: Likewise.
40697         * modules/stdarg: Likewise.
40698         * modules/stdbool: Likewise.
40699         * modules/stddef: Likewise.
40700         * modules/stdint: Likewise.
40701         * modules/stdio: Likewise.
40702         * modules/stdlib: Likewise.
40703         * modules/string: Likewise.
40704         * modules/strings: Likewise.
40705         * modules/sys_file: Likewise.
40706         * modules/sys_ioctl: Likewise.
40707         * modules/sys_select: Likewise.
40708         * modules/sys_socket: Likewise.
40709         * modules/sys_stat: Likewise.
40710         * modules/sys_time: Likewise.
40711         * modules/sys_times: Likewise.
40712         * modules/sys_utsname: Likewise.
40713         * modules/sys_wait: Likewise.
40714         * modules/sysexits: Likewise.
40715         * modules/time: Likewise.
40716         * modules/times: Likewise.
40717         * modules/tmpfile: Likewise.
40718         * modules/trim: Likewise.
40719         * modules/unistd: Likewise.
40720         * modules/wchar: Likewise.
40721         * modules/wctype: Likewise.
40722
40723 2009-09-17  Bruno Haible  <bruno@clisp.org>
40724
40725         Make getdate.y compile on QNX and NetBSD 5 / i386.
40726         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40727         TIME_T_FITS_IN_LONG_INT.
40728         * lib/getdate.y (long_time_t): New type.
40729         (relative_time): Change type of 'seconds' field to long_time_t.
40730         (get_date): Update types of local variables. Check against overflow
40731         during conversion from long_time_t to time_t.
40732         Reported by Matt Kraai <kraai@ftbfs.org>
40733         and Hasso Tepper <hasso@netbsd.org>.
40734
40735 2009-09-17  Bruno Haible  <bruno@clisp.org>
40736
40737         * modules/COPYING: Update copyright years.
40738         * modules/README: Likeiwse.
40739         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40740         Reported by Ian Beckwith <ianb@erislabs.net>.
40741
40742 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40743
40744         * users.txt: Update references for gnuit package.
40745
40746 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40747
40748         * m4/getdelim.m4: Fix typo in copyright line.
40749
40750 2009-09-17  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/atoll.c: Use the standard header with GPL copyright.
40753         * lib/argz.in.h: Likewise.
40754         * lib/glob.c: Likewise.
40755         * lib/glob-libc.h: Likewise.
40756         * lib/random_r.c: Likewise.
40757         * lib/siglist.h: Likewise.
40758         * lib/strsignal.c: Likewise.
40759         Reported by Ian Beckwith <ianb@erislabs.net>.
40760
40761 2009-09-17  Eric Blake  <ebb9@byu.net>
40762
40763         rmdir: ensure correct dependency order
40764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40765
40766 2009-09-17  Bruno Haible  <bruno@clisp.org>
40767
40768         Disable assertion that fails on NetBSD 5 / i386.
40769         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40770         Reported by Sam Steingold <sds@gnu.org>
40771         and Hasso Tepper <hasso@netbsd.org>.
40772
40773 2009-09-16  Eric Blake  <ebb9@byu.net>
40774
40775         unlinkdir: port to mingw
40776         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40777         on which no one can unlink a directory.
40778
40779         stdlib: sort witness names
40780         * modules/stdlib (Makefile.am): Sort replacements.
40781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40782         * lib/stdlib.in.h: Likewise.
40783
40784         parse-duration-tests: avoid link failure
40785         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40786         LIBINTL.
40787         Reported by Tom G. Christensen.
40788
40789         openat-tests: ensure unlinkat behaves like rmdir
40790         * tests/test-rmdir.c (main): Factor guts...
40791         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40792         * modules/rmdir-tests (Files): Ship new file.
40793         * modules/openat-tests: New test.
40794         * tests/test-unlinkat.c: Likewise.
40795
40796         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40797         * modules/rmdir-errno (Status, Notice): Now obsolete.
40798
40799         rmdir: work around cygwin 1.5.x and mingw bugs
40800         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40801         * lib/rmdir.c (rmdir): Work around it.
40802         * modules/rmdir (Status, Notice): No longer obsolete.
40803         (Files): Add dos.m4.
40804         (Depends-on): Add unistd.
40805         (configure.ac): Set witnesses.
40806         (License): Relax to LGPLv2+.
40807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40808         * modules/unistd (Makefile.am): Substitute witnesses.
40809         * lib/unistd.in.h (rmdir): Declare replacement.
40810         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40811         * modules/rmdir-tests: New tests.
40812         * tests/test-rmdir.c: Likewise.
40813
40814 2009-09-15  Eric Blake  <ebb9@byu.net>
40815
40816         fchdir: improve use of replacement functions
40817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40820         REPLACE_CLOSEDIR.
40821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40822         * modules/sys_stat (Makefile.am): Substitute correct witness.
40823         * modules/dirent (Makefile.am): Likewise.
40824         * modules/unistd (Makefile.am): Likewise.
40825         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40826         * lib/unistd.in.h (dup): Likewise.
40827         * lib/sys_stat.in.h (fstat): Likewise.
40828
40829         maint: ignore gnulib-tool temp files
40830         * .gitignore: Ignore files created during gnulib-tool --test.
40831
40832 2009-09-13  Jim Meyering  <meyering@redhat.com>
40833
40834         posixtm: don't reject a time that specify "60" as the number of seconds
40835         * lib/posixtm.c (posixtime): The code to reject invalid dates
40836         would also reject a time specified with the .60 suffix.
40837         But POSIX allows that, in order to accommodate leap seconds.
40838         So don't reject it.
40839         (main): Adjust tests accordingly.
40840         * modules/posixtm (Depends-on): Add stpcpy.
40841
40842 2009-09-11  Jim Meyering  <meyering@redhat.com>
40843
40844         announce-gen: include [$release_type] in emitted Subject:
40845         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40846         e.g., [stable] in the emitted Subject: line.
40847
40848 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40849
40850         Remove obsolete macros from several modules.
40851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40852         obsolete Autoconf macros with their modern counterparts.
40853         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40854         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40856         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40857         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40858         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40861         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40862         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40865         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40866         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40867         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40869         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40870         * m4/time_r.m4 (gl_TIME_R): Likewise.
40871         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40872         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40873         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40874
40875         Fix copyright header in build-aux scripts.
40876         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40877         recommendation.
40878         * build-aux/ncftpput-ftp: Likewise.
40879         * build-aux/update-copyright: Likewise.
40880
40881 2009-09-09  Eric Blake  <ebb9@byu.net>
40882
40883         test-link: allow Linux choice of errno
40884         * tests/test-link.c (main): Relax test for alternate error.
40885
40886         strndup: fix improper m4 caching
40887         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40888         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40889         (gl_PREREQ_STRNDUP): Delete.
40890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40891         * modules/string (Makefile.am): Substitute it.
40892         * lib/string.in.h (strndup): Modernize prototype.
40893
40894         getcwd: port to mingw
40895         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40896         different from the POSIX assumptions made throughout the getcwd
40897         module; fortunately, the mingw getcwd does not need replacement.
40898         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40899         * modules/getcwd-tests: New test.
40900         * tests/test-getcwd.c: Likewise.
40901
40902         link: fix platform bugs
40903         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40904         * lib/link.c (link): Work around them.  Fix related mingw bug.
40905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40906         * modules/unistd (Makefile.am): Substitute it.
40907         * lib/unistd.in.h (link): Declare replacement.
40908         * doc/posix-functions/link.texi (link): Document this.
40909         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40910
40911         test-link: consolidate into single C program, test more cases
40912         * tests/test-link.sh: Delete.
40913         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40914         at least Cygwin and Solaris.
40915         * modules/link-tests (Files): Remove unused file.
40916         (Depends-on): Add errno, sys_stat.
40917         (Makefile.am): Simplify.
40918
40919 2009-09-08  Bruno Haible  <bruno@clisp.org>
40920
40921         Work around towlower, towupper bug on mingw.
40922         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40923         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40924         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40925         * doc/posix-functions/towupper.texi: Likewise.
40926         Reported by Eric Blake.
40927
40928 2009-09-08  Jim Meyering  <meyering@redhat.com>
40929
40930         build: don't try to run autoheader if we don't use it
40931         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40932         is not used in configure.ac.
40933
40934 2009-09-08  Eric Blake  <ebb9@byu.net>
40935
40936         euidaccess: fix compilation error
40937         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40938
40939         rawmemchr: relax license
40940         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40941         okay.
40942         Reported by Jim Meyering.
40943
40944         mkfifoat: new module
40945         * modules/mkfifoat: New file.
40946         * lib/mkfifoat.c: Likewise.
40947         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40949         * modules/sys_stat (Makefile.am): Use them.
40950         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40951         * MODULES.html.sh (File system functions): Mention module.
40952         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40953         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40954         * modules/mkfifoat-tests: New test.
40955         * tests/test-mkfifoat.c: Likewise.
40956
40957         strchrnul: relax license
40958         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40959         okay.
40960         Reported by Jim Meyering.
40961
40962 2009-09-08  Eric Blake  <ebb9@byu.net>
40963
40964         fstatat: fix compilation on Solaris
40965         * lib/fstatat.c (includes): Add fcntl.h.
40966         Reported by Pádraig Brady.
40967
40968 2009-09-07  Eric Blake  <ebb9@byu.net>
40969
40970         rename: modernize replacement
40971         * modules/rename (Depends-on): Add stdio.
40972         (configure.ac): Declare witness.
40973         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40974         stdio take care of replacement.
40975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40976         * modules/stdio (Makefile.am): Substitute them.
40977         * lib/stdio.in.h (rename): Declare replacement.
40978         * lib/rename.c (includes): Allow cross-compilation to non-windows
40979         machines.
40980         * doc/posix-functions/rename.texi (rename): Improve
40981         documentation.
40982
40983         stdio: sort witness names
40984         * modules/stdio (Makefile.am): Sort replacements.
40985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40986         * lib/stdio.in.h: Likewise.
40987
40988         getcwd: minor cleanups
40989         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40990         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40991
40992         openat: provide more convenience names
40993         * modules/faccessat (configure.ac): Add C witness.
40994         * lib/unistd.in.h (readlinkat): Fix typo.
40995         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40996         convenience wrappers.
40997         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40998         wrappers in syntax checks.
40999
41000 2009-09-06  Eric Blake  <ebb9@byu.net>
41001
41002         doc: fix comments in recent patches
41003         * lib/faccessat.c: Mention correct function.
41004         * lib/fchmodat.c: Likewise.
41005         * lib/fchownat.c: Likewise.
41006         * lib/symlinkat.c: Likewise.
41007         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41008         constants.
41009
41010         faccessat, symlinkat: continue cleanup of previous patch
41011         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41012         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41013         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41015         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41016         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41017         set.
41018
41019 2009-09-06  Bruno Haible  <bruno@clisp.org>
41020
41021         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41022         (fstatat): Declare if GNULIB_FSTATAT is set.
41023         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41024         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41025         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41026         * modules/fcntl-h (Files): Remove m4/openat.m4.
41027         * modules/sys_stat (Files): Remove m4/openat.m4.
41028         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41029         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41030         * modules/unistd (Files): Remove m4/openat.m4.
41031         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41032         GNULIB_OPENAT.
41033         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41034         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41036         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41037         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41038         gl_OPENAT_DEFAULTS.
41039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41040         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41041         Don't require gl_OPENAT_DEFAULTS.
41042         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41043         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41044         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41045         (gl_OPENAT_DEFAULTS): Remove macro.
41046
41047 2009-09-06  Bruno Haible  <bruno@clisp.org>
41048
41049         * modules/openat (configure.ac): Remove unneeded witness.
41050
41051 2009-09-06  Bruno Haible  <bruno@clisp.org>
41052
41053         Set errno to ENOSYS when a function is entirely unsupported.
41054         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41055         EOPNOTSUPP.
41056         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41057         * modules/chown (Depends-on): Remove errno.
41058
41059 2009-09-06  Bruno Haible  <bruno@clisp.org>
41060
41061         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41062
41063 2009-09-06  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41066
41067 2009-09-06  Ben Pfaff  <blp@gnu.org>
41068             Bruno Haible  <bruno@clisp.org>
41069
41070         Work around a glibc bug in strtok_r.
41071         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41072         Undefine if UNDEFINE_STRTOK_R is set.
41073         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41075         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41076         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41077         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41078         UNDEFINE_STRTOK_R.
41079         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41080
41081 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41082
41083         exclude: minor fix
41084         * lib/exclude.c: Include wctype.h
41085
41086 2009-09-06  Akim Demaille  <demaille@gostai.com>
41087
41088         bootstrap: improve error message
41089         * build-aux/bootstrap (find_tool): Upon failure, report the list
41090         of candidates.
41091         Honor the initial value of the envvar.
41092
41093 2009-09-05  Eric Blake  <ebb9@byu.net>
41094
41095         symlinkat: new module
41096         * modules/symlinkat: New file.
41097         * lib/symlinkat.c: Likewise.
41098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41100         * modules/unistd (Makefile.am): Use them.
41101         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41102         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41103         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41104         * MODULES.html.sh (File system functions): Mention module.
41105         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41106         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41107         * modules/symlinkat-tests: New test.
41108         * tests/test-symlinkat.c: Likewise.
41109
41110         test-openat-safer: add more checks
41111         * tests/test-openat-safer.c (main): Check more code paths.
41112
41113 2009-09-05  Jim Meyering  <meyering@redhat.com>
41114
41115         syntax-check: detect unnecessary inclusion of openat.h
41116         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41117
41118 2009-09-05  Bruno Haible  <bruno@clisp.org>
41119
41120         Support towlower, towupper.
41121         * doc/posix-functions/towlower.texi: Mention module wctype.
41122         * doc/posix-functions/towupper.texi: Likewise.
41123         * lib/wctype.in.h (towlower, towupper): New functions.
41124         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41125         (ASSERT): New macro.
41126         (e): New variable.
41127         (main): Test also towlower, towupper. Test WEOF argument.
41128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41129
41130 2009-09-05  Bruno Haible  <bruno@clisp.org>
41131
41132         Fix conversion behaviour when the input is invalid.
41133         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41134         mark occurring in first pass of indirect conversion.
41135         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41136         input.
41137         Found by clang's static analyzer.
41138
41139 2009-09-05  Bruno Haible  <bruno@clisp.org>
41140
41141         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41142         where direct conversion is possible.
41143
41144 2009-09-04  Eric Blake  <ebb9@byu.net>
41145
41146         openat: fail with ENOENT on empty name
41147         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41148         buffer.
41149
41150         link-follow: fix logic bug in prior patch
41151         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41152         reversed sense of yes and no in prior patch.  Avoid confusing
41153         compilation failure with desired semantics.
41154
41155         link-follow: accomodate mingw and cross-compilation
41156         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41157         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41158         cross-compilation results to -1, to make linkat easier to
41159         implement when cross-compiling.  Trivially support mingw.
41160         * modules/link-follow (configure.ac): Call new name.
41161         * NEWS: Mention this.
41162
41163 2009-09-03  Eric Blake  <ebb9@byu.net>
41164
41165         faccessat: compile replacement
41166         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41167         needed.
41168
41169         fts: fix compilation error
41170         * lib/fts.c (includes): Re-add "openat.h", for
41171         openat_needs_fchdir.
41172
41173         faccessat: new module
41174         * modules/faccessat: New file.
41175         * lib/faccessat.c: Likewise.
41176         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41178         * modules/unistd (Makefile.am): Use it.
41179         * lib/unistd.in.h (faccessat): Declare it.
41180         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41181         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41182         * MODULES.html.sh (File system functions): Mention it.
41183         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41184         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41185
41186         euidaccess: prefer POSIX over non-standard implementation
41187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41188         * lib/euidaccess.c (euidaccess): Use it if available.
41189
41190         openat: make template easier to use
41191         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41192         AT_FUNC_F2 to be undefined.
41193         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41194         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41195         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41196         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41197         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41198         Likewise.
41199         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41200         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41201         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41202         Likewise.
41203
41204         openat: declare in POSIX headers
41205         * NEWS: Mention this.
41206         * modules/openat (configure.ac): Declare witnesses.
41207         (Depends-on): Add fcntl-h, sys_stat, unistd.
41208         (Include): Mention correct headers.
41209         * modules/fcntl-h (Depends-on): Add link-warning.
41210         (Files): Add openat.m4.
41211         (Makefile.am): Substitute witnesses.
41212         * modules/sys_stat (Files, Makefile.am): Likewise.
41213         * modules/unistd (Files, Makefile.am): Likewise.
41214         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41215         (gl_OPENAT_DEFAULTS): New macro.
41216         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41219         (SYS_STAT_H): Remove unused variable.
41220         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41221         * lib/fcntl--.h (includes): Remove unneeded header.
41222         * lib/openat-safer.c (includes): Likewise.
41223         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41224         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41225         appropriate headers.
41226         (__OPENAT_PREFIX): Delete.
41227         * lib/fcntl.in.h (openat): Provide declaration.
41228         (AT_FDCWD): Fix Solaris bug.
41229         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41230         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41231         * lib/fchmodat.c (includes):  Adjust to find declaration.
41232         * lib/fchownat.c (includes): Likewise.
41233         * lib/mkdirat.c (includes): Likewise.
41234         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41235         still visible.
41236
41237 2009-09-02  Eric Blake  <ebb9@byu.net>
41238
41239         errno: use consistently
41240         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41241         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41242         * lib/canonicalize.c (ELOOP): Likewise.
41243         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41244         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41245         * lib/lchown.c (EOPNOTSUPP): Likewise.
41246         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41247         * lib/savewd.c (ESTALE): Likewise.
41248         * lib/settime.c (ENOSYS): Likewise.
41249         * lib/utimens.c (ENOSYS): Likewise.
41250         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41251         * lib/chdir-safer.c (ELOOP): Likewise.
41252         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41253         * modules/c-stack (Depends-on): Add errno.
41254         * modules/canonicalize (Depends-on): Likewise.
41255         * modules/chdir-safer (Depends-on): Likewise.
41256         * modules/fdopendir (Depends-on): Likewise.
41257         * modules/inet_ntop (Depends-on): Likewise.
41258         * modules/inet_pton (Depends-on): Likewise.
41259         * modules/lchown (Depends-on): Likewise.
41260         * modules/openat (Depends-on): Likewise.
41261         * modules/savewd (Depends-on): Likewise.
41262         * modules/settime (Depends-on): Likewise.
41263         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41264
41265         fts: avoid leaking fds
41266         * modules/fts (Depends-on): Add cloexec.
41267         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41268         flag.
41269
41270         fts: make directory fds more robust
41271         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41272         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41273
41274         backupfile, chdir-long, fts, savedir: make safer
41275         * lib/backupfile.c (includes): Use "dirent--.h", since
41276         numbered_backup can write to stderr during readdir.
41277         * lib/savedir.c (includes): Likewise.
41278         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41279         emulation can write to stderr on failure.
41280         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41281         * lib/getcwd.c: Document why opendir_safer is unused.
41282         * lib/glob.c: Likewise.
41283         * lib/scandir.c: Likewise.
41284         * lib/openat-proc.c: Likewise, for open_safer.
41285         * modules/backupfile (Depends-on): Add dirent-safer.
41286         * modules/savedir (Depends-on): Likewise.
41287         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41288         * modules/chdir-long (Depends-on): Add openat-safer.
41289
41290         openat-safer: new module
41291         * modules/openat-safer: New file.
41292         * lib/openat-safer.c: Likewise.
41293         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41294         * lib/fcntl-safer.h (openat_safer): Declare.
41295         * lib/fcntl--.h (openat): Override.
41296         * MODULES.html.sh (File descriptor based I/O): Mention it.
41297         * lib/openat.h: Add double-inclusion guards.
41298         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41299         "fcntl--.h", so we can implement openat.
41300         * modules/openat-safer-tests: New test.
41301         * tests/test-openat-safer.c: New file.
41302
41303         dirent-safer: new module
41304         * modules/dirent-safer: New file.
41305         * lib/dirent--.h: Likewise.
41306         * lib/dirent-safer.h: Likewise.
41307         * lib/opendir-safer.c: Likewise.
41308         * m4/dirent-safer.m4: Likewise.
41309         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41310         * modules/dirent-safer-tests: New test.
41311         * tests/test-dirent-safer.c: New file.
41312         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41313
41314         fdopendir: optimize on mingw
41315         * lib/unistd.in.h (_gl_directory_name): New prototype.
41316         * lib/fchdir.c (_gl_directory_name): Implement it.
41317         (fchdir): Use it to simplify implementation.
41318         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41319         fchdir, when available, to avoid calling [f]chdir().
41320
41321         fdopendir: split into its own module
41322         * lib/openat.c (fdopendir): Move...
41323         * lib/fdopendir.c: ...into new file.
41324         * modules/fdopendir: New module.
41325         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41326         * modules/openat (Depends-on): Add fdopendir.
41327         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41328         fdopendir here.
41329         * modules/savedir (Depends-on): Only need fdopendir, not full
41330         openat.
41331         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41332         * lib/openat.h (fdopendir): Drop prototype.
41333         * lib/dirent.in.h (fdopendir): Provide prototype.
41334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41335         * modules/dirent (Makefile.am): Substitute them.
41336         * MODULES.html.sh (File system functions): Mention it.
41337         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41338         * modules/fdopendir-tests: New file.
41339         * tests/test-fdopendir.c: Likewise.
41340
41341         fchdir: use more consistent macro convention
41342         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41343         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41344         REPLACE_FCHDIR, rather than relying on config.h macros.
41345         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41346         inside a single make-time REPLACE_FCHDIR block, rather than using
41347         the config.h FCHDIR_REPLACEMENT.
41348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41349         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41350         Manage fstat replacement.
41351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41352         REPLACE_FCHDIR.
41353         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41354         (Makefile.am): Substitute REPLACE_FCHDIR.
41355         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41356         FCHDIR_REPLACEMENT.
41357         * lib/dup-safer.c (dup_safer): Likewise.
41358         * lib/dup2.c (rpl_dup2): Likewise.
41359         * lib/dup3.c (rpl_dup3): Likewise.
41360         * lib/open.c (rpl_open): Likewise.
41361
41362         fchdir: simplify error handling, and support dup3
41363         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41364         stdbool, malloc-posix, realloc-posix.
41365         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41366         (ensure_dirs_slot): Return false on allocation failure.
41367         (rpl_dup2): Delete.
41368         (_gl_register_dup): New function.
41369         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41370         (_gl_register_fd): Close fd on allocation failure.
41371         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41372         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41373         prototype.
41374         (rpl_dup2_fchdir): Delete prototype.
41375         * lib/open.c (open): Update caller.
41376         * lib/dup2.c (dup2): Track fchdir metadata.
41377         * lib/dup3.c (dup3): Likewise.
41378         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41380
41381 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41382
41383         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41384         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41385         don't pass arguments to AC_OUTPUT.
41386
41387 2009-09-02  Bruno Haible  <bruno@clisp.org>
41388
41389         * modules/mkdtemp (License): Relicense under LGPLv2+.
41390         Reported by Paolo Bonzini.
41391
41392 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41393
41394         Replace uses of obsolete autoconf macros in Jim's modules.
41395         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41396         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41397         can evoke a warning from autoconf when run with -Wobsolete
41398         enabled.  They were declared obsolete for good reasons (see
41399         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41400         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41401         should not continue using the deprecated macros.
41402         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41403         obsolete Autoconf macros with modern counterparts.
41404         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41405         * m4/dos.m4 (gl_AC_DOS): Likewise.
41406         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41408         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41409         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41412         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41413         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41414         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41415         Likewise.
41416         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41417         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41419         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41420         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41421         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41422
41423 2009-09-01  Eric Blake  <ebb9@byu.net>
41424
41425         fchdir: fix off-by-one bug in previous patch
41426         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41427         (_gl_unregister_fd): Delete useless if.
41428
41429 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41430
41431         maint.mk: sort the list of syntax-check rules
41432         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41433         easier to get a sense of progress when the rules are run sequentially
41434         and take a long time.
41435
41436 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41437
41438         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41439         * modules/netinet_in: Likewise.
41440         * modules/sys_file: Likewise.
41441         * modules/sys_ioctl: Likewise.
41442         * modules/sys_select: Likewise.
41443         * modules/sys_socket: Likewise.
41444         * modules/sys_stat: Likewise.
41445         * modules/sys_time: Likewise.
41446         * modules/sys_times: Likewise.
41447         * modules/sys_utsname: Likewise.
41448         * modules/sys_wait: Likewise.
41449
41450 2009-09-01  Jim Meyering  <meyering@redhat.com>
41451
41452         fts: help ensure that return values are not ignored
41453         * lib/fts_.h (__GNUC_PREREQ): Define.
41454         (__attribute_warn_unused_result__): Define.
41455         (fts_children, fts_close, fts_open, fts_read): Declare with
41456         __attribute_warn_unused_result__.
41457
41458         fts: fts_close now fails also when closing a dir file descriptor fails
41459         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41460         and propagate to caller, along with errno.
41461
41462         announce-gen: correct formatting in --help output
41463         * build-aux/announce-gen (usage): Move the one-line description in
41464         --help output "up", to where it belongs, just after Usage:.
41465
41466 2009-08-31  Eric Blake  <ebb9@byu.net>
41467
41468         fchdir: port to mingw
41469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41470         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41471         opened, then use a substitute.
41472         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41473         replacement.
41474         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41475         (_gl_register_fd): No need to check stat if open already filters
41476         all directories.
41477         (fchdir): Fix error condition to match POSIX.
41478         * modules/fchdir (Depends-on): Add sys_stat.
41479         * doc/posix-functions/open.texi (open): Document the limitation.
41480         * modules/fchdir-tests: New file.
41481         * tests/test-fchdir.c: Likewise.
41482
41483         canonicalize: allow cross-testing from cygwin to mingw
41484         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41485         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41486         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41487         Likewise.
41488         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41489         target does not support symlinks.
41490         * tests/test-canonicalize-lgpl.sh: Likewise.
41491
41492         chown: avoid compilation warning on mingw
41493         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41494         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41495         mingw.
41496         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41497         * modules/chown (Depends-on): Add errno.
41498
41499 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41500
41501         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41502         command.
41503
41504 2009-08-31  Jim Meyering  <meyering@redhat.com>
41505
41506         canonicalize: remove useless initialization
41507         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41508         initialization of local, "end".
41509
41510 2009-08-30  Bruno Haible  <bruno@clisp.org>
41511
41512         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41513         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41514         ENOSYS.
41515
41516 2009-08-30  Bruno Haible  <bruno@clisp.org>
41517
41518         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41519         /usr/xpg4/bin/tr when it exists.
41520         * tests/test-pipe-filter-gi1.sh: Likewise.
41521
41522 2009-08-30  Bruno Haible  <bruno@clisp.org>
41523
41524         Work around deficient /usr/bin/id program on Solaris.
41525         * tests/test-file-has-acl.sh (ID): New variable.
41526         * tests/test-set-mode-acl.sh (ID): Likewise.
41527         * tests/test-copy-acl.sh (ID): Likewise.
41528         * tests/test-copy-file.sh (ID): Likewise.
41529
41530 2009-08-30  Bruno Haible  <bruno@clisp.org>
41531
41532         New module 'xstriconveh'.
41533         * lib/xstriconveh.h: New file.
41534         * lib/xstriconveh.c: New file.
41535         * modules/xstriconveh: New file.
41536
41537 2009-08-30  Bruno Haible  <bruno@clisp.org>
41538
41539         Make it easier to use mem_cd_iconveh.
41540         * lib/striconveh.h (iconveh_t): New type.
41541         (iconveh_open, iconveh_close): New declarations.
41542         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41543         with a single 'const iconveh_t *' argument.
41544         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41545         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41546         with a single 'const iconveh_t *' argument.
41547         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41548         * tests/test-striconveh.c (main): Update.
41549         * NEWS: Mention the change.
41550
41551 2009-08-30  Bruno Haible  <bruno@clisp.org>
41552
41553         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41554         problem.
41555
41556 2009-08-30  Bruno Haible  <bruno@clisp.org>
41557
41558         Work around iconv_open problem on Solaris.
41559         * lib/iconv_open-solaris.gperf: New file.
41560         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41562         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41563         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41564         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41565         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41566
41567 2009-08-29  Jim Meyering  <meyering@redhat.com>
41568
41569         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41570         * top/maint.mk (cvs-check): Remove target; it was just an alias
41571         to the better-named vc-diff-check.
41572         (maintainer-distcheck): Remove rule.  It was used only from
41573         the (alpha/beta/major) target, and all of its commands but one
41574         were coreutils-specific.
41575         (vc-dist): Remove rule.
41576         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41577         Run vc-diff-check, not vc-dist.
41578         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41579
41580 2009-08-27  Bruno Haible  <bruno@clisp.org>
41581
41582         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41583         of 0.
41584
41585 2009-08-27  Bruno Haible  <bruno@clisp.org>
41586
41587         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41588         compilers.
41589         * doc/func.texi: Document the SunPRO C bug.
41590
41591 2009-08-27  Bruno Haible  <bruno@clisp.org>
41592
41593         Fix link error on Solaris.
41594         * tests/test-parse-duration.c (xstrdup): Remove function.
41595
41596 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41597
41598         ignore-value: handle pointer types, too
41599         * lib/ignore-value.h (__attribute__): Remove definition.
41600         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41601         of a more concise and more-often effective "(void) i" statement.
41602         (ignore_ptr): New function to suppress warnings from functions that
41603         return pointers, and to make it explicit that one function doesn't
41604         handle all cases.
41605
41606 2009-08-25  Bruno Haible  <bruno@clisp.org>
41607
41608         dup2: work around a Linux bug.
41609         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41610         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41611         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41612         Reported by Simon Josefsson.
41613
41614 2009-08-25  Jim Meyering  <meyering@redhat.com>
41615
41616         libguestfs uses gnulib
41617         * users.txt: Add libguestfs.
41618
41619 2009-08-24  Eric Blake  <ebb9@byu.net>
41620
41621         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41622         * lib/pipe2.c (includes): Add binary-io.h.
41623         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41624
41625 2009-08-24  Bruno Haible  <bruno@clisp.org>
41626
41627         Tolerate declared but missing accept4 syscall.
41628         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41629         available.
41630         * lib/sys_socket.in.h (accept4): If the function is already present,
41631         override it.
41632         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41633         * modules/accept4 (Makefile.am): Compile accept4.c always.
41634         Reported by Paolo Bonzini and Eric Blake.
41635
41636 2009-08-23  Bruno Haible  <bruno@clisp.org>
41637
41638         New module 'accept4'.
41639         * lib/sys_socket.in.h (accept4): New declaration.
41640         * lib/accept4.c: New file.
41641         * m4/accept4.m4: New file.
41642         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41643         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41644         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41645         HAVE_ACCEPT4.
41646         * modules/accept4: New file.
41647         * doc/glibc-functions/accept4.texi: Mention the new module.
41648
41649 2009-08-24  Jim Meyering  <meyering@redhat.com>
41650
41651         progname: also set global program_invocation_name, when possible
41652         Before this change, a libtool-enabled program that calls glibc's
41653         error function would report the program name as
41654         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41655         * modules/progname (configure.ac): Check for a declaration of
41656         program_invocation_name.
41657         * lib/progname.c:  Include <errno.h>.
41658         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41659         Set program_invocation_name.
41660
41661 2009-08-23  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/dup3.c: Include <string.h>.
41664
41665 2009-08-23  Bruno Haible  <bruno@clisp.org>
41666
41667         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41668         * lib/pipe2.c (pipe2): Likewise.
41669         Suggested by Eric Blake.
41670
41671 2009-08-23  Bruno Haible  <bruno@clisp.org>
41672
41673         Tolerate declared but missing dup3 syscall.
41674         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41675         * lib/unistd.in.h (dup3): If the function is already present,
41676         override it.
41677         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41678         * modules/dup3 (Makefile.am): Compile dup3.c always.
41679         Reported by Paolo Bonzini.
41680
41681 2009-08-23  Bruno Haible  <bruno@clisp.org>
41682
41683         Tolerate declared but missing pipe2 syscall.
41684         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41685         available.
41686         * lib/unistd.in.h (pipe2): If the function is already present,
41687         override it.
41688         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41689         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41690         Reported by Paolo Bonzini.
41691
41692 2009-08-23  Bruno Haible  <bruno@clisp.org>
41693
41694         * lib/pipe2.c (pipe2): Move #ifs inside function.
41695
41696 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41697
41698         quotearg: document limitations of quote_these_too
41699         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41700         those limitations are created.
41701         * lib/quotearg.h (set_char_quoting): Document that digits and
41702         letters that are special after backslash are not permitted.
41703         (quotearg_char): Cross-reference set_char_quoting documentation.
41704
41705 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41706
41707         quotearg: implement custom_quoting_style
41708         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41709         right_quote fields.
41710         (set_custom_quoting): New public function.
41711         (quotearg_buffer_restyled): Add left_quote and right_quote
41712         arguments, handle them very much like locale quoting, and update
41713         all uses.
41714         (quotearg_n_custom): New public function.
41715         (quotearg_n_custom_mem): New public function.
41716         (quotearg_custom): New public function.
41717         (quotearg_custom_mem): New public function.
41718         * lib/quotearg.h: Prototype and document new public functions.
41719         (enum quoting_style): For escape_quoting_style and
41720         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41721         ignored even though they're otherwise like c_quoting_style.
41722         Add custom_quoting_style member and document with comparison to
41723         clocale_quoting_style.
41724         * tests/test-quotearg.c (custom_quotes): New array.
41725         (custom_results): New array.
41726         (main): Extend to test custom quoting.
41727
41728 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41729
41730         quotearg: fix right quote escaping when it's in quote_these_too
41731         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41732         quote, be sure to prepend only one backslash.
41733         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41734         (main): Test it.
41735
41736 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41737
41738         quotearg-tests: test escaping of embedded locale quotes
41739         * tests/test-quotearg.c (struct result_strings): Add member for
41740         new input.
41741         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41742         (inputs): Add new input.
41743         (results_g): Add expected results.
41744         (flag_results): Likewise.
41745         (locale_results): Likewise.
41746         (compare_strings): Check those.
41747
41748 2009-08-23  Bruno Haible  <bruno@clisp.org>
41749
41750         Tests for module 'dup3'.
41751         * modules/dup3-tests: New file.
41752         * tests/test-dup3.c: New file.
41753
41754         New module 'dup3'.
41755         * lib/unistd.in.h (dup3): New declaration.
41756         * lib/dup3.c: New file.
41757         * m4/dup3.m4: New file.
41758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41759         HAVE_DUP3.
41760         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41761         * modules/dup3: New file.
41762         * doc/glibc-functions/dup3.texi: Mention the new module.
41763
41764 2009-08-23  Bruno Haible  <bruno@clisp.org>
41765
41766         Tweak the dup2 test.
41767         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41768         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41769         the test file is still empty. Fix argument order of lseek.
41770
41771 2009-08-23  Bruno Haible  <bruno@clisp.org>
41772
41773         Avoid test link errors when the modules getopt-gnu, gettext are used.
41774         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41776
41777 2009-08-23  Bruno Haible  <bruno@clisp.org>
41778
41779         Fix getdtablesize() on mingw.
41780         * lib/getdtablesize.c (getdtablesize): Implement differently.
41781         * lib/unistd.in.h (getdtablesize): Improve comment.
41782
41783 2009-08-23  Bruno Haible  <bruno@clisp.org>
41784
41785         New module 'mkostemp'.
41786         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41787         * lib/stdlib.in.h (mksotemp): New declaration.
41788         * lib/mkostemp.c: New file, from glibc with modifications.
41789         * lib/tempname.h (GT_FILE): Remove outdated comment.
41790         (gen_tempname): Add flags argument.
41791         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41792         (__GT_FILE): Map to 1.
41793         (small_open, large_open): Remove macros.
41794         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41795         * lib/mkstemp.c (mkstemp): Update.
41796         * lib/mkdtemp.c (mkdtemp): Likewise.
41797         * m4/mkostemp.m4: New file.
41798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41799         HAVE_MKOSTEMP.
41800         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41801         HAVE_MKOSTEMP.
41802         * modules/mkostemp: New file, based on modules/mkstemp.
41803         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41804         * NEWS: Mention the change.
41805
41806 2009-08-23  Bruno Haible  <bruno@clisp.org>
41807
41808         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41809         Reported by Eric Blake.
41810
41811 2009-08-23  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41814         Reported by Eric Blake.
41815
41816 2009-08-23  Bruno Haible  <bruno@clisp.org>
41817
41818         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41819         * modules/pipe2 (Depends-on): Likewise.
41820
41821 2009-08-23  Eric Blake  <ebb9@byu.net>
41822
41823         fcntl-h: add O_TTY_INIT support
41824         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41825         * tests/test-fcntl-h.c (o): Test it.
41826         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41827
41828         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41829         * modules/fcntl: Move <fcntl.h> header replacement...
41830         * modules/fcntl-h: ...to new name, so as not to collide with
41831         like-named function.
41832         * tests/test-fcntl.c: Rename...
41833         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41834         * modules/fcntl-tests: Rename...
41835         * modules/fcntl-h-tests: ...to this.  Update test file name.
41836         * modules/chdir-long (Depends-on): Update clients.
41837         * modules/chdir-safer (Depends-on): Likewise.
41838         * modules/fcntl-safer (Depends-on): Likewise.
41839         * modules/fts (Depends-on): Likewise.
41840         * modules/mkancesdirs (Depends-on): Likewise.
41841         * modules/mkdir-p (Depends-on): Likewise.
41842         * modules/open (Depends-on): Likewise.
41843         * modules/savewd (Depends-on): Likewise.
41844         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41845         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41846
41847 2009-08-22  Bruno Haible  <bruno@clisp.org>
41848
41849         * modules/binary-io (License): Relicense under LGPL.
41850         * modules/pipe2 (License): Likewise.
41851
41852 2009-08-22  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41855         return value.
41856         * lib/pipe-filter-gi.c (filter_init): Likewise.
41857         Reported by Eric Blake.
41858
41859 2009-08-22  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41862         * modules/pipe (Depends-on): Add pipe2.
41863
41864 2009-08-22  Bruno Haible  <bruno@clisp.org>
41865
41866         Tests for module 'pipe2'.
41867         * modules/pipe2-tests: New file.
41868         * tests/test-pipe2.c: New file.
41869
41870         New module 'pipe2'.
41871         * lib/unistd.in.h (pipe2): New declaration.
41872         * lib/pipe2.c: New file.
41873         * m4/pipe2.m4: New file.
41874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41875         HAVE_PIPE2.
41876         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41877         * modules/pipe2: New file.
41878         * doc/glibc-functions/pipe2.texi: Mention the new module.
41879
41880 2009-08-22  Bruno Haible  <bruno@clisp.org>
41881
41882         Reference some new glibc functions.
41883         * doc/glibc-functions/accept4.texi: New file.
41884         * doc/glibc-functions/dup3.texi: New file.
41885         * doc/glibc-functions/mkostemp.texi: New file.
41886         * doc/glibc-functions/pipe2.texi: New file.
41887         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41888         (Glibc sys/socket.h): Refer to accept4.
41889         (Glibc unistd.h): Refer to dup3, pipe2.
41890         Reported by Eric Blake.
41891
41892 2009-08-22  Jim Meyering  <meyering@redhat.com>
41893             Bruno Haible  <bruno@clisp.org>
41894
41895         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41896         This makes it so packages using automake-1.11's silent-rules option
41897         can print e.g., a single "GEN    configmake.h" line, rather than
41898         the 30+ statements that perform the job.  If you want to see the
41899         actual commands, you can still run "make V=1".
41900         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41901         so that make output is abbreviated when those variables are defined
41902         appropriately.
41903         * modules/argz: Likewise.
41904         * modules/arpa_inet: Likewise.
41905         * modules/byteswap: Likewise.
41906         * modules/configmake: Likewise.
41907         * modules/dirent: Likewise.
41908         * modules/errno: Likewise.
41909         * modules/fcntl: Likewise.
41910         * modules/float: Likewise.
41911         * modules/fnmatch: Likewise.
41912         * modules/getopt-posix: Likewise.
41913         * modules/glob: Likewise.
41914         * modules/iconv_open: Likewise.
41915         * modules/inttypes: Likewise.
41916         * modules/localcharset: Likewise.
41917         * modules/locale: Likewise.
41918         * modules/math: Likewise.
41919         * modules/netdb: Likewise.
41920         * modules/netinet_in: Likewise.
41921         * modules/poll: Likewise.
41922         * modules/posix_spawnp-tests: Likewise.
41923         * modules/sched: Likewise.
41924         * modules/search: Likewise.
41925         * modules/selinux-h: Likewise.
41926         * modules/signal: Likewise.
41927         * modules/spawn: Likewise.
41928         * modules/stdarg: Likewise.
41929         * modules/stdbool: Likewise.
41930         * modules/stddef: Likewise.
41931         * modules/stdint: Likewise.
41932         * modules/stdio: Likewise.
41933         * modules/stdlib: Likewise.
41934         * modules/string: Likewise.
41935         * modules/strings: Likewise.
41936         * modules/sys_file: Likewise.
41937         * modules/sys_ioctl: Likewise.
41938         * modules/sys_select: Likewise.
41939         * modules/sys_socket: Likewise.
41940         * modules/sys_stat: Likewise.
41941         * modules/sys_time: Likewise.
41942         * modules/sys_times: Likewise.
41943         * modules/sys_utsname: Likewise.
41944         * modules/sys_wait: Likewise.
41945         * modules/sysexits: Likewise.
41946         * modules/time: Likewise.
41947         * modules/unistd: Likewise.
41948         * modules/wchar: Likewise.
41949         * modules/wctype: Likewise.
41950
41951 2009-08-22  Jim Meyering  <meyering@redhat.com>
41952
41953         announce-gen: detect write failure
41954         * build-aux/announce-gen: Add Coda at end.
41955         Remove equivalent-but-more-verbose block at top.
41956
41957 2009-08-19  Akim Demaille  <demaille@gostai.com>
41958
41959         bootstrap: --help to stdout.
41960         * bootstrap (usage): Don't send --help to stderr.
41961         Use a here doc instead of a long string.
41962
41963 2009-08-21  Eric Blake  <ebb9@byu.net>
41964
41965         test-popen-safer: split from test-popen
41966         * tests/test-popen.c (main): Move...
41967         * tests/test-popen.h: ...into new file.
41968         * tests/test-popen-safer2.c: New file.
41969         * modules/popen-tests (Files): Add test-popen.h.
41970         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41971         Suggested by Bruno Haible.
41972
41973         test-fcntl-safer: split from test-open
41974         * tests/test-open.c (main): Move...
41975         * tests/test-open.h: ...into new file.
41976         * tests/test-fcntl-safer.c: New file.
41977         * modules/open-tests (Files): Add test-open.h.
41978         * modules/fcntl-safer-tests: New file.
41979         Suggested by Bruno Haible.
41980
41981         test-fopen-safer: split from test-fopen
41982         * tests/test-fopen.c (main): Move...
41983         * tests/test-fopen.h: ...into new file.
41984         * tests/test-fopen-safer.c: New file.
41985         * modules/fopen-tests (Files): Add test-fopen.h.
41986         * modules/fopen-safer-tests: New file.
41987         Suggested by Bruno Haible.
41988
41989 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41990
41991         popen-safer: test O_CLOEXEC at run-time.
41992         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41993
41994 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41995
41996         fcntl: move more flags to the header
41997         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41998         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41999         * lib/fcntl.in.h: Do both things here.
42000
42001 2009-08-21  Jim Meyering  <meyering@redhat.com>
42002
42003         consistently remove $@-t before redirecting to it
42004         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42005         * modules/alloca-opt: Likewise.
42006         * modules/byteswap: Likewise.
42007         * modules/fnmatch: Likewise.
42008         * modules/getopt-posix: Likewise.
42009         * modules/glob: Likewise.
42010         * modules/poll: Likewise.
42011         * modules/posix_spawnp-tests: Likewise.
42012         * modules/sys_socket: Likewise.
42013         * modules/sysexits: Likewise.
42014
42015 2009-08-21  Eric Blake  <ebb9@byu.net>
42016
42017         popen: simplify access to original popen
42018         * lib/popen.c (rpl_popen): No need to worry about popen being a
42019         macro.
42020         Reported by Bruno Haible.
42021
42022 2009-08-20  Eric Blake  <ebb9@byu.net>
42023
42024         build: avoid some compiler warnings
42025         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42026         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42027         type.
42028         (new_exclude_segment, excluded_file_pattern_p)
42029         (excluded_file_name_p): Reduce scope.
42030         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42031         old-style declaration.
42032
42033 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42034
42035         * tests/test-exclude1.sh: Handle Windows EOL.
42036         * tests/test-exclude2.sh: Likewise.
42037         * tests/test-exclude3.sh: Likewise.
42038         * tests/test-exclude4.sh: Likewise.
42039         * tests/test-exclude5.sh: Likewise.
42040         * tests/test-exclude6.sh: Likewise.
42041         * tests/test-exclude7.sh: Likewise.
42042
42043 2009-08-19  Akim Demaille  <demaille@gostai.com>
42044
42045         bootstrap: find sha1sum when named gsha1sum.
42046         * bootstrap (find_tool): New.
42047         ($SHA1SUM): New.
42048         Use it.
42049
42050 2009-08-20  Jim Meyering  <meyering@redhat.com>
42051
42052         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42053         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42054         expression that converts "." in a file name to "\." in the resulting
42055         regexp.  Start with a dummy statement, so that prior shell variable
42056         definitions are expanded portably.  Reported by Simon Josefsson.
42057
42058 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42059
42060         Fix polling for writeability of a screen buffer.
42061         * lib/poll.c: Distinguish input and screen buffers for the
42062         Win32 implementation.
42063         * lib/select.c: Likewise.
42064
42065 2009-08-19  Eric Blake  <ebb9@byu.net>
42066
42067         popen-safer: prevent popen from clobbering std descriptors
42068         * modules/popen-safer: New file.
42069         * lib/popen-safer.c: Likewise.
42070         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42071         * lib/stdio--.h (popen): Provide override.
42072         * lib/stdio-safer.h (popen_safer): Provide declaration.
42073         * tests/test-popen.c (includes): Partially test this.
42074         * modules/popen-safer-tests: New file, for more tests.
42075         * tests/test-popen-safer.c: Likewise.
42076         * MODULES.html.sh (file stream based Input/Output): Mention it.
42077
42078         tests: test some of the *-safer modules
42079         * modules/fopen-safer (Depends-on): Add fopen.
42080         * modules/fcntl-safer (Depends-on): Add fcntl.
42081         * modules/stdlib-safer (Depends-on): Add stdlib.
42082         (configure.ac): Set indicator.
42083         * modules/unistd-safer (configure.ac): Likewise.
42084         * modules/tmpfile-safer (configure.ac): Likewise.
42085         (Depends-on): Add tmpfile.
42086         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42087         active.
42088         * tests/test-fopen.c (includes): Test safer versions when they are
42089         in use.
42090         * tests/test-open.c (includes): Likewise.
42091
42092         popen: fix cygwin 1.5 bug when stdin closed
42093         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42094         * modules/popen: New file.
42095         * modules/popen-tests: Likewise.
42096         * tests/test-popen.c: Likewise.
42097         * m4/popen.m4: Likewise.
42098         * lib/popen.c: Likewise.
42099         * lib/stdio.in.h (popen): New declaration.
42100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42101         * modules/stdio (Makefile.am): Likewise.
42102         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42103
42104 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42105
42106         maint.mk: give full control over update-copyright exclusions
42107         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42108         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42109         (update-copyright): Don't force inclusion of top-level
42110         ChangeLog.  Don't force exclusion of all COPYING files, but make
42111         them the default exclusion instead.
42112
42113 2009-08-16  Bruno Haible  <bruno@clisp.org>
42114
42115         Fix test failures on Solaris 10.
42116         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42117         tests when Solaris iconv() is used.
42118         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42119         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42120         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42121         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42122         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42123
42124 2009-08-16  Bruno Haible  <bruno@clisp.org>
42125
42126         Fix test failures on Solaris 10.
42127         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42128         'tr' program and pass it as first argument.
42129         * tests/test-pipe-filter-gi1.sh: Likewise.
42130         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42131         program as first argument.
42132         * tests/test-pipe-filter-gi1.c (main): Likewise.
42133
42134 2009-08-16  Eric Blake  <ebb9@byu.net>
42135
42136         fpurge: fix previous commits
42137         * modules/fpurge (Makefile.am): Make replacement conditional,
42138         partially reverting 2007-04-29 change; missed in previous
42139         attempt.
42140         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42141         is missing.
42142
42143 2009-08-16  Bruno Haible  <bruno@clisp.org>
42144
42145         Clarify fpurge's effect on the file position.
42146         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42147         * tests/test-fpurge.c (main): Make a second pass for checking the file
42148         position.
42149
42150 2009-08-16  Bruno Haible  <bruno@clisp.org>
42151
42152         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42153         declaration of fpurge is missing.
42154         * tests/test-fpurge.c (main): Check that the file has not more contents
42155         than expected. Close the file before removing it.
42156
42157 2009-08-15  Eric Blake  <ebb9@byu.net>
42158
42159         fpurge: don't wrap working cygwin implementation
42160         * lib/fpurge.c (fpurge): Fix comment typo.
42161         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42162         1.7 to avoid replacement.
42163         * tests/test-fpurge.c (main): Enhance test.
42164
42165 2009-08-15  Eric Blake  <ebb9@byu.net>
42166         and Jim Meyering  <meyering@redhat.com>
42167
42168         test-update-copyright: skip if perl is insufficient
42169         * tests/test-update-copyright.sh: Failure to run maintainer tool
42170         should not cause testsuite failure on cygwin 1.5.
42171
42172 2009-08-14  Eric Blake  <ebb9@byu.net>
42173
42174         doc: mention more functions added in cygwin 1.7.0
42175         * doc/posix-headers/limits.texi (limits.h): Update for recent
42176         cygwin additions.
42177         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42178         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42179         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42180         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42181         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42182
42183 2009-08-14  Eric Blake  <ebb9@byu.net>
42184
42185         maint.mk: simplify update-copyright rule
42186         * top/maint.mk (update-copyright-local): Delete, and document how
42187         to do it in cfg.mk instead.
42188         (update-copyright-exclude-regexp): Delete, and document how to do
42189         it in .x-update-copyright instead.
42190         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42191         exclude ChangeLog.
42192
42193 2009-08-14  Bruno Haible  <bruno@clisp.org>
42194
42195         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42196
42197 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42198
42199         maint.mk: support update-copyright-env
42200         * top/maint.mk (update-copyright-env): Define place-holder.
42201         (update-copyright): Expand $(update-copyright-env) before
42202         invoking update-copyright.
42203
42204 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42205
42206         update-copyright: implement forced reformatting
42207         * build-aux/update-copyright: Implement and document
42208         UPDATE_COPYRIGHT_FORCE.
42209         * tests/test-update-copyright.sh: Test it.
42210
42211 2009-08-14  Eric Blake  <ebb9@byu.net>
42212         and Bruno Haible  <bruno@clisp.org>
42213
42214         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42215         * tests/test-locale.c: Revert previous patch related to NULL.
42216         * tests/test-stdio.c: Likewise.
42217         * tests/test-stdlib.c: Likewise.
42218         * tests/test-string.c: Likewise.
42219         * tests/test-unistd.c: Likewise.
42220         * modules/time-tests (Depends-on): Add verify.
42221         * modules/wchar-tests (Depends-on): Likewise.
42222         * tests/test-time.c: Test for NULL compliance.
42223         * tests/test-wchar.c: Likewise.
42224         * modules/locale (Depends-on): Add stddef.
42225         * modules/stdio (Depends-on): Likewise.
42226         * modules/stdlib (Depends-on): Likewise.
42227         * modules/string (Depends-on): Likewise.
42228         * modules/time (Depends-on): Likewise.
42229         * modules/unistd (Depends-on): Likewise.
42230         * modules/wchar (Depends-on): Likewise.
42231         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42232         * lib/stdlib.in.h (includes): Likewise.
42233         * lib/string.in.h (includes): Likewise.
42234         * lib/time.in.h (includes): Likewise.
42235         * lib/unistd.in.h (includes): Likewise.
42236         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42237         replaced.
42238         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42239         * m4/stddef_h.m4: New file.
42240         * modules/stddef: Likewise.
42241         * lib/stddef.in.h: Likewise.
42242         * modules/stddef-tests: Likewise.
42243         * tests/test-stddef.c: Likewise.
42244         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42245         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42246         * doc/posix-headers/locale.texi (locale.h): Likewise.
42247         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42248         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42249         * doc/posix-headers/string.texi (string.h): Likewise.
42250         * doc/posix-headers/time.texi (time.h): Likewise.
42251         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42252         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42253
42254 2009-08-14  Eric Blake  <ebb9@byu.net>
42255
42256         doc: improve git diff of texinfo files
42257         * .gitattributes: Add rule for *.texi files, with hint on how to
42258         use it.
42259         Copied from m4, and based on a report by Bruno Haible.
42260
42261 2009-08-14  Bruno Haible  <bruno@clisp.org>
42262
42263         Disable multithread support by default on Cygwin 1.5.x for real.
42264         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42265
42266 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42267
42268         update-copyright: much ado about intervals
42269         * build-aux/update-copyright: Implement and document
42270         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42271         of copyright year intervals.
42272         Also, document UPDATE_COPYRIGHT_YEAR.
42273         * tests/test-update-copyright.sh: Test it.
42274
42275         update-copyright: convert 2-digit to 4-digit years
42276         * build-aux/update-copyright: Implement and document.
42277         * tests/test-update-copyright.sh: Update.
42278
42279 2009-08-14  Jim Meyering  <meyering@redhat.com>
42280
42281         test-exclude: avoid coreutils "make check" failure
42282         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42283         just as in test-argmatch.c.
42284
42285 2009-08-13  Eric Blake  <ebb9@byu.net>
42286
42287         test-dup2: fix bad assumption
42288         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42289         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42290
42291         test-version-etc: fix CRLF portability issue
42292         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42293         recognize \r.
42294         * tests/test-argp-version-etc-1.sh: Likewise.
42295
42296         getopt: update client modules
42297         * modules/argp (Depends-on): Use getopt-gnu.
42298         * modules/git-merge-changelog (Depends-on): Likewise.
42299         * modules/long-options (Depends-on): Likewise.
42300         * modules/xstrtol (Depends-on): Likewise.
42301
42302 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42303
42304         * tests/test-version-etc.sh: Don't fail on different
42305         project/version.  Don't fail on CRLF differences.  Rewrite to use
42306         multiple -e instead of multiple sed forks, suggested by Eric Blake
42307         <ebb9@byu.net>.
42308         * tests/test-argp-version-etc-1.sh: Likewise.
42309
42310 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42311
42312         * tests/test-version-etc.sh: Don't fail on different
42313         project/version.
42314
42315 2009-08-12  Bruno Haible  <bruno@clisp.org>
42316
42317         Tests for modules 'getopt-posix', 'getopt-gnu'.
42318         * modules/getopt-posix-tests: New file.
42319         * tests/test-getopt.c: New file.
42320         * tests/test-getopt.h: New file.
42321         * tests/test-getopt_long.h: New file.
42322
42323         New modules 'getopt-posix', 'getopt-gnu'.
42324         * modules/getopt-gnu: New file, renamed from modules/getopt.
42325         * modules/getopt-posix: New file.
42326         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42327         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42328         (gl_GETOPT): Remove macro.
42329         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42330         Disable the test against BSD systems that declare optreset. Test
42331         against mingw bug. Test against lack of support of optional arguments
42332         on many platforms.
42333         * doc/glibc-headers/getopt.texi: Update module name and list of
42334         relevant platforms.
42335         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42336         'getopt-gnu' and more portability problems.
42337         * NEWS: Mention the changes.
42338
42339 2009-08-12  Bruno Haible  <bruno@clisp.org>
42340
42341         Ensure that optarg etc. get declared by <unistd.h>.
42342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42343         AC_USE_SYSTEM_EXTENSIONS.
42344         * modules/getopt (Depends-on): Add 'extensions'.
42345
42346 2009-08-12  Bruno Haible  <bruno@clisp.org>
42347
42348         Avoid test link errors.
42349         * modules/pipe-filter-ii-tests (Makefile.am): Define
42350         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42351         * modules/pipe-filter-gi-tests (Makefile.am): Define
42352         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42354
42355 2009-08-12  Bruno Haible  <bruno@clisp.org>
42356
42357         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42358         gl_GETOPT_SUBSTITUTE before.
42359         (gl_GETOPT): Use it.
42360         * m4/argp.m4 (gl_ARGP): Update.
42361         Reported by Sergey Poznyakoff.
42362
42363         * m4/getopt.m4: Reorder macros.
42364         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42365         (gl_GETOPT_SUBSTITUTE): Remove macro.
42366
42367 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42368
42369         Minor improvement in gitlog-to-changelog
42370
42371         * build-aux/gitlog-to-changelog: New option `--format' makes
42372         output format string configurable.
42373
42374 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42375
42376         Optimize exclude: use hash tables for non-wildcard patterns.
42377
42378         * lib/exclude.c: Include hash.h and mbuiter.h
42379         (struct exclude_pattern, exclude_segment): New data types.
42380         (struct exclude): Rewrite.
42381         (fnmatch_pattern_has_wildcards): New function.
42382         (new_exclude_segment, free_exclude_segment): New functions.
42383         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42384         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42385         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42386         * modules/exclude: Depend on hash and mbuiter.
42387
42388         * modules/exclude-tests: New file.
42389         * tests/test-exclude.c: New file.
42390         * tests/test-exclude1.sh: New file.
42391         * tests/test-exclude2.sh: New file.
42392         * tests/test-exclude3.sh: New file.
42393         * tests/test-exclude4.sh: New file.
42394         * tests/test-exclude5.sh: New file.
42395         * tests/test-exclude6.sh: New file.
42396         * tests/test-exclude7.sh: New file.
42397
42398 2009-08-12  Bruno Haible  <bruno@clisp.org>
42399
42400         Ensure that getopt() gets declared by <unistd.h>.
42401         * lib/unistd.in.h: Conditionally include getopt.h.
42402         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42403         Set GNULIB_UNISTD_H_GETOPT.
42404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42405         GNULIB_UNISTD_H_GETOPT.
42406         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42407
42408 2009-08-12  Bruno Haible  <bruno@clisp.org>
42409
42410         Clarify logic.
42411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42412         gl_replace_getopt instead of GETOPT_H.
42413
42414 2009-08-12  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/getopt.m4: Add comments.
42417
42418 2009-08-12  Bruno Haible  <bruno@clisp.org>
42419
42420         Disable multithread support by default on Cygwin 1.5.x.
42421         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42422         set gl_use_threads=no if not specified otherwise.
42423
42424 2009-08-11  Bruno Haible  <bruno@clisp.org>
42425
42426         Avoid compilation error on NetBSD 5.0.
42427         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42428         * tests/test-stdio.c: Likewise.
42429         * tests/test-stdlib.c: Likewise.
42430         * tests/test-string.c: Likewise.
42431         * tests/test-unistd.c: Likewise.
42432         Reported by Greg Troxel <gdt@ir.bbn.com>
42433         at <https://savannah.gnu.org/support/?106973>.
42434
42435 2009-08-11  Bruno Haible  <bruno@clisp.org>
42436
42437         * modules/dup2-tests (Depends-on): Remove close.
42438
42439         Undo 2009-07-19 commit.
42440         * modules/acl-tests (Depends-on): Remove close.
42441         * modules/binary-io-tests (Depends-on): Likewise.
42442         * modules/closein-tests (Depends-on): Likewise.
42443         * modules/flock-tests (Depends-on): Likewise.
42444         * modules/fsync-tests (Depends-on): Likewise.
42445         * modules/lseek-tests (Depends-on): Likewise.
42446         * modules/pipe-tests (Depends-on): Likewise.
42447         * modules/posix_spawn-tests (Depends-on): Likewise.
42448         * modules/posix_spawnp-tests (Depends-on): Likewise.
42449         * modules/stat-time-tests (Depends-on): Likewise.
42450         * modules/yesno-tests (Depends-on): Likewise.
42451
42452 2009-08-10  Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42455
42456 2009-08-10  Bruno Haible  <bruno@clisp.org>
42457
42458         Fix a gcc warning.
42459         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42460
42461 2009-08-10  Bruno Haible  <bruno@clisp.org>
42462
42463         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42464         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42465         not only the first time.
42466         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42467         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42468         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42469         is 1, not only the the first time.
42470
42471 2009-08-10  Bruno Haible  <bruno@clisp.org>
42472
42473         Make it possible to use module 'gethostname' without module 'close'.
42474         * lib/unistd.in.h (close): Evoke a link error only if
42475         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42477         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42478         * modules/unistd (Makefile.am): Substitute
42479         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42480         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42481         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42483         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42484         * modules/sys_ioctl (Makefile.am): Substitute
42485         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42486         * modules/socket (configure.ac): On native Windows, set
42487         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42488         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42489         Reported by Sam Steingold <sds@gnu.org>.
42490
42491 2009-08-10  Bruno Haible  <bruno@clisp.org>
42492
42493         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42494         * modules/ioctl (configure.ac): Likewise.
42495
42496 2009-08-10  Bruno Haible  <bruno@clisp.org>
42497
42498         Avoid collision between gnulib wrapper and libintl wrapper.
42499         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42500         already defined in intl/printf.c.
42501         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42502         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42503
42504 2009-08-09  Bruno Haible  <bruno@clisp.org>
42505
42506         Make <sys/select.h> really self-contained, also on Solaris 10.
42507         * lib/sys_select.in.h: Include <string.h>.
42508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42509         Solaris 10 problem.
42510         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42511         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42512         Reported by Jim Meyering.
42513
42514 2009-08-09  Bruno Haible  <bruno@clisp.org>
42515
42516         Avoid warnings from 'aclocal' that are due to a use of macro name
42517         AM_XGETTEXT_OPTION that is not defined in automake.
42518         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42519         automake.
42520         * modules/error (configure.ac): Likewise.
42521         * modules/propername (configure.ac): Likewise.
42522         * modules/vasprintf (configure.ac): Likewise.
42523         * modules/verror (configure.ac): Likewise.
42524         * modules/xprintf (configure.ac): Likewise.
42525         * modules/xvasprintf (configure.ac): Likewise.
42526
42527 2009-08-08  Bruno Haible  <bruno@clisp.org>
42528
42529         Avoid compilation error in C++ mode.
42530         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42531         Reported by Sam Steingold <sds@gnu.org>.
42532
42533 2009-08-08  Bruno Haible  <bruno@clisp.org>
42534
42535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42536         for the various Unix platforms.
42537         * doc/posix-headers/limits.texi: Update platforms list regarding
42538         HOST_NAME_MAX.
42539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42540
42541 2009-08-07  Jim Meyering  <meyering@redhat.com>
42542
42543         selinux-at: fix typo in a comment
42544         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42545         Spotted by Paolo Bonzini.
42546
42547         selinux-at: remove redundant m4 code, add documentation
42548         * modules/selinux-at (configure.ac): Remove redundant code.
42549         LIB_SELINUX is already set via the dependent module, selinux-h.
42550         (Include): Add quotes around selinux-at.h.
42551         * lib/selinux-at.h: Add documentation.
42552         Reported by Bruno Haible in
42553         http://marc.info/?l=gnulib-bug&m=124958988300749
42554
42555 2009-08-07  Bruno Haible  <bruno@clisp.org>
42556
42557         Avoid link error on MacOS X 10.3 and 10.4.
42558         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42559         on non-ELF systems.
42560         * lib/argp-pv.c (argp_program_version): Likewise.
42561         Reported by Simon Josefsson.
42562
42563 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42564
42565         * tests/test-version-etc.sh: Use $EXEEXT.
42566
42567 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42568
42569         update-copyright: update documentation to point to maint.mk
42570         * build-aux/update-copyright: Here.
42571
42572 2009-08-06  Jim Meyering  <meyering@redhat.com>
42573
42574         maint.mk: support update-copyright-local
42575         * top/maint.mk (update-copyright-local): Define place-holder.
42576         (update-copyright): Depend on $(update-copyright-local).
42577
42578 2009-08-06  Jim Meyering  <meyering@redhat.com>
42579
42580         selinux-at: new module
42581         Initially written for coreutils, this module will soon be
42582         used by findutils, too.
42583         * MODULES.html.sh [Misc]: Add selinux-at.
42584         * lib/selinux-at.h: New file, from coreutils.
42585         * lib/selinux-at.c: Likewise.
42586         * modules/selinux-at: Likewise.
42587         (License): Change from LGPL to GPL, since it depends
42588         on the GPL'd openat module.
42589
42590         doc: update README
42591         * README: Remove references to cogito.
42592         Remove cvs-repo-updating instructions from 2007.
42593         Don't imply that CVS is better if you have limited disk space.
42594
42595 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42596
42597         update-copyright: support C-style comments
42598         * build-aux/update-copyright: Implement and document.
42599         * tests/test-update-copyright.sh: Test.
42600
42601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42602
42603         update-copyright: support omitted "(C)"
42604         * build-aux/update-copyright: Implement and document.  Also,
42605         allow variable whitespace before "(C)".
42606         * tests/test-update-copyright.sh: Test.
42607
42608 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42609
42610         update-copyright: don't trip on non-FSF copyright statements
42611         * build-aux/update-copyright: Fix so that the first correctly
42612         formatted FSF copyright statement is recognized no matter what
42613         appears before it.  Update documentation.
42614         * tests/test-update-copyright.sh: Test that.
42615
42616 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42617
42618         update-copyright: clean up code a little
42619         * build-aux/update-copyright: Append "_re" to the name of any
42620         variable holding a regular expression.
42621         Replace "old" and "new" with "stmt" in variable names.
42622         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42623         handled correctly.
42624         Format code more consistently.
42625
42626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42627
42628         update-copyright-tests: improve portability
42629         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42630         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42631
42632 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42633
42634         update-copyright: support @copyright{} and &copy;
42635         * build-aux/update-copyright: Implement and document.
42636         * tests/test-update-copyright.sh: Test.
42637
42638 2009-08-04  Jim Meyering  <meyering@redhat.com>
42639
42640         update-copyright-tests: correctly test EOL=\r\n handling
42641         * tests/test-update-copyright.sh: Put \r at the end of some lines
42642         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42643
42644         maint.mk: make update-copyright exclusion list more configurable
42645         * top/maint.mk (update-copyright): Default to excluding COPYING,
42646         but allow an override, in case someone does want to update that file.
42647
42648         maint.mk: don't update copyright date in COPYING
42649         * top/maint.mk (update-copyright): Exclude COPYING.
42650
42651         maint.mk: add a copyright-updating rule
42652         * top/maint.mk (update-copyright): New rule.
42653         Derived from coreutils/Makefile.am.
42654
42655         update-copyright: rename some variables
42656         * build-aux/update-copyright: Rename a few variables for clarity.
42657         Tweak syntax.  List Joel E. Denny as coauthor.
42658
42659 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42660
42661         update-copyright: fix bug for 2-digit last year and add tests
42662         * build-aux/update-copyright: Fix bug.
42663         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42664         specified.
42665         * modules/update-copyright-tests: New
42666         * tests/test-update-copyright.sh: New.
42667
42668 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42669
42670         update-copyright: handle leading tabs in line prefix
42671         * build-aux/update-copyright: Count leading tabs as 8 spaces
42672         when computing margin.  This helps with the formatting of
42673         ChangeLogs, for example.
42674         Fix documentation a little.
42675
42676 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42677
42678         update-copyright: support EOL=\r\n
42679         * build-aux/update-copyright: Implement that.
42680
42681 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42682
42683         update-copyright: automatically format copyright statements
42684         * build-aux/update-copyright: Implement that.
42685         Also, be a little more predictable and safer by always failing
42686         when the full copyright format is not perfectly recognized as an
42687         unbroken whole.  Discussed at
42688         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42689         Rewrite documentation.
42690
42691 2009-08-03  Bruno Haible  <bruno@clisp.org>
42692
42693         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42694
42695 2009-08-02  Bruno Haible  <bruno@clisp.org>
42696
42697         Tests for module 'uname'.
42698         * modules/uname-tests: New file.
42699         * tests/test-uname.c: New file.
42700
42701         New module 'uname'.
42702         * lib/uname.c: New file.
42703         * m4/uname.m4: New file.
42704         * modules/uname: New file.
42705         * doc/posix-functions/uname.texi: Mention the new module.
42706
42707 2009-08-02  Bruno Haible  <bruno@clisp.org>
42708
42709         Tests for module 'sys_utsname'.
42710         * modules/sys_utsname-tests: New file.
42711         * tests/test-sys_utsname.c: New file.
42712
42713         New module 'sys_utsname'.
42714         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42715         * m4/sys_utsname_h.m4: New file.
42716         * modules/sys_utsname: New file.
42717         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42718
42719 2009-08-02  Bruno Haible  <bruno@clisp.org>
42720
42721         Implicitly initialize the sockets library.
42722         * lib/gethostname.c: Include sockets.h.
42723         (rpl_gethostname): Invoke gl_sockets_startup.
42724         * lib/socket.c: Include sockets.h.
42725         (rpl_socket): Invoke gl_sockets_startup.
42726         * modules/gethostname (Depends-on): Add sockets.
42727         * modules/socket (Depends-on): Likewise.
42728         * tests/test-poll.c: Don't include sockets.h.
42729         (main): Don't invoke gl_sockets_startup.
42730         * tests/test-select.c: Don't include sockets.h.
42731         (main): Don't invoke gl_sockets_startup.
42732
42733 2009-08-02  Bruno Haible  <bruno@clisp.org>
42734
42735         Allow multiple calls to gl_sockets_startup.
42736         * lib/sockets.c (initialized_sockets_version): New variable.
42737         (gl_sockets_startup): Do nothing if already called for this or a higher
42738         version.
42739         (gl_sockets_cleanup): Reset initialized_sockets_version.
42740
42741 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42742
42743         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42744         different project/version.
42745
42746 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42747             Bruno Haible  <bruno@clisp.org>
42748
42749         Tests for module 'pipe-filter-gi'.
42750         * modules/pipe-filter-gi-tests: New file.
42751         * tests/test-pipe-filter-gi1.sh: New file.
42752         * tests/test-pipe-filter-gi1.c: New file.
42753         * tests/test-pipe-filter-gi2.sh: New file.
42754         * tests/test-pipe-filter-gi2-main.c: New file.
42755         * tests/test-pipe-filter-gi2-child.c: New file.
42756
42757         New module 'pipe-filter-gi'.
42758         * lib/pipe-filter-gi.c: New file.
42759         * modules/pipe-filter-gi: New file.
42760
42761 2009-08-02  Bruno Haible  <bruno@clisp.org>
42762             Paolo Bonzini  <bonzini@gnu.org>
42763
42764         Tests for module 'pipe-filter-ii'.
42765         * modules/pipe-filter-ii-tests: New file.
42766         * tests/test-pipe-filter-ii1.sh: New file.
42767         * tests/test-pipe-filter-ii1.c: New file.
42768         * tests/test-pipe-filter-ii2.sh: New file.
42769         * tests/test-pipe-filter-ii2-main.c: New file.
42770         * tests/test-pipe-filter-ii2-child.c: New file.
42771
42772         New module 'pipe-filter-ii'.
42773         * lib/pipe-filter.h: New file.
42774         * lib/pipe-filter-ii.c: New file.
42775         * lib/pipe-filter-aux.h: New file.
42776         * modules/pipe-filter-ii: New file.
42777
42778 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42779
42780         * lib/gc-libgcrypt.c: Change copyright to FSF.
42781         * lib/gc-gnulib.c: Likewise.
42782
42783 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42784
42785         * lib/gethostname.c: Include limits.h.
42786
42787 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42788             Bruno Haible  <bruno@clisp.org>
42789
42790         Ensure HOST_NAME_MAX as part of the gethostname module.
42791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42792         define also HOST_NAME_MAX.
42793         * tests/test-gethostname.c: Include <limits.h>.
42794         (main): Check also HOST_NAME_MAX.
42795         * doc/posix-headers/limits.texi: Document the mingw problem.
42796
42797 2009-08-02  Bruno Haible  <bruno@clisp.org>
42798
42799         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42800         Add comments.
42801
42802 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42803
42804         * lib/gethostname.c: Add Windows wrapper.
42805         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42806         * modules/gethostname: Depend on sys_socket & errno, for also
42807         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42808         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42809
42810 2009-07-31  Jim Meyering  <meyering@redhat.com>
42811
42812         getloadavg: fix symbol name in comment
42813         * lib/getloadavg.c: Correct a typo I introduced when adding
42814         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42815         Matt Kraai spotted the problem.
42816
42817 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42818
42819         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42820         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42821         code also if ! defined N_NAME_POINTER.
42822         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42823         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42824         but the n_name member is a 12-byte array.
42825
42826 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42827
42828         update-copyright: generalize comment handling
42829         * build-aux/update-copyright: Handle copyright statements
42830         within more comment styles.
42831         Document usage.
42832         Report any file with an external copyright holder or parse failure.
42833
42834 2009-07-29  Jim Meyering  <meyering@redhat.com>
42835
42836         mktime: correct setting of REPLACE_MKTIME
42837         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42838
42839         update-copyright: new module
42840         * modules/update-copyright: New file.
42841         * build-aux/update-copyright: New file.
42842         * MODULES.html.sh (maint+release support): Add update-copyright.
42843
42844 2009-07-27  Bruno Haible  <bruno@clisp.org>
42845
42846         Fix compilation error when <ctime> is used and mktime is replaced.
42847         * lib/time.in.h (mktime): New declaration.
42848         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42849         REPLACE_MKTIME instead of defining mktime in config.h.
42850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42851         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42852         Reported by Ross McFarland <rwmcfa1@neces.com>.
42853
42854 2009-07-27  Bruno Haible  <bruno@clisp.org>
42855
42856         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42857         Reported by Matt Kraai <mkraai@beckman.com>.
42858
42859 2009-07-25  Jim Meyering  <meyering@redhat.com>
42860
42861         maint.mk: avoid warnings about missing files
42862         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42863         diagnostic when .prev-version does not exist.
42864         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42865         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42866         nonexistent cfg.mk.
42867         Suggestions from Simon Josefsson.
42868
42869 2009-07-25  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42872         defined as macros. Needed on QNX 6.4.1.
42873         Reported by Matt Kraai <mkraai@beckman.com>.
42874
42875 2009-07-23  Jim Meyering  <meyering@redhat.com>
42876
42877         maint.mk: invoke "make dist" with a working value of XZ_OPT
42878         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42879
42880 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42881
42882         Make fseeko.c compile on QNX.
42883         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42884
42885 2009-07-22  Peter Simons  <simons@cryp.to>
42886
42887         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42888         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42889         * lib/md4.h: Likewise.
42890         * lib/md5.h: Likewise.
42891         * lib/sha1.h: Likewise.
42892         * lib/sha256.h: Likewise.
42893         * lib/sha512.h: Likewise.
42894
42895         tests-sha1: don't assign literal string to 'char *' variable
42896         * tests/test-sha1.c (main): Declare locals with "const" to match
42897         attributes of the right hand side.
42898
42899 2009-07-21  Eric Blake  <ebb9@byu.net>
42900
42901         dup2: fix more mingw problems
42902         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42903         fd to itself.
42904         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42905         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42906         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42907         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42908         care of mingw bugs.
42909
42910 2009-07-21  Jim Meyering  <meyering@redhat.com>
42911
42912         vc-list-files: avoid failure when /bin/sh is dash
42913         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42914         On some Debian based systems, /bin/sh is a symlink to dash, and running
42915         this command would omit the "/" following each 'tests' prefix:
42916           dash -x build-aux/vc-list-files -C . tests
42917         That is because bash and dash work differently:
42918           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42919           bash ok
42920           dash odd
42921
42922 2009-07-21  Eric Blake  <ebb9@byu.net>
42923
42924         dup2-tests: test previous patch
42925         * modules/dup2-tests: New file.
42926         * tests/test-dup2.c: Likewise.
42927         * tests/test-open.c (main): Avoid unspecified behavior.
42928         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42929         test.
42930
42931         dup2: work around mingw and cygwin 1.5 bug
42932         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42934         * modules/unistd (Makefile.am): Substitute it.
42935         * lib/unistd.in.h (dup2): Declare the replacement.
42936         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42937         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42938         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42939         * modules/execute (Depends-on): Add dup2.
42940         * modules/fseterr (Depends-on): Likewise.
42941         * modules/pipe (Depends-on): Likewise.
42942         * modules/posix_spawn-internal (Depends-on): Likewise.
42943
42944 2009-07-21  Bruno Haible  <bruno@clisp.org>
42945
42946         * modules/.gitattributes: New file.
42947
42948 2009-07-20  Bruno Haible  <bruno@clisp.org>
42949
42950         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42951         (main): Use it.
42952
42953 2009-07-20  Eric Blake  <ebb9@byu.net>
42954
42955         test-pipe: make a bit more robust.
42956         * tests/test-pipe.c (myerr): Allow error messages regardless of
42957         what we do to stderr.
42958         (test_pipe): Rearrange to avoid deadlock.
42959         (child_main): Try a larger read, to ensure we avoided deadlock.
42960         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42961         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42962         if misused.
42963
42964 2009-07-19  Jim Meyering  <meyering@redhat.com>
42965
42966         fts: avoid false-positive cycle-detection
42967         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42968         for each new command line argument.
42969
42970 2009-07-19  Bruno Haible  <bruno@clisp.org>
42971
42972         Fix build error on mingw with the modules sys_select and unistd.
42973         * modules/acl-tests (Depends-on): Add close.
42974         * modules/binary-io-tests (Depends-on): Likewise.
42975         * modules/closein-tests (Depends-on): Likewise.
42976         * modules/flock-tests (Depends-on): Likewise.
42977         * modules/fsync-tests (Depends-on): Likewise.
42978         * modules/lseek-tests (Depends-on): Likewise.
42979         * modules/pipe-tests (Depends-on): Likewise.
42980         * modules/posix_spawn-tests (Depends-on): Likewise.
42981         * modules/posix_spawnp-tests (Depends-on): Likewise.
42982         * modules/stat-time-tests (Depends-on): Likewise.
42983         * modules/yesno-tests (Depends-on): Likewise.
42984
42985 2009-07-19  Bruno Haible  <bruno@clisp.org>
42986
42987         Unify conditionals.
42988         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42989         macros, not at the compiler macros.
42990         * lib/pipe.c: Likewise.
42991         * lib/execute.c: Likewise.
42992         * lib/spawni.c: Likewise.
42993
42994 2009-07-19  Bruno Haible  <bruno@clisp.org>
42995
42996         Fix handling of closed stdin/stdout/stderr on mingw.
42997         * lib/w32spawn.h: Include unistd.h.
42998         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42999         file descriptor with O_NOINHERIT flag.
43000         (fd_safer_noinherit): New function, based on fd-safer.c.
43001         (dup_safer_noinherit): New function, based on dup-safer.c.
43002         (undup_safer_noinherit): New function.
43003         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43004         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43005         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43006         instead of fd_safer.
43007         * tests/test-pipe.c: Include <windows.h>.
43008         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43009         result.
43010
43011         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43012         from main.
43013         (test_pipe): Pass an extra argument for disambiguation.
43014         (main): Invoke parent_main or child_main.
43015
43016         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43017         consistently.
43018
43019 2009-07-18  Eric Blake  <ebb9@byu.net>
43020
43021         test-pipe: fix mingw build
43022         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43023
43024 2009-07-18  Bruno Haible  <bruno@clisp.org>
43025
43026         * modules/pipe-tests (Makefile.am): Fix typo.
43027
43028 2009-07-18  Eric Blake  <ebb9@byu.net>
43029
43030         error: fix mingw build
43031         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43032         Reported by Bruno Haible.
43033
43034         error: avoid undefined use of stdout
43035         * lib/error.c (error, error_at_line): Check that fd 1 is open
43036         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43037         is handling faults and the close_stdout module wants to report the
43038         detection of closed stdout as an error.
43039
43040 2009-07-17  Eric Blake  <ebb9@byu.net>
43041
43042         pipe: be robust in face of closed fds
43043         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43044         should cause child to misbehave.
43045         * modules/pipe-tests: New module.
43046         * tests/test-pipe.c: New file.
43047         * tests/test-pipe.sh: New file.
43048         Reported by Akim Demaille.
43049
43050 2009-07-14  Bruno Haible  <bruno@clisp.org>
43051
43052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43053         Reported by anonymous kc.
43054
43055 2009-07-07  Jim Meyering  <meyering@redhat.com>
43056
43057         maint.mk: don't look for translatable strings in *.m4 or *.mk
43058         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43059         when searching for translatable strings.
43060
43061 2009-07-05  Jim Meyering  <meyering@redhat.com>
43062
43063         remove superfluous parentheses in STREQ definition
43064         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43065         * lib/getugroups.c (STREQ): Likewise.
43066         * lib/fnmatch.c (STREQ): Likewise.
43067         Spotted by Bruno Haible.
43068
43069 2009-07-04  Jim Meyering  <meyering@redhat.com>
43070
43071         argv-iter: new module
43072         * MODULES.html.sh: Add argv-iter.
43073         * lib/argv-iter.c, lib/argv-iter.h: New files.
43074         * modules/argv-iter: New file.
43075         * modules/argv-iter-tests: New file.
43076         * tests/test-argv-iter.c: Test it.
43077
43078 2009-07-04  Bruno Haible  <bruno@clisp.org>
43079
43080         Fix assertion.
43081         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43082         contains more exact copies of a given entry than file2, leave the extra
43083         copies unpaired rather than aborting.
43084         Reported by Eric Blake.
43085
43086 2009-07-02  Bruno Haible  <bruno@clisp.org>
43087
43088         Speedup git-merge-changelog for git cherry-pick.
43089         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43090         (entries_mapping_get): New function, extracted from compute_mapping.
43091         (entries_mapping_reverse_get): New function.
43092         (compute_mapping): Add a 'full' argument. Return the result in a
43093         'struct entries_mapping'.
43094         (main): Update. Access the mappings through entries_mapping_get.
43095         Reported by Eric Blake.
43096
43097 2009-07-02  Bruno Haible  <bruno@clisp.org>
43098
43099         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43100         best_i.
43101
43102 2009-07-02  Bruno Haible  <bruno@clisp.org>
43103
43104         Speed up approximate search for matching ChangeLog entries.
43105         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43106         argument. Call fstrcmp_bounded instead of fstrcmp.
43107         (compute_mapping, try_split_merged_entry, main): Update callers.
43108
43109 2009-07-02  Bruno Haible  <bruno@clisp.org>
43110
43111         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43112
43113 2009-06-30  Bruno Haible  <bruno@clisp.org>
43114
43115         Reduce the number of uc_is_cased calls.
43116         * lib/unicase.h (casing_suffix_context_t): Add
43117         'first_char_except_ignorable' field.
43118         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43119         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43120         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43121         Update initializer.
43122         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43123         case-ignorable characters.
43124         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43125         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43126         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43127         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43128         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43129
43130 2009-06-30  Bruno Haible  <bruno@clisp.org>
43131
43132         Tests for module 'unicase/ignorable'.
43133         * modules/unicase/ignorable-tests: New file.
43134         * tests/unicase/test-ignorable.c: New file, generated by
43135         gen-uni-tables.
43136
43137         Tests for module 'unicase/cased'.
43138         * modules/unicase/cased-tests: New file.
43139         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43140         * tests/unicase/test-predicate-part1.h: New file, derived from
43141         tests/unictype/test-predicate-part1.h.
43142         * tests/unicase/test-predicate-part2.h: New file, same as
43143         tests/unictype/test-predicate-part2.h.
43144
43145         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43146         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43147         (output_casing_properties): New function.
43148         (main): Call it.
43149         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43150         * lib/unicase/cased.c: Include unictype/bitmap.h.
43151         (uc_is_cased): Define through a bitmap lookup.
43152         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43153         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43154         (uc_is_case_ignorable): Define through a bitmap lookup.
43155         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43156         lib/unictype/bitmap.h.
43157         (Depends-on): Add inline. Clean up.
43158         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43159         lib/unictype/bitmap.h.
43160         (Depends-on): Add inline. Clean up.
43161         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43162         recognition.
43163         * tests/unicase/test-u16-tolower.c (main): Likewise.
43164         * tests/unicase/test-u32-tolower.c (main): Likewise.
43165
43166 2009-06-30  Bruno Haible  <bruno@clisp.org>
43167
43168         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43169         * lib/unicase/u16-casemap.c: Likewise.
43170         * lib/unicase/u32-casemap.c: Likewise.
43171
43172 2009-06-29  Bruno Haible  <bruno@clisp.org>
43173
43174         Define u32_casefold as a wrapper around u32_ct_casefold.
43175         * lib/unicase/u32-casefold.c: Update.
43176         * modules/unicase/u32-casefold (Depends-on): Add
43177         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43178         unicase/empty-suffix-context. Clean up.
43179
43180         Define u16_casefold as a wrapper around u16_ct_casefold.
43181         * lib/unicase/u16-casefold.c: Update.
43182         * modules/unicase/u16-casefold (Depends-on): Add
43183         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43184         unicase/empty-suffix-context. Clean up.
43185
43186         Define u8_casefold as a wrapper around u8_ct_casefold.
43187         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43188         * lib/unicase/u8-casefold.c: Update.
43189         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43190         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43191
43192         Define u32_totitle as a wrapper around u32_ct_totitle.
43193         * lib/unicase/u32-totitle.c: Update.
43194         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43195         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43196
43197         Define u16_totitle as a wrapper around u16_ct_totitle.
43198         * lib/unicase/u16-totitle.c: Update.
43199         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43200         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43201
43202         Define u8_totitle as a wrapper around u8_ct_totitle.
43203         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43204         functions.
43205         (FUNC): Delegate to U_CT_TOTITLE.
43206         * lib/unicase/u8-totitle.c: Update.
43207         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43208         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43209
43210         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43211         invocation.
43212         * modules/unicase/u32-tolower (Depends-on): Add
43213         unicase/empty-prefix-context, unicase/empty-suffix-context.
43214
43215         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43216         invocation.
43217         * modules/unicase/u16-tolower (Depends-on): Add
43218         unicase/empty-prefix-context, unicase/empty-suffix-context.
43219
43220         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43221         * modules/unicase/u8-tolower (Depends-on): Add
43222         unicase/empty-prefix-context, unicase/empty-suffix-context.
43223
43224         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43225         invocation.
43226         * modules/unicase/u32-toupper (Depends-on): Add
43227         unicase/empty-prefix-context, unicase/empty-suffix-context.
43228
43229         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43230         invocation.
43231         * modules/unicase/u16-toupper (Depends-on): Add
43232         unicase/empty-prefix-context, unicase/empty-suffix-context.
43233
43234         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43235         * modules/unicase/u8-toupper (Depends-on): Add
43236         unicase/empty-prefix-context, unicase/empty-suffix-context.
43237
43238         New module 'unicase/u32-ct-casefold'.
43239         * lib/unicase/u32-ct-casefold.c: New file.
43240         * modules/unicase/u32-ct-casefold: New file.
43241
43242         New module 'unicase/u16-ct-casefold'.
43243         * lib/unicase/u16-ct-casefold.c: New file.
43244         * modules/unicase/u16-ct-casefold: New file.
43245
43246         New module 'unicase/u8-ct-casefold'.
43247         * lib/unicase/u8-ct-casefold.c: New file.
43248         * lib/unicase/u-ct-casefold.h: New file, derived from
43249         lib/unicase/u-casefold.h.
43250         * modules/unicase/u8-ct-casefold: New file.
43251
43252         New module 'unicase/u32-ct-totitle'.
43253         * lib/unicase/u32-ct-totitle.c: New file.
43254         * modules/unicase/u32-ct-totitle: New file.
43255
43256         New module 'unicase/u16-ct-totitle'.
43257         * lib/unicase/u16-ct-totitle.c: New file.
43258         * modules/unicase/u16-ct-totitle: New file.
43259
43260         New module 'unicase/u8-ct-totitle'.
43261         * lib/unicase/u8-ct-totitle.c: New file.
43262         * lib/unicase/u-ct-totitle.h: New file, derived from
43263         lib/unicase/u-totitle.h.
43264         * modules/unicase/u8-ct-totitle: New file.
43265
43266         New module 'unicase/u32-ct-tolower'.
43267         * lib/unicase/u32-ct-tolower.c: New file.
43268         * modules/unicase/u32-ct-tolower: New file.
43269
43270         New module 'unicase/u16-ct-tolower'.
43271         * lib/unicase/u16-ct-tolower.c: New file.
43272         * modules/unicase/u16-ct-tolower: New file.
43273
43274         New module 'unicase/u8-ct-tolower'.
43275         * lib/unicase/u8-ct-tolower.c: New file.
43276         * modules/unicase/u8-ct-tolower: New file.
43277
43278         New module 'unicase/u32-ct-toupper'.
43279         * lib/unicase/u32-ct-toupper.c: New file.
43280         * modules/unicase/u32-ct-toupper: New file.
43281
43282         New module 'unicase/u16-ct-toupper'.
43283         * lib/unicase/u16-ct-toupper.c: New file.
43284         * modules/unicase/u16-ct-toupper: New file.
43285
43286         New module 'unicase/u8-ct-toupper'.
43287         * lib/unicase/u8-ct-toupper.c: New file.
43288         * modules/unicase/u8-ct-toupper: New file.
43289
43290         Add context arguments to u*_casemap functions.
43291         * lib/unicase/unicasemap.h: Include unicase.h.
43292         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43293         suffix_context arguments.
43294         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43295         functions.
43296         (FUNC): Add prefix_context and suffix_context arguments. Use
43297         uc_is_cased and uc_is_case_ignorable.
43298         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43299         * lib/unicase/u16-casemap.c: Likewise.
43300         * lib/unicase/u32-casemap.c: Likewise.
43301         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43302         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43303         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43304         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43305         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43306         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43307
43308         New module 'unicase/u32-suffix-context'.
43309         * lib/unicase/u32-suffix-context.c: New file.
43310         * modules/unicase/u32-suffix-context: New file.
43311
43312         New module 'unicase/u16-suffix-context'.
43313         * lib/unicase/u16-suffix-context.c: New file.
43314         * modules/unicase/u16-suffix-context: New file.
43315
43316         New module 'unicase/u8-suffix-context'.
43317         * lib/unicase/u8-suffix-context.c: New file.
43318         * lib/unicase/u-suffix-context.h: New file.
43319         * modules/unicase/u8-suffix-context: New file.
43320
43321         New module 'unicase/empty-suffix-context'.
43322         * lib/unicase/empty-suffix-context.c: New file.
43323         * modules/unicase/empty-suffix-context: New file.
43324
43325         New module 'unicase/u32-prefix-context'.
43326         * lib/unicase/u32-prefix-context.c: New file.
43327         * modules/unicase/u32-prefix-context: New file.
43328
43329         New module 'unicase/u16-prefix-context'.
43330         * lib/unicase/u16-prefix-context.c: New file.
43331         * modules/unicase/u16-prefix-context: New file.
43332
43333         New module 'unicase/u8-prefix-context'.
43334         * lib/unicase/u8-prefix-context.c: New file.
43335         * lib/unicase/u-prefix-context.h: New file.
43336         * lib/unicase/context.h: New file.
43337         * modules/unicase/u8-prefix-context: New file.
43338
43339         New module 'unicase/empty-prefix-context'.
43340         * lib/unicase/empty-prefix-context.c: New file.
43341         * modules/unicase/empty-prefix-context: New file.
43342
43343         New module 'unicase/ignorable'.
43344         * lib/unicase/ignorable.c: New file.
43345         * modules/unicase/ignorable: New file.
43346
43347         New module 'unicase/cased'.
43348         * lib/unicase/caseprop.h: New file.
43349         * lib/unicase/cased.c: New file.
43350         * modules/unicase/cased: New file.
43351
43352         New functions for case mapping of substrings.
43353         * lib/unicase.h (casing_prefix_context_t): New type.
43354         (unicase_empty_prefix_context): New variable.
43355         (u8_casing_prefix_context, u16_casing_prefix_context,
43356         u32_casing_prefix_context, u8_casing_prefixes_context,
43357         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43358         declarations.
43359         (casing_suffix_context_t): New type.
43360         (unicase_empty_suffix_context): New variable.
43361         (u8_casing_suffix_context, u16_casing_suffix_context,
43362         u32_casing_suffix_context, u8_casing_suffixes_context,
43363         u16_casing_suffixes_context, u32_casing_suffixes_context,
43364         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43365         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43366         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43367         declarations.
43368
43369 2009-06-28  Jim Meyering  <meyering@redhat.com>
43370
43371         boostrap: indent only with spaces
43372         * build-aux/bootstrap: Indent only with spaces, never TABs.
43373
43374         bootstrap: split long lines
43375         * build-aux/bootstrap: Keep line length < 80.
43376
43377         bootstrap: sync from coreutils
43378         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43379         just as autoreconf does.  Verify a list of prerequisite
43380         package-name,version-number pairs if defined in bootstrap.conf.
43381         Refer to README-prereq, if prerequisites are not satisfied.
43382
43383 2009-06-27  Eric Blake  <ebb9@byu.net>
43384
43385         tests: add test for bogus NULL definition
43386         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43387         * tests/test-stdlib.c: Likewise.
43388         * tests/test-string.c: Likewise.
43389         * tests/test-locale.c: Likewise.
43390         * tests/test-unistd.c: Likewise.
43391         * modules/stdio-tests (Depends-on): Add verify.
43392         * modules/stdlib-tests (Depends-on): Likewise.
43393         * modules/string-tests (Depends-on): Likewise.
43394         * modules/locale-tests (Depends-on): Likewise.
43395         * modules/unistd-tests (Depends-on): Likewise.
43396
43397 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43398
43399         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43400         self-explaining comment.
43401         * m4/selinux-selinux-h: Update serial.
43402         (gl_LIBSELINUX): New macro, adding a warning for missing development
43403         packages to code extracted from...
43404         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43405         Add warning for missing development packages here, too.
43406
43407 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43408
43409         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43410
43411 2009-06-25  Eric Blake  <ebb9@byu.net>
43412
43413         version-etc: fix regression
43414         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43415         gcc.
43416         (version_etc): Use it, to catch bugs with trailing NULL.
43417         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43418         (version_etc_va): Fix logic bug.
43419         * modules/version-etc-tests: Add test.
43420         * tests/test-version-etc.c: New file.
43421         * tests/test-version-etc.sh: Likewise.
43422
43423 2009-06-25  Sam Steingold  <sds@gnu.org>
43424
43425         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43426         mbtowc declaration.
43427
43428 2009-06-25  Eric Blake  <ebb9@byu.net>
43429
43430         fpurge: migrate into <stdio.h>
43431         * lib/fpurge.h: Delete...
43432         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43433         * lib/fpurge.c (fpurge): Change declaring header.
43434         * modules/fpurge (Files): Drop deleted file.
43435         (Depends-on): Add stdio.
43436         (configure.ac): Set witness.
43437         * modules/stdio (Makefile.am): Support fpurge macros.
43438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43440         * lib/fflush.c: Update client.
43441         * tests/test-fpurge.c: Likewise.
43442         * NEWS: Mention the change.
43443
43444 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43445
43446         * lib/argp-version-etc.c (program_authors): Add const
43447         qualifier.
43448         * lib/version-etc.c: Fix typos in the comments.
43449         * modules/argp-version-etc: Depends on version-etc.
43450
43451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43452
43453         argp-version-etc: new module.
43454
43455         * lib/argp-version-etc.c: New file.
43456         * lib/argp-version-etc.h: New file.
43457         * modules/argp-version-etc: New file.
43458         * modules/argp-version-etc-tests: New file.
43459         * tests/test-argp-version-etc.c: New test.
43460         * tests/test-argp-version-etc-1.sh: New test.
43461
43462 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43463
43464         Provide additional interfaces and documentation for version-etc
43465         module.
43466
43467         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43468         interfaces.
43469         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43470         prototypes.
43471
43472 2009-06-24  Bruno Haible  <bruno@clisp.org>
43473
43474         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43475         HAVE_LIB${NAME} macro.
43476         Reported by Sam Steingold <sds@gnu.org>.
43477
43478 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43479
43480         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43481         needed.
43482
43483 2009-06-21  Bruno Haible  <bruno@clisp.org>
43484
43485         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43486         work.
43487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43488         together with LIB${NAME}, LTLIB${NAME}.
43489         Reported by Sam Steingold <sds@gnu.org>.
43490
43491 2009-06-20  Jim Meyering  <meyering@redhat.com>
43492
43493         tests: make sc_require_test_exit_idiom more generic
43494         * top/maint.mk (Exit_witness_file): New overridable variable.
43495         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43496         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43497
43498 2009-06-19  Jim Meyering  <meyering@redhat.com>
43499
43500         hash: reverse order of src/dst parameters in an internal interface
43501         * lib/hash.c (transfer_entries): Reverse order of parameters to
43502         put DST before SRC.  Adjust callers.
43503
43504         tests: test-hash: avoid wholesale duplication
43505         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43506         Instead, use a loop and add a single conditional.
43507
43508         tests: test-hash: allow seed selection via a command line argument
43509         * tests/test-hash.c (get_seed): New function.
43510         (main): Use it.
43511
43512 2009-06-19  Eric Blake  <ebb9@byu.net>
43513
43514         hash: avoid memory leak on allocation failure
43515         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43516         failure.  Factor repeated algorithm...
43517         (transfer_entries): ...into new helper routine.
43518         (hash_delete): React to hash_rehash return value.
43519
43520         hash: reduce memory pressure in hash_rehash no-op case
43521         * lib/hash.c (next_prime): Avoid overflow.
43522         (hash_initialize): Factor bucket size computation...
43523         (compute_bucket_size): ...into new helper function.
43524         (hash_rehash): Use new function and open coding to reduce memory
43525         pressure, and avoid a memory leak in USE_OBSTACK code.
43526         Reported by Jim Meyering.
43527
43528 2009-06-18  Eric Blake  <ebb9@byu.net>
43529
43530         hash: make rotation more obvious
43531         * modules/hash (Depends-on): Add bitrotate and stdint.
43532         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43533         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43534         (SIZE_MAX): Rely on headers for definition.
43535         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43536         (raw_hasher): Use rotr_sz.
43537         Suggested by Jim Meyering.
43538
43539         hash: fix memory leak in last patch
43540         * lib/hash.c (hash_rehash): Avoid memory leak.
43541
43542         hash: avoid no-op rehashing
43543         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43544
43545         hash: provide default callback functions
43546         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43547         (hash_initialize): Use them as defaults.
43548         * tests/test-hash.c (main): Test this.
43549
43550         hash: minor optimization
43551         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43552         when possible.
43553         (hash_initialize): Document this promise.
43554         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43555         * tests/test-hash.c (hash_compare_strings): Test this.
43556
43557 2009-06-18  Bruno Haible  <bruno@clisp.org>
43558
43559         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43560         going to be replaced anyway.
43561
43562 2009-06-18  Bruno Haible  <bruno@clisp.org>
43563
43564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43565         in one place.
43566         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43567         be replaced anyway.
43568
43569 2009-06-18  Eric Blake  <ebb9@byu.net>
43570
43571         hash: check for resize before insertion
43572         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43573         threshold before insertion, so that a pathological hash_rehash
43574         that fills every bucket can still trigger another rehash.
43575
43576 2009-06-18  Jim Meyering  <meyering@redhat.com>
43577
43578         hash-tests: add a loop around the small tests
43579         * tests/test-hash.c (main): Repeat small tests with selected
43580         small initial table sizes.
43581
43582 2009-06-17  Eric Blake  <ebb9@byu.net>
43583
43584         hash: minor cleanups
43585         * lib/hash.h (hash_entry): Make opaque, by moving...
43586         * lib/hash.c (hash_entry): ...here.
43587         (hash_insert): Clarify restrictions on what can be inserted.
43588         (hash_get_next): Clarify when it is safe to remove an element
43589         during traversal.
43590         (check_tuning): Skip verification when tuning is known safe.
43591         (hash_initialize): Clarify restrictions on tuning.
43592
43593 2009-06-17  Jim Meyering  <jim@meyering.net>
43594         and Eric Blake  <ebb9@byu.net>
43595
43596         hash-tests: new module
43597         * modules/hash-tests: New file.
43598         * tests/test-hash.c: New file.
43599
43600 2009-06-17  Eric Blake  <ebb9@byu.net>
43601
43602         strstr-simple: document new module
43603         * MODULES.html.sh: Document new module.
43604
43605         strstr, strcasestr: replace on platforms with broken memchr
43606         * modules/strstr: Split into...
43607         * modules/strstr-simple: ...new module that does not care about
43608         performance, but does care about glibc bug.
43609         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43610         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43611         if platform memchr is broken, per Debian bug 521737.
43612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43613         memchr.
43614         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43615         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43616         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43617         * modules/mountlist (Depends-on): Add strstr-simple.
43618         * modules/gen-uni-tables (Depends-on): Likewise.
43619         * modules/argz (Depends-on): Add strstr.
43620
43621 2009-06-17  Bruno Haible  <bruno@clisp.org>
43622
43623         * modules/posix_spawn-internal (Depends-on): Add errno.
43624
43625 2009-06-17  Bruno Haible  <bruno@clisp.org>
43626
43627         Define missing ESTALE on Interix 3.5.
43628         * lib/errno.in.h (ESTALE): Assign a value if missing.
43629         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43631         missing.
43632         * doc/posix-headers/errno.texi: Mention the Interix bug.
43633         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43634
43635 2009-06-15  Eric Blake  <ebb9@byu.net>
43636
43637         memchr, memchr2: add valgrind exception
43638         * lib/memchr.valgrind: New file.
43639         * lib/memchr2.valgrind: New file.
43640         * modules/memchr (Files): Distribute valgrind file.
43641         * modules/memchr2 (Files): Likewise.
43642
43643         docs: memchr is no longer obsolete
43644         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43645         * lib/string.in.h (memchr): Simplify logic.
43646
43647 2009-06-14  Jim Meyering  <meyering@redhat.com>
43648
43649         link-follow: fix the "checking..." message to not mention trailing slash
43650         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43651         never considered trailing slashes.
43652
43653 2009-06-14  Bruno Haible  <bruno@clisp.org>
43654
43655         * m4/memchr.m4: Mention also the bug on IA-64.
43656         * doc/posix-functions/memchr.texi: Likewise.
43657
43658 2009-06-12  Eric Blake  <ebb9@byu.net>
43659
43660         memchr: detect broken x86_64 and alpha implementations
43661         * modules/memchr-tests (Depends-on): Move mmap detection...
43662         * modules/memchr (Depends-on): ...here.
43663         (configure.ac): Set indicator.
43664         * lib/string.in.h (memchr): Declare replacement.
43665         * modules/string (Makefile.am): Trigger replacement.
43666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43667         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43668         bugs.
43669         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43670         * modules/getpagesize (License): Relax license.
43671
43672 2009-06-11  Bruno Haible  <bruno@clisp.org>
43673
43674         * lib/idpriv.h: Add more references.
43675
43676 2009-06-08  Bruno Haible  <bruno@clisp.org>
43677
43678         Tests for module 'idpriv-droptemp'.
43679         * modules/idpriv-droptemp-tests: New file.
43680         * tests/test-idpriv-droptemp.sh: New file.
43681         * tests/test-idpriv-droptemp.su.sh: New file.
43682         * tests/test-idpriv-droptemp.c: New file.
43683
43684         New module 'idpriv-droptemp'.
43685         * lib/idpriv-droptemp.c: New file.
43686         * modules/idpriv-droptemp: New file.
43687
43688 2009-06-08  Bruno Haible  <bruno@clisp.org>
43689
43690         Tests for module 'idpriv-drop'.
43691         * modules/idpriv-drop-tests: New file.
43692         * tests/test-idpriv-drop.sh: New file.
43693         * tests/test-idpriv-drop.su.sh: New file.
43694         * tests/test-idpriv-drop.c: New file.
43695
43696         New module 'idpriv-drop'.
43697         * lib/idpriv.h: New file.
43698         * lib-idpriv-drop.c: New file.
43699         * m4/idpriv.m4: New file.
43700         * modules/idpriv-drop: New file.
43701
43702 2009-06-08  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43707         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43709         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43711
43712 2009-06-08  Eric Blake  <ebb9@byu.net>
43713
43714         test-strstr: use memory fence, when possible
43715         * tests/test-strstr.c (main): Use memory fence, in order to be
43716         more likely to trigger Debian bug 521737.
43717         * modules/strstr-tests (Files): Pull in additional files.
43718
43719         memchr: no longer obsolete, for wider field testing
43720         * modules/memchr (Status, Notice): Delete, this module is no
43721         longer obsolete.
43722         * modules/vasnprintf (Depends-on): Add memchr.
43723
43724 2009-06-07  Jim Meyering  <meyering@redhat.com>
43725
43726         hash: declare some functions with the warn_unused_result attribute
43727         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43728
43729 2009-06-07  Bruno Haible  <bruno@clisp.org>
43730
43731         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43732         Reported by Eric Blake.
43733
43734 2009-06-06  Eric Blake  <ebb9@byu.net>
43735
43736         test-alignof: fix typo with long double
43737         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43738         compiler error.
43739
43740 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43741
43742         Escape non-texinfo { and }s.
43743         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43744         markup error.
43745
43746 2009-06-04  Jim Meyering  <meyering@redhat.com>
43747
43748         gitlog-to-changelog: don't infloop on an empty commit log
43749         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43750         Reported by Boris Petersen <transacid@centerim.org>.
43751
43752 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43753
43754         version-etc: extend for packagers
43755         Add three new configure options, intended for packagers:
43756           --with-packager="packager name"
43757           --with-packager-version="packager-specific version"
43758           --with-packager-bug-reports="packager bug reporting"
43759         An example with coreutils:
43760           $ ./configure \
43761             --with-packager=Gentoo \
43762             --with-packager-bug-report=http://bugs.gentoo.org/ \
43763             --with-packager-version="patchset 1.6"
43764           $ ./src/ls --version | head -n2
43765           ls (GNU coreutils) 7.1-dirty
43766           Packaged by Gentoo (patchset 1.6)
43767         Note that the bug reporting info via --help doesn't show up because
43768         coreutils uses its own custom emit_bug_reporting_address() implementation
43769         in src/system.h.  If it didn't, it'd look like:
43770           $ ./src/ls --help | tail -n4
43771           Report bugs to <bug-coreutils@gnu.org>.
43772           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43773           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43774           General help using GNU software: <http://www.gnu.org/gethelp/>.
43775         * lib/version-etc.c: Print new information, if provided.
43776         * m4/version-etc.m4: New file.
43777         * modules/version-etc (Files): Add m4/version-etc.m4.
43778         (configure.ac): Add gl_VERSION_ETC.
43779
43780 2009-05-31  Bruno Haible  <bruno@clisp.org>
43781
43782         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43783         and 'int64_t'.
43784         * modules/alignof-tests (Dependencies): Add stdint.
43785         Reported by Eric Blake.
43786
43787 2009-05-31  Bruno Haible  <bruno@clisp.org>
43788
43789         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43790         restriction due to compiler bugs.
43791         Reported by Eric Blake.
43792
43793 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43794             Bruno Haible  <bruno@clisp.org>
43795
43796         Fix test-alignof failure.
43797         * lib/alignof.h (alignof_slot): New macro.
43798         (alignof_type): New macro, with the same semantics as the previous
43799         'alignof'.
43800         (alignof): Alias to alignof_slot.
43801         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43802         check that the results are usable as constant expressions.
43803
43804 2009-05-31  Bruno Haible  <bruno@clisp.org>
43805
43806         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43807         * tests/test-memchr.c (main): Check that memchr does not read past the
43808         first occurrence of the byte.
43809         * tests/test-strstr.c (main): Update comment.
43810         Suggested by Eric Blake.
43811
43812 2009-05-30  Bruno Haible  <bruno@clisp.org>
43813
43814         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43815         detail how to use dumpbin.
43816         Reported by David Byron <dbyron@dbyron.com>.
43817
43818 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43819
43820         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43821
43822 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43823
43824         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43825
43826 2009-05-28  Bruno Haible  <bruno@clisp.org>
43827
43828         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43829         build-aux/ files.
43830
43831 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43832
43833         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43834
43835 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43836
43837         * gnulib-tool (sed_transform_main_lib_file)
43838         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43839         regexps.
43840
43841 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43842
43843         * tests/test-strstr.c: Add another self-test.
43844         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43845         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43846
43847 2009-05-23  Bruno Haible  <bruno@clisp.org>
43848
43849         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43850         change.
43851
43852 2009-05-21  Bruno Haible  <bruno@clisp.org>
43853
43854         Simplify use of mode_t varargs.
43855         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43856         uses 'mode_t' or 'int'.
43857         * lib/openat.c (openat): Likewise.
43858         * lib/open-safer.c (open_safer): Likewise.
43859         * m4/mode_t.m4: New file.
43860         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43861         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43862         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43863         * modules/open (Files): Add m4/mode_t.m4.
43864         * modules/openat (Files): Likewise.
43865         * modules/fcntl-safer (Files): Likewise.
43866         Suggested by Eric Blake.
43867
43868 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43869
43870         * doc/glibc-functions/fallocate.texi: New file.
43871         * doc/gnulib.texi: Include it.
43872
43873 2009-05-21  Eric Blake  <ebb9@byu.net>
43874             Bruno Haible  <bruno@clisp.org>
43875
43876         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43877         invocations.
43878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43879
43880 2009-05-21  Eric Blake  <ebb9@byu.net>
43881             Bruno Haible  <bruno@clisp.org>
43882
43883         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43884         include_next. Fix of 2008-11-20 commit.
43885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43886         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43887         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43888         NEXT_MATH_H.
43889         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43890         instead of NEXT_MATH_H.
43891
43892 2009-05-21  Bruno Haible  <bruno@clisp.org>
43893
43894         Avoid redefinition warnings for SIZE_MAX.
43895         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43896         Reported by Simon Josefsson.
43897
43898 2009-05-21  Bruno Haible  <bruno@clisp.org>
43899
43900         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43901         AC_CACHE_VAL.
43902
43903 2009-05-20  Bruno Haible  <bruno@clisp.org>
43904
43905         Make zeroptr.h work on mingw.
43906         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43907         mprotect.
43908         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43909         * modules/memchr2-tests (configure.ac): Likewise.
43910         * modules/memcmp-tests (configure.ac): Likewise.
43911         * modules/memmem-tests (configure.ac): Likewise.
43912         * modules/memrchr-tests (configure.ac): Likewise.
43913         Reported by Simon Josefsson.
43914
43915 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43916
43917         * tests/test-glob.c: Include string.h for strcmp prototype.
43918
43919 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43920
43921         * modules/getdelim (Depends-on): Add explicit stdint, although it
43922         was implicitly already pulled in via realloc-posix.
43923         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43924
43925 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43926
43927         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43928         G. Christensen" <tgc@jupiterrise.com>.
43929         * m4/sys_socket_h.m4: Check for sa_family_t.
43930         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43931         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43932         * tests/test-sys_socket.c: Check that sa_family_t works.
43933
43934 2009-05-18  Eric Blake  <ebb9@byu.net>
43935
43936         maint.mk: allow gnulib_dir in VPATH build
43937         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43938
43939 2009-05-15  Jim Meyering  <meyering@redhat.com>
43940
43941         maint.mk: Give gnulib_dir a default definition.
43942         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43943         Thus, most packages no longer need to specify this variable in cfg.mk
43944
43945 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43946
43947         rename.m4: fix typos that would make non-mingw cross-configure fail
43948         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43949
43950 2009-05-13  Eric Blake  <ebb9@byu.net>
43951
43952         mmap-anon: avoid out-of-order autoconf expansion
43953         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43954         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43955         * modules/memchr-tests (Depends-on): Add extensions.
43956         * modules/memchr2-tests (Depends-on): Add extensions.
43957         * modules/memcmp-tests (Depends-on): Add extensions.
43958         * modules/memmem-tests (Depends-on): Add extensions.
43959         * modules/memrchr-tests (Depends-on): Add extensions.
43960
43961 2009-05-13  Bruno Haible  <bruno@clisp.org>
43962
43963         Make some tests ISO C 99 compliant.
43964         * tests/zerosize-ptr.h: New file.
43965         * tests/test-memchr.c: Include zerosize-ptr.h.
43966         (main): Use a zero-size object pointer instead of NULL.
43967         * tests/test-memchr2.c: Include zerosize-ptr.h.
43968         (main): Use a zero-size object pointer instead of NULL.
43969         * tests/test-memcmp.c: Include zerosize-ptr.h.
43970         (main): Use a zero-size object pointer instead of NULL.
43971         * tests/test-memmem.c: Include zerosize-ptr.h.
43972         (main): Use a zero-size object pointer instead of NULL.
43973         * tests/test-memrchr.c: Include zerosize-ptr.h.
43974         (main): Use a zero-size object pointer instead of NULL.
43975         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43976         m4/mmap-anon.m4.
43977         (Depends-on): Add getpagesize.
43978         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43979         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43980         m4/mmap-anon.m4.
43981         (Depends-on): Add getpagesize.
43982         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43983         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43984         m4/mmap-anon.m4.
43985         (Depends-on): Add getpagesize.
43986         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43987         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43988         m4/mmap-anon.m4.
43989         (Depends-on): Add getpagesize.
43990         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43991         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43992         m4/mmap-anon.m4.
43993         (Depends-on): Add getpagesize.
43994         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43995
43996 2009-05-12  Bruno Haible  <bruno@clisp.org>
43997
43998         Tests for module 'alignof'.
43999         * modules/alignof-tests: New file.
44000         * tests/test-alignof.c: New file.
44001
44002 2009-05-12  Bruno Haible  <bruno@clisp.org>
44003
44004         Fix alignof macro.
44005         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44006         vendor compilers that are always correct.
44007
44008 2009-05-12  Bruno Haible  <bruno@clisp.org>
44009
44010         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44011         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44012         not whether its fully works.
44013
44014 2009-05-12  Bruno Haible  <bruno@clisp.org>
44015
44016         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44017
44018 2009-05-12  Jim Meyering  <meyering@redhat.com>
44019
44020         * top/maint.mk: Adjust backslash alignment.
44021
44022 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44023
44024         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44025
44026 2009-05-11  Eric Blake  <ebb9@byu.net>
44027
44028         argp: avoid undefined behavior
44029         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44030         macros.
44031
44032 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44033
44034         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44035         user.name to prevent git commit from complaining.
44036
44037 2009-05-10  Bruno Haible  <bruno@clisp.org>
44038
44039         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44040         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44041         it rewrites every file name only once.
44042         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44043
44044 2009-05-08  Bruno Haible  <bruno@clisp.org>
44045
44046         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44047         instead of 'max'.
44048
44049 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44050
44051         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44052         sockaddr_storage test.
44053
44054 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44055
44056         * modules/sys_socket (Makefile.am): Substitute
44057         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44058         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44059         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44060         * tests/test-sys_socket.c: Check sockaddr_storage.
44061
44062 2009-05-08  Bruno Haible  <bruno@clisp.org>
44063
44064         New module 'alignof'.
44065         * lib/alignof.h: New file.
44066         * modules/alignof: New file.
44067
44068 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44069             Bruno Haible  <bruno@clisp.org>
44070
44071         Fix test-file-has-acl on FreeBSD.
44072         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44073         mask is implicitly added.
44074         * tests/test-file-has-acl.c: Include <signal.h>.
44075         (main): Terminate the test after 5 seconds.
44076         * modules/acl-tests (configure.ac): Check for alarm function.
44077
44078 2009-05-04  Bruno Haible  <bruno@clisp.org>
44079
44080         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44082         * modules/errno (configure.ac): Drop AC_REQUIRE.
44083         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44084         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44085
44086 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44087
44088         * modules/glob-tests: New module.
44089         * tests/test-glob.c: Add.
44090
44091 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44092
44093         * modules/fnmatch-tests: New module.
44094         * tests/test-fnmatch.c: Add.
44095
44096 2009-05-04  Eric Blake  <ebb9@byu.net>
44097
44098         maint: make the new no-submodule-changes rule VPATH-safe
44099         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44100
44101 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44102             Bruno Haible  <bruno@clisp.org>
44103
44104         acl: Fix infinite loop on FreeBSD.
44105         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44106         of return value from acl_get_entry.
44107         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44108         Likewise.
44109
44110 2009-05-03  Bruno Haible  <bruno@clisp.org>
44111
44112         * lib/acl-internal.h (acl_entries): Clarify return value.
44113         * lib/acl_entries.c (acl_entries): Likewise.
44114
44115 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44116
44117         Bug fix in acl module.
44118         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44119
44120 2009-05-03  Bruno Haible  <bruno@clisp.org>
44121
44122         Create gperf-generated file in the source dir, not in the build dir.
44123         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44124         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44125         * modules/unicase/locale-language (unicase/locale-languages.h):
44126         Likewise.
44127         * modules/unicase/special-casing (unicase/special-casing-table.h):
44128         Likewise.
44129         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44130         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44131         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44132         Reported by Ralf Wildenhues.
44133
44134 2009-05-03  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/fnmatch (Description, configure.ac): Taken from
44137         fnmatch-posix.
44138         * modules/fnmatch-posix: Turn into a symbolic reference to the
44139         'fnmatch' module, and deprecate.
44140         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44141
44142 2009-05-03  Bruno Haible  <bruno@clisp.org>
44143
44144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44145         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44146         Reported by Ralf Wildenhues.
44147
44148 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44149
44150         * m4/fnmatch.m4: Fix fnmatch re-define.
44151
44152 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44153
44154         priv-set: new module and tests; adapt write-any-file
44155         * lib/priv-set.c: New file.
44156         * lib/priv-set.h: New file.
44157         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44158         * lib/write-any-file.c: Simplify by using priv-set module.
44159         * m4/priv-set.m4: New file.
44160         * modules/priv-set: New file.
44161         * modules/unlinkdir: Add dependency on priv-set module.
44162         * modules/write-any-file: Likewise.
44163
44164         Tests for module 'priv-set'.
44165         * modules/priv-set-tests: New file.
44166         * tests/test-priv-set.c: New file.
44167
44168 2009-05-03  Jim Meyering  <meyering@redhat.com>
44169             Bruno Haible  <bruno@clisp.org>
44170
44171         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44172         use the converted UTF-8 variant of the name instead.
44173
44174 2009-05-03  Jim Meyering  <meyering@redhat.com>
44175
44176         tests: tighten some getdate tests
44177         * tests/test-getdate.c (main): Tighten tests: require equality,
44178         not just greater than.  Set TZ envvar to UTC0.
44179
44180 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44181
44182         getdate: correctly interpret "next monday" when run on a Monday
44183         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44184         that e.g., "next tues" (when run on a tuesday) results in a date
44185         that is one week in the future, and not today's date.
44186         I.e., add a week when the wday is the same as the current one.
44187         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44188         and earlier by Martin Bernreuther and Jan Minář.
44189         * tests/test-getdate.c (main): Check that "next DAY" is always in
44190         the future and that "last DAY" is always in the past.
44191
44192 2009-05-02  Jim Meyering  <meyering@redhat.com>
44193
44194         build: ensure that a release build fails when a submodule is unclean
44195         * top/maint.mk (no-submodule-changes): New rule.
44196         (alpha beta major): Depend on it.
44197
44198 2009-05-02  Bruno Haible  <bruno@clisp.org>
44199
44200         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44201         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44202         shell variable gl_fnmatch_required to detect which variant is
44203         requested.
44204         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44205         gl_FUNC_FNMATCH_POSIX.
44206         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44207         exclude fnmatch-posix.
44208
44209 2009-05-02  Bruno Haible  <bruno@clisp.org>
44210
44211         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44212         * modules/mbsrtowcs (License): Change to LGPLv2+.
44213         * modules/strnlen1 (License): Likewise.
44214         Reported by Simon Josefsson.
44215
44216 2009-05-02  Bruno Haible  <bruno@clisp.org>
44217
44218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44219         "cross".
44220         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44221         gnulib-tool was called with option --source-base=lib.
44222
44223 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44224
44225         Use automake *-local hooks without commands, for extensibility.
44226         * modules/localcharset (Makefile.am): Rename install-exec-local
44227         rule to install-exec-localcharset, and make it a prerequisite of
44228         install-exec-local.  Likewise, rename the uninstall-local rule to
44229         uninstall-localcharset, and make it a prerequisite of the former.
44230
44231 2009-05-01  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44234         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44235         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44237         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44238         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44239         m4/locale-zh.m4, m4/codeset.m4.
44240
44241         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44242         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44243         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44244         m4/locale-zh.m4.
44245
44246         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44247         REPLACE_WCRTOMB if mbstate_t must be replaced.
44248         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44249         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44250
44251 2009-05-01  Bruno Haible  <bruno@clisp.org>
44252
44253         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44254         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44255         dngettext, dcngettext, textdomain, bindtextdomain,
44256         bind_textdomain_codeset): Undefine before redefining.
44257
44258 2009-04-30  Bruno Haible  <bruno@clisp.org>
44259
44260         Fix bug introduced on 2009-04-25.
44261         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44262         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44263         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44264         is defined.
44265         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44266         is defined.
44267         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44268         is defined.
44269         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44270
44271 2009-04-28  Bruno Haible  <bruno@clisp.org>
44272
44273         Comment tweaks.
44274         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44275         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44276         * lib/unicase.h (u*_casexfrm): Likewise.
44277         Reported by Paolo Bonzini.
44278
44279 2009-04-28  Bruno Haible  <bruno@clisp.org>
44280
44281         Fix a compilation error.
44282         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44283         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44284         Reported by Jim Meyering.
44285
44286 2009-04-27  Bruno Haible  <bruno@clisp.org>
44287
44288         New module 'libunistring'.
44289         * modules/libunistring: New file.
44290         * m4/libunistring.m4: New file.
44291         * MODULES.html.sh (Unicode string functions): Add it.
44292
44293 2009-04-27  Eric Blake  <ebb9@byu.net>
44294
44295         maint.mk: allow package-specific header to provide <config.h>
44296         * top/maint.mk (sc_require_config_h): New variable.
44297         (sc_require_config_h, sc_require_config_h_first): Use it.
44298
44299 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44300
44301         * top/maint.mk (sc_avoid_if_before_free): Except
44302         useless-if-before-free script.
44303
44304 2009-04-27  Eric Blake  <ebb9@byu.net>
44305
44306         maintainer-makefile: depend on all required helper scripts
44307         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44308         useless-if-before-free.
44309         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44310         version, rather than assuming gnulib checkout is available.
44311         Reported by Simen Josefsson.
44312
44313 2009-04-26  Bruno Haible  <bruno@clisp.org>
44314
44315         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44317         "../" or "..".
44318
44319 2009-04-26  Bruno Haible  <bruno@clisp.org>
44320
44321         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44322         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44323         AC_LIB_HAVE_LINKFLAGS.
44324
44325 2009-04-26  Bruno Haible  <bruno@clisp.org>
44326
44327         Simplify calling convention of u*_conv_from_encoding.
44328         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44329         u32_conv_from_encoding): Expect a resultbuf argument and return the
44330         result directly as a pointer.
44331         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44332         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44333         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44334         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44335         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44336         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44337         Update.
44338         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44339         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44340         * lib/vasnprintf.c (VASNPRINTF): Update.
44341         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44342         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44343         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44344         * NEWS: Mention the change.
44345
44346 2009-04-26  Bruno Haible  <bruno@clisp.org>
44347
44348         Simplify calling convention of u*_conv_to_encoding.
44349         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44350         u32_conv_to_encoding): Expect a resultbuf argument and return the
44351         result directly as a pointer.
44352         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44353         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44354         freeing scaled_offsets if mem_iconveha failed.
44355         * lib/unicase/u-casexfrm.h (FUNC): Update.
44356         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44357         * lib/vasnprintf.c (VASNPRINTF): Update.
44358         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44359         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44360         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44361         * NEWS: Mention the change.
44362
44363 2009-04-26  Bruno Haible  <bruno@clisp.org>
44364
44365         Avoid test failures on AIX and OSF/1.
44366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44367         malloc(0).
44368         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44369         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44370         Likewise.
44371         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44372         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44373         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44374         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44375         * doc/posix-functions/malloc.texi: Document the portability problem
44376         related to malloc(0).
44377
44378 2009-04-26  Bruno Haible  <bruno@clisp.org>
44379
44380         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44381         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44382         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44383
44384 2009-04-25  Bruno Haible  <bruno@clisp.org>
44385
44386         Avoid link error when creating a namespace clean library.
44387         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44388         as macro with arguments if already defined as an alias.
44389         * lib/signbitf.c (gl_signbitf): Don't undefine.
44390         * lib/signbitd.c (gl_signbitd): Don't undefine.
44391         * lib/signbitl.c (gl_signbitl): Don't undefine.
44392
44393 2009-04-25  Jim Meyering  <meyering@redhat.com>
44394
44395         vc-list-files: fix another quoting bug
44396         * build-aux/vc-list-files: Avoid sed backslash expansion
44397         of pathological directory names.
44398
44399 2009-04-25  Eric Blake  <ebb9@byu.net>
44400
44401         vc-list-files: fix shell quoting error
44402         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44403         timestamp.
44404
44405 2009-04-25  Jim Meyering  <meyering@redhat.com>
44406
44407         vc-list-files: restore lost functionality with subdir argument
44408         * build-aux/vc-list-files: When given a non-"." sub-directory
44409         argument, substitute the $dir/ prefix back onto each resulting name.
44410         Otherwise, coreutils' root_tests check would fail.
44411
44412 2009-04-24  Eric Blake  <ebb9@byu.net>
44413
44414         vc-list-files: ignore git symlinks
44415         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44416         than ls-files, to ignore git symlinks.
44417
44418         maint.mk: import improvements from m4
44419         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44420         (move_if_change): Delete unused macro.
44421         (news-date-check, vc-diff-check): Support VPATH builds.
44422         (announcement): Likewise.  Split --bootstrap-tools list...
44423         (boostrap-tools): ...into separate list, which can be overridden
44424         in cfg.mk.
44425         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44426         requiring dependency on useless-if-before-free module.
44427         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44428         Support VPATH builds.
44429
44430 2009-04-24  Jim Meyering  <meyering@redhat.com>
44431
44432         maint.mk: remove coreutils-specific rules and variables
44433         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44434         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44435         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44436
44437         maint.mk: remove obsolete rule
44438         * top/maint.mk (rel-check): Remove rule.
44439         (WGET, WGETFLAGS): Remove now-unused variables.
44440
44441 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44442
44443         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44444         consistency.
44445
44446         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44447         '$(PATH_SEPARATOR)' instead of ':'.
44448
44449 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44450
44451         * lib/getopt1.c (main): Use 'const' for static array.
44452
44453 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44454
44455         * top/maint.mk: Sync with coreutils.
44456         * NEWS: Explain incompatibilities.
44457
44458 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44459             Bruno Haible  <bruno@clisp.org>
44460
44461         Fix cross-compilation results.
44462         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44463         statement, as third argument of AC_TRY_RUN.
44464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44466         Likewise.
44467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44468         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44469         Likewise.
44470         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44472         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44473
44474 2009-04-20  Bruno Haible  <bruno@clisp.org>
44475
44476         Avoid test failure on mingw.
44477         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44478
44479 2009-04-20  Bruno Haible  <bruno@clisp.org>
44480
44481         Avoid compilation error on mingw.
44482         * modules/localename-tests (Depends-on): Add locale.
44483
44484 2009-04-19  Bruno Haible  <bruno@clisp.org>
44485
44486         Support for building a shared library on Windows platforms.
44487         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44488         (main): Test the presence of UNINORM_NFC here.
44489         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44490         (main): Test the presence of UNINORM_NFD here.
44491         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44492         (main): Test the presence of UNINORM_NFKC here.
44493         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44494         (main): Test the presence of UNINORM_NFKD here.
44495
44496 2009-04-19  Bruno Haible  <bruno@clisp.org>
44497
44498         Avoid a compiler warning.
44499         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44500         Change type of variable 'sequence'.
44501
44502 2009-04-19  Bruno Haible  <bruno@clisp.org>
44503
44504         * modules/configmake (Makefile.am): When the contents of configmake.h
44505         does not change, arrange to preserve its modification time.
44506
44507 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44508
44509         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44510         gettext domain.
44511
44512 2009-04-16  Jim Meyering  <meyering@redhat.com>
44513
44514         useless-if-before-free: improve conversion code
44515         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44516         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44517
44518 2009-04-14  Bruno Haible  <bruno@clisp.org>
44519
44520         * modules/fcntl (Depends-on): Add extensions.
44521         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44522
44523 2009-04-12  Ben Pfaff  <blp@gnu.org>
44524
44525         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44526         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44527
44528 2009-03-20  Ben Pfaff  <blp@gnu.org>
44529
44530         Make rename replace existing destinations on Windows.
44531         * m4/rename.m4: Add test for Mingw.
44532         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44533         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44534         * doc/posix-functions/rename.texi: Document.
44535
44536 2009-04-10  Bruno Haible  <bruno@clisp.org>
44537
44538         New include file "iconveh.h".
44539         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44540         * lib/striconveh.h: Include it.
44541         (enum iconv_ilseq_handler): Remove definition.
44542         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44543         striconveh.h.
44544         * lib/striconveha.c: Include striconveh.h.
44545         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44546         * modules/striconveh (Files): Add lib/iconveh.h.
44547         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44548         lib/striconveh.h.
44549
44550 2009-04-10  Bruno Haible  <bruno@clisp.org>
44551
44552         * lib/uniconv.h: Update comment.
44553
44554 2009-04-10  Bruno Haible  <bruno@clisp.org>
44555
44556         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44557         always.
44558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44559         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44560         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44561         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44562         "unistring-notinline.h", so that the function gets defined always.
44563         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44564         * lib/unistr/u8-uctomb.c: Likewise.
44565         * lib/unistr/u16-mbtouc.c: Likewise.
44566         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44567         * lib/unistr/u16-uctomb.c: Likewise.
44568         * lib/unistr/u32-mbtouc.c: Likewise.
44569         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44570         * lib/unistr/u32-uctomb.c: Likewise.
44571
44572 2009-04-10  Bruno Haible  <bruno@clisp.org>
44573
44574         Mark 'utime' obsolete.
44575         * modules/utime (Status, Notice): New sections.
44576         Suggested by Jim Meyering.
44577
44578         Fix cross-compile guess for utime test.
44579         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44580         autoconf.
44581         * doc/posix-functions/utime.texi: Give more precisions.
44582         Reported by Jan <ipif@ymail.com>.
44583
44584 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44585
44586         filevercmp: correct today's change
44587         * lib/filevercmp.c: Also handle coreutils' test inputs.
44588         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44589
44590         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44591         for reporting it.
44592         * lib/filevercmp.c: Special handle for "", "." and "..".
44593         * tests/test-filevercmp.c: Enlarge the set suite.
44594
44595 2009-04-07  Jim Meyering  <meyering@redhat.com>
44596
44597         useless-if-before-free: show how to remove braced useless free, too
44598         * build-aux/useless-if-before-free: still only in a comment, though.
44599
44600 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44601
44602         maint.mk: import changes to syntax-check macros from coreutils
44603         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44604         Use them in the relevant macros.
44605
44606 2009-04-06  Bruno Haible  <bruno@clisp.org>
44607
44608         Fix unportable use of bit-fields.
44609         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44610         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44611         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44612
44613 2009-04-06  Bruno Haible  <bruno@clisp.org>
44614
44615         Avoid test failures on AIX and OSF/1.
44616         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44617         that malloc(0) = NULL.
44618         * tests/unicase/test-u8-tolower.c (check): Likewise.
44619         * tests/unicase/test-u8-totitle.c (check): Likewise.
44620         * tests/unicase/test-u8-toupper.c (check): Likewise.
44621         * tests/unicase/test-u16-casefold.c (check): Likewise.
44622         * tests/unicase/test-u16-tolower.c (check): Likewise.
44623         * tests/unicase/test-u16-totitle.c (check): Likewise.
44624         * tests/unicase/test-u16-toupper.c (check): Likewise.
44625         * tests/unicase/test-u32-casefold.c (check): Likewise.
44626         * tests/unicase/test-u32-tolower.c (check): Likewise.
44627         * tests/unicase/test-u32-totitle.c (check): Likewise.
44628         * tests/unicase/test-u32-toupper.c (check): Likewise.
44629         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44630         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44631         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44632         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44633         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44634         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44635         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44636         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44637         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44638         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44639         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44640         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44641
44642 2009-04-05  Bruno Haible  <bruno@clisp.org>
44643
44644         Work around an autoconf limitation.
44645         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44646         comment line if it would be longer than 3 KB.
44647
44648 2009-04-05  Bruno Haible  <bruno@clisp.org>
44649
44650         Avoid test failure with libiconv-1.13.
44651         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44652         of the expected test results.
44653
44654 2009-04-05  Bruno Haible  <bruno@clisp.org>
44655
44656         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44657         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44658         that it should be installed.
44659
44660 2009-04-05  Bruno Haible  <bruno@clisp.org>
44661
44662         * gnulib-tool: New option --copy-file.
44663         (func_usage): Document it.
44664         (func_dest_tmpfilename): Moved out of func_import.
44665         (func_add_file, func_update_file): New functions, extracted from
44666         func_import.
44667         (func_import): Update.
44668
44669 2009-04-05  Karl Berry  <karl@gnu.org>
44670
44671         * README: prominently mention gnulib-tool.
44672         Rearrange sections so getting the code is near the top.
44673
44674 2009-04-05  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/unicase.h: Mention u*_cmp2.
44677         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44678         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44679         * lib/unicase/ulc-casecmp.c: Likewise.
44680         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44681         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44682         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44683         unistr/u8-cmp.
44684         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44685         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44686         unistr/u16-cmp.
44687         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44688         unistr/u32-cmp.
44689
44690         * lib/uninorm.h: Mention u*_cmp2.
44691         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44692         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44693         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44694         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44695         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44696         unistr/u8-cmp.
44697         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44698         unistr/u16-cmp.
44699         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44700         unistr/u32-cmp.
44701
44702         New module 'unistr/u32-cmp2'.
44703         * lib/unistr/u32-cmp2.c: New file.
44704         * modules/unistr/u32-cmp2: New file.
44705
44706         New module 'unistr/u16-cmp2'.
44707         * lib/unistr/u16-cmp2.c: New file.
44708         * modules/unistr/u16-cmp2: New file.
44709
44710         New module 'unistr/u8-cmp2'.
44711         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44712         * lib/unistr/u8-cmp2.c: New file.
44713         * lib/unistr/u-cmp2.h: New file.
44714         * modules/unistr/u8-cmp2: New file.
44715
44716 2009-04-05  Bruno Haible  <bruno@clisp.org>
44717
44718         * lib/unictype.h (uc_property_is_valid): New macro.
44719         * tests/unictype/test-pr_byname.c (main): Use it.
44720
44721         * lib/unistr.h: Doc fixes.
44722         * lib/uniconv.h: Doc fixes.
44723         * lib/unictype.h: Doc fixes.
44724
44725 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44726
44727         Port coreutils 7.2 to Solaris 8.
44728
44729         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44730         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44731         for Solaris 8.  This is a bit of a hack, as it means it's the
44732         caller's responsibility to add -lnsl if needed, but most likely it
44733         won't be needed since only getaddrinfo uses this and getaddrinfo
44734         isn't needed on Solaris 8.
44735
44736         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44737         problem to Solaris 8 encountered with coreutils 7.2, which
44738         resulted in a message "fnmatch.c:292: warning: passing argument 4
44739         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44740         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44741
44742 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44743
44744         * m4/ld-version-script.m4: Add FIXME comment.
44745
44746 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44747
44748         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44749         SOVERSION variable.
44750
44751 2009-04-02  Bruno Haible  <bruno@clisp.org>
44752
44753         * Makefile (info, html, dvi, pdf): Combine the rules.
44754         Suggested by Jim Meyering.
44755
44756 2009-04-01  Bruno Haible  <bruno@clisp.org>
44757
44758         * Makefile (info, html, dvi, pdf): New targets.
44759         Reported by Reuben Thomas <rrt@sc3d.org>.
44760
44761 2009-04-01  Bruno Haible  <bruno@clisp.org>
44762
44763         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44764         can be put into PATH.
44765         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44766
44767 2009-04-01  Bruno Haible  <bruno@clisp.org>
44768
44769         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44770
44771 2009-04-01  Bruno Haible  <bruno@clisp.org>
44772
44773         Rename module 'visibility'.
44774         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44775         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44776         * doc/gnulib.texi: Update.
44777         * MODULES.html.sh (Misc): Update.
44778         * NEWS: Mention the change.
44779
44780 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44781
44782         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44783         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44784         Eric Blake <ebb9@byu.net> for review.
44785         * MODULES.html.sh: Add lib-msvc-compat.
44786         * doc/gnulib.texi: Link to new section.
44787         * m4/ld-output-def.m4: New file.
44788         * doc/ld-output-def.texi: New file.
44789
44790 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44791
44792         Rename ld-version-script to lib-symbol-versions.  Suggested by
44793         Bruno Haible <bruno@clisp.org>.
44794         * modules/ld-version-script: Renamed to lib-symbol-versions.
44795         * doc/ld-version-script.texi: Fix module name.
44796         * MODULES.html.sh: Add lib-symbol-versions.
44797
44798 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44799
44800         * modules/u64-tests: New file.
44801         * tests/test-u64.c: New file.
44802
44803 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44804
44805         * MODULES.html.sh: Mention u64.
44806         * modules/u64: New module.
44807         * modules/crypto/sha512: Depend on u64 module instead of providing
44808         u64.h.
44809
44810 2009-03-27  Eric Blake  <ebb9@byu.net>
44811
44812         test-strerror: make debugging EAI_SYSTEM easier
44813         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44814         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44815         failure was EAI_SYSTEM.
44816
44817 2009-03-25  Bruno Haible  <bruno@clisp.org>
44818
44819         Fix a problem with --enable-relocatable on Solaris 7.
44820         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44821         since 2008-02-24.
44822
44823 2009-03-25  Eric Blake  <ebb9@byu.net>
44824
44825         test-sockets: avoid gcc warning
44826         * tests/test-sockets.c (main): Silence compiler warning.
44827
44828 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44829
44830         New modules nproc, pthread, contributed by Glen Lenker.
44831
44832         * MODULES.html.sh: Add pthread, nproc.
44833         * lib/nproc.c: New file.
44834         * lib/nproc.h: New file.
44835         * lib/pthread.in.h: New file.
44836         * m4/pthread.m4: New file.
44837         * modules/nproc: New file.
44838         * modules/pthread: New file.
44839
44840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44841
44842         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44843         New variable.
44844
44845 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44846
44847         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44848         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44849         * tests/test-filevercmp.c: Add tests for backup suffixes.
44850
44851 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44852
44853         * modules/stdlib (Depends-on): Add stdint, needed when defining
44854         struct random_data on, for example, HP-UX 10.20.  Reported by
44855         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44856
44857 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44858
44859         * lib/readline.c (readline): Call fflush on stdout after printing
44860         prompt.
44861
44862 2009-03-20  Bruno Haible  <bruno@clisp.org>
44863
44864         Remove dependency from 'close' module to -lws2_32 on native Windows.
44865         * lib/close-hook.h: New file.
44866         * lib/close-hook.c: New file.
44867         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44868         w32sock.h.
44869         (_gl_close_fd_maybe_socket): Remove function.
44870         (rpl_close): Invoke execute_all_close_hooks instead of
44871         _gl_close_fd_maybe_socket.
44872         * lib/sockets.c: Include close-hook.h, w32sock.h.
44873         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44874         (close_sockets_hook): New variable.
44875         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44876         (gl_sockets_cleanup): Unregister it.
44877         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44878         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44879         * modules/close-hook: New file.
44880         * modules/close (Files): Remove lib/w32sock.h.
44881         (Depends-on): Add close-hook.
44882         (Link): Remove section.
44883         * modules/sockets (Files): Add lib/w32sock.h.
44884         (Depends-on): Add close-hook.
44885         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44886         invocation.
44887         * NEWS: Mention that LIB_CLOSE is gone.
44888
44889 2009-03-23  Eric Blake  <ebb9@byu.net>
44890
44891         signal-tests: test previous patch
44892         * tests/test-signal.c: New file.
44893         * modules/signal-tests: Likewise.
44894
44895         signal.h: always support 'volatile sig_atomic_t'
44896         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44897         (gl_SIGNAL_H_DEFAULTS): Add a default.
44898         * modules/signal (Makefile.am): Substitute if needed.
44899         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44900         users can blindly add volatile.
44901         * doc/posix-headers/signal.texi (signal.h): Document it.
44902         Reported by Matthew Woehlke.
44903
44904 2009-03-23  Jim Meyering  <meyering@redhat.com>
44905
44906         pathmax: PATH_MAX: use pathconf only when available
44907         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44908         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44909         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44910         This avoids a link failure in a PSP cross-compilation environment
44911         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44912
44913         * lib/vasnprintf.c (divide): Fix typo in comment.
44914
44915 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44916
44917         * gnulib-tool (func_filter_filelist): Fix comment.
44918
44919 2009-03-20  Bruno Haible  <bruno@clisp.org>
44920
44921         Make sockets.h self-contained.
44922         * lib/sockets.c: Include sockets.h first.
44923         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44924
44925 2009-03-19  Eric Blake  <ebb9@byu.net>
44926
44927         doc: mention more functions added in cygwin 1.7.0
44928         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44929         addition.
44930         * doc/posix-functions/log2f.texi: Likewise.
44931
44932 2009-03-19  Jim Meyering  <meyering@redhat.com>
44933
44934         fsusage: avoid syntax error due to statement-before-declaration
44935         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44936         after all declarations.  Reported by Matthew Woehlke in
44937         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44938
44939 2009-03-18  Eric Blake  <ebb9@byu.net>
44940
44941         build-aux/compile: sync from automake
44942         * build-aux/compile: New file, from automake.
44943         * config/srclist.txt: Mention build-aux/compile.
44944
44945 2009-03-17  Bruno Haible  <bruno@clisp.org>
44946
44947         * lib/git-merge-changelog.c: Fix typo in comment.
44948         Reported by Reuben Thomas <rrt@sc3d.org>.
44949
44950 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44951
44952         * m4/regex.m4: update and improve help for
44953         --without-included-regex.
44954
44955 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44956
44957         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44958         failure on missing include files.
44959
44960 2009-03-17  Eric Blake  <ebb9@byu.net>
44961
44962         doc: mention more functions added in cygwin 1.7.0
44963         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44964         addition.
44965         * doc/posix-functions/fwscanf.texi: Likewise.
44966         * doc/posix-functions/swprintf.texi: Likewise.
44967         * doc/posix-functions/swscanf.texi: Likewise.
44968         * doc/posix-functions/vfwprintf.texi: Likewise.
44969         * doc/posix-functions/vfwscanf.texi: Likewise.
44970         * doc/posix-functions/vswprintf.texi: Likewise.
44971         * doc/posix-functions/vswscanf.texi: Likewise.
44972         * doc/posix-functions/vwprintf.texi: Likewise.
44973         * doc/posix-functions/vwscanf.texi: Likewise.
44974         * doc/posix-functions/wcscasecmp.texi: Likewise.
44975         * doc/posix-functions/wcsdup.texi: Likewise.
44976         * doc/posix-functions/wcsftime.texi: Likewise.
44977         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44978         * doc/posix-functions/wprintf.texi: Likewise.
44979         * doc/posix-functions/wscanf.texi: Likewise.
44980         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44981
44982 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44983
44984         maint.mk: really add $(AM_MAKEFLAGS)
44985         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44986         was inadvertently omitted in the last commit.
44987         Spotted by Bruno Haible.
44988
44989         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44990         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44991         $(AM_MAKEFLAGS)' rather than plain `make'.
44992
44993         gnulib-tool: execute $MAKE not make
44994         * gnulib-tool: Default $MAKE to 'make'.
44995         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44996         than make.  Initialize $MAKE in the do-autobuild script.
44997
44998         gnulib-tool: use $MAKE not make in generated files
44999         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45000         make, in generated files.  Initialize $MAKE in the do-autobuild
45001         script.
45002
45003         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45004
45005         GNUmakefile: disable parallelism only for multiple, recursive targets
45006         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45007         additions in the Makefile.
45008         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45009         by Automake.
45010         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45011         are listed on the command line and at least one of them is
45012         listed in $(ALL_RECURSIVE_TARGETS).
45013
45014 2009-03-14  Bruno Haible  <bruno@clisp.org>
45015
45016         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45017         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45018         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45019         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45020         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45021         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45022         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45023         unistr/u8-uctomb.
45024         * modules/unistr/u8-strchr (Depends-on): Likewise.
45025         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45026         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45027         unistr/u16-uctomb.
45028         * modules/unistr/u16-strchr (Depends-on): Likewise.
45029         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45030
45031 2009-03-12  Bruno Haible  <bruno@clisp.org>
45032
45033         Work around select() bug on Interix 3.5.
45034         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45035         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45036         * m4/select.m4: New file.
45037         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45038         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45039         * modules/select (Files): Add m4/select.m4.
45040         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45041         * modules/nanosleep (Depends-on): Add select.
45042         * modules/poll (Depends-on): Likewise.
45043         * doc/posix-functions/select.texi: Mention the Interix bug.
45044         Reported by Markus Duft <mduft@gentoo.org>.
45045
45046         * lib/select.c: Renamed from lib/winsock-select.c.
45047         * modules/select (Files): Add lib/select.c, remove
45048         lib/winsock-select.c.
45049         (configure.ac): Update.
45050
45051 2009-03-12  Jim Meyering  <meyering@redhat.com>
45052
45053         avoid gcc warnings about unused macro definitions
45054         * lib/readtokens.c (STREQ): Remove unused definition.
45055         * lib/xmalloc.c (SIZE_MAX): Likewise.
45056         * lib/openat-die.c (N_): Likewise.
45057         * lib/mountlist.c (SIZE_MAX): Remove definition.
45058         Instead, include <stdint.h>.
45059         * lib/readutmp.c: Likewise.
45060         * modules/readutmp (Depends-on): Add stdint.
45061         * modules/mountlist (Depends-on): Add stdint.
45062         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45063
45064 2009-03-10  Bruno Haible  <bruno@clisp.org>
45065
45066         Tests for module 'mbmemcasecoll'.
45067         * modules/mbmemcasecoll-tests: New file.
45068         * tests/test-mbmemcasecoll1.sh: New file.
45069         * tests/test-mbmemcasecoll2.sh: New file.
45070         * tests/test-mbmemcasecoll3.sh: New file.
45071         * tests/test-mbmemcasecoll.c: New file.
45072
45073         New module 'mbmemcasecoll'.
45074         * lib/mbmemcasecoll.h: New file.
45075         * lib/mbmemcasecoll.c: New file.
45076         * modules/mbmemcasecoll: New file.
45077
45078         * tests/test-mbmemcasecmp.h: New file, extracted from
45079         tests/test-mbmemcasecmp.c.
45080         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45081         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45082         (main): Update.
45083         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45084
45085 2009-03-09  Bruno Haible  <bruno@clisp.org>
45086
45087         Tests for module 'mbmemcasecmp'.
45088         * modules/mbmemcasecmp-tests: New file.
45089         * tests/test-mbmemcasecmp1.sh: New file.
45090         * tests/test-mbmemcasecmp2.sh: New file.
45091         * tests/test-mbmemcasecmp3.sh: New file.
45092         * tests/test-mbmemcasecmp.c: New file.
45093
45094         New module 'mbmemcasecmp'.
45095         * lib/mbmemcasecmp.h: New file.
45096         * lib/mbmemcasecmp.c: New file.
45097         * modules/mbmemcasecmp: New file.
45098
45099 2009-03-09  Bruno Haible  <bruno@clisp.org>
45100
45101         Tests for module 'unicase/ulc-casecoll'.
45102         * modules/unicase/ulc-casecoll-tests: New file.
45103         * tests/unicase/test-ulc-casecoll1.sh: New file.
45104         * tests/unicase/test-ulc-casecoll2.sh: New file.
45105         * tests/unicase/test-ulc-casecoll.c: New file.
45106
45107         New module 'unicase/ulc-casecoll'.
45108         * lib/unicase.h (ulc_casecoll): New declaration.
45109         * lib/unicase/ulc-casecoll.c: New file.
45110         * modules/unicase/ulc-casecoll: New file.
45111
45112         New module 'unicase/ulc-casexfrm'.
45113         * lib/unicase.h (ulc_casexfrm): New declaration.
45114         * lib/unicase/ulc-casexfrm.c: New file.
45115         * modules/unicase/ulc-casexfrm: New file.
45116
45117 2009-03-09  Bruno Haible  <bruno@clisp.org>
45118
45119         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45120         invocations.
45121
45122         * m4/mbscasecmp.m4: Remove file.
45123         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45124         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45125
45126         * m4/mbscasestr.m4: Remove file.
45127         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45128         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45129
45130         * m4/mbschr.m4: Remove file.
45131         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45132         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45133
45134         * m4/mbscspn.m4: Remove file.
45135         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45136         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45137
45138         * m4/mbslen.m4: Remove file.
45139         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45140         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45141
45142         * m4/mbsncasecmp.m4: Remove file.
45143         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45144         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45145
45146         * m4/mbsnlen.m4: Remove file.
45147         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45148         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45149
45150         * m4/mbspbrk.m4: Remove file.
45151         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45152         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45153
45154         * m4/mbspcasecmp.m4: Remove file.
45155         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45156         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45157
45158         * m4/mbsrchr.m4: Remove file.
45159         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45160         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45161
45162         * m4/mbssep.m4: Remove file.
45163         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45164         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45165
45166         * m4/mbsspn.m4: Remove file.
45167         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45168         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45169
45170         * m4/mbsstr.m4: Remove file.
45171         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45172         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45173
45174         * m4/mbstok_r.m4: Remove file.
45175         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45176         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45177
45178         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45179
45180         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45181         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45182
45183         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45184
45185 2009-03-08  Bruno Haible  <bruno@clisp.org>
45186
45187         Tests for module 'unicase/ulc-casecmp'.
45188         * modules/unicase/ulc-casecmp-tests: New file.
45189         * tests/unicase/test-ulc-casecmp1.sh: New file.
45190         * tests/unicase/test-ulc-casecmp2.sh: New file.
45191         * tests/unicase/test-ulc-casecmp.c: New file.
45192
45193         New module 'unicase/ulc-casecmp'.
45194         * lib/unicase.h (ulc_casecmp): New declaration.
45195         * lib/unicase/ulc-casecmp.c: New file.
45196         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45197         'const SRC_UNIT *'.
45198         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45199         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45200         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45201         * modules/unicase/ulc-casecmp: New file.
45202
45203         Tests for module 'unicase/u32-is-cased'.
45204         * modules/unicase/u32-is-cased-tests: New file.
45205         * tests/unicase/test-u32-is-cased.c: New file.
45206
45207         Tests for module 'unicase/u16-is-cased'.
45208         * modules/unicase/u16-is-cased-tests: New file.
45209         * tests/unicase/test-u16-is-cased.c: New file.
45210
45211         Tests for module 'unicase/u8-is-cased'.
45212         * modules/unicase/u8-is-cased-tests: New file.
45213         * tests/unicase/test-u8-is-cased.c: New file.
45214         * tests/unicase/test-is-cased.h: New file.
45215
45216         New module 'unicase/u32-is-cased'.
45217         * lib/unicase/u32-is-cased.c: New file.
45218         * modules/unicase/u32-is-cased: New file.
45219
45220         New module 'unicase/u16-is-cased'.
45221         * lib/unicase/u16-is-cased.c: New file.
45222         * modules/unicase/u16-is-cased: New file.
45223
45224         New module 'unicase/u8-is-cased'.
45225         * lib/unicase/u8-is-cased.c: New file.
45226         * lib/unicase/u-is-cased.h: New file.
45227         * modules/unicase/u8-is-cased: New file.
45228
45229         Tests for module 'unicase/u32-is-casefolded'.
45230         * modules/unicase/u32-is-casefolded-tests: New file.
45231         * tests/unicase/test-u32-is-casefolded.c: New file.
45232
45233         Tests for module 'unicase/u16-is-casefolded'.
45234         * modules/unicase/u16-is-casefolded-tests: New file.
45235         * tests/unicase/test-u16-is-casefolded.c: New file.
45236
45237         Tests for module 'unicase/u8-is-casefolded'.
45238         * modules/unicase/u8-is-casefolded-tests: New file.
45239         * tests/unicase/test-u8-is-casefolded.c: New file.
45240         * tests/unicase/test-is-casefolded.h: New file.
45241
45242         New module 'unicase/u32-is-casefolded'.
45243         * lib/unicase/u32-is-casefolded.c: New file.
45244         * modules/unicase/u32-is-casefolded: New file.
45245
45246         New module 'unicase/u16-is-casefolded'.
45247         * lib/unicase/u16-is-casefolded.c: New file.
45248         * modules/unicase/u16-is-casefolded: New file.
45249
45250         New module 'unicase/u8-is-casefolded'.
45251         * lib/unicase/u8-is-casefolded.c: New file.
45252         * modules/unicase/u8-is-casefolded: New file.
45253
45254         Tests for module 'unicase/u32-is-titlecase'.
45255         * modules/unicase/u32-is-titlecase-tests: New file.
45256         * tests/unicase/test-u32-is-titlecase.c: New file.
45257
45258         Tests for module 'unicase/u16-is-titlecase'.
45259         * modules/unicase/u16-is-titlecase-tests: New file.
45260         * tests/unicase/test-u16-is-titlecase.c: New file.
45261
45262         Tests for module 'unicase/u8-is-titlecase'.
45263         * modules/unicase/u8-is-titlecase-tests: New file.
45264         * tests/unicase/test-u8-is-titlecase.c: New file.
45265         * tests/unicase/test-is-titlecase.h: New file.
45266
45267         New module 'unicase/u32-is-titlecase'.
45268         * lib/unicase/u32-is-titlecase.c: New file.
45269         * modules/unicase/u32-is-titlecase: New file.
45270
45271         New module 'unicase/u16-is-titlecase'.
45272         * lib/unicase/u16-is-titlecase.c: New file.
45273         * modules/unicase/u16-is-titlecase: New file.
45274
45275         New module 'unicase/u8-is-titlecase'.
45276         * lib/unicase/u8-is-titlecase.c: New file.
45277         * modules/unicase/u8-is-titlecase: New file.
45278
45279         Tests for module 'unicase/u32-is-lowercase'.
45280         * modules/unicase/u32-is-lowercase-tests: New file.
45281         * tests/unicase/test-u32-is-lowercase.c: New file.
45282
45283         Tests for module 'unicase/u16-is-lowercase'.
45284         * modules/unicase/u16-is-lowercase-tests: New file.
45285         * tests/unicase/test-u16-is-lowercase.c: New file.
45286
45287         Tests for module 'unicase/u8-is-lowercase'.
45288         * modules/unicase/u8-is-lowercase-tests: New file.
45289         * tests/unicase/test-u8-is-lowercase.c: New file.
45290         * tests/unicase/test-is-lowercase.h: New file.
45291
45292         New module 'unicase/u32-is-lowercase'.
45293         * lib/unicase/u32-is-lowercase.c: New file.
45294         * modules/unicase/u32-is-lowercase: New file.
45295
45296         New module 'unicase/u16-is-lowercase'.
45297         * lib/unicase/u16-is-lowercase.c: New file.
45298         * modules/unicase/u16-is-lowercase: New file.
45299
45300         New module 'unicase/u8-is-lowercase'.
45301         * lib/unicase/u8-is-lowercase.c: New file.
45302         * modules/unicase/u8-is-lowercase: New file.
45303
45304         Tests for module 'unicase/u32-is-uppercase'.
45305         * modules/unicase/u32-is-uppercase-tests: New file.
45306         * tests/unicase/test-u32-is-uppercase.c: New file.
45307
45308         Tests for module 'unicase/u16-is-uppercase'.
45309         * modules/unicase/u16-is-uppercase-tests: New file.
45310         * tests/unicase/test-u16-is-uppercase.c: New file.
45311
45312         Tests for module 'unicase/u8-is-uppercase'.
45313         * modules/unicase/u8-is-uppercase-tests: New file.
45314         * tests/unicase/test-u8-is-uppercase.c: New file.
45315         * tests/unicase/test-is-uppercase.h: New file.
45316
45317         New module 'unicase/u32-is-uppercase'.
45318         * lib/unicase/u32-is-uppercase.c: New file.
45319         * modules/unicase/u32-is-uppercase: New file.
45320
45321         New module 'unicase/u16-is-uppercase'.
45322         * lib/unicase/u16-is-uppercase.c: New file.
45323         * modules/unicase/u16-is-uppercase: New file.
45324
45325         New module 'unicase/u8-is-uppercase'.
45326         * lib/unicase/u8-is-uppercase.c: New file.
45327         * modules/unicase/u8-is-uppercase: New file.
45328
45329         New module 'unicase/u32-is-invariant'.
45330         * lib/unicase/u32-is-invariant.c: New file.
45331         * modules/unicase/u32-is-invariant: New file.
45332
45333         New module 'unicase/u16-is-invariant'.
45334         * lib/unicase/u16-is-invariant.c: New file.
45335         * modules/unicase/u16-is-invariant: New file.
45336
45337         New module 'unicase/u8-is-invariant'.
45338         * lib/unicase/u8-is-invariant.c: New file.
45339         * lib/unicase/invariant.h: New file.
45340         * lib/unicase/u-is-invariant.h: New file.
45341         * modules/unicase/u8-is-invariant: New file.
45342
45343         Tests for module 'unicase/u32-casecoll'.
45344         * modules/unicase/u32-casecoll-tests: New file.
45345         * tests/unicase/test-u32-casecoll.c: New file.
45346
45347         Tests for module 'unicase/u16-casecoll'.
45348         * modules/unicase/u16-casecoll-tests: New file.
45349         * tests/unicase/test-u16-casecoll.c: New file.
45350
45351         Tests for module 'unicase/u8-casecoll'.
45352         * modules/unicase/u8-casecoll-tests: New file.
45353         * tests/unicase/test-u8-casecoll.c: New file.
45354
45355         New module 'unicase/u32-casecoll'.
45356         * lib/unicase/u32-casecoll.c: New file.
45357         * modules/unicase/u32-casecoll: New file.
45358
45359         New module 'unicase/u16-casecoll'.
45360         * lib/unicase/u16-casecoll.c: New file.
45361         * modules/unicase/u16-casecoll: New file.
45362
45363         New module 'unicase/u8-casecoll'.
45364         * lib/unicase/u8-casecoll.c: New file.
45365         * lib/unicase/u-casecoll.h: New file.
45366         * modules/unicase/u8-casecoll: New file.
45367
45368         New module 'unicase/u32-casexfrm'.
45369         * lib/unicase/u32-casexfrm.c: New file.
45370         * modules/unicase/u32-casexfrm: New file.
45371
45372         New module 'unicase/u16-casexfrm'.
45373         * lib/unicase/u16-casexfrm.c: New file.
45374         * modules/unicase/u16-casexfrm: New file.
45375
45376         New module 'unicase/u8-casexfrm'.
45377         * lib/unicase/u8-casexfrm.c: New file.
45378         * lib/unicase/u-casexfrm.h: New file.
45379         * modules/unicase/u8-casexfrm: New file.
45380
45381         Tests for module 'unicase/u32-casecmp'.
45382         * modules/unicase/u32-casecmp-tests: New file.
45383         * tests/unicase/test-u32-casecmp.c: New file.
45384
45385         Tests for module 'unicase/u16-casecmp'.
45386         * modules/unicase/u16-casecmp-tests: New file.
45387         * tests/unicase/test-u16-casecmp.c: New file.
45388
45389         Tests for module 'unicase/u8-casecmp'.
45390         * modules/unicase/u8-casecmp-tests: New file.
45391         * tests/unicase/test-u8-casecmp.c: New file.
45392         * tests/unicase/test-casecmp.h: New file.
45393
45394         New module 'unicase/u32-casecmp'.
45395         * lib/unicase/u32-casecmp.c: New file.
45396         * modules/unicase/u32-casecmp: New file.
45397
45398         New module 'unicase/u16-casecmp'.
45399         * lib/unicase/u16-casecmp.c: New file.
45400         * modules/unicase/u16-casecmp: New file.
45401
45402         New module 'unicase/u8-casecmp'.
45403         * lib/unicase/u8-casecmp.c: New file.
45404         * lib/unicase/u-casecmp.h: New file.
45405         * modules/unicase/u8-casecmp: New file.
45406
45407         Tests for module 'unicase/u32-casefold'.
45408         * modules/unicase/u32-casefold-tests: New file.
45409         * tests/unicase/test-u32-casefold.c: New file.
45410
45411         Tests for module 'unicase/u16-casefold'.
45412         * modules/unicase/u16-casefold-tests: New file.
45413         * tests/unicase/test-u16-casefold.c: New file.
45414
45415         Tests for module 'unicase/u8-casefold'.
45416         * modules/unicase/u8-casefold-tests: New file.
45417         * tests/unicase/test-u8-casefold.c: New file.
45418
45419         New module 'unicase/u32-casefold'.
45420         * lib/unicase/u32-casefold.c: New file.
45421         * modules/unicase/u32-casefold: New file.
45422
45423         New module 'unicase/u16-casefold'.
45424         * lib/unicase/u16-casefold.c: New file.
45425         * modules/unicase/u16-casefold: New file.
45426
45427         New module 'unicase/u8-casefold'.
45428         * lib/unicase/u8-casefold.c: New file.
45429         * lib/unicase/u-casefold.h: New file.
45430         * modules/unicase/u8-casefold: New file.
45431
45432         New module 'unicase/tocasefold'.
45433         * lib/unicase/casefold.h: New file.
45434         * lib/unicase/tocasefold.c: New file.
45435         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45436         * modules/unicase/tocasefold: New file.
45437
45438         Tests for module 'unicase/u32-totitle'.
45439         * modules/unicase/u32-totitle-tests: New file.
45440         * tests/unicase/test-u32-totitle.c: New file.
45441
45442         Tests for module 'unicase/u16-totitle'.
45443         * modules/unicase/u16-totitle-tests: New file.
45444         * tests/unicase/test-u16-totitle.c: New file.
45445
45446         Tests for module 'unicase/u8-totitle'.
45447         * modules/unicase/u8-totitle-tests: New file.
45448         * tests/unicase/test-u8-totitle.c: New file.
45449
45450         New module 'unicase/u32-totitle'.
45451         * lib/unicase/u32-totitle.c: New file.
45452         * modules/unicase/u32-totitle: New file.
45453
45454         New module 'unicase/u16-totitle'.
45455         * lib/unicase/u16-totitle.c: New file.
45456         * modules/unicase/u16-totitle: New file.
45457
45458         New module 'unicase/u8-totitle'.
45459         * lib/unicase/u8-totitle.c: New file.
45460         * lib/unicase/u-totitle.h: New file.
45461         * modules/unicase/u8-totitle: New file.
45462
45463         Tests for module 'unicase/u32-tolower'.
45464         * modules/unicase/u32-tolower-tests: New file.
45465         * tests/unicase/test-u32-tolower.c: New file.
45466
45467         Tests for module 'unicase/u16-tolower'.
45468         * modules/unicase/u16-tolower-tests: New file.
45469         * tests/unicase/test-u16-tolower.c: New file.
45470
45471         Tests for module 'unicase/u8-tolower'.
45472         * modules/unicase/u8-tolower-tests: New file.
45473         * tests/unicase/test-u8-tolower.c: New file.
45474
45475         New module 'unicase/u32-tolower'.
45476         * lib/unicase/u32-tolower.c: New file.
45477         * modules/unicase/u32-tolower: New file.
45478
45479         New module 'unicase/u16-tolower'.
45480         * lib/unicase/u16-tolower.c: New file.
45481         * modules/unicase/u16-tolower: New file.
45482
45483         New module 'unicase/u8-tolower'.
45484         * lib/unicase/u8-tolower.c: New file.
45485         * modules/unicase/u8-tolower: New file.
45486
45487         Tests for module 'unicase/u32-toupper'.
45488         * modules/unicase/u32-toupper-tests: New file.
45489         * tests/unicase/test-u32-toupper.c: New file.
45490
45491         Tests for module 'unicase/u16-toupper'.
45492         * modules/unicase/u16-toupper-tests: New file.
45493         * tests/unicase/test-u16-toupper.c: New file.
45494
45495         Tests for module 'unicase/u8-toupper'.
45496         * modules/unicase/u8-toupper-tests: New file.
45497         * tests/unicase/test-u8-toupper.c: New file.
45498
45499         New module 'unicase/u32-toupper'.
45500         * lib/unicase/u32-toupper.c: New file.
45501         * modules/unicase/u32-toupper: New file.
45502
45503         New module 'unicase/u16-toupper'.
45504         * lib/unicase/u16-toupper.c: New file.
45505         * modules/unicase/u16-toupper: New file.
45506
45507         New module 'unicase/u8-toupper'.
45508         * lib/unicase/u8-toupper.c: New file.
45509         * modules/unicase/u8-toupper: New file.
45510
45511         New module 'unicase/u32-casemap'.
45512         * lib/unicase/u32-casemap.c: New file.
45513         * modules/unicase/u32-casemap: New file.
45514
45515         New module 'unicase/u16-casemap'.
45516         * lib/unicase/u16-casemap.c: New file.
45517         * modules/unicase/u16-casemap: New file.
45518
45519         New module 'unicase/u8-casemap'.
45520         * lib/unicase/unicasemap.h: New file.
45521         * lib/unicase/u8-casemap.c: New file.
45522         * lib/unicase/u-casemap.h: New file.
45523         * modules/unicase/u8-casemap: New file.
45524
45525         New module 'unicase/special-casing'.
45526         * lib/unicase/special-casing.h: New file.
45527         * lib/unicase/special-casing.c: New file.
45528         * lib/unicase/special-casing-table.gperf: New file, generated by
45529         gen-uni-tables.c.
45530         * modules/unicase/special-casing: New file.
45531
45532         Tests for module 'unicase/locale-language'.
45533         * modules/unicase/locale-language-tests: New file.
45534         * tests/unicase/test-locale-language.sh: New file.
45535         * tests/unicase/test-locale-language.c: New file.
45536
45537         New module 'unicase/locale-language'.
45538         * lib/unicase/locale-language.c: New file.
45539         * lib/unicase/locale-languages.gperf: New file.
45540         * modules/unicase/locale-language: New file.
45541
45542         Generate more tables for case conversion and case folding.
45543         * lib/gen-uni-tables.c (SCC_*): New enum items.
45544         (struct special_casing_rule): New type.
45545         (casing_rules, num_casing_rules, allocated_casing_rules): New
45546         variables.
45547         (add_casing_rule, fill_casing_rules): New functions.
45548         (struct casefold_rule): New type.
45549         (casefolding_rules, num_casefolding_rules,
45550         allocated_casefolding_rules): New variables.
45551         (fill_casefolding_rules): New function.
45552         (unicode_casefold): New variable.
45553         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45554         sort_casing_rules, output_casing_rules): New functions.
45555         (main): Accept to more arguments: SpecialCasing.txt and
45556         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45557         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45558         Output mapping for casefolding.
45559
45560         * lib/unicase.h: Include stdbool.h, uninorm.h.
45561         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45562         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45563         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45564         arguments.
45565         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45566         resultp arguments.
45567         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45568         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45569         resultp arguments.
45570         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45571         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45572         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45573         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45574         declarations.
45575         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45576
45577 2009-03-08  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45580         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45581         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45582         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45583
45584 2009-03-07  Bruno Haible  <bruno@clisp.org>
45585
45586         Adjust u*_normcmp, u*_normcoll API.
45587         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45588         u16_normcoll, u32_normcoll): Change failure conventions.
45589         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45590         errno and return -1.
45591         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45592
45593 2009-03-07  Bruno Haible  <bruno@clisp.org>
45594
45595         Tests for module 'uninorm/u32-normcoll'.
45596         * modules/uninorm/u32-normcoll-tests: New file.
45597         * tests/uninorm/test-u32-normcoll.c: New file.
45598
45599         Tests for module 'uninorm/u16-normcoll'.
45600         * modules/uninorm/u16-normcoll-tests: New file.
45601         * tests/uninorm/test-u16-normcoll.c: New file.
45602
45603         Tests for module 'uninorm/u8-normcoll'.
45604         * modules/uninorm/u8-normcoll-tests: New file.
45605         * tests/uninorm/test-u8-normcoll.c: New file.
45606
45607 2009-03-07  Bruno Haible  <bruno@clisp.org>
45608
45609         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45610         tests/uninorm/test-u32-normcmp.c.
45611         * tests/uninorm/test-u32-normcmp.c: Include it.
45612         (test_nonascii): New function, extracted from main. Add some more
45613         tests.
45614         (main): Invoke test_ascii and test_nonascii.
45615         * modules/uninorm/u32-normcmp-tests (Files): Add
45616         tests/uninorm/test-u32-normcmp.h.
45617         (Depends-on): Remove uninorm/u32-normcmp.
45618
45619         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45620         tests/uninorm/test-u16-normcmp.c.
45621         * tests/uninorm/test-u16-normcmp.c: Include it.
45622         (test_nonascii): New function, extracted from main. Add some more
45623         tests.
45624         (main): Invoke test_ascii and test_nonascii.
45625         * modules/uninorm/u16-normcmp-tests (Files): Add
45626         tests/uninorm/test-u16-normcmp.h.
45627         (Depends-on): Remove uninorm/u16-normcmp.
45628
45629         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45630         tests/uninorm/test-u8-normcmp.c.
45631         * tests/uninorm/test-u8-normcmp.c: Include it.
45632         (test_nonascii): New function, extracted from main. Add some more
45633         tests.
45634         (main): Invoke test_ascii and test_nonascii.
45635         * modules/uninorm/u8-normcmp-tests (Files): Add
45636         tests/uninorm/test-u8-normcmp.h.
45637         (Depends-on): Remove uninorm/u8-normcmp.
45638
45639 2009-03-07  Bruno Haible  <bruno@clisp.org>
45640
45641         New module 'uninorm/u32-normcoll'.
45642         * lib/uninorm/u32-normcoll.c: New file.
45643         * modules/uninorm/u32-normcoll: New file.
45644
45645         New module 'uninorm/u16-normcoll'.
45646         * lib/uninorm/u16-normcoll.c: New file.
45647         * modules/uninorm/u16-normcoll: New file.
45648
45649         New module 'uninorm/u8-normcoll'.
45650         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45651         declarations.
45652         * lib/uninorm/u8-normcoll.c: New file.
45653         * lib/uninorm/u-normcoll.h: New file.
45654         * modules/uninorm/u8-normcoll: New file.
45655
45656         New module 'uninorm/u32-normxfrm'.
45657         * lib/uninorm/u32-normxfrm.c: New file.
45658         * modules/uninorm/u32-normxfrm: New file.
45659
45660         New module 'uninorm/u16-normxfrm'.
45661         * lib/uninorm/u16-normxfrm.c: New file.
45662         * modules/uninorm/u16-normxfrm: New file.
45663
45664         New module 'uninorm/u8-normxfrm'.
45665         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45666         declarations.
45667         * lib/uninorm/u8-normxfrm.c: New file.
45668         * lib/uninorm/u-normxfrm.h: New file.
45669         * modules/uninorm/u8-normxfrm: New file.
45670
45671 2009-03-07  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45674         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45675         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45676
45677 2009-03-07  Bruno Haible  <bruno@clisp.org>
45678
45679         New module 'memxfrm'.
45680         * lib/memxfrm.h: New file.
45681         * lib/memxfrm.c: New file.
45682         * modules/memxfrm: New file.
45683
45684 2009-03-07  Bruno Haible  <bruno@clisp.org>
45685
45686         New module 'memcmp2'.
45687         * lib/memcmp2.h: New file.
45688         * lib/memcmp2.c: New file.
45689         * modules/memcmp2: New file.
45690
45691 2009-03-07  Bruno Haible  <bruno@clisp.org>
45692
45693         Tests for module 'uninorm/decomposing-form'.
45694         * modules/uninorm/decomposing-form-tests: New file.
45695         * tests/uninorm/test-decomposing-form.c: New file.
45696
45697         New module 'uninorm/decomposing-form'.
45698         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45699         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45700         Add 'decomposing_variant' field.
45701         * lib/uninorm/decomposing-form.c: New file.
45702         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45703         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45704         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45705         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45706         * modules/uninorm/decomposing-form: New file.
45707         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45708         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45709
45710 2009-03-07  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45713         strings.
45714
45715 2009-03-06  Bruno Haible  <bruno@clisp.org>
45716
45717         Tests for module 'uninorm/u32-normcmp'.
45718         * tests/uninorm/test-u32-normcmp.c: New file.
45719         * modules/uninorm/u32-normcmp-tests: New file.
45720
45721         Tests for module 'uninorm/u16-normcmp'.
45722         * tests/uninorm/test-u16-normcmp.c: New file.
45723         * modules/uninorm/u16-normcmp-tests: New file.
45724
45725         Tests for module 'uninorm/u8-normcmp'.
45726         * tests/uninorm/test-u8-normcmp.c: New file.
45727         * modules/uninorm/u8-normcmp-tests: New file.
45728
45729         New module 'uninorm/u32-normcmp'.
45730         * lib/uninorm/u32-normcmp.c: New file.
45731         * modules/uninorm/u32-normcmp: New file.
45732
45733         New module 'uninorm/u16-normcmp'.
45734         * lib/uninorm/u16-normcmp.c: New file.
45735         * modules/uninorm/u16-normcmp: New file.
45736
45737         New module 'uninorm/u8-normcmp'.
45738         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45739         declarations.
45740         * lib/uninorm/u8-normcmp.c: New file.
45741         * lib/uninorm/u-normcmp.h: New file.
45742         * modules/uninorm/u8-normcmp: New file.
45743
45744 2009-03-06  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45747         Reported by Eric Blake.
45748
45749 2009-03-06  Eric Blake  <ebb9@byu.net>
45750             Bruno Haible  <bruno@clisp.org>
45751
45752         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45753         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45754         condition.
45755         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45756         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45757         condition.
45758         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45759
45760 2009-03-06  Eric Blake  <ebb9@byu.net>
45761
45762         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45763         to avoid compiler warnings.
45764         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45765
45766 2009-03-05  Bruno Haible  <bruno@clisp.org>
45767
45768         * tests/test-ftell.c (main): Disable test beyond end of file on
45769         FreeMiNT.
45770         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45771
45772 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45773
45774         * lib/filevercmp.c: Move hidden files up in ordering.
45775         * tests/test-filevercmp.c: Add tests for hidden files.
45776
45777 2009-03-04  Bruno Haible  <bruno@clisp.org>
45778
45779         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45780         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45781         AM_CFLAGS.
45782         Reported by Simon Josefsson.
45783
45784 2009-03-03  Bruno Haible  <bruno@clisp.org>
45785
45786         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45787         Reported by Simon Josefsson.
45788
45789         * doc/ld-version-script.texi: Update node reference.
45790
45791 2009-03-03  Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/visibility (License): Change to 'unlimited'.
45794         Suggested by Simon Josefsson.
45795
45796 2009-03-03  Jim Meyering  <meyering@redhat.com>
45797
45798         unlinkdir: cannot_unlink_dir may modify process state
45799         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45800         it's neither thread-safe nor appropriate for use in a library.
45801
45802 2009-03-03  Eric Blake  <ebb9@byu.net>
45803
45804         test-closein: silence test under Darwin
45805         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45806         care if it dies from EPIPE or EBADF.
45807
45808 2009-03-03  Bruno Haible  <bruno@clisp.org>
45809
45810         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45811         earlier.
45812         * doc/visibility.texi: Fix @node and @section.
45813
45814 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45815
45816         * doc/gnulib.texi: Link to sections for ld version script and
45817         visibility.
45818         * doc/visibility.texi: Add @node and @section.
45819         * modules/ld-version-script: New module.
45820         * m4/ld-version-script.m4: New file.
45821         * doc/ld-version-script.texi: New file.
45822
45823 2009-03-02  David Lutterkort  <lutter@redhat.com>
45824
45825         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45827
45828 2009-03-02  Bruno Haible  <bruno@clisp.org>
45829
45830         * doc/visibility.texi: Mention libtool's -export-symbols option.
45831
45832 2009-03-02  Jim Meyering  <meyering@redhat.com>
45833
45834         announce-gen: new option: --no-print-checksums
45835         * build-aux/announce-gen (usage): Describe it.
45836         (print_checksums): Print a newline here, not in the [*] footnote.
45837         (main): Honor it.
45838
45839 2009-03-01  Bruno Haible  <bruno@clisp.org>
45840
45841         Use socklen_t in the native Windows replacements prototypes.
45842         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45843         instead of 'int'.
45844         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45845         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45846         * modules/getsockopt (Depends-on): Add socklen.
45847         * modules/setsockopt (Depends-on): Add socklen.
45848
45849 2009-03-01  Bruno Haible  <bruno@clisp.org>
45850
45851         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45852         least 4.2.
45853
45854 2009-03-01  Eric Blake  <ebb9@byu.net>
45855             Bruno Haible  <bruno@clisp.org>
45856
45857         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45858         error messages.
45859         * lib/wait-process.c (wait_subprocess): Omit error message about
45860         deadly signal sent to the child of termsigp != NULL.
45861
45862 2009-03-01  Eric Blake  <ebb9@byu.net>
45863
45864         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45865
45866 2009-03-01  Bruno Haible  <bruno@clisp.org>
45867
45868         Avoid a gcc warning.
45869         * tests/test-sched.c (b): Make global.
45870         Reported by Eric Blake.
45871
45872 2009-01-19  Martin Lambers  <marlam@marlam.de>
45873
45874         Provide POSIX semantics for socket timeout options on W32.
45875         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45876         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45877         * modules/setsockopt: Depend on sys_time module for struct timeval.
45878         * modules/getsockopt: Depend on sys_time module for struct timeval.
45879
45880 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45881
45882         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45883         __USE_GNU, for consistency with netdb.in.h.
45884         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45885
45886 2009-03-01  Bruno Haible  <bruno@clisp.org>
45887
45888         More support for FreeMiNT.
45889         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45890         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45891
45892 2009-03-01  Bruno Haible  <bruno@clisp.org>
45893
45894         More support for FreeMiNT.
45895         * lib/fpurge.c (fpurge): Correct last commit.
45896         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45897
45898 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45899
45900         Fix unportable awk script in vc-list-files.
45901         * build-aux/vc-list-files: In the replacement awk script, use
45902         substr with a second argument of 1, not zero.
45903         Report by Simon Josefsson.
45904
45905 2009-02-28  Bruno Haible  <bruno@clisp.org>
45906
45907         More support for FreeMiNT.
45908         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45909         to FreeMiNT today.
45910         * lib/fwriting.c (fwriting): Likewise.
45911         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45912
45913 2009-02-28  Bruno Haible  <bruno@clisp.org>
45914
45915         * tests/test-freadseek.c (main): Disable test beyond end of file on
45916         FreeMiNT.
45917         * tests/test-ftello.c (main): Likewise.
45918         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45919
45920 2009-02-28  Bruno Haible  <bruno@clisp.org>
45921
45922         Add tentative support for FreeMiNT.
45923         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45924         * lib/fpurge.c (fpurge): Likewise.
45925         * lib/freadable.c (freadable): Likewise.
45926         * lib/freading.c (freading): Likewise.
45927         * lib/freadptr.c (freadptr): Likewise.
45928         * lib/freadseek.c (freadptrinc): Likewise.
45929         * lib/fseeko.c (rpl_fseeko): Likewise.
45930         * lib/fseterr.c (fseterr): Likewise.
45931         * lib/fwritable.c (fwritable): Likewise.
45932         * lib/fwriting.c (fwriting): Likewise.
45933         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45934         Hourihane.
45935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45936
45937 2009-02-28  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45940         SIGCHLD.
45941         Reported by Jim Meyering.
45942
45943 2009-02-28  Bruno Haible  <bruno@clisp.org>
45944
45945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45946         Mention the results of these tests on various platforms.
45947         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45948         order.
45949         * doc/posix-functions/printf.texi: Likewise.
45950         * doc/posix-functions/snprintf.texi: Likewise.
45951         * doc/posix-functions/sprintf.texi: Likewise.
45952         * doc/posix-functions/vfprintf.texi: Likewise.
45953         * doc/posix-functions/vprintf.texi: Likewise.
45954         * doc/posix-functions/vsnprintf.texi: Likewise.
45955         * doc/posix-functions/vsprintf.texi: Likewise.
45956         * doc/glibc-functions/obstack_printf.texi: Likewise.
45957         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45958
45959 2009-02-28  Bruno Haible  <bruno@clisp.org>
45960
45961         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45962         Reported by Loïc Minier <lool@dooz.org>.
45963
45964 2009-02-27  Bruno Haible  <bruno@clisp.org>
45965
45966         * gnulib-tool (func_import): Make the sed expression used to create the
45967         sed script for updating the .gitignore file POSIX compliant.
45968         Reported by Eric Blake.
45969
45970 2009-02-27  Bruno Haible  <bruno@clisp.org>
45971
45972         * gnulib-tool (sed): Don't alias as "sed --posix".
45973         Reported by Eric Blake.
45974
45975 2009-02-27  Bruno Haible  <bruno@clisp.org>
45976
45977         Avoid test link errors.
45978         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45979         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45980         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45981         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45983
45984 2009-02-27  Bruno Haible  <bruno@clisp.org>
45985
45986         Avoid spurious "(cached)" in configure output.
45987         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45988         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45989         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45990         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45991         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45992         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45993         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45994         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45995         Reported by Eric Blake.
45996
45997 2009-02-27  Eric Blake  <ebb9@byu.net>
45998
45999         printf: fix regression in previous patch
46000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46001
46002 2009-02-27  Bruno Haible  <bruno@clisp.org>
46003
46004         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46005         value.
46006         * lib/stdint.in.h: Likewise.
46007         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46008
46009 2009-02-27  Eric Blake  <ebb9@byu.net>
46010
46011         doc: mention more functions added in cygwin 1.7.0
46012         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46013         addition.
46014         * doc/posix-functions/open_wmemstream.texi: Likewise.
46015         * doc/posix-functions/wcsnlen.texi: Likewise.
46016         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46017         * doc/posix-functions/wcstod.texi: Likewise.
46018         * doc/posix-functions/wcstof.texi: Likewise.
46019         * doc/posix-functions/wcstoimax.texi: Likewise.
46020         * doc/posix-functions/wcstok.texi: Likewise.
46021         * doc/posix-functions/wcstoumax.texi: Likewise.
46022
46023         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46025         * doc/posix-functions/fprintf.texi: Update.
46026         * doc/posix-functions/printf.texi: Update.
46027         * doc/posix-functions/snprintf.texi: Update.
46028         * doc/posix-functions/sprintf.texi: Update.
46029         * doc/posix-functions/vfprintf.texi: Update.
46030         * doc/posix-functions/vprintf.texi: Update.
46031         * doc/posix-functions/vsnprintf.texi: Update.
46032         * doc/posix-functions/vsprintf.texi: Update.
46033         * doc/glibc-functions/obstack_printf.texi: Update.
46034         * doc/glibc-functions/obstack_vprintf.texi: Update.
46035
46036 2009-02-26  Eric Blake  <ebb9@byu.net>
46037
46038         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46039         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46040         compilation bug by using runtime conversion.
46041         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46042         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46043         * modules/ceill-tests (Files): Use nan.h.
46044         * modules/floorl-tests (Files): Likewise.
46045         * modules/frexpl-tests (Files): Likewise.
46046         * modules/isnanl-tests (Files): Likewise.
46047         * modules/ldexpl-tests (Files): Likewise.
46048         * modules/roundl-tests (Files): Likewise.
46049         * modules/truncl-tests (Files): Likewise.
46050         * tests/test-ceill.c (main): Use a working NaN.
46051         * tests/test-floorl.c (main): Likewise.
46052         * tests/test-frexpl.c (main): Likewise.
46053         * tests/test-isnan.c (test_long_double): Likewise.
46054         * tests/test-isnanl.h (main): Likewise.
46055         * tests/test-ldexpl.h (main): Likewise.
46056         * tests/test-roundl.h (main): Likewise.
46057         * tests/test-truncl.h (main): Likewise.
46058         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46059
46060 2009-02-26  Eric Blake  <ebb9@byu.net>
46061             Bruno Haible  <bruno@clisp.org>
46062
46063         Work around a *printf bug with %ls on Solaris.
46064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46065         precision is specified, sprintf stops converting the wide string
46066         argument when the number of bytes that have been produced by this
46067         conversion equals or exceeds the precision.
46068         * doc/posix-functions/fprintf.texi: Update.
46069         * doc/posix-functions/printf.texi: Update.
46070         * doc/posix-functions/snprintf.texi: Update.
46071         * doc/posix-functions/sprintf.texi: Update.
46072         * doc/posix-functions/vfprintf.texi: Update.
46073         * doc/posix-functions/vprintf.texi: Update.
46074         * doc/posix-functions/vsnprintf.texi: Update.
46075         * doc/posix-functions/vsprintf.texi: Update.
46076         * doc/glibc-functions/obstack_printf.texi: Update.
46077         * doc/glibc-functions/obstack_vprintf.texi: Update.
46078
46079 2009-02-26  Eric Blake  <ebb9@byu.net>
46080
46081         stdlib: favor compiler check of random.h
46082         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46083         to avoid an ObjC random.h installed by Swarm.
46084
46085 2009-02-26  Bruno Haible  <bruno@clisp.org>
46086
46087         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46088         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46089         Reported by Gary V. Vaughan <gary@gnu.org>.
46090
46091 2009-02-26  Bruno Haible  <bruno@clisp.org>
46092
46093         Fix *printf behaviour regarding the %ls directive.
46094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46095         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46096         NEED_PRINTF_DIRECTIVE_LS.
46097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46100         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46101         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46102         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46103         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46108         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46112         * doc/posix-functions/fprintf.texi: Update.
46113         * doc/posix-functions/printf.texi: Update.
46114         * doc/posix-functions/snprintf.texi: Update.
46115         * doc/posix-functions/sprintf.texi: Update.
46116         * doc/posix-functions/vfprintf.texi: Update.
46117         * doc/posix-functions/vprintf.texi: Update.
46118         * doc/posix-functions/vsnprintf.texi: Update.
46119         * doc/posix-functions/vsprintf.texi: Update.
46120         * doc/glibc-functions/obstack_printf.texi: Update.
46121         * doc/glibc-functions/obstack_vprintf.texi: Update.
46122         Reported by Eric Blake.
46123
46124 2009-02-25  Bruno Haible  <bruno@clisp.org>
46125
46126         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46127         with known value.
46128         Reported by Gary V. Vaughan <gary@gnu.org>.
46129
46130 2009-02-25  Bruno Haible  <bruno@clisp.org>
46131
46132         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46133         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46134         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46135         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46136         Reported by Gary V. Vaughan <gary@gnu.org>.
46137
46138 2009-02-25  Bruno Haible  <bruno@clisp.org>
46139
46140         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46141         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46142         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46143         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46144         Reported by Gary V. Vaughan <gary@gnu.org>.
46145
46146 2009-02-25  Eric Blake  <ebb9@byu.net>
46147
46148         tests: skip fseek/ftell tests if ungetc is broken
46149         * m4/ungetc.m4: New file.
46150         * modules/fseek-tests: Split test, so ungetc dependency is
46151         separate from rest of test.
46152         * modules/fseeko-tests: Likewise.
46153         * modules/ftell-tests: Likewise.
46154         * modules/ftello-tests: Likewise.
46155         * tests/test-fseek.c (main): Isolate ungetc dependency.
46156         * tests/test-fseeko.c (main): Likewise.
46157         * tests/test-ftell.c (main): Likewise.
46158         * tests/test-ftello.c (main): Likewise.
46159         * tests/test-fseek2.sh: New file.
46160         * tests/test-fseeko2.sh: Likewise.
46161         * tests/test-ftell2.sh: Likewise.
46162         * tests/test-ftello2.sh: Likewise.
46163
46164 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46165
46166         test-getaddrinfo: fix usage of skip return code 77
46167         * tests/test-gettaddrinfo.c: Return skip code 77 only
46168         for first occurance of skip (4x77 is not 77)
46169
46170 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46171
46172         strtod: avoid C99 decl-after-statement
46173         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46174
46175 2009-02-24  Eric Blake  <ebb9@byu.net>
46176
46177         strtod: detect HP-UX 11.31 bug
46178         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46179         Reported by Gary V. Vaughan.
46180
46181 2009-02-23  Bruno Haible  <bruno@clisp.org>
46182
46183         Fix invalid read past end of memory block.
46184         * lib/vasnprintf.c (DCHAR_SET): Define.
46185         (local_wcslen): Define only when needed.
46186         (local_strnlen, local_wcsnlen): New functions.
46187         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46188         directives that involve a conversion ourselves.
46189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46190         wcsnlen, mbrtowc, wcrtomb.
46191         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46192         * tests/test-vasprintf-posix.c (test_function): Likewise.
46193         * tests/test-snprintf-posix.h (test_function): Likewise.
46194         * tests/test-sprintf-posix.h (test_function): Likewise.
46195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46196
46197 2009-02-22  Bruno Haible  <bruno@clisp.org>
46198
46199         Implement new clarified decomposition of Hangul syllables.
46200         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46201         of type LTV, return only a pairwise decomposition.
46202         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46203         Likewise.
46204         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46205         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46206         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46207
46208 2009-02-22  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46211         zero-length results and shrink excess allocated memory.
46212         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46213         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46214         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46215         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46216         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46217         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46218         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46219         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46220         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46221         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46222         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46223         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46224
46225 2009-02-21  Bruno Haible  <bruno@clisp.org>
46226
46227         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46228         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46229         spaces after a period. Put a space between a macro name and its
46230         argument list. Trivial rewordings.
46231         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46232         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46233         (main): Return 0 explicitly.
46234
46235 2009-02-21  Bruno Haible  <bruno@clisp.org>
46236
46237         Tests for module 'uninorm/filter'.
46238         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46239         * modules/uninorm/filter-tests: New file.
46240
46241         New module 'uninorm/filter'.
46242         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46243         uninorm_filter_flush, uninorm_filter_free): New declarations.
46244         * lib/uninorm/uninorm-filter.c: New file.
46245         * modules/uninorm/filter: New file.
46246
46247 2009-02-21  Bruno Haible  <bruno@clisp.org>
46248
46249         Tests for module 'uninorm/nfkc'.
46250         * tests/uninorm/test-nfkc.c: New file.
46251         * tests/uninorm/test-u8-nfkc.c: New file.
46252         * tests/uninorm/test-u16-nfkc.c: New file.
46253         * tests/uninorm/test-u32-nfkc.c: New file.
46254         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46255         * tests/uninorm/test-u32-nfkc-big.c: New file.
46256         * modules/uninorm/nfkc-tests: New file.
46257
46258         New module 'uninorm/nfkc'.
46259         * lib/uninorm/nfkc.c: New file.
46260         * modules/uninorm/nfkc: New file.
46261
46262         Tests for module 'uninorm/nfkd'.
46263         * tests/uninorm/test-nfkd.c: New file.
46264         * tests/uninorm/test-u8-nfkd.c: New file.
46265         * tests/uninorm/test-u16-nfkd.c: New file.
46266         * tests/uninorm/test-u32-nfkd.c: New file.
46267         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46268         * tests/uninorm/test-u32-nfkd-big.c: New file.
46269         * modules/uninorm/nfkd-tests: New file.
46270
46271         New module 'uninorm/nfkd'.
46272         * lib/uninorm/nfkd.c: New file.
46273         * modules/uninorm/nfkd: New file.
46274
46275         Tests for module 'uninorm/nfc'.
46276         * tests/uninorm/test-nfc.c: New file.
46277         * tests/uninorm/test-u8-nfc.c: New file.
46278         * tests/uninorm/test-u16-nfc.c: New file.
46279         * tests/uninorm/test-u32-nfc.c: New file.
46280         * tests/uninorm/test-u32-nfc-big.sh: New file.
46281         * tests/uninorm/test-u32-nfc-big.c: New file.
46282         * modules/uninorm/nfc-tests: New file.
46283
46284         New module 'uninorm/nfc'.
46285         * lib/uninorm/nfc.c: New file.
46286         * modules/uninorm/nfc: New file.
46287
46288         Tests for module 'uninorm/nfd'.
46289         * tests/uninorm/test-nfd.c: New file.
46290         * tests/uninorm/test-u8-nfd.c: New file.
46291         * tests/uninorm/test-u16-nfd.c: New file.
46292         * tests/uninorm/test-u32-nfd.c: New file.
46293         * tests/uninorm/test-u32-nfd-big.sh: New file.
46294         * tests/uninorm/test-u32-nfd-big.c: New file.
46295         * tests/uninorm/test-u32-normalize-big.h: New file.
46296         * tests/uninorm/test-u32-normalize-big.c: New file.
46297         * tests/uninorm/NormalizationTest.txt: New file, created from
46298         Unicode 5.1.0 NormalizationTest.txt.
46299         * modules/uninorm/nfd-tests: New file.
46300
46301         New module 'uninorm/nfd'.
46302         * lib/uninorm/nfd.c: New file.
46303         * modules/uninorm/nfd: New file.
46304
46305         New module 'uninorm/u32-normalize'.
46306         * lib/uninorm/u32-normalize.c: New file.
46307         * modules/uninorm/u32-normalize: New file.
46308
46309         New module 'uninorm/u16-normalize'.
46310         * lib/uninorm/u16-normalize.c: New file.
46311         * modules/uninorm/u16-normalize: New file.
46312
46313         New module 'uninorm/u8-normalize'.
46314         * lib/uninorm/u8-normalize.c: New file.
46315         * lib/uninorm/normalize-internal.h: New file.
46316         * lib/uninorm/u-normalize-internal.h: New file.
46317         * modules/uninorm/u8-normalize: New file.
46318
46319         New module 'uninorm/decompose-internal'.
46320         * lib/uninorm/decompose-internal.c: New file.
46321         * modules/uninorm/decompose-internal: New file.
46322
46323         Tests for module 'uninorm/composition'.
46324         * tests/uninorm/test-composition.c: New file.
46325         * modules/uninorm/composition-tests: New file.
46326
46327         New module 'uninorm/composition'.
46328         * lib/uninorm/composition.c: New file.
46329         * lib/uninorm/composition-table.gperf: New file, generated by
46330         gen-uni-tables.
46331         * modules/uninorm/composition: New file.
46332
46333         Tests for module 'uninorm/compat-decomposition'.
46334         * tests/uninorm/test-compat-decomposition.c: New file.
46335         * modules/uninorm/compat-decomposition-tests: New file.
46336
46337         New module 'uninorm/compat-decomposition'.
46338         * lib/uninorm/decompose-internal.h: New file.
46339         * lib/uninorm/compat-decomposition.c: New file.
46340         * modules/uninorm/compat-decomposition: New file.
46341
46342         Tests for module 'uninorm/canonical-decomposition'.
46343         * tests/uninorm/test-canonical-decomposition.c: New file.
46344         * modules/uninorm/canonical-decomposition-tests: New file.
46345
46346         New module 'uninorm/canonical-decomposition'.
46347         * lib/uninorm/canonical-decomposition.c: New file.
46348         * modules/uninorm/canonical-decomposition: New file.
46349
46350         Tests for module 'uninorm/decomposition'.
46351         * tests/uninorm/test-decomposition.c: New file.
46352         * modules/uninorm/decomposition-tests: New file.
46353
46354         New module 'uninorm/decomposition'.
46355         * lib/uninorm/decomposition.c: New file.
46356         * modules/uninorm/decomposition: New file.
46357
46358         New module 'uninorm/decomposition-table'.
46359         * lib/uninorm/decomposition-table.h: New file.
46360         * lib/uninorm/decomposition-table.c: New file.
46361         * lib/uninorm/decomposition-table1.h: New file, generated by
46362         gen-uni-tables.
46363         * lib/uninorm/decomposition-table2.h: New file, generated by
46364         gen-uni-tables.
46365         * modules/uninorm/decomposition-table: New file.
46366
46367         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46368         (UC_DECOMP_*): New enumeration items.
46369         (get_decomposition): New function.
46370         (struct decomp_table): New type.
46371         (output_decomposition, output_decomposition_tables): New functions.
46372         (unicode_composition_exclusions): New variable.
46373         (fill_composition_exclusions, debug_output_composition_tables): New
46374         functions.
46375         (main): Accept one more argument. Invoke fill_composition_exclusions.
46376         Output decomposition and composition tables.
46377
46378         New module 'uninorm/base'.
46379         * lib/uninorm.h: New file.
46380         * lib/unictype.h: Update comment.
46381         * modules/uninorm/base: New file.
46382
46383 2009-02-21  David Lutterkort  <lutter@redhat.com>
46384
46385         Tests for module 'safe-alloc'.
46386         * tests/test-safe-alloc.c: New file.
46387         * modules/safe-alloc-tests: New file.
46388
46389         New module 'safe-alloc'.
46390         * lib/safe-alloc.h: New file.
46391         * lib/safe-alloc.c: New file.
46392         * m4/safe-alloc.m4: New file.
46393         * modules/safe-alloc: New file.
46394         * doc/safe-alloc.texi: New file.
46395         * doc/gnulib.texi: Include it.
46396         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46397         safe-alloc.
46398
46399 2009-02-18  Bruno Haible  <bruno@clisp.org>
46400
46401         Fix link error on non-glibc systems.
46402         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46403         variable.
46404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46405
46406 2009-02-18  Jim Meyering  <meyering@redhat.com>
46407
46408         fts: avoid used-uninitialized error due to recent change
46409         * lib/fts.c (fts_read): Guard uses of the new member,
46410         parent->fts_n_dirs_remaining, since it's not relevant for
46411         the parent of a directory specified on the command-line.
46412
46413 2009-02-17  James Youngman  <jay@gnu.org>
46414             Bruno Haible  <bruno@clisp.org>
46415
46416         * m4/include_next.m4: Reformulate comment.
46417
46418 2009-02-16  Jim Meyering  <meyering@redhat.com>
46419
46420         fts: add #if guards so that the fts_lgpl module still builds
46421         * lib/fts.c: Guard just-added hash-table-using parts with
46422         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46423         Reported by Simon Josefsson.
46424
46425 2009-02-15  Bruno Haible  <bruno@clisp.org>
46426
46427         * modules/array-mergesort-tests: New file.
46428         * tests/test-array-mergesort.c: New file.
46429
46430         New module 'array-mergesort'.
46431         * modules/array-mergesort: New file.
46432         * lib/array-mergesort.h: New file.
46433
46434 2009-02-15  Bruno Haible  <bruno@clisp.org>
46435
46436         Fix 2009-02-07 commit.
46437         * lib/gen-uni-tables.c (output_predicate, output_category,
46438         output_combclass, output_bidi_category, output_decimal_digit,
46439         output_digit, output_numeric, output_mirror, output_scripts,
46440         output_ident_category, output_simple_mapping): Fix format directives.
46441         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46442
46443 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46444
46445         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46446         fixes are available from IBM.
46447
46448 2009-02-13  Jim Meyering  <meyering@redhat.com>
46449
46450         fts: arrange not to stat non-directories in more cases
46451         This makes GNU find (when it doesn't need to stat each file)
46452         *much* more efficient at traversing reiserfs file systems.
46453         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46454         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46455         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46456         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46457         (leaf_optimization_applies): New function.
46458         (LCO_hash, LCO_compare): New helper functions.
46459         (link_count_optimize_ok): New function.
46460         (fts_stat): Initialize new member (if dir).
46461         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46462         we've just stat'ed a directory.  Skip the stat call when possible.
46463         ---
46464         Note this AFS-related exchange:
46465         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46466         and note find's pioctl call in find/fstype.c.
46467         But that is necessary only if you want to enable the
46468         optimization for AFS, and for now, I don't.
46469
46470         fts: move a function definition "up" (no semantic change)
46471         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46472         "up" to precede upcoming use of a related function.
46473
46474 2009-02-11  Jim Meyering  <meyering@redhat.com>
46475
46476         fts: correct internal computation of nlinks (optimization-related)
46477         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46478         whether the current entry is a directory, so don't test it.
46479
46480 2009-02-10  Bruno Haible  <bruno@clisp.org>
46481
46482         Tests for module 'uniwbrk/ulc-wordbreaks'.
46483         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46484         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46485         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46486
46487         Tests for module 'uniwbrk/u32-wordbreaks'.
46488         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46489         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46490
46491         Tests for module 'uniwbrk/u16-wordbreaks'.
46492         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46493         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46494
46495         Tests for module 'uniwbrk/u8-wordbreaks'.
46496         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46497         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46498
46499 2009-02-10  Bruno Haible  <bruno@clisp.org>
46500
46501         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46502         property.
46503         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46504         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46505         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46506
46507 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46508
46509         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46510         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46511
46512 2009-02-10  Bruno Haible  <bruno@clisp.org>
46513
46514         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46515         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46516         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46517         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46518         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46519         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46520
46521 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46522
46523         * lib/sockets.h (gl_fd_to_handle): New function.
46524
46525         * tests/test-sockets.c: Call gl_fd_to_handle.
46526
46527 2009-02-09  Bruno Haible  <bruno@clisp.org>
46528
46529         * doc/havelib.texi: Document the conventions on bi-arch systems.
46530
46531 2009-02-08  Bruno Haible  <bruno@clisp.org>
46532
46533         Document the AC_LIB_LINKFLAGS macro.
46534         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46535         * doc/gnulib.texi: Include it.
46536
46537 2009-02-08  Bruno Haible  <bruno@clisp.org>
46538
46539         Fix wrong order of sections, compared to TOC.
46540         * doc/gnulib.texi: Include relocatable-maint.texi after the
46541         "Regular expressions" node, not before.
46542
46543 2009-02-08  Bruno Haible  <bruno@clisp.org>
46544
46545         Tests for module 'unicase/totitle'.
46546         * modules/unicase/totitle-tests: New file.
46547
46548         Tests for module 'unicase/tolower'.
46549         * modules/unicase/tolower-tests: New file.
46550
46551         Tests for module 'unicase/toupper'.
46552         * modules/unicase/toupper-tests: New file.
46553         * tests/unicase/test-mapping-part1.h: New file.
46554         * tests/unicase/test-mapping-part2.h: New file.
46555
46556         New module 'unicase/totitle'.
46557         * modules/unicase/totitle: New file.
46558         * lib/unicase/totitle.c: New file.
46559
46560         New module 'unicase/tolower'.
46561         * modules/unicase/tolower: New file.
46562         * lib/unicase/tolower.c: New file.
46563
46564         New module 'unicase/toupper'.
46565         * modules/unicase/toupper: New file.
46566         * lib/unicase/toupper.c: New file.
46567         * lib/unicase/simple-mapping.h: New file.
46568
46569         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46570         (mapping_table): New structure.
46571         (output_simple_mapping): New function.
46572         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46573         * modules/gen-uni-tables (Description): Update.
46574         * lib/unicase/toupper.h: New file, automatically generated by
46575         gen-uni-tables.
46576         * lib/unicase/tolower.h: New file, automatically generated by
46577         gen-uni-tables.
46578         * lib/unicase/totitle.h: New file, automatically generated by
46579         gen-uni-tables.
46580         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46581         gen-uni-tables.
46582         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46583         gen-uni-tables.
46584         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46585         gen-uni-tables.
46586
46587         New module 'unicase/base'.
46588         * modules/unicase/base: New file.
46589         * lib/unicase.h: New file.
46590
46591 2009-02-08  Bruno Haible  <bruno@clisp.org>
46592
46593         New module 'uniwbrk/ulc-wordbreaks'.
46594         * modules/uniwbrk/ulc-wordbreaks: New file.
46595         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46596
46597         New module 'uniwbrk/u32-wordbreaks'.
46598         * modules/uniwbrk/u32-wordbreaks: New file.
46599         * lib/uniwbrk/u32-wordbreaks.c: New file.
46600
46601         New module 'uniwbrk/u16-wordbreaks'.
46602         * modules/uniwbrk/u16-wordbreaks: New file.
46603         * lib/uniwbrk/u16-wordbreaks.c: New file.
46604
46605         New module 'uniwbrk/u8-wordbreaks'.
46606         * modules/uniwbrk/u8-wordbreaks: New file.
46607         * lib/uniwbrk/u8-wordbreaks.c: New file.
46608         * lib/uniwbrk/u-wordbreaks.h: New file.
46609
46610         New module 'uniwbrk/table'.
46611         * modules/uniwbrk/table: New file.
46612         * lib/uniwbrk/wbrktable.h: New file.
46613         * lib/uniwbrk/wbrktable.c: New file.
46614
46615         New module 'uniwbrk/wordbreak-property'.
46616         * modules/uniwbrk/wordbreak-property: New file.
46617         * lib/uniwbrk/wordbreak-property.c: New file.
46618
46619         * lib/gen-uni-tables.c (WBP_*): New enum items.
46620         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46621         (unicode_org_wbp): New variable.
46622         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46623         New functions.
46624         (wbp_table): New structure.
46625         (output_wbp, output_wbrk_tables): New functions.
46626         (main): Accept additional argument. Invoke fill_org_wbp,
46627         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46628         output_wbrk_tables.
46629         * modules/gen-uni-tables (Description): Update.
46630         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46631         gen-uni-tables.
46632
46633         New module 'uniwbrk/base'.
46634         * modules/uniwbrk/base: New file.
46635         * lib/uniwbrk.h: New file.
46636
46637 2009-02-08  Bruno Haible  <bruno@clisp.org>
46638
46639         Update to Unicode 5.1.0.
46640         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46641         U+2185..U+2188.
46642         (is_property_default_ignorable_code_point): Don't include characters
46643         of category Cc or Cs and not-a-characters.
46644         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46645         U+0D79, U+109E, U+109F, U+A60C.
46646         * lib/unictype/bidi_of.h: Regenerated.
46647         * lib/unictype/blocks.h: Regenerated.
46648         * lib/unictype/categ_C.h: Regenerated.
46649         * lib/unictype/categ_Cf.h: Regenerated.
46650         * lib/unictype/categ_Cn.h: Regenerated.
46651         * lib/unictype/categ_L.h: Regenerated.
46652         * lib/unictype/categ_Ll.h: Regenerated.
46653         * lib/unictype/categ_Lm.h: Regenerated.
46654         * lib/unictype/categ_Lo.h: Regenerated.
46655         * lib/unictype/categ_Lu.h: Regenerated.
46656         * lib/unictype/categ_M.h: Regenerated.
46657         * lib/unictype/categ_Mc.h: Regenerated.
46658         * lib/unictype/categ_Me.h: Regenerated.
46659         * lib/unictype/categ_Mn.h: Regenerated.
46660         * lib/unictype/categ_N.h: Regenerated.
46661         * lib/unictype/categ_Nd.h: Regenerated.
46662         * lib/unictype/categ_Nl.h: Regenerated.
46663         * lib/unictype/categ_No.h: Regenerated.
46664         * lib/unictype/categ_P.h: Regenerated.
46665         * lib/unictype/categ_Pd.h: Regenerated.
46666         * lib/unictype/categ_Pe.h: Regenerated.
46667         * lib/unictype/categ_Pf.h: Regenerated.
46668         * lib/unictype/categ_Pi.h: Regenerated.
46669         * lib/unictype/categ_Po.h: Regenerated.
46670         * lib/unictype/categ_Ps.h: Regenerated.
46671         * lib/unictype/categ_S.h: Regenerated.
46672         * lib/unictype/categ_Sk.h: Regenerated.
46673         * lib/unictype/categ_Sm.h: Regenerated.
46674         * lib/unictype/categ_So.h: Regenerated.
46675         * lib/unictype/categ_of.h: Regenerated.
46676         * lib/unictype/combining.h: Regenerated.
46677         * lib/unictype/ctype_alnum.h: Regenerated.
46678         * lib/unictype/ctype_alpha.h: Regenerated.
46679         * lib/unictype/ctype_graph.h: Regenerated.
46680         * lib/unictype/ctype_lower.h: Regenerated.
46681         * lib/unictype/ctype_print.h: Regenerated.
46682         * lib/unictype/ctype_punct.h: Regenerated.
46683         * lib/unictype/ctype_upper.h: Regenerated.
46684         * lib/unictype/decdigit.h: Regenerated.
46685         * lib/unictype/digit.h: Regenerated.
46686         * lib/unictype/mirror.h: Regenerated.
46687         * lib/unictype/numeric.h: Regenerated.
46688         * lib/unictype/pr_alphabetic.h: Regenerated.
46689         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46691         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46692         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46693         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46694         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46695         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46696         * lib/unictype/pr_combining.h: Regenerated.
46697         * lib/unictype/pr_dash.h: Regenerated.
46698         * lib/unictype/pr_decimal_digit.h: Regenerated.
46699         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46700         * lib/unictype/pr_deprecated.h: Regenerated.
46701         * lib/unictype/pr_diacritic.h: Regenerated.
46702         * lib/unictype/pr_extender.h: Regenerated.
46703         * lib/unictype/pr_format_control.h: Regenerated.
46704         * lib/unictype/pr_grapheme_base.h: Regenerated.
46705         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46706         * lib/unictype/pr_grapheme_link.h: Regenerated.
46707         * lib/unictype/pr_id_continue.h: Regenerated.
46708         * lib/unictype/pr_id_start.h: Regenerated.
46709         * lib/unictype/pr_ideographic.h: Regenerated.
46710         * lib/unictype/pr_ignorable_control.h: Regenerated.
46711         * lib/unictype/pr_lowercase.h: Regenerated.
46712         * lib/unictype/pr_math.h: Regenerated.
46713         * lib/unictype/pr_numeric.h: Regenerated.
46714         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46715         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46716         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46717         * lib/unictype/pr_other_id_continue.h: Regenerated.
46718         * lib/unictype/pr_other_lowercase.h: Regenerated.
46719         * lib/unictype/pr_other_math.h: Regenerated.
46720         * lib/unictype/pr_punctuation.h: Regenerated.
46721         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46722         * lib/unictype/pr_soft_dotted.h: Regenerated.
46723         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46724         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46725         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46726         * lib/unictype/pr_uppercase.h: Regenerated.
46727         * lib/unictype/pr_xid_continue.h: Regenerated.
46728         * lib/unictype/pr_xid_start.h: Regenerated.
46729         * lib/unictype/pr_zero_width.h: Regenerated.
46730         * lib/unictype/scripts.h: Regenerated.
46731         * lib/unictype/scripts_byname.gperf: Regenerated.
46732         * lib/unictype/sy_java_ident.h: Regenerated.
46733         * lib/unilbrk/lbrkprop1.h: Regenerated.
46734         * lib/unilbrk/lbrkprop2.h: Regenerated.
46735         * tests/unictype/test-categ_C.c: Regenerated.
46736         * tests/unictype/test-categ_Cf.c: Regenerated.
46737         * tests/unictype/test-categ_Cn.c: Regenerated.
46738         * tests/unictype/test-categ_L.c: Regenerated.
46739         * tests/unictype/test-categ_Ll.c: Regenerated.
46740         * tests/unictype/test-categ_Lm.c: Regenerated.
46741         * tests/unictype/test-categ_Lo.c: Regenerated.
46742         * tests/unictype/test-categ_Lu.c: Regenerated.
46743         * tests/unictype/test-categ_M.c: Regenerated.
46744         * tests/unictype/test-categ_Mc.c: Regenerated.
46745         * tests/unictype/test-categ_Me.c: Regenerated.
46746         * tests/unictype/test-categ_Mn.c: Regenerated.
46747         * tests/unictype/test-categ_N.c: Regenerated.
46748         * tests/unictype/test-categ_Nd.c: Regenerated.
46749         * tests/unictype/test-categ_Nl.c: Regenerated.
46750         * tests/unictype/test-categ_No.c: Regenerated.
46751         * tests/unictype/test-categ_P.c: Regenerated.
46752         * tests/unictype/test-categ_Pd.c: Regenerated.
46753         * tests/unictype/test-categ_Pe.c: Regenerated.
46754         * tests/unictype/test-categ_Pf.c: Regenerated.
46755         * tests/unictype/test-categ_Pi.c: Regenerated.
46756         * tests/unictype/test-categ_Po.c: Regenerated.
46757         * tests/unictype/test-categ_Ps.c: Regenerated.
46758         * tests/unictype/test-categ_S.c: Regenerated.
46759         * tests/unictype/test-categ_Sk.c: Regenerated.
46760         * tests/unictype/test-categ_Sm.c: Regenerated.
46761         * tests/unictype/test-categ_So.c: Regenerated.
46762         * tests/unictype/test-ctype_alnum.c: Regenerated.
46763         * tests/unictype/test-ctype_alpha.c: Regenerated.
46764         * tests/unictype/test-ctype_graph.c: Regenerated.
46765         * tests/unictype/test-ctype_lower.c: Regenerated.
46766         * tests/unictype/test-ctype_print.c: Regenerated.
46767         * tests/unictype/test-ctype_punct.c: Regenerated.
46768         * tests/unictype/test-ctype_upper.c: Regenerated.
46769         * tests/unictype/test-decdigit.h: Regenerated.
46770         * tests/unictype/test-digit.h: Regenerated.
46771         * tests/unictype/test-numeric.h: Regenerated.
46772         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46773         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46774         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46775         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46776         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46777         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46778         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46779         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46780         * tests/unictype/test-pr_combining.c: Regenerated.
46781         * tests/unictype/test-pr_dash.c: Regenerated.
46782         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46783         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46784         * tests/unictype/test-pr_deprecated.c: Regenerated.
46785         * tests/unictype/test-pr_diacritic.c: Regenerated.
46786         * tests/unictype/test-pr_extender.c: Regenerated.
46787         * tests/unictype/test-pr_format_control.c: Regenerated.
46788         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46789         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46790         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46791         * tests/unictype/test-pr_id_continue.c: Regenerated.
46792         * tests/unictype/test-pr_id_start.c: Regenerated.
46793         * tests/unictype/test-pr_ideographic.c: Regenerated.
46794         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46795         * tests/unictype/test-pr_lowercase.c: Regenerated.
46796         * tests/unictype/test-pr_math.c: Regenerated.
46797         * tests/unictype/test-pr_numeric.c: Regenerated.
46798         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46799         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46800         Regenerated.
46801         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46802         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46803         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46804         * tests/unictype/test-pr_other_math.c: Regenerated.
46805         * tests/unictype/test-pr_punctuation.c: Regenerated.
46806         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46807         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46808         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46809         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46810         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46811         * tests/unictype/test-pr_uppercase.c: Regenerated.
46812         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46813         * tests/unictype/test-pr_xid_start.c: Regenerated.
46814         * tests/unictype/test-pr_zero_width.c: Regenerated.
46815
46816         Update to Unicode 5.1.0.
46817         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46818         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46819         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46820         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46821         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46822         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46823         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46824         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46825         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46826         (nonspacing_table_ind): Update.
46827         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46828
46829         Update to Unicode 5.1.0.
46830         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46831         code transform.
46832         * lib/uniname/uniname.c (unicode_character_name,
46833         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46834         * lib/uniname/uninames.h: Regenerated.
46835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46836
46837 2009-02-07  Bruno Haible  <bruno@clisp.org>
46838
46839         Merge gen-ctype and gen-lbrk into a single program.
46840         * lib/gen-uni-tables.c: New file, incorporating
46841         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46842         Add directory prefixes to the names of the generated files.
46843         * lib/unictype/gen-ctype.c: Remove file.
46844         * lib/unilbrk/gen-lbrk.c: Remove file.
46845         * modules/gen-uni-tables: New file.
46846         * modules/unictype/gen-ctype: Remove file.
46847         * modules/unilbrk/gen-lbrk: Remove file.
46848
46849 2009-02-07  Bruno Haible  <bruno@clisp.org>
46850
46851         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46852
46853         New module 'unistr/u32-strcoll'.
46854         * modules/unistr/u32-strcoll: New file.
46855         * lib/unistr/u32-strcoll.c: New file.
46856
46857         New module 'unistr/u16-strcoll'.
46858         * modules/unistr/u16-strcoll: New file.
46859         * lib/unistr/u16-strcoll.c: New file.
46860
46861         New module 'unistr/u8-strcoll'.
46862         * modules/unistr/u8-strcoll: New file.
46863         * lib/unistr/u8-strcoll.c: New file.
46864         * lib/unistr/u-strcoll.h: New file.
46865
46866 2009-02-07  Bruno Haible  <bruno@clisp.org>
46867
46868         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46869         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46870         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46871         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46872         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46873         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46874
46875 2009-02-07  Bruno Haible  <bruno@clisp.org>
46876
46877         Make 64-bit clean.
46878         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46879         output_combclass, output_bidi_category, output_decimal_digit,
46880         output_digit, output_numeric, output_mirror, output_scripts,
46881         output_ident_category): Use proper width specifier in format strings.
46882
46883 2009-02-07  Bruno Haible  <bruno@clisp.org>
46884
46885         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46886         failure behaviour.
46887
46888 2009-02-07  Jim Meyering  <meyering@redhat.com>
46889
46890         regex: avoid compilation failure with upcoming gcc-4.4
46891         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46892         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46893         "... error: integer overflow in preprocessor expression".
46894
46895 2009-02-05  Ben Pfaff  <blp@gnu.org>
46896
46897         Fix link errors on Windows when close module is used.
46898         * modules/close: Add $(LIB_CLOSE) to Link section.
46899         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46900         $(LIB_CLOSE) on Windows.
46901
46902 2009-02-05  Jim Meyering  <meyering@redhat.com>
46903
46904         still avoid unused-parameter warnings, but do it cleanly
46905         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46906         (get_fs_usage): Cast to void instead.
46907         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46908         (dev_from_mount_options, read_file_system_list): Cast to void.
46909         Prompted by Bruno Haible.
46910
46911 2009-02-04  Jim Meyering  <meyering@redhat.com>
46912
46913         fsusage.c: correct copyright year
46914         * lib/fsusage.c: Reflect year in which the change is pushed into
46915
46916         avoid misc. warnings
46917         * lib/fsusage.c (UNUSED_PARAM): Define.
46918         (get_fs_usage): Mark parameter "disk" as unused.
46919         * lib/getugroups.c (getgrent): Use "void" in prototype.
46920         * lib/mountlist.c: Mark unused parameters.
46921         (read_file_system_list): Declare a local with "const".
46922         * lib/nanosleep.c (getnow): Declare static.
46923         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46924
46925         dirfd: set errno upon failure
46926         * lib/dirfd.c: Include <errno.h>.
46927         Set errno to ENOTSUP when returning -1.
46928         * modules/dirfd (Depends-on): Add errno.
46929         Suggested by John Kodis <kodis@comcast.net>.
46930
46931 2009-02-01  Bruno Haible  <bruno@clisp.org>
46932
46933         Don't assume sizeof (long) >= sizeof (void *).
46934         * lib/memcmp.c: Include stdint.h.
46935         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46936         srcp2 to 'const byte *'.
46937         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46938         types to uintptr_t.
46939         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46940         * modules/memcmp (Depends-on): Add stdint.
46941         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46942
46943 2009-01-30  Eric Blake  <ebb9@byu.net>
46944
46945         fix more require-before-expand issues
46946         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46947         expand, AC_PROG_AWK.
46948         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46949
46950 2009-01-28  Eric Blake  <ebb9@byu.net>
46951
46952         version-etc: use consistent URL formatting
46953         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46954         Improve formatting.  Use fputs for string without %.
46955
46956 2009-01-28  Jim Meyering  <meyering@redhat.com>
46957
46958         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46959         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46960         "underquoted definition of NAME" from autoconf-2.59.
46961
46962 2009-01-28  Bruno Haible  <bruno@clisp.org>
46963
46964         * doc/gnulib.texi: Add "Obsolete modules" to index.
46965
46966 2009-01-28  Jim Meyering  <meyering@redhat.com>
46967
46968         useless-if-before-free: recognize more variants
46969         * build-aux/useless-if-before-free: Also recognize e.g.,
46970         if (NULL != p) free (p);
46971
46972 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46973
46974         test-getaddrinfo: skip (don't fail) this test when there's no network
46975         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46976         on the presumption that it means you lack network access.
46977
46978 2009-01-26  Jim Meyering  <meyering@redhat.com>
46979
46980         fflush: avoid warnings on modern systems
46981         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46982         pos and result, into scopes where they're used.
46983
46984 2009-01-26  Eric Blake  <ebb9@byu.net>
46985
46986         Silence warning reintroduced by recent extensions patch.
46987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46988         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46989         autoconf.
46990
46991         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46992         * m4/00gnulib.m4: New file.
46993         * gnulib-tool (func_get_filelist): Always use it.
46994         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46995         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46996
46997 2009-01-25  Bruno Haible  <bruno@clisp.org>
46998
46999         Make test-quotearg work on MacOS X and AIX.
47000         * tests/test-quotearg.sh: New file.
47001         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47002         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47003         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47004         include <libintl.h>.
47005         (fake_locale): Remove variable.
47006         (gettext, dgettext, dcgettext): Remove functions.
47007         (main): Instead of setting a fake locale, set a real locale. Call
47008         textdomain and bindtextdomain.
47009         * modules/quotearg-tests (Files): Add the new files.
47010         (Depends-on): Add gettext, setenv, unsetenv.
47011         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47012         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47013         Augment TESTS_ENVIRONMENT.
47014
47015 2009-01-25  Bruno Haible  <bruno@clisp.org>
47016
47017         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47018         fr_FR.ISO8859-1 locale on MacOS X.
47019         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47020         ja_JP.eucJP locale on MacOS X.
47021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47022         zh_CN.GB18030 locale on MacOS X.
47023
47024 2009-01-25  Bruno Haible  <bruno@clisp.org>
47025
47026         Avoid link errors on MacOS X 10.3.
47027         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47028         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47029
47030 2009-01-25  Bruno Haible  <bruno@clisp.org>
47031
47032         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47033         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47034         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47035         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47036         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47037         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47038         posix_spawnattr_init, posix_spawnattr_setsigmask,
47039         posix_spawnattr_setflags, posix_spawnattr_destroy.
47040
47041         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47042         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47043         * modules/execute (Files): Remove m4/posix_spawn.m4.
47044         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47045         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47046         posix_spawnattr_init, posix_spawnattr_setsigmask,
47047         posix_spawnattr_setflags, posix_spawnattr_destroy.
47048
47049 2009-01-25  Bruno Haible  <bruno@clisp.org>
47050
47051         * lib/glthread/threadlib.c: Include <stdlib.h>.
47052
47053 2009-01-25  Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/glthread/threadlib.c (dummy): New declaration.
47056
47057 2009-01-25  Bruno Haible  <bruno@clisp.org>
47058
47059         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47060         multibyte characters also for the GB18030 encoding. Don't crash when
47061         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47062
47063 2009-01-25  Bruno Haible  <bruno@clisp.org>
47064
47065         Avoid redefining 'struct random_data' on OSF/1 5.1.
47066         * lib/stdlib.in.h: Include <random.h> if it exists.
47067         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47068         HAVE_RANDOM_H. Include <random.h> when testing whether
47069         'struct random_data' exists.
47070         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47071
47072 2009-01-25  Bruno Haible  <bruno@clisp.org>
47073
47074         Don't install charset.alias on MacOS X >= 10.3.
47075         * lib/localcharset.c (DARWIN7): New macro.
47076         (get_charset_aliases): Hardcode the result for Darwin7.
47077         * modules/localcharset (install-exec-local): Don't install
47078         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47079
47080 2009-01-25  Bruno Haible  <bruno@clisp.org>
47081
47082         Don't install charset.alias on mingw and Cygwin.
47083         * modules/localcharset (install-exec-local): Don't install
47084         charset.alias on mingw and Cygwin, if the file does not yet exist.
47085         The result for these platforms is hardcoded in localcharset.c.
47086
47087 2009-01-25  Bruno Haible  <bruno@clisp.org>
47088
47089         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47091         before requiring AC_USE_SYSTEM_EXTENSIONS.
47092
47093 2009-01-25  Jim Meyering  <meyering@redhat.com>
47094
47095         c-strtod: avoid warnings
47096         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47097         "assignment discards qualifiers from pointer target type" warnings.
47098
47099 2009-01-24  Bruno Haible  <bruno@clisp.org>
47100
47101         Add support for non-UTF-8 locales on MacOS X.
47102         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47103         canonical encodings. For Darwin 7 and newer, don't map traditional
47104         encodings to UTF-8.
47105         Reported by Vincent Lefevre <vincent@vinc17.org>
47106         at <http://savannah.gnu.org/bugs/?25235>.
47107
47108 2009-01-24  Bruno Haible  <bruno@clisp.org>
47109
47110         * doc/gnulib.texi (Obsolete modules): New section.
47111         Reported by Mike Frysinger <vapier@gentoo.org>.
47112
47113 2009-01-24  Bruno Haible  <bruno@clisp.org>
47114
47115         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47116         (%.dvi): New rule.
47117
47118 2009-01-24  Bruno Haible  <bruno@clisp.org>
47119
47120         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47121         Reported by Eric Blake.
47122
47123 2009-01-24  Bruno Haible  <bruno@clisp.org>
47124
47125         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47126         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47127         Reported by Gary V. Vaughan <gary@gnu.org>.
47128
47129 2009-01-24  Bruno Haible  <bruno@clisp.org>
47130
47131         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47132
47133 2009-01-23  Bruno Haible  <bruno@clisp.org>
47134
47135         Make c-strtod, c-strtold usable in libraries.
47136         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47137         (C_STRTOD): Call strdup instead of xstrdup.
47138         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47139         * modules/c-strtold (Depends-on): Likewise.
47140         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47141         * NEWS: Mention the change.
47142         Reported by Michael Gold <mgold@ncf.ca>.
47143
47144 2009-01-23  Jim Meyering  <meyering@redhat.com>
47145
47146         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47147         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47148         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47149
47150 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47151
47152         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47153         GNU CoreUtils.
47154         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47155         * modules/version-etc (Description): Update.
47156
47157 2009-01-22  Bruno Haible  <bruno@clisp.org>
47158
47159         Cache the C locale object.
47160         * lib/c-strtod.c (c_locale_cache): New variable.
47161         (c_locale): New function.
47162         (C_STRTOD): Use it, and don't call freelocale.
47163         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47164         Suggested by Paolo Bonzini.
47165
47166 2009-01-21  Bruno Haible  <bruno@clisp.org>
47167
47168         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47169         conditions other than overflow.
47170
47171 2009-01-21  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/c-strtod.c: Include errno.h.
47174         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47175         value from STRTOD_L and STRTOD.
47176
47177 2009-01-21  Bruno Haible  <bruno@clisp.org>
47178         and Jim Meyering  <meyering@redhat.com>
47179
47180         nanosleep: skip configure test (fail it) for apple universal builds
47181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47182         universal builds, assume that nanosleep does not work.
47183         * modules/nanosleep (Depends-on): Add multiarch.
47184
47185         mktime: skip configure test (fail it) for apple universal builds
47186         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47187         universal builds, assume that mktime does not work.
47188         * modules/mktime (Depends-on): Add multiarch.
47189
47190 2009-01-21  Eric Blake  <ebb9@byu.net>
47191
47192         multiarch: avoid expand-before-require warning
47193         * modules/multiarch (configure.ac): Require, rather than expand,
47194         gl_MULTIARCH.
47195         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47196         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47197         enforce that all clients require it.  Partial reversion of
47198         2008-12-29 patch.
47199
47200         error: avoid expand-before-require warning
47201         * modules/errno (configure.ac): Require, rather than expand,
47202         gl_HEADER_ERRNO_H.
47203         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47204         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47205         enforce that all clients require it.
47206
47207         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47208         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47209         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47210         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47211
47212 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47213
47214         Revert:
47215         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47216
47217         regex: do not depend on obsolete modules.
47218         * modules/regex: Remove memcmp and memmove.
47219
47220 2009-01-20  Bruno Haible  <bruno@clisp.org>
47221
47222         Make the 'link' module link on Windows NT 4.
47223         * lib/link.c (_WIN32_WINNT): Don't define.
47224         (CreateHardLinkFuncType): New type.
47225         (CreateHardLinkFunc, initialized): New variables.
47226         (initialize): New function.
47227         (link): Invoke CreateHardLink indirectly through the function pointer.
47228
47229 2009-01-20  Bruno Haible  <bruno@clisp.org>
47230
47231         Fix compilation failure on mingw.
47232         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47233
47234 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47235
47236         * doc/c-strtod.texi: Mention a couple of restrictions.
47237
47238 2009-01-20  Jim Meyering  <meyering@redhat.com>
47239
47240         gettimeofday: move more declarations out of functions
47241         * lib/gettimeofday.c: Move extern declarations of tzset and
47242         gmtime out of containing functions.  Prompted by Bruno Haible.
47243
47244 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47245
47246         regex: do not depend on obsolete modules.
47247         * modules/regex: Remove memcmp and memmove.
47248
47249 2009-01-19  Bruno Haible  <bruno@clisp.org>
47250
47251         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47252         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47253         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47254         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47255         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47256
47257 2009-01-19  Bruno Haible  <bruno@clisp.org>
47258
47259         * tests/test-link.c: Include <errno.h>.
47260         (main): Exit with code 77 when a hard link cannot be created due to
47261         the file system.
47262         * tests/test-link.sh: Skip test when a hard link cannot be created due
47263         to the file system.
47264         Suggested by Eric Blake.
47265
47266 2009-01-19  Martin Lambers  <marlam@marlam.de>
47267
47268         * modules/link-tests: New file.
47269         * tests/test-link.sh: New file.
47270         * tests/test-link.c: New file.
47271
47272 2009-01-19  Eric Blake  <ebb9@byu.net>
47273
47274         doc: mention another function added in cygwin 1.7.0
47275         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47276         Another new function in cygwin 1.7.
47277
47278 2009-01-19  Bruno Haible  <bruno@clisp.org>
47279
47280         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47281         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47282         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47283         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47284         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47285         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47287         * m4/md4.m4 (gl_MD4): Likewise.
47288         * m4/md5.m4 (gl_MD5): Likewise.
47289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47290         * m4/sha1.m4 (gl_SHA1): Likewise.
47291         * m4/sha256.m4 (gl_SHA256): Likewise.
47292         * m4/sha512.m4 (gl_SHA512): Likewise.
47293
47294 2009-01-19  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/uniname/uniname-tests (Depends-on): Add progname.
47297         * tests/uniname/test-uninames.c: Include progname.h.
47298         (main): Call set_program_name.
47299
47300         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47301         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47302         (main): Call set_program_name.
47303
47304         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47305         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47306         (main): Call set_program_name.
47307
47308         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47309         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47310         (main): Call set_program_name.
47311
47312         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47313         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47314         (main): Call set_program_name.
47315
47316         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47317         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47318         (main): Call set_program_name.
47319
47320         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47321         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47322         (main): Call set_program_name.
47323
47324         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47325         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47326         (main): Call set_program_name.
47327
47328         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47329         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47330         (main): Call set_program_name.
47331
47332 2009-01-19  Eric Blake  <ebb9@byu.net>
47333
47334         test-unistd: test previous patch
47335         * tests/test-unistd.c: Test *_FILENO macros.
47336
47337         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47338         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47339         Guarantee a definition.
47340         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47341         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47342         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47343         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47344         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47345         Likewise.
47346         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47347         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47348         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47349         Likewise.
47350         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47351         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47352         (STDERR_FILENO): Likewise.
47353         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47354         (STDERR_FILENO): Likewise.
47355         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47356         (STDERR_FILENO): Likewise.
47357         Reported by Elbert Pol.
47358
47359 2009-01-19  Eric Blake  <ebb9@byu.net>
47360
47361         doc: mention more functions added in cygwin 1.7.0
47362         * doc/posix-functions/abort.texi (abort): Update wording related
47363         to cygwin.
47364         * doc/posix-functions/daylight.texi (daylight): Likewise.
47365         * doc/posix-functions/optarg.texi (optarg): Likewise.
47366         * doc/posix-functions/optarg.texi (opterr): Likewise.
47367         * doc/posix-functions/optarg.texi (optind): Likewise.
47368         * doc/posix-functions/optarg.texi (optopt): Likewise.
47369         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47370         worked in 1.5.x, and was withdrawn in 1.7.
47371         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47372         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47373         cygwin versions.
47374         * doc/posix-functions/perror.texi (perror): Likewise.
47375         * doc/posix-functions/printf.texi (printf): Likewise.
47376         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47377         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47378         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47379         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47380         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47381         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47382         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47383         Likewise.
47384         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47385         Likewise.
47386         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47387         this function.
47388         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47389         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47390         Likewise.
47391         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47392         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47393         * doc/posix-functions/confstr.texi (confstr): Likewise.
47394         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47395         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47396         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47397         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47398         * doc/posix-functions/fputws.texi (fputws): Likewise.
47399         * doc/posix-functions/fwide.texi (fwide): Likewise.
47400         * doc/posix-functions/getwc.texi (getwc): Likewise.
47401         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47402         * doc/posix-functions/putwc.texi (putwc): Likewise.
47403         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47404         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47405         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47406         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47407         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47408         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47409         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47410         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47411         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47412         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47413         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47414
47415 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47416
47417         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47418         * lib/ioctl.c: Include <sys/ioctl.h>.
47419
47420 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47421
47422         * modules/getdate-tests (Depends-on): Add progname.
47423         * tests/test-getdate.c: Use progname module, to avoid link errors
47424         on non-glibc systems.
47425
47426 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47427
47428         * modules/filenamecat-tests (Depends-on): Add progname.
47429         * modules/fstrcmp-tests (Depends-on): Likewise.
47430
47431         * tests/test-filenamecat.c: Use progname module, to avoid link
47432         errors on non-glibc systems.
47433         * tests/test-fstrcmp.c: Likewise.
47434
47435 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47436
47437         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47438         * lib/gettimeofday.c: Move extern declaration out of function.
47439
47440 2009-01-18  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47443         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47444         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47445
47446 2009-01-18  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/strftime.c (MEMPCPY): Remove unused macro.
47449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47450
47451 2009-01-18  Martin Lambers  <marlam@marlam.de>
47452
47453         New module 'link'.
47454         * lib/unistd.in.h (link): New declaration.
47455         * lib/link.c: New file.
47456         * m4/link.m4: New file.
47457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47458         HAVE_LINK.
47459         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47460         * modules/link: New file.
47461         * doc/posix-functions/link.texi: Mention the new module.
47462
47463 2009-01-18  Bruno Haible  <bruno@clisp.org>
47464
47465         * tests/test-avltree_list.c (main): Call set_program_name.
47466         * tests/test-avltree_oset.c (main): Likewise.
47467         * tests/test-obstack-printf.c: Include progname.h.
47468         (main): Call set_program_name.
47469         * tests/test-quotearg.c: Include progname.h.
47470         (main): Call set_program_name.
47471         * tests/test-xmemdup0.c: Include progname.h.
47472         (main): Call set_program_name.
47473
47474 2009-01-18  Bruno Haible  <bruno@clisp.org>
47475
47476         New module 'alphasort'.
47477         * lib/dirent.in.h (alphasort): New declaration.
47478         * lib/alphasort.c: New file, from glibc with modifications.
47479         * m4/alphasort.m4: New file.
47480         * modules/alphasort: New file.
47481         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47482         HAVE_ALPHASORT.
47483         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47484         HAVE_ALPHASORT.
47485         * doc/posix-functions/alphasort.texi: Mention the new module and the
47486         portability problems.
47487
47488 2009-01-18  Bruno Haible  <bruno@clisp.org>
47489
47490         New module 'scandir'.
47491         * lib/dirent.in.h (scandir): New declaration.
47492         * lib/scandir.c: New file, from glibc with modifications.
47493         * m4/scandir.m4: New file.
47494         * modules/scandir: New file.
47495         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47496         HAVE_SCANDIR.
47497         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47498         HAVE_SCANDIR.
47499         * doc/posix-functions/scandir.texi: Mention the new module and the
47500         portability problems.
47501
47502 2009-01-17  Bruno Haible  <bruno@clisp.org>
47503
47504         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47505         Update documentation.
47506         (func_remove_suffix): Escape all dots in the suffix. Update
47507         documentation.
47508         (func_filter_filelist): Update documentation.
47509         Reported by Ralf Wildenhues.
47510
47511 2009-01-17  Bruno Haible  <bruno@clisp.org>
47512
47513         * modules/dprintf-posix-tests: New file.
47514         * tests/test-dprintf-posix.sh: New file.
47515         * tests/test-dprintf-posix.c: New file.
47516
47517         New modules 'dprintf', 'dprintf-posix'.
47518         * lib/stdio.in.h (dprintf): New declaration.
47519         * lib/dprintf.c: New file.
47520         * m4/dprintf.m4: New file.
47521         * m4/dprintf-posix.m4: New file.
47522         * modules/dprintf: New file.
47523         * modules/dprintf-posix: New file.
47524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47525         HAVE_DPRINTF, REPLACE_DPRINTF.
47526         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47527         HAVE_DPRINTF, REPLACE_DPRINTF.
47528         * doc/posix-functions/dprintf.texi: Mention the new modules.
47529
47530 2009-01-17  Bruno Haible  <bruno@clisp.org>
47531
47532         * modules/vdprintf-posix-tests: New file.
47533         * tests/test-vdprintf-posix.sh: New file.
47534         * tests/test-vdprintf-posix.c: New file.
47535
47536         New modules 'vdprintf', 'vdprintf-posix'.
47537         * lib/stdio.in.h (vdprintf): New declaration.
47538         * lib/vdprintf.c: New file.
47539         * m4/vdprintf.m4: New file.
47540         * m4/vdprintf-posix.m4: New file.
47541         * modules/vdprintf: New file.
47542         * modules/vdprintf-posix: New file.
47543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47544         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47545         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47546         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47547         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47548
47549 2009-01-17  Bruno Haible  <bruno@clisp.org>
47550
47551         Fix replacement of fopen on mingw.
47552         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47553         mingw.
47554
47555 2009-01-17  Bruno Haible  <bruno@clisp.org>
47556
47557         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47558         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47559
47560 2009-01-17  Bruno Haible  <bruno@clisp.org>
47561
47562         Avoid test-fflush2.sh failure on mingw.
47563         * tests/test-fflush2.c: Include binary-io.h.
47564         (main): Put standard input into binary mode.
47565         * modules/fflush-tests (Depends-on): Add binary-io.
47566
47567 2009-01-17  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/wchar.in.h: In another particular situation, include only the
47570         system's <wchar.h> file.
47571         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47572         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47573         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47574
47575 2009-01-17  Bruno Haible  <bruno@clisp.org>
47576
47577         Support for stripping executables in --enable-relocatable.
47578         * build-aux/install-reloc: Expect one more argument, or an environment
47579         variable RELOC_STRIP_PROG. If set, strip the destination program and
47580         its wrapper.
47581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47582         RELOC_STRIP_PROG.
47583         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47584         to set RELOCATABLE_STRIP.
47585         * NEWS: Mention the new Makefile requirement.
47586
47587 2009-01-17  Bruno Haible  <bruno@clisp.org>
47588
47589         * build-aux/install-reloc: Remove debugging information left over by
47590         C compiler on MacOS X.
47591
47592 2009-01-17  Bruno Haible  <bruno@clisp.org>
47593
47594         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47595         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47596         _NSGetExecutablePath.
47597
47598 2009-01-16  Jim Meyering  <meyering@redhat.com>
47599
47600         strerror: avoid warnings about discarding "const"
47601         * lib/strerror.c (rpl_strerror): Instead of returning a const
47602         string from each and every "case", use a variable, and add a single
47603         cast after the switch.
47604
47605 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47606
47607         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47608
47609 2009-01-16  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47612         array initializer syntax that also works in C++ mode.
47613         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47614
47615 2009-01-16  Jim Meyering  <meyering@redhat.com>
47616
47617         poll: suppress a warning
47618         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47619         to ignore "...unsigned expression < 0 is always false" warnings.
47620
47621 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47622
47623         poll: remove declarations of unused variables
47624         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47625         sockbuf and optlen.
47626
47627 2009-01-15  Bruno Haible  <bruno@clisp.org>
47628
47629         Make fflush-after-ungetc POSIX compliant on BSD systems.
47630         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47631         (clear_ungetc_buffer): Implement also for other systems.
47632         (rpl_fflush): On glibc systems, invoke
47633         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47634         clear_ungetc_buffer after fetching the stream's position, not before.
47635
47636 2009-01-15  Bruno Haible  <bruno@clisp.org>
47637
47638         Make fflush-after-ungetc POSIX compliant on glibc systems.
47639         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47640         after ungetc.
47641         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47642         (rpl_fflush): On glibc systems, simply call the system's fflush
47643         function after clearing the ungetc buffer.
47644         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47645         Instead, lseek only to the end of file, then use the system's fseeko
47646         for the rest. On glibc systems, reset the EOF indicator bit.
47647
47648 2009-01-15  Jim Meyering  <meyering@redhat.com>
47649
47650         openmp.m4: revert quote-adding change, for portability to older autoconf
47651         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47652         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47653         Simon Josefsson noticed the problem when using autoconf-2.61.
47654
47655 2009-01-15  Bruno Haible  <bruno@clisp.org>
47656
47657         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47658         * tests/test-fflush2.c (ASSERT): Always fail.
47659         (main): Add two tests for fflush() after ungetc(), taking into account
47660         the Austin Group's clarification.
47661         Suggested by Eric Blake.
47662
47663 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47664
47665         mktime.m4: remove K&R-style function prototypes
47666         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47667         for the Sun C++ compiler.
47668
47669 2009-01-14  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47672         while including <wchar.h>.
47673         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47674         the system's <wchar.h> file.
47675         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47676
47677 2009-01-14  Bruno Haible  <bruno@clisp.org>
47678
47679         * m4/csharp.m4: Don't mention gettext on the serial number line.
47680         * m4/csharpexec.m4: Likewise.
47681         * m4/eaccess.m4: Likewise.
47682         * m4/javaexec.m4: Likewise.
47683         * m4/sig_atomic_t.m4: Likewise.
47684         * m4/tmpdir.m4: Likewise.
47685         * m4/intldir.m4: Bump gettext version.
47686         * m4/lib-ld.m4: Likewise.
47687
47688 2009-01-14  Bruno Haible  <bruno@clisp.org>
47689
47690         * lib/progname.c (set_program_name): Add more comments.
47691         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47692
47693 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47694
47695         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47696         were sys/stat.h does not define it.
47697
47698 2009-01-14  Jim Meyering  <meyering@redhat.com>
47699
47700         many *.m4 files: improve m4 quoting
47701         99% of this change was performed by running the following commands:
47702         git ls-files | grep '\.m4$' | xargs perl -pi \
47703           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47704           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47705           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47706           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47707         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47708         The remainder were to add Copyright dates, increment serial numbers,
47709         undo some changes in comments, exclude m4/intl.m4, and add quotes
47710         around the "1" in ",1" where the unusual spacing prohibited the
47711         above regexps from doing the job.  For more details, see
47712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47713         * m4/acl.m4: Modified.
47714         * m4/afs.m4: Likewise.
47715         * m4/alloca.m4: Likewise.
47716         * m4/argp.m4: Likewise.
47717         * m4/argz.m4: Likewise.
47718         * m4/atexit.m4: Likewise.
47719         * m4/bison-i18n.m4: Likewise.
47720         * m4/bison.m4: Likewise.
47721         * m4/byteswap.m4: Likewise.
47722         * m4/c-stack.m4: Likewise.
47723         * m4/c-strtod.m4: Likewise.
47724         * m4/calloc.m4: Likewise.
47725         * m4/canonicalize-lgpl.m4: Likewise.
47726         * m4/chown.m4: Likewise.
47727         * m4/clock_time.m4: Likewise.
47728         * m4/codeset.m4: Likewise.
47729         * m4/copy-file.m4: Likewise.
47730         * m4/csharp.m4: Likewise.
47731         * m4/csharpcomp.m4: Likewise.
47732         * m4/csharpexec.m4: Likewise.
47733         * m4/d-ino.m4: Likewise.
47734         * m4/d-type.m4: Likewise.
47735         * m4/dirfd.m4: Likewise.
47736         * m4/double-slash-root.m4: Likewise.
47737         * m4/eaccess.m4: Likewise.
47738         * m4/eealloc.m4: Likewise.
47739         * m4/environ.m4: Likewise.
47740         * m4/errno_h.m4: Likewise.
47741         * m4/euidaccess.m4: Likewise.
47742         * m4/execute.m4: Likewise.
47743         * m4/fatal-signal.m4: Likewise.
47744         * m4/fchdir.m4: Likewise.
47745         * m4/fcntl_h.m4: Likewise.
47746         * m4/fileblocks.m4: Likewise.
47747         * m4/filenamecat.m4: Likewise.
47748         * m4/findprog.m4: Likewise.
47749         * m4/flexmember.m4: Likewise.
47750         * m4/fnmatch.m4: Likewise.
47751         * m4/fopen.m4: Likewise.
47752         * m4/fpending.m4: Likewise.
47753         * m4/fprintf-posix.m4: Likewise.
47754         * m4/free.m4: Likewise.
47755         * m4/frexp.m4: Likewise.
47756         * m4/frexpl.m4: Likewise.
47757         * m4/fsusage.m4: Likewise.
47758         * m4/ftruncate.m4: Likewise.
47759         * m4/gc-camellia.m4: Likewise.
47760         * m4/gc-random.m4: Likewise.
47761         * m4/gc.m4: Likewise.
47762         * m4/getaddrinfo.m4: Likewise.
47763         * m4/getcwd-abort-bug.m4: Likewise.
47764         * m4/getcwd-path-max.m4: Likewise.
47765         * m4/getdate.m4: Likewise.
47766         * m4/getdomainname.m4: Likewise.
47767         * m4/getgroups.m4: Likewise.
47768         * m4/gethostname.m4: Likewise.
47769         * m4/gethrxtime.m4: Likewise.
47770         * m4/getline.m4: Likewise.
47771         * m4/getloadavg.m4: Likewise.
47772         * m4/getndelim2.m4: Likewise.
47773         * m4/getpass.m4: Likewise.
47774         * m4/gettext.m4: Likewise.
47775         * m4/gettime.m4: Likewise.
47776         * m4/gettimeofday.m4: Likewise.
47777         * m4/gnulib-common.m4: Likewise.
47778         * m4/group-member.m4: Likewise.
47779         * m4/host-os.m4: Likewise.
47780         * m4/iconv.m4: Likewise.
47781         * m4/iconv_open.m4: Likewise.
47782         * m4/inet_ntop.m4: Likewise.
47783         * m4/inet_pton.m4: Likewise.
47784         * m4/inline.m4: Likewise.
47785         * m4/intldir.m4: Likewise.
47786         * m4/intlmacosx.m4: Likewise.
47787         * m4/intmax.m4: Likewise.
47788         * m4/intmax_t.m4: Likewise.
47789         * m4/inttypes.m4: Likewise.
47790         * m4/inttypes_h.m4: Likewise.
47791         * m4/inttypes-pri.m4: Likewise.
47792         * m4/isapipe.m4: Likewise.
47793         * m4/isnand.m4: Likewise.
47794         * m4/isnanf.m4: Likewise.
47795         * m4/isnanl.m4: Likewise.
47796         * m4/javacomp.m4: Likewise.
47797         * m4/javaexec.m4: Likewise.
47798         * m4/jm-winsz1.m4: Likewise.
47799         * m4/jm-winsz2.m4: Likewise.
47800         * m4/lchown.m4: Likewise.
47801         * m4/lcmessage.m4: Likewise.
47802         * m4/ldexpl.m4: Likewise.
47803         * m4/lib-ld.m4: Likewise.
47804         * m4/lib-link.m4: Likewise.
47805         * m4/libsigsegv.m4: Likewise.
47806         * m4/link-follow.m4: Likewise.
47807         * m4/localcharset.m4: Likewise.
47808         * m4/locale-fr.m4: Likewise.
47809         * m4/locale-ja.m4: Likewise.
47810         * m4/locale-tr.m4: Likewise.
47811         * m4/locale-zh.m4: Likewise.
47812         * m4/lock.m4: Likewise.
47813         * m4/longlong.m4: Likewise.
47814         * m4/ls-mntd-fs.m4: Likewise.
47815         * m4/lstat.m4: Likewise.
47816         * m4/malloc.m4: Likewise.
47817         * m4/mathl.m4: Likewise.
47818         * m4/mbrtowc.m4: Likewise.
47819         * m4/mbstate_t.m4: Likewise.
47820         * m4/mbswidth.m4: Likewise.
47821         * m4/memchr.m4: Likewise.
47822         * m4/memcmp.m4: Likewise.
47823         * m4/memcpy.m4: Likewise.
47824         * m4/memmem.m4: Likewise.
47825         * m4/memmove.m4: Likewise.
47826         * m4/mempcpy.m4: Likewise.
47827         * m4/memrchr.m4: Likewise.
47828         * m4/memset.m4: Likewise.
47829         * m4/minmax.m4: Likewise.
47830         * m4/mkdir-slash.m4: Likewise.
47831         * m4/mkdtemp.m4: Likewise.
47832         * m4/mktime.m4: Likewise.
47833         * m4/mmap-anon.m4: Likewise.
47834         * m4/mountlist.m4: Likewise.
47835         * m4/nanosleep.m4: Likewise.
47836         * m4/nls.m4: Likewise.
47837         * m4/nocrash.m4: Likewise.
47838         * m4/open.m4: Likewise.
47839         * m4/openat.m4: Likewise.
47840         * m4/openmp.m4: Likewise.
47841         * m4/pathmax.m4: Likewise.
47842         * m4/perl.m4: Likewise.
47843         * m4/physmem.m4: Likewise.
47844         * m4/pipe.m4: Likewise.
47845         * m4/po.m4: Likewise.
47846         * m4/poll.m4: Likewise.
47847         * m4/posixtm.m4: Likewise.
47848         * m4/posixver.m4: Likewise.
47849         * m4/printf-frexp.m4: Likewise.
47850         * m4/printf-frexpl.m4: Likewise.
47851         * m4/printf-posix.m4: Likewise.
47852         * m4/printf-posix-rpl.m4: Likewise.
47853         * m4/printf.m4: Likewise.
47854         * m4/progtest.m4: Likewise.
47855         * m4/putenv.m4: Likewise.
47856         * m4/readline.m4: Likewise.
47857         * m4/readlink.m4: Likewise.
47858         * m4/readutmp.m4: Likewise.
47859         * m4/realloc.m4: Likewise.
47860         * m4/regex.m4: Likewise.
47861         * m4/relocatable.m4: Likewise.
47862         * m4/relocatable-lib.m4: Likewise.
47863         * m4/rename-dest-slash.m4: Likewise.
47864         * m4/rename.m4: Likewise.
47865         * m4/rmdir-errno.m4: Likewise.
47866         * m4/rmdir.m4: Likewise.
47867         * m4/roundf.m4: Likewise.
47868         * m4/roundl.m4: Likewise.
47869         * m4/rpmatch.m4: Likewise.
47870         * m4/save-cwd.m4: Likewise.
47871         * m4/selinux-selinux-h.m4: Likewise.
47872         * m4/setenv.m4: Likewise.
47873         * m4/settime.m4: Likewise.
47874         * m4/sig2str.m4: Likewise.
47875         * m4/sig_atomic_t.m4: Likewise.
47876         * m4/signalblocking.m4: Likewise.
47877         * m4/signbit.m4: Likewise.
47878         * m4/sigpipe.m4: Likewise.
47879         * m4/sockets.m4: Likewise.
47880         * m4/sockpfaf.m4: Likewise.
47881         * m4/st_dm_mode.m4: Likewise.
47882         * m4/stat-time.m4: Likewise.
47883         * m4/stdbool.m4: Likewise.
47884         * m4/stdint.m4: Likewise.
47885         * m4/stdint_h.m4: Likewise.
47886         * m4/stpcpy.m4: Likewise.
47887         * m4/stpncpy.m4: Likewise.
47888         * m4/strcase.m4: Likewise.
47889         * m4/strchrnul.m4: Likewise.
47890         * m4/strcspn.m4: Likewise.
47891         * m4/strdup.m4: Likewise.
47892         * m4/strftime.m4: Likewise.
47893         * m4/strndup.m4: Likewise.
47894         * m4/strnlen.m4: Likewise.
47895         * m4/strpbrk.m4: Likewise.
47896         * m4/strptime.m4: Likewise.
47897         * m4/strsep.m4: Likewise.
47898         * m4/strtod.m4: Likewise.
47899         * m4/strtoimax.m4: Likewise.
47900         * m4/strtok_r.m4: Likewise.
47901         * m4/strtol.m4: Likewise.
47902         * m4/strtoll.m4: Likewise.
47903         * m4/strtoul.m4: Likewise.
47904         * m4/strtoull.m4: Likewise.
47905         * m4/strtoumax.m4: Likewise.
47906         * m4/strverscmp.m4: Likewise.
47907         * m4/threadlib.m4: Likewise.
47908         * m4/timegm.m4: Likewise.
47909         * m4/tm_gmtoff.m4: Likewise.
47910         * m4/tmpdir.m4: Likewise.
47911         * m4/tmpfile.m4: Likewise.
47912         * m4/tzset.m4: Likewise.
47913         * m4/uintmax_t.m4: Likewise.
47914         * m4/unlinkdir.m4: Likewise.
47915         * m4/unlocked-io.m4: Likewise.
47916         * m4/uptime.m4: Likewise.
47917         * m4/userspec.m4: Likewise.
47918         * m4/utimbuf.m4: Likewise.
47919         * m4/utime.m4: Likewise.
47920         * m4/utimes-null.m4: Likewise.
47921         * m4/utimes.m4: Likewise.
47922         * m4/vararrays.m4: Likewise.
47923         * m4/vasnprintf.m4: Likewise.
47924         * m4/vfprintf-posix.m4: Likewise.
47925         * m4/vprintf-posix.m4: Likewise.
47926         * m4/wait-process.m4: Likewise.
47927         * m4/wchar_t.m4: Likewise.
47928         * m4/wint_t.m4: Likewise.
47929         * m4/write-any-file.m4: Likewise.
47930         * m4/yield.m4: Likewise.
47931
47932 2009-01-13  Bruno Haible  <bruno@clisp.org>
47933
47934         Avoid test-copy-file.sh failures when ACL support insufficient.
47935         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47936         TESTS_ENVIRONMENT.
47937         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47938         Reported by Jim Meyering.
47939
47940 2009-01-13  Bruno Haible  <bruno@clisp.org>
47941
47942         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47943         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47944         * modules/unistdio/u8-printf-parse (Files): Likewise.
47945         * modules/unistdio/u32-printf-parse (Files): Likewise.
47946         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47947
47948 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47949
47950         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47951         and m4/inttypes_h.m4 too.
47952
47953 2009-01-12  Eric Blake  <ebb9@byu.net>
47954
47955         tests: IRIX 6.2 cc can't compile -0.0 into .data
47956         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47957         rather than at compile-time.
47958         * tests/test-floorl.c (minus_zero): Likewise.
47959         * tests/test-frexpl.c (minus_zero): Likewise.
47960         * tests/test-isnan.c (minus_zerol): Likewise.
47961         * tests/test-isnanl.h (minus_zero): Likewise.
47962         * tests/test-ldexpl.c (minus_zero): Likewise.
47963         * tests/test-roundl.c (minus_zero): Likewise.
47964         * tests/test-signbit.c (minus_zerol): Likewise.
47965         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47966         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47967         * tests/test-truncl.c (minus_zero): Likewise.
47968         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47969         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47970         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47971
47972 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47973
47974         regex: fix glibc bug 9697
47975         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47976         handling.
47977
47978 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47979
47980         regex: fix glibc bug 697
47981         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47982         being NULL also if there are no backreferences.
47983
47984 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47985
47986         regex: merge glibc changes
47987         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47988         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47989         re_string_skip_chars, re_string_reconstruct): Likewise.
47990         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47991
47992 2009-01-07  Jim Meyering  <meyering@redhat.com>
47993
47994         poll: filter through cppi
47995         * lib/poll.c: Indent cpp directives to reflect nesting.
47996
47997 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47998
47999         poll: don't return uninitialized
48000         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48001
48002 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48003
48004         avoid compile failure on AIX 6.1
48005         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48006         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48007
48008 2009-01-04  Jim Meyering  <meyering@redhat.com>
48009
48010         remove duplicate inclusion of <stdio.h>
48011         * tests/test-fprintf-posix.c: Likewise.
48012         * tests/test-printf-posix.c: Likewise.
48013         * tests/test-snprintf-posix.c: Likewise.
48014         * tests/test-sprintf-posix.c: Likewise.
48015         * tests/test-vasprintf-posix.c: Likewise.
48016         * tests/test-vfprintf-posix.c: Likewise.
48017         * tests/test-vprintf-posix.c: Likewise.
48018         * tests/test-vsnprintf-posix.c: Likewise.
48019         * tests/test-vsprintf-posix.c: Likewise.
48020
48021 2009-01-03  Jim Meyering  <meyering@redhat.com>
48022
48023         gnulib-tool: fix sed-based filtering
48024         * gnulib-tool (func_filter_filelist): Remove extra backslash
48025         in sed_fff_filter definition.
48026
48027 2009-01-02  Jim Meyering  <meyering@redhat.com>
48028
48029         strftime: avoid compilation failure on Solaris 2.6
48030         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48031         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48032         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48033         be available.  Reported by Tom G. Christensen.  Details in
48034         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48035
48036 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48037             Bruno Haible  <bruno@clisp.org>
48038
48039         Speed up gnulib-tool by doing more string processing through shell
48040         built-ins.
48041         * gnulib-tool (fast_func_append): New variable.
48042         (func_remove_prefix, func_remove_suffix): New functions.
48043         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48044         (func_filter_filelist): New function.
48045         (func_get_dependencies): Use func_remove_suffix instead of sed.
48046         (func_get_automake_snippet): Use func_filter_filelist instead of a
48047         subshell and sed invocation.
48048
48049 2009-01-01  Bruno Haible  <bruno@clisp.org>
48050
48051         Fix a security bug.
48052         * gnulib-tool (func_import, import, update): Don't allow the characters
48053         '"', '$', '`', '\' in macro arguments that become part of commands that
48054         are evaluated.
48055
48056 2009-01-01  Bruno Haible  <bruno@clisp.org>
48057
48058         * gnulib-tool (func_reset_sigpipe): Add more comments.
48059
48060 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48061
48062         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48063         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48064         already know the answer.
48065
48066 2009-01-01  Jim Meyering  <meyering@redhat.com>
48067
48068         * lib/version-etc.c (version_etc_va): Update copyright year.
48069
48070 2008-12-30  Bruno Haible  <bruno@clisp.org>
48071
48072         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48073         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48074         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48075
48076 2008-12-29  Eric Blake  <ebb9@byu.net>
48077
48078         multiarch: avoid autoconf AC_REQUIRE bug
48079         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48080         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48081         2.63 and older.
48082         Reported by Bruno Haible, and analyzed in
48083         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48084
48085 2008-12-29  Bruno Haible  <bruno@clisp.org>
48086
48087         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48088         files in subdirectories correctly.
48089         Reported by Ralf Wildenhues.
48090
48091 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48092
48093         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48094         rather than 'join FILE -', for Solaris join.
48095
48096 2008-12-29  Bruno Haible  <bruno@clisp.org>
48097
48098         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48099         quoting.
48100         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48101         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48102         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48103         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48104         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48105         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48106         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48107         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48108         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48109         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48110         * m4/nls.m4 (AM_NLS): Likewise.
48111         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48112         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48113         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48114         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48115         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48116         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48118         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48119         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48120         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48121         * m4/xsize.m4 (gl_XSIZE): Likewise.
48122         Suggested by Jim Meyering.
48123
48124 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48125
48126         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48127         * lib/parse-duration.c: use a switch instead of cascading if's.
48128
48129 2008-12-29  Eric Blake  <ebb9@byu.net>
48130
48131         wchar.h: supply WEOF on Irix 5.3
48132         * lib/wchar.in.h (wint_t): Also supply WEOF.
48133         * lib/wctype.in.h (wint_t): Likewise.
48134         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48135         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48136         Reported by Tom G. Christensen.
48137
48138 2008-12-26  Bruno Haible  <bruno@clisp.org>
48139
48140         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48141         i486, i586, i686.
48142
48143 2008-12-26  Bruno Haible  <bruno@clisp.org>
48144
48145         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48146
48147 2008-12-26  Bruno Haible  <bruno@clisp.org>
48148
48149         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48150         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48151         not __STDC_CONSTANT_MACROS.
48152         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48153
48154 2008-12-25  Bruno Haible  <bruno@clisp.org>
48155
48156         Add support for universal builds to vasnprintf.
48157         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48158         universal builds, guess no.
48159         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48160         * modules/vasprintf-posix (Depends-on): Likewise.
48161         * modules/fprintf-posix (Depends-on): Likewise.
48162         * modules/vfprintf-posix (Depends-on): Likewise.
48163         * modules/snprintf-posix (Depends-on): Likewise.
48164         * modules/vsnprintf-posix (Depends-on): Likewise.
48165         * modules/sprintf-posix (Depends-on): Likewise.
48166         * modules/vsprintf-posix (Depends-on): Likewise.
48167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48174
48175         Add support for universal builds to <inttypes.h>.
48176         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48177         _SCNu64_PREFIX): In Apple
48178         universal builds, define directly, using _LP64.
48179         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48180         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48181         * modules/inttypes (Depends-on): Add multiarch.
48182         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48183
48184         Add support for universal builds to <stdint.h>.
48185         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48186         universal builds, define directly, using _LP64.
48187         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48188         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48189         and size_t.
48190         * modules/stdint (Depends-on): Add multiarch.
48191         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48192
48193         New module 'multiarch'.
48194         * modules/multiarch: New file.
48195         * m4/multiarch.m4: New file.
48196
48197 2008-12-25  Bruno Haible  <bruno@clisp.org>
48198
48199         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48200
48201 2008-12-25  Bruno Haible  <bruno@clisp.org>
48202
48203         * modules/btowc (License): Relicense under LGPLv2+.
48204         * modules/mbsinit (License): Likewise.
48205         * modules/mbrtowc (License): Likewise.
48206         * modules/wcrtomb (License): Likewise.
48207         * modules/streq (License): Likewise.
48208         Reported by David Lutterkort <lutter@redhat.com>.
48209
48210 2008-12-23  Bruno Haible  <bruno@clisp.org>
48211
48212         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48213
48214 2008-12-23  Bruno Haible  <bruno@clisp.org>
48215
48216         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48218         GETADDRINFO_LIB, not in LIBS.
48219         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48220         * modules/canon-host (Link): Likewise.
48221         * NEWS: Mention the change.
48222         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48223         GETADDRINFO_LIB.
48224
48225 2008-12-22  Bruno Haible  <bruno@clisp.org>
48226
48227         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48228         * doc/posix-functions/iswalpha_l.texi: Likewise.
48229         * doc/posix-functions/iswblank_l.texi: Likewise.
48230         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48231         * doc/posix-functions/iswctype_l.texi: Likewise.
48232         * doc/posix-functions/iswdigit_l.texi: Likewise.
48233         * doc/posix-functions/iswgraph_l.texi: Likewise.
48234         * doc/posix-functions/iswlower_l.texi: Likewise.
48235         * doc/posix-functions/iswprint_l.texi: Likewise.
48236         * doc/posix-functions/iswpunct_l.texi: Likewise.
48237         * doc/posix-functions/iswspace_l.texi: Likewise.
48238         * doc/posix-functions/iswupper_l.texi: Likewise.
48239         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48240         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48241         * doc/posix-functions/open_wmemstream.texi: Likewise.
48242         * doc/posix-functions/swscanf.texi: Likewise.
48243         * doc/posix-functions/towctrans_l.texi: Likewise.
48244         * doc/posix-functions/towlower.texi: Likewise.
48245         * doc/posix-functions/towlower_l.texi: Likewise.
48246         * doc/posix-functions/towupper.texi: Likewise.
48247         * doc/posix-functions/towupper_l.texi: Likewise.
48248         * doc/posix-functions/vfwprintf.texi: Likewise.
48249         * doc/posix-functions/vfwscanf.texi: Likewise.
48250         * doc/posix-functions/vswscanf.texi: Likewise.
48251         * doc/posix-functions/vwprintf.texi: Likewise.
48252         * doc/posix-functions/vwscanf.texi: Likewise.
48253         * doc/posix-functions/wcpcpy.texi: Likewise.
48254         * doc/posix-functions/wcpncpy.texi: Likewise.
48255         * doc/posix-functions/wcscasecmp.texi: Likewise.
48256         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48257         * doc/posix-functions/wcscoll_l.texi: Likewise.
48258         * doc/posix-functions/wcsdup.texi: Likewise.
48259         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48260         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48261         * doc/posix-functions/wcsnlen.texi: Likewise.
48262         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48263         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48264         * doc/posix-functions/wctrans_l.texi: Likewise.
48265         * doc/posix-functions/wctype_l.texi: Likewise.
48266         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48267         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48268         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48269         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48270         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48271         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48272         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48273         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48274         * doc/glibc-functions/wcschrnul.texi: Likewise.
48275         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48276         * doc/glibc-functions/wcstod_l.texi: Likewise.
48277         * doc/glibc-functions/wcstof_l.texi: Likewise.
48278         * doc/glibc-functions/wcstol_l.texi: Likewise.
48279         * doc/glibc-functions/wcstold_l.texi: Likewise.
48280         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48281         * doc/glibc-functions/wcstoq.texi: Likewise.
48282         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48283         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48284         * doc/glibc-functions/wcstouq.texi: Likewise.
48285         * doc/glibc-functions/wmempcpy.texi: Likewise.
48286
48287 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48288             Eric Blake  <ebb9@byu.net>
48289             Paolo Bonzini  <bonzini@gnu.org>
48290             Bruno Haible  <bruno@clisp.org>
48291
48292         Make c-stack work on Haiku.
48293         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48294         (c_stack_action): Use SA_ONSTACK flag.
48295
48296 2008-12-22  Bruno Haible  <bruno@clisp.org>
48297
48298         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48299
48300 2008-12-22  Bruno Haible  <bruno@clisp.org>
48301
48302         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48303         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48304         being overridden.
48305         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48306         New macros.
48307         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48309         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48310         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48311
48312 2008-12-22  Bruno Haible  <bruno@clisp.org>
48313
48314         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48315         from test code.
48316
48317 2008-12-22  Eric Blake  <ebb9@byu.net>
48318
48319         Avoid gcc warnings on cygwin.
48320         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48321         Avoid unused variable.
48322         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48323         Likewise.
48324
48325 2008-12-22  Bruno Haible  <bruno@clisp.org>
48326
48327         Remove HAVE_MBRTOWC conditionals.
48328         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48329         (mbscasecmp): Assume mbrtowc function.
48330         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48331         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48332         * lib/mbschr.c: Include mbuiter.h unconditionally.
48333         (mbschr): Assume mbrtowc function.
48334         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48335         (mbscspn): Assume mbrtowc function.
48336         * lib/mbslen.c: Include mbuiter.h unconditionally.
48337         (mbslen): Assume mbrtowc function.
48338         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48339         (mbsncasecmp): Assume mbrtowc function.
48340         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48341         (mbsnlen): Assume mbrtowc function.
48342         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48343         (mbspbrk): Assume mbrtowc function.
48344         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48345         (mbspcasecmp): Assume mbrtowc function.
48346         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48347         (mbsrchr): Assume mbrtowc function.
48348         * lib/mbssep.c: Include mbuiter.h unconditionally.
48349         (mbssep): Assume mbrtowc function.
48350         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48351         (mbsspn): Assume mbrtowc function.
48352         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48353         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48354         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48355         (mbstok_r): Assume mbrtowc function.
48356         * lib/propername.c: Include mbuiter.h unconditionally.
48357         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48358         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48359         (trim2): Assume mbrtowc function.
48360         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48361         (mbsnwidth): Assume mbrtowc function.
48362         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48363         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48364         fallback definitions.
48365         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48366
48367 2008-12-22  Bruno Haible  <bruno@clisp.org>
48368
48369         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48370
48371 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48372
48373         * modules/regex: Request emulations for the mb*/wc* functions we need.
48374         * m4/regex.m4: Don't look for those functions here.
48375         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48376
48377 2008-12-22  Bruno Haible  <bruno@clisp.org>
48378
48379         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48380
48381 2008-12-21  Bruno Haible  <bruno@clisp.org>
48382
48383         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48384         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48385         (Include): Remove conditionalization.
48386         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48387         (Include): Remove conditionalization.
48388         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48389         (Include): Remove conditionalization.
48390         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48391         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48392         * NEWS: Mention the change.
48393         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48394         via Sergey Poznyakoff <gray@gnu.org.ua>.
48395
48396 2008-12-21  Bruno Haible  <bruno@clisp.org>
48397
48398         * MODULES.html.sh (Extended multibyte and wide character utilities
48399         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48400         wcrtomb, wcsrtombs.
48401         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48402         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48403         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48404         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48405
48406 2008-12-21  Bruno Haible  <bruno@clisp.org>
48407
48408         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48409
48410 2008-12-21  Bruno Haible  <bruno@clisp.org>
48411
48412         * modules/wcsnrtombs-tests: New file.
48413         * tests/test-wcsnrtombs1.sh: New file.
48414         * tests/test-wcsnrtombs2.sh: New file.
48415         * tests/test-wcsnrtombs3.sh: New file.
48416         * tests/test-wcsnrtombs4.sh: New file.
48417         * tests/test-wcsnrtombs.c: New file.
48418
48419         New module 'wcsnrtombs'.
48420         * lib/wchar.in.h (wcsnrtombs): New declaration.
48421         * lib/wcsnrtombs.c: New file.
48422         * lib/wcsrtombs-state.c: New file.
48423         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48424         (internal_state): Remove variable.
48425         * m4/wcsnrtombs.m4: New file.
48426         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48427         compilation units.
48428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48429         HAVE_WCSNRTOMBS.
48430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48431         HAVE_WCSNRTOMBS.
48432         * modules/wcsnrtombs: New file.
48433         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48434         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48435
48436 2008-12-21  Bruno Haible  <bruno@clisp.org>
48437
48438         * modules/wcsrtombs-tests: New file.
48439         * tests/test-wcsrtombs1.sh: New file.
48440         * tests/test-wcsrtombs2.sh: New file.
48441         * tests/test-wcsrtombs3.sh: New file.
48442         * tests/test-wcsrtombs4.sh: New file.
48443         * tests/test-wcsrtombs.c: New file.
48444
48445         New module 'wcsrtombs'.
48446         * lib/wchar.in.h (wcsrtombs): New declaration.
48447         * lib/wcsrtombs.c: New file.
48448         * m4/wcsrtombs.m4: New file.
48449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48450         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48452         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48453         * modules/wcsrtombs: New file.
48454         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48455         bugs.
48456
48457 2008-12-21  Bruno Haible  <bruno@clisp.org>
48458
48459         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48460         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48462         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48463         if not correct.
48464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48465         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48466         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48467         m4/locale-zh.m4, m4/codeset.m4.
48468         * doc/posix-functions/wcrtomb.texi: Document the bug.
48469
48470 2008-12-21  Bruno Haible  <bruno@clisp.org>
48471
48472         Work around a btowc() bug on IRIX 6.5.
48473         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48474         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48475         REPLACE_WTOBC if not.
48476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48477         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48478         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48479
48480 2008-12-21  Bruno Haible  <bruno@clisp.org>
48481
48482         * modules/wcrtomb-tests: New file.
48483         * tests/test-wcrtomb.sh: New file.
48484         * tests/test-wcrtomb.c: New file.
48485
48486         New module 'wcrtomb'.
48487         * lib/wchar.in.h (wcrtomb): New declaration.
48488         * lib/wcrtomb.c: New file.
48489         * m4/wcrtomb.m4: New file.
48490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48491         HAVE_WCRTOMB.
48492         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48493         HAVE_WCRTOMB.
48494         * modules/wcrtomb: New file.
48495         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48496
48497 2008-12-21  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48500         * modules/mbsrtowcs (Files): Likewise.
48501         * modules/wctob (Files): Likewise.
48502         * modules/c-strcase-tests (Files): Likewise.
48503         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48504         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48505         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48506         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48507         * modules/vasnprintf-posix-tests (Files): Likewise.
48508
48509 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48510
48511         gitlog-to-changelog: pass all command-line arguments to git-log
48512         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48513         it is sometimes convenient to filter the commits in various ways.
48514         gitlog-to-changelog only allows --since to specify a start date,
48515         but git-log itself supports many other filtering mechanisms.
48516         At the moment, I want to filter by branch name.  Rather than
48517         adding a --branch option to gitlog-to-changelog, it seems more
48518         flexible to simply pass all options directly to git-log and let
48519         git do the work.  Notice that this effectively makes --since a
48520         redundant option for gitlog-to-changelog, but removing it would
48521         require current usage to change since calls would then require
48522         an additional '--'.
48523
48524 2008-12-21  Bruno Haible  <bruno@clisp.org>
48525
48526         * modules/mbsnrtowcs-tests: New file.
48527         * tests/test-mbsnrtowcs1.sh: New file.
48528         * tests/test-mbsnrtowcs2.sh: New file.
48529         * tests/test-mbsnrtowcs3.sh: New file.
48530         * tests/test-mbsnrtowcs4.sh: New file.
48531         * tests/test-mbsnrtowcs.c: New file.
48532
48533         New module 'mbsnrtowcs'.
48534         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48535         * lib/mbsnrtowcs.c: New file.
48536         * lib/mbsrtowcs-state.c: New file.
48537         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48538         (internal_state): Remove variable.
48539         * m4/mbsnrtowcs.m4: New file.
48540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48541         compilation units.
48542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48543         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48544         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48545         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48546         * modules/mbsnrtowcs: New file.
48547         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48548         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48549         portability problem.
48550
48551 2008-12-21  Bruno Haible  <bruno@clisp.org>
48552
48553         Work around mbsrtowcs bug.
48554         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48555         (gl_FUNC_MBSRTOWCS): Invoke it.
48556         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48557         m4/locale-zh.m4.
48558         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48559
48560 2008-12-21  Bruno Haible  <bruno@clisp.org>
48561
48562         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48563
48564 2008-12-21  Bruno Haible  <bruno@clisp.org>
48565
48566         Update doc for AIX.
48567         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48568         16-bit wchar_t type.
48569         * doc/posix-functions/btowc.texi: Likewise.
48570         * doc/posix-functions/fgetwc.texi: Likewise.
48571         * doc/posix-functions/fgetws.texi: Likewise.
48572         * doc/posix-functions/fputwc.texi: Likewise.
48573         * doc/posix-functions/fputws.texi: Likewise.
48574         * doc/posix-functions/fwide.texi: Likewise.
48575         * doc/posix-functions/fwprintf.texi: Likewise.
48576         * doc/posix-functions/fwscanf.texi: Likewise.
48577         * doc/posix-functions/getwchar.texi: Likewise.
48578         * doc/posix-functions/getwc.texi: Likewise.
48579         * doc/posix-functions/iswalnum.texi: Likewise.
48580         * doc/posix-functions/iswalpha.texi: Likewise.
48581         * doc/posix-functions/iswblank.texi: Likewise.
48582         * doc/posix-functions/iswcntrl.texi: Likewise.
48583         * doc/posix-functions/iswctype.texi: Likewise.
48584         * doc/posix-functions/iswdigit.texi: Likewise.
48585         * doc/posix-functions/iswgraph.texi: Likewise.
48586         * doc/posix-functions/iswlower.texi: Likewise.
48587         * doc/posix-functions/iswprint.texi: Likewise.
48588         * doc/posix-functions/iswpunct.texi: Likewise.
48589         * doc/posix-functions/iswspace.texi: Likewise.
48590         * doc/posix-functions/iswupper.texi: Likewise.
48591         * doc/posix-functions/iswxdigit.texi: Likewise.
48592         * doc/posix-functions/mbrtowc.texi: Likewise.
48593         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48594         * doc/posix-functions/mbstowcs.texi: Likewise.
48595         * doc/posix-functions/mbtowc.texi: Likewise.
48596         * doc/posix-functions/putwchar.texi: Likewise.
48597         * doc/posix-functions/putwc.texi: Likewise.
48598         * doc/posix-functions/swprintf.texi: Likewise.
48599         * doc/posix-functions/tolower.texi: Likewise.
48600         * doc/posix-functions/toupper.texi: Likewise.
48601         * doc/posix-functions/towctrans.texi: Likewise.
48602         * doc/posix-functions/ungetwc.texi: Likewise.
48603         * doc/posix-functions/vswprintf.texi: Likewise.
48604         * doc/posix-functions/wcrtomb.texi: Likewise.
48605         * doc/posix-functions/wcscat.texi: Likewise.
48606         * doc/posix-functions/wcschr.texi: Likewise.
48607         * doc/posix-functions/wcscmp.texi: Likewise.
48608         * doc/posix-functions/wcscoll.texi: Likewise.
48609         * doc/posix-functions/wcscpy.texi: Likewise.
48610         * doc/posix-functions/wcscspn.texi: Likewise.
48611         * doc/posix-functions/wcsftime.texi: Likewise.
48612         * doc/posix-functions/wcslen.texi: Likewise.
48613         * doc/posix-functions/wcsncat.texi: Likewise.
48614         * doc/posix-functions/wcsncmp.texi: Likewise.
48615         * doc/posix-functions/wcsncpy.texi: Likewise.
48616         * doc/posix-functions/wcspbrk.texi: Likewise.
48617         * doc/posix-functions/wcsrchr.texi: Likewise.
48618         * doc/posix-functions/wcsrtombs.texi: Likewise.
48619         * doc/posix-functions/wcsspn.texi: Likewise.
48620         * doc/posix-functions/wcsstr.texi: Likewise.
48621         * doc/posix-functions/wcstod.texi: Likewise.
48622         * doc/posix-functions/wcstof.texi: Likewise.
48623         * doc/posix-functions/wcstoimax.texi: Likewise.
48624         * doc/posix-functions/wcstok.texi: Likewise.
48625         * doc/posix-functions/wcstold.texi: Likewise.
48626         * doc/posix-functions/wcstoll.texi: Likewise.
48627         * doc/posix-functions/wcstol.texi: Likewise.
48628         * doc/posix-functions/wcstombs.texi: Likewise.
48629         * doc/posix-functions/wcstoull.texi: Likewise.
48630         * doc/posix-functions/wcstoul.texi: Likewise.
48631         * doc/posix-functions/wcstoumax.texi: Likewise.
48632         * doc/posix-functions/wcswidth.texi: Likewise.
48633         * doc/posix-functions/wcsxfrm.texi: Likewise.
48634         * doc/posix-functions/wctob.texi: Likewise.
48635         * doc/posix-functions/wctomb.texi: Likewise.
48636         * doc/posix-functions/wctrans.texi: Likewise.
48637         * doc/posix-functions/wctype.texi: Likewise.
48638         * doc/posix-functions/wcwidth.texi: Likewise.
48639         * doc/posix-functions/wmemchr.texi: Likewise.
48640         * doc/posix-functions/wmemcmp.texi: Likewise.
48641         * doc/posix-functions/wmemcpy.texi: Likewise.
48642         * doc/posix-functions/wmemmove.texi: Likewise.
48643         * doc/posix-functions/wmemset.texi: Likewise.
48644         * doc/posix-functions/wprintf.texi: Likewise.
48645         * doc/posix-functions/wscanf.texi: Likewise.
48646
48647 2008-12-21  Bruno Haible  <bruno@clisp.org>
48648
48649         Update doc for HP-UX 11.11.
48650         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48651         in HP-UX version 11.00, not in all versions of HP-UX 11.
48652         * doc/posix-functions/fwide.texi: Likewise.
48653         * doc/posix-functions/fwprintf.texi: Likewise.
48654         * doc/posix-functions/fwscanf.texi: Likewise.
48655         * doc/posix-functions/inet_ntop.texi: Likewise.
48656         * doc/posix-functions/inet_pton.texi: Likewise.
48657         * doc/posix-functions/mbrlen.texi: Likewise.
48658         * doc/posix-functions/mbrtowc.texi: Likewise.
48659         * doc/posix-functions/mbsinit.texi: Likewise.
48660         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48661         * doc/posix-functions/swprintf.texi: Likewise.
48662         * doc/posix-functions/swscanf.texi: Likewise.
48663         * doc/posix-functions/towctrans.texi: Likewise.
48664         * doc/posix-functions/vfwprintf.texi: Likewise.
48665         * doc/posix-functions/vswprintf.texi: Likewise.
48666         * doc/posix-functions/vwprintf.texi: Likewise.
48667         * doc/posix-functions/wcrtomb.texi: Likewise.
48668         * doc/posix-functions/wcsrtombs.texi: Likewise.
48669         * doc/posix-functions/wcsstr.texi: Likewise.
48670         * doc/posix-functions/wctob.texi: Likewise.
48671         * doc/posix-functions/wctrans.texi: Likewise.
48672         * doc/posix-functions/wmemchr.texi: Likewise.
48673         * doc/posix-functions/wmemcmp.texi: Likewise.
48674         * doc/posix-functions/wmemcpy.texi: Likewise.
48675         * doc/posix-functions/wmemmove.texi: Likewise.
48676         * doc/posix-functions/wmemset.texi: Likewise.
48677         * doc/posix-functions/wprintf.texi: Likewise.
48678         * doc/posix-functions/wscanf.texi: Likewise.
48679
48680 2008-12-21  Bruno Haible  <bruno@clisp.org>
48681
48682         Work around a portability problem.
48683         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48684         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48685
48686 2008-12-20  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48690         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48692         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48693
48694         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48695         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48696         set.
48697         (GNULIB_defined_mbstate_t): New macro.
48698         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48699         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48700         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48701         reuses the system's mbrtowc function but works around the bugs.
48702         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48703         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48704         macros.
48705         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48706         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48707         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48708         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48709         REPLACE_MBSINIT if mbsinit needs to be overridden.
48710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48711         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48712         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48713         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48714         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48715         m4/locale-zh.m4.
48716         (Depends): Add mbsinit.
48717         * modules/mbsinit (Depends): Add mbrtowc.
48718         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48719
48720 2008-12-20  Bruno Haible  <bruno@clisp.org>
48721
48722         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48723         so that there are no conversion errors on AIX.
48724         * tests/test-mbsrtowcs.c (main): LIkewise.
48725
48726 2008-12-20  Bruno Haible  <bruno@clisp.org>
48727
48728         Work around wctob bug on Solaris <= 9.
48729         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48730         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48732         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48733         * modules/wctob (Files): Add m4/locale-fr.m4.
48734         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48735
48736 2008-12-20  Bruno Haible  <bruno@clisp.org>
48737
48738         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48739         /dev/null.
48740         * tests/test-select-in.sh: Likewise.
48741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48742
48743 2008-12-20  Bruno Haible  <bruno@clisp.org>
48744
48745         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48746         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48747         Cygwin 1.5.x.
48748
48749 2008-12-20  Bruno Haible  <bruno@clisp.org>
48750
48751         Ensure mbstate_t is defined on HP-UX 11.11.
48752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48753         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48754         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48755         AC_USE_SYSTEM_EXTENSIONS.
48756         * modules/fnmatch (Depends-on): Add extensions.
48757         * modules/mbrlen (Depends-on): Likewise.
48758         * modules/mbrtowc (Depends-on): Likewise.
48759         * modules/mbsinit (Depends-on): Likewise.
48760         * modules/mbsrtowcs (Depends-on): Likewise.
48761         * modules/mbswidth (Depends-on): Likewise.
48762         * modules/quotearg (Depends-on): Likewise.
48763         * modules/strftime (Depends-on): Likewise.
48764
48765 2008-12-20  Bruno Haible  <bruno@clisp.org>
48766
48767         Ensure wctob is declared on IRIX 6.5.
48768         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48769         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48770         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48772         of HAVE_WCTOB.
48773         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48774         HAVE_WCTOB.
48775         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48776
48777 2008-12-19  Bruno Haible  <bruno@clisp.org>
48778
48779         * modules/mbsrtowcs-tests: New file.
48780         * tests/test-mbsrtowcs1.sh: New file.
48781         * tests/test-mbsrtowcs2.sh: New file.
48782         * tests/test-mbsrtowcs3.sh: New file.
48783         * tests/test-mbsrtowcs4.sh: New file.
48784         * tests/test-mbsrtowcs.c: New file.
48785
48786         New module 'mbsrtowcs'.
48787         * lib/wchar.in.h (mbsrtowcs): New declaration.
48788         * lib/mbsrtowcs.c: New file.
48789         * m4/mbsrtowcs.m4: New file.
48790         * modules/mbsrtowcs: New file.
48791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48792         HAVE_MBSRTOWCS.
48793         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48794         HAVE_MBSRTOWCS.
48795         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48796
48797 2008-12-19  Bruno Haible  <bruno@clisp.org>
48798
48799         New module 'mbrlen'.
48800         * lib/wchar.in.h (mbrlen): New declaration.
48801         * lib/mbrlen.c: New file.
48802         * m4/mbrlen.m4: New file.
48803         * modules/mbrlen: New file.
48804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48805         HAVE_MBRLEN.
48806         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48807         HAVE_MBRLEN.
48808         * doc/posix-functions/mbrlen.texi: Document the new module.
48809
48810 2008-12-19  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48813         * modules/mbrtowc (Depends-on): Add verify.
48814         Suggested by Paul Eggert.
48815
48816 2008-12-18  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/mbsinit-tests: New file.
48819         * tests/test-mbsinit.sh: New file.
48820         * tests/test-mbsinit.c: New file.
48821
48822 2008-12-18  Bruno Haible  <bruno@clisp.org>
48823
48824         * modules/mbrtowc-tests: New file.
48825         * tests/test-mbrtowc1.sh: New file.
48826         * tests/test-mbrtowc2.sh: New file.
48827         * tests/test-mbrtowc3.sh: New file.
48828         * tests/test-mbrtowc4.sh: New file.
48829         * tests/test-mbrtowc.c: New file.
48830
48831         New module 'mbrtowc'.
48832         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48833         mbsinit and mbrtowc.
48834         (mbrtowc): New declaration.
48835         * lib/mbrtowc.c: New file.
48836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48837         * modules/mbrtowc: New file.
48838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48839         HAVE_MBRTOWC.
48840         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48841         HAVE_MBRTOWC.
48842         * doc/posix-functions/mbrtowc.texi: Document the new module.
48843
48844 2008-12-18  Bruno Haible  <bruno@clisp.org>
48845
48846         New module 'wctob'.
48847         * lib/wchar.in.h (wctob): New declaration.
48848         * lib/wctob.c: New file.
48849         * m4/wctob.m4: New file.
48850         * modules/wctob: New file.
48851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48852         HAVE_WCTOB.
48853         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48854         * doc/posix-functions/wctob.texi: Document the new module.
48855
48856 2008-12-18  Bruno Haible  <bruno@clisp.org>
48857
48858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48859         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48860
48861 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48862
48863         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48864         G. Christensen" <tgc@jupiterrise.com>.
48865
48866         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48867         G. Christensen" <tgc@jupiterrise.com>.
48868
48869         * lib/flock.c: Need to include string.h.  Reported by "Tom
48870         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48871         <ebb9@byu.net>.
48872
48873 2008-12-18  Bruno Haible  <bruno@clisp.org>
48874
48875         * m4/locale-ja.m4: New file, from GNU gettext.
48876
48877 2008-12-17  Bruno Haible  <bruno@clisp.org>
48878
48879         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48880         Suggested by Eric Blake.
48881
48882 2008-12-17  Bruno Haible  <bruno@clisp.org>
48883
48884         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48885
48886 2008-12-17  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48889         * modules/mbsinit (Depends-on): Add verify.
48890         Suggested by Paul Eggert.
48891
48892 2008-12-17  Bruno Haible  <bruno@clisp.org>
48893
48894         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48895         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48896         gl_FUNC_MBRTOWC.
48897         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48898         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48899         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48900         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48901         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48902         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48903         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48904         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48905         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48906         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48907         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48908         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48909         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48910         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48911         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48912         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48913         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48914         * modules/trim (configure.ac): Likewise.
48915
48916 2008-12-17  Bruno Haible  <bruno@clisp.org>
48917
48918         * modules/btowc-tests: New file.
48919         * tests/test-btowc1.sh: New file.
48920         * tests/test-btowc2.sh: New file.
48921         * tests/test-btowc.c: New file.
48922
48923         New module 'btowc'.
48924         * lib/wchar.in.h (btowc): New declaration.
48925         * lib/btowc.c: New file.
48926         * m4/btowc.m4: New file.
48927         * modules/btowc: New file.
48928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48929         HAVE_BTOWC.
48930         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48931         * doc/posix-functions/btowc.texi: Document the new module.
48932
48933 2008-12-17  Bruno Haible  <bruno@clisp.org>
48934
48935         New module 'mbsinit'.
48936         * lib/wchar.in.h (mbsinit): New declaration.
48937         * lib/mbsinit.c: New file.
48938         * m4/mbsinit.m4: New file.
48939         * modules/mbsinit: New file.
48940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48941         HAVE_MBSINIT.
48942         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48943         HAVE_MBSINIT.
48944         * doc/posix-functions/mbsinit.texi: Document the new module.
48945
48946 2008-12-16  Bruno Haible  <bruno@clisp.org>
48947
48948         * lib/unistd.in.h: Add comment.
48949         * tests/test-environ.c: Don't include <stdlib.h>.
48950
48951 2008-12-16  Bruno Haible  <bruno@clisp.org>
48952
48953         * lib/parse-duration.h (parse_duration): Document return value
48954         convention.
48955         * lib/parse-duration.c: Include specification header first. Add
48956         comments.
48957         (_): Remove macro.
48958         (parse_year_month_day, parse_hour_minute_second): Move side effects
48959         outside of strchr call.
48960         (parse_non_iso8601): Move side effects outside of isspace call.
48961         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48962         call.
48963
48964 2008-12-16  Bruno Haible  <bruno@clisp.org>
48965
48966         * tests/test-parse-duration.sh: Produce no output when the test
48967         succeeds.
48968
48969 2008-12-16  Bruno Haible  <bruno@clisp.org>
48970
48971         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48972         expressions.
48973
48974 2008-12-15  Bruno Haible  <bruno@clisp.org>
48975
48976         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48977         * doc/glibc-functions/flistxattr.texi: Likewise.
48978         * doc/glibc-functions/fopencookie.texi: Likewise.
48979         * doc/glibc-functions/fremovexattr.texi: Likewise.
48980         * doc/glibc-functions/fsetxattr.texi: Likewise.
48981         * doc/glibc-functions/getxattr.texi: Likewise.
48982         * doc/glibc-functions/lgetxattr.texi: Likewise.
48983         * doc/glibc-functions/listxattr.texi: Likewise.
48984         * doc/glibc-functions/llistxattr.texi: Likewise.
48985         * doc/glibc-functions/lremovexattr.texi: Likewise.
48986         * doc/glibc-functions/lsetxattr.texi: Likewise.
48987         * doc/glibc-functions/removexattr.texi: Likewise.
48988         * doc/glibc-functions/setxattr.texi: Likewise.
48989         * doc/posix-functions/open_memstream.texi: Likewise.
48990
48991 2008-12-15  Eric Blake  <ebb9@byu.net>
48992
48993         Update doc for cygwin 1.7.
48994         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48995         functions.
48996         * doc/posix-functions/fchmodat.texi: Likewise.
48997         * doc/posix-functions/fchownat.texi: Likewise.
48998         * doc/posix-functions/fdopendir.texi: Likewise.
48999         * doc/posix-functions/fmemopen.texi: Likewise.
49000         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49001         * doc/posix-functions/fstatat.texi: Likewise.
49002         * doc/posix-functions/futimens.texi: Likewise.
49003         * doc/posix-functions/gai_strerror.texi: Likewise.
49004         * doc/posix-functions/getaddrinfo.texi: Likewise.
49005         * doc/posix-functions/getnameinfo.texi: Likewise.
49006         * doc/posix-functions/if_freenameindex.texi: Likewise.
49007         * doc/posix-functions/if_indextoname.texi: Likewise.
49008         * doc/posix-functions/if_nameindex.texi: Likewise.
49009         * doc/posix-functions/if_nametoindex.texi: Likewise.
49010         * doc/posix-functions/insque.texi: Likewise.
49011         * doc/posix-functions/linkat.texi: Likewise.
49012         * doc/posix-functions/llrint.texi: Likewise.
49013         * doc/posix-functions/llrintf.texi: Likewise.
49014         * doc/posix-functions/llrintl.texi: Likewise.
49015         * doc/posix-functions/lockf.texi: Likewise.
49016         * doc/posix-functions/lrintl.texi: Likewise.
49017         * doc/posix-functions/mkdirat.texi: Likewise.
49018         * doc/posix-functions/mkfifoat.texi: Likewise.
49019         * doc/posix-functions/mknodat.texi: Likewise.
49020         * doc/posix-functions/mq_close.texi: Likewise.
49021         * doc/posix-functions/mq_getattr.texi: Likewise.
49022         * doc/posix-functions/mq_notify.texi: Likewise.
49023         * doc/posix-functions/mq_open.texi: Likewise.
49024         * doc/posix-functions/mq_receive.texi: Likewise.
49025         * doc/posix-functions/mq_send.texi: Likewise.
49026         * doc/posix-functions/mq_setattr.texi: Likewise.
49027         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49028         * doc/posix-functions/mq_timedsend.texi: Likewise.
49029         * doc/posix-functions/mq_unlink.texi: Likewise.
49030         * doc/posix-functions/open_memstream.texi: Likewise.
49031         * doc/posix-functions/openat.texi: Likewise.
49032         * doc/posix-functions/posix_fadvise.texi: Likewise.
49033         * doc/posix-functions/posix_fallocate.texi: Likewise.
49034         * doc/posix-functions/posix_madvise.texi: Likewise.
49035         * doc/posix-functions/posix_memalign.texi: Likewise.
49036         * doc/posix-functions/posix_openpt.texi: Likewise.
49037         * doc/posix-functions/readlinkat.texi: Likewise.
49038         * doc/posix-functions/remque.texi: Likewise.
49039         * doc/posix-functions/renameat.texi: Likewise.
49040         * doc/posix-functions/rintl.texi: Likewise.
49041         * doc/posix-functions/sem_unlink.texi: Likewise.
49042         * doc/posix-functions/shm_open.texi: Likewise.
49043         * doc/posix-functions/shm_unlink.texi: Likewise.
49044         * doc/posix-functions/signgam.texi: Likewise.
49045         * doc/posix-functions/sigset.texi: Likewise.
49046         * doc/posix-functions/stpcpy.texi: Likewise.
49047         * doc/posix-functions/stpncpy.texi: Likewise.
49048         * doc/posix-functions/strerror.texi: Likewise.
49049         * doc/posix-functions/strtod.texi: Likewise.
49050         * doc/posix-functions/symlinkat.texi: Likewise.
49051         * doc/posix-functions/unlinkat.texi: Likewise.
49052         * doc/posix-functions/utimensat.texi: Likewise.
49053         * doc/glibc-functions/bindresvport.texi: Likewise.
49054         * doc/glibc-functions/dn_expand.texi: Likewise.
49055         * doc/glibc-functions/exp10.texi: Likewise.
49056         * doc/glibc-functions/exp10f.texi: Likewise.
49057         * doc/glibc-functions/fgetxattr.texi: Likewise.
49058         * doc/glibc-functions/flistxattr.texi: Likewise.
49059         * doc/glibc-functions/fopencookie.texi: Likewise.
49060         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49061         * doc/glibc-functions/fremovexattr.texi: Likewise.
49062         * doc/glibc-functions/fsetxattr.texi: Likewise.
49063         * doc/glibc-functions/getifaddrs.texi: Likewise.
49064         * doc/glibc-functions/getxattr.texi: Likewise.
49065         * doc/glibc-functions/lgetxattr.texi: Likewise.
49066         * doc/glibc-functions/listxattr.texi: Likewise.
49067         * doc/glibc-functions/llistxattr.texi: Likewise.
49068         * doc/glibc-functions/lremovexattr.texi: Likewise.
49069         * doc/glibc-functions/lsetxattr.texi: Likewise.
49070         * doc/glibc-functions/pow10.texi: Likewise.
49071         * doc/glibc-functions/pow10f.texi: Likewise.
49072         * doc/glibc-functions/rcmd_af.texi: Likewise.
49073         * doc/glibc-functions/removexattr.texi: Likewise.
49074         * doc/glibc-functions/res_init.texi: Likewise.
49075         * doc/glibc-functions/res_mkquery.texi: Likewise.
49076         * doc/glibc-functions/res_query.texi: Likewise.
49077         * doc/glibc-functions/res_querydomain.texi: Likewise.
49078         * doc/glibc-functions/res_send.texi: Likewise.
49079         * doc/glibc-functions/rresvport_af.texi: Likewise.
49080         * doc/glibc-functions/setxattr.texi: Likewise.
49081         * doc/glibc-functions/strcasestr.texi: Likewise.
49082
49083 2008-12-15  Bruno Haible  <bruno@clisp.org>
49084
49085         Fix compilation error on OSF/1 4.0.
49086         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49087         <sys/time.h>, simply delegate to the system header.
49088         Reported by Daniel Richard G. <oss@teragram.com>.
49089
49090 2008-12-15  Bruno Haible  <bruno@clisp.org>
49091
49092         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49093         * doc/posix-functions/fchmodat.texi: Likewise.
49094         * doc/posix-functions/fchownat.texi: Likewise.
49095         * doc/posix-functions/fdopendir.texi: Likewise.
49096         * doc/posix-functions/fstatat.texi: Likewise.
49097         * doc/posix-functions/mkdirat.texi: Likewise.
49098         * doc/posix-functions/unlinkat.texi: Likewise.
49099
49100 2008-12-14  Bruno Haible  <bruno@clisp.org>
49101
49102         Update doc for POSIX:2008.
49103         * doc/posix-functions/faccessat.texi: New file.
49104         * doc/posix-functions/fchmodat.texi: New file.
49105         * doc/posix-functions/fchownat.texi: New file.
49106         * doc/posix-functions/fdopendir.texi: New file.
49107         * doc/posix-functions/fstatat.texi: New file.
49108         * doc/posix-functions/futimens.texi: New file.
49109         * doc/posix-functions/linkat.texi: New file.
49110         * doc/posix-functions/mkdirat.texi: New file.
49111         * doc/posix-functions/mkfifoat.texi: New file.
49112         * doc/posix-functions/mknodat.texi: New file.
49113         * doc/posix-functions/open_wmemstream.texi: New file.
49114         * doc/posix-functions/openat.texi: New file.
49115         * doc/posix-functions/psiginfo.texi: New file.
49116         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49117         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49118         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49119         * doc/posix-functions/readlinkat.texi: New file.
49120         * doc/posix-functions/renameat.texi: New file.
49121         * doc/posix-functions/strerror_l.texi: New file.
49122         * doc/posix-functions/symlinkat.texi: New file.
49123         * doc/posix-functions/unlinkat.texi: New file.
49124         * doc/posix-functions/utimensat.texi: New file.
49125         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49126
49127 2008-12-14  Bruno Haible  <bruno@clisp.org>
49128
49129         Update doc for POSIX:2008.
49130         * doc/posix-functions/alphasort.texi: Renamed from
49131         doc/glibc-functions/alphasort.texi.
49132         * doc/posix-functions/dirfd.texi: Renamed from
49133         doc/glibc-functions/dirfd.texi.
49134         * doc/posix-functions/dprintf.texi: Renamed from
49135         doc/glibc-functions/dprintf.texi.
49136         * doc/posix-functions/duplocale.texi: Renamed from
49137         doc/glibc-functions/duplocale.texi.
49138         * doc/posix-functions/fexecve.texi: Renamed from
49139         doc/glibc-functions/fexecve.texi.
49140         * doc/posix-functions/fmemopen.texi: Renamed from
49141         doc/glibc-functions/fmemopen.texi.
49142         * doc/posix-functions/freelocale.texi: Renamed from
49143         doc/glibc-functions/freelocale.texi.
49144         * doc/posix-functions/getdate_err.texi: Renamed from
49145         doc/glibc-functions/getdate_err.texi.
49146         * doc/posix-functions/isalnum_l.texi: Renamed from
49147         doc/glibc-functions/isalnum_l.texi.
49148         * doc/posix-functions/isalpha_l.texi: Renamed from
49149         doc/glibc-functions/isalpha_l.texi.
49150         * doc/posix-functions/isblank_l.texi: Renamed from
49151         doc/glibc-functions/isblank_l.texi.
49152         * doc/posix-functions/iscntrl_l.texi: Renamed from
49153         doc/glibc-functions/iscntrl_l.texi.
49154         * doc/posix-functions/isdigit_l.texi: Renamed from
49155         doc/glibc-functions/isdigit_l.texi.
49156         * doc/posix-functions/isgraph_l.texi: Renamed from
49157         doc/glibc-functions/isgraph_l.texi.
49158         * doc/posix-functions/islower_l.texi: Renamed from
49159         doc/glibc-functions/islower_l.texi.
49160         * doc/posix-functions/isprint_l.texi: Renamed from
49161         doc/glibc-functions/isprint_l.texi.
49162         * doc/posix-functions/ispunct_l.texi: Renamed from
49163         doc/glibc-functions/ispunct_l.texi.
49164         * doc/posix-functions/isspace_l.texi: Renamed from
49165         doc/glibc-functions/isspace_l.texi.
49166         * doc/posix-functions/isupper_l.texi: Renamed from
49167         doc/glibc-functions/isupper_l.texi.
49168         * doc/posix-functions/iswalnum_l.texi: Renamed from
49169         doc/glibc-functions/iswalnum_l.texi.
49170         * doc/posix-functions/iswalpha_l.texi: Renamed from
49171         doc/glibc-functions/iswalpha_l.texi.
49172         * doc/posix-functions/iswblank_l.texi: Renamed from
49173         doc/glibc-functions/iswblank_l.texi.
49174         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49175         doc/glibc-functions/iswcntrl_l.texi.
49176         * doc/posix-functions/iswctype_l.texi: Renamed from
49177         doc/glibc-functions/iswctype_l.texi.
49178         * doc/posix-functions/iswdigit_l.texi: Renamed from
49179         doc/glibc-functions/iswdigit_l.texi.
49180         * doc/posix-functions/iswgraph_l.texi: Renamed from
49181         doc/glibc-functions/iswgraph_l.texi.
49182         * doc/posix-functions/iswlower_l.texi: Renamed from
49183         doc/glibc-functions/iswlower_l.texi.
49184         * doc/posix-functions/iswprint_l.texi: Renamed from
49185         doc/glibc-functions/iswprint_l.texi.
49186         * doc/posix-functions/iswpunct_l.texi: Renamed from
49187         doc/glibc-functions/iswpunct_l.texi.
49188         * doc/posix-functions/iswspace_l.texi: Renamed from
49189         doc/glibc-functions/iswspace_l.texi.
49190         * doc/posix-functions/iswupper_l.texi: Renamed from
49191         doc/glibc-functions/iswupper_l.texi.
49192         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49193         doc/glibc-functions/iswxdigit_l.texi.
49194         * doc/posix-functions/isxdigit_l.texi: Renamed from
49195         doc/glibc-functions/isxdigit_l.texi.
49196         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49197         doc/glibc-functions/mbsnrtowcs.texi.
49198         * doc/posix-functions/mkdtemp.texi: Renamed from
49199         doc/glibc-functions/mkdtemp.texi.
49200         * doc/posix-functions/newlocale.texi: Renamed from
49201         doc/glibc-functions/newlocale.texi.
49202         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49203         doc/glibc-functions/nl_langinfo_l.texi.
49204         * doc/posix-functions/open_memstream.texi: Renamed from
49205         doc/glibc-functions/open_memstream.texi.
49206         * doc/posix-functions/opterr.texi: Renamed from
49207         doc/glibc-functions/opterr.texi.
49208         * doc/posix-functions/optind.texi: Renamed from
49209         doc/glibc-functions/optind.texi.
49210         * doc/posix-functions/optopt.texi: Renamed from
49211         doc/glibc-functions/optopt.texi.
49212         * doc/posix-functions/psignal.texi: Renamed from
49213         doc/glibc-functions/psignal.texi.
49214         * doc/posix-functions/scandir.texi: Renamed from
49215         doc/glibc-functions/scandir.texi.
49216         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49217         doc/glibc-functions/sched_get_priority_min.texi.
49218         * doc/posix-functions/signgam.texi: Renamed from
49219         doc/glibc-functions/signgam.texi.
49220         * doc/posix-functions/stpcpy.texi: Renamed from
49221         doc/glibc-functions/stpcpy.texi.
49222         * doc/posix-functions/stpncpy.texi: Renamed from
49223         doc/glibc-functions/stpncpy.texi.
49224         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49225         doc/glibc-functions/strcasecmp_l.texi.
49226         * doc/posix-functions/strcoll_l.texi: Renamed from
49227         doc/glibc-functions/strcoll_l.texi.
49228         * doc/posix-functions/strfmon_l.texi: Renamed from
49229         doc/glibc-functions/strfmon_l.texi.
49230         * doc/posix-functions/strftime_l.texi: Renamed from
49231         doc/glibc-functions/strftime_l.texi.
49232         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49233         doc/glibc-functions/strncasecmp_l.texi.
49234         * doc/posix-functions/strndup.texi: Renamed from
49235         doc/glibc-functions/strndup.texi.
49236         * doc/posix-functions/strnlen.texi: Renamed from
49237         doc/glibc-functions/strnlen.texi.
49238         * doc/posix-functions/strsignal.texi: Renamed from
49239         doc/glibc-functions/strsignal.texi.
49240         * doc/posix-functions/strxfrm_l.texi: Renamed from
49241         doc/glibc-functions/strxfrm_l.texi.
49242         * doc/posix-functions/timer_gettime.texi: Renamed from
49243         doc/glibc-functions/timer_gettime.texi.
49244         * doc/posix-functions/tolower_l.texi: Renamed from
49245         doc/glibc-functions/tolower_l.texi.
49246         * doc/posix-functions/toupper_l.texi: Renamed from
49247         doc/glibc-functions/toupper_l.texi.
49248         * doc/posix-functions/towctrans_l.texi: Renamed from
49249         doc/glibc-functions/towctrans_l.texi.
49250         * doc/posix-functions/towlower_l.texi: Renamed from
49251         doc/glibc-functions/towlower_l.texi.
49252         * doc/posix-functions/towupper_l.texi: Renamed from
49253         doc/glibc-functions/towupper_l.texi.
49254         * doc/posix-functions/uselocale.texi: Renamed from
49255         doc/glibc-functions/uselocale.texi.
49256         * doc/posix-functions/vdprintf.texi: Renamed from
49257         doc/glibc-functions/vdprintf.texi.
49258         * doc/posix-functions/wcpcpy.texi:
49259         Renamed from doc/glibc-functions/wcpcpy.texi.
49260         * doc/posix-functions/wcpncpy.texi: Renamed from
49261         doc/glibc-functions/wcpncpy.texi.
49262         * doc/posix-functions/wcscasecmp.texi: Renamed from
49263         doc/glibc-functions/wcscasecmp.texi.
49264         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49265         doc/glibc-functions/wcscasecmp_l.texi.
49266         * doc/posix-functions/wcscoll_l.texi: Renamed from
49267         doc/glibc-functions/wcscoll_l.texi.
49268         * doc/posix-functions/wcsdup.texi: Renamed from
49269         doc/glibc-functions/wcsdup.texi.
49270         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49271         doc/glibc-functions/wcsncasecmp.texi.
49272         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49273         doc/glibc-functions/wcsncasecmp_l.texi.
49274         * doc/posix-functions/wcsnlen.texi: Renamed from
49275         doc/glibc-functions/wcsnlen.texi.
49276         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49277         doc/glibc-functions/wcsnrtombs.texi.
49278         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49279         doc/glibc-functions/wcsxfrm_l.texi.
49280         * doc/posix-functions/wctrans_l.texi: Renamed from
49281         doc/glibc-functions/wctrans_l.texi.
49282         * doc/posix-functions/wctype_l.texi: Renamed from
49283         doc/glibc-functions/wctype_l.texi.
49284         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49285         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49286         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49287         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49288         these subsections.
49289         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49290         Remove sections.
49291
49292 2008-12-14  Bruno Haible  <bruno@clisp.org>
49293
49294         Update doc for POSIX:2008.
49295         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49296
49297 2008-12-14  Bruno Haible  <bruno@clisp.org>
49298
49299         Update doc for POSIX:2008.
49300         * doc/pastposix-functions/bcmp.texi: Renamed from
49301         doc/posix-functions/bcmp.texi.
49302         * doc/pastposix-functions/bcopy.texi: Renamed from
49303         doc/posix-functions/bcopy.texi.
49304         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49305         doc/posix-functions/bsd_signal.texi.
49306         * doc/pastposix-functions/bzero.texi: Renamed from
49307         doc/posix-functions/bzero.texi.
49308         * doc/pastposix-functions/ecvt.texi: Renamed from
49309         doc/posix-functions/ecvt.texi.
49310         * doc/pastposix-functions/fcvt.texi: Renamed from
49311         doc/posix-functions/fcvt.texi.
49312         * doc/pastposix-functions/ftime.texi: Renamed from
49313         doc/posix-functions/ftime.texi.
49314         * doc/pastposix-functions/gcvt.texi: Renamed from
49315         doc/posix-functions/gcvt.texi.
49316         * doc/pastposix-functions/getcontext.texi: Renamed from
49317         doc/posix-functions/getcontext.texi.
49318         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49319         doc/posix-functions/gethostbyaddr.texi.
49320         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49321         doc/posix-functions/gethostbyname.texi.
49322         * doc/pastposix-functions/getwd.texi: Renamed from
49323         doc/posix-functions/getwd.texi.
49324         * doc/pastposix-functions/h_errno.texi: Renamed from
49325         doc/posix-functions/h_errno.texi.
49326         * doc/pastposix-functions/index.texi: Renamed from
49327         doc/posix-functions/index.texi.
49328         * doc/pastposix-functions/makecontext.texi: Renamed from
49329         doc/posix-functions/makecontext.texi.
49330         * doc/pastposix-functions/mktemp.texi: Renamed from
49331         doc/posix-functions/mktemp.texi.
49332         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49333         doc/posix-functions/pthread_attr_getstackaddr.texi.
49334         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49335         doc/posix-functions/pthread_attr_setstackaddr.texi.
49336         * doc/pastposix-functions/rindex.texi: Renamed from
49337         doc/posix-functions/rindex.texi.
49338         * doc/pastposix-functions/scalb.texi: Renamed from
49339         doc/posix-functions/scalb.texi.
49340         * doc/pastposix-functions/setcontext.texi: Renamed from
49341         doc/posix-functions/setcontext.texi.
49342         * doc/pastposix-functions/swapcontext.texi: Renamed from
49343         doc/posix-functions/swapcontext.texi.
49344         * doc/pastposix-functions/ualarm.texi: Renamed from
49345         doc/posix-functions/ualarm.texi.
49346         * doc/pastposix-functions/usleep.texi: Renamed from
49347         doc/posix-functions/usleep.texi.
49348         * doc/pastposix-functions/vfork.texi: Renamed from
49349         doc/posix-functions/vfork.texi.
49350         * doc/pastposix-functions/wcswcs.texi: Renamed from
49351         doc/posix-functions/wcswcs.texi.
49352         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49353         (Function Substitutes): Update.
49354
49355 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49356
49357         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49358         m4/strerror.m4.
49359
49360 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49361             Bruno Haible  <bruno@clisp.org>
49362
49363         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49364
49365 2008-12-13  Bruno Haible  <bruno@clisp.org>
49366
49367         * modules/strtoull (Depends-on): Remove unistd.
49368
49369 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49370
49371         * modules/strtoull (Depends-on): Add stdlib.
49372
49373 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49374
49375         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49376
49377 2008-12-10  Jim Meyering  <meyering@redhat.com>
49378
49379         gl_ASSERT: don't say assertions are disabled when they're not
49380         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49381         "checking whether to enable assertions... no", when they are in
49382         fact enabled.  This is solely a bug in the output of configure.
49383         In spite of saying "no", NDEBUG was not defined in that case.
49384         Also, as noted by Eric Blake, leave assertions enabled upon
49385         --enable-assert=INVALID.
49386
49387 2008-12-10  Bruno Haible  <bruno@clisp.org>
49388
49389         Change MODULES.html to refer to POSIX:2008 where possible.
49390         * MODULES.html.sh (POSIX2008_URL): New variable.
49391         (posix_headers): Remove sys/timeb, ucontext.
49392         (posix2001_headers): New variable.
49393         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49394         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49395         index, makecontext, mktemp, pthread_attr_getstackaddr,
49396         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49397         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49398         (posix2001_functions): New variable.
49399         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49400         otherwise.
49401
49402 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49403
49404         add missing include to parse-duration.c
49405         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49406         * modules/parse-duration (Depends-on): Add xalloc.
49407
49408         fix sed script reading maint.mk
49409         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49410         (syntax-check-rules): Use it.
49411
49412 2008-12-09  Bruno Haible  <bruno@clisp.org>
49413
49414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49415         MacOS X 10.4/PowerPC.
49416         Reported by Simon Josefsson.
49417
49418 2008-12-08  Jim Meyering  <meyering@redhat.com>
49419
49420         work around mingw's lack of some S_IF definitions
49421         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49422         Reported by Simon Josefsson.
49423
49424 2008-12-08  Bruno Haible  <bruno@clisp.org>
49425
49426         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49427         applied to variables. Needed on MacOS X 10.4/PowerPC.
49428         Reported by Simon Josefsson.
49429
49430 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49431         and Eric Blake  <ebb9@byu.net>
49432
49433         assert: honor --enable-assert
49434         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49435         order to honor --enable-assert, rather than treating it as a
49436         synonym for --disable-assert.
49437
49438 2008-12-08  Jim Meyering  <meyering@redhat.com>
49439
49440         * lib/posixtm.c: Remove now-useless declaration of mktime.
49441
49442         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49443
49444 2008-12-07  Bruno Haible  <bruno@clisp.org>
49445
49446         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49447         test_once): Mark functions as static.
49448         * tests/test-tls.c (test_tls): Likewise.
49449
49450 2008-12-07  Bruno Haible  <bruno@clisp.org>
49451
49452         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49453         iconv_register_autodetect.
49454
49455 2008-12-07  Jim Meyering  <meyering@redhat.com>
49456
49457         posixtm.c: avoid a warning
49458         * lib/posixtm.c (posixtime): Don't initialize tm0.
49459         It's no longer needed to placate gcc4's -Wuninitialized,
49460         and the attempt to placate would elicit a new warning.
49461
49462         unicodeio.c: mark unused parameters
49463         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49464         (fallback_failure_callback): Likewise.
49465
49466 2008-12-07  Bruno Haible  <bruno@clisp.org>
49467
49468         * gnulib-tool (func_create_testdir): When building the tests
49469         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49470         Reported by Simon Josefsson.
49471
49472 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49473
49474         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49475
49476 2008-12-06  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49479         Suggested by Eric Blake.
49480
49481 2008-12-06  Bruno Haible  <bruno@clisp.org>
49482
49483         Fix a c-stack test failure on MacOS X.
49484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49485         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49486         handler for SIGBUS as well.
49487         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49488         install a signal handler for SIGBUS as well.
49489         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49490
49491 2008-12-06  Bruno Haible  <bruno@clisp.org>
49492
49493         Advocacy documentation.
49494         * doc/gnulib-intro.texi (Benefits): New section.
49495         * doc/gnulib.texi: Update.
49496
49497 2008-12-06  Bruno Haible  <bruno@clisp.org>
49498
49499         Document the 'manywarnings' module.
49500         * doc/manywarnings.texi: New file.
49501         * doc/gnulib.texi: Include it.
49502
49503 2008-12-05  Eric Blake  <ebb9@byu.net>
49504
49505         tests: silence some gcc warnings
49506         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49507         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49508         type mismatches.
49509
49510 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49511             Bruno Haible  <bruno@clisp.org>
49512
49513         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49514
49515 2008-11-29  Jim Meyering  <meyering@redhat.com>
49516
49517         unicodeio.c: mark unused parameters
49518         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49519         (fallback_failure_callback): Likewise.
49520
49521         fts: fix a thinko
49522         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49523         (set_stat_type): Return S_IF*-valued "type" directly.
49524         Prompted by James Youngman's spotting a related bug.
49525         Confirmed by further testing through find.
49526
49527         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49528         * lib/fts.c (D_TYPE): Define.
49529         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49530         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49531         (s_ifmt_shift_bits): New function.
49532         (set_stat_type): New function.
49533         (fts_build): When not calling fts_stat, call set_stat_type
49534         to propagate dirent.d_type info to fts_read caller.
49535         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49536         fts_statp->st_mode type information may be valid.
49537
49538 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49539
49540         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49541         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49542         <sds@gnu.org>.
49543
49544 2008-11-20  Bruno Haible  <bruno@clisp.org>
49545
49546         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49547         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49548         INCLUDE_NEXT.
49549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49550         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49551         * modules/math (Makefile.am): Substitute
49552         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49553         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49554
49555 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49556             Bruno Haible  <bruno@clisp.org>
49557
49558         * lib/stdint.in.h: Define all type macros so that their expansion is
49559         a single typedef'ed token. Fixes a compilation failure in Boost which
49560         does "using ::int8_t;".
49561
49562 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49563
49564         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49565         gl_MANYWARN_ALL_GCC.
49566         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49567         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49568         * modules/manywarnings: New file.
49569         * MODULES.html.sh: Mention manywarnings module.
49570
49571 2008-11-18  Bruno Haible  <bruno@clisp.org>
49572
49573         * doc/gnulib-tool.texi (Unit tests): New section.
49574
49575 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49576
49577         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49578         paths like 'lib/po/foo.po'.
49579
49580 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49581
49582         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49583         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49584
49585 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49586
49587         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49588         parameter works.
49589
49590 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49591
49592         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49593
49594 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49595
49596         * modules/parse-duration-tests: New file.
49597         * tests/test-parse-duration.sh: New file.
49598         * tests/test-parse-duration.c: New file.
49599
49600         New module 'parse-duration'.
49601         * lib/parse-duration.h: New file.
49602         * lib/parse-duration.c: New file.
49603         * modules/parse-duration: New file.
49604
49605 2008-11-17  Bruno Haible  <bruno@clisp.org>
49606
49607         * tests/test-select-out.sh: Comment out the first pipe test.
49608         Reported by Simon Josefsson.
49609
49610 2008-11-17  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49614         gl_HOSTENT.
49615
49616 2008-11-17  Bruno Haible  <bruno@clisp.org>
49617
49618         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49619         -lnetwork and -lnet. Needed for Haiku and BeOS.
49620
49621 2008-11-16  Bruno Haible  <bruno@clisp.org>
49622
49623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49624
49625 2008-11-16  Bruno Haible  <bruno@clisp.org>
49626
49627         Avoid test failure on Haiku.
49628         * tests/test-fsync.c: Include <errno.h>.
49629         (main): Don't require that fsync (0) fails.
49630
49631 2008-11-15  Bruno Haible  <bruno@clisp.org>
49632
49633         New module 'hostent'.
49634         * modules/hostent: New file.
49635         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49636
49637 2008-11-15  Bruno Haible  <bruno@clisp.org>
49638
49639         New module 'servent'.
49640         * modules/servent: New file.
49641         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49642
49643 2008-11-15  Bruno Haible  <bruno@clisp.org>
49644
49645         Avoid generating same test program with two different rules.
49646         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49647         test-frexp to test-frexp-nolibm.
49648         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49649         test-frexpl to test-frexpl-nolibm.
49650
49651 2008-11-15  Bruno Haible  <bruno@clisp.org>
49652
49653         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49654         $(FREXPL_LIBM).
49655
49656 2008-11-15  Bruno Haible  <bruno@clisp.org>
49657
49658         * lib/netdb.in.h: Activate the definitions also when the system's
49659         <netdb.h> has 'struct addrinfo'.
49660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49661         EAI_OVERFLOW or AI_NUMERICSERV.
49662         * doc/posix-headers/netdb.texi: Document the problem.
49663
49664 2008-11-15  Bruno Haible  <bruno@clisp.org>
49665
49666         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49667
49668         Make the 'sched' module work on platforms where <sched.h> exists but
49669         is incomplete (such as Haiku).
49670         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49671         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49672         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49673         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49674         HAVE_STRUCT_SCHED_PARAM.
49675         * modules/sched (Depends-on): Add include_next.
49676         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49677         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49678         * doc/posix-headers/sched.texi: Document the issue.
49679
49680 2008-11-13  Jim Meyering  <meyering@redhat.com>
49681
49682         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49683         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49684         test would fail due to the difference in the Report bugs to ...
49685         line.  The expected address is empty, "<>", while the actual
49686         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49687
49688 2008-11-12  Bruno Haible  <bruno@clisp.org>
49689
49690         lstat: don't compile lstat.c on systems lacking lstat
49691         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49692         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49693         Reported by Daniel P. Berrange via Jim Meyering.
49694
49695 2008-11-12  Jim Meyering  <meyering@redhat.com>
49696
49697         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49698
49699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49700
49701         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49702         instead.
49703
49704 2008-11-12  Bruno Haible  <bruno@clisp.org>
49705
49706         * lib/unicodeio.c: Include unistr.h.
49707         (utf8_wctomb): Remove function.
49708         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49709
49710 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49711
49712         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49713         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49714         <bruno@clisp.org>.
49715         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49716
49717 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49718
49719         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49720         * doc/gnulib.texi: Add section for warnings.
49721
49722 2008-11-11  Bruno Haible  <bruno@clisp.org>
49723
49724         * lib/sockets.h: Add a comment.
49725
49726 2008-11-11  Karl Berry  <karl@gnu.org>
49727
49728         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49729
49730 2008-11-11  Eric Blake  <ebb9@byu.net>
49731
49732         fdl.texi: avoid git symlinks
49733         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49734
49735 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49736
49737         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49738
49739 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49740
49741         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49742         (gl_WARN_ADD): Substitute $2 if literal.
49743
49744 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49745
49746         * m4/warning.m4: Remove.
49747
49748 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49749
49750         * m4/warnings.m4: Almost complete rewrite. :-)
49751
49752 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49753
49754         * modules/warnings: New module.
49755         * m4/warnings.m4: New file.
49756         * MODULES.html.sh: Mention warnings module.
49757         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49758         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49759
49760 2008-11-10  Eric Blake  <ebb9@byu.net>
49761
49762         fdl.texi: make a symlink to the latest version
49763         * doc/standards.texi: Revert today's earlier change.
49764         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49765         * doc/fdl.texi: ...and replace this with a symlink to the newer
49766         fdl-1.3.texi.
49767
49768 2008-11-10  Bruno Haible  <bruno@clisp.org>
49769
49770         * tests/test-select-fd.c (main): Accept the result file name as fourth
49771         argument.
49772         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49773         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49774
49775 2008-11-10  Bruno Haible  <bruno@clisp.org>
49776
49777         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49778         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49779         as autoconf-substituted macros.
49780         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49782         gl_NETDB_H_DEFAULTS. Set these variables.
49783         * modules/netdb (Makefile.am): Substitute these variables.
49784
49785 2008-11-10  Eric Blake  <ebb9@byu.net>
49786
49787         standards.texi: include correct file for FDL 1.3
49788         * doc/standards.texi (GNU Free Documentation License): Change
49789         include file to pull in FDL 1.3, not 1.2.
49790
49791         fdl.texi: revert accidental change to license
49792         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49793
49794 2008-11-10  Bruno Haible  <bruno@clisp.org>
49795
49796         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49797         cross-compiling guesses also when the native compile gives no result.
49798
49799 2008-11-10  Bruno Haible  <bruno@clisp.org>
49800
49801         * lib/spawni.c (__spawni): Force variable into the stack.
49802
49803 2008-11-10  Bruno Haible  <bruno@clisp.org>
49804
49805         Add support for Haiku.
49806         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49807         glibc and BeOS, but also on Haiku.
49808         * lib/fpurge.c (fpurge): Likewise.
49809         * lib/freadable.c (freadable): Likewise.
49810         * lib/freadahead.c (freadahead): Likewise.
49811         * lib/freading.c (freading): Likewise.
49812         * lib/freadptr.c (freadptr): Likewise.
49813         * lib/freadseek.c (freadptrinc): Likewise.
49814         * lib/fseeko.c (rpl_fseeko): Likewise.
49815         * lib/fseterr.c (fseterr): Likewise.
49816         * lib/fwritable.c (fwritable): Likewise.
49817         * lib/fwriting.c (fwriting): Likewise.
49818         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49819
49820 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49821
49822         * lib/config.charset: Treat Haiku like BeOS.
49823
49824 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49825
49826         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49827         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49828
49829 2008-11-08  Bruno Haible  <bruno@clisp.org>
49830
49831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49832         AC_CACHE_CHECK.
49833
49834 2008-11-08  Bruno Haible  <bruno@clisp.org>
49835
49836         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49837
49838 2008-11-08  Bruno Haible  <bruno@clisp.org>
49839
49840         * tests/test-select-fd.c: New file.
49841         * tests/test-select-in.sh: New file.
49842         * tests/test-select-out.sh: New file.
49843         * tests/test-select-stdin.c: New file.
49844         * modules/select-tests (Files): Add the new files.
49845         (Depends-on): Add gettimeofday.
49846         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49847         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49848         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49849
49850 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49851             Bruno Haible  <bruno@clisp.org>
49852
49853         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49854
49855 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49856
49857         * build-aux/pmccabe2html: Added support for C++ source files.
49858
49859 2008-11-05  Ben Pfaff  <blp@gnu.org>
49860
49861         Fix lib/close.c build on Windows.
49862         * modules/close (Files): Add lib/w32sock.h.
49863
49864 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49865
49866         Accept Bison's NEWS format.
49867         * build-aux/announce-gen (print_news_deltas): Tweak
49868         $re_prefix.
49869
49870 2008-11-04  Bruno Haible  <bruno@clisp.org>
49871
49872         * modules/random_r (Maintainer): Add glibc.
49873
49874 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49875
49876         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49877         by karl@freefriends.org (Karl Berry).
49878         * doc/alloca.texi: Likewise.
49879         * doc/c-ctype.texi: Likewise.
49880         * doc/c-strcase.texi: Likewise.
49881         * doc/c-strcaseeq.texi: Likewise.
49882         * doc/c-strcasestr.texi: Likewise.
49883         * doc/c-strstr.texi: Likewise.
49884         * doc/c-strtod.texi: Likewise.
49885         * doc/c-strtold.texi: Likewise.
49886         * doc/ctime.texi: Likewise.
49887         * doc/error.texi: Likewise.
49888         * doc/fdl.texi: Likewise.
49889         * doc/gcd.texi: Likewise.
49890         * doc/getdate.texi: Likewise.
49891         * doc/gnulib-intro.texi: Likewise.
49892         * doc/gnulib-tool.texi: Likewise.
49893         * doc/gnulib.texi: Likewise.
49894         * doc/inet_ntoa.texi: Likewise.
49895         * doc/maintain.texi: Likewise.
49896         * doc/make-stds.texi: Likewise.
49897         * doc/quote.texi: Likewise.
49898         * doc/regexprops-generic.texi: Likewise.
49899         * doc/standards.texi: Likewise.
49900         * doc/verify.texi: Likewise.
49901         * doc/visibility.texi: Likewise.
49902         * doc/gnulib.texi (GNU Free Documentation License): Include
49903         fdl-1.3.texi instead of fdl.texi.
49904
49905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49906
49907         * doc/fdl-1.3.texi: New file, from
49908         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49909         * modules/fdl-1.3: Add.
49910         * MODULES.html.sh: Add fdl-1.3.
49911
49912 2008-11-03  Bruno Haible  <bruno@clisp.org>
49913
49914         Make determination of absolute name of header file work with AIX xlc.
49915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49916         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49917         preprocessing.
49918         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49919         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49920
49921 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49922
49923         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49924         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49925         <ludo@gnu.org>.
49926
49927 2008-11-02  Bruno Haible  <bruno@clisp.org>
49928
49929         Mark 'strpbrk' obsolete.
49930         * modules/strpbrk (Status, Notice): New sections.
49931         * modules/strtok_r (Depends-on): Add strpbrk.
49932
49933 2008-11-02  Bruno Haible  <bruno@clisp.org>
49934
49935         Mark 'strdup' obsolete.
49936         * modules/strdup (Status, Notice): New sections.
49937         * modules/findprog (Depends-on): Add strdup.
49938         * modules/getaddrinfo (Depends-on): Likewise.
49939         * modules/localename (Depends-on): Likewise.
49940         * modules/relocatable-lib (Depends-on): Likewise.
49941         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49942         * modules/relocatable-prog (Depends-on): Likewise.
49943         * modules/trim (Depends-on): Likewise.
49944         * modules/unictype/gen-ctype (Depends-on): Likewise.
49945         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49946
49947 2008-11-02  Bruno Haible  <bruno@clisp.org>
49948
49949         Mark 'strcspn' obsolete.
49950         * modules/strcspn (Status, Notice): New sections.
49951
49952 2008-11-02  Bruno Haible  <bruno@clisp.org>
49953
49954         Mark 'rmdir' obsolete.
49955         * modules/rmdir (Status, Notice): New sections.
49956         * modules/clean-temp (Depends-on): Add rmdir.
49957         * modules/openat (Depends-on): Likewise.
49958
49959 2008-11-02  Bruno Haible  <bruno@clisp.org>
49960
49961         Mark 'raise' obsolete.
49962         * modules/raise (Status, Notice): New sections.
49963         (Include): Specify <signal.h>.
49964         * modules/stdio (Depends-on): Add raise.
49965         * modules/write (Depends-on): Likewise.
49966
49967 2008-11-02  Bruno Haible  <bruno@clisp.org>
49968
49969         Mark 'memset' obsolete.
49970         * modules/memset (Status, Notice): New sections.
49971
49972 2008-11-02  Bruno Haible  <bruno@clisp.org>
49973
49974         Mark 'memmove' obsolete.
49975         * modules/memmove (Status, Notice): New sections.
49976         * modules/argp (Depends-on): Add memmove.
49977         * modules/argz (Depends-on): Likewise.
49978         * modules/canonicalize (Depends-on): Likewise.
49979         * modules/canonicalize-lgpl (Depends-on): Likewise.
49980         * modules/fts (Depends-on): Likewise.
49981         * modules/getcwd (Depends-on): Likewise.
49982         * modules/human (Depends-on): Likewise.
49983         * modules/regex (Depends-on): Likewise.
49984         * modules/striconveh (Depends-on): Likewise.
49985         * modules/trim (Depends-on): Likewise.
49986         * modules/unistr/u8-move (Depends-on): Likewise.
49987         * modules/unistr/u16-move (Depends-on): Likewise.
49988         * modules/unistr/u32-move (Depends-on): Likewise.
49989
49990 2008-11-02  Bruno Haible  <bruno@clisp.org>
49991
49992         Mark 'memcpy' obsolete.
49993         * modules/memcpy (Status, Notice): New sections.
49994
49995 2008-11-02  Bruno Haible  <bruno@clisp.org>
49996
49997         Mark 'memcmp' obsolete.
49998         * modules/memcmp (Status, Notice): New sections.
49999         * modules/argmatch (Depends-on): Add memchr.
50000         * modules/backupfile (Depends-on): Likewise.
50001         * modules/c-strcasestr (Depends-on): Likewise.
50002         * modules/crypto/des (Depends-on): Likewise.
50003         * modules/csharpcomp (Depends-on): Likewise.
50004         * modules/fnmatch (Depends-on): Likewise.
50005         * modules/git-merge-changelog (Depends-on): Likewise.
50006         * modules/isnand (Depends-on): Likewise.
50007         * modules/isnand-nolibm (Depends-on): Likewise.
50008         * modules/isnanf (Depends-on): Likewise.
50009         * modules/isnanf-nolibm (Depends-on): Likewise.
50010         * modules/isnanl (Depends-on): Likewise.
50011         * modules/isnanl-nolibm (Depends-on): Likewise.
50012         * modules/mbchar (Depends-on): Likewise.
50013         * modules/memcoll (Depends-on): Likewise.
50014         * modules/quotearg (Depends-on): Likewise.
50015         * modules/regex (Depends-on): Likewise.
50016         * modules/relocatable-prog (Depends-on): Likewise.
50017         * modules/same (Depends-on): Likewise.
50018         * modules/signbit (Depends-on): Likewise.
50019         * modules/strcasestr-simple (Depends-on): Likewise.
50020         * modules/unictype/gen-ctype (Depends-on): Likewise.
50021         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50022         * modules/uniname/uniname (Depends-on): Likewise.
50023         * modules/unistr/u8-cmp (Depends-on): Likewise.
50024
50025 2008-11-02  Bruno Haible  <bruno@clisp.org>
50026
50027         Mark 'memchr' obsolete.
50028         * modules/memchr (Status, Notice): New sections.
50029         * modules/argp (Depends-on): Add memchr.
50030         * modules/base64 (Depends-on): Likewise.
50031         * modules/c-strcasestr (Depends-on): Likewise.
50032         * modules/chdir-long (Depends-on): Likewise.
50033         * modules/fnmatch (Depends-on): Likewise.
50034         * modules/getsubopt (Depends-on): Likewise.
50035         * modules/git-merge-changelog (Depends-on): Likewise.
50036         * modules/glob (Depends-on): Likewise.
50037         * modules/strcasestr-simple (Depends-on): Likewise.
50038         * modules/strnlen (Depends-on): Likewise.
50039
50040 2008-11-02  Bruno Haible  <bruno@clisp.org>
50041
50042         Mark 'atexit' obsolete.
50043         * modules/atexit (Status, Notice): New sections.
50044         * modules/chdir-long (Depends-on): Add atexit.
50045         * modules/wait-process (Depends-on): Likewise.
50046
50047 2008-11-02  Bruno Haible  <bruno@clisp.org>
50048
50049         * gnulib-tool: New option --with-obsolete.
50050         (func_usage): Document it.
50051         (func_modules_transitive_closure): Drop obsolete dependencies if
50052         incobsolete is not true.
50053         (func_import): Read and save the incobsolete variable to the cache.
50054
50055 2008-11-02  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50058         * gnulib-tool: New option --extract-status.
50059         (func_usage): Document it.
50060         (sed_extract_prog): Recognize it.
50061         (func_get_status): New function.
50062
50063 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50064
50065         * modules/sockets (License): Change from LGPL to LGPLv2+.
50066
50067 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50068
50069         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50070
50071 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50072
50073         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50074         Mention times and sys_times.
50075         * modules/sys_times, modules/sys_times-tests: New modules.
50076         * modules/times, modules/times-tests: Likewise
50077         * m4/sys_times_h.m4: New file.
50078         * lib/sys_times.in.h: Likewise
50079         * lib/times.c: Likewise.
50080         * tests/test-sys_times.c: Likewise.
50081         * tests/test-times.c: Likewise.
50082         * doc/posix-headers/sys_times.texi: Update.
50083         * doc/posix-functions/times.texi: Update.
50084
50085 2008-10-28  Jim Meyering  <meyering@redhat.com>
50086
50087         * modules/tempname (Depends-on): Add lstat.
50088
50089         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50090
50091 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50092
50093         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50094         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50095         using idiom used elsewhere in gnulib.
50096
50097 2008-10-27  Jim Meyering  <meyering@redhat.com>
50098
50099         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50100
50101 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50102
50103         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50104         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50105         programs.
50106         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50107
50108 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50109
50110         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50111
50112 2008-10-27  Bruno Haible  <bruno@clisp.org>
50113
50114         * tests/test-lstat.c: Include <stdio.h>.
50115
50116 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50117
50118         * modules/lstat-tests: New module.
50119         * tests/test-lstat.c: New file.
50120
50121 2008-10-26  Jim Meyering  <meyering@redhat.com>
50122
50123         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50124
50125 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50126             Bruno Haible  <bruno@clisp.org>
50127
50128         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50129         * modules/configmake (Include): Add a note that the include must come
50130         after all system headers.
50131         * lib/javaversion.c: Include configmake.h after all other includes.
50132
50133 2008-10-26  Bruno Haible  <bruno@clisp.org>
50134
50135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50136         HAVE_STRUCT_RANDOM_DATA to 1.
50137         (gl_STDLIB_H): Simplify.
50138
50139 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50140
50141         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50142         substitute HAVE_STRUCT_RANDOM_DATA.
50143         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50144         random_data.
50145         * modules/stdlib (Makefile.am): Substitute
50146         HAVE_STRUCT_RANDOM_DATA.
50147
50148 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50149
50150         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50151         * doc/gnulib-intro.texi (Copyright): Likewise.
50152
50153 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50154
50155         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50156         findings.
50157
50158 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50159             Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/unistd.in.h: Include <winsock2.h>.
50162         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50163         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50164         Provide dummy declarations.
50165         (gethostname): Override.
50166         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50167         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50168         gl_PREREQ_SYS_H_WINSOCK2.
50169         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50170         * doc/posix-functions/gethostname.texi: More details.
50171
50172 2008-10-25  Bruno Haible  <bruno@clisp.org>
50173
50174         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50175         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50176         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50177
50178         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50179         here ...
50180         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50182         gl_UNISTD_H_DEFAULTS.
50183
50184 2008-10-25  Eric Blake  <ebb9@byu.net>
50185
50186         signbit: avoid spurious compiler failure
50187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50188         declarations inside function.
50189
50190 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50191             Bruno Haible  <bruno@clisp.org>
50192
50193         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50194         * modules/random_r (Depends-on): Add stdint.
50195
50196 2008-10-24  Bruno Haible  <bruno@clisp.org>
50197
50198         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50199         Eggert.
50200         * modules/strerror (License): Likewise.
50201
50202 2008-10-24  Jim Meyering  <meyering@redhat.com>
50203
50204         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50205         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50206
50207 2008-10-24  Eric Blake  <ebb9@byu.net>
50208
50209         getgroups: fix compilation when getgroups is available
50210         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50211         but with <config.h> override of getgroups disabled.
50212
50213 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50214
50215         * doc/gnulib.texi (Header files): Add note about C++ problems.
50216         Explained by Bruno Haible <bruno@clisp.org>.
50217
50218 2008-10-23  Bruno Haible  <bruno@clisp.org>
50219
50220         Define a dummy SA_NODEFER macro on Interix.
50221         * lib/signal.in.h (SA_NODEFER): Define fallback.
50222         Reported by Aleksey Cheusov <cheusov@tut.by> via
50223         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50224
50225 2008-10-23  Bruno Haible  <bruno@clisp.org>
50226
50227         * modules/freadahead (License): Change to LGPLv2+.
50228         Suggested by Simon Josefsson.
50229
50230 2008-10-23  Jim Meyering  <meyering@redhat.com>
50231
50232         random_r: new module
50233         * modules/random_r: New file.
50234         * m4/random_r.m4: New file.
50235         * lib/random_r.c: New file, from glibc.
50236         * modules/random_r-tests: New file.
50237         * tests/test-random_r.c: New file.
50238         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50239          Declare.
50240         (RAND_MAX): Define.
50241         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50242         * modules/stdlib: Substitute them, too.
50243         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50244         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50245         * doc/glibc-functions/random_r.texi: Likewise.
50246         * doc/glibc-functions/setstate_r.texi: Likewise.
50247         * doc/glibc-functions/srandom_r.texi: Likewise.
50248         * config/srclist.txt: Mention it.
50249
50250 2008-10-23  David Lutterkort  <lutter@redhat.com>
50251
50252         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50253         link requirement
50254
50255 2008-10-23  Jim Meyering  <meyering@redhat.com>
50256
50257         selinux-h: mark parameters of stub functions as intentionally unused
50258         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50259         * lib/se-context.in.h: Likewise.
50260
50261 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50262
50263         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50264
50265 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50266
50267         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50268
50269 2008-10-22  Eric Blake  <ebb9@byu.net>
50270
50271         glthread/thread: avoid compiler warning
50272         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50273         Add unreachable abort to silence compiler.
50274
50275 2008-10-22  Eric Blake  <ebb9@byu.net>
50276
50277         netdb: also supply struct addrinfo for cygwin 1.5.x
50278         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50279         older cygwin.
50280         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50281         cygwin.
50282         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50283
50284 2008-10-22  Bruno Haible  <bruno@clisp.org>
50285
50286         * users.txt: Update entry about pspp.
50287
50288 2008-10-21  Bruno Haible  <bruno@clisp.org>
50289
50290         Simplification.
50291         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50292         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50293
50294         Simplification.
50295         * lib/ioctl.c (ioctl): Don't undefine.
50296         * lib/socket.c (socket): Don't undefine.
50297
50298         Remove unused module indicator macros.
50299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50300         GNULIB_$1 as a C macro.
50301
50302         * doc/posix-functions/close.texi: Undo last change.
50303         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50304         Windows platforms.
50305
50306 2008-10-21  Bruno Haible  <bruno@clisp.org>
50307
50308         Add gethostname() declaration to <unistd.h>.
50309         * lib/unistd.in.h (gethostname): New declaration.
50310         * lib/gethostname.c: Include <unistd.h>.
50311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50312         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50314         and HAVE_GETHOSTNAME.
50315         * modules/gethostname (Depends-on): Add unistd.
50316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50317         (Include): Specify <unistd.h>.
50318         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50319         HAVE_GETHOSTNAME.
50320         * tests/test-gethostname.c: Include <unistd.h> first.
50321
50322 2008-10-21  Bruno Haible  <bruno@clisp.org>
50323
50324         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50325         * modules/select-tests (Depends-on): Likewise.
50326         Reported by Simon Josefsson.
50327
50328 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50329
50330         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50331         * lib/accept.c: New file, based on winsock.c.
50332         * lib/bind.c: New file, based on winsock.c.
50333         * lib/connect.c: New file, based on winsock.c.
50334         * lib/getpeername.c: New file, based on winsock.c.
50335         * lib/getsockname.c: New file, based on winsock.c.
50336         * lib/getsockopt.c: New file, based on winsock.c.
50337         * lib/ioctl.c: New file, based on winsock.c.
50338         * lib/listen.c: New file, based on winsock.c.
50339         * lib/recv.c: New file, based on winsock.c.
50340         * lib/recvfrom.c: New file, based on winsock.c.
50341         * lib/send.c: New file, based on winsock.c.
50342         * lib/sendto.c: New file, based on winsock.c.
50343         * lib/setsockopt.c: New file, based on winsock.c.
50344         * lib/shutdown.c: New file, based on winsock.c.
50345         * lib/socket.c: New file, based on winsock.c.
50346         * lib/w32sock.h: New file, based on winsock.c.
50347         * lib/winsock.c: Remove file.
50348         * modules/accept: Likewise.
50349         * modules/bind: Likewise.
50350         * modules/connect: Likewise.
50351         * modules/getpeername: Likewise.
50352         * modules/getsockname: Likewise.
50353         * modules/getsockopt: Likewise.
50354         * modules/ioctl: Likewise.
50355         * modules/listen: Likewise.
50356         * modules/recv: Likewise.
50357         * modules/recvfrom: Likewise.
50358         * modules/send: Likewise.
50359         * modules/sendto: Likewise.
50360         * modules/setsockopt: Likewise.
50361         * modules/shutdown: Likewise.
50362         * modules/socket: Use socket.c instead of winsock.c.
50363         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50364         * doc/posix-functions/accept.texi: Doc fix.
50365         * doc/posix-functions/bind.texi: Doc fix.
50366         * doc/posix-functions/close.texi: Doc fix.
50367         * doc/posix-functions/connect.texi: Doc fix.
50368         * doc/posix-functions/getpeername.texi: Doc fix.
50369         * doc/posix-functions/getsockname.texi: Doc fix.
50370         * doc/posix-functions/getsockopt.texi: Doc fix.
50371         * doc/posix-functions/ioctl.texi: Doc fix.
50372         * doc/posix-functions/listen.texi: Doc fix.
50373         * doc/posix-functions/recv.texi: Doc fix.
50374         * doc/posix-functions/recvfrom.texi: Doc fix.
50375         * doc/posix-functions/send.texi: Doc fix.
50376         * doc/posix-functions/sendto.texi: Doc fix.
50377         * doc/posix-functions/setsockopt.texi: Doc fix.
50378         * doc/posix-functions/shutdown.texi: Doc fix.
50379         * doc/posix-functions/socket.texi: Doc fix.
50380
50381 2008-10-20  Bruno Haible  <bruno@clisp.org>
50382
50383         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50384         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50385         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50386         as an alias for SIGABRT.
50387         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50388         (sigaction): Map it to SIGABRT.
50389         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50390
50391 2008-10-20  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/fts.c: Don't include lstat.h.
50394         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50395
50396         Move the lstat() declaration to <sys/stat.h>.
50397         * lib/lstat.h: Remove file.
50398         * lib/sys_stat.in.h: Add special invocation convention.
50399         (lstat): New declaration.
50400         * lib/lstat.c (orig_lstat): New function.
50401         (rpl_lstat): Use orig_lstat instead of lstat.
50402         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50403         AC_C_INLINE. Set REPLACE_LSTAT.
50404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50405         and REPLACE_LSTAT.
50406         * modules/lstat (Files): Remove lib/lstat.h.
50407         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50408         (Include): Specify <sys/stat.h> instead of lstat.h.
50409         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50410         REPLACE_LSTAT.
50411         * NEWS: Mention the change.
50412
50413 2008-10-20  Bruno Haible  <bruno@clisp.org>
50414
50415         * modules/posix_spawn-tests: New file.
50416         * tests/test-posix_spawn3.c: New file.
50417
50418 2008-10-20  Bruno Haible  <bruno@clisp.org>
50419
50420         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50421         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50422         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50423         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50424         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50425
50426 2008-10-20  Bruno Haible  <bruno@clisp.org>
50427
50428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50429         of posix_spawn on AIX 5.3.
50430
50431 2008-10-20  Bruno Haible  <bruno@clisp.org>
50432
50433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50434
50435 2008-10-20  Bruno Haible  <bruno@clisp.org>
50436
50437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50438         of AC_LANG_PROGRAM.
50439
50440 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50441
50442         * lib/netdb.in.h: Don't define GNU specific constants until they
50443         are supported or needed.  Reported by Bruno Haible
50444         <bruno@clisp.org>.
50445
50446 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50447
50448         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50449
50450 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50451
50452         * lib/getaddrinfo.h: Remove file.
50453         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50454         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50455         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50456         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50457         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50458         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50459         * tests/test-getaddrinfo.c: Likewise.
50460         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50461         * NEWS: Mention change.
50462
50463 2008-10-19  Bruno Haible  <bruno@clisp.org>
50464
50465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50466
50467 2008-10-19  Bruno Haible  <bruno@clisp.org>
50468
50469         * lib/wait-process.c: Include simply <sys/wait.h>.
50470         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50471         WIFSTOPPED): Remove fallback definitions.
50472         * modules/wait-process (Depends-on): Add sys_wait.
50473
50474         New module 'sys_wait'.
50475         * modules/sys_wait: New file.
50476         * lib/sys_wait.in.h: New file, partially copied from
50477         lib/wait-process.c.
50478         * m4/sys_wait_h.m4: New file.
50479         * doc/posix-headers/sys_wait.texi: Mention the new module.
50480
50481 2008-10-19  Bruno Haible  <bruno@clisp.org>
50482
50483         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50484
50485 2008-10-19  Bruno Haible  <bruno@clisp.org>
50486
50487         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50488         * lib/wait-process.c (WAIT_T): Remove type.
50489         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50490         (wait_subprocess): Update.
50491
50492 2008-10-19  Bruno Haible  <bruno@clisp.org>
50493
50494         New module 'atoll'.
50495         * modules/atoll: New file.
50496         * lib/stdlib.in.h (atoll): New declaration.
50497         * lib/atoll.c: New file, from glibc with modifications.
50498         * m4/atoll.m4: New file.
50499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50500         HAVE_ATOLL.
50501         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50502         * doc/posix-functions/atoll.texi: Mention the new module.
50503
50504 2008-10-19  Bruno Haible  <bruno@clisp.org>
50505
50506         Add strtoull() declaration to <stdlib.h>.
50507         * lib/stdlib.in.h (strtoull): New declaration.
50508         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50509         Set HAVE_STRTOULL.
50510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50511         HAVE_STRTOULL.
50512         * modules/strtoull (Depends-on): Add stdlib.
50513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50514         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50515         HAVE_STRTOULL.
50516
50517 2008-10-19  Bruno Haible  <bruno@clisp.org>
50518
50519         Add strtoll() declaration to <stdlib.h>.
50520         * lib/stdlib.in.h (strtoll): New declaration.
50521         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50522         Set HAVE_STRTOLL.
50523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50524         HAVE_STRTOLL.
50525         * modules/strtoll (Depends-on): Add stdlib.
50526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50527         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50528
50529 2008-10-19  Bruno Haible  <bruno@clisp.org>
50530
50531         * modules/bcopy (Depends-on): Add strings.
50532         (Include): Specify <strings.h>.
50533
50534 2008-10-19  Bruno Haible  <bruno@clisp.org>
50535
50536         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50537
50538 2008-10-19  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50541         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50542         mingw.
50543
50544 2008-10-19  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/atanl.c: Don't include isnanl.h.
50547         * lib/cosl.c: Likewise.
50548         * lib/ldexpl.c: Likewise.
50549         * lib/logl.c: Likewise.
50550         * lib/sinl.c: Likewise.
50551         * lib/sqrtl.c: Likewise.
50552         * lib/tanl.c: Likewise.
50553
50554         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50555         * lib/isnanf.h: Remove file.
50556         * lib/isnand.h: Remove file.
50557         * lib/isnanl.h: Remove file.
50558         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50559         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50560         macros.
50561         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50562         HAVE_ISNANF, don't define it as a C macro.
50563         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50564         HAVE_ISNAND, don't define it as a C macro.
50565         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50566         HAVE_ISNANL, don't define it as a C macro.
50567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50568         HAVE_ISNAN[FDL].
50569         * modules/isnanf (Files): Remove lib/isnanf.h.
50570         (Depends-on): Add math.
50571         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50572         (Include): Specify <math.h> instead of isnanf.h.
50573         * modules/isnand (Files): Remove lib/isnand.h.
50574         (Depends-on): Add math.
50575         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50576         (Include): Specify <math.h> instead of isnand.h.
50577         * modules/isnanl (Files): Remove lib/isnanl.h.
50578         (Depends-on): Add math.
50579         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50580         (Include): Specify <math.h> instead of isnanl.h.
50581         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50582         HAVE_ISNAN[FDL].
50583         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50584         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50585         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50586         * NEWS: Mention the change.
50587
50588 2008-10-18  Bruno Haible  <bruno@clisp.org>
50589
50590         Add getusershell(), setusershell(), endusershell() declarations to
50591         <unistd.h>.
50592         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50593         declarations.
50594         * lib/getusershell.c: Include unistd.h.
50595         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50596         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50597         HAVE_GETUSERSHELL.
50598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50599         and HAVE_GETUSERSHELL.
50600         * modules/getusershell (Depends-on): Add unistd, extensions.
50601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50602         (Include): Specify <unistd.h>.
50603         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50604         HAVE_GETUSERSHELL.
50605
50606 2008-10-18  Bruno Haible  <bruno@clisp.org>
50607
50608         Add a getloadavg() declaration to <stdlib.h>.
50609         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50610         getloadavg declaration.
50611         (getloadavg): New declaration.
50612         * lib/getloadavg.c: Include <stdlib.h> first.
50613         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50614         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50615         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50617         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50618         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50620         (Include): Specify <stdlib.h>.
50621         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50622         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50623
50624 2008-10-18  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/dirchownmod.c: Don't include lchmod.h.
50627
50628         Move the lchmod() declaration to <sys/stat.h>.
50629         * lib/lchmod.h: Remove file.
50630         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50631         (lchmod): New declaration, moved here from lib/lchown.h.
50632         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50633         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50634         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50635         and HAVE_LCHMOD.
50636         * modules/lchmod (Files): Remove lib/lchmod.h.
50637         (Depends-on): Add sys_stat, extensions.
50638         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50639         (Include): Specify <sys/stat.h> instead of lchmod.h.
50640         * modules/sys_stat (Depends-on): Add link-warning.
50641         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50642         definition of GL_LINK_WARNING.
50643         * NEWS: Mention the change.
50644
50645 2008-10-18  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/fchdir.c: Don't include dirfd.h.
50648         * lib/fts.c: Likewise.
50649         * lib/getcwd.c: Likewise.
50650         * lib/glob.c: Likewise.
50651
50652         Move the dirfd() declaration to <dirent.h>.
50653         * lib/dirfd.h: Remove file.
50654         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50655         (dirfd): New declaration.
50656         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50658         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50659         HAVE_DECL_DIRFD.
50660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50661         HAVE_DECL_DIRFD.
50662         * modules/dirfd (Files): Remove lib/dirfd.h.
50663         (Depends-on): Add dirent, extensions.
50664         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50665         (Include): Specify <dirent.h> instead of dirfd.h.
50666         * modules/dirent (Depends-on): Add link-warning.
50667         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50668         definition of GL_LINK_WARNING.
50669         * NEWS: Mention the change.
50670
50671 2008-10-18  Bruno Haible  <bruno@clisp.org>
50672
50673         Move the euidaccess() declaration to <unistd.h>.
50674         * lib/euidaccess.h: Remove file.
50675         * lib/unistd.in.h (euidaccess): New declaration.
50676         * lib/euidaccess.c: Don't include euidaccess.h.
50677         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50678         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50680         and HAVE_EUIDACCESS.
50681         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50682         (Depends-on): Add unistd.
50683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50684         (Include): Specify <unistd.h> instead of euidaccess.h.
50685         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50686         HAVE_EUIDACCESS.
50687         * NEWS: Mention the change.
50688
50689 2008-10-18  Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50692
50693         Move the getdomainname() declaration to <unistd.h>.
50694         * lib/getdomainname.h: Remove file.
50695         * lib/unistd.in.h (getdomainname): New declaration.
50696         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50697         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50698         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50699         HAVE_GETDOMAINNAME.
50700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50701         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50702         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50703         (Depends-on): Add unistd, extensions.
50704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50705         (Includes): Specify <unistd.h> instead of getdomainname.h.
50706         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50707         HAVE_GETDOMAINNAME.
50708         * NEWS: Mention the change.
50709
50710 2008-10-18  Bruno Haible  <bruno@clisp.org>
50711
50712         * modules/dirent: New file.
50713         * m4/dirent_h.m4: New file.
50714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50715         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50716         * modules/fchdir (Files): Remove lib/dirent.in.h.
50717         (Depends-on): Add dirent.
50718         (Makefile.am): Move rules to modules/dirent.
50719         * doc/posix-headers/dirent.texi: Mention the new module.
50720
50721 2008-10-18  Bruno Haible  <bruno@clisp.org>
50722
50723         Avoid -Wunused-parameter warnings in public gnulib header files.
50724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50725         macro.
50726         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50727
50728 2008-10-18  Bruno Haible  <bruno@clisp.org>
50729
50730         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50731         * doc/glibc-functions/error.texi: Mention the module 'error'.
50732         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50733         * doc/glibc-functions/getdomainname.texi: Mention the module
50734         'getdomainname'.
50735         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50736         * doc/glibc-functions/getpagesize.texi: Mention the module
50737         'getpagesize'.
50738         * doc/glibc-functions/getusershell.texi: Mention the module
50739         'getusershell'.
50740         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50741         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50742         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50743         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50744         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50745         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50746         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50747         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50748         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50749         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50750         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50751         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50752         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50753         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50754
50755 2008-10-17  Bruno Haible  <bruno@clisp.org>
50756
50757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50758         HP-UX and IRIX, use -0.0L.
50759         * tests/test-ceill.c (minus_zero): Likewise.
50760         * tests/test-floorl.c (minus_zero): Likewise.
50761         * tests/test-frexpl.c (minus_zero): Likewise.
50762         * tests/test-isnan.c (minus_zerol): Likewise.
50763         * tests/test-isnanl.h (minus_zero): Likewise.
50764         * tests/test-ldexpl.c (minus_zero): Likewise.
50765         * tests/test-roundl.c (minus_zero): Likewise.
50766         * tests/test-signbit.c (minus_zerol): Likewise.
50767         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50768         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50769         * tests/test-truncl.c (minus_zero): Likewise.
50770         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50771         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50772         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50773         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50774
50775 2008-10-17  Bruno Haible  <bruno@clisp.org>
50776
50777         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50778         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50779         that it gets activated only for gcc >= 3.0.
50780         * lib/dirent.in.h: Likewise.
50781         * lib/errno.in.h: Likewise.
50782         * lib/fcntl.in.h: Likewise.
50783         * lib/float.in.h: Likewise.
50784         * lib/iconv.in.h: Likewise.
50785         * lib/inttypes.in.h: Likewise.
50786         * lib/locale.in.h: Likewise.
50787         * lib/math.in.h: Likewise.
50788         * lib/netdb.in.h: Likewise.
50789         * lib/netinet_in.in.h: Likewise.
50790         * lib/search.in.h: Likewise.
50791         * lib/signal.in.h: Likewise.
50792         * lib/spawn.in.h: Likewise.
50793         * lib/stdarg.in.h: Likewise.
50794         * lib/stdint.in.h: Likewise.
50795         * lib/stdio.in.h: Likewise.
50796         * lib/stdlib.in.h: Likewise.
50797         * lib/string.in.h: Likewise.
50798         * lib/strings.in.h: Likewise.
50799         * lib/sys_file.in.h: Likewise.
50800         * lib/sys_ioctl.in.h: Likewise.
50801         * lib/sys_select.in.h: Likewise.
50802         * lib/sys_socket.in.h: Likewise.
50803         * lib/sys_stat.in.h: Likewise.
50804         * lib/sys_time.in.h: Likewise.
50805         * lib/sysexits.in.h: Likewise.
50806         * lib/time.in.h: Likewise.
50807         * lib/unistd.in.h: Likewise.
50808         * lib/wchar.in.h: Likewise.
50809         * lib/wctype.in.h: Likewise.
50810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50811
50812 2008-10-17  Jim Meyering  <meyering@redhat.com>
50813
50814         ignore-value: don't depend on inline module
50815         * modules/ignore-value (Depends-on): Remove 'inline'.
50816         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50817         Suggestion from Bruno Haible.
50818
50819 2008-10-17  Bruno Haible  <bruno@clisp.org>
50820
50821         New implementation of condition variables for Win32.
50822         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50823         (gl_linked_waitqueue_t): New type.
50824         (gl_cond_t): Use it.
50825         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50826         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50827         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50828         (glthread_cond_init_func, glthread_cond_wait_func,
50829         glthread_cond_timedwait_func, glthread_cond_signal_func,
50830         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50831         Reimplemented on the basis of gl_linked_waitqueue_t.
50832         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50833         gl_waitqueue_t.
50834         (gl_rwlock_t): Update.
50835         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50836
50837 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50838
50839         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50840         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50841
50842 2008-10-17  Jim Meyering  <meyering@redhat.com>
50843
50844         ignore-value: new module
50845         * modules/ignore-value: New file.
50846         * lib/ignore-value.h: New file.
50847         * MODULES.html.sh (Compiler warning management): New section,
50848         just for this module.  More to come.
50849
50850 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50851
50852         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50853         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50854         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50855
50856 2008-10-16  Jim Meyering  <meyering@redhat.com>
50857
50858         openat-die.c: avoid 'no previous prototype' warning
50859         * lib/openat-die.c: Include "openat.h".
50860         Reported by Reuben Thomas <rrt@sc3d.org>.
50861
50862 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50863
50864         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50865         * lib/netdb.in.h: Fix typo.
50866         Reported by Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/netdb.in.h: Include sys/socket.h for platforms without
50869         netdb.h, to get structures like hostent on MinGW.
50870         * modules/netdb (Depends-on): Add sys_socket.
50871
50872 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50873
50874         * modules/netdb, modules/netdb-tests: New file.
50875         * m4/netdb_h.m4: New file.
50876         * lib/netdb.in.h: Add, currently just an empty file pending
50877         definitions.
50878         * tests/test-netdb.c: New file.
50879         * doc/posix-headers/netdb.texi: Mention that we replace it if
50880         needed.
50881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50882         netdb.
50883
50884 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50885
50886         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50887         with code.
50888
50889 2008-10-13  Bruno Haible  <bruno@clisp.org>
50890
50891         * lib/glthread/cond.c (glthread_cond_wait_func,
50892         glthread_cond_timedwait_func): Add a comment.
50893
50894 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50895
50896         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50897         * tests/test-select.c: Likewise,
50898
50899 2008-10-13  Bruno Haible  <bruno@clisp.org>
50900
50901         * lib/glthread/cond.c (glthread_cond_wait_func,
50902         glthread_cond_timedwait_func): Fix variable name.
50903         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50904
50905 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50906
50907         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50909         struct sockaddr.sa_len.
50910         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50911
50912 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50913
50914         * build-aux/pmccabe2html: Add css and css_url parameters.
50915
50916 2008-10-12  Bruno Haible  <bruno@clisp.org>
50917
50918         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50919         calling aclx_get.
50920         Reported by Rainer Tammer <tammer@tammer.net>.
50921
50922 2008-10-12  Bruno Haible  <bruno@clisp.org>
50923
50924         Use msvcrt aware primitives for creation/termination of Win32 threads.
50925         * lib/glthread/thread.c: Include <process.h>.
50926         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50927         (wrapper_func): Update signature.
50928         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50929
50930 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50931             Bruno Haible  <bruno@clisp.org>
50932
50933         Provide a Win32 implementation of the 'cond' module.
50934         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50935         * lib/glthread/cond.c (glthread_cond_init_func,
50936         glthread_cond_wait_func, glthread_cond_timedwait_func,
50937         glthread_cond_signal_func, glthread_cond_broadcast_func,
50938         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50939         * modules/cond (Dependencies): Add gettimeofday.
50940
50941 2008-10-11  Bruno Haible  <bruno@clisp.org>
50942
50943         Make sleep work on older versions of mingw.
50944         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50945         only whether it exists.
50946         * doc/posix-functions/sleep.texi: Mention the problem with older
50947         versions of mingw.
50948
50949 2008-10-11  Bruno Haible  <bruno@clisp.org>
50950
50951         New module 'shutdown'.
50952         * modules/shutdown: New file.
50953         * lib/sys_socket.in.h (shutdown): New declaration.
50954         * lib/winsock.c (shutdown): New function.
50955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50956         GNULIB_SHUTDOWN.
50957         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50958         * doc/posix-functions/shutdown.texi: Document the new module.
50959
50960 2008-10-11  Jim Meyering  <meyering@redhat.com>
50961
50962         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50963
50964 2008-10-11  Bruno Haible  <bruno@clisp.org>
50965
50966         New module 'fclose'.
50967         * modules/fclose: New file.
50968         * lib/stdio.in.h (fclose): New declaration.
50969         * lib/fclose.c: New file.
50970         * m4/fclose.m4: New file.
50971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50972         REPLACE_FCLOSE.
50973         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50974         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50975         REPLACE_FCLOSE.
50976         * modules/close (Depends-on): fclose.
50977         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50978
50979 2008-10-11  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50982         set errno and don't call _close.
50983
50984 2008-10-10  Bruno Haible  <bruno@clisp.org>
50985
50986         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50987         ACL, not afterwards. Fixes test failure on Cygwin.
50988
50989 2008-10-09  Ben Pfaff  <blp@gnu.org>
50990
50991         * build-aux/announce-gen: Fix gnulib version related part of usage
50992         message.  Die with a useful error message if no tarballs are
50993         found.
50994
50995 2008-10-10  Jim Meyering  <meyering@redhat.com>
50996
50997         bootstrap: use git's --depth=N option only if it's supported
50998         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50999         recognize the --depth option.  Reported by Pádraig Brady.
51000
51001 2008-10-09  Bruno Haible  <bruno@clisp.org>
51002
51003         New module 'ioctl'.
51004         * modules/ioctl: New file.
51005         * lib/sys_socket.in.h (ioctl): Remove declaration.
51006         * lib/winsock.c: Include <sys/ioctl.h>.
51007         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51009         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51010         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51011         * doc/posix-functions/ioctl.texi: Mention the new module.
51012
51013 2008-10-09  Bruno Haible  <bruno@clisp.org>
51014
51015         New module 'sys_ioctl'.
51016         * lib/sys_ioctl.in.h: New file.
51017         * m4/sys_ioctl_h.m4: New file.
51018         * modules/sys_ioctl: New file.
51019         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51020
51021 2008-10-09  Bruno Haible  <bruno@clisp.org>
51022
51023         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51024         * lib/winsock.c: Include <stdarg.h>.
51025         (rpl_ioctl): Change to second argument 'int' and then varargs.
51026
51027 2008-10-09  Bruno Haible  <bruno@clisp.org>
51028
51029         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51030         when the sys_socket module is present and the system has <winsock2.h>.
51031
51032 2008-10-09  Bruno Haible  <bruno@clisp.org>
51033
51034         * doc/posix-functions/close.texi: Mention module 'close' instead of
51035         module 'sys_socket'.
51036
51037 2008-10-09  Bruno Haible  <bruno@clisp.org>
51038
51039         * doc/glibc-headers/sys_ioctl.texi: New file.
51040         * doc/gnulib.texi: Include it.
51041
51042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51043             Bruno Haible  <bruno@clisp.org>
51044
51045         Combine the two replacements of 'close'.
51046         * lib/sys_socket.in.h (close): Define to a reminder to include
51047         <unistd.h>.
51048         (_gl_close_fd_maybe_socket): New declaration.
51049         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51050         * lib/winsock.c (close): Remove undefinition.
51051         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51052         needed for the gnulib module 'close'.
51053         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51054         define to an error symbol or to a warning, if suitable.
51055         * lib/close.c: Include <sys/socket.h>.
51056         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51057         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51058         UNISTD_H_HAVE_WINSOCK2_H.
51059         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51061         UNISTD_H_HAVE_WINSOCK2_H.
51062         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51063         (configure.ac): Set a module indicator.
51064         (Makefile.am): Substitute GNULIB_CLOSE.
51065         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51066         * modules/poll-tests (Depends-on): Add close.
51067         * modules/select-tests (Depends-on): Likewise.
51068
51069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51070             Bruno Haible  <bruno@clisp.org>
51071
51072         New module 'close'.
51073         * modules/close: New file.
51074         * lib/unistd.in.h (close): Move declaration out of the
51075         FCHDIR_REPLACEMENT scope.
51076         (_gl_unregister_fd): New declaration.
51077         * lib/close.c: New file.
51078         * lib/fchdir.c (rpl_close): Remove function.
51079         * m4/close.m4: New file.
51080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51081         close.
51082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51083         REPLACE_CLOSE.
51084         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51085         REPLACE_CLOSE.
51086         * modules/fchdir (Depends-on): Add close.
51087
51088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51089             Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/fcntl.in.h (open): Simplify conditionals.
51092         (_gl_register_fd): New declaration.
51093         * lib/fchdir.c (rpl_open): Remove function.
51094         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51095         also.
51096         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51098         open.
51099
51100 2008-10-09  Jim Meyering  <meyering@redhat.com>
51101
51102         GNUmakefile: use the more name-space-friendly "_version"
51103         * top/GNUmakefile (_dummy): Update.
51104         (_version): Rename from "version".
51105
51106 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51107             Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51110         rpl_close.
51111         (_gl_register_fd): New function, extracted from rpl_open.
51112         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51113         (rpl_open, rpl_opendir): Use _gl_register_fd.
51114
51115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51116
51117         Fix organization of 'open' replacement.
51118         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51119         (gl_FUNC_OPEN): Use it.
51120         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51121
51122 2008-10-08  Bruno Haible  <bruno@clisp.org>
51123
51124         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51125
51126 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51127
51128         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51129         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51130         listen).
51131
51132 2008-10-08  Eric Blake  <ebb9@byu.net>
51133
51134         GNUmakefile: add 'make version' target
51135         * top/GNUmakefile (_curr-ver): Split version update rules...
51136         (version): ...into a target.
51137
51138 2008-10-07  Bruno Haible  <bruno@clisp.org>
51139
51140         Use a more portable replacement expression for -0.0L.
51141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51142         instead of -0.0L. Fix m4 quotation.
51143
51144         * tests/test-signbit.c: Include <float.h>.
51145         (minus_zero): New variable.
51146         (test_signbitl): Use minus_zero instead of -zero.
51147         * modules/signbit-tests (Depends-on): Add float.
51148
51149         * tests/test-ceill.c: Include <float.h>.
51150         (zero): Remove variable.
51151         (minus_zero): New variable.
51152         (main): Use minus_zero instead of -zero.
51153         * modules/ceill-tests (Depends-on): Add float.
51154
51155         * tests/test-floorl.c: Include <float.h>.
51156         (zero): Remove variable.
51157         (minus_zero): New variable.
51158         (main): Use minus_zero instead of -zero.
51159         * modules/floorl-tests (Depends-on): Add float.
51160
51161         * tests/test-roundl.c: Include <float.h>.
51162         (zero): Remove variable.
51163         (minus_zero): New variable.
51164         (main): Use minus_zero instead of -zero.
51165         * modules/roundl-tests (Depends-on): Add float.
51166
51167         * tests/test-truncl.c: Include <float.h>.
51168         (zero): Remove variable.
51169         (minus_zero): New variable.
51170         (main): Use minus_zero instead of -zero.
51171         * modules/truncl-tests (Depends-on): Add float.
51172
51173         * tests/test-frexpl.c (zero): Remove variable.
51174         (minus_zero): New variable.
51175         (main): Use minus_zero instead of -zero.
51176         * modules/frexpl-tests (Depends-on): Add float.
51177
51178         * tests/test-isnan.c (zerol): Remove variable.
51179         (minus_zerol): New variable.
51180         (test_long_double): Use minus_zerol instead of -zerol.
51181         * modules/isnan-tests (Depends-on): Add float.
51182
51183         * tests/test-isnanl.h (zero): Remove variable.
51184         (minus_zero): New variable.
51185         (main): Use minus_zero instead of -zero.
51186         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51187         * modules/isnanl-tests (Depends-on): Add float.
51188
51189         * tests/test-ldexpl.c (zero): Remove variable.
51190         (minus_zero): New variable.
51191         (main): Use minus_zero instead of -zero.
51192         * modules/ldexpl-tests (Depends-on): Add float.
51193
51194         * tests/test-snprintf-posix.h (zerol): Remove variable.
51195         (minus_zerol): New variable.
51196         (test_function): Use minus_zerol instead of -zerol.
51197         * modules/snprintf-posix-tests (Depends-on): Add float.
51198         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51199
51200         * tests/test-sprintf-posix.h (zerol): Remove variable.
51201         (minus_zerol): New variable.
51202         (test_function): Use minus_zerol instead of -zerol.
51203         * modules/sprintf-posix-tests (Depends-on): Add float.
51204         * modules/vsprintf-posix-tests (Depends-on): Add float.
51205
51206         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51207         (minus_zerol): New variable.
51208         (test_function): Use minus_zerol instead of -zerol.
51209         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51210
51211         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51212         (minus_zerol): New variable.
51213         (test_function): Use minus_zerol instead of -zerol.
51214         * modules/vasprintf-posix-tests (Depends-on): Add float.
51215
51216 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51217
51218         * MODULES.html.sh (Support for building documentation): Mention
51219         pmccabe2html.  Sort entries.
51220
51221         Add pmccabe2html module, from gnupdf.
51222         * build-aux/pmccabe.css: New file.
51223         * build-aux/pmccabe2html: New file.
51224         * m4/pmccabe2html.m4: New file.
51225         * modules/pmccabe2html: New file.
51226
51227 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51228
51229         flock: new module
51230         * MODULES.html.sh: Add to list of modules.
51231         * lib/flock.c: flock implementation for Windows and Unix systems
51232         which have fcntl.
51233         * doc/glibc-functions/flock.texi: Update documentation.
51234         * lib/sys_file.in.h: <sys/file.h> header file.
51235         * m4/flock.m4: M4 macros.
51236         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51237         * modules/flock: flock module.
51238         * modules/flock-tests: flock tests module.
51239         * modules/sys_file: sys/file.h module.
51240         * tests/test-flock.c: test suite for flock.
51241
51242 2008-10-06  Jim Meyering  <meyering@redhat.com>
51243
51244         bootstrap: check for LT_INIT more portably still ;-)
51245         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51246         Spotted by Bruno Haible.
51247
51248 2008-10-06  Eric Blake  <ebb9@byu.net>
51249
51250         test-signbit: avoid tripping Irix cc bug on -0.0L
51251         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51252         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51253         entire testsuite consistent and avoids an Irix 6.2 bug.
51254
51255 2008-10-05  Bruno Haible  <bruno@clisp.org>
51256             Jim Meyering  <jim@meyering.net>
51257
51258         Add an option for ignoring EPIPE during close_stdout.
51259         * lib/closeout.h: Include <stdbool.h>.
51260         (close_stdout_set_ignore_EPIPE): New declaration.
51261         * lib/closeout.c: Include <stdbool.h>.
51262         (ignore_EPIPE): New variable.
51263         (close_stdout_set_ignore_EPIPE): New function.
51264         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51265         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51266         failure.
51267         * modules/closeout (Depends-on): Add stdbool.
51268
51269 2008-10-05  Bruno Haible  <bruno@clisp.org>
51270
51271         * modules/accept: New file.
51272         * modules/bind: New file.
51273         * modules/connect: New file.
51274         * modules/getpeername: New file.
51275         * modules/getsockname: New file.
51276         * modules/getsockopt: New file.
51277         * modules/listen: New file.
51278         * modules/recv: New file.
51279         * modules/recvfrom: New file.
51280         * modules/send: New file.
51281         * modules/sendto: New file.
51282         * modules/setsockopt: New file.
51283         * modules/socket: New file.
51284         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51285         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51286         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51287         the particular module is requested. Add a link warning when the
51288         particular module is not requested.
51289         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51290         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51291         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51292         the particular module is requested.
51293         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51294         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51295         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51296         * modules/sys_socket (Depends-on): Add link-warning.
51297         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51298         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51299         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51300         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51301         GL_LINK_WARNING.
51302         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51303         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51304         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51305         * doc/posix-functions/getpeername.texi: Mention the new module
51306         'getpeername'.
51307         * doc/posix-functions/getsockname.texi: Mention the new module
51308         'getsockname'.
51309         * doc/posix-functions/getsockopt.texi: Mention the new module
51310         'getsockopt'.
51311         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51312         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51313         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51314         * doc/posix-functions/send.texi: Mention the new module 'send'.
51315         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51316         * doc/posix-functions/setsockopt.texi: Mention the new module
51317         'setsockopt'.
51318         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51319         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51320         listen, connect, accept.
51321         * modules/select-tests (Depends-on): Likewise.
51322
51323 2008-10-05  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/winsock.c (strerror): Remove unused #undef.
51326         (rpl_close): Remove unused local variable.
51327
51328         * modules/sys_socket (Depends-on); Add errno.
51329
51330 2008-10-05  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51333         (select): Add a link warning when the 'select' module is not used.
51334         * modules/sys_select (Depends-on): Add link-warning.
51335         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51336         Suggested by Paolo Bonzini.
51337
51338 2008-10-05  Jim Meyering  <meyering@redhat.com>
51339
51340         bootstrap: check for LT_INIT more portably
51341         * build-aux/bootstrap: Avoid using grep -E, since it's not
51342         portable enough.  Suggestion from Bruno Haible.
51343
51344 2008-10-05  Bruno Haible  <bruno@clisp.org>
51345
51346         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51347         as being fixed by gnulib.
51348
51349 2008-10-05  Bruno Haible  <bruno@clisp.org>
51350
51351         * modules/select-tests: New file, mostly copied from
51352         modules/sys_select-tests.
51353         * tests/test-select.c: New file, mostly copied from
51354         tests/test-sys_select.c.
51355         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51356         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51357         (Makefile.am): Remove test_sys_select_LDADD.
51358
51359         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51360         to an undefined symbol, for an error message.
51361         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51362         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51363         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51364         winsock-select.c here.
51365         * modules/sys_select (Files): Remove lib/winsock-select.c.
51366         (Depends-on): Remove alloca.
51367         (Makefile.am): Substitute GNULIB_SELECT.
51368         * modules/select: New file.
51369         * doc/posix-functions/select.texi: Update.
51370
51371 2008-10-05  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51374         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51375         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51376         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51377         getdtablesize.
51378         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51379         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51380
51381 2008-10-05  Bruno Haible  <bruno@clisp.org>
51382
51383         * modules/getdtablesize-tests: New file.
51384         * tests/test-getdtablesize.c: New file.
51385
51386         New module 'getdtablesize'.
51387         * lib/unistd.in.h (getdtablesize): New declaration.
51388         * lib/getdtablesize.c: New file.
51389         * m4/getdtablesize.m4: New file.
51390         * modules/getdtablesize: New file.
51391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51392         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51393         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51394         HAVE_GETDTABLESIZE.
51395         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51396
51397 2008-10-05  Bruno Haible  <bruno@clisp.org>
51398
51399         * modules/sched (Makefile.am): Fix typo.
51400         Reported by Simon Josefsson.
51401
51402 2008-10-05  Jim Meyering  <meyering@redhat.com>
51403
51404         bootstrap: check for LT_INIT, too
51405         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51406         are deprecated.  Suggestion from Ralf Wildenhues.
51407
51408 2008-10-05  Bruno Haible  <bruno@clisp.org>
51409
51410         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51411         overriding them by ours.
51412         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51413
51414 2008-10-05  Jim Meyering  <meyering@redhat.com>
51415
51416         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51417         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51418         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51419
51420 2008-10-04  Bruno Haible  <bruno@clisp.org>
51421
51422         * modules/dup2 (License): Change to LGPLv2+.
51423         * modules/sleep (License): Likewise.
51424         * modules/perror (License): Likewise.
51425         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51426         Blake.
51427         * modules/signal (License): Likewise.
51428         * modules/sigprocmask (License): Likewise.
51429         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51430         Meyering.
51431
51432 2008-10-04  Bruno Haible  <bruno@clisp.org>
51433
51434         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51435         Reported by Rainer Tammer <tammer@tammer.net>.
51436
51437 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51438             Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51441         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51442         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51443
51444 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51445
51446         filevercmp: new module
51447         * lib/filevercmp.h: New function filevercmp comparing version strings.
51448         * lib/filevercmp.c: Implementation of filevercmp function.
51449         * modules/filevercmp: Module metadata.
51450         * tests/test-filevercmp.c: Unit test for new module.
51451         * modules/filevercmp-tests: Unit test metadata.
51452         * MODULES.html.sh: Add filevercmp module.
51453
51454 2008-10-03  Bruno Haible  <bruno@clisp.org>
51455
51456         * lib/c-ctype.h: Add comment.
51457         Reported by Jim Meyering.
51458
51459 2008-10-02  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51462
51463 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51464
51465         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51466         name of bootstrap.conf accordingly.
51467
51468 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51469
51470         * build-aux/bootstrap: Install git-merge-changelog configuration
51471         items into .gitconfig if needed.
51472
51473 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51474
51475         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51476         git repository, and initialize/update it accordingly.
51477
51478 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51479
51480         * modules/fsync-tests: New file.
51481         * tests/test-fsync.c: New file.
51482
51483         New module 'fsync'.
51484         * lib/fsync.c: New file.
51485         * m4/fsync.m4: New file.
51486         * modules/fsync: New file.
51487         * lib/unistd.in.h (fsync): New declaration.
51488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51489         GNULIB_FSYNC and HAVE_FSYNC.
51490         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51491         * MODULES.html.sh (posix_functions): Add fsync.
51492         * doc/posix-functions/fsync.texi: Mention the new module.
51493
51494 2008-10-02  Jim Meyering  <meyering@redhat.com>
51495
51496         fts.c: sync with similar code from coreutils' remove.c
51497         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51498         Guard also with "#if defined __linux__", since for now at least,
51499         this code is Linux-kernel-specific.
51500
51501 2008-10-02  Jim Meyering  <meyering@redhat.com>
51502
51503         fts: bug fixes
51504         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51505         Include <sys/vfs.h>, not <sys/statfs.h>.
51506
51507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51508         Include <sys/vfs.h>, not <sys/statfs.h>.
51509
51510 2008-10-01  Bruno Haible  <bruno@clisp.org>
51511
51512         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51514         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51515         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51516         * doc/posix-functions/posix_spawnp.texi: Likewise.
51517         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51518         whether posix_spawn actually works.
51519         * m4/pipe.m4 (gl_PIPE): Likewise.
51520         * modules/execute (Files): Add m4/posix_spawn.m4.
51521         * modules/pipe (Files): Add m4/posix_spawn.m4.
51522         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51523
51524 2008-10-01  Jim Meyering  <meyering@redhat.com>
51525
51526         remove trailing spaces
51527         * NEWS: Likewise.
51528         * lib/poll.c (poll): Likewise.
51529         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51530         * lib/winsock.c (rpl_close): Likewise.
51531         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51532         * modules/yield: Likewise.
51533         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51534         * tests/test-sys_select.c (connect_to_socket): Likewise.
51535
51536         fts.c: adjust a new interface to be more generally useful
51537         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51538         (fts_build): Adjust caller.
51539
51540 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51541
51542         * modules/cond-tests: New file.
51543         * tests/test-cond.c: New file.
51544
51545 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51546             Bruno Haible  <bruno@clisp.org>
51547
51548         * modules/cond (Dependencies): Add errno, time.
51549         * lib/glthread/cond.h: Include <time.h>.
51550         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51551         across platforms.
51552
51553 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51554             Bruno Haible  <bruno@clisp.org>
51555
51556         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51557
51558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51559             Bruno Haible  <bruno@clisp.org>
51560
51561         * modules/tls-tests (Depends-on): Add thread, yield.
51562         (configure.ac): Remove all checks.
51563         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51564         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51565         gl_thread_self): Remove definitions. Include glthread/thread.h and
51566         glthread/yield.h instead.
51567         (test_tls): Pass an additional NULL argument to gl_thread_join.
51568
51569 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51570             Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/lock-tests (Depends-on): Add thread, yield.
51573         (configure.ac): Remove all checks.
51574         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51575         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51576         gl_thread_self): Remove definitions. Include glthread/thread.h and
51577         glthread/yield.h instead.
51578         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51579         additional NULL argument to gl_thread_join.
51580
51581 2008-09-30  Bruno Haible  <bruno@clisp.org>
51582
51583         Fix the Win32 implementation of the 'thread' module.
51584         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51585         pointer type.
51586         (gl_thread_self): Invoke gl_thread_self_func.
51587         (gl_thread_self_func): New declaration.
51588         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51589         (do_init_self_key, init_self_key): New functions.
51590         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51591         Remove some fields.
51592         (running_threads, running_lock): Remove variables.
51593         (get_current_thread_handle): New function.
51594         (gl_thread_self_func, wrapper_func, glthread_create_func,
51595         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51596         simplified.
51597
51598 2008-09-30  Bruno Haible  <bruno@clisp.org>
51599
51600         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51601         files.
51602
51603 2008-09-30  Jim Meyering  <meyering@redhat.com>
51604
51605         fts.m4: correct the test for statfs.f_type
51606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51607         when checking for statfs.f_type.
51608
51609 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51610
51611         tests: avoid some compiler warnings
51612         * tests/test-memchr.c (main): Pass NULL indirectly.
51613         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51614
51615 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51616
51617         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51618         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51619         exactly specified dayshifts.
51620         (dayshift): New rule.
51621         (rel): Add dayshift.
51622         (relative_time_table) [tomorrow, yesterday, today, now]:
51623         Use tDAY_SHIFT in place of tDAY_UNIT.
51624         * tests/test-getdate.c: Add tests for now-disallowed countable
51625         dayshifts, e.g., "4 yesterday ago".
51626
51627 2008-09-29  Bruno Haible  <bruno@clisp.org>
51628
51629         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51630         * tests/test-posix_spawn1.in.sh: Renamed from
51631         tests/test-posix_spawn.in.sh.
51632         * tests/test-posix_spawn2.c: New file.
51633         * tests/test-posix_spawn2.in.sh: New file.
51634         * modules/posix_spawnp-tests (Files): Update.
51635         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51636
51637 2008-09-29  Bruno Haible  <bruno@clisp.org>
51638
51639         Propagate effects of putenv/setenv/unsetenv to child processes.
51640         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51641         * lib/pipe.c (create_pipe): Likewise.
51642
51643 2008-09-29  Bruno Haible  <bruno@clisp.org>
51644
51645         Enable use of shell scripts as executables in mingw.
51646         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51647         run the program as a shell script.
51648         * lib/pipe.c (create_pipe): Likewise.
51649         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51650         resulting array.
51651
51652 2008-09-29  Eric Blake  <ebb9@byu.net>
51653
51654         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51655
51656 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51657
51658         * doc/posix-functions/accept.texi: Update mingw problems.
51659         * doc/posix-functions/bind.texi: Update mingw problems.
51660         * doc/posix-functions/close.texi: Update mingw problems.
51661         * doc/posix-functions/connect.texi: Update mingw problems.
51662         * doc/posix-functions/getpeername.texi: Update mingw problems.
51663         * doc/posix-functions/getsockname.texi: Update mingw problems.
51664         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51665         * doc/posix-functions/ioctl.texi: Update mingw problems.
51666         * doc/posix-functions/listen.texi: Update mingw problems.
51667         * doc/posix-functions/recv.texi: Update mingw problems.
51668         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51669         * doc/posix-functions/select.texi: Update mingw problems.
51670         * doc/posix-functions/send.texi: Update mingw problems.
51671         * doc/posix-functions/sendto.texi: Update mingw problems.
51672         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51673         * doc/posix-functions/socket.texi: Update mingw problems.
51674
51675 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51676             Bruno Haible  <bruno@clisp.org>
51677
51678         * lib/sys_select.in.h: Include sys/time.h.
51679         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51680         * modules/sys_select: Depend on sys_time.
51681         * tests/test-sys_select.c: Test that sys/select.h defines struct
51682         timeval fully.
51683
51684 2008-09-29  Bruno Haible  <bruno@clisp.org>
51685
51686         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51687         * lib/sys_select.in.h: Likewise.
51688
51689 2008-09-29  Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51692
51693 2008-09-29  Bruno Haible  <bruno@clisp.org>
51694
51695         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51696         Set LIBSOCKET instead of augmenting LIBS.
51697         * modules/sockets (Link): New section.
51698         * modules/sockets-tests (test_sockets_LDADD): New variable.
51699         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51700         * modules/poll-tests (test_poll_LDADD): New variable.
51701         * NEWS: Document the change.
51702
51703 2008-09-29  Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51706         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51707         ARPA_INET_H directly.
51708         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51709
51710 2008-09-28  Bruno Haible  <bruno@clisp.org>
51711
51712         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51713         from gl_HEADER_SYS_SOCKET.
51714         (gl_HEADER_SYS_SOCKET): Invoke it.
51715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51716
51717 2008-09-28  Bruno Haible  <bruno@clisp.org>
51718
51719         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51720         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51721         Needed on OSF/1 4.0.
51722
51723 2008-09-28  Bruno Haible  <bruno@clisp.org>
51724
51725         Override open more carefully.
51726         * lib/open.c (orig_open): New function.
51727         (rpl_open): Use orig_open instead of open.
51728         * lib/fcntl.in.h: Add special invocation convention.
51729         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51730         (gl_FUNC_OPEN): Invoke it.
51731
51732         Override freopen more carefully.
51733         * lib/freopen.c (orig_freopen): New function.
51734         (rpl_freopen): Use orig_freopen instead of freopen.
51735         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51736         (gl_FUNC_FREOPEN): Invoke it.
51737
51738         Override fopen more carefully.
51739         * lib/fopen.c (orig_fopen): New function.
51740         (rpl_fopen): Use orig_fopen instead of fopen.
51741         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51742         (gl_FUNC_FOPEN): Invoke it.
51743         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51744
51745 2008-09-28  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51748         SIGPIPE.
51749
51750 2008-09-28  Bruno Haible  <bruno@clisp.org>
51751
51752         * tests/test-sigaction.c (handler, main): Disable the check whether
51753         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51754         glibc systems with LinuxThreads.
51755
51756 2008-09-28  Bruno Haible  <bruno@clisp.org>
51757
51758         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51759
51760         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51761         with AIX xlc.
51762         * lib/fcntl.in.h (open): Likewise.
51763         Reported by Rainer Tammer <tammer@tammer.net>.
51764
51765 2008-09-28  Bruno Haible  <bruno@clisp.org>
51766
51767         * modules/posix_spawnp-tests: New file.
51768         * tests/test-posix_spawn.c: New file.
51769         * tests/test-posix_spawn.in.sh: New file.
51770
51771         New module 'posix_spawnp'.
51772         * modules/posix_spawnp: New file.
51773         * lib/spawnp.c: New file, from GNU libc with modifications.
51774         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51775
51776         New module 'posix_spawn'.
51777         * modules/posix_spawn: New file.
51778         * lib/spawn.c: New file, from GNU libc with modifications.
51779         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51780
51781         New module 'posix_spawnattr_destroy'.
51782         * modules/posix_spawnattr_destroy: New file.
51783         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51784         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51785         module.
51786
51787         New module 'posix_spawnattr_setsigmask'.
51788         * modules/posix_spawnattr_setsigmask: New file.
51789         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51790         modifications.
51791         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51792         new module.
51793
51794         New module 'posix_spawnattr_getsigmask'.
51795         * modules/posix_spawnattr_getsigmask: New file.
51796         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51797         modifications.
51798         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51799         new module.
51800
51801         New module 'posix_spawnattr_setsigdefault'.
51802         * modules/posix_spawnattr_setsigdefault: New file.
51803         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51804         modifications.
51805         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51806         new module.
51807
51808         New module 'posix_spawnattr_getsigdefault'.
51809         * modules/posix_spawnattr_getsigdefault: New file.
51810         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51811         modifications.
51812         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51813         new module.
51814
51815         New module 'posix_spawnattr_setschedpolicy'.
51816         * modules/posix_spawnattr_setschedpolicy: New file.
51817         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51818         modifications.
51819         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51820         new module.
51821
51822         New module 'posix_spawnattr_getschedpolicy'.
51823         * modules/posix_spawnattr_getschedpolicy: New file.
51824         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51825         modifications.
51826         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51827         new module.
51828
51829         New module 'posix_spawnattr_setschedparam'.
51830         * modules/posix_spawnattr_setschedparam: New file.
51831         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51832         modifications.
51833         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51834         new module.
51835
51836         New module 'posix_spawnattr_getschedparam'.
51837         * modules/posix_spawnattr_getschedparam: New file.
51838         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51839         modifications.
51840         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51841         new module.
51842
51843         New module 'posix_spawnattr_setpgroup'.
51844         * modules/posix_spawnattr_setpgroup: New file.
51845         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51846         modifications.
51847         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51848         module.
51849
51850         New module 'posix_spawnattr_getpgroup'.
51851         * modules/posix_spawnattr_getpgroup: New file.
51852         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51853         modifications.
51854         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51855         module.
51856
51857         New module 'posix_spawnattr_setflags'.
51858         * modules/posix_spawnattr_setflags: New file.
51859         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51860         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51861         module.
51862
51863         New module 'posix_spawnattr_getflags'.
51864         * modules/posix_spawnattr_getflags: New file.
51865         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51866         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51867         module.
51868
51869         New module 'posix_spawnattr_init'.
51870         * modules/posix_spawnattr_init: New file.
51871         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51872         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51873         module.
51874
51875         New module 'posix_spawn_file_actions_destroy'.
51876         * modules/posix_spawn_file_actions_destroy: New file.
51877         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51878         modifications.
51879         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51880         the new module.
51881
51882         New module 'posix_spawn_file_actions_addopen'.
51883         * modules/posix_spawn_file_actions_addopen: New file.
51884         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51885         modifications.
51886         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51887         the new module.
51888
51889         New module 'posix_spawn_file_actions_adddup2'.
51890         * modules/posix_spawn_file_actions_adddup2: New file.
51891         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51892         modifications.
51893         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51894         the new module.
51895
51896         New module 'posix_spawn_file_actions_addclose'.
51897         * modules/posix_spawn_file_actions_addclose: New file.
51898         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51899         modifications.
51900         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51901         the new module.
51902
51903         New module 'posix_spawn_file_actions_init'.
51904         * modules/posix_spawn_file_actions_init: New file.
51905         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51906         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51907         new module.
51908
51909         New module 'posix_spawn-internal'.
51910         * modules/posix_spawn-internal: New file.
51911         * lib/spawn_int.h: New file, from GNU libc with modifications.
51912         * lib/spawni.c: New file, from GNU libc with modifications.
51913         * m4/posix_spawn.m4: New file.
51914
51915         New module 'spawn'.
51916         * modules/spawn: New file.
51917         * lib/spawn.in.h: New file, from GNU libc with modifications.
51918         * m4/spawn_h.m4: New file.
51919         * doc/posix-headers/spawn.texi: Mention the new module.
51920
51921 2008-09-28  Bruno Haible  <bruno@clisp.org>
51922
51923         * modules/sched-tests: New file.
51924         * tests/test-sched.c: New file.
51925
51926         New module 'sched'.
51927         * modules/sched: New file.
51928         * lib/sched.in.h: New file.
51929         * m4/sched_h.m4: New file.
51930         * doc/posix-headers/sched.texi: Mention the new module.
51931
51932 2008-09-27  Eric Blake  <ebb9@byu.net>
51933
51934         Fix previous patch, and tweak references to $0.
51935         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51936         (func_version, func_gnulib_dir): Don't call this program
51937         gnulib-tool.
51938         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51939         with using $0 in function.
51940         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51941         (func_fatal_error): Reuse the name the user invoked us with.
51942
51943 2008-09-27  Bruno Haible  <bruno@clisp.org>
51944
51945         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51946         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51947         (gl_ICONV_H): Not here.
51948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51949         instead of assigning ICONV_H directly.
51950
51951         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51953         WCHAR_H directly.
51954
51955 2008-09-27  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51958         * modules/arpa_inet (Depends-on): Add link-warning.
51959         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51960         * modules/unistd (Makefile.am): Likewise.
51961
51962 2008-09-26  Bruno Haible  <bruno@clisp.org>
51963
51964         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51965         variables.
51966         (func_version): Essentially copied from gnulib-tool.
51967         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51968         func_readlink): Copied from gnulib-tool.
51969
51970 2008-09-26  Bruno Haible  <bruno@clisp.org>
51971
51972         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51973         invoking git-version-gen.
51974
51975 2008-09-26  Bruno Haible  <bruno@clisp.org>
51976
51977         * posix-modules: Update to directory names changed on 2008-01-19.
51978         Remove commas in output before splitting into words. No more need to
51979         avoid 'ftruncate' since 2007-02-19.
51980
51981 2008-09-26  Bruno Haible  <bruno@clisp.org>
51982
51983         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51984
51985 2008-09-26  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51988         * modules/fwriteerror (Depends-on): Add errno.
51989
51990 2008-09-26  Bruno Haible  <bruno@clisp.org>
51991
51992         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51993         * tests/test-vc-list-files-cvs.sh: Likewise.
51994
51995 2008-09-26  Bruno Haible  <bruno@clisp.org>
51996
51997         * doc/posix-headers/sys_resource.texi: Reorder items.
51998
51999 2008-09-26  Jim Meyering  <meyering@redhat.com>
52000
52001         fts: tweak inode comparison function
52002         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52003         inode numbers, as documented.
52004
52005         fts: sort dirent entries on inode number before traversing
52006         This avoids a quadratic, seek-related performance penalty when
52007         operating on a directory containing many entries (measurable at 10k;
52008         3.5 hours at 2 million entries with a cold cache) on certain types
52009         of file systems, including ext3 and ext4, but not tmpfs.
52010         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52011         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52012         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52013         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52014         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52015         (fts_build): Set the stat.st_ino member from D_INO.
52016         If it is likely to be useful, sort dirent entries on inode number.
52017
52018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52019         and the struct statfs.f_type member.
52020         * modules/fts (Depends-on): Add d-ino.
52021
52022 2008-09-26  Bruno Haible  <bruno@clisp.org>
52023
52024         * modules/sigpipe-die (Depends-on): Add sigpipe.
52025
52026         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52027         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52028         and GNULIB_STDIO_H_SIGPIPE are set.
52029         * lib/stdio-write.c: New file.
52030         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52031         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52032         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52033         REPLACE_STDIO_WRITE_FUNCS.
52034         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52035         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52036         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52037         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52038         * modules/stdio (Files): Add lib/stdio-write.c.
52039         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52040         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52041         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52042         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52043         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52044         REPLACE_FPRINTF_POSIX.
52045         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52046         REPLACE_PRINTF_POSIX.
52047         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52048         REPLACE_VFPRINTF_POSIX.
52049         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52050         REPLACE_VPRINTF_POSIX.
52051         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52052         SIGPIPE issue.
52053         * doc/posix-functions/fputc.texi: Likewise.
52054         * doc/posix-functions/fputs.texi: Likewise.
52055         * doc/posix-functions/fwrite.texi: Likewise.
52056         * doc/posix-functions/printf.texi: Likewise.
52057         * doc/posix-functions/putc.texi: Likewise.
52058         * doc/posix-functions/putchar.texi: Likewise.
52059         * doc/posix-functions/puts.texi: Likewise.
52060         * doc/posix-functions/vfprintf.texi: Likewise.
52061         * doc/posix-functions/vprintf.texi: Likewise.
52062
52063         * modules/safe-write (Depends-on): Add write.
52064
52065         * modules/sigpipe-tests: New file.
52066         * tests/test-sigpipe.c: New file.
52067         * tests/test-sigpipe.sh: New file.
52068
52069         * modules/write: New file.
52070         * lib/unistd.in.h: Include <sys/types.h>.
52071         (write): New declaration.
52072         * lib/write.c: New file.
52073         * m4/write.m4: New file.
52074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52075         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52076         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52077         GNULIB_WRITE, REPLACE_WRITE.
52078         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52079         and the SIGPIPE issue.
52080
52081         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52082         (raise): New declaration.
52083         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52084         (ext_signal): New function.
52085         (rpl_raise): New function.
52086         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52087         GNULIB_SIGNAL_H_SIGPIPE.
52088         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52089         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52090
52091         * modules/sigpipe: New file.
52092         * m4/sigpipe.m4: New file.
52093
52094 2008-09-25  Derek Price  <derek@ximbiot.com>
52095             Bruno Haible  <bruno@clisp.org>
52096
52097         * gnulib-tool (func_import): Report all license incompatibilities, not
52098         just the first one.
52099
52100 2008-09-25  Bruno Haible  <bruno@clisp.org>
52101
52102         * gnulib-tool (func_import): When computing the edits, consider not
52103         only the Makefile.ams that exist but also those that will be generated.
52104
52105 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52106
52107         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52108         fixes gnulib-tool --test warning about duplicate dependency.
52109
52110 2008-09-25  Bruno Haible  <bruno@clisp.org>
52111
52112         * gnulib-tool: Don't ask the user to perform edits in the generated
52113         Makefile.ams.
52114         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52115         apply to the Makefile.am being generated.
52116         (func_emit_tests_Makefile_am): Execute edits that apply to the
52117         Makefile.am being generated.
52118         (func_import): Setup list of Makefile.am edits before emitting the
52119         Makefile.ams, not at the end.
52120         (func_create_testdir): Update.
52121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52122
52123 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52124
52125         * gnulib-tool (func_import): Store the --tests-base option in the
52126         comment in gnulib-cache.m4.
52127
52128 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52129
52130         * NEWS: Document increased portability that sys_select now provides.
52131
52132         * lib/sys_select.in.h: Install select wrapper.
52133         * lib/sys_socket.in.h: Use more descriptive name when there is no
52134         select wrapper.
52135         * lib/winsock-select.c: New.
52136         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52137         Require gl_HEADER_SYS_SOCKET.
52138         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52139         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52140         * tests/test-sys_select.c: Add functional tests.
52141
52142 2008-09-24  Eric Blake  <ebb9@byu.net>
52143
52144         open, fopen: close fd leak in last patch
52145         * lib/open.c (rpl_open): Close fd before returning error.
52146         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52147         * doc/posix-functions/open.texi (open): Document that Irix also
52148         has the bug.
52149         * doc/posix-functions/fopen.texi (fopen): Likewise.
52150         Reported by Paolo Bonzini.
52151
52152 2008-09-24  Bruno Haible  <bruno@clisp.org>
52153
52154         Ensure that a filename ending in a slash cannot be used to access a
52155         non-directory.
52156         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52157         to check whether it's really a directory.
52158         * lib/fopen.c: Include fcntl.h, unistd.h.
52159         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52160         and fdopen().
52161         * modules/fopen (Depends-on): Add unistd.
52162         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52163         * tests/test-fopen.c (main): Likewise.
52164         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52165         * doc/posix-functions/fopen.texi: Likewise.
52166         Reported by Eric Blake.
52167
52168 2008-09-23  Eric Blake  <ebb9@byu.net>
52169
52170         c-stack: avoid compiler optimizations when provoking overflow
52171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52172         recursion harder to optimize, to ensure a stack overflow occurs.
52173         * tests/test-c-stack.c (recurse): Likewise.
52174         Borrowed from libsigsegv.
52175
52176         c-stack: work around Irix sigaltstack bug
52177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52178         whether sigaltstack uses wrong end of stack_t (copied in part from
52179         libsigsegv).
52180         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52181         Irix bug, without requiring an over-allocation.
52182         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52183         bug.
52184
52185         fopen: document mingw bug on directories
52186         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52187         not allowing a stream visiting a directory, even though reading
52188         from such a stream is not portable.
52189
52190 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52191
52192         * lib/poll.c: Rewrite.
52193         * modules/poll: Depend on alloca.
52194
52195 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52196
52197         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52198         instead define prototypes for a full set of wrappers.  Ensure
52199         that Cygwin does not use the compatibility code, which is only
52200         for MinGW.
52201         * lib/winsock.c: New.
52202         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52203         * modules/sys_socket: Add lib/winsock.c.
52204
52205         * modules/poll-tests: Add errno and perror.
52206         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52207
52208 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52209
52210         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52211
52212 2008-09-23  Bruno Haible  <bruno@clisp.org>
52213
52214         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52215         * doc/glibc-functions/*: Likewise.
52216
52217 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52218
52219         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52220         success.
52221
52222 2008-09-22  Eric Blake  <ebb9@byu.net>
52223             Bruno Haible  <bruno@clisp.org>
52224
52225         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52226         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52227         supply %A but mishandle pseudo-NaN.
52228         Reported by Simon Josefsson.
52229
52230 2008-09-21  Bruno Haible  <bruno@clisp.org>
52231
52232         * tests/test-lock.c (main): Tweak skip message.
52233         * tests/test-tls.c (main): Likewise.
52234
52235 2008-09-21  Bruno Haible  <bruno@clisp.org>
52236
52237         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52238         whether 'struct sigaction' has sa_sigaction here...
52239         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52240         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52241
52242 2008-09-21  Bruno Haible  <bruno@clisp.org>
52243
52244         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52245         section.
52246         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52247         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52248         the new section.
52249         (Support for obsolete systems lacking POSIX:2001): New section.
52250         (String handling <string.h>): Move strdup to the new section.
52251         Suggested by Simon Josefsson and Paolo Bonzini.
52252
52253 2008-09-21  Bruno Haible  <bruno@clisp.org>
52254
52255         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52256         exponents in %e and %g results on 'long double'. Needed for mingw's
52257         improved *printf functions.
52258         * tests/test-vasprintf-posix.c (test_function): Likewise.
52259         * tests/test-snprintf-posix.h (test_function): Likewise.
52260         * tests/test-sprintf-posix.h (test_function): Likewise.
52261         Reported by Eric Blake.
52262
52263 2008-09-21  Bruno Haible  <bruno@clisp.org>
52264
52265         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52266         * tests/test-sprintf-posix.h (test_function): Likewise.
52267
52268 2008-09-21  Bruno Haible  <bruno@clisp.org>
52269
52270         * modules/getpass (Depends-on): Add strdup-posix.
52271
52272         New module 'strdup-posix'.
52273         * modules/strdup-posix: New file.
52274         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52275         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52277         REPLACE_STRDUP.
52278         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52279         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52281         strdup-posix.
52282
52283         * modules/strdup (Depends-on): Remove malloc-posix.
52284
52285 2008-09-20  Bruno Haible  <bruno@clisp.org>
52286
52287         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52288         Wildenhues.
52289
52290 2008-09-20  Bruno Haible  <bruno@clisp.org>
52291
52292         Ensure that wint_t gets defined on IRIX 5.3.
52293         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52294         * lib/wctype.in.h (wint_t): Likewise.
52295         (__wctype_wint_t): Remove type.
52296         (isw*): Use wint_t instead of __wctype_wint_t.
52297         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52298         * modules/wchar (Files): Add m4/wint_t.m4.
52299         (Makefile.am): Substitute HAVE_WINT_T.
52300         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52301         * tests/test-wctype.c: Check that wint_t is defined.
52302         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52303         * doc/posix-headers/wctype.texi: Likewise.
52304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52305
52306 2008-09-18  Bruno Haible  <bruno@clisp.org>
52307
52308         * gnulib-tool (func_exit): Update comment.
52309
52310 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52311
52312         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52313         assumes strdup exists and does not depend on strdup to return
52314         ENOMEM on out of memory conditions.
52315
52316 2008-09-18  Bruno Haible  <bruno@clisp.org>
52317
52318         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52319         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52320         digits for the exponent.
52321
52322 2008-09-18  Jim Meyering  <meyering@redhat.com>
52323             Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/vasnprintf.c (decimal_point_char): Define also if
52326         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52327
52328 2008-09-16  Bruno Haible  <bruno@clisp.org>
52329         and Eric Blake  <ebb9@byu.net>
52330
52331         vasnprintf: support Irix 5.3
52332         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52333         that mishandle long double infinity.
52334         Reported by Tom G. Christensen.
52335
52336 2008-09-16  Bruno Haible  <bruno@clisp.org>
52337
52338         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52339         Solaris 9.
52340         * doc/glibc-functions/alphasort.texi: Likewise.
52341         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52342
52343 2008-09-16  Jim Meyering  <meyering@redhat.com>
52344
52345         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52346         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52347         a umask modification leak out of a subshell.  Otherwise, the
52348         opensolaris /bin/sh would be accepted and thus cause unwarranted
52349         failures in the coreutils test suite.
52350
52351 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52352
52353         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52354         to succeed.
52355
52356 2008-09-16  Jim Meyering  <meyering@redhat.com>
52357
52358         avoid spurious test failure when library is built without ACL support
52359         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52360         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52361         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52362         * tests/test-copy-acl.sh: Likewise.
52363
52364 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52365
52366         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52367         based on character occurrence counts.
52368
52369 2008-09-15  Eric Blake  <ebb9@byu.net>
52370
52371         tests: avoid some compiler warnings
52372         * tests/test-memchr.c (main): Pass NULL indirectly.
52373         * tests/test-closein.c (main): Avoid unused variable.
52374
52375 2008-09-15  Bruno Haible  <bruno@clisp.org>
52376
52377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52378         are missing on OpenBSD 4.0 individually.
52379         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52380
52381 2008-09-15  Bruno Haible  <bruno@clisp.org>
52382
52383         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52384         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52385         * doc/posix-functions/perror.texi: Likewise.
52386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52387         is missing.
52388         Reported by Eric Blake.
52389
52390         * lib/errno.in.h: Use replacement values >= 2000.
52391         Reported by Eric Blake.
52392
52393 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52394
52395         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52396         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52397         limit.
52398         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52399         compareseq was aborted.
52400
52401 2008-09-14  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52404         yvec_edit_count.
52405         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52406         (fstrcmp_bounded): Simplify result computation accordingly.
52407
52408 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52409
52410         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52411         (fstrcmp): Define in terms of fstrcmp_bounded.
52412         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52413         lower_bound argument.
52414         Return quickly if the result is certainly < lower_bound.
52415         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52416
52417 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52418
52419         * lib/diffseq.h (EARLY_ABORT): New macro.
52420         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52421         evaluates to true.
52422
52423 2008-09-14  Bruno Haible  <bruno@clisp.org>
52424
52425         * modules/perror-tests: New file.
52426         * tests/test-perror.sh: New file.
52427         * tests/test-perror.c: New file.
52428
52429         New module 'perror'.
52430         * lib/stdio.in.h (perror): New declaration.
52431         * lib/perror.c: New file.
52432         * m4/perror.m4: New file.
52433         * modules/perror: New file.
52434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52435         * doc/posix-functions/perror.texi: Mention the perror module.
52436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52437         REPLACE_PERROR.
52438         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52439         REPLACE_PERROR.
52440
52441 2008-09-14  Bruno Haible  <bruno@clisp.org>
52442
52443         * modules/stdio (Makefile.am): Reorder to match the order in
52444         lib/stdio.in.h.
52445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52446
52447 2008-09-13  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52450
52451 2008-09-13  Bruno Haible  <bruno@clisp.org>
52452
52453         Extend strerror to cover the added errno values.
52454         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52455         (rpl_strerror): Provide error messages for the added errno values and
52456         for the WSA* values.
52457         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52458         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52459         strerror.
52460         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52461         * modules/strerror (Depends-on): Add errno.
52462         * doc/posix-functions/strerror.texi: Document the change.
52463         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52464         and EOVERFLOW.
52465
52466 2008-09-13  Bruno Haible  <bruno@clisp.org>
52467
52468         * modules/EOVERFLOW: Remove file.
52469         * m4/eoverflow.m4: Remove file.
52470         * modules/EOVERFLOW-tests: Remove file.
52471         * tests/test-EOVERFLOW.c: Remove file.
52472         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52473         * modules/ftell (Depends-on): Likewise.
52474         * modules/getdelim (Depends-on): Likewise.
52475         * modules/getugroups (Depends-on): Likewise.
52476         * modules/poll (Depends-on): Likewise.
52477         * modules/snprintf (Depends-on): Likewise.
52478         * modules/sprintf-posix (Depends-on): Likewise.
52479         * modules/vasnprintf (Depends-on): Likewise.
52480         * modules/vasprintf (Depends-on): Likewise.
52481         * modules/vfprintf-posix (Depends-on): Likewise.
52482         * modules/vsnprintf (Depends-on): Likewise.
52483         * modules/vsprintf-posix (Depends-on): Likewise.
52484         * modules/xvasprintf (Depends-on): Likewise.
52485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52486         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52487         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52488         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52490         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52491         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52492         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52494         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52495         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52496         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52498         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52499         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52500         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52502         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52503         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52504         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52506         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52507         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52508         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52509         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52510         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52511         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52512         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52513         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52514         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52515         * MODULES.html.sh: Remove EOVERFLOW.
52516         * NEWS: Mention the change.
52517
52518 2008-09-13  Bruno Haible  <bruno@clisp.org>
52519
52520         * modules/errno-tests: New file.
52521         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52522
52523         * lib/errno.in.h: New file.
52524         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52525         * modules/errno: New file.
52526         * doc/posix-headers/errno.texi: Update documentation.
52527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52528
52529 2008-09-13  Bruno Haible  <bruno@clisp.org>
52530
52531         * tests/test-poll.c: Use #if for native Windows, rather than testing
52532         __MSVCRT__.
52533
52534 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52535             Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/glob.c: Don't include <pwd.h> on native Windows.
52538         (WINDOWS32): New macro.
52539         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52540
52541 2008-09-13  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52544         (ETIMEDOUT): Remove macro.
52545         (glthread_cond_timedwait_multithreaded): New declaration.
52546         (glthread_cond_timedwait): Use it.
52547         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52548         (glthread_cond_timedwait_multithreaded): New function.
52549
52550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52551
52552         * modules/poll-tests: Do not check for io.h.
52553         * tests/test-poll.c: Check for __MSVCRT__ instead.
52554
52555 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52556
52557         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52558         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52559         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52560
52561 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52562
52563         * modules/poll-tests: New.
52564         * tests/test-poll.c: New.
52565
52566 2008-09-12  Eric Blake  <ebb9@byu.net>
52567
52568         frexp: test for NetBSD failure on -0.0
52569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52570         not all, bugs from NetBSD 3.0 have been fixed.
52571         * doc/posix-functions/frexp.texi (frexp): Document bug.
52572         Reported by Thomas Klausner.
52573
52574         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52575         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52576         literal -0.0.
52577         Reported by Jonathan C. Patschke <jp@centtech.com>.
52578
52579 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52580
52581         * lib/glthread/cond.h: Use dummy implementation also if
52582         USE_WIN32_THREADS.
52583
52584 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52585
52586         * modules/fnmatch-posix (License): Change to LGPLv2+.
52587         * modules/fnmatch-gnu (License): Likewise.
52588
52589 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52590
52591         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52592
52593 2008-09-11  Jim Meyering  <meyering@redhat.com>
52594
52595         * users.txt: Add gtk-vnc.
52596
52597 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52598
52599         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52600         rotate amounts.
52601
52602         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52603         required for 16-bit and 8-bit rotates.
52604         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52605         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52606         UINT8_MAX instead of hard-coded constants.
52607         Suggested by Paul Eggert.
52608
52609 2008-09-07  Bruno Haible  <bruno@clisp.org>
52610
52611         * tests/test-striconveh.c (main): Check behaviour when converting from
52612         UTF-7.
52613
52614         Make striconveh work better with stateful encodings.
52615         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52616         that iconv does not increment the inptr when returning -1/EINVAL.
52617
52618 2008-09-07  Bruno Haible  <bruno@clisp.org>
52619
52620         * build-aux/config.rpath: Update according to libtool-2.2.6.
52621         * build-aux/config.libpath: Likewise.
52622
52623 2008-09-06  Bruno Haible  <bruno@clisp.org>
52624
52625         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52626         * lib/freadptr.c (freadptr): Likewise.
52627         * lib/freadseek.c (freadptrinc): Likewise.
52628         Reported by Simon Josefsson.
52629
52630 2008-09-06  Bruno Haible  <bruno@clisp.org>
52631
52632         * modules/freadptr (License): Change to LGPLv2+.
52633         * modules/freadseek (License): Likewise.
52634         Suggested by Eric Blake.
52635
52636         * modules/memchr2 (License): Change to LGPLv2+.
52637         Approved by Eric Blake.
52638
52639 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52640             Bruno Haible  <bruno@clisp.org>
52641
52642         Make gnulib-tool work with native 'sed' on AIX.
52643         * gnulib-tool (sed_noop): New variable.
52644         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52645         func_add_or_update, func_create_testdir): Use it to initialize sed
52646         script variables.
52647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52648
52649 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52650             Bruno Haible  <bruno@clisp.org>
52651
52652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52653         also works after #include directives.
52654
52655 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52656
52657         getdate.y: reject an out-of-range timezone value
52658         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52659         the range [-24...+24].  When specified with only one or two digits,
52660         * tests/test-getdate.c: Tests for the fix.
52661         * doc/getdate.texi: Document this change.
52662
52663 2008-09-03  Bruno Haible  <bruno@clisp.org>
52664
52665         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52666
52667 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52668
52669         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52670         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52671         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52672         Blake <ebb9@byu.net>.
52673
52674         * tests/test-bitrotate.c: Add more test vectors.
52675
52676 2008-09-02  Eric Blake  <ebb9@byu.net>
52677
52678         vasnprintf-posix: handle large precision via %.*d
52679         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52680         when handling it ourselves.
52681         * tests/test-vasnprintf-posix.c (test_function): Add test.
52682         * tests/test-snprintf-posix.h (test_function): Likewise.
52683         * tests/test-sprintf-posix.h (test_function): Likewise.
52684         * tests/test-vasprintf-posix.c (test_function): Likewise.
52685         Reported by Alain Guibert.
52686
52687 2008-09-01  Eric Blake  <ebb9@byu.net>
52688
52689         c-stack: make configure-time check more robust
52690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52691         successful sigaction call.
52692         Reported by Tom G. Christensen.
52693
52694 2008-09-01  Bruno Haible  <bruno@clisp.org>
52695
52696         New module 'findprog-lgpl'.
52697         * modules/findprog-lgpl: New file.
52698         * lib/findprog-lgpl.c: New file.
52699         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52700         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52701         to decide whether to use strdup or xstrdup, concatenated_filename or
52702         xconcatenated_filename.
52703
52704 2008-09-01  Bruno Haible  <bruno@clisp.org>
52705
52706         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52707         'xconcat-filename' (GPL).
52708         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52709         (License): Change to LGPLv2+.
52710         * modules/xconcat-filename: New file.
52711         * lib/concat-filename.h (concatenated_filename): Change specification.
52712         (xconcatenated_filename): New declaration.
52713         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52714         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52715         memory situations.
52716         * lib/xconcat-filename.c: New file.
52717         * NEWS: Mention the change.
52718         * lib/findprog.c: Include concat-filename.h, not filename.h.
52719         (find_in_path): Use xconcatenated_filename instead of
52720         concatenated_filename.
52721         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52722         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52723         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52724         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52725         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52726         instead of concatenated_filename.
52727         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52728         (execute_java_class): Use xconcatenated_filename instead of
52729         concatenated_filename.
52730         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52731         * modules/javacomp (Depends-on): Likewise.
52732         * modules/javaexec (Depends-on): Likewise.
52733
52734 2008-09-01  Bruno Haible  <bruno@clisp.org>
52735
52736         Split module 'filename' into 'filename' and 'concat-filename'.
52737         * modules/filename: Keep only lib/filename.h.
52738         (License): Change to LGPLv2+.
52739         * modules/concat-filename: New file, extracted from modules/filename.
52740         * lib/filename.h (concatenated_filename): Remove declaration.
52741         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52742         * lib/concat-filename.c: Include concat-filename.h.
52743         * NEWS: Mention the change.
52744
52745 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52746
52747         * lib/bitrotate.h (rotl8, rotr8): Add.
52748
52749         * modules/bitrotate (configure.ac): Need
52750         AC_REQUIRE([AC_C_INLINE]).
52751         (Description): Mention stdint.h.  Reported by Bruno Haible
52752         <bruno@clisp.org>.
52753
52754         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52755         Paolo Bonzini <bonzini@gnu.org>.
52756
52757 2008-08-31  Bruno Haible  <bruno@clisp.org>
52758
52759         Assume Solaris specific bi-arch conventions on Solaris systems.
52760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52761         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52762         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52763         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52764         like acl_libdirstem.
52765         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52766         acl_libdirstem.
52767         * NEWS: Mention the change.
52768         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52769
52770 2008-08-31  Jim Meyering  <meyering@redhat.com>
52771
52772         * lib/strftime.h: Add comments describing the two added arguments.
52773
52774         remove duplicate #include directives
52775         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52776         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52777
52778 2008-08-31  Bruno Haible  <bruno@clisp.org>
52779
52780         New module 'sigpipe-die'.
52781         * modules/sigpipe-die: New file.
52782         * lib/sigpipe-die.h: New file.
52783         * lib/sigpipe-die.c: New file.
52784         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52785
52786 2008-08-31  Bruno Haible  <bruno@clisp.org>
52787
52788         Don't override previously installed signal handlers.
52789         * lib/fatal-signal.c (saved_sigactions): New variable.
52790         (uninstall_handlers): Reset the signal to the saved handler, not
52791         to SIG_DFL (except when ignored).
52792         (install_handlers): Save the previous handlers.
52793
52794 2008-08-30  Bruno Haible  <bruno@clisp.org>
52795
52796         * gnulib-tool (func_reset_sigpipe): New function.
52797         (func_get_automake_snippet, func_modules_transitive_closure,
52798         func_import): Invoke it before a join command that reads from stdin,
52799         to avoid "echo: write error: Broken pipe" error messages on stderr.
52800         Reported by Sam Steingold <sds@gnu.org>.
52801
52802 2008-08-30  Bruno Haible  <bruno@clisp.org>
52803
52804         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52805         Code copied from m4/open.m4.
52806         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52807         access and the filename ends in a slash. Code copied from lib/open.c.
52808         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52809         * tests/test-fopen.c (main): Check against bug with trailing slash.
52810
52811 2008-08-29  Bruno Haible  <bruno@clisp.org>
52812
52813         Avoid some "gcc -pedantic" warnings.
52814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52815         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52816         * lib/dirent.in.h: Likewise.
52817         * lib/fcntl.in.h: Likewise.
52818         * lib/float.in.h: Likewise.
52819         * lib/iconv.in.h: Likewise.
52820         * lib/inttypes.in.h: Likewise.
52821         * lib/locale.in.h: Likewise.
52822         * lib/math.in.h: Likewise.
52823         * lib/netinet_in.in.h: Likewise.
52824         * lib/search.in.h: Likewise.
52825         * lib/signal.in.h: Likewise.
52826         * lib/stdarg.in.h: Likewise.
52827         * lib/stdint.in.h: Likewise.
52828         * lib/stdio.in.h: Likewise.
52829         * lib/stdlib.in.h: Likewise.
52830         * lib/string.in.h: Likewise.
52831         * lib/strings.in.h: Likewise.
52832         * lib/sys_select.in.h: Likewise.
52833         * lib/sys_socket.in.h: Likewise.
52834         * lib/sys_stat.in.h: Likewise.
52835         * lib/sys_time.in.h: Likewise.
52836         * lib/sysexits.in.h: Likewise.
52837         * lib/time.in.h: Likewise.
52838         * lib/unistd.in.h: Likewise.
52839         * lib/wchar.in.h: Likewise.
52840         * lib/wctype.in.h: Likewise.
52841         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52842         * modules/fchdir (Makefile.am): Likewise.
52843         * modules/fcntl (Makefile.am): Likewise.
52844         * modules/float (Makefile.am): Likewise.
52845         * modules/iconv_open (Makefile.am): Likewise.
52846         * modules/inttypes (Makefile.am): Likewise.
52847         * modules/locale (Makefile.am): Likewise.
52848         * modules/math (Makefile.am): Likewise.
52849         * modules/netinet_in (Makefile.am): Likewise.
52850         * modules/search (Makefile.am): Likewise.
52851         * modules/signal (Makefile.am): Likewise.
52852         * modules/stdarg (Makefile.am): Likewise.
52853         * modules/stdint (Makefile.am): Likewise.
52854         * modules/stdio (Makefile.am): Likewise.
52855         * modules/stdlib (Makefile.am): Likewise.
52856         * modules/string (Makefile.am): Likewise.
52857         * modules/strings (Makefile.am): Likewise.
52858         * modules/sys_select (Makefile.am): Likewise.
52859         * modules/sys_socket (Makefile.am): Likewise.
52860         * modules/sys_stat (Makefile.am): Likewise.
52861         * modules/sys_time (Makefile.am): Likewise.
52862         * modules/sysexits (Makefile.am): Likewise.
52863         * modules/time (Makefile.am): Likewise.
52864         * modules/unistd (Makefile.am): Likewise.
52865         * modules/wchar (Makefile.am): Likewise.
52866         * modules/wctype (Makefile.am): Likewise.
52867         Reported by Reuben Thomas <rrt@sc3d.org>.
52868
52869 2008-08-29  Bruno Haible  <bruno@clisp.org>
52870
52871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52872         any more.
52873
52874 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52875
52876         * MODULES.html.sh (Misc): Add bitrotate.
52877
52878         * modules/bitrotate: New file.
52879
52880         * lib/bitrotate.h: New file.
52881
52882         * modules/bitrotate-tests: New file.
52883
52884         * tests/test-bitrotate.c: New file.
52885
52886         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52887         on the bitrotate module.
52888
52889         * lib/arctwo.c: Use new bitrotate module.
52890
52891 2008-08-29  Jim Meyering  <meyering@redhat.com>
52892
52893         bootstrap: merge changes from coreutils
52894         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52895         of copied files.  Remove a kludge, now that this is fixed.
52896         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52897         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52898         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52899
52900 2008-08-29  Bruno Haible  <bruno@clisp.org>
52901
52902         * MODULES.html.sh: Remove --cvs-urls option.
52903
52904 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52905
52906         maint.mk: adjust to file name change
52907         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52908
52909 2008-08-28  Jim Meyering  <meyering@redhat.com>
52910
52911         * modules/getndelim2 (License): Relicense to LGPLv2+.
52912         Approved by Richard Stallman for the version of 1995, and by
52913         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52914
52915 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52916
52917         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52918         dummy if one is not available.  Do not touch them if
52919         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52920         (getc_maybe_unlocked): New.
52921         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52922
52923 2008-08-26  Eric Blake  <ebb9@byu.net>
52924
52925         doc/INSTALL: resync from autoconf
52926         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52927         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52928         moving...
52929         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52930         * INSTALL: Regenerate.
52931         * INSTALL.ISO: New file.
52932         * INSTALL.UTF-8: Likewise.
52933
52934 2008-08-26  Jim Meyering  <meyering@redhat.com>
52935
52936         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52937         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52938         these definitions conditional, so that they may be overridden, too.
52939
52940 2008-08-26  Bruno Haible  <bruno@clisp.org>
52941
52942         Generate INSTALL file variants with prettier quotes.
52943         * doc/Makefile (INSTALL_PRELUDE): New macro.
52944         (INSTALL): Use it.
52945         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52946
52947 2008-08-26  Bruno Haible  <bruno@clisp.org>
52948
52949         Run makeinfo in an English locale.
52950         * doc/Makefile (MAKEINFO): New variable.
52951
52952 2008-08-26  Bruno Haible  <bruno@clisp.org>
52953
52954         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52955         Suggested by Eric Blake.
52956
52957 2008-08-25  Bruno Haible  <bruno@clisp.org>
52958
52959         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52960
52961 2008-08-25  Eric Blake  <ebb9@byu.net>
52962
52963         c-stack: test that stack overflow can be caught
52964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52965         that platform allows handling stack overflow; at least OS/2 EMX
52966         has sigaltstack, but crashes before transferring control to
52967         handler on stack overflow.
52968         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52969         check for HAVE_STACK_OVERFLOW_HANDLING.
52970         Reported by Elbert Pol.
52971
52972 2008-08-25  Bruno Haible  <bruno@clisp.org>
52973
52974         * doc/posix-functions/strftime.texi: Fix description of strftime
52975         module.
52976
52977 2008-08-24  Bruno Haible  <bruno@clisp.org>
52978
52979         * tests/uniwidth/test-uc_width2.c: New file.
52980         * tests/uniwidth/test-uc_width2.sh: New file.
52981         * modules/uniwidth/width-tests (Files): Add the new files.
52982         (TESTS): Add uniwidth/test-uc_width2.sh.
52983         (TESTS_ENVIRONMENT): New variable.
52984         (check_PROGRAMS): Add test-uc_width2.
52985         (test_uc_width2_SOURCES): New variable.
52986
52987         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52988         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52989         not 0x00AB.
52990         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52991
52992 2008-08-22  Eric Blake  <ebb9@byu.net>
52993
52994         test-lock, test-tls: mention why a test is skipped
52995         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52996         skipped.
52997         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52998
52999         count-one-bits: relax license
53000         * modules/count-one-bits (License): Relicense to LGPLv2+.
53001         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53002
53003 2008-08-22  Andreas Schwab  <schwab@suse.de>
53004
53005         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53006         Remove spurious space in assignment.
53007
53008 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53009
53010         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53011         Paul Eggert <eggert@CS.UCLA.EDU>.
53012
53013 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53014
53015         * modules/gettext: Add m4/threadlib.m4.
53016
53017 2008-08-19  Eric Blake  <ebb9@byu.net>
53018
53019         test-c-stack: fix compilation failure on FreeBSD 5.0
53020         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53021         headers before <sys/resource.h>.
53022         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53023         the bug.
53024         Reported by Nelson H. F. Beebe.
53025
53026         strverscmp: migrate from "strverscmp.h" to <string.h>
53027         * modules/string (Makefile.am): Add new hooks.
53028         * modules/strverscmp (Files): Remove strverscmp.h.
53029         (Depends-on): Add string.
53030         (configure.ac): Add indicator.
53031         (Include): Mention new header.
53032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53033         defaults.
53034         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53035         results.
53036         * lib/strverscmp.h: Delete.
53037         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53038         * tests/test-strverscmp.c (includes): Adjust client.
53039         * lib/check-version.c (includes): Likewise.
53040         * NEWS: Document the change.
53041
53042         strverscmp: add unit test
53043         * modules/strverscmp-tests: New file.
53044         * tests/test-strverscmp.c: Likewise.
53045
53046 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53047
53048         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53049         regarding Windows crypto stuff, from Mono.
53050
53051 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53052
53053         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53054         if present, for intel RND.  Return error on failures.
53055
53056 2008-08-18  Ben Pfaff  <blp@gnu.org>
53057
53058         gitlog-to-changelog: give better diagnostic for failed pipe-open
53059         * build-aux/gitlog-to-changelog: Improve error message: suggest
53060         that the version of Git may be too old.
53061
53062 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53063
53064         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53065         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53066
53067 2008-08-18  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53070         pthread_in_use().
53071
53072 2008-08-18  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/glthread/threadlib.c: Include <pthread.h>.
53075
53076 2008-08-18  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53079         glthread_recursive_lock_* macros.
53080         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53081         Fix syntax error.
53082
53083 2008-08-18  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/glthread/thread.c: Avoid forcing a context switch right after
53086         thread creation.
53087
53088 2008-08-17  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53091         * lib/glthread/thread.h: Provide Win32 specific implementation.
53092         * modules/thread (Files): Add lib/glthread/thread.c.
53093         (Depends-on): Add lock.
53094         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53095
53096 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53097
53098         New module 'yield'.
53099         * modules/yield: New file.
53100         * lib/glthread/yield.h: New file.
53101         * m4/yield.m4: New file.
53102         * MODULES.html.sh (Multithreading): Add yield.
53103
53104 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53105
53106         New module 'thread'.
53107         * modules/thread: New file.
53108         * lib/glthread/thread.h: New file.
53109         * m4/thread.m4: New file.
53110         * MODULES.html.sh (Multithreading): Add thread.
53111
53112 2008-08-17  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/glthread/lock.h: Include <stdlib.h> always.
53115         * lib/glthread/tls.h: Likewise.
53116         * lib/glthread/cond.h: Likewise.
53117
53118 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53119
53120         New module 'cond'.
53121         * modules/cond: New file.
53122         * lib/glthread/cond.h: New file.
53123         * lib/glthread/cond.c: New file.
53124         * m4/cond.m4: New file.
53125         * MODULES.html.sh (Multithreading): Add cond.
53126
53127 2008-08-16  Eric Blake  <ebb9@byu.net>
53128
53129         c-stack: fix regression on Irix 5.3 from 2008-06-21
53130         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53131         sa_sigaction...
53132         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53133         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53135         * modules/signal (Makefile.am): Use the value.
53136         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53137         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53138         * doc/posix-headers/signal.texi (signal.h): Document this
53139         portability issue.
53140         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53141         Reported by Tom G. Christensen.
53142
53143 2008-08-17  Bruno Haible  <bruno@clisp.org>
53144
53145         New module 'threadlib'.
53146         * modules/threadlib: New file.
53147         * lib/glthread/threadlib.c: New file, extracted from
53148         lib/glthread/lock.c.
53149         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53150         functions.
53151         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53152         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53153         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53154         macros.
53155         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53156         (gl_DISABLE_THREADS): Remove macro.
53157         * modules/lock (Files): Remove build-aux/config.rpath.
53158         (Depends-on): Remove havelib. Add threadlib.
53159         (configure.ac-early): Remove section.
53160         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53161         * modules/tls (Depends-on): Remove lock. Add threadlib.
53162         (Link): New section, copied from threadlib.
53163         * MODULES.html.sh (Multithreading): Add threadlib.
53164
53165 2008-08-14  Bruno Haible  <bruno@clisp.org>
53166
53167         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53168         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53169         glthread_rwlock_unlock, glthread_rwlock_destroy,
53170         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53171         glthread_recursive_lock_destroy): Define as macros always.
53172         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53173         glthread_lock_lock.
53174         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53175         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53176         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53177         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53178         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53179         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53180         (glthread_recursive_lock_lock_func): Renamed from
53181         glthread_recursive_lock_lock.
53182         (glthread_recursive_lock_unlock_func): Renamed from
53183         glthread_recursive_lock_unlock.
53184         (glthread_recursive_lock_destroy_func): Renamed from
53185         glthread_recursive_lock_destroy.
53186
53187 2008-08-14  Bruno Haible  <bruno@clisp.org>
53188
53189         * lib/glthread/lock.h: Renamed from lib/lock.h.
53190         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53191         * lib/glthread/tls.h: Renamed from lib/tls.h.
53192         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53193         * lib/fstrcmp.c: Update includes.
53194         * lib/strsignal.c: Update includes.
53195         * modules/lock (Files, Makefile.am): Update.
53196         (Include): Change to "glthread/lock.h".
53197         * modules/tls (Files, Makefile.am): Update.
53198         (Include): Change to "glthread/tls.h".
53199         * tests/test-lock.c: Update includes.
53200         * tests/test-tls.c: Update includes.
53201         * NEWS: Mention the renamed header files.
53202
53203 2008-08-11  Jim Meyering  <meyering@redhat.com>
53204
53205         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53206
53207 2008-08-11  Eric Blake  <ebb9@byu.net>
53208
53209         test-c-stack: avoid C99-ism
53210         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53211         before statement.
53212         Reported by Alain Guibert.
53213
53214 2008-08-10  Jim Meyering  <meyering@redhat.com>
53215
53216         ensure that return value of uinttostr et al are not ignored
53217         * lib/inttostr.h (__GNUC_PREREQ): Define.
53218         (__attribute_warn_unused_result__): Define.
53219         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53220
53221 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53222
53223         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53224         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53225
53226 2008-08-07  Jim Meyering  <meyering@redhat.com>
53227
53228         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53229
53230         * modules/mkstemp (License): Relicense under LGPLv2+.
53231         * modules/tempname (License): Likewise.
53232
53233 2008-08-06  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/poll.c (poll): Further micro-optimization.
53236
53237 2008-08-06  Jim Meyering  <meyering@redhat.com>
53238
53239         inet_pton.c: use locale-independent tolower
53240         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53241         (inet_pton6): Use c_tolower rather than tolower.
53242         * modules/inet_pton (Depends-on): Add c-ctype.
53243
53244 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53245
53246         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53247         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53248
53249 2008-08-06  Jim Meyering  <meyering@redhat.com>
53250
53251         * modules/inet_pton (License): Relicense under LGPLv2+.
53252
53253 2008-08-03  Bruno Haible  <bruno@clisp.org>
53254
53255         Additional non-aborting API for lock and tls.
53256         * lib/lock.h: Include <errno.h>.
53257         (glthread_lock_init): New macro/function.
53258         (gl_lock_init): Define as wrapper around glthread_lock_init.
53259         (glthread_lock_lock): New macro/function.
53260         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53261         (glthread_lock_unlock): New macro/function.
53262         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53263         (glthread_lock_destroy): New macro/function.
53264         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53265         (glthread_rwlock_init): New macro/function.
53266         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53267         (glthread_rwlock_rdlock): New macro/function.
53268         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53269         (glthread_rwlock_wrlock): New macro/function.
53270         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53271         (glthread_rwlock_unlock): New macro/function.
53272         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53273         (glthread_rwlock_destroy): New macro/function.
53274         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53275         (glthread_recursive_lock_init): New macro/function.
53276         (gl_recursive_lock_init): Define as wrapper around
53277         glthread_recursive_lock_init.
53278         (glthread_recursive_lock_lock): New macro/function.
53279         (gl_recursive_lock_lock): Define as wrapper around
53280         glthread_recursive_lock_lock.
53281         (glthread_recursive_lock_unlock): New macro/function.
53282         (gl_recursive_lock_unlock): Define as wrapper around
53283         glthread_recursive_lock_unlock.
53284         (glthread_recursive_lock_destroy): New macro/function.
53285         (gl_recursive_lock_destroy): Define as wrapper around
53286         glthread_recursive_lock_destroy.
53287         (glthread_once): New macro/function.
53288         (gl_once): Define as wrapper around glthread_once.
53289         Update function declarations.
53290         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53291         glthread_rwlock_init. Return error code.
53292         (glthread_rwlock_rdlock_multithreaded): Renamed from
53293         glthread_rwlock_rdlock. Return error code.
53294         (glthread_rwlock_wrlock_multithreaded): Renamed from
53295         glthread_rwlock_wrlock. Return error code.
53296         (glthread_rwlock_unlock_multithreaded): Renamed from
53297         glthread_rwlock_unlock. Return error code.
53298         (glthread_rwlock_destroy_multithreaded): Renamed from
53299         glthread_rwlock_destroy. Return error code.
53300         (glthread_recursive_lock_init_multithreaded): Renamed from
53301         glthread_recursive_lock_init. Return error code.
53302         (glthread_recursive_lock_lock_multithreaded): Renamed from
53303         glthread_recursive_lock_lock. Return error code.
53304         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53305         glthread_recursive_lock_unlock. Return error code.
53306         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53307         glthread_recursive_lock_destroy. Return error code.
53308         (glthread_once_call): Make static.
53309         (glthread_once_multithreaded): Renamed from glthread_once.
53310         * lib/tls.h: Include <errno.h>.
53311         (glthread_tls_key_init): New macro/function.
53312         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53313         (glthread_tls_set): New macro/function.
53314         (gl_tls_set): Define as wrapper around glthread_tls_set.
53315         (glthread_tls_key_destroy): New macro/function.
53316         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53317         Update function declarations.
53318         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53319         glthread_tls_get.
53320         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53321
53322 2008-08-04  Eric Blake  <ebb9@byu.net>
53323
53324         gnumakefile: use space, not TAB, outside of targets
53325         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53326
53327 2008-08-02  Jim Meyering  <meyering@redhat.com>
53328
53329         getdate.y: avoid locale-dependent date parsing failure
53330         In Turkish locales, getdate would fail to recognize keywords
53331         containing a lowercase "i".  The solution is not to rely on
53332         locale-sensitive case-conversion.
53333         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53334         (lookup_word): Use c_toupper in place of toupper.
53335         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53336         Reported by Vefa Bicakci <bicave@superonline.com> in
53337         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53338         * modules/getdate (Depends-on): Add c-ctype.
53339
53340 2008-08-02  Bruno Haible  <bruno@clisp.org>
53341
53342         * gnulib-tool (func_import): When updating or creating a .gitignore
53343         file, prepend each added line with a slash, and ignore leading slashes
53344         from the existing lines.
53345         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53346
53347 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53348
53349         Portability fix for GNU make 3.79.1.
53350         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53351         versions do not understand.
53352
53353 2008-08-01  Bruno Haible  <bruno@clisp.org>
53354
53355         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53356         * tests/test-isnanf.h (zero): New variable.
53357         (main): Avoid literal -0.0f.
53358         * tests/test-isnand.h (zero): New variable.
53359         (main): Avoid literal -0.0.
53360         * tests/test-isnanl.h (zero): New variable.
53361         (main): Avoid literal -0.0L.
53362         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53363         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53364         -0.0, -0.0L.
53365         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53366         (test_signbitd): Avoid literal -0.0.
53367         (test_signbitl): Avoid literal -0.0L.
53368         * tests/test-ceilf1.c (zero): New variable.
53369         (main): Avoid literal -0.0f.
53370         * tests/test-ceill.c (zero): New variable.
53371         (main): Avoid literal -0.0L.
53372         * tests/test-floorf1.c (zero): New variable.
53373         (main): Avoid literal -0.0f.
53374         * tests/test-floorl.c (zero): New variable.
53375         (main): Avoid literal -0.0L.
53376         * tests/test-roundf1.c (zero): New variable.
53377         (main): Avoid literal -0.0f.
53378         * tests/test-round1.c (zero): New variable.
53379         (main): Avoid literal -0.0.
53380         * tests/test-roundl.c (zero): New variable.
53381         (main): Avoid literal -0.0L.
53382         * tests/test-truncf1.c (zero): New variable.
53383         (main): Avoid literal -0.0f.
53384         * tests/test-trunc1.c (zero): New variable.
53385         (main): Avoid literal -0.0.
53386         * tests/test-truncl.c (zero): New variable.
53387         (main): Avoid literal -0.0L.
53388         * tests/test-frexp.c (zero): New variable.
53389         (main): Avoid literal -0.0.
53390         * tests/test-frexpl.c (zero): New variable.
53391         (main): Avoid literal -0.0L.
53392         * tests/test-ldexpl.c (zero): New variable.
53393         (main): Avoid literal -0.0L.
53394         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53395         (zerod, zerol): New variables.
53396         (test_function): Avoid literals -0.0, -0.0L.
53397         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53398         (zerod, zerol): New variables.
53399         (test_function): Avoid literals -0.0, -0.0L.
53400         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53401         (zerod, zerol): New variables.
53402         (test_function): Avoid literals -0.0, -0.0L.
53403         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53404         (zerod, zerol): New variables.
53405         (test_function): Avoid literals -0.0, -0.0L.
53406         * tests/test-strtod.c (zero): New variable.
53407         (main): Avoid literal -0.0.
53408         Reported by Jonathan C. Patschke <jp@centtech.com>.
53409
53410 2008-07-31  Jim Meyering  <meyering@redhat.com>
53411
53412         sha256.h: correct definition of SHA224_DIGEST_SIZE
53413         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53414         Reported by Paulie Pena IV <paulie4@gmail.com>.
53415         Define as 224 / 8, rather than as a literal.
53416         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53417         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53418         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53419
53420 2008-07-31  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53423         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53424         Reported by Jonathan Patschke <jp@centtech.com>.
53425
53426 2008-07-31  Bruno Haible  <bruno@clisp.org>
53427
53428         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53429         Reported by Paolo Bonzini <bonzini@gnu.org>.
53430
53431 2008-07-30  Eric Blake  <ebb9@byu.net>
53432
53433         test-strtod: allow compilation without -lm
53434         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53435         Reported by Dennis Clarke <blastwave@gmail.com>.
53436
53437 2008-07-28  Jim Meyering  <meyering@redhat.com>
53438
53439         bootstrap: work also when there are no .po files in po/
53440         * build-aux/bootstrap (update_po_files): Complete the change
53441         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53442
53443 2008-07-27  Jim Meyering  <meyering@redhat.com>
53444
53445         * users.txt: Add zile.
53446
53447 2008-07-26  Ben Pfaff  <blp@gnu.org>
53448
53449         Add missing dependencies on new m4/exponent[fdl].m4 files.
53450         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53451         * modules/isnand-nolibm: Add m4/exponentd.m4.
53452         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53453         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53454         m4/isnan[fdl].m4, because the macros actually used moved.
53455         Reported by Jim Meyering.
53456
53457 2008-07-14  Ben Pfaff  <blp@gnu.org>
53458
53459         Add isinf module.
53460         * lib/isinf.c: New file.
53461         * lib/math.in.h: Define isinf macro if we have decided to replace
53462         it.
53463         * m4/isinf.m4: New file.
53464         * m4/math_h.m4: Initialize and substitute variables for isinf
53465         module.
53466         * modules/isinf: New file.
53467         * modules/isinf-tests: New file.
53468         * modules/math: Add substitutions for new module.
53469         * tests/test-isinf.c: New file.
53470         * doc/posix-functions/isinf.texi: Mention new module.
53471         * MODULES.html.sh: Mention new module.
53472
53473 2008-07-14  Ben Pfaff  <blp@gnu.org>
53474
53475         Factor out some macros for use by additional modules.
53476         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53477         exponentf.m4.
53478         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53479         exponentd.m4.
53480         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53481         file exponentl.m4.
53482         * m4/exponentf.m4: New file.
53483         * m4/exponentd.m4: New file.
53484         * m4/exponentl.m4: New file.
53485         * modules/isnanf: Use new file m4/exponentf.m4.
53486         * modules/isnand: Use new file m4/exponentd.m4.
53487         * modules/isnanl: Use new file m4/exponentl.m4.
53488
53489 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53490
53491         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53492         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53493         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53494         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53495
53496         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53497         readlink on platforms without PATH_MAX.
53498
53499 2008-07-21  Eric Blake  <ebb9@byu.net>
53500
53501         Warn, not fail, on stale version.
53502         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53503
53504         Don't allow installation with stale devel version number.
53505         * top/GNUmakefile (_is-install-target): New macro.
53506         (_curr-ver): Forbid installation with stale version number.
53507
53508 2008-07-20  Bruno Haible  <bruno@clisp.org>
53509
53510         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53511         TESTS_ENVIRONMENT.
53512         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53513
53514 2008-07-20  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/c-stack.h (c_stack_action): Add documentation.
53517         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53518
53519 2008-07-20  Bruno Haible  <bruno@clisp.org>
53520
53521         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53522         * modules/readlink (License): Likewise.
53523
53524 2008-07-17  Eric Blake  <ebb9@byu.net>
53525
53526         * modules/c-stack (Link): Fix typo.
53527
53528         Make c-stack use libsigsegv, when available.
53529         * modules/c-stack (Depends-on): Add libsigsegv.
53530         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53531         needed.
53532         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53533         (segv_handler, overflow_handler, c_stack_action)
53534         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53535         implementation when libsigsegv is available, but only when using
53536         the library is necessary.
53537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53538         comment, explaining why XSI check fails on Linux.
53539         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53540         * tests/test-c-stack2.sh: Tweak skip message.
53541         * NEWS: Document new link-time requirements.
53542
53543 2008-07-16  Eric Blake  <ebb9@byu.net>
53544
53545         c-stack: Expose false positives when not using libsigsegv.
53546         * modules/c-stack-tests (Files): Expand test.
53547         * tests/test-c-stack.c (main): Add means to conditionally trigger
53548         non-overflow SIGSEGV.
53549         * tests/test-c-stack2.sh: New file.
53550
53551 2008-07-14  Bruno Haible  <bruno@clisp.org>
53552
53553         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53554         Reported by Eric Blake.
53555
53556 2008-07-14  Sam Steingold  <sds@gnu.org>
53557             Bruno Haible  <bruno@clisp.org>
53558
53559         New module libsigsegv.
53560         * modules/libsigsegv: New file.
53561         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53562         modifications.
53563         * MODULES.html.sh (Signal handling): New section.
53564
53565 2008-07-14  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/unictype/ctype-* (Description): Add the word "function".
53568         Improves the resulting doc in MODULES.html.
53569
53570 2008-07-12  Ben Pfaff  <blp@gnu.org>
53571
53572         Add longlong module.
53573         * modules/longlong: New file.
53574
53575 2008-07-12  Bruno Haible  <bruno@clisp.org>
53576
53577         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53578         to empty.
53579
53580 2008-07-10  Ben Pfaff  <blp@gnu.org>
53581
53582         Add isnan module.
53583         * doc/posix-functions/isnan.texi: Mention new module.
53584         * lib/math.in.h: Define isnan macro if we have decided to replace
53585         it.
53586         * m4/isnan.m4: New file.
53587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53588         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53589         also.
53590         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53591         redundancy.
53592         * m4/math_h.m4: Initialize and substitute variables for isnan
53593         module.
53594         * modules/isnan: New file.
53595         * modules/isnan-tests: New file.
53596         * modules/math: Add substitutions for new module.
53597         * tests/test-isnan.c: New file.
53598         * MODULES.html.sh: Mention new module.
53599
53600 2008-07-10  Ben Pfaff  <blp@gnu.org>
53601
53602         Add isnanf module.
53603         * lib/isnanf.m4: New file.
53604         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53605         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53606         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53607         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53608         * modules/isnanf: New file.
53609         * modules/isnanf-tests: New file.
53610         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53611         files.
53612         * tests/test-isnanf-nolibm.c: factored most of its contents into
53613         new file tests/test-isnanf.h.
53614         * tests/test-isnanf.h: New file.
53615         * tests/test-isnanf.c: New file.
53616         * MODULES.html.sh: Mention new module.
53617         * doc/glibc-functions/isnanf.texi: Mention new module.
53618
53619 2008-07-10  Ben Pfaff  <blp@gnu.org>
53620
53621         Add isnand module.
53622         * lib/isnand.h: New file.
53623         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53624         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53625         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53626         functionality also.
53627         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53628         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53629         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53630         * modules/isnand: New file.
53631         * modules/isnand-tests: New file.
53632         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53633         files.
53634         * tests/test-isnand-nolibm.c: factored most of its contents into
53635         new file tests/test-isnand.h.
53636         * tests/test-isnand.h: New file.
53637         * tests/test-isnand.c: New file.
53638         * MODULES.html.sh: Mention new module.
53639
53640 2008-07-10  Ben Pfaff  <blp@gnu.org>
53641
53642         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53643         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53644         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53645         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53646         * modules/isnanf-nolibm: Update references to renamed files.
53647         * modules/isnand-nolibm: Likewise.
53648         * modules/isnanf-nolibm-tests: Likewise.
53649         * modules/isnand-nolibm-tests: Likewise.
53650         * lib/frexp.c: Likewise.
53651         * lib/isfinite.c: Likewise.
53652         * lib/signbitd.c: Likewise.
53653         * lib/signbitf.c: Likewise.
53654         * lib/vasnprintf.c: Likewise.
53655         * tests/test-ceilf1.c: Likewise.
53656         * tests/test-ceilf2.c: Likewise.
53657         * tests/test-floorf1.c: Likewise.
53658         * tests/test-floorf2.c: Likewise.
53659         * tests/test-frexp.c: Likewise.
53660         * tests/test-round1.c: Likewise.
53661         * tests/test-round2.c: Likewise.
53662         * tests/test-roundf1.c: Likewise.
53663         * tests/test-strtod.c: Likewise.
53664         * tests/test-trunc1.c: Likewise.
53665         * tests/test-trunc2.c: Likewise.
53666         * tests/test-truncf1.c: Likewise.
53667         * tests/test-truncf2.c: Likewise.
53668         * NEWS: Mention the renamed header files.
53669
53670 2008-07-11  Jim Meyering  <meyering@redhat.com>
53671
53672         vc-list-files: make the last-resort awk code more portable
53673         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53674         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53675         does not support it.
53676
53677 2008-07-10  Eric Blake  <ebb9@byu.net>
53678
53679         Work with tar's bootstrap.
53680         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53681         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53682         an m4 comment.
53683
53684 2008-07-09  Jim Meyering  <meyering@redhat.com>
53685
53686         posix-shell.m4: fix typo that made this test malfunction
53687         * m4/posix-shell.m4: Remove capitalization in variable name.
53688
53689 2008-07-08  Bruno Haible  <bruno@clisp.org>
53690
53691         * m4/onceonly.m4: Update comments.
53692         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53693
53694 2008-07-04  Jim Meyering  <meyering@redhat.com>
53695
53696         * users.txt: Add vc-dwim.
53697         (bison, coreutils): Use the gitweb URL.
53698
53699 2008-07-03  Jim Meyering  <meyering@redhat.com>
53700
53701         * users.txt: Add libffcall.  From Sam Steingold.
53702
53703 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53704
53705         getdate.y: do not ignore TZ with relative day, month or year offset
53706         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53707         relative-date-handling, since otherwise, the latter would clobber the
53708         sole output (an updated Start value) of the tz-handling block.
53709         * tests/test-getdate.c: Tests for the fix
53710
53711 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53712
53713         Recognize 'foo_LIBRARIES += libgnu.a'.
53714         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53715         makefile snippet has already specified an installation location,
53716         also using '+='.
53717
53718 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53719
53720         getdate.y: factor out common actions
53721         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53722         Use them in place of open-coded actions.
53723
53724 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53725
53726         Add self-test for getdate module.
53727         * modules/getdate-tests: New file.
53728         * tests/test-getdate.c: New file.
53729
53730 2008-06-29  Bruno Haible  <bruno@clisp.org>
53731
53732         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53733         .gitignore.
53734         Reported by Sylvain Beucler <beuc@beuc.net>.
53735
53736 2008-06-29  Bruno Haible  <bruno@clisp.org>
53737
53738         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53739         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53740
53741 2008-06-29  Bruno Haible  <bruno@clisp.org>
53742
53743         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53744         EXTRA_DIST.
53745         Reported by Sylvain Beucler <beuc@beuc.net>.
53746
53747 2008-06-26  Jim Meyering  <meyering@redhat.com>
53748
53749         make several modules depend on the "open" module
53750         This provides slightly increased consistency when opening-for-write
53751         the name of a non-directory spelled with a trailing slash.
53752         * modules/chdir-safer: Likewise.
53753         * modules/chown: Likewise.
53754         * modules/clean-temp: Likewise.
53755         * modules/copy-file: Likewise.
53756         * modules/fchdir: Likewise.
53757         * modules/fcntl-safer: Likewise.
53758         * modules/pipe: Likewise.
53759         * modules/utime: Likewise.
53760         Prompted by Eric Blake and Bruno Haible.
53761
53762 2008-06-24  Andreas Schwab  <schwab@suse.de>
53763
53764         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53765         literals can be used as initializers for global variables.
53766
53767 2008-06-23  Eric Blake  <ebb9@byu.net>
53768
53769         Make gnulib-cache.m4 easier to diff.
53770         * gnulib-tool (func_import): Allow newlines when reading cached
53771         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53772
53773 2008-06-23  Bruno Haible  <bruno@clisp.org>
53774
53775         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53776         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53777         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53778         m4/signalblocking.m4.
53779         (gl_PREREQ_SIGACTION): Don't invoke it.
53780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53781         gl_PREREQ_SIG_HANDLER_H.
53782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53783         Don't check for sigaction here.
53784
53785 2008-06-23  Bruno Haible  <bruno@clisp.org>
53786
53787         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53788         (install_handlers): Don't set the SA_RESETHAND flag.
53789
53790 2008-06-23  Bruno Haible  <bruno@clisp.org>
53791
53792         * m4/sigaction.m4: Comment fixes.
53793         * lib/signal.in.h: Likewise.
53794
53795 2008-06-23  Eric Blake  <ebb9@byu.net>
53796
53797         Fix typo.
53798         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53799
53800         Avoid SA_ namespace.
53801         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53802         Reported by Ralf Wildenhues.
53803
53804         Avoid test failure due to SA_RESTORER.
53805         * tests/test-sigaction.c (SA_MASK): New macro.
53806         (main): Avoid failing due to extension flags being set.
53807         Reported by Jim Meyering.
53808
53809         Revert use of sig-handler.h in sigprocmask.c.
53810         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53811         it requires the existence of struct sigaction.
53812         * lib/sigprocmask.c (handler_t): Restore typedef.
53813         (rpl_signal, old_handlers): Use local type.
53814
53815 2008-06-22  Bruno Haible  <bruno@clisp.org>
53816
53817         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53818         conditionally.
53819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53820
53821 2008-06-22  Bruno Haible  <bruno@clisp.org>
53822
53823         * doc/posix-functions/siginterrupt.texi: Move note.
53824
53825         * lib/signal.in.h (SA_RESTART): New macro.
53826         * lib/sigaction.c: Update comment.
53827
53828         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53829
53830         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53831         (gl_PREREQ_SIGPROCMASK): Invoke it.
53832         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53833
53834         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53835
53836         * lib/sigprocmask.c: Update a comment.
53837
53838 2008-06-21  Eric Blake  <ebb9@byu.net>
53839
53840         Use sigaction module rather than signal().
53841         * modules/c-stack (Depends-on): Add sigaction.
53842         * modules/fatal-signal (Depends-on): Likewise.
53843         * modules/nanosleep (Depends-on): Likewise.
53844         * modules/sigprocmask (Files): Add sig-handler.h.
53845         * modules/sigaction (Files): Likewise.
53846         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53847         Eggert.
53848         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53849         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53850         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53851         (init_fatal_signals): Likewise.
53852         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53853         (siginterrupt): Delete fallback.
53854         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53855         instead.
53856         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53857         siginterrupt.
53858
53859         New module sigaction, for mingw.
53860         * modules/sigaction: New module...
53861         * modules/sigaction-tests: ...and its test.
53862         * m4/sigaction.m4: New file.
53863         * lib/sigaction.c: Likewise.
53864         * tests/test-sigaction.c: Likewise.
53865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53866         * modules/signal (Makefile.am): Likewise.
53867         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53868         needed.
53869         * doc/posix-headers/signal.texi (signal.h): Mention provided
53870         types.
53871         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53872         that sigaction is preferable.
53873         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53874         module.
53875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53876         sigaction.
53877
53878         Improve robustness of sigprocmask by overriding signal.
53879         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53880         is in use.
53881         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53882         (SIGKILL, SIGSTOP): Provide fallbacks.
53883         (rpl_signal): Implement.
53884         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53885         signal can be called inside handlers.
53886
53887         Fix nanosleep module on mingw.
53888         * modules/nanosleep (Depends-on): Add sys_select.
53889         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53890
53891         Fix licensing of sigprocmask.
53892         * modules/raise (License): Relicense as LGPL.
53893
53894 2008-06-21  Bruno Haible  <bruno@clisp.org>
53895
53896         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53897         result if it contains question marks.
53898         Reported by Michael Geng <linux@michaelgeng.de>.
53899
53900 2008-06-19  Bruno Haible  <bruno@clisp.org>
53901
53902         Fix CVS-ism.
53903         * doc/gnulib.texi: Include updated-stamp.texi.
53904         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53905         (updated-stamp.texi): New rule.
53906         (gnulib.info): Depend on it.
53907         * doc/.gitignore: Add updated-stamp.texi.
53908         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53909
53910 2008-06-19  Bruno Haible  <bruno@clisp.org>
53911
53912         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53913         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53914
53915 2008-06-19  Eric Blake  <ebb9@byu.net>
53916
53917         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53918         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53919         Reported by Stepan Kasal.
53920
53921 2008-06-18  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53924         Reported by Eric Blake.
53925
53926 2008-06-18  Eric Blake  <ebb9@byu.net>
53927
53928         Work around cygwin 1.5.25 strsignal bug.
53929         * tests/test-strsignal.c: Allow for const char *.
53930         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53931
53932 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53933
53934         * users.txt: Update URL to article and add author/date
53935         information.
53936
53937 2008-06-17  Bruno Haible  <bruno@clisp.org>
53938
53939         New macro gl_DISABLE_THREADS.
53940         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53941         if the user did not pass --enable-threads or --disable-threads option.
53942         (gl_DISABLE_THREADS): New macro.
53943         Reported by Eric Blake <ebb9@byu.net>.
53944
53945 2008-06-17  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53948         when the macro ignores it.
53949         Based on a patch by Eric Blake <ebb9@byu.net>.
53950
53951 2008-06-17  Bruno Haible  <bruno@clisp.org>
53952
53953         * modules/tls (License): Change to LGPLv2+.
53954         Reported by Eric Blake.
53955
53956 2008-06-17  Eric Blake  <ebb9@byu.net>
53957
53958         Simplify c-stack prerequisites.
53959         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53961         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53962         check.
53963         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53964         <sys/resource.h>.
53965
53966         Move c-stack test into testsuite.
53967         * modules/c-stack-tests: New file.
53968         * lib/c-stack.c [DEBUG]: Move test program...
53969         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53970         fail test if sigaltstack is lacking.
53971         * tests/test-c-stack.sh: New driver file.
53972
53973 2008-06-16  Eric Blake  <ebb9@byu.net>
53974
53975         Use raise module consistently.
53976         * modules/fatal-signal (Depends-on): Add raise.
53977         * modules/sigprocmask (Depends-on): Likewise.
53978         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53979         * lib/sigprocmask.c (sigprocmask): Likewise.
53980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53981         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53982
53983         Fix compliance bug in sigpending.
53984         * lib/sigprocmask.c (sigpending): Return pending array via
53985         parameter, not return value.
53986
53987 2008-06-14  Eric Blake  <ebb9@byu.net>
53988
53989         Improve obstack-printf test code.
53990         * tests/test-obstack-printf.c (test_function): Fix comment, and
53991         simplify usage of obstack_* in macros.  Add a test for coverage.
53992         Reported by Bruno Haible.
53993
53994 2008-06-14  Bruno Haible  <bruno@clisp.org>
53995
53996         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53997         array size as a constant, not as a const variable.
53998         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53999         AC_USE_SYSTEM_EXTENSIONS.
54000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54001         Test whether the obstack_printf function actually exists.
54002         * modules/obstack-printf (Depends-on): Add extensions.
54003         (Include): Remove obstack.h.
54004         * modules/obstack-printf-posix (Depends-on): Add extensions.
54005         (Include): Remove obstack.h.
54006
54007 2008-06-13  Eric Blake  <ebb9@byu.net>
54008
54009         Add obstack-printf and obstack-printf-posix modules.
54010         * modules/obstack-printf: New file.
54011         * modules/obstack-printf-posix: Likewise.
54012         * MODULES.html.sh (Misc): Mention them.
54013         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54014         Likewise.
54015         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54016         Likewise.
54017         * modules/stdio (Makefile.am): Accomodate new modules.
54018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54019         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54020         Declare.
54021         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54022         functions.
54023         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54024         (gl_REPLACE_OBSTACK_PRINTF): New macros
54025         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54026         * tests/test-obstack-printf.c: New file.
54027         * modules/obstack-printf-tests: Likewise.
54028         * modules/obstack-printf-posix-tests: Likewise.
54029
54030 2008-06-11  Bruno Haible  <bruno@clisp.org>
54031
54032         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54033         * lib/open.c: Include errno.h.
54034         (open): Fail when attempting to write to a file that has a trailing
54035         slash.
54036         * tests/test-open.c (main): Test against trailing slash bug.
54037         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54038
54039 2008-06-10  Bruno Haible  <bruno@clisp.org>
54040
54041         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54042         for $? to work inside the trap command, with various /bin/sh-s.
54043         * tests/test-vc-list-files-cvs.sh: Likewise.
54044
54045 2008-06-10  Bruno Haible  <bruno@clisp.org>
54046
54047         * lib/acl-internal.h: Don't include gettext.h here.
54048         * lib/set-mode-acl.c: Include gettext.h here.
54049         * lib/copy-acl.c: Likewise.
54050
54051 2008-06-10  Bruno Haible  <bruno@clisp.org>
54052
54053         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54054         * lib/wait-process.c (wait_subprocess): Likewise.
54055         * lib/execute.h (execute): Add termsigp argument.
54056         * lib/execute.c (execute): Likewise.
54057         * lib/csharpcomp.c (compile_csharp_using_pnet,
54058         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54059         * lib/csharpexec.c (execute_csharp_using_pnet,
54060         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54061         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54062         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54063         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54064         is_jikes_present): Update.
54065         * lib/javaexec.c (execute_java_class): Update.
54066         * lib/javaversion.c (execute_and_read_line): Update.
54067         * NEWS: Document the changes.
54068         Reported by Eric Blake.
54069
54070 2008-06-10  Eric Blake  <ebb9@byu.net>
54071
54072         Add missing include.
54073         * tests/test-strstr.c (includes): Add <signal.h>.
54074         * tests/test-strcasestr.c (includes): Likewise.
54075         * tests/test-memmem.c (includes): Likewise.
54076
54077 2008-06-10  Bruno Haible  <bruno@clisp.org>
54078
54079         * lib/wait-process.c (wait_subprocess): Add an assertion.
54080
54081 2008-06-10  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54084
54085 2008-06-10  Bruno Haible  <bruno@clisp.org>
54086
54087         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54088         using alarm().
54089         * tests/test-strcasestr.c (main): Likewise.
54090         * tests/test-strstr.c (main): Likewise.
54091
54092 2008-06-09  Bruno Haible  <bruno@clisp.org>
54093
54094         Work around the Solaris 10 ACE ACLs ABI change.
54095         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54096         declare if ACL_NO_TRIVIAL is present.
54097         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54098         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54099         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54100         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54101         define if ACL_NO_TRIVIAL is present.
54102         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54103         and use the current ABI.
54104         (file_has_acl): Use same #if condition as elsewhere.
54105         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54106         in use, and use the current ABI.
54107         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54108         Reported by Jim Meyering.
54109
54110 2008-06-09  Eric Blake  <ebb9@byu.net>
54111
54112         Work around environments that (stupidly) ignore SIGALRM.
54113         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54114         before using alarm().
54115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54117         Reported by Ian Beckwith <ianb@erislabs.net>.
54118
54119         Produce autobuild blurb earlier in log.
54120         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54121
54122 2008-06-09  Jim Meyering  <meyering@redhat.com>
54123         and OndÅ™ej Vašík  <ovasik@redhat.com>
54124
54125         utimens.c: correct kernel bug work-around
54126         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54127         failure, not success, and the kernel bug we're trying to work
54128         around affects not just the utimensat call, but also the fallback
54129         futimens call.
54130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54131         not success.
54132         [HAVE_FUTIMENS]: Use the same work-around, here.
54133
54134 2008-06-09  Jim Meyering  <meyering@redhat.com>
54135
54136         add more guards around definition of ACE_-related code
54137         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54138         ALLOW and ACE_OWNER are also defined.
54139
54140 2008-06-08  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/acl-internal.h: Add me as co-author.
54143         * lib/file-has-acl.c: Likewise.
54144         * lib/set-mode-acl.c: Likewise.
54145         * lib/copy-acl.c: Likewise.
54146
54147 2008-06-08  Bruno Haible  <bruno@clisp.org>
54148
54149         Add support for AIX ACLs.
54150         * lib/acl-internal.h (acl_nontrivial): New declaration.
54151         * lib/file-has-acl.c (acl_nontrivial): New function.
54152         (file_has_acl): Add implementation using AIX 4 ACL API.
54153         * lib/set-mode-acl.c (qset_acl): Likewise.
54154         * lib/copy-acl.c (qcopy_acl): Likewise.
54155
54156 2008-06-08  Bruno Haible  <bruno@clisp.org>
54157
54158         Add support for HP-UX ACLs.
54159         * lib/acl-internal.h (acl_nontrivial): New declaration.
54160         * lib/file-has-acl.c (acl_nontrivial): New function.
54161         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54162         * lib/set-mode-acl.c (qset_acl): Likewise.
54163         * lib/copy-acl.c (qcopy_acl): Likewise.
54164
54165 2008-06-08  Bruno Haible  <bruno@clisp.org>
54166
54167         Add support for Cygwin ACLs.
54168         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54169         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54170         the chmod_or_fchmod call.
54171         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54172
54173 2008-06-08  Bruno Haible  <bruno@clisp.org>
54174
54175         Fix bug with setuid modes in Solaris 10+ code.
54176         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54177         succeeded, when the mode contains some special bits.
54178
54179 2008-06-08  Bruno Haible  <bruno@clisp.org>
54180
54181         Add support for Solaris 7..10 ACLs.
54182         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54183         declarations.
54184         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54185         functions.
54186         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54187         * lib/set-mode-acl.c (qset_acl): Likewise.
54188         * lib/copy-acl.c (qcopy_acl): Likewise.
54189
54190 2008-06-08  Bruno Haible  <bruno@clisp.org>
54191
54192         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54193         declaration.
54194         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54195         (acl_access_nontrivial): Remove MacOS X case.
54196         (file_has_acl): Use acl_extended_nontrivial.
54197         * lib/copy-acl.c (qcopy_acl): Likewise.
54198
54199 2008-06-08  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54202
54203 2008-06-08  Jim Meyering  <meyering@redhat.com>
54204
54205         * modules/acl (Maintainer): Add Bruno Haible.
54206
54207 2008-06-07  Bruno Haible  <bruno@clisp.org>
54208
54209         Improve support for Tru64 ACLs.
54210         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54211         ACL on OSF/1.
54212
54213 2008-06-07  Bruno Haible  <bruno@clisp.org>
54214
54215         Add support for MacOS X ACLs.
54216         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54217         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54218         * lib/set-mode-acl.c (qset_acl): Likewise.
54219         * lib/copy-acl.c (qcopy_acl): Likewise.
54220
54221 2008-06-07  Bruno Haible  <bruno@clisp.org>
54222
54223         Fix memory leak introduced on 2008-05-22.
54224         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54225         use.
54226
54227 2008-06-07  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54230         to construct an empty ACL.
54231
54232 2008-06-07  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54235         precisely.
54236         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54237
54238 2008-06-07  Bruno Haible  <bruno@clisp.org>
54239
54240         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54241         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54242
54243 2008-06-07  Bruno Haible  <bruno@clisp.org>
54244
54245         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54246         regardless of POSIX.
54247         * doc/posix-functions/_longjmp.texi: Likewise.
54248         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54249         SystemV platform in this case.
54250
54251 2008-06-06  Eric Blake  <ebb9@byu.net>
54252
54253         Document abort() bugs.
54254         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54255
54256         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54257         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54258         sigsetjmp.
54259         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54260         siglongjmp, but only as a macro.
54261         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54262         is obsolete.
54263         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54264
54265         Tweak documentation to cover cygwin argz bugs.
54266         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54267         argz bug fix; no code change needed since no cygwin releases
54268         occurred between the last fix and the bug being tested.
54269         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54270         module and recently fixed cygwin bugs.
54271         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54272         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54273         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54274         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54275         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54276         Likewise.
54277         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54278         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54279         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54280         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54281         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54282         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54283         Likewise.
54284
54285         Avoid gcc warning on cygwin.
54286         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54287         !ACL_NO_TRIVIAL]: Avoid unused variable.
54288
54289 2008-06-05  Eric Blake  <ebb9@byu.net>
54290
54291         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54292         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54293         git-version-gen fails to come up with a version.
54294         Reported by Simon Josefsson.
54295
54296 2008-06-05  Jim Meyering  <meyering@redhat.com>
54297             Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         utimens.c: work around a probable Linux kernel bug
54300         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54301         appears to be a kernel bug that causes utimensat to return 280
54302         instead of 0, indicating success.
54303
54304 2008-06-04  Bruno Haible  <bruno@clisp.org>
54305
54306         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54307         2008-06-01 commit.
54308
54309 2008-06-04  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54312         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54313         (file_has_acl): Use it. Save errno afterwards.
54314         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54315
54316 2008-06-03  Bruno Haible  <bruno@clisp.org>
54317
54318         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54319         draft code. Simplify #ifs.
54320         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54321         Put Solaris code after POSIX-draft code. Fix comments regarding
54322         Solaris 10, HP-UX. Mention Cygwin.
54323         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54324
54325 2008-06-03  Eric Blake  <ebb9@byu.net>
54326
54327         Provide fallback for older kernels.
54328         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54329         Provide runtime fallback if kernel lacks support.
54330         Reported by Mike Frysinger.
54331
54332 2008-06-02  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54335         it exists.
54336
54337 2008-06-02  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54340         * lib/copy-acl.c (qcopy_acl): Update comment.
54341
54342 2008-06-02  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54345         like ACL APIs.
54346
54347 2008-06-02  Bruno Haible  <bruno@clisp.org>
54348
54349         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54350         * tests/test-set-mode-acl.sh: Likewise.
54351         * tests/test-copy-acl.sh: Likewise.
54352         * tests/test-copy-file.sh: Likewise.
54353
54354 2008-06-02  Bruno Haible  <bruno@clisp.org>
54355
54356         * tests/test-file-has-acl.sh: Remove unused code.
54357
54358 2008-06-01  Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54361         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54362         messages.
54363         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54364
54365 2008-06-01  Bruno Haible  <bruno@clisp.org>
54366
54367         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54368         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54369         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54370         APIs.
54371         * modules/acl-tests (configure.ac): Remove tests now contained in
54372         m4/acl.m4.
54373
54374 2008-06-02  Jim Meyering  <meyering@redhat.com>
54375
54376         announce-gen: use a better key-server host name
54377         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54378         it may be more consistently reliable.  Suggested by Werner Koch
54379         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54380
54381 2008-06-01  Bruno Haible  <bruno@clisp.org>
54382
54383         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54384         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54385
54386 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54387
54388         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54389
54390 2008-06-01  Bruno Haible  <bruno@clisp.org>
54391
54392         New ACL tests.
54393         * tests/test-file-has-acl.sh: New file.
54394         * tests/test-file-has-acl.c: New file.
54395         * tests/test-set-mode-acl.sh: New file.
54396         * tests/test-set-mode-acl.c: New file.
54397         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54398         * tests/test-copy-acl.c: New file.
54399         * modules/acl-tests: New file, based on modules/copy-file-tests.
54400         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54401         (Depends-on): Add acl-tests.
54402         (configure.ac): Remove checks.
54403         (Makefile.am): Don't create test-sameacls program here any more.
54404
54405 2008-06-01  Bruno Haible  <bruno@clisp.org>
54406
54407         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54408         * tests/test-sameacls.c: Include progname.h.
54409         (main): Invoke set_program_name. Portability fixes for MacOS X,
54410         Solaris, HP-UX.
54411
54412 2008-06-01  Bruno Haible  <bruno@clisp.org>
54413
54414         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54415         function.
54416         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54417
54418 2008-06-01  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/rpmatch (Depends-on): Add strdup.
54421
54422 2008-06-01  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/pipe.c: Include unistd-safer.h.
54425         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54426         * modules/pipe (Depends-on): Add unistd-safer.
54427
54428 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54429
54430         * modules/autobuild (configure.ac): Call AB_INIT.
54431
54432 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54433
54434         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54435         Suggested by Bruno Haible <bruno@clisp.org>.
54436
54437 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54438
54439         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54440         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54441         <bruno@clisp.org>.
54442
54443 2008-05-29  Eric Blake  <ebb9@byu.net>
54444
54445         Prefer new POSIX 200x interfaces over futimesat.
54446         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54447         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54448         when available.
54449         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54450
54451 2008-05-28  Bruno Haible  <bruno@clisp.org>
54452
54453         * modules/stpcpy (License): Change to LGPLv2+.
54454         Requested by David Lutterkort <dlutter@redhat.com>.
54455
54456 2008-05-27  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54459         current mingw.
54460         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54461
54462 2008-05-27  Bruno Haible  <bruno@clisp.org>
54463
54464         * modules/iconv_open (Link): New section, from module 'iconv'.
54465         * modules/striconv (Link): Likewise.
54466         * modules/striconveh (Link): Likewise.
54467         * modules/xstriconv (Link): Likewise.
54468         * modules/unicodeio (Link): Likewise.
54469         * modules/propername (Link): Likewise.
54470         Reported by Jim Meyering.
54471
54472 2008-05-26  Jim Meyering  <meyering@redhat.com>
54473
54474         sha256: do not artificially restrict buffer length to be < 2^32
54475         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54476         uint32_t to size_t.
54477         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54478         to match.
54479
54480         avoid unaligned access errors, e.g., on sparc
54481         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54482         direct access through a possibly-unaligned uint64* pointer.
54483         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54484         direct access through a possibly-unaligned uint32* pointer.
54485         Prompted by this patch from Tom "spot" Callaway:
54486         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54487
54488         sha512.c: fix typo in comment
54489         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54490
54491 2008-05-25  Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54494         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54495         (Makefile.am): Update lib_SOURCES.
54496
54497 2008-05-25  Bruno Haible  <bruno@clisp.org>
54498
54499         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54500
54501 2008-05-25  Jim Meyering  <meyering@redhat.com>
54502
54503         useless-if-before-free: freed expr may have white-space differences
54504         * build-aux/useless-if-before-free: Recognize cases in which the
54505         freed expression differs from the tested one in embedded white
54506         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54507         $1 was used, so we can't make any regexp shy.  Improved tests now
54508         detect this.
54509
54510         useless-if-before-free: accept white space in the expression.
54511         * build-aux/useless-if-before-free: For now, any white space
54512         in the expression must be identical in the free argument.
54513
54514         useless-if-before-free: efficiency tweak
54515         * build-aux/useless-if-before-free: Make the expression-matching
54516         regexp "shy".
54517         Make the *outer* regexp shy, not the expr-matching one.
54518
54519         update code-in-comment to accept cast of free arg
54520         * build-aux/useless-if-before-free: Update regexp.
54521
54522 2008-05-25  Bruno Haible  <bruno@clisp.org>
54523
54524         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54525         * modules/copy-file-tests (Files, Makefile.am): Update.
54526         * tests/test-copy-file.c (func_test_copy): Update.
54527
54528 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54529
54530         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54531
54532 2008-05-23  Bruno Haible  <bruno@clisp.org>
54533
54534         Improve support for ACLs on OSF/1.
54535         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54536         Remove fallback for unknown flavors of ACLs.
54537
54538 2008-05-22  Bruno Haible  <bruno@clisp.org>
54539
54540         Add support for ACLs on OSF/1.
54541         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54542         replacements.
54543         (acl_free_text): New macro fallback.
54544         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54545         acl_free.
54546         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54547         acl_free_text function. Require AC_C_INLINE.
54548
54549 2008-05-22  Bruno Haible  <bruno@clisp.org>
54550
54551         Make copy_acl work on MacOS X 10.5.
54552         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54553         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54554         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54555         If MODE_INSIDE_ACL, don't assume that every system has the same text
54556         representation for ACLs as FreeBSD.
54557         * lib/copy-acl.c (copy_acl): Add support for platforms with
54558         !MODE_INSIDE_ACL.
54559         * lib/file-has-acl.c (file_has_acl): Likewise.
54560         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54561         FreeBSD, MacOS X, or IRIX, respectively.
54562
54563 2008-05-22  Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/acl.h: Don't include <sys/acl.h>.
54566         (GETACLCNT): Move fallback to lib/acl-internal.h.
54567         * lib/acl-internal.h: Include <sys/acl.h> here.
54568         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54569
54570 2008-05-22  Bruno Haible  <bruno@clisp.org>
54571
54572         Split off copy_acl function to separate file.
54573         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54574         * lib/acl.c (copy_acl): Moved function to separate file.
54575         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54576         * modules/acl (Files): Add lib/copy-acl.c.
54577         (Makefiles.am): Augment lib_SOURCES.
54578
54579 2008-05-22  Bruno Haible  <bruno@clisp.org>
54580
54581         * modules/copy-file-tests: New file.
54582         * tests/test-copy-file.sh: New file.
54583         * tests/test-copy-file.c: New file.
54584         * tests/test-copy-file-sameacls.c: New file.
54585
54586 2008-05-22  Eric Blake  <ebb9@byu.net>
54587
54588         Avoid gcc warning.
54589         * tests/test-memcmp.c (main): Pass NULL indirectly.
54590
54591 2008-05-21  Bruno Haible  <bruno@clisp.org>
54592
54593         Add reference doc about ACLs.
54594         * doc/acl-resources.txt: New file.
54595         * doc/acl-cygwin.txt: New file.
54596
54597 2008-05-21  Bruno Haible  <bruno@clisp.org>
54598
54599         Avoid one more warning from gcc.
54600         * lib/vasnprintf.c (IF_LINT): Update comments.
54601         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54602
54603 2008-05-21  Jim Meyering  <meyering@redhat.com>
54604
54605         avoid a warning from gcc
54606         * lib/vasnprintf.c (IF_LINT): Define.
54607         (scale10_round_decimal_long_double):
54608         Use it to avoid a "may be used uninitialized" warning.
54609         (scale10_round_decimal_double): Likewise.
54610
54611 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54612
54613         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54614         declared.
54615
54616 2008-05-20  Bruno Haible  <bruno@clisp.org>
54617
54618         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54619         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54620
54621 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54622
54623         * modules/memcmp-tests: New file.
54624         * tests/test-memcmp.c: New file.
54625
54626 2008-05-19  Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/propername (Notice, configure.ac): Put quoted "..." into
54629         --keyword option.
54630         * lib/propername.h: Update comments accordingly.
54631         Reported by Eric Blake.
54632
54633 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54634
54635         * modules/getpass-gnu (Depends-on): Add fseeko.
54636
54637 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54638
54639         * modules/base64-tests: New file.
54640
54641 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54642
54643         * lib/base64.c (base64_decode_ctx): If a decode context structure
54644         was passed in use it to ignore newlines.  If a context structure
54645         was _not_ passed in, continue to treat newlines as garbage (this
54646         is the historical behavior).  Formerly base64_decode.
54647         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54648         takes a decode context structure.
54649         * lib/base64.h (base64_decode): Macro for four-argument calls.
54650         (base64_decode_alloc): Likewise.
54651         * lib/base64.c (base64_decode_ctx): If a decode context structure
54652         was passed in use it to ignore newlines.  If a context structure
54653         was _not_ passed in, continue to treat newlines as garbage (this
54654         is the historical behavior).  Formerly base64_decode.
54655         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54656         takes a decode context structure.
54657         * lib/base64.h (base64_decode): Macro for four-argument calls.
54658         (base64_decode_alloc): Likewise.
54659
54660 2008-05-19  Jim Meyering  <meyering@redhat.com>
54661
54662         avoid a warning from gcc
54663         * lib/trim.c (IF_LINT): Define.
54664         (trim2): Use it to avoid a "may be used uninitialized" warning.
54665
54666         Fix doc typo.
54667         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54668
54669 2008-05-19  Bruno Haible  <bruno@clisp.org>
54670
54671         * doc/glibc-functions/getpass.texi: Document limits of other
54672         implementations.
54673
54674 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54675             Bruno Haible <bruno@clisp.org>
54676
54677         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54678
54679 2008-05-18  Bruno Haible  <bruno@clisp.org>
54680
54681         * modules/propername: New file, from GNU gettext.
54682         * lib/propername.h: New file, from GNU gettext.
54683         * lib/propername.c: New file, from GNU gettext.
54684         * MODULES.html.sh (Internationalization functions): Add propername.
54685
54686 2008-05-16  Jim Meyering  <meyering@redhat.com>
54687             Bruno Haible  <bruno@clisp.org>
54688
54689         Avoid some warnings from "gcc -Wshadow".
54690         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54691
54692 2008-05-15  Eric Blake  <ebb9@byu.net>
54693
54694         Extend previous patch to cygwin 1.7.0.
54695         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54696         fast implementation in cygwin >= 1.7.0.
54697         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54699
54700 2008-05-15  Bruno Haible  <bruno@clisp.org>
54701
54702         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54703         implementation in glibc >= 2.9.
54704         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54706
54707 2008-05-15  Bruno Haible  <bruno@clisp.org>
54708
54709         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54710         (Unicode string functions): Add unilbrk/*.
54711         Reported by Karl Berry.
54712
54713 2008-05-15  Eric Blake  <ebb9@byu.net>
54714
54715         Fix violation of <stdbool.h> replacement in regex.
54716         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54717         * lib/regexec.c (re_search_internal): Likewise.
54718         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54719
54720 2008-05-15  Jim Meyering  <meyering@redhat.com>
54721
54722         avoid distracting test output when git or cvs is not found
54723         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54724         * tests/test-vc-list-files-git.sh: Likewise.
54725
54726 2008-05-15  Eric Blake  <ebb9@byu.net>
54727
54728         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54729         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54730         glibc version.
54731         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54732         * doc/posix-functions/strstr.texi (strstr): Likewise.
54733         * lib/str-two-way.h (MAX): Sychronize with glibc.
54734
54735 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54736
54737         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54738         opr.ctx_type.
54739         (calc_first): Initialize constraint field.
54740         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54741         Fix grammar.
54742         (duplicate_node): Merge constraint field for all node types.
54743         (calc_eclosure_iter): Look at constraint field for all node types.
54744         * lib/regex_internal.c (create_cd_newstate): Don't look at
54745         opr.ctx_type.
54746
54747 2008-05-14  Bruno Haible  <bruno@clisp.org>
54748
54749         Help GCC to do better code generation.
54750         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54751         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54752         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54753         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54754         Declare with attribute 'malloc' if supported.
54755
54756 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54757
54758         use "echo STR|wc -c" rather than unportable "expr length STR"
54759         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54760         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54761
54762 2008-05-14  Jim Meyering  <meyering@redhat.com>
54763
54764         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54765         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54766         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54767         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54768         via Collin Lasse.
54769
54770 2008-05-14  Eric Blake  <ebb9@byu.net>
54771
54772         Avoid quadratic growth in gl_LIBSOURCES.
54773         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54774         Suggested by Bruno Haible.
54775
54776         Test xmemdup0.
54777         * modules/xmemdup0-tests: New file.
54778         * tests/test-xmemdup0.c: Likewise.
54779
54780 2008-05-13  Eric Blake  <ebb9@byu.net>
54781
54782         Split xmemdup0 into its own module.
54783         * modules/xmemdup0: New file.
54784         * lib/xmemdup0.h: Likewise.
54785         * lib/xmemdup0.c: Likewise.
54786         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54787         * lib/xalloc.h (xmemdup0): Remove.
54788         * lib/xmalloc.c (xmemdup0): Likewise.
54789
54790 2008-05-13  Eric Blake  <ebb9@byu.net>
54791             Bruno Haible  <bruno@clisp.org>
54792
54793         Reduce number of forks required during autoconf.
54794         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54795         and gl_LIBSOURCES_DIR.
54796         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54797         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54798         m4_syscmd per file.
54799         <m4_foreach_w>: Move...
54800         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54801
54802 2008-05-13  Eric Blake  <ebb9@byu.net>
54803
54804         * gnulib-tool: Fix various comment typos.
54805
54806 2008-05-12  Bruno Haible  <bruno@clisp.org>
54807
54808         Tailor the linebreaking algorithm.
54809         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54810
54811 2008-05-12  Bruno Haible  <bruno@clisp.org>
54812
54813         Update to Unicode 5.0.0.
54814         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54815         LBP_JV, LBP_JT. Redistribute values.
54816         (unilbrk_table): Change size.
54817         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54818         Unicode TR#14 rev. 22.
54819         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54820         LBP_JV, LBP_JT. Redistribute values.
54821         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54822         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54823         Update.
54824         * lib/unilbrk/lbrkprop1.h: Regenerated.
54825         * lib/unilbrk/lbrkprop2.h: Regenerated.
54826         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54827         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54828         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54829         Likewise.
54830         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54831         Likewise.
54832         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54833         result.
54834         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54835         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54836         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54837         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54838         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54839         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54840
54841 2008-05-11  Bruno Haible  <bruno@clisp.org>
54842
54843         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54844
54845 2008-05-11  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54848         * modules/unilbrk/gen-lbrk: New file.
54849
54850 2008-05-11  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54853         * m4/sha512.m4 (gl_SHA512): Likewise.
54854
54855 2008-05-11  Jim Meyering  <meyering@redhat.com>
54856
54857         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54858         * modules/crypto/sha256: New file.
54859         * modules/crypto/sha512: Likewise.
54860         * lib/sha256.c: Likewise.
54861         * lib/sha256.h: Likewise.
54862         * lib/sha512.c: Likewise.
54863         * lib/sha512.h: Likewise.
54864         * lib/u64.h: Likewise.
54865         * m4/sha256.m4: Likewise.
54866         * m4/sha512.m4: Likewise.
54867         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54868
54869 2008-05-10  Bruno Haible  <bruno@clisp.org>
54870
54871         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54872         (Input/Output <stdio.h>): Add xprintf.
54873         (Signal handling <signal.h>): Add strsignal.
54874         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54875         (Core language properties): Add func.
54876         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54877         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54878         strings.
54879         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54880         (Input/output): New section.
54881         (File system functions): Add openat-die, stat-macros.
54882         (Networking functions): Add sockets.
54883         (Unicode string functions): Add unictype/*.
54884         (Support for building libraries and executables): Add gperf.
54885         (Support for building documentation): Add agpl-3.0.
54886         (Misc): Add nocrash.
54887
54888 2008-05-10  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/unictype/gen-ctype: New file.
54891
54892 2008-05-10  Jim Meyering  <meyering@redhat.com>
54893
54894         Make chdir-safer.c more efficient on a system with no symlinks.
54895         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54896         also if ELOOP is zero.  Suggested by Bruno Haible.
54897
54898         Make chdir-safer.c slightly safer.
54899         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54900         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54901
54902         Avoid compile failure on systems without ELOOP (like mingw).
54903         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54904         Reported by Bruno Haible.
54905
54906 2008-05-10  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54909         (is_utf8_encoding): Use a case-insensitive comparison.
54910         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54911         streq.
54912
54913 2008-05-10  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54916         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54917         * lib/unilbrk/ulc-common.h (iconv_string_length,
54918         iconv_string_keeping_offsets): Remove declarations.
54919         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54920         Don't include <iconv.h>, streq.h, xsize.h.
54921         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54922         conversion.
54923         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54924         <iconv.h>, streq.h, xsize.h.
54925         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54926         conversion.
54927         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54928         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54929         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54930         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54931
54932 2008-05-10  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54935         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54936
54937         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54938         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54939
54940         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54941         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54942
54943         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54944         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54945
54946         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54947         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54948
54949         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54950         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54951
54952         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54953         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54954
54955         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54956         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54957
54958 2008-05-10  Bruno Haible  <bruno@clisp.org>
54959
54960         Split up 'linebreak' module.
54961         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54962         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54963         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54964         modifications.
54965         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54966         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54967         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54968         lib/linebreak.c.
54969         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54970         lib/linebreak.c.
54971         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54972         lib/linebreak.c.
54973         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54974         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54975         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54976         lib/linebreak.c.
54977         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54978         lib/linebreak.c.
54979         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54980         lib/linebreak.c.
54981         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54982         lib/linebreak.c.
54983         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54984         lib/linebreak.c.
54985         * modules/unilbrk/base: New file.
54986         * modules/unilbrk/tables: New file.
54987         * modules/unilbrk/u8-possible-linebreaks: New file.
54988         * modules/unilbrk/u16-possible-linebreaks: New file.
54989         * modules/unilbrk/u32-possible-linebreaks: New file.
54990         * modules/unilbrk/ulc-common: New file.
54991         * modules/unilbrk/ulc-possible-linebreaks: New file.
54992         * modules/unilbrk/u8-width-linebreaks: New file.
54993         * modules/unilbrk/u16-width-linebreaks: New file.
54994         * modules/unilbrk/u32-width-linebreaks: New file.
54995         * modules/unilbrk/ulc-width-linebreaks: New file.
54996         * lib/linebreak.h: Remove file.
54997         * lib/linebreak.c: Remove file.
54998         * m4/linebreak.m4: Remove file.
54999         * modules/linebreak: Remove file.
55000         * NEWS: Mention the changes.
55001
55002 2008-05-09  Eric Blake  <ebb9@byu.net>
55003
55004         Add xmemdup0.
55005         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55006         implementation.
55007         * lib/xmalloc.c (xmemdup0): New C implementation.
55008
55009 2008-05-08  Bruno Haible  <bruno@clisp.org>
55010
55011         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55012
55013 2008-05-07  Eric Blake  <ebb9@byu.net>
55014
55015         Support cross-compilation of <wctype.h>.
55016         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55017         AC_CACHE_CHECK.
55018
55019 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55020
55021         * build-aux/vc-list-files: Add support for bzr.
55022
55023 2008-05-03  Jim Meyering  <meyering@redhat.com>
55024
55025         avoid failed assertion with tight malloc
55026         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55027
55028 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55029
55030         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55031         are needed from arpa/inet.h.
55032         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55033         Reported by Bruno Haible.
55034
55035 2008-05-02  Jim Meyering  <meyering@redhat.com>
55036
55037         avoid compilation error on FreeBSD 6
55038         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55039
55040 2008-05-01  Jim Meyering  <meyering@redhat.com>
55041
55042         useless-if-before-free: correct --help's exit status description
55043         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55044         for one or more matches, etc.  Reported by Bruno Haible.
55045
55046         vc-list-files: make the stand-alone gnulib test work
55047         * modules/vc-list-files-tests (configure.ac):
55048         Define and AC_SUBST abs_aux_dir.
55049         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55050         $(abs_top_srcdir) to each script and having each of them
55051         duplicate the work of setting PATH, set PATH here, using
55052         the new variable, abs_aux_dir instead.
55053         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55054         * tests/test-vc-list-files-git.sh: Likewise.
55055         Reported by Bruno Haible.
55056
55057 2008-05-01  Bruno Haible  <bruno@clisp.org>
55058
55059         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55060         reallocation. Rename 'done' to 'found_delimiter'.
55061
55062 2008-05-01  Jim Meyering  <meyering@redhat.com>
55063
55064         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55065         * build-aux/vc-list-files: Use `...`, not $(...).
55066
55067 2008-04-30  Jim Meyering  <meyering@redhat.com>
55068
55069         add tests for vc-list-files
55070         * modules/vc-list-files-tests: New module.
55071         * tests/test-vc-list-files-cvs.sh: New file.
55072         * tests/test-vc-list-files-git.sh: New file.
55073
55074         avoid a warning from gcc
55075         * lib/getndelim2.c (IF_LINT): Define.
55076         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55077
55078         vc-list-files: work properly with build-aux/cvsu, too
55079         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55080         to all cvs-based clauses.
55081
55082         vc-list-files: work properly in the CVS+awk case, too
55083         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55084
55085         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55086         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55087         take more than one file argument, so .  Add quotes, just in case $dir
55088         ever contains a shell meta-character.  Prompted by Soren Hansen in
55089         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55090
55091 2008-04-29  Eric Blake  <ebb9@byu.net>
55092
55093         Optimize getndelim2 to use block operations when possible.
55094         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55095         freadseek, and memchr2.
55096         * lib/getndelim2.c (getndelim2): Use them for block reads.
55097
55098 2008-04-29  Bruno Haible  <bruno@clisp.org>
55099
55100         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55102         * modules/inet_ntop (Depends-on): Add extensions.
55103         * modules/inet_pton (Depends-on): Likewise.
55104         Reported by Simon Josefsson.
55105
55106 2008-04-29  Jim Meyering  <meyering@redhat.com>
55107
55108         When the is more than one match in a block, match all of them.
55109         * build-aux/useless-if-before-free: Iterate through each block
55110         until there are no more matches.
55111
55112         Fix broken useless-if-before-free script.
55113         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55114         the expression to match cast of argument to free-like function.
55115
55116 2008-04-29  Eric Blake  <ebb9@byu.net>
55117
55118         Use new header.
55119         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55120
55121 2008-04-29  Jim Meyering  <meyering@redhat.com>
55122
55123         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55124         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55125         by gnulib to exist and to declare e.g., inet_ntop.
55126         Don't include "inet_ntop.h", now removed.
55127
55128         * m4/arpa_inet_h.m4: Remove trailing blanks.
55129
55130 2008-04-29  Eric Blake  <ebb9@byu.net>
55131
55132         Silence valgrind on safe reads beyond potential array bounds.
55133         * lib/rawmemchr.valgrind: New file.
55134         * lib/strchrnul.valgrind: Likewise.
55135         * modules/rawmemchr (Files): Distribute new file.
55136         * modules/strchrnul (Files): Likewise.
55137         Suggested by Bruno Haible.
55138
55139 2008-04-29  Bruno Haible  <bruno@clisp.org>
55140
55141         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55142         (inet_ntop, inet_pton): Change portability warning's wording.
55143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55144         Invoke gl_CHECK_NEXT_HEADERS.
55145         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55146         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55147         set ARPA_INET_H.
55148         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55149         * modules/arpa_inet (Description): No longer only for systems that
55150         lack it.
55151         (Depends-on): Add include_next.
55152         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55153         HAVE_ARPA_INET_H.
55154
55155 2008-04-29  Jim Meyering  <meyering@redhat.com>
55156
55157         * modules/mkdir (License): Re-license as LGPLv2+.
55158
55159 2008-04-29  Bruno Haible  <bruno@clisp.org>
55160
55161         * modules/rawmemchr (Maintainer): Set to Eric.
55162         * modules/strchrnul (Maintainer): Likewise.
55163
55164 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55165
55166         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55167         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55168
55169         * modules/arpa_inet (arpa/inet.h): Use them.
55170
55171 2008-04-28  Eric Blake  <ebb9@byu.net>
55172
55173         Test getndelim2.
55174         * modules/getndelim2-tests: New file.
55175         * tests/test-getndelim2.c: Likewise.
55176         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55177         stream.
55178         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55179
55180         * MODULES.html.sh: Document new module.
55181
55182 2008-04-20  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/c-stack.c (die): Use raise.
55185         * modules/c-stack (Depends-on): Add raise.
55186
55187 2008-04-28  Bruno Haible  <bruno@clisp.org>
55188
55189         Expect rpmatch to be declared.
55190         * lib/yesno.c (rpmatch): Remove declaration.
55191
55192         Declare rpmatch.
55193         * lib/stdlib.in.h (rpmatch): New declaration.
55194         * lib/rpmatch.c: Include <stdlib.h> first.
55195         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55196         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55198         HAVE_RPMATCH.
55199         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55201         (Include): Set to <stdlib.h>.
55202         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55203         HAVE_RPMATCH.
55204         * NEWS: Document the change.
55205
55206 2008-04-28  Bruno Haible  <bruno@clisp.org>
55207
55208         Change rpmatch to use nl_langinfo when appropriate.
55209         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55210         (N_): New macro.
55211         (localized_pattern): New function/macro.
55212         (try): Remove match, nomatch arguments. Copy the pattern into safe
55213         memory before caching it.
55214         (rpmatch): Use localized_pattern. Add translator comments.
55215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55216         Suggested by Eric Blake.
55217         * modules/rpmatch (Depends-on): Add stdbool.
55218
55219 2008-04-28  Eric Blake  <ebb9@byu.net>
55220
55221         Add rawmemchr module, matching glibc.
55222         * modules/string (Makefile.am): New indicator.
55223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55224         * lib/string.in.h (rawmemchr): Declare when appropriate.
55225         * modules/rawmemchr: New file.
55226         * m4/rawmemchr.m4: Likewise.
55227         * lib/rawmemchr.c: Likewise.
55228         * modules/rawmemchr-tests: Likewise.
55229         * tests/test-rawmemchr.c: Likewise.
55230         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55231         module.
55232         * modules/strchrnul (Depends-on): Add rawmemchr.
55233         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55234
55235         Whitespace cleanup.
55236         * tests/test-strchrnul.c: Reindent.
55237         * lib/strchrnul.c: Likewise.
55238
55239         Optimize and test strchrnul.
55240         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55241         * modules/strchrnul-tests: New file.
55242         * tests/test-strchrnul.c: Likewise.
55243
55244         Remove intprops dependency.
55245         * modules/memchr (Depends-on): Remove intprops.
55246         * modules/memrchr (Depends-on): Likewise.
55247         * modules/memchr2 (Depends-on): Likewise.
55248         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55249         * lib/memrchr.c (__memrchr): Likewise.
55250         * lib/memrchr2.c (memchr2): Likewise.
55251         Reported by Simon Josefsson.
55252
55253 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55254
55255         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55256         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55257
55258 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55259
55260         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55261
55262         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55263
55264         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55265
55266         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55267         declarations.
55268         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55269
55270         * m4/inet_pton.m4: Don't check for header files.
55271
55272         * m4/inet_ntop.m4: Don't check for header files.
55273
55274 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55275
55276         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55277         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55278         trigger for cygwin).
55279         Reported by Bruno Haible  <bruno@clisp.org>.
55280
55281 2008-04-28  Bruno Haible  <bruno@clisp.org>
55282
55283         * doc/posix-functions/strdup.texi: Mention mingw problem.
55284
55285 2008-04-27  Bruno Haible  <bruno@clisp.org>
55286
55287         * modules/stat-time-tests (Depends-on): Add sleep.
55288         * tests/test-stat-time.c (force_unlink): New function.
55289         (cleanup): Use it.
55290         (test_mtime): Remove the ctime related tests.
55291         (test_ctime): New function, containing the ctime related tests.
55292         (main): Call test_ctime, except on native Windows platforms.
55293
55294 2008-04-27  Bruno Haible  <bruno@clisp.org>
55295
55296         * lib/rpmatch.c (rpmatch): Add some comments.
55297         Reported by James Youngman <jay@gnu.org>.
55298
55299 2008-04-27  Bruno Haible  <bruno@clisp.org>
55300
55301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55302         quiet NaNs.
55303
55304 2008-04-27  Bruno Haible  <bruno@clisp.org>
55305
55306         Make test-yesno.sh work on mingw.
55307         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55308         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55309         (main): Set stdin to binary mode.
55310         * modules/yesno-tests (Depends-on): Add binary-io.
55311
55312 2008-04-27  Bruno Haible  <bruno@clisp.org>
55313
55314         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55315         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55316         argument that lie outside the IEEE 854 domain.
55317         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55318         (gl_ISFINITE): Use it.
55319         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55320
55321 2008-04-27  Bruno Haible  <bruno@clisp.org>
55322
55323         Allow local renaming in config.h.
55324         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55325
55326 2008-04-27  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/memchr.c (__memchr): Change type of 'i'.
55329         * lib/memchr2.c (memchr2): Likewise.
55330
55331 2008-04-26  Eric Blake  <ebb9@byu.net>
55332         and Bruno Haible  <bruno@clisp.org>
55333
55334         Optimize and test memrchr.
55335         * modules/memrchr (Depends-on): Add intprops.
55336         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55337         * modules/memrchr-tests: New file.
55338         * tests/test-memrchr.c: New file.
55339
55340 2008-04-26  Bruno Haible  <bruno@clisp.org>
55341
55342         Add tentative support for DragonFly BSD.
55343         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55344         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55345         fp.
55346         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55347         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55348         * lib/fpurge.c (fpurge): Likewise.
55349         * lib/freadable.c (freaadable): Likewise.
55350         * lib/freadahead.c (freadahead): Likewise.
55351         * lib/freading.c (freading): Likewise.
55352         * lib/freadptr.c (freadptr): Likewise.
55353         * lib/freadseek.c (freadptrinc): Likewise.
55354         * lib/fseeko.c (fseeko): Likewise.
55355         * lib/fseterr.c (fseterr): Likewise.
55356         * lib/fwritable.c (fwritable): Likewise.
55357         * lib/fwriting.c (fwriting): Likewise.
55358
55359 2008-04-26  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/stdio-impl.h: New file.
55362         * lib/fbufmode.c: Include stdio-impl.h.
55363         (fbufmode): Use fp_, remove redundant #defines.
55364         * lib/fflush.c: Include stdio-impl.h.
55365         (clear_ungetc_buffer): Remove redundant #defines.
55366         * lib/fpurge.c: Include stdio-impl.h.
55367         (fpurge): Remove redundant #defines.
55368         * lib/freadable.c: Include stdio-impl.h.
55369         (freadable): Remove redundant #defines.
55370         * lib/freadahead.c: Include stdio-impl.h.
55371         (freadahead): Remove redundant #defines.
55372         * lib/freading.c: Include stdio-impl.h.
55373         (freading): Remove redundant #defines.
55374         * lib/freadptr.c: Include stdio-impl.h.
55375         (freadptr): Remove redundant #defines.
55376         * lib/freadseek.c: Include stdio-impl.h.
55377         (freadptrinc): Remove redundant #defines.
55378         * lib/fseeko.c: Include stdio-impl.h.
55379         (rpl_fseeko): Remove redundant #defines.
55380         * lib/fseterr.c: Include stdio-impl.h.
55381         (fseterr): Remove redundant #defines.
55382         * lib/fwritable.c: Include stdio-impl.h.
55383         (fwritable: Remove redundant #defines.
55384         * lib/fwriting.c: Include stdio-impl.h.
55385         (fwriting): Remove redundant #defines.
55386         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55387         * modules/fflush (Files): Likewise.
55388         * modules/fpurge (Files): Likewise.
55389         * modules/freadable (Files): Likewise.
55390         * modules/freadahead (Files): Likewise.
55391         * modules/freading (Files): Likewise.
55392         * modules/freadptr (Files): Likewise.
55393         * modules/freadseek (Files): Likewise.
55394         * modules/fseeko (Files): Likewise.
55395         * modules/fseterr (Files): Likewise.
55396         * modules/fwritable (Files): Likewise.
55397         * modules/fwriting (Files): Likewise.
55398
55399 2008-04-26  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55402         restore_seek_optimization, update_fpos_cache): New functions, extracted
55403         from rpl_fflush.
55404         (rpl_fflush): Use them.
55405         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55406         (gl_REPLACE_FFLUSH): Use it.
55407
55408 2008-04-26  Bruno Haible  <bruno@clisp.org>
55409
55410         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55411         on Solaris.
55412         * tests/test-xstrtoimax.sh: Likewise.
55413         * tests/test-xstrtoumax.sh: Likewise.
55414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55415
55416 2008-04-26  Bruno Haible  <bruno@clisp.org>
55417
55418         * modules/memchr-tests: New file.
55419         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55420
55421 2008-04-26  Eric Blake  <ebb9@byu.net>
55422             Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/memchr.c: Include intprops.h.
55425         (__memchr): Optimize parallel detection of matching bytes. Rename local
55426         variables. Add explanatory comments.
55427
55428 2008-04-26  Bruno Haible  <bruno@clisp.org>
55429
55430         Fix module 'memchr', broken since 2000-10-28.
55431         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55432
55433 2008-04-26  Bruno Haible  <bruno@clisp.org>
55434
55435         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55436         comments.
55437
55438 2008-04-25  Eric Blake  <ebb9@byu.net>
55439
55440         Use native fstatat on cygwin 1.7.0.
55441         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55442         first.
55443
55444 2008-04-23  Eric Blake  <ebb9@byu.net>
55445
55446         Improve memchr2 performance.
55447         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55448         NUL bytes.
55449         * modules/memchr2 (Depends-on): Use intprops.h.
55450
55451 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55452
55453         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55454         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55455         <blp@cs.stanford.edu>.
55456
55457 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55458
55459         * lib/arpa_inet.in.h: New file.
55460
55461         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55462         (Makefile.am): Sed in substitute header file.
55463
55464         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55465         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55466
55467         * modules/inet_ntop (configure.ac): Use
55468         gl_ARPA_INET_MODULE_INDICATOR.
55469
55470         * modules/inet_pton (configure.ac): Use
55471         gl_ARPA_INET_MODULE_INDICATOR.
55472
55473 2008-04-22  Jim Meyering  <meyering@redhat.com>
55474
55475         * modules/verify (License): Re-license as LGPLv2+.
55476
55477 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55478
55479         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55480         parameter to void* as per POSIX standard (MinGW uses char*).
55481
55482 2008-04-21  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55485         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55486         Define to replacements if REPLACE_ISWCNTRL is 1.
55487         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55488         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55489         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55490         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55491         what it fixes.
55492         * doc/posix-functions/iswalpha.texi: Likewise.
55493         * doc/posix-functions/iswblank.texi: Likewise.
55494         * doc/posix-functions/iswcntrl.texi: Likewise.
55495         * doc/posix-functions/iswdigit.texi: Likewise.
55496         * doc/posix-functions/iswgraph.texi: Likewise.
55497         * doc/posix-functions/iswlower.texi: Likewise.
55498         * doc/posix-functions/iswprint.texi: Likewise.
55499         * doc/posix-functions/iswpunct.texi: Likewise.
55500         * doc/posix-functions/iswspace.texi: Likewise.
55501         * doc/posix-functions/iswupper.texi: Likewise.
55502         * doc/posix-functions/iswxdigit.texi: Likewise.
55503         Reported by Alain Guibert.
55504
55505 2008-04-21  Bruno Haible  <bruno@clisp.org>
55506
55507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55508         Patch by Alain Guibert.
55509
55510 2008-04-21  Bruno Haible  <bruno@clisp.org>
55511
55512         Fix test failures on mingw.
55513         * tests/test-xstrtol.c (print_no_progname): New function.
55514         (main): Install it in error_print_progname hook.
55515         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55516         * tests/test-xstrtoimax.sh: Likewise.
55517         * tests/test-xstrtoumax.sh: Likewise.
55518
55519 2008-04-21  Bruno Haible  <bruno@clisp.org>
55520
55521         Fix test failure on mingw.
55522         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55523
55524 2008-04-21  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55527         Actually assign a value.
55528
55529 2008-04-20  Bruno Haible  <bruno@clisp.org>
55530
55531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55532         take 2.
55533         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55534         'canonicalize-lgpl' module is also used.
55535         * lib/canonicalize-lgpl.c: Undo last change.
55536         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55537
55538 2008-04-20  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55541         config.h. Provide _mkdir based fallback for mingw.
55542         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55543         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55544         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55545         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55546         rather than defining mkdir in config.h.
55547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55548         (gl_SYS_STAT_H_DEFAULTS): New macro.
55549         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55550         HAVE_IO_H any more.
55551         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55552         HAVE_DECL_MKDIR and HAVE_IO_H.
55553
55554 2008-04-20  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/isapipe.c: Port to native Windows platforms.
55557
55558 2008-04-20  Bruno Haible  <bruno@clisp.org>
55559
55560         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55561
55562 2008-04-21  Eric Blake  <ebb9@byu.net>
55563
55564         Work around preprocessors that don't handle UINTMAX_MAX.
55565         * lib/memchr2.c (memchr2): Avoid embedded #if.
55566         Reported by Alain Guibert, fix suggested by Bruno Haible.
55567
55568 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55569
55570         * doc/posix-functions/strftime.texi (strftime): Explain better
55571         Windows incompatibility.  Suggested by Micah Cowan
55572         <micah@cowan.name>.
55573
55574 2008-04-20  Bruno Haible  <bruno@clisp.org>
55575
55576         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55577         unistr/u8-mblen.
55578
55579 2008-04-20  Bruno Haible  <bruno@clisp.org>
55580
55581         Fix test failure on platforms with non-GNU iconv.
55582         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55583         (U_TO_U8): Use it, rather than u16_to_u8.
55584         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55585         units at the end of the input string.
55586         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55587
55588 2008-04-20  Bruno Haible  <bruno@clisp.org>
55589
55590         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55591         when the resulting length is 0.
55592         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55593
55594 2008-04-20  Bruno Haible  <bruno@clisp.org>
55595
55596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55597         works.
55598         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55599
55600 2008-04-20  Bruno Haible  <bruno@clisp.org>
55601
55602         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55603         * modules/tsearch-tests (configure.ac): Test for initstate function.
55604
55605 2008-04-20  Bruno Haible  <bruno@clisp.org>
55606
55607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55608         for nlink_t if missing.
55609         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55610
55611 2008-04-19  Bruno Haible  <bruno@clisp.org>
55612
55613         Work around snprintf bug on Linux libc5.
55614         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55616         gl_SNPRINTF_SIZE1.
55617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55618         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55619         that test failed.
55620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55621         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55622         * modules/snprintf (Files): Add m4/printf.m4.
55623         * modules/vsnprintf (Files): Likewise.
55624         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55625         * doc/posix-functions/vsnprintf.texi: Likewise.
55626
55627 2008-04-19  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55630         from 0.0058 to less than 10^-7.
55631
55632 2008-04-19  Bruno Haible  <bruno@clisp.org>
55633
55634         Fix rounding when a precision is given.
55635         * lib/vasnprintf.c (is_borderline): New function.
55636         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55637         9...9x.
55638         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55639         %e, %g.
55640         * tests/test-vasprintf-posix.c (test_function): Likewise.
55641         * tests/test-snprintf-posix.h (test_function): Likewise.
55642         * tests/test-sprintf-posix.h (test_function): Likewise.
55643         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55644         * tests/test-printf-posix.h (test_function): Likewise.
55645         * tests/test-printf-posix.output: Update.
55646         Reported by John Darrington <john@darrington.wattle.id.au> via
55647         Ben Pfaff <blp@cs.stanford.edu>.
55648
55649 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55650
55651         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55652         Suggested by Bruno Haible <bruno@clisp.org>.
55653
55654 2008-04-17  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55657         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55658         implementation.
55659         Patch by Bruce Merry <bmerry@gmail.com>.
55660
55661 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55662
55663         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55664         doesn't work under Windows.
55665
55666 2008-04-16  Bruno Haible  <bruno@clisp.org>
55667
55668         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55669         New macros.
55670         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55671         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55672         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55673         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55674         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55675         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55676         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55677         macros.
55678         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55679         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55680         Northern Sotho, Uighur.
55681
55682 2008-04-16  Bruno Haible  <bruno@clisp.org>
55683
55684         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55685         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55686         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55687         Reported by Daniel Bergström <daniel@octocode.com>.
55688
55689 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55690             Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55693         function.
55694         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55695         New functions, mostly extracted from gl_locale_name_default.
55696         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55697
55698 2008-04-16  Eric Blake  <ebb9@byu.net>
55699
55700         Adjust strtod detection to catch glibc 2.7 bug.
55701         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55702         Reported by John Gatewood Ham.
55703
55704 2008-04-16  Bruno Haible  <bruno@clisp.org>
55705
55706         Add tentative support for Linux libc5.
55707         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55708         * lib/fpurge.c (fpurge): Likewise.
55709         * lib/freadable.c (freadable): Likewise.
55710         * lib/freadahead.c (freadahead): Likewise.
55711         * lib/freading.c (freading): Likewise.
55712         * lib/freadptr.c (freadptr): Likewise.
55713         * lib/freadseek.c (freadptrinc): Likewise.
55714         * lib/fseeko.c (rpl_fseeko): Likewise.
55715         * lib/fseterr.c (fseterr): Likewise.
55716         * lib/fwritable.c (fwritable): Likewise.
55717         * lib/fwriting.c (fwriting): Likewise.
55718         Reported by Alain Guibert <alguibert+bts@free.fr>.
55719
55720 2008-04-15  Bruno Haible  <bruno@clisp.org>
55721
55722         * modules/mathl (configure.ac): Define module indicator.
55723
55724 2008-04-15  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/logl.c (logl): Remove unused variables.
55727
55728 2008-04-15  Bruno Haible  <bruno@clisp.org>
55729
55730         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55731         fails.
55732
55733 2008-04-15  Bruno Haible  <bruno@clisp.org>
55734
55735         * lib/trim.c (trim2): Fix argument of isspace() macro.
55736
55737 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55738
55739         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55740         to 0.
55741         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55742
55743 2008-04-14  Bruno Haible  <bruno@clisp.org>
55744
55745         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55746         AC_LANG_PROGRAM argument.
55747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55748         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55750         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55751         * m4/math_h.m4 (gl_MATH_H): Likewise.
55752         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55754         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55755         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55757         * m4/regex.m4 (gl_REGEX): Likewise.
55758         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55759         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55763         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55766
55767 2008-04-14  Jim Meyering  <meyering@redhat.com>
55768
55769         test-strtod: fix typos: s/abs/fabs/
55770         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55771
55772 2008-04-13  Bruno Haible  <bruno@clisp.org>
55773
55774         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55775         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55776         module is also used and while not building the reloc-wrapper.
55777
55778 2008-04-13  Bruno Haible  <bruno@clisp.org>
55779
55780         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55781
55782 2008-04-13  Bruno Haible  <bruno@clisp.org>
55783
55784         Fix AIX compilation failure introduced on 2008-04-02.
55785         * tests/test-frexp.c (exp): Undefine before redefining.
55786         * tests/test-frexpl.c (exp): Likewise.
55787
55788 2008-04-13  Bruno Haible  <bruno@clisp.org>
55789
55790         Work around a HP-UX stdio bug.
55791         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55792         * tests/test-ftello.c (main): Likewise.
55793         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55794         * doc/posix-functions/ftello.texi: Likewise.
55795
55796 2008-04-13  Bruno Haible  <bruno@clisp.org>
55797
55798         Make test-signbit pass on HP-UX/hppa.
55799         * tests/test-signbit.c (minus_zerol): New variable.
55800         (test_signbitl): Use it.
55801
55802 2008-04-13  Bruno Haible  <bruno@clisp.org>
55803
55804         Make truncl work on OSF/1 4.0.
55805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55806         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55807         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55809         HAVE_DECL_TRUNCL.
55810         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55811         HAVE_DECL_TRUNCL.
55812         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55813
55814 2008-04-13  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55817
55818 2008-04-13  Bruno Haible  <bruno@clisp.org>
55819
55820         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55821         expression, so as to avoid HP-UX 11 cc compiler bug.
55822
55823 2008-04-13  Bruno Haible  <bruno@clisp.org>
55824
55825         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55826
55827 2008-04-13  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/git-merge-changelog.c: Remove empty declaration outside of
55830         functions.
55831
55832 2008-04-13  Bruno Haible  <bruno@clisp.org>
55833
55834         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55835
55836 2008-04-13  Bruno Haible  <bruno@clisp.org>
55837
55838         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55839         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55841         also if it exists but lacks definitions of the SHUT_* macros.
55842         * modules/sys_socket (Description): Update.
55843         Reported by Elbert Pol <e.pol@chello.nl>.
55844
55845 2008-04-13  Bruno Haible  <bruno@clisp.org>
55846
55847         * lib/localcharset.c (OS2): Don't redefine if already defined.
55848         Reported by Elbert Pol <e.pol@chello.nl>.
55849
55850 2008-04-13  Bruno Haible  <bruno@clisp.org>
55851
55852         * lib/binary-io.h [__EMX__]: Include <io.h>.
55853         Reported by Elbert Pol <e.pol@chello.nl>.
55854
55855 2008-04-12  Bruno Haible  <bruno@clisp.org>
55856
55857         * lib/fpucw.h: Enable the definitions also for x86_64.
55858         Needed for NetBSD/x86_64.
55859         Reported by Thomas Klausner <tk@giga.or.at>.
55860
55861 2008-04-12  Bruno Haible  <bruno@clisp.org>
55862
55863         * tests/test-strtod.c: Include isnand.h.
55864         (main): Use isnand instead of isnan.
55865         Reported by Jim Meyering.
55866
55867 2008-04-12  Bruno Haible  <bruno@clisp.org>
55868
55869         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55870         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55871
55872 2008-04-12  Jim Meyering  <meyering@redhat.com>
55873
55874         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55875
55876 2008-04-12  Bruno Haible  <bruno@clisp.org>
55877
55878         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55879         Reported by Elbert Pol <e.pol@chello.nl>.
55880
55881 2008-04-12  Eric Blake  <ebb9@byu.net>
55882
55883         Work around Solaris 10 math.h bug.
55884         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55885         (gl_MATH_H_DEFAULTS): Set up default.
55886         * modules/math (Makefile.am): Replace new indicators.
55887         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55888         * tests/test-math.c (main): Test this.
55889         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55890         * doc/posix-headers/math.texi (math.h): Mention bug.
55891         Reported by Nelson H. F. Beebe and Jim Meyering.
55892
55893 2008-04-11  Bruno Haible  <bruno@clisp.org>
55894
55895         Adapt to future versions of Apple GCC.
55896         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55897         Reported by Peter O'Gorman <peter@pogma.com>.
55898
55899 2008-04-11  Bruno Haible  <bruno@clisp.org>
55900
55901         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55902
55903 2008-04-11  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55906
55907         * modules/getaddrinfo-tests (Makefile.am): Define
55908         test_getaddrinfo_LDADD.
55909
55910 2008-04-11  Bruno Haible  <bruno@clisp.org>
55911
55912         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55913         (init): Fix syntax error.
55914         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55915         is declared.
55916
55917 2008-04-11  Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55920         * modules/glob (Depends-on): Add stdbool.
55921
55922 2008-04-11  Bruno Haible  <bruno@clisp.org>
55923
55924         * lib/trim.c: Include <string.h>.
55925
55926 2008-04-11  Eric Blake  <ebb9@byu.net>
55927
55928         Avoid compile failure on OS/2.
55929         * lib/regex_internal.h (internal_function): Disable optimization
55930         on OS/2 (__EMX__), where it caused compiler error.
55931         Reported by Elbert Pol.
55932
55933 2008-04-11  Bruno Haible  <bruno@clisp.org>
55934
55935         Flush the standard error stream before aborting. Needed on mingw.
55936         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55937         * tests/test-array_list.c (ASSERT): Likewise.
55938         * tests/test-array_oset.c (ASSERT): Likewise.
55939         * tests/test-avltree_list.c (ASSERT): Likewise.
55940         * tests/test-avltree_oset.c (ASSERT): Likewise.
55941         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55942         * tests/test-binary-io.c (ASSERT): Likewise.
55943         * tests/test-byteswap.c (ASSERT): Likewise.
55944         * tests/test-c-ctype.c (ASSERT): Likewise.
55945         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55946         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55947         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55948         * tests/test-c-strstr.c (ASSERT): Likewise.
55949         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55950         * tests/test-canonicalize.c (ASSERT): Likewise.
55951         * tests/test-carray_list.c (ASSERT): Likewise.
55952         * tests/test-ceilf1.c (ASSERT): Likewise.
55953         * tests/test-ceilf2.c (ASSERT): Likewise.
55954         * tests/test-ceill.c (ASSERT): Likewise.
55955         * tests/test-count-one-bits.c (ASSERT): Likewise.
55956         * tests/test-fbufmode.c (ASSERT): Likewise.
55957         * tests/test-fflush2.c (ASSERT): Likewise.
55958         * tests/test-floorf1.c (ASSERT): Likewise.
55959         * tests/test-floorf2.c (ASSERT): Likewise.
55960         * tests/test-floorl.c (ASSERT): Likewise.
55961         * tests/test-fopen.c (ASSERT): Likewise.
55962         * tests/test-fpending.c (ASSERT): Likewise.
55963         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55964         * tests/test-fpurge.c (ASSERT): Likewise.
55965         * tests/test-freadable.c (ASSERT): Likewise.
55966         * tests/test-freadahead.c (ASSERT): Likewise.
55967         * tests/test-freading.c (ASSERT): Likewise.
55968         * tests/test-freadptr.c (ASSERT): Likewise.
55969         * tests/test-freadptr2.c (ASSERT): Likewise.
55970         * tests/test-freadseek.c (ASSERT): Likewise.
55971         * tests/test-freopen.c (ASSERT): Likewise.
55972         * tests/test-frexp.c (ASSERT): Likewise.
55973         * tests/test-frexpl.c (ASSERT): Likewise.
55974         * tests/test-fseek.c (ASSERT): Likewise.
55975         * tests/test-fseeko.c (ASSERT): Likewise.
55976         * tests/test-fstrcmp.c (ASSERT): Likewise.
55977         * tests/test-ftell.c (ASSERT): Likewise.
55978         * tests/test-ftello.c (ASSERT): Likewise.
55979         * tests/test-func.c (ASSERT): Likewise.
55980         * tests/test-fwritable.c (ASSERT): Likewise.
55981         * tests/test-fwriting.c (ASSERT): Likewise.
55982         * tests/test-getdelim.c (ASSERT): Likewise.
55983         * tests/test-getline.c (ASSERT): Likewise.
55984         * tests/test-i-ring.c (ASSERT): Likewise.
55985         * tests/test-iconv-utf.c (ASSERT): Likewise.
55986         * tests/test-iconv.c (ASSERT): Likewise.
55987         * tests/test-isfinite.c (ASSERT): Likewise.
55988         * tests/test-isnand.c (ASSERT): Likewise.
55989         * tests/test-isnanf.c (ASSERT): Likewise.
55990         * tests/test-isnanl.h (ASSERT): Likewise.
55991         * tests/test-ldexpl.c (ASSERT): Likewise.
55992         * tests/test-linked_list.c (ASSERT): Likewise.
55993         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55994         * tests/test-localename.c (ASSERT): Likewise.
55995         * tests/test-lseek.c (ASSERT): Likewise.
55996         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55997         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55998         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55999         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56000         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56001         * tests/test-mbschr.c (ASSERT): Likewise.
56002         * tests/test-mbscspn.c (ASSERT): Likewise.
56003         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56004         * tests/test-mbspbrk.c (ASSERT): Likewise.
56005         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56006         * tests/test-mbsrchr.c (ASSERT): Likewise.
56007         * tests/test-mbsspn.c (ASSERT): Likewise.
56008         * tests/test-mbsstr1.c (ASSERT): Likewise.
56009         * tests/test-mbsstr2.c (ASSERT): Likewise.
56010         * tests/test-mbsstr3.c (ASSERT): Likewise.
56011         * tests/test-memchr2.c (ASSERT): Likewise.
56012         * tests/test-memmem.c (ASSERT): Likewise.
56013         * tests/test-open.c (ASSERT): Likewise.
56014         * tests/test-printf-frexp.c (ASSERT): Likewise.
56015         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56016         * tests/test-printf-posix.c (ASSERT): Likewise.
56017         * tests/test-quotearg.c (ASSERT): Likewise.
56018         * tests/test-rbtree_list.c (ASSERT): Likewise.
56019         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56020         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56021         * tests/test-round1.c (ASSERT): Likewise.
56022         * tests/test-roundf1.c (ASSERT): Likewise.
56023         * tests/test-roundl.c (ASSERT): Likewise.
56024         * tests/test-signbit.c (ASSERT): Likewise.
56025         * tests/test-sleep.c (ASSERT): Likewise.
56026         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56027         * tests/test-snprintf.c (ASSERT): Likewise.
56028         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56029         * tests/test-stat-time.c (ASSERT): Likewise.
56030         * tests/test-strcasestr.c (ASSERT): Likewise.
56031         * tests/test-strerror.c (ASSERT): Likewise.
56032         * tests/test-striconv.c (ASSERT): Likewise.
56033         * tests/test-striconveh.c (ASSERT): Likewise.
56034         * tests/test-striconveha.c (ASSERT): Likewise.
56035         * tests/test-strsignal.c (ASSERT): Likewise.
56036         * tests/test-strstr.c (ASSERT): Likewise.
56037         * tests/test-strtod.c (ASSERT): Likewise.
56038         * tests/test-trunc1.c (ASSERT): Likewise.
56039         * tests/test-trunc2.c (ASSERT): Likewise.
56040         * tests/test-truncf1.c (ASSERT): Likewise.
56041         * tests/test-truncf2.c (ASSERT): Likewise.
56042         * tests/test-truncl.c (ASSERT): Likewise.
56043         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56044         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56045         * tests/test-vasnprintf.c (ASSERT): Likewise.
56046         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56047         * tests/test-vasprintf.c (ASSERT): Likewise.
56048         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56049         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56050         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56051         * tests/test-vsnprintf.c (ASSERT): Likewise.
56052         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56053         * tests/test-wcwidth.c (ASSERT): Likewise.
56054         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56055         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56056         * tests/test-xvasprintf.c (ASSERT): Likewise.
56057         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56058         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56059         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56060         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56061         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56062         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56063         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56064         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56065         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56066         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56067         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56068         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56069         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56070         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56071         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56072         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56073         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56074         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56075         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56076         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56077         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56078         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56079         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56080         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56081         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56082         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56083         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56084         * tests/unictype/test-combining.c (ASSERT): Likewise.
56085         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56086         * tests/unictype/test-digit.c (ASSERT): Likewise.
56087         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56088         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56089         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56090         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56091         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56092         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56093         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56094         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56095         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56096         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56097         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56098         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56099         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56100         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56101         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56102         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56103         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56104         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56105         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56106         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56107         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56108         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56109         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56110         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56111         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56112         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56113         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56114         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56115         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56116         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56117         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56118         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56119         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56120         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56121         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56122         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56123         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56124         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56125         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56126         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56127         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56128         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56129         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56130         Reported by Eric Blake.
56131
56132 2008-04-11  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/wchar.in.h: Tweak comment.
56135
56136 2008-04-11  Bruno Haible  <bruno@clisp.org>
56137
56138         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56139         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56140         gl_COMMON.
56141         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56142
56143 2008-04-11  Bruno Haible  <bruno@clisp.org>
56144
56145         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56146
56147 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56148
56149         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56150         of attempting to use non-existing /dev/*random.  Based on patch
56151         from Adam Strzelecki <ono@java.pl> in
56152         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56153
56154 2008-04-08  Bruno Haible  <bruno@clisp.org>
56155
56156         Add tentative support for emx+gcc.
56157         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56158         * lib/fpurge.c (fpurge): Likewise.
56159         * lib/freadable.c (freadable): Likewise.
56160         * lib/freadahead.c (freadahead): Likewise.
56161         * lib/freading.c (freading): Likewise.
56162         * lib/freadptr.c (freadptr): Likewise.
56163         * lib/freadseek.c (freadptrinc): Likewise.
56164         * lib/fseeko.c (rpl_fseeko): Likewise.
56165         * lib/fseterr.c (fseterr): Likewise.
56166         * lib/fwritable.c (fwritable): Likewise.
56167         * lib/fwriting.c (fwriting): Likewise.
56168         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56169
56170 2008-04-09  Eric Blake  <ebb9@byu.net>
56171
56172         Avoid some autoconf warnings.
56173         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56174         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56175         * m4/afs.m4 (gl_AFS): Likewise.
56176         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56177         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56179         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56180         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56181         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56182         (AC_CHECK_DECLS_ONCE): Likewise.
56183         Rename file...
56184         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56185         gnulib-tool requires autoconf 2.59 or better.
56186         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56187
56188 2008-04-08  Eric Blake  <ebb9@byu.net>
56189
56190         Use 'git describe --match' if present (added in git 1.5.5).
56191         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56192         if possible.
56193
56194 2008-04-08  Bruno Haible  <bruno@clisp.org>
56195
56196         Add tentative support for OpenServer.
56197         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56198         _ptr, _cnt.
56199         * lib/fpurge.c (fpurge): Likewise.
56200         * lib/freadable.c (freadable): Likewise.
56201         * lib/freadahead.c (freadahead): Likewise.
56202         * lib/freading.c (freading): Likewise.
56203         * lib/freadptr.c (freadptr): Likewise.
56204         * lib/freadseek.c (freadptrinc): Likewise.
56205         * lib/fseeko.c (rpl_fseeko): Likewise.
56206         * lib/fseterr.c (fseterr): Likewise.
56207         * lib/fwritable.c (fwritable): Likewise.
56208         * lib/fwriting.c (fwriting): Likewise.
56209         Reported by Roger Cornelius <rac@tenzing.org> and
56210         Brian K. White <brian@aljex.com>.
56211
56212 2008-04-06  Jim Meyering  <meyering@redhat.com>
56213
56214         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56215
56216 2008-04-06  Bruno Haible  <bruno@clisp.org>
56217
56218         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56219         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56220         * tests/test-printf-posix.sh: Likewise.
56221         * tests/test-vfprintf-posix.sh: Likewise.
56222         * tests/test-vprintf-posix.sh: Likewise.
56223         * tests/test-xprintf-posix.sh: Likewise.
56224
56225 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56226
56227         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56228         hide error from 'ls', needed on OS/2.
56229         Report by Elbert Pol <elbert.pol@gmail.com>.
56230
56231 2008-04-04  Eric Blake  <ebb9@byu.net>
56232
56233         Make test-fseeko.c failures meaningful.
56234         * tests/test-fseeko.c: Print line number on failure.
56235         * tests/test-fseek.c: Likewise.
56236         Reported by Nelson H. F. Beebe.
56237
56238         Improve strtod bug detection check.
56239         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56240         required for Solaris 10.
56241         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56242
56243 2008-04-04  Bruno Haible  <bruno@clisp.org>
56244
56245         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56246         by m4/setenv.m4.
56247
56248 2008-04-03  Eric Blake  <ebb9@byu.net>
56249
56250         Ensure sane .version contents.
56251         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56252         version string.
56253         * build-aux/git-version-gen: Improve documentation.
56254
56255         Make GNU make output nicer.
56256         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56257         MAKECMDGOALS to enforce message for all command line targets.  Set
56258         srcdir for use in maint.mk.
56259
56260         Another maintainer tweak.
56261         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56262         a target that regenerates version.
56263
56264 2008-04-03  Jim Meyering  <meyering@redhat.com>
56265
56266         vc-list-files: don't cause coreutils "make po-check" failure
56267         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56268
56269 2008-04-03  Eric Blake  <ebb9@byu.net>
56270
56271         Allow VPATH usage of vc-list-files.
56272         * build-aux/vc-list-files (scriptversion): Add timestamp.
56273         (options): Add --help, --version, -C.
56274         (CVS): Support installed cvsu.
56275
56276 2008-04-02  Bruno Haible  <bruno@clisp.org>
56277
56278         Avoid some "statement with no effect" warnings from gcc.
56279         * tests/test-wctype.c (main): Explicitly ignore unused values.
56280         Reported by Jim Meyering.
56281
56282 2008-04-02  Jim Meyering  <meyering@redhat.com>
56283
56284         Avoid some warnings from "gcc -Wshadow".
56285         * tests/test-frexp.c (exp): Define to a different identifier.
56286         * tests/test-frexpl.c (exp): Likewise.
56287
56288 2008-04-03  Jim Meyering  <meyering@redhat.com>
56289
56290         bootstrap: remove dangling *.[ch] symlinks from lib
56291         * build-aux/bootstrap [dangling symlink removal]: Move find's
56292         -depth option to precede all others, to avoid a warning.
56293         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56294
56295 2008-04-02  Bruno Haible  <bruno@clisp.org>
56296
56297         Avoid some warnings from "gcc -Wshadow".
56298         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56299         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56300         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56301         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56302         Reported by Jim Meyering.
56303
56304 2008-04-01  Bruno Haible  <bruno@clisp.org>
56305
56306         Fix test to work on IRIX 6.5 with cc.
56307         * tests/test-math.c (numeric_equal): New function.
56308         (main): Use it.
56309
56310 2008-04-01  Bruno Haible  <bruno@clisp.org>
56311
56312         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56313
56314 2008-04-01  Bruno Haible  <bruno@clisp.org>
56315
56316         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56318         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56319         (Depends-on): Remove math.
56320
56321         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56322         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56323         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56324         (Depends-on): Remove math.
56325
56326         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56327         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56328         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56329         (Depends-on): Remove math.
56330         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56331         (Depends-on): Remove math.
56332
56333         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56334         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56335         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56336         (Depends-on): Remove math.
56337         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56338         (Depends-on): Remove math.
56339
56340         * tests/test-round1.c: Include nan.h.
56341         (main): Use NaNd instead of NAN.
56342         * modules/round-tests (Files): Add tests/nan.h.
56343
56344         * tests/test-trunc1.c: Include nan.h.
56345         (main): Use NaNd instead of NAN.
56346         * modules/trunc-tests (Files): Add tests/nan.h.
56347
56348         * tests/test-roundf1.c: Include nan.h.
56349         (main): Use NaNf instead of NAN.
56350         * modules/roundf-tests (Files): Add tests/nan.h.
56351
56352         * tests/test-truncf1.c: Include nan.h.
56353         (main): Use NaNf instead of NAN.
56354         * modules/truncf-tests (Files): Add tests/nan.h.
56355
56356         * tests/test-ceilf1.c: Include nan.h.
56357         (main): Use NaNf instead of NAN.
56358         * modules/ceilf-tests (Files): Add tests/nan.h.
56359
56360         * tests/test-floorf1.c: Include nan.h.
56361         (main): Use NaNf instead of NAN.
56362         * modules/floorf-tests (Files): Add tests/nan.h.
56363
56364         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56365         (main): Use NaNf instead of NAN.
56366         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56367
56368         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56369         (main): Use NaNd instead of NAN.
56370         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56371
56372         * tests/test-frexp.c: Include nan.h.
56373         (main): Use NaNd instead of NAN.
56374         * modules/frexp-tests (Files): Add tests/nan.h.
56375
56376         * lib/isnan.c: Don't include <math.h>.
56377         (FUNC): Don't use NAN macro.
56378         * modules/isnand-nolibm (Depends-on): Remove math.
56379         * modules/isnanf-nolibm (Depends-on): Remove math.
56380         * modules/isnanl (Depends-on): Remove math.
56381         * modules/isnanl-nolibm (Depends-on): Remove math.
56382
56383         * tests/nan.h: New file.
56384
56385 2008-04-01  Eric Blake  <ebb9@byu.net>
56386
56387         Fix typos.
56388         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56389         values to be the right type.
56390
56391         For now, cater to gnulib strtod inaccuracies.
56392         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56393         fractional results.  While not as nice from a QoI perspective, it
56394         is a quicker patch than correctly implementing decimal to binary
56395         rounding.
56396
56397 2008-03-31  Eric Blake  <ebb9@byu.net>
56398
56399         Guarantee a definition of NAN.
56400         * lib/math.in.h (NAN): Define if missing.
56401         * tests/test-math.c (main): Test it.
56402         * doc/posix-headers/math.texi (math.h): Document this.
56403         * lib/isnan.c (rpl_isnand): Use it.
56404         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56405         * tests/test-floorf1.c (NaN): Likewise.
56406         * tests/test-frexp.c (NaN): Likewise.
56407         * tests/test-isnand.c (NaN): Likewise.
56408         * tests/test-isnanf.c (NaN): Likewise.
56409         * tests/test-round1.c (NaN): Likewise.
56410         * tests/test-roundf1.c (NaN): Likewise.
56411         * tests/test-snprintf-posix.h (NaN): Likewise.
56412         * tests/test-sprintf-posix.h (NaN): Likewise.
56413         * tests/test-trunc1.c (NaN): Likewise.
56414         * tests/test-truncf1.c (NaN): Likewise.
56415         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56416         * tests/test-vasprintf-posix.c (NaN): Likewise.
56417         * modules/isnand-nolibm (Depends-on): Add math.
56418         * modules/isnanf-nolibm (Depends-on): Likewise.
56419         * modules/isnanl (Depends-on): Likewise.
56420         * modules/isnanl-nolibm (Depends-on): Likewise.
56421         * modules/snprintf-posix-tests (Depends-on): Likewise.
56422         * modules/sprintf-posix-tests (Depends-on): Likewise.
56423         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56424         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56425         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56426         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56427
56428 2008-03-31  Bruno Haible  <bruno@clisp.org>
56429
56430         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56431         * doc/posix-functions/strtod.texi: Likewise.
56432
56433 2008-03-31  Bruno Haible  <bruno@clisp.org>
56434
56435         * tests/test-strtod.c (main): Don't use C99 syntax.
56436
56437 2008-03-31  Bruno Haible  <bruno@clisp.org>
56438
56439         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56440         Reported by Eric Blake.
56441
56442 2008-03-31  Jim Meyering  <meyering@redhat.com>
56443
56444         Don't compare actual signbit return values.
56445         * tests/test-strtod.c (main): Rather, compare only their
56446         zero/non-zero nature.
56447
56448 2008-03-31  Eric Blake  <ebb9@byu.net>
56449
56450         More strtod documentation.
56451         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56452         failures as distinct bugs.
56453
56454 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56455
56456         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56457         Problem reported by Erik Benada in
56458         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56459
56460 2008-03-30  Bruno Haible  <bruno@clisp.org>
56461
56462         * tests/test-strtod.c: Add comments about which assertion fails on which
56463         platform.
56464         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56465
56466 2008-03-30  Eric Blake  <ebb9@byu.net>
56467
56468         Test signbit behavior on zeros.
56469         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56470         (test_signbitd, test_signbitl): Likewise.
56471
56472         More strtod touchups.
56473         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56474         sign of negative underflow, for now.  Use .5, not .1.
56475         * doc/posix-functions/strtod.texi (strtod): Mention these
56476         limitations.
56477         Reported by Jim Meyering.
56478
56479 2008-03-30  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56482         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56483
56484 2008-03-30  Bruno Haible  <bruno@clisp.org>
56485
56486         Avoid failure when attempting to return empty iconv results on some
56487         platforms.
56488         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56489         allocation, don't report ENOMEM when the resulting string is empty.
56490
56491 2008-03-30  Bruno Haible  <bruno@clisp.org>
56492
56493         Fix buffer overrun.
56494         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56495         Don't consider the width for tmp_length. Check count against tmp_length
56496         before doing the padding. Ensure enough allocation during padding.
56497
56498 2008-03-30  Eric Blake  <ebb9@byu.net>
56499
56500         strtod touchups.
56501         * lib/strtod.c (strtod): Avoid compiler warnings.
56502         Reported by Jim Meyering.
56503
56504 2008-03-30  Bruno Haible  <bruno@clisp.org>
56505
56506         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56507         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56508         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56509         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56510         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56511         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56512         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56513         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56514
56515         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56516         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56517         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56518         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56519         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56520         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56521         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56522         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56523
56524         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56525         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56526         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56527         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56528         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56529         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56530         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56531         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56532
56533         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56534         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56535
56536         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56537         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56538
56539         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56540         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56541
56542         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56544         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56545
56546         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56548         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56549
56550         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56552         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56553
56554         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56556         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56557
56558         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56559         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56561         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56562         (Depends-on): Add EOVERFLOW.
56563         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56564         (Depends-on): Add EOVERFLOW.
56565         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56566         (Depends-on): Add EOVERFLOW.
56567         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56568         (Depends-on): Add EOVERFLOW.
56569         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56570         (Depends-on): Add EOVERFLOW.
56571         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56572         (Depends-on): Add EOVERFLOW.
56573         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56574         (Depends-on): Add EOVERFLOW.
56575         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56576         (Depends-on): Add EOVERFLOW.
56577
56578         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56580         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56581
56582         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56584         * modules/snprintf (Depends-on): Add EOVERFLOW.
56585
56586         * lib/poll.c (EOVERFLOW): Remove fallback.
56587         * modules/poll (Depends-on): Add EOVERFLOW.
56588
56589         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56590         * modules/getugroups (Depends-on): Add EOVERFLOW.
56591
56592         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56593         * modules/getdelim (Depends-on): Add EOVERFLOW.
56594
56595         * lib/ftell.c (EOVERFLOW): Remove fallback.
56596         * modules/ftell (Depends-on): Add EOVERFLOW.
56597
56598         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56600         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56601
56602         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56603
56604         * modules/EOVERFLOW-tests: New file.
56605         * tests/test-EOVERFLOW.c: New file.
56606
56607         * modules/EOVERFLOW: New file.
56608         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56609
56610 2008-03-30  Bruno Haible  <bruno@clisp.org>
56611
56612         Fix bug introduced on 2007-06-10.
56613         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56614         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56615
56616 2008-03-30  Bruno Haible  <bruno@clisp.org>
56617
56618         Improve freadseek's efficiency after ungetc.
56619         * lib/freadseek.c: Include freadahead.h.
56620         (freadptrinc): New function, extracted from freadseek.
56621         (freadseek): Use it in a loop. Use freadahead to determine the number
56622         of loop iterations.
56623         * modules/freadseek (Depends-on): Add freadahead.
56624         (configure.ac): Require AC_C_INLINE.
56625
56626 2008-03-30  Bruno Haible  <bruno@clisp.org>
56627
56628         * lib/freadseek.c (freadseek): Don't ignore the return value of
56629         freadptr.
56630
56631 2008-03-29  Eric Blake  <ebb9@byu.net>
56632
56633         Add hex float support.
56634         * modules/strtod (Depends-on): Add c-ctype.
56635         (Link): Mention POW_LIB.
56636         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56637         whitespace between 'e' and exponent.
56638         * tests/test-strtod.c (main): Enable hex float tests.
56639         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56640         now provides.
56641
56642         Document various strtod bugs, with some fixes.
56643         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56644         "-0x", "inf", "nan", and hex constants.
56645         * doc/posix-functions/atof.texi (atof): Likewise.
56646         * modules/stdlib (Makefile.am): Support strtod.
56647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56648         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56649         detect additional strtod bugs.
56650         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56651         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56652         bool where appropriate.  Parse 'inf' and 'nan'.
56653         * tests/test-strtod.c: New file.
56654         * modules/strtod (Depends-on): Add stdbool, stdlib.
56655         (configure.ac): Turn on module indicator.
56656         * modules/strtod-tests: New module.
56657
56658 2008-03-29  Eric Blake  <ebb9@byu.net>
56659
56660         Fix ftell on mingw.
56661         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56662         * modules/ftell-tests (Depends-on): Add binary-io.
56663         * modules/ftello-tests (Depends-on): Likewise.
56664         * tests/test-ftell.c (main): Enhance test to cover behavior after
56665         ungetc.  Enforce binary mode.
56666         * tests/test-ftello.c (main): Likewise.
56667
56668         Pass test-freadseek on cygwin.
56669         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56670         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56671         ungetc buffer.
56672
56673         * tests/test-fflush2.c (main): Fix typo.
56674
56675 2008-03-29  Bruno Haible  <bruno@clisp.org>
56676
56677         * tests/test-fflush2.c (main): Temporarily disable the contents of
56678         this test.
56679         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56680         Reported by Eric Blake.
56681
56682 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56683
56684         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56685         (GC_SHA224_DIGEST_SIZE): Add.
56686
56687         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56688         (gc_hash_digest_length): Likewise.
56689         (gc_hash_buffer): Likewise.
56690
56691 2008-03-25  Bruno Haible  <bruno@clisp.org>
56692
56693         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56694         detail which gettext release to use.
56695         Reported by Simon Josefsson.
56696
56697 2008-03-26  Jim Meyering  <meyering@redhat.com>
56698
56699         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56700         * modules/gnumakefile (clean-GNUmakefile): Also, use
56701         test ... && ... || : syntax rather than if-then ... fi.
56702
56703         gnumakefile: Don't double-quote-expand $(VPATH) value.
56704         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56705
56706 2008-03-24  Eric Blake  <ebb9@byu.net>
56707
56708         Alter GNUmakefile to install into top directory.
56709         * modules/maintainer-makefile: Split, and add dependency...
56710         * modules/gnumakefile: to this new module.
56711         * build-aux/GNUmakefile: Move...
56712         * top/GNUmakefile: ...here.
56713         * build-aux/maint.mk: Move...
56714         * top/maint.mk: ...here.
56715         * MODULES.html.sh (Support for maintaining...): Document new
56716         module.
56717
56718 2008-03-23  Bruno Haible  <bruno@clisp.org>
56719
56720         * gnulib-tool: New options --vc-files, --no-vc-files.
56721         (func_usage): Document them.
56722         (vc_files): New variable.
56723         (func_import): Consider vc_files.
56724         (func_create_testdir): Set vc_files to empty.
56725         Suggested by Jim Meyering and Karl Berry.
56726
56727 2008-03-23  Bruno Haible  <bruno@clisp.org>
56728
56729         Fix regex compilation error on HP-UX 11.
56730         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56731         * modules/regex (Files): Add m4/mbstate_t.m4.
56732         Reported by Ton Voon <ton.voon@altinity.com>.
56733
56734 2008-03-23  Bruno Haible  <bruno@clisp.org>
56735
56736         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56737
56738 2008-03-23  Eric Blake  <ebb9@byu.net>
56739             Bruno Haible  <bruno@clisp.org>
56740
56741         Install files from top/ in the destination directory.
56742         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56743         augmentation also for the files from top/.
56744         (func_import, func_create_testdir): Rewrite file names:
56745         top/filename -> filename.
56746
56747 2008-03-23  Bruno Haible  <bruno@clisp.org>
56748
56749         Tweak "gnulib --version" output.
56750         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56751
56752 2008-03-23  Bruno Haible  <bruno@clisp.org>
56753
56754         Tweak "gnulib --version" output.
56755         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56756         rather than contents of ChangeLog, when possible.
56757
56758 2008-03-21  Eric Blake  <ebb9@byu.net>
56759
56760         More --version tweaks.
56761         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56762         date of last ChangeLog entry.
56763
56764 2008-03-21  Jim Meyering  <meyering@redhat.com>
56765
56766         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56767
56768 2008-03-20  Eric Blake  <ebb9@byu.net>
56769
56770         VPATH fix.
56771         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56772
56773 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56774
56775         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56776         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56777
56778 2008-03-20  Eric Blake  <ebb9@byu.net>
56779
56780         Sync GNUmakefile with coreutils.
56781         * build-aux/GNUmakefile (have-Makefile): Rename...
56782         (_have-Makefile): ...to this, for namespace consideration.
56783         (GNUmakefile.cfg): Include, if present.
56784         (_autoreconf): Define a default.
56785         (_is-dist-target): New rule for rebuilds to pick up intra-release
56786         version.
56787         (maint-cfg.mk): Rename...
56788         (cfg.mk): ...to this.
56789
56790 2008-03-18  Jim Meyering  <meyering@redhat.com>
56791
56792         New script and module: mktempd
56793         * MODULES.html.sh (maint+release support): Add mktempd.
56794         * build-aux/mktempd: New file.
56795         * modules/mktempd: New file.
56796
56797 2008-03-15  Jim Meyering  <meyering@redhat.com>
56798
56799         Undo last change.
56800         * lib/sha1.c, lib/md5.c: 63 != ~63.
56801         Reported by Andreas Schwab.
56802
56803         sha1.c, md5.c: Hoist a redundant expression.
56804         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56805         "ctx->buflen" only once, before calling *_process_block.
56806         * lib/md5.c (md5_process_bytes): Likewise.
56807
56808 2008-03-14  Eric Blake  <ebb9@byu.net>
56809
56810         Bump copyright year in files generated by gnulib-tool.
56811         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56812         gnulib-tool, rather than hard-coding it.
56813
56814         Fix 'gnulib-tool --version' output to work with git.
56815         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56816         (startup): ...here.
56817         (func_version): Use it to invoke git-version-gen, rather than
56818         relying on CVS keyword expansion.  Modernize wording.
56819         (cvsdatestamp, last_checkin_date, version): Kill unused
56820         variables.
56821
56822 2008-03-12  Jim Meyering  <meyering@redhat.com>
56823
56824         Recognize optional cast of the argument to free.
56825         * build-aux/useless-if-before-free: Update regexps.
56826
56827         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56828
56829 2008-03-11  Bruno Haible  <bruno@clisp.org>
56830
56831         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56832         by a single package.
56833         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56834         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56835         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56836         Reported by Sam Steingold <sds@gnu.org>.
56837
56838 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56839
56840         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56841         repositories.
56842
56843 2008-03-11  Bruno Haible  <bruno@clisp.org>
56844
56845         Avoid conflicts between local macro definitions.
56846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56847         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56848
56849 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56850             Bruno Haible  <bruno@clisp.org>
56851
56852         Make va_copy work with some version of xlc on AIX 5.1.
56853         * lib/stdarg.in.h: New file.
56854         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56855         On AIX, use a <stdarg.h> file substitute.
56856         * modules/stdarg (Files): Add lib/stdarg.in.h.
56857         (Depends-on): Add include_next.
56858         (Makefile.am): Build a stdarg.h substitute if requested.
56859         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56860
56861 2008-03-10  Bruno Haible  <bruno@clisp.org>
56862
56863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56865         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56866
56867 2008-03-10  Bruno Haible  <bruno@clisp.org>
56868
56869         * modules/stdlib (Depends-on): Add include_next, remove
56870         absolute-header.
56871
56872 2008-03-09  Bruno Haible  <bruno@clisp.org>
56873
56874         * lib/freadahead.h (freadahead): Document more precisely.
56875         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56876         the sum of both buffer sizes.
56877         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56878         * NEWS: Document the change.
56879
56880 2008-03-09  Bruno Haible  <bruno@clisp.org>
56881
56882         Extend freadptr to return also the buffer size.
56883         * lib/freadptr.h (freadptr): Add sizep argument.
56884         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56885         (freadptr): Add sizep argument. Determine buffer size like freadahead
56886         does.
56887         * tests/test-freadptr.c: Don't include freadahead.h.
56888         (main): Adapt for new calling convention of freadptr.
56889         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56890         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56891         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56892         tests/test-freadptr2.sh.
56893         (Depends): Remove freadahead.
56894         (TESTS): Add test-freadptr2.sh.
56895         (check_PROGRAMS): Add test-freadptr2.
56896
56897 2008-03-09  Bruno Haible  <bruno@clisp.org>
56898
56899         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56900         Report and solution by Simon Josefsson.
56901
56902 2008-03-06  Bruno Haible  <bruno@clisp.org>
56903
56904         Make fflush after ungetc work on BSD platforms.
56905         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56906         * tests/test-fflush2.c: New file.
56907         * tests/test-fflush2.sh: New file.
56908         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56909         tests/test-fflush2.c.
56910         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56911         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56912
56913 2008-03-06  Eric Blake  <ebb9@byu.net>
56914
56915         Likewise for ftello.
56916         * modules/ftello (Dependencies): Add extensions.
56917         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56918
56919 2008-03-06  Bruno Haible  <bruno@clisp.org>
56920
56921         * modules/fseeko (Dependencies): Add extensions.
56922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56923         Needed on glibc systems.
56924
56925 2008-03-06  Bruno Haible  <bruno@clisp.org>
56926
56927         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56928         email address.
56929         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56930
56931 2008-03-06  Bruno Haible  <bruno@clisp.org>
56932
56933         * users.txt: Add libgnupdf.
56934
56935 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56936
56937         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56938         (Header File Substitutes, Function Substitutes,
56939         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56940         (Build robot for gnulib): Fix typo.
56941
56942 2008-03-06  Bruno Haible  <bruno@clisp.org>
56943
56944         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56945         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56946
56947 2008-03-06  Bruno Haible  <bruno@clisp.org>
56948
56949         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56950         * doc/gnulib.texi: Include it.
56951
56952 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56953
56954         * modules/func (License): Change license to unlimited; there was
56955         no LGPL parts in the module anyway.
56956
56957 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56958
56959         * modules/__func__: Renamed to modules/func.
56960         * modules/__func__-tests: Renamed to modules/func-tests.
56961         * tests/test-__func__.c: Renamed to tests/test-func.c.
56962         * m4/__func__.m4: Renamed to m4/func.m4.
56963         * doc/gnulib.texi (__func__): Section renamed to func.
56964         Suggested by Eric Blake <ebb9@byu.net>.
56965
56966 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56967
56968         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56969         about __func__.  Make example self-contained.  Suggested by Eric
56970         Blake <ebb9@byu.net>.
56971
56972         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56973         Suggested by Eric Blake <ebb9@byu.net>.
56974
56975 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56976
56977         * modules/__func__: New file.
56978         * modules/__func__-tests: New file.
56979         * tests/test-__func__.c: New file.
56980         * m4/__func__.m4: New file.
56981         * doc/gnulib.texi (__func__): Document __func__ module.
56982
56983 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56984
56985         * modules/byteswap (License): Re-license as LGPLv2+.
56986
56987 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56988
56989         * doc/Makefile: Add pdf target.
56990
56991 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56992
56993         * modules/inline (License): Use 'unlimited', since there are only
56994         *.m4 files in this module.
56995
56996 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56997             Bruno Haible  <bruno@clisp.org>
56998
56999         Add support for HP C 7.1 on OpenVMS 8.3.
57000         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57001
57002 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57003
57004         Update VMS specifics.
57005         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57006
57007 2008-03-02  Jim Meyering  <meyering@redhat.com>
57008
57009         Remove the last dependency on the "free" module.
57010         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57011         Reported by Bob Proulx.
57012
57013         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57014
57015         Remove useless "if" tests before free.  Deprecate "free" module.
57016         * doc/posix-functions/free.texi: Mention that this
57017         module is no longer useful.
57018         * modules/free (Notice): Say this module is obsolete.
57019         * modules/readutmp (Depends-on): Remove free.
57020         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57021         * lib/putenv.c (putenv): Likewise.
57022         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57023         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57024         * tests/test-c-strcasestr.c (main): Likewise.
57025         * tests/test-c-strstr.c (main): Likewise.
57026         * tests/test-mbscasestr1.c (main): Likewise.
57027         * tests/test-mbscasestr2.c (main): Likewise.
57028         * tests/test-mbsstr1.c (main): Likewise.
57029         * tests/test-mbsstr2.c (main): Likewise.
57030         * tests/test-memmem.c (main): Likewise.
57031         * tests/test-strcasestr.c (main): Likewise.
57032         * tests/test-striconv.c (main): Likewise.
57033         * tests/test-striconveh.c (main): Likewise.
57034         * tests/test-striconveha.c (main): Likewise.
57035         * tests/test-strstr.c (main): Likewise.
57036
57037         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57038
57039         bootstrap: sync from coreutils again
57040         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57041
57042 2008-03-01  Jim Meyering  <meyering@redhat.com>
57043
57044         bootstrap: sync from coreutils
57045         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57046         also when the target doesn't exist.
57047
57048 2008-03-01  Eric Blake  <ebb9@byu.net>
57049
57050         Fix bugs in last patch.
57051         * lib/memchr2.c (memchr2): Fix typo.
57052         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57053         extension.
57054         Reported by Bruce Korb.
57055
57056         New module 'memchr2'.
57057         * modules/memchr2: New file.
57058         * modules/memchr2-tests: Likewise.
57059         * lib/memchr2.h: Likewise.
57060         * lib/memchr2.c: Likewise, based on memchr.c.
57061         * tests/test-memchr2.c: New test.
57062         * MODULES.html.sh (String handling): Add memchr2.
57063
57064 2008-02-29  Bruno Haible  <bruno@clisp.org>
57065
57066         * modules/freadseek-tests: New file.
57067         * tests/test-freadseek.sh: New file.
57068         * tests/test-freadseek.c: New file.
57069
57070         New module 'freadseek'.
57071         * modules/freadseek: New file.
57072         * lib/freadseek.h: New file.
57073         * lib/freadseek.c: New file.
57074         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57075
57076 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57077
57078         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57079         wydawca.
57080
57081         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57082         program_invocation_name and program_invocation_short_name are
57083         present.
57084
57085 2008-02-28  Bruno Haible  <bruno@clisp.org>
57086
57087         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57088         * tests/test-freadptr.sh: Also test non-seekable stdin.
57089
57090 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57091
57092         * build-aux/bootstrap (source_base, m4_base)
57093         (doc_base, tests_base): New variables.
57094         (gnulib_tool_options): Do not hardcode base directories, use
57095         the above variables instead.
57096
57097 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57098
57099         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57100
57101 2008-02-28  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/freadptr-tests: New file.
57104         * tests/test-freadptr.sh: New file.
57105         * tests/test-freadptr.c: New file.
57106
57107         New module 'freadptr'.
57108         * modules/freadptr: New file.
57109         * lib/freadptr.h: New file.
57110         * lib/freadptr.c: New file.
57111         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57112
57113 2008-02-26  Karl Berry  <karl@freefriends.org>
57114
57115         Sync from Libtool:
57116         * libltdl/argz.c (argz_add, argz_count): New functions.
57117         * libltdl/argz.in.h: Declare them.
57118         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57119
57120 2008-02-22  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57123         is a pointer type.  Needed for HP-UX 10.
57124         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57125         * doc/posix-functions/gmtime_r.texi: Likewise.
57126         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57127
57128 2008-02-24  Bruno Haible  <bruno@clisp.org>
57129
57130         * modules/environ-tests: New file.
57131         * tests/test-environ.c: New file.
57132
57133         New module 'environ'.
57134         * modules/environ: New file.
57135         * lib/unistd.in.h (environ): New declaration.
57136         * m4/environ.m4: New file.
57137         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57138         after use.
57139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57140         HAVE_DECL_ENVIRON.
57141         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57142         HAVE_DECL_ENVIRON.
57143         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57144         wrong claim that 'environ' is missing on some systems.
57145         * modules/execute (Depends-on): Add environ.
57146         * lib/execute.c (environ): Remove fallback declaration.
57147         * modules/pipe (Depends-on): Add environ.
57148         * lib/pipe.c (environ): Remove fallback declaration.
57149         * modules/setenv (Depends-on): Add environ.
57150         * lib/setenv.c (environ): Remove fallback declaration.
57151         * modules/unsetenv (Depends-on): Add environ.
57152         * lib/unsetenv.c (environ): Remove fallback declaration.
57153         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57154         m4/environ.m4.
57155         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57156         (gl_PREREQ_UNSETENV): Likewise.
57157
57158 2008-02-24  Bruno Haible  <bruno@clisp.org>
57159
57160         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57161
57162 2008-02-20  Bob Proulx  <bob@proulx.com>
57163
57164         Enable use of older two part flavor 'git describe'.
57165         * build-aux/git-version-gen: If using the older two part flavor of
57166         git version then recreate the third part now present in the
57167         newer three part flavor of git describe.
57168
57169 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57170
57171         * lib/fts.c (fts_build): Typo correction to comment.
57172
57173 2008-02-17  Bruno Haible  <bruno@clisp.org>
57174
57175         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57176         generating no-op conflicts.
57177
57178 2008-02-17  Bruno Haible  <bruno@clisp.org>
57179
57180         Speed up by 10%.
57181         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57182         result_entries, rather than an index-based loop.
57183
57184 2008-02-17  Bruno Haible  <bruno@clisp.org>
57185
57186         Speed up by 25%.
57187         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57188         'hashcode_cached'.
57189         (entry_create): New function.
57190         (entry_hashcode): Use the cached hashcode if possible.
57191         (read_changelog_file, try_split_merged_entry): Use entry_create.
57192
57193 2008-02-17  Bruno Haible  <bruno@clisp.org>
57194
57195         Speed up from O(n^2) to O(n) for long ChangeLog files.
57196         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57197         (read_changelog_file): Change implementation of entries_reversed list
57198         to rbtreehash.
57199         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57200
57201 2008-02-17  Bruno Haible  <bruno@clisp.org>
57202
57203         New option --split-merged-entry.
57204         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57205         (find_paragraph_end, try_split_merged_entry): New functions.
57206         (long_options): Add option --split-merged-entry.
57207         (usage): Document option --split-merged-entry.
57208         (main): Implement option --split-merged-entry.
57209         Reported by Eric Blake.
57210
57211 2008-02-17  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/git-merge-changelog.c: Include c-strstr.h.
57214         (main): Support the "git pull --rebase" situation.
57215         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57216         Reported by Eric Blake.
57217
57218 2008-02-16  Eric Blake  <ebb9@byu.net>
57219
57220         Avoid doubling \ in common case of "c-maybe" quoting style.
57221         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57222         eliding outer quotes.
57223         * lib/quotearg.h: Document this.
57224         * tests/test-quotearg.c (result_strings, inputs, results_g)
57225         (flag_results, locale_results): Test it by adding a new string to
57226         each test group.
57227         (compare_strings): Test new string.
57228
57229 2008-02-13  Eric Blake  <ebb9@byu.net>
57230
57231         Avoid trigraph quoting in default output.
57232         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57233         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57234         unless explicitly requested.
57235         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57236
57237 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57238
57239         Don't rely on signed integer overflowing to negative value.
57240         * lib/getugroups.c (getugroups): Include <limits.h>.
57241         Instead, compare against INT_MAX, and increment only if the test passes.
57242
57243 2008-02-13  Jim Meyering  <meyering@redhat.com>
57244         and Eric Blake  <ebb9@byu.net>
57245
57246         Avoid shadowing warning and compile errors on Linux.
57247         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57248         forwarding macros on Linux.
57249         (dcgettext): Define a stub, for Linux.
57250         (results_g, main): Avoid warnings.
57251
57252 2008-02-12  Eric Blake  <ebb9@byu.net>
57253
57254         Silence warning in last patch.
57255         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57256
57257         Quotearg part 4: add tests, fix c-maybe colon quoting.
57258         * lib/quotearg.h: Improve documentation.
57259         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57260         escapes when adding outer quotes.  When quoting trigraphs, use
57261         valid C notation.  When quoting NUL, omit extra characters if next
57262         character is not digit.  Alter prototype.
57263         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57264         callers.
57265         * modules/quotearg-tests: New module.
57266         * tests/test-quotearg.c: New test.
57267
57268 2008-02-07  Eric Blake  <ebb9@byu.net>
57269
57270         Quotearg part 3: add flag to control outer quote elision.
57271         * lib/quotearg.h (c_maybe_quoting_style): New style.
57272         (enum quoting_flags): Better documentation of flags.
57273         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57274         c-maybe style.
57275         (quotearg_buffer_restyled): Handle new flag to elide outer
57276         quotes.
57277
57278         Quotearg part 2: add flag that can control NUL elision.
57279         * lib/quotearg.h (set_quoting_flags): New prototype.
57280         * lib/quotearg.c (struct quoting_options): Add flag field.
57281         (set_quoting_flags): New function.
57282         (quotearg_buffer_restyled): Add flags parameter.
57283         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57284         (quotearg_n_options): Set the flag, since length cannot be
57285         returned.
57286         (quoting_options_from_style): Default flags correctly.
57287
57288         Quotearg part 1: more wrappers, restore quotearg_char state.
57289         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57290         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57291         (quotearg_colon_mem): New wrappers.
57292         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57293         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57294         functions.
57295         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57296         (quotearg_colon_mem): New functions.
57297
57298 2008-02-11  Bruno Haible  <bruno@clisp.org>
57299
57300         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57301         library in the current directory: it does not work with parallel make.
57302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57303
57304 2008-02-11  Bruno Haible  <bruno@clisp.org>
57305
57306         * .gitattributes: New file.
57307
57308 2008-02-11  Jim Meyering  <meyering@redhat.com>
57309
57310         useless-if-before-free: Fix reversed exit values.
57311         * build-aux/useless-if-before-free: Use correct values
57312         for EXIT_MATCH and EXIT_NO_MATCH.
57313
57314         * build-aux/useless-if-before-free: Close stdout carefully.
57315
57316 2008-02-10  Bruno Haible  <bruno@clisp.org>
57317
57318         New module 'git-merge-changelog'.
57319         * modules/git-merge-changelog: New file.
57320         * lib/git-merge-changelog.c: New file.
57321
57322 2008-02-10  Jim Meyering  <meyering@redhat.com>
57323
57324         useless-if-before-free: New option: --list (-l).
57325
57326         useless-if-before-free: Don't exit immediately upon open failure.
57327         * build-aux/useless-if-before-free: Exit 2 for errors.
57328         Upon failure to open a file, don't exit immediately.
57329         Rather, just warn and continue with any remaining files.
57330
57331 2008-02-10  Bruno Haible  <bruno@clisp.org>
57332
57333         New abstract list operation 'node_set_value'.
57334         * lib/gl_list.h (gl_list_node_set_value): New function.
57335         (struct gl_list_implementation): New field node_set_value.
57336         * lib/gl_list.c (gl_list_node_set_value): New function.
57337         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57338         (gl_array_list_implementation): Update.
57339         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57340         (gl_carray_list_implementation): Update.
57341         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57342         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57343         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57344         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57345         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57346         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57347         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57348         Update.
57349         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57350         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57351         (gl_sublist_list_implementation): Update.
57352
57353 2008-02-10  Bruno Haible  <bruno@clisp.org>
57354
57355         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57356         Needed when ELEMENT is #defined to 'some_type *'.
57357
57358 2008-02-10  Jim Meyering  <meyering@redhat.com>
57359
57360         New script and module: useless-if-before-free
57361         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57362         * build-aux/useless-if-before-free: New file.
57363         * modules/useless-if-before-free: New file.
57364
57365         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57366
57367         xstrtol_error: Fix typo.
57368         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57369         s/exit_failure/exit_status/.
57370
57371 2008-02-09  Jim Meyering  <meyering@redhat.com>
57372
57373         New script and module: gitlog-to-changelog
57374         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57375         * modules/gitlog-to-changelog: New file.
57376         * build-aux/gitlog-to-changelog: New file.
57377
57378 2008-02-08  Jim Meyering  <meyering@redhat.com>
57379
57380         Avoid two "parameter unused" warnings.
57381         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57382         Mark "st" as used.
57383
57384         Use "git COMMAND", not "git-COMMAND".
57385         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57386         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57387         * build-aux/git-version-gen: Use "git status", not "git-status".
57388
57389 2008-02-07  Bruno Haible  <bruno@clisp.org>
57390
57391         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57392         Avoids a crash on Windows Vista.
57393         Reported by Adam Strzelecki <ono@java.pl> via
57394         Simon Josefsson <simon@josefsson.org>.
57395
57396 2008-02-06  Bruno Haible  <bruno@clisp.org>
57397
57398         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57399         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57400         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57404         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57405         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57413         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57414         left-adjust flag.
57415         * tests/test-snprintf-posix.h (test_function): Likewise.
57416         * tests/test-sprintf-posix.h (test_function): Likewise.
57417         * tests/test-vasprintf-posix.c (test_function): Likewise.
57418         * doc/posix-functions/fprintf.texi: Update.
57419         * doc/posix-functions/printf.texi: Update.
57420         * doc/posix-functions/snprintf.texi: Update.
57421         * doc/posix-functions/sprintf.texi: Update.
57422         * doc/posix-functions/vfprintf.texi: Update.
57423         * doc/posix-functions/vprintf.texi: Update.
57424         * doc/posix-functions/vsnprintf.texi: Update.
57425         * doc/posix-functions/vsprintf.texi: Update.
57426         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57427
57428 2008-02-06  Bruno Haible  <bruno@clisp.org>
57429
57430         Fix bug introduced on 2008-01-26.
57431         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57432
57433 2008-02-06  Bruno Haible  <bruno@clisp.org>
57434
57435         Fix bug introduced on 2007-06-10.
57436         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57437         !NEED_PRINTF_FLAG_ZERO.
57438
57439 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57440
57441         getloadavg: use libperfstat on AIX5
57442         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57443
57444 2008-02-03  Bruno Haible  <bruno@clisp.org>
57445
57446         * lib/diffseq.h: Add comments about required #includes.
57447         Reported by Michael Biggs <gnulib@doubleplum.net>.
57448
57449 2008-02-01  Bruno Haible  <bruno@clisp.org>
57450
57451         * users.txt: Add gnuit.
57452
57453 2008-01-31  Bruno Haible  <bruno@clisp.org>
57454
57455         * lib/md4.c (set_uint32): Mark as inline.
57456         * lib/md5.c (set_uint32): Likewise.
57457         * lib/sha1.c (set_uint32): Likewise.
57458         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57459         * m4/md5.m4 (gl_MD5): Likewise.
57460         * m4/sha1.m4 (gl_SHA1): Likewise.
57461
57462 2008-01-31  Jim Meyering  <meyering@redhat.com>
57463
57464         Use "sizeof VAR", rather than a literal "4".
57465         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57466         * lib/md4.c (md4_read_ctx): Likewise.
57467         * lib/sha1.c (sha1_read_ctx): Likewise.
57468
57469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57470
57471         * tests/test-sha1.c: New file, based on test-md5.c.
57472
57473         * modules/crypto/sha1-tests: New file.
57474
57475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57476
57477         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57478
57479 2008-01-31  Jim Meyering  <meyering@redhat.com>
57480
57481         Prefer "sizeof v" over the equivalent "4".
57482         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57483         * lib/md5.c (set_uint32): Likewise.
57484         * lib/sha1.c (set_uint32): Likewise.
57485
57486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57487
57488         * lib/sha1.c (set_uint32): Mark function as static.
57489
57490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57491
57492         md2: clarify comments to say that alignment is not required.
57493         * lib/md2.h: Remove warning about alignment in comment.
57494         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57495         never been required.
57496
57497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57498
57499         md4: adapt alignment constraint fix from sha1.
57500         * lib/md4.c (set_uint32): New function, from sha1.c
57501         (md4_read_ctx): Use it.
57502         (md4_finish_ctx): Doc fix.
57503         * lib/md4.h: Doc fix.
57504
57505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57506
57507         md5: adapt alignment constraint fix from sha1.
57508         * lib/md5.c (set_uint32): New function, from sha1.c
57509         (md5_read_ctx): Use it.
57510         (md5_finish_ctx): Doc fix.
57511         * lib/md5.h: Doc fix.
57512
57513 2008-01-30  Peter Palfrader  <weasel@debian.org>
57514
57515         sha1: remove the result buffer alignment constraint
57516         * lib/sha1.c (set_uint32): New function.
57517         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57518         constraint.
57519         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57520         * lib/sha1.h: Likewise.
57521
57522 2008-01-30  Andreas Schwab  <schwab@suse.de>
57523             Bruno Haible  <bruno@clisp.org>
57524
57525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57526         correct definition of LDBL_MIN_EXP.
57527
57528 2008-01-30  Karl Berry  <karl@gnu.org>
57529
57530         * config/srclist-update: try to preserve x bit on updates.
57531         * config/srclistvars.sh: update for karl.
57532
57533 2008-01-29  Jim Meyering  <meyering@redhat.com>
57534
57535         vasnprintf.c: Avoid warning about unused label
57536         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57537         "overflow" label definition and associated code with the
57538         same cpp condition that guards the sole use of that label.
57539
57540 2008-01-26  Bruno Haible  <bruno@clisp.org>
57541
57542         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57543         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57544         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57545         * lib/isnanl-nolibm.h (isnanl): Likewise.
57546         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57547
57548 2008-01-26  Bruno Haible  <bruno@clisp.org>
57549
57550         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57551         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57552
57553 2008-01-26  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57556         GCC >= 4.0 built-in.
57557         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57558
57559 2008-01-26  Bruno Haible  <bruno@clisp.org>
57560
57561         Rename isnan, applicable to 'double' only, to isnand.
57562         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57563         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57564         (configure.ac): Update.
57565         (Include): Replace "isnan.h" with "isnand.h".
57566         * m4/isnand.m4: Renamed from m4/isnan.m4.
57567         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57568         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57569         instead of isnan.c.
57570         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57571         instead of HAVE_ISNAN_IN_LIBC.
57572         (isnand): Renamed from isnan.
57573         * lib/isnand.c: New file.
57574         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57575         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57576         (Makefile.am): Update.
57577         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57578         Include isnand.h instead of isnan.h.
57579         (main): Test isnand instead of isnan.
57580         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57581         isnan-nolibm.
57582         * modules/frexp (Depends-on): Likewise.
57583         * modules/frexp-tests (Depends-on): Likewise.
57584         * modules/frexp-nolibm (Depends-on): Likewise.
57585         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57586         * modules/isfinite (Depends-on): Likewise.
57587         * modules/round-tests (Depends-on): Likewise.
57588         * modules/signbit (Depends-on): Likewise.
57589         * modules/signbit-tests (Depends-on): Likewise.
57590         * modules/snprintf-posix (Depends-on): Likewise.
57591         * modules/sprintf-posix (Depends-on): Likewise.
57592         * modules/trunc-tests (Depends-on): Likewise.
57593         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57594         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57595         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57596         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57597         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57598         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57599         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57600         * modules/vasnprintf-posix (Depends-on): Likewise.
57601         * modules/vasprintf-posix (Depends-on): Likewise.
57602         * modules/vfprintf-posix (Depends-on): Likewise.
57603         * modules/vsnprintf-posix (Depends-on): Likewise.
57604         * modules/vsprintf-posix (Depends-on): Likewise.
57605         * lib/frexp.c: Include isnand.h instead of isnan.h.
57606         (ISNAN): Set to isnand instead of isnan.
57607         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57608         (gl_isfinited): Use isnand instead of isnan.
57609         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57610         (gl_signbitd): Use isnand instead of isnan.
57611         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57612         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57613         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57614         (main): Use isnand instead of isnan.
57615         * tests/test-round1.c: Include isnand.h.
57616         (main): Use isnand instead of isnan.
57617         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57618         (ISNAN): Set to isnand instead of isnan.
57619         * tests/test-trunc1.c: Include isnand.h.
57620         (main): Use isnand instead of isnan.
57621         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57622         (equal): Use isnand instead of isnan.
57623         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57624         isnand-nolibm.
57625         * NEWS: Mention the change.
57626
57627 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57628             Bruno Haible  <bruno@clisp.org>
57629
57630         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57631         the GCC builtins for signbits are present and set
57632         REPLACE_SIGNBIT_USING_GCC if so.
57633         * lib/math.in.h (signbit): Define using GCC builtins if
57634         REPLACE_SIGNBIT_USING_GCC is set.
57635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57636         REPLACE_SIGNBIT_USING_GCC.
57637         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57638
57639 2008-01-25  Jim Meyering  <meyering@redhat.com>
57640
57641         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57642         * lib/poll.c: Include <config.h>, not "config.h".
57643         * tests/test-getaddrinfo.c: Likewise.
57644
57645 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57646
57647         * modules/sockets-tests: New file.
57648
57649 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57650
57651         * modules/sockets: New module, can be used to call WSA_Startup and
57652         WSA_Cleanup when needed.
57653
57654         * lib/sockets.h, lib/sockets.c: New files.
57655
57656         * m4/sockets.m4: New file.
57657
57658         * tests/test-sockets.c: New file.
57659
57660 2008-01-19  Bruno Haible  <bruno@clisp.org>
57661
57662         * doc/posix-headers: Renamed from doc/headers.
57663         * doc/posix-functions: Renamed from doc/functions.
57664         * doc/gnulib.texi: Update.
57665
57666 2008-01-19  Bruno Haible  <bruno@clisp.org>
57667
57668         * doc/glibc-functions/strcasestr.texi: Include contents of
57669         doc/functions/strcasestr.texi, fixing the list of platforms.
57670         * doc/functions/strcasestr.texi: Remove file.
57671
57672 2008-01-19  Bruno Haible  <bruno@clisp.org>
57673
57674         * doc/glibc-functions/memmem.texi: Include contents of
57675         doc/functions/memmem.texi.
57676         * doc/functions/memmem.texi: Remove file.
57677
57678 2008-01-18  Bruno Haible  <bruno@clisp.org>
57679
57680         * doc/glibc-functions/*.texi: New files.
57681         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57682         to use the new files.
57683
57684 2008-01-17  Bruno Haible  <bruno@clisp.org>
57685
57686         * tests/test-gethostname.c (main): Fix printf statement.
57687
57688 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57689
57690         * modules/gethostname-tests: New file.
57691
57692         * tests/test-gethostname.c: New file.
57693
57694 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57695
57696         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57697         used by the UNAME case.  Reported by Bruno Haible
57698         <bruno@clisp.org>.
57699
57700 2008-01-17  Eric Blake  <ebb9@byu.net>
57701
57702         Convert c-strcasestr to be more efficient.
57703         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57704         (Depends-on): Add c-strcase, remove malloca, strnlen.
57705         * tests/test-c-strcasestr.c (main): Enhance test.
57706         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57707
57708 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57709
57710         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57711         Use it in creating po/Makevars.
57712
57713 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57714
57715         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57716         Applications that requires it should initialize libgcrypt
57717         manually.
57718
57719 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57720
57721         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57722
57723 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57724
57725         Fix problem with getdate on mingw32 reported by Simon Josefsson
57726         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57727         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57728         tzname", when deciding whether to declare tzname.
57729         * lib/strftime.c (tzname): Likewise.
57730
57731 2008-01-15  Bruno Haible  <bruno@clisp.org>
57732
57733         Work around a MacOS X 10.5 bug in frexpl().
57734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57735         * doc/functions/frexpl.texi: Document the bug.
57736         Reported by Elias Pipping <pipping@gentoo.org>.
57737
57738 2008-01-14  Eric Blake  <ebb9@byu.net>
57739
57740         Touch up previous patch.
57741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57742         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57743
57744         Convert strcasestr module to use Two-Way algorithm.
57745         * modules/strcasestr-simple: New module, based on the old
57746         strcasestr, but with Two-Way rather than KMP.
57747         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57748         * lib/string.in.h (rpl_strcasestr): Declare.
57749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57750         performance.
57751         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57752         * modules/string (Makefile.am): Support strcasestr.
57753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57754         * modules/strcasestr-tests (Depends-on): Check for alarm.
57755         * tests/test-strcasestr.c: Augment test.
57756         * lib/str-two-way.h: Clean up stray macro.
57757         * NEWS: Document new module.
57758         * MODULES.html.sh (string handling): Likewise.
57759         * doc/functions/strcasestr.texi: New file.
57760         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57761         here, since it is not a POSIX function.
57762
57763 2008-01-14  Colin Watson  <cjwatson@debian.org>
57764             Bruno Haible  <bruno@clisp.org>
57765
57766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57767         works fine; if not, set REPLACE_STRSIGNAL.
57768         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57770         REPLACE_STRSIGNAL.
57771         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57772         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57773         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57774
57775 2008-01-14  Bruno Haible  <bruno@clisp.org>
57776
57777         * modules/strsignal (Include): Change to <string.h>.
57778
57779 2008-01-14  Colin Watson  <cjwatson@debian.org>
57780
57781         * modules/argp (Notice): Add a notice recommending to change
57782         XGETTEXT_OPTIONS.
57783         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57784
57785 2008-01-13  Colin Watson  <cjwatson@debian.org>
57786
57787         * modules/strsignal-tests: New file.
57788         * tests/test-strsignal.c: New file.
57789
57790         * lib/strsignal.c: New file, from glibc with modifications.
57791         * lib/siglist.h: New file, from glibc with modifications.
57792         * lib/string.in.h (strsignal): New declaration.
57793         * m4/strsignal.m4: New file.
57794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57795         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57796         * modules/strsignal: New file.
57797         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57798         HAVE_DECL_STRSIGNAL.
57799
57800 2008-01-13  Bruno Haible  <bruno@clisp.org>
57801
57802         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57803         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57804         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57806
57807 2008-01-13  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57810         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57811         * lib/argp.h (__attribute__): Likewise.
57812         * lib/c-stack.c (__attribute__): Likewise.
57813         * lib/error.h (__attribute__): Likewise.
57814         * lib/fts.c (__attribute__): Likewise.
57815         * lib/openat.h (__attribute__): Likewise.
57816         * lib/stdio.in.h (__attribute__): Likewise.
57817         * lib/string.in.h (__attribute__): Likewise.
57818         * lib/utimens.c (__attribute__): Likewise.
57819         * lib/vasnprintf.h (__attribute__): Likewise.
57820         * lib/xalloc.h (__attribute__): Likewise.
57821         * lib/xprintf.h (__attribute__): Likewise.
57822         * lib/xstrtol.h (__attribute__): Likewise.
57823         * lib/xvasprintf.h (__attribute__): Likewise.
57824
57825 2008-01-12  Bruno Haible  <bruno@clisp.org>
57826
57827         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57828         * doc/glibc-headers/a.out.texi: New file.
57829         * doc/glibc-headers/aliases.texi: New file.
57830         * doc/glibc-headers/alloca.texi: New file.
57831         * doc/glibc-headers/ar.texi: New file.
57832         * doc/glibc-headers/argp.texi: New file.
57833         * doc/glibc-headers/argz.texi: New file.
57834         * doc/glibc-headers/byteswap.texi: New file.
57835         * doc/glibc-headers/crypt.texi: New file.
57836         * doc/glibc-headers/endian.texi: New file.
57837         * doc/glibc-headers/envz.texi: New file.
57838         * doc/glibc-headers/err.texi: New file.
57839         * doc/glibc-headers/error.texi: New file.
57840         * doc/glibc-headers/execinfo.texi: New file.
57841         * doc/glibc-headers/fpu_control.texi: New file.
57842         * doc/glibc-headers/fstab.texi: New file.
57843         * doc/glibc-headers/fts.texi: New file.
57844         * doc/glibc-headers/getopt.texi: New file.
57845         * doc/glibc-headers/ieee754.texi: New file.
57846         * doc/glibc-headers/ifaddrs.texi: New file.
57847         * doc/glibc-headers/libintl.texi: New file.
57848         * doc/glibc-headers/mcheck.texi: New file.
57849         * doc/glibc-headers/mntent.texi: New file.
57850         * doc/glibc-headers/obstack.texi: New file.
57851         * doc/glibc-headers/paths.texi: New file.
57852         * doc/glibc-headers/printf.texi: New file.
57853         * doc/glibc-headers/pty.texi: New file.
57854         * doc/glibc-headers/resolv.texi: New file.
57855         * doc/glibc-headers/shadow.texi: New file.
57856         * doc/glibc-headers/sysexits.texi: New file.
57857         * doc/glibc-headers/ttyent.texi: New file.
57858
57859 2008-01-12  Jim Meyering  <meyering@redhat.com>
57860
57861         announce-gen: emit Gnulib's git-based version string.
57862         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57863         New option --gnulib-version=V, where V is expected to be
57864         the output of running git describe in the gnulib directory.
57865         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57866         not useful, and plan to stop publishing an xdelta file with each
57867         coreutils release.
57868
57869         * build-aux/announce-gen: Also check for lzma-compressed files.
57870
57871 2008-01-11  Bruno Haible  <bruno@clisp.org>
57872
57873         * tests/test-memmem.c (main): Increase maximum allowed time.
57874         * tests/test-strstr.c (main): Likewise.
57875
57876 2008-01-11  Bruno Haible  <bruno@clisp.org>
57877
57878         * doc/functions/memmem.texi: Add more precisions about platforms.
57879         * doc/functions/strstr.texi: Likewise.
57880
57881 2008-01-10  Eric Blake  <ebb9@byu.net>
57882
57883         * m4/strstr.m4: Delete cruft from copy-n-paste.
57884         Reported by Bruno Haible.
57885
57886 2008-01-10  Bruno Haible  <bruno@clisp.org>
57887
57888         Make c-strstr rely on strstr.
57889         * lib/c-strstr.c: Don't include str-kmp.h.
57890         (c_strstr): Define in terms of strstr.
57891         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57892         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57893
57894 2008-01-10  Bruno Haible  <bruno@clisp.org>
57895
57896         * doc/gnulib.texi (String Functions in C Locale): New section.
57897         * doc/c-ctype.texi: New file.
57898         * doc/c-strcase.texi: New file.
57899         * doc/c-strcaseeq.texi: New file.
57900         * doc/c-strcasestr.texi: New file.
57901         * doc/c-strstr.texi: New file.
57902         * doc/c-strtod.texi: New file.
57903         * doc/c-strtold.texi: New file.
57904
57905 2008-01-10  Eric Blake  <ebb9@byu.net>
57906
57907         * lib/relocatable.h: Fix a comment.
57908
57909 2008-01-10  Eric Blake  <ebb9@byu.net>
57910
57911         Share two-way algorithm.
57912         * lib/str-two-way.h: New file, merged from...
57913         * lib/memmem.c: ...here...
57914         * lib/strstr.c: ...and here.
57915         * modules/memmem (Files): Use it.
57916         * modules/strstr (Files): Likewise.
57917
57918         Avoid quadratic strstr implementations.
57919         * lib/strstr.c: New file.
57920         * m4/strstr.m4: Likewise.
57921         * modules/strstr: Likewise.
57922         * modules/strstr-tests: Likewise.
57923         * tests/test-strstr.c: Likewise.
57924         * lib/string.in.h (rpl_strstr): Declare.
57925         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57927         * modules/string (Makefile.am): Likewise.
57928         * MODULES.html.sh (string handling): Mention new module.
57929         * doc/functions/strstr.texi (strstr): Document the bug.
57930
57931 2008-01-10  Bruno Haible  <bruno@clisp.org>
57932
57933         * lib/relocatable.h (relocate): State whether result is freshly
57934         allocated or not.
57935         * lib/relocatable.c (relocate): Return a freshly allocated string
57936         instead of a pointer to a privately held string.
57937         Reported by Sylvain Beucler <beuc@gnu.org>.
57938
57939 2008-01-10  Colin Watson  <cjwatson@debian.org>
57940
57941         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57942         s/S_ISNLK/S_ISLNK/.
57943
57944 2008-01-09  Bruno Haible  <bruno@clisp.org>
57945
57946         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57947         and other files.
57948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57949         if it's only a guess.
57950         * modules/memmem: Simplify by depending on memmem-simple.
57951
57952 2008-01-09  Bruno Haible  <bruno@clisp.org>
57953
57954         Work around OpenBSD 4.0 tdelete() bug.
57955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57956         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57957         macros and don't redefine the enum values.
57958         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57959         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57960         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57961
57962 2008-01-09  Bruno Haible  <bruno@clisp.org>
57963
57964         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57965         (main): Don't perform the tests if setlocale did not install a UTF-8
57966         locale. Needed on OpenBSD 4.0.
57967         * modules/wcwidth-tests (Depends-on): Add localcharset.
57968
57969 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57972         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57973         * NEWS: announce this.
57974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57975
57976 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57977         and Eric Blake  <ebb9@byu.net>
57978
57979         Add memmem-simple module.
57980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57981         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57982         * modules/memmem-simple: New file.
57983         * modules/memmem (Description): Tweak.
57984         * MODULES.html.sh (string handling): Mention new module.
57985         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57986         addressed by memmem-simple.
57987         * NEWS: Document the difference.
57988
57989 2008-01-09  Eric Blake  <ebb9@byu.net>
57990
57991         Give gcc some memmem optimization hints.
57992         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57993         (strcasestr): Declare as pure.
57994         * modules/memmem (Maintainer): Claim my implementation.
57995
57996 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57997
57998         Support AIX 6.1 and higher.
57999         * build-aux/config.libpath: Likewise.
58000         * build-aux/config.rpath: Likewise.
58001
58002 2008-01-08  Jim Meyering  <meyering@redhat.com>
58003             Bruno Haible  <bruno@clisp.org>
58004
58005         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58006         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58007         Reported by Peter Fales in
58008         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58009
58010 2008-01-08  Bruno Haible  <bruno@clisp.org>
58011
58012         * modules/unictype/category-of (Depends-on): Add
58013         unictype/category-none.
58014         * modules/unictype/category-and-tests (Depends-on): Add
58015         unictype/category-{L,N,Lu,Nd}.
58016         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58017         * modules/unictype/category-or-tests (Depends-on): Add
58018         unictype/category-{L,N}.
58019         * modules/unictype/category-name-tests (Depends-on): Add
58020         unictype/category-{Z,Nl}.
58021         Reported by Simon Josefsson.
58022
58023 2008-01-08  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58026         convention better.
58027         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58028         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58029         Reported by Peter Miller <millerp@canb.auug.org.au>.
58030
58031 2008-01-08  Eric Blake  <ebb9@byu.net>
58032
58033         Rewrite memmem to guarantee linear complexity without malloc.
58034         * lib/memmem.c (memmem): Use Two-Way rather than
58035         Knuth-Morris-Pratt, to allow O(1) space usage.
58036         (critical_factorization, two_way_short_needle)
58037         (two_way_long_needle): New functions.
58038         (knuth_morris_pratt): Delete.
58039         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58040         Add stdint.
58041         * tests/test-memmem.c (main): Add tests for periodic needle and
58042         sublinear performance.
58043         * doc/functions/memmem.texi (memmem): Document other deficiencies
58044         in cygwin and older glibc.
58045
58046 2008-01-08  Bruno Haible  <bruno@clisp.org>
58047
58048         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58049         augmentation.
58050
58051 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58052
58053         Add a configure time option: --disable-acl.
58054         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58055         AC_ARG_ENABLE(acl).
58056
58057 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58058
58059         * tests/test-localename.c: Don't include obsolete "setenv.h".
58060
58061         * modules/localename-tests (Depends-on): Need unsetenv.
58062
58063 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58064
58065         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58066
58067 2008-01-06  Colin Watson  <cjwatson@debian.org>
58068
58069         * users.txt: Add man-db.
58070
58071 2008-01-07  Bruno Haible  <bruno@clisp.org>
58072
58073         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58074         previous section name.
58075
58076 2008-01-07  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/progname.c (set_program_name): Don't strip off a leading
58079         "lt-" prefix outside a .libs directory.
58080         Suggested by Paul Eggert.
58081
58082 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58083             Bruno Haible  <bruno@clisp.org>
58084
58085         Improve memory cleanup in 'relocatable' module.
58086         * lib/relocatable.h (compute_curr_prefix): Change return type to
58087         'char *'.
58088         * lib/relocatable.c (compute_curr_prefix): Change return type to
58089         'char *'. Free curr_installdir after use.
58090         (relocate): Free curr_prefix_better after use.
58091         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58092
58093 2008-01-01  Bruno Haible  <bruno@clisp.org>
58094
58095         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58096         failure on older glibc systems.
58097         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58098
58099 2008-01-05  Eric Blake  <ebb9@byu.net>
58100
58101         Avoid quadratic system memmem.
58102         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58103         Reported by Ralf Wildenhues.
58104
58105         Fix memmem test for mingw.
58106         * modules/memmem-tests (configure.ac): Check for alarm.
58107         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58108         it.
58109         * doc/functions/memmem.texi: New file.
58110         * doc/gnulib.texi (Function Substitutes): Add memmem.
58111         Reported by Bruno Haible.
58112
58113 2008-01-04  Bruno Haible  <bruno@clisp.org>
58114
58115         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58116         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58117         gl_HEADER_STRING_H_DEFAULTS.
58118
58119 2008-01-04  Eric Blake  <ebb9@byu.net>
58120
58121         Shorten duration of memmem test.
58122         * tests/test-memmem.c (main): Use alarm to declare failure if test
58123         is taking too long.
58124         Reported by Ralf Wildenhues.
58125
58126 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58127
58128         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58129         string, needed by strerror.
58130
58131 2008-01-03  Colin Watson  <cjwatson@debian.org>
58132             Bruno Haible  <bruno@clisp.org>
58133
58134         * doc/gnulib-tool.texi (Localization): New section.
58135
58136 2008-01-02  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58139         variables to 'unsigned char *' type.
58140         Reported by Paul Eggert.
58141
58142 2008-01-02  Jim Meyering  <jim@meyering.net>
58143
58144         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58145
58146 2007-12-31  Jim Meyering  <jim@meyering.net>
58147
58148         Avoid use of private FTS type name.
58149         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58150
58151 2007-12-30  Karl Berry  <karl@gnu.org>
58152
58153         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58154         work around defect in Texinfo and/or the standalone Info browser.
58155
58156 2007-12-30  Bruno Haible  <bruno@clisp.org>
58157
58158         Unify 5 copies of the KMP code.
58159         * lib/str-kmp.h: New file.
58160         * lib/c-strcasestr.c: Include str-kmp.h.
58161         (knuth_morris_pratt): Remove function.
58162         (c_strcasestr): Update.
58163         * lib/c-strstr.c: Include str-kmp.h.
58164         (knuth_morris_pratt): Remove function.
58165         (c_strcasestr): Update.
58166         * lib/mbscasestr.c: Include str-kmp.h.
58167         (knuth_morris_pratt_unibyte): Remove function.
58168         * lib/mbsstr.c: Include str-kmp.h.
58169         (knuth_morris_pratt_unibyte): Remove function.
58170         * lib/strcasestr.c: Include str-kmp.h.
58171         (knuth_morris_pratt): Remove function.
58172         (strcasestr): Update.
58173         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58174         * modules/c-strstr (Files): Likewise.
58175         * modules/mbscasestr (Files): Likewise.
58176         * modules/mbsstr (Files): Likewise.
58177         * modules/strcasestr (Files): Likewise.
58178         Suggested by Paul Eggert.
58179
58180 2007-12-30  Bruno Haible  <bruno@clisp.org>
58181
58182         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58183         defined.
58184
58185 2007-12-30  Bruno Haible  <bruno@clisp.org>
58186
58187         * lib/xmalloca.h: Include xalloc.h.
58188         (xnmalloca): New macro.
58189
58190 2007-12-30  Bruno Haible  <bruno@clisp.org>
58191
58192         * lib/malloca.h (nmalloca): New macro.
58193         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58194         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58195         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58196         knuth_morris_pratt_multibyte): Likewise.
58197         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58198         knuth_morris_pratt_multibyte): Likewise.
58199         * lib/memmem.c (knuth_morris_pratt): Likewise.
58200         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58201
58202 2007-12-25  Bruno Haible  <bruno@clisp.org>
58203
58204         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58205         * lib/glob.c: Don't include openat.h.
58206         (link_exists2_p): Add back the code that deals with the
58207         !GLOB_ALTDIRFUNC case.
58208         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58209         let it do the filename concatenation.
58210         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58211         * modules/glob (Depends-on): Remove openat.
58212
58213 2007-12-31  Bruno Haible  <bruno@clisp.org>
58214
58215         * modules/dirfd (License): Change to LGPLv2+.
58216         Approved by Jim Meyering.
58217
58218 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58219
58220         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58221         when multiplying M by sizeof (size_t).
58222
58223 2007-12-10  Martin Lambers  <marlam@marlam.de>
58224
58225         Override getpagesize on mingw.
58226         * lib/getpagesize.c: New file.
58227         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58228         * modules/getpagesize (Files): Add lib/getpagesize.c.
58229         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58231         REPLACE_GETPAGESIZE.
58232         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58233
58234 2007-12-25  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/localcharset (Notice): New field.
58237         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58238         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58239
58240 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58241             Bruno Haible  <bruno@clisp.org>
58242
58243         Avoid using the syntax symbol() in formatted documentation.
58244         * MODULES.html.sh (func_module): When replacing symbol() with a
58245         hyperlink, remove the parentheses. Show an error if some remain.
58246         Recognize and render the '...' syntax.
58247         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58248         Rework. Add paragraph about GCC's inlining.
58249         * doc/alloca.texi: Likewise.
58250         * doc/error.texi: Remove parentheses from symbol reference.
58251         * doc/gnulib-intro.texi: Likewise.
58252         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58253         * modules/fnmatch (Description): Reword to say "the ... function".
58254         * modules/full-read (Description): Likewise.
58255         * modules/full-write (Description): Likewise.
58256         * modules/safe-read (Description): Likewise.
58257         * modules/safe-write (Description): Likewise.
58258         * modules/strchrnul (Description): Likewise.
58259         * modules/trim (Description): Likewise.
58260         * modules/error (Description): Remove parentheses from symbol
58261         references.
58262         * modules/verror (Description): Likewise.
58263         Reported by Karl Berry.
58264
58265 2007-12-25  Bruno Haible  <bruno@clisp.org>
58266
58267         Fixup after 2007-10-16 commit.
58268         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58269
58270 2007-12-24  Bruno Haible  <bruno@clisp.org>
58271
58272         Make --enable-relocatable work with DESTDIR.
58273         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58274         to compute installdir from destprog.
58275         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58276         also set the RELOC_DESTDIR variable.
58277         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58278
58279 2007-12-24  Bruno Haible  <bruno@clisp.org>
58280
58281         Fix link error due to xalloc_die().
58282         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58283         of xreadlink.
58284         * lib/relocwrapper.c: Update comments.
58285         * build-aux/install-reloc: Remove xreadlink.c from file list.
58286         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58287         xreadlink.c.
58288         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58289
58290 2007-12-24  Bruno Haible  <bruno@clisp.org>
58291
58292         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58293         * lib/setenv.h: Remove file.
58294         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58295         lib/setenv.h.
58296         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58297         (Depends-on): Add stdlib.
58298         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58299         gl_FUNC_UNSETENV.
58300         (Include): Replace setenv.h with <stdlib.h>.
58301         * modules/unsetenv: New file.
58302         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58303         * lib/unsetenv.c: Include <stdlib.h> first.
58304         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58305         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58306         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58307         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58308         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58309         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58311         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58312         * doc/functions/unsetenv.texi: Update.
58313         * modules/xsetenv (Depends-on): Add unsetenv.
58314         * modules/getdate (Depends-on): Likewise.
58315         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58316         * lib/xsetenv.c: Don't include setenv.h.
58317         * lib/getdate.y: Likewise.
58318         * lib/relocwrapper.c: Likewise.
58319         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58320         (Depends-on): Add stdlib.
58321         * NEWS: Mention the changes.
58322         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58323
58324 2007-12-23  Bruno Haible  <bruno@clisp.org>
58325
58326         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58327         indentation.
58328
58329 2007-12-23  Bruno Haible  <bruno@clisp.org>
58330
58331         * lib/c-strcasestr.c: Add more comments.
58332         * lib/c-strstr.c: Likewise.
58333         * lib/mbscasestr.c: Likewise.
58334         * lib/mbsstr.c: Likewise.
58335         * lib/strcasestr.c: Likewise.
58336         * lib/memmem.c: Likewise.
58337
58338 2007-12-23  Bruno Haible  <bruno@clisp.org>
58339
58340         * tests/test-memmem.c: Include <string.h> first.
58341
58342 2007-12-22  Bruno Haible  <bruno@clisp.org>
58343
58344         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58345         the contents of $testsbase.
58346         Reported by Ralf Wildenhues.
58347
58348 2007-12-22  Bruno Haible  <bruno@clisp.org>
58349
58350         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58351         two variables local_ldadd_before, local_ldadd_last.
58352
58353 2007-12-20  Eric Blake  <ebb9@byu.net>
58354
58355         Work around circular library issue when cross-compiling.
58356         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58357         that progname.o does not need to pull in rpl_memcmp.
58358
58359 2007-12-19  Eric Blake  <ebb9@byu.net>
58360
58361         Fix memmem to avoid O(n^2) worst-case complexity.
58362         * lib/memmem.c (knuth_morris_pratt): New function.
58363         (memmem): Use it if first few naive iterations fail.
58364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58365         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58366         * modules/memchr (License): Likewise.
58367         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58368         malloca.
58369         * tests/test-memmem.c: Rewrite, borrowing ideas from
58370         test-mbsstr1.c; the old version wouldn't even compile!
58371         * modules/memmem-tests: New file.
58372         * lib/string.in.h (rpl_memmem): Add declaration.
58373         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58375         REPLACE_MEMMEM.
58376
58377 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58378
58379         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58380         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58381         before any system include files, and undef after them all.  This
58382         should fix a problem on VMS reported by John E. Malmberg in
58383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58384
58385 2007-12-17  Eric Blake  <ebb9@byu.net>
58386
58387         Revert addition of verify, for BSD/OS.
58388         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58389         can't handle large files, for the sake of obsolete platforms.
58390         * modules/fseeko (Depends-on): Remove verify.
58391         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58392         * doc/functions/ftello.texi (ftello): Likewise.
58393         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58394         Reported by Larry Jones.
58395
58396 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58397
58398         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58399         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58400
58401 2007-12-17  Jim Meyering  <meyering@redhat.com>
58402
58403         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58404         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58405         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58406         * modules/getcwd (Depends-on): Add openat.
58407         Reported by Petr Salinger.
58408
58409 2007-12-17  Bruno Haible  <bruno@clisp.org>
58410
58411         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58412         avoid a segmentation fault of the configure test on x86_64 systems.
58413
58414 2007-12-15  Jim Meyering  <meyering@redhat.com>
58415
58416         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58417
58418 2007-12-13  Eric Blake  <ebb9@byu.net>
58419
58420         Another fseek test.
58421         * tests/test-fseek.c (main): Also test ungetc handling.
58422         * tests/test-fseeko.c (main): Likewise.
58423         * modules/fseeko (Depends-on): Add verify.
58424         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58425         large.
58426         Reported by Larry Jones.
58427
58428         Fix fseeko on mingw.
58429         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58430         seek.
58431
58432         Beef up fseek tests.
58433         * tests/test-fseek.c (main): Also test eof handling.
58434         * tests/test-fseeko.c (main): Likewise.
58435         Reported by Larry Jones.
58436
58437 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58438
58439         Fix fseeko on BSD-based platforms.
58440         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58441         successful seek.
58442
58443 2007-12-12  Eric Blake  <ebb9@byu.net>
58444
58445         Allow circular dependency of separate libtests.a
58446         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58447         when use_libtests.
58448
58449 2007-12-11  Eric Blake  <ebb9@byu.net>
58450
58451         Fix bug with -0.0L in previous patch.
58452         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58453         * tests/test-isnan.c (main): Also test on zeroes.
58454         * tests/test-isnanf.c (main): Likewise.
58455         * tests/test-isnanl.h (main): Likewise.
58456
58457         Detect pseudo-denormals on x86 even when cross-compiling.
58458         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58459         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58460         invalid bit patterns that happen to satisfy ==.
58461
58462         Avoid link failures with separate libtests.a.
58463         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58464         last, to satisfy circular dependencies.
58465
58466 2007-12-11  Eric Blake  <ebb9@byu.net>
58467         and Bruno Haible  <bruno@clisp.org>
58468
58469         Fix OpenBSD 4.0 <float.h> handling of long double.
58470         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58471         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58472         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58473
58474 2007-12-11  Jim Meyering  <meyering@redhat.com>
58475
58476         * users.txt: Add libvirt.
58477
58478         Support versions of autoconf prior to 2.59c.
58479         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58480         if it is not already defined.
58481
58482 2007-12-09  Bruno Haible  <bruno@clisp.org>
58483
58484         Let 'gnulib-tool --import' collect sources needed for the tests in
58485         tests/ rather than in lib/.
58486         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58487         argument. If true, add rules to generate libtests.a, and put libtests.a
58488         into $(LDADD). Consider source files in subdirectories and set
58489         uses_subdirs.
58490         (func_emit_initmacro_start, func_emit_initmacro_end,
58491         func_emit_initmacro_done): Pass all arguments explicitly.
58492         (func_import): Determine two module lists main_modules,
58493         testsrelated_modules. Determine use_libtests. Determine two variables
58494         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58495         instead of just sed_transform_lib_file. Determine two variables
58496         main_files and testsrelated_files. Compute 'files' as the union of
58497         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58498         func_add_or_update. In the generated gnulib-comp.m4, collect the
58499         object files for tests/ in different variables than those for lib/.
58500         Substitute LIBTESTS_LIBDEPS.
58501         (func_create_testdir): Combine the uses_subdirs results from
58502         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58503
58504 2007-12-09  Bruno Haible  <bruno@clisp.org>
58505
58506         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58507         the build-aux directory.
58508
58509 2007-12-09  Bruno Haible  <bruno@clisp.org>
58510
58511         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58512         introduced on 2006-09-09.
58513
58514 2007-12-07  Jim Meyering  <meyering@redhat.com>
58515
58516         Let these macros work also with autoconf-2.59.
58517         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58518         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58520
58521 2007-12-06  Jim Meyering  <meyering@redhat.com>
58522
58523         Avoid a configure-time syntax error in gl_FUNC_ACL.
58524         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58525         function in each branch, before testing the cache variable.
58526
58527 2007-12-04  Eric Blake  <ebb9@byu.net>
58528
58529         Make scripts executable.
58530         * build-aux/config.guess: Add execute permissions.
58531         * build-aux/config.sub: Likewise.
58532         * build-aux/gendocs.sh: Likewise.
58533
58534         Fix frexp on mingw.
58535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58536         cross-compiling.
58537         * doc/functions/frexp.texi (frexp): Document the bug.
58538
58539         Make cygwin fseeko check more reliable.
58540         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58541         version numbers, rather than unrelated feature check.
58542         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58543         * doc/functions/ftello.texi (ftello): Likewise.
58544         Reported by Bruno Haible.
58545
58546         * m4/strerror.m4: Bump version number.
58547
58548 2007-12-03  Bruno Haible  <bruno@clisp.org>
58549
58550         * doc/functions/mprotect.texi: Mention the mingw problem.
58551
58552 2007-12-03  Eric Blake  <ebb9@byu.net>
58553
58554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58555         REPLACE_STRERROR is initialized before this macro.
58556
58557 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58558
58559         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58560         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58561         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58562         put -lsec in even for programs other than 'ls'.  This fixes a problem
58563         for gettext reported by Bruno Haible in
58564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58565         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58566         Add support for Solaris 10.  This isn't efficient, but should get the
58567         job done for now.
58568
58569 2007-12-03  James Youngman  <jay@gnu.org>
58570
58571         * doc/regexprops-generic.texi: change "an close-group" to "a
58572         close-group" and "illegal" to "not allowed".
58573
58574 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58575
58576         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58577         pr_byname.h. Needed for the rare case when the maintainer has done
58578         "make maintainer-clean" in the source directory and then attempts a
58579         build outside the source directory.
58580         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58581         scripts_byname.h.
58582
58583 2007-12-02  Martin Lambers <marlam@marlam.de>
58584             Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/getpagesize.h: Remove file.
58587         * lib/unistd.in.h: Include declaration of getpagesize here.
58588         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58589         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58590         HAVE_SYS_PARAM_H.
58591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58592         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58593         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58594         (Depends-on): Add unistd.
58595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58596         (Include): Use <unistd.h> instead of getpagesize.h.
58597         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58598         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58599         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58600         gl_GETPAGESIZE invocation, already handled by module dependency.
58601         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58602
58603 2007-12-02  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/strings-tests: New file.
58606         * tests/test-strings.c: New file.
58607
58608         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58609         * lib/strings.in.h: New file.
58610         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58611         * m4/strings_h.m4: New file.
58612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58613         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58614         * modules/strings: New file.
58615         * modules/string (Makefile.am): Update.
58616         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58617         Reported by Karl Berry.
58618
58619 2007-12-01  Eric Blake  <ebb9@byu.net>
58620
58621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58622         accomodate fix in cygwin 1.5.25.
58623
58624 2007-12-01  Jim Meyering  <meyering@redhat.com>
58625
58626         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58627         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58628         that would inhibit utf8-optimization of a regexp containing line-
58629         or buffer-anchors, e.g., `^', `$'.
58630
58631 2007-11-30  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58634         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58635         glthread_recursive_lock_init.
58636         * lib/lock.c (glthread_recursive_lock_init)
58637         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58639
58640 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58641
58642         New function qset_acl, like set_acl but with syscall semantics.
58643         * lib/acl.h (qset_acl): New decl.
58644         * lib/acl.c (qset_acl): New function.
58645         (set_acl): Use new function.  Use more-consistent diagnostics.
58646
58647 2007-11-28  Jim Meyering  <meyering@redhat.com>
58648
58649         * modules/physmem (License): Change from GPL to LGPLv2+.
58650
58651 2007-11-26  Bruno Haible  <bruno@clisp.org>
58652
58653         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58654         'long double' type has excess precision.
58655         Reported by Jim Meyering in
58656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58657
58658 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58659
58660         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58661         Sync from <http://gnu.org/licenses>.
58662         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58663         with license text from same location.
58664         * doc/maintain.texi, doc/standards.texi:  Sync from
58665         <http://savannah.gnu.org/projects/gnustandards>.
58666
58667 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58668         and Jim Meyering  <meyering@redhat.com>
58669
58670         Adjust getdate' grammar to accept a slightly more regular language.
58671         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58672         Before, the former was rejected.
58673         * lib/getdate.y (digits_to_date_time): New function, factored
58674         out of ...
58675         (number): ...here.  Just call digits_to_date_time.
58676         (hybrid): New non-terminal to handle an <unsigned number,
58677         signed relative offset> sequence consistently.
58678
58679 2007-11-18  Jim Meyering  <meyering@redhat.com>
58680
58681         Pull my changes from coreutils:
58682         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58683         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58684         use of $gnulib_tool_option_extras, so that it's separated from the
58685         preceding argument.
58686
58687         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58688         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58689         parent destination directories before copying a file into place.
58690
58691 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58692
58693         bootstrap: work also with 4-argument variant of AC_INIT
58694         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58695
58696 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58697
58698         Port test-getaddrinfo to Solaris.
58699         Problem reported by Bruno Haible in
58700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58701         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58702         explanation of setting 'hints'.
58703         Don't reject an implementation merely because it returns EAI_SERVICE.
58704         (EAI_SERVICE): Define to 0 if not defined.
58705
58706 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         The license of gnu-make and posix-shell is now "GPLed build tool".
58709         * modules/gnu-make (License): Likewise.
58710         * modules/posix-shell (License): Likewise.
58711
58712         New module posix-shell, for determining a POSIX shell
58713         or perhaps something that is close enough to a POSIX shell.
58714         * m4/posix-shell.m4: New file.
58715         * modules/posix-shell: New file.
58716
58717         * MODULES.html.sh: Mention new module.
58718
58719         New module gnu-make, for determining whether we're using GNU Make.
58720         * m4/gnu-make.m4: New file.
58721         * modules/gnu-make: New file.
58722         * MODULES.html.sh: Mention new module.
58723
58724 2007-11-14  Jim Meyering  <meyering@redhat.com>
58725
58726         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58727         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58728         use this macro to create a function _definition_.
58729         Remove useless "#undef ARGMATCH_DIE".
58730
58731 2007-11-14  Bruno Haible  <bruno@clisp.org>
58732
58733         * lib/config.charset: Update for OpenBSD 4.1.
58734         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58735
58736 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         Document 64-bit #if problems in stdint.texi.
58739         * doc/headers/stdint.texi (stdint.h): Mention problems with
58740         64-bit-#if, and how to work around them.
58741
58742         Don't insist on 'long long int' support in the preprocessor.  It
58743         breaks too many things.  For example, PRIdMAX still uses a 'long
58744         long int' format with the latest Sun compiler, even though
58745         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58746         preprocessor problem.  This causes the latest coreutils to dump
58747         core on Solaris 10 sparc with the Sun C compiler.
58748         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58749         the troublesome expressions at configure-time, not at #if-time.
58750         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58751         preprocessor.
58752         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58753         compile-time C checks, done at 'configure'-time.
58754         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58755         * modules/inttypes (Makefile): Substitute the new symbols that
58756         gl_INTTYPES_H now generates.
58757         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58758
58759 2007-11-12  Bruno Haible  <bruno@clisp.org>
58760
58761         Tests for Unicode character classification functions.
58762
58763         * modules/unictype/bidicategory-byname-tests: New file.
58764         * modules/unictype/bidicategory-name-tests: New file.
58765         * modules/unictype/bidicategory-of-tests: New file.
58766         * modules/unictype/bidicategory-test-tests: New file.
58767         * modules/unictype/block-list-tests: New file.
58768         * modules/unictype/block-of-tests: New file.
58769         * modules/unictype/block-test-tests: New file.
58770         * modules/unictype/category-C-tests: New file.
58771         * modules/unictype/category-Cc-tests: New file.
58772         * modules/unictype/category-Cf-tests: New file.
58773         * modules/unictype/category-Cn-tests: New file.
58774         * modules/unictype/category-Co-tests: New file.
58775         * modules/unictype/category-Cs-tests: New file.
58776         * modules/unictype/category-L-tests: New file.
58777         * modules/unictype/category-Ll-tests: New file.
58778         * modules/unictype/category-Lm-tests: New file.
58779         * modules/unictype/category-Lo-tests: New file.
58780         * modules/unictype/category-Lt-tests: New file.
58781         * modules/unictype/category-Lu-tests: New file.
58782         * modules/unictype/category-M-tests: New file.
58783         * modules/unictype/category-Mc-tests: New file.
58784         * modules/unictype/category-Me-tests: New file.
58785         * modules/unictype/category-Mn-tests: New file.
58786         * modules/unictype/category-N-tests: New file.
58787         * modules/unictype/category-Nd-tests: New file.
58788         * modules/unictype/category-Nl-tests: New file.
58789         * modules/unictype/category-No-tests: New file.
58790         * modules/unictype/category-P-tests: New file.
58791         * modules/unictype/category-Pc-tests: New file.
58792         * modules/unictype/category-Pd-tests: New file.
58793         * modules/unictype/category-Pe-tests: New file.
58794         * modules/unictype/category-Pf-tests: New file.
58795         * modules/unictype/category-Pi-tests: New file.
58796         * modules/unictype/category-Po-tests: New file.
58797         * modules/unictype/category-Ps-tests: New file.
58798         * modules/unictype/category-S-tests: New file.
58799         * modules/unictype/category-Sc-tests: New file.
58800         * modules/unictype/category-Sk-tests: New file.
58801         * modules/unictype/category-Sm-tests: New file.
58802         * modules/unictype/category-So-tests: New file.
58803         * modules/unictype/category-Z-tests: New file.
58804         * modules/unictype/category-Zl-tests: New file.
58805         * modules/unictype/category-Zp-tests: New file.
58806         * modules/unictype/category-Zs-tests: New file.
58807         * modules/unictype/category-and-not-tests: New file.
58808         * modules/unictype/category-and-tests: New file.
58809         * modules/unictype/category-byname-tests: New file.
58810         * modules/unictype/category-name-tests: New file.
58811         * modules/unictype/category-none-tests: New file.
58812         * modules/unictype/category-of-tests: New file.
58813         * modules/unictype/category-or-tests: New file.
58814         * modules/unictype/category-test-withtable-tests: New file.
58815         * modules/unictype/combining-class-tests: New file.
58816         * modules/unictype/ctype-alnum-tests: New file.
58817         * modules/unictype/ctype-alpha-tests: New file.
58818         * modules/unictype/ctype-blank-tests: New file.
58819         * modules/unictype/ctype-cntrl-tests: New file.
58820         * modules/unictype/ctype-digit-tests: New file.
58821         * modules/unictype/ctype-graph-tests: New file.
58822         * modules/unictype/ctype-lower-tests: New file.
58823         * modules/unictype/ctype-print-tests: New file.
58824         * modules/unictype/ctype-punct-tests: New file.
58825         * modules/unictype/ctype-space-tests: New file.
58826         * modules/unictype/ctype-upper-tests: New file.
58827         * modules/unictype/ctype-xdigit-tests: New file.
58828         * modules/unictype/decimal-digit-tests: New file.
58829         * modules/unictype/digit-tests: New file.
58830         * modules/unictype/mirror-tests: New file.
58831         * modules/unictype/numeric-tests: New file.
58832         * modules/unictype/property-alphabetic-tests: New file.
58833         * modules/unictype/property-ascii-hex-digit-tests: New file.
58834         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58835         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58836         * modules/unictype/property-bidi-block-separator-tests: New file.
58837         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58838         * modules/unictype/property-bidi-common-separator-tests: New file.
58839         * modules/unictype/property-bidi-control-tests: New file.
58840         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58841         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58842         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58843         * modules/unictype/property-bidi-european-digit-tests: New file.
58844         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58845         * modules/unictype/property-bidi-left-to-right-tests: New file.
58846         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58847         * modules/unictype/property-bidi-other-neutral-tests: New file.
58848         * modules/unictype/property-bidi-pdf-tests: New file.
58849         * modules/unictype/property-bidi-segment-separator-tests: New file.
58850         * modules/unictype/property-bidi-whitespace-tests: New file.
58851         * modules/unictype/property-byname-tests: New file.
58852         * modules/unictype/property-combining-tests: New file.
58853         * modules/unictype/property-composite-tests: New file.
58854         * modules/unictype/property-currency-symbol-tests: New file.
58855         * modules/unictype/property-dash-tests: New file.
58856         * modules/unictype/property-decimal-digit-tests: New file.
58857         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58858         * modules/unictype/property-deprecated-tests: New file.
58859         * modules/unictype/property-diacritic-tests: New file.
58860         * modules/unictype/property-extender-tests: New file.
58861         * modules/unictype/property-format-control-tests: New file.
58862         * modules/unictype/property-grapheme-base-tests: New file.
58863         * modules/unictype/property-grapheme-extend-tests: New file.
58864         * modules/unictype/property-grapheme-link-tests: New file.
58865         * modules/unictype/property-hex-digit-tests: New file.
58866         * modules/unictype/property-hyphen-tests: New file.
58867         * modules/unictype/property-id-continue-tests: New file.
58868         * modules/unictype/property-id-start-tests: New file.
58869         * modules/unictype/property-ideographic-tests: New file.
58870         * modules/unictype/property-ids-binary-operator-tests: New file.
58871         * modules/unictype/property-ids-trinary-operator-tests: New file.
58872         * modules/unictype/property-ignorable-control-tests: New file.
58873         * modules/unictype/property-iso-control-tests: New file.
58874         * modules/unictype/property-join-control-tests: New file.
58875         * modules/unictype/property-left-of-pair-tests: New file.
58876         * modules/unictype/property-line-separator-tests: New file.
58877         * modules/unictype/property-logical-order-exception-tests: New file.
58878         * modules/unictype/property-lowercase-tests: New file.
58879         * modules/unictype/property-math-tests: New file.
58880         * modules/unictype/property-non-break-tests: New file.
58881         * modules/unictype/property-not-a-character-tests: New file.
58882         * modules/unictype/property-numeric-tests: New file.
58883         * modules/unictype/property-other-alphabetic-tests: New file.
58884         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58885         * modules/unictype/property-other-grapheme-extend-tests: New file.
58886         * modules/unictype/property-other-id-continue-tests: New file.
58887         * modules/unictype/property-other-id-start-tests: New file.
58888         * modules/unictype/property-other-lowercase-tests: New file.
58889         * modules/unictype/property-other-math-tests: New file.
58890         * modules/unictype/property-other-uppercase-tests: New file.
58891         * modules/unictype/property-paired-punctuation-tests: New file.
58892         * modules/unictype/property-paragraph-separator-tests: New file.
58893         * modules/unictype/property-pattern-syntax-tests: New file.
58894         * modules/unictype/property-pattern-white-space-tests: New file.
58895         * modules/unictype/property-private-use-tests: New file.
58896         * modules/unictype/property-punctuation-tests: New file.
58897         * modules/unictype/property-quotation-mark-tests: New file.
58898         * modules/unictype/property-radical-tests: New file.
58899         * modules/unictype/property-sentence-terminal-tests: New file.
58900         * modules/unictype/property-soft-dotted-tests: New file.
58901         * modules/unictype/property-space-tests: New file.
58902         * modules/unictype/property-terminal-punctuation-tests: New file.
58903         * modules/unictype/property-test-tests: New file.
58904         * modules/unictype/property-titlecase-tests: New file.
58905         * modules/unictype/property-unassigned-code-value-tests: New file.
58906         * modules/unictype/property-unified-ideograph-tests: New file.
58907         * modules/unictype/property-uppercase-tests: New file.
58908         * modules/unictype/property-variation-selector-tests: New file.
58909         * modules/unictype/property-white-space-tests: New file.
58910         * modules/unictype/property-xid-continue-tests: New file.
58911         * modules/unictype/property-xid-start-tests: New file.
58912         * modules/unictype/property-zero-width-tests: New file.
58913         * modules/unictype/scripts-tests: New file.
58914         * modules/unictype/syntax-c-ident-tests: New file.
58915         * modules/unictype/syntax-c-whitespace-tests: New file.
58916         * modules/unictype/syntax-java-ident-tests: New file.
58917         * modules/unictype/syntax-java-whitespace-tests: New file.
58918         * tests/unictype/test-bidi_byname.c: New file.
58919         * tests/unictype/test-bidi_name.c: New file.
58920         * tests/unictype/test-bidi_of.c: New file.
58921         * tests/unictype/test-bidi_test.c: New file.
58922         * tests/unictype/test-block_list.c: New file.
58923         * tests/unictype/test-block_of.c: New file.
58924         * tests/unictype/test-block_test.c: New file.
58925         * tests/unictype/test-categ_and.c: New file.
58926         * tests/unictype/test-categ_and_not.c: New file.
58927         * tests/unictype/test-categ_byname.c: New file.
58928         * tests/unictype/test-categ_name.c: New file.
58929         * tests/unictype/test-categ_none.c: New file.
58930         * tests/unictype/test-categ_of.c: New file.
58931         * tests/unictype/test-categ_or.c: New file.
58932         * tests/unictype/test-categ_test_withtable.c: New file.
58933         * tests/unictype/test-combining.c: New file.
58934         * tests/unictype/test-decdigit.c: New file.
58935         * tests/unictype/test-digit.c: New file.
58936         * tests/unictype/test-mirror.c: New file.
58937         * tests/unictype/test-numeric.c: New file.
58938         * tests/unictype/test-pr_byname.c: New file.
58939         * tests/unictype/test-pr_test.c: New file.
58940         * tests/unictype/test-predicate-part1.h: New file.
58941         * tests/unictype/test-predicate-part2.h: New file.
58942         * tests/unictype/test-scripts.c: New file.
58943         * tests/unictype/test-sy_c_ident.c: New file.
58944         * tests/unictype/test-sy_java_ident.c: New file.
58945
58946         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58947         for Unicode 5.0.0.
58948         * tests/unictype/test-categ_Cc.c: Likewise.
58949         * tests/unictype/test-categ_Cf.c: Likewise.
58950         * tests/unictype/test-categ_Cn.c: Likewise.
58951         * tests/unictype/test-categ_Co.c: Likewise.
58952         * tests/unictype/test-categ_Cs.c: Likewise.
58953         * tests/unictype/test-categ_L.c: Likewise.
58954         * tests/unictype/test-categ_Ll.c: Likewise.
58955         * tests/unictype/test-categ_Lm.c: Likewise.
58956         * tests/unictype/test-categ_Lo.c: Likewise.
58957         * tests/unictype/test-categ_Lt.c: Likewise.
58958         * tests/unictype/test-categ_Lu.c: Likewise.
58959         * tests/unictype/test-categ_M.c: Likewise.
58960         * tests/unictype/test-categ_Mc.c: Likewise.
58961         * tests/unictype/test-categ_Me.c: Likewise.
58962         * tests/unictype/test-categ_Mn.c: Likewise.
58963         * tests/unictype/test-categ_N.c: Likewise.
58964         * tests/unictype/test-categ_Nd.c: Likewise.
58965         * tests/unictype/test-categ_Nl.c: Likewise.
58966         * tests/unictype/test-categ_No.c: Likewise.
58967         * tests/unictype/test-categ_P.c: Likewise.
58968         * tests/unictype/test-categ_Pc.c: Likewise.
58969         * tests/unictype/test-categ_Pd.c: Likewise.
58970         * tests/unictype/test-categ_Pe.c: Likewise.
58971         * tests/unictype/test-categ_Pf.c: Likewise.
58972         * tests/unictype/test-categ_Pi.c: Likewise.
58973         * tests/unictype/test-categ_Po.c: Likewise.
58974         * tests/unictype/test-categ_Ps.c: Likewise.
58975         * tests/unictype/test-categ_S.c: Likewise.
58976         * tests/unictype/test-categ_Sc.c: Likewise.
58977         * tests/unictype/test-categ_Sk.c: Likewise.
58978         * tests/unictype/test-categ_Sm.c: Likewise.
58979         * tests/unictype/test-categ_So.c: Likewise.
58980         * tests/unictype/test-categ_Z.c: Likewise.
58981         * tests/unictype/test-categ_Zl.c: Likewise.
58982         * tests/unictype/test-categ_Zp.c: Likewise.
58983         * tests/unictype/test-categ_Zs.c: Likewise.
58984         * tests/unictype/test-ctype_alnum.c: Likewise.
58985         * tests/unictype/test-ctype_alpha.c: Likewise.
58986         * tests/unictype/test-ctype_blank.c: Likewise.
58987         * tests/unictype/test-ctype_cntrl.c: Likewise.
58988         * tests/unictype/test-ctype_digit.c: Likewise.
58989         * tests/unictype/test-ctype_graph.c: Likewise.
58990         * tests/unictype/test-ctype_lower.c: Likewise.
58991         * tests/unictype/test-ctype_print.c: Likewise.
58992         * tests/unictype/test-ctype_punct.c: Likewise.
58993         * tests/unictype/test-ctype_space.c: Likewise.
58994         * tests/unictype/test-ctype_upper.c: Likewise.
58995         * tests/unictype/test-ctype_xdigit.c: Likewise.
58996         * tests/unictype/test-decdigit.h: Likewise.
58997         * tests/unictype/test-digit.h: Likewise.
58998         * tests/unictype/test-numeric.h: Likewise.
58999         * tests/unictype/test-pr_alphabetic.c: Likewise.
59000         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59001         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59002         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59003         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59004         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59005         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59006         * tests/unictype/test-pr_bidi_control.c: Likewise.
59007         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59008         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59009         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59010         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59011         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59012         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59013         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59014         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59015         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59016         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59017         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59018         * tests/unictype/test-pr_combining.c: Likewise.
59019         * tests/unictype/test-pr_composite.c: Likewise.
59020         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59021         * tests/unictype/test-pr_dash.c: Likewise.
59022         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59023         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59024         * tests/unictype/test-pr_deprecated.c: Likewise.
59025         * tests/unictype/test-pr_diacritic.c: Likewise.
59026         * tests/unictype/test-pr_extender.c: Likewise.
59027         * tests/unictype/test-pr_format_control.c: Likewise.
59028         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59029         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59030         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59031         * tests/unictype/test-pr_hex_digit.c: Likewise.
59032         * tests/unictype/test-pr_hyphen.c: Likewise.
59033         * tests/unictype/test-pr_id_continue.c: Likewise.
59034         * tests/unictype/test-pr_id_start.c: Likewise.
59035         * tests/unictype/test-pr_ideographic.c: Likewise.
59036         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59037         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59038         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59039         * tests/unictype/test-pr_iso_control.c: Likewise.
59040         * tests/unictype/test-pr_join_control.c: Likewise.
59041         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59042         * tests/unictype/test-pr_line_separator.c: Likewise.
59043         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59044         * tests/unictype/test-pr_lowercase.c: Likewise.
59045         * tests/unictype/test-pr_math.c: Likewise.
59046         * tests/unictype/test-pr_non_break.c: Likewise.
59047         * tests/unictype/test-pr_not_a_character.c: Likewise.
59048         * tests/unictype/test-pr_numeric.c: Likewise.
59049         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59050         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59051         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59052         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59053         * tests/unictype/test-pr_other_id_start.c: Likewise.
59054         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59055         * tests/unictype/test-pr_other_math.c: Likewise.
59056         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59057         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59058         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59059         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59060         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59061         * tests/unictype/test-pr_private_use.c: Likewise.
59062         * tests/unictype/test-pr_punctuation.c: Likewise.
59063         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59064         * tests/unictype/test-pr_radical.c: Likewise.
59065         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59066         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59067         * tests/unictype/test-pr_space.c: Likewise.
59068         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59069         * tests/unictype/test-pr_titlecase.c: Likewise.
59070         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59071         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59072         * tests/unictype/test-pr_uppercase.c: Likewise.
59073         * tests/unictype/test-pr_variation_selector.c: Likewise.
59074         * tests/unictype/test-pr_white_space.c: Likewise.
59075         * tests/unictype/test-pr_xid_continue.c: Likewise.
59076         * tests/unictype/test-pr_xid_start.c: Likewise.
59077         * tests/unictype/test-pr_zero_width.c: Likewise.
59078         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59079         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59080
59081 2007-11-12  Bruno Haible  <bruno@clisp.org>
59082
59083         Unicode character classification functions.
59084         * lib/unictype.h: New file.
59085         * modules/unictype/base: New file.
59086         * modules/unictype/category-L: New file.
59087         * modules/unictype/category-Lu: New file.
59088         * modules/unictype/category-Ll: New file.
59089         * modules/unictype/category-Lt: New file.
59090         * modules/unictype/category-Lm: New file.
59091         * modules/unictype/category-Lo: New file.
59092         * modules/unictype/category-M: New file.
59093         * modules/unictype/category-Mn: New file.
59094         * modules/unictype/category-Mc: New file.
59095         * modules/unictype/category-Me: New file.
59096         * modules/unictype/category-N: New file.
59097         * modules/unictype/category-Nd: New file.
59098         * modules/unictype/category-Nl: New file.
59099         * modules/unictype/category-No: New file.
59100         * modules/unictype/category-P: New file.
59101         * modules/unictype/category-Pc: New file.
59102         * modules/unictype/category-Pd: New file.
59103         * modules/unictype/category-Ps: New file.
59104         * modules/unictype/category-Pe: New file.
59105         * modules/unictype/category-Pi: New file.
59106         * modules/unictype/category-Pf: New file.
59107         * modules/unictype/category-Po: New file.
59108         * modules/unictype/category-S: New file.
59109         * modules/unictype/category-Sm: New file.
59110         * modules/unictype/category-Sc: New file.
59111         * modules/unictype/category-Sk: New file.
59112         * modules/unictype/category-So: New file.
59113         * modules/unictype/category-Z: New file.
59114         * modules/unictype/category-Zs: New file.
59115         * modules/unictype/category-Zl: New file.
59116         * modules/unictype/category-Zp: New file.
59117         * modules/unictype/category-C: New file.
59118         * modules/unictype/category-Cc: New file.
59119         * modules/unictype/category-Cf: New file.
59120         * modules/unictype/category-Cs: New file.
59121         * modules/unictype/category-Co: New file.
59122         * modules/unictype/category-Cn: New file.
59123         * modules/unictype/category-or: New file.
59124         * modules/unictype/category-of: New file.
59125         * modules/unictype/category-test: New file.
59126         * modules/unictype/category-test-withtable: New file.
59127         * modules/unictype/category-byname: New file.
59128         * modules/unictype/category-none: New file.
59129         * modules/unictype/category-and: New file.
59130         * modules/unictype/category-and-not: New file.
59131         * modules/unictype/category-name: New file.
59132         * modules/unictype/combining-class: New file.
59133         * modules/unictype/category-all: New file.
59134         * modules/unictype/bidicategory-all: New file.
59135         * modules/unictype/bidicategory-byname: New file.
59136         * modules/unictype/bidicategory-name: New file.
59137         * modules/unictype/bidicategory-of: New file.
59138         * modules/unictype/bidicategory-test: New file.
59139         * modules/unictype/decimal-digit: New file.
59140         * modules/unictype/digit: New file.
59141         * modules/unictype/numeric: New file.
59142         * modules/unictype/mirror: New file.
59143         * modules/unictype/property-white-space: New file.
59144         * modules/unictype/property-alphabetic: New file.
59145         * modules/unictype/property-other-alphabetic: New file.
59146         * modules/unictype/property-not-a-character: New file.
59147         * modules/unictype/property-default-ignorable-code-point: New file.
59148         * modules/unictype/property-other-default-ignorable-code-point: New
59149         file.
59150         * modules/unictype/property-deprecated: New file.
59151         * modules/unictype/property-logical-order-exception: New file.
59152         * modules/unictype/property-variation-selector: New file.
59153         * modules/unictype/property-private-use: New file.
59154         * modules/unictype/property-unassigned-code-value: New file.
59155         * modules/unictype/property-uppercase: New file.
59156         * modules/unictype/property-other-uppercase: New file.
59157         * modules/unictype/property-lowercase: New file.
59158         * modules/unictype/property-other-lowercase: New file.
59159         * modules/unictype/property-titlecase: New file.
59160         * modules/unictype/property-soft-dotted: New file.
59161         * modules/unictype/property-id-start: New file.
59162         * modules/unictype/property-other-id-start: New file.
59163         * modules/unictype/property-id-continue: New file.
59164         * modules/unictype/property-other-id-continue: New file.
59165         * modules/unictype/property-xid-start: New file.
59166         * modules/unictype/property-xid-continue: New file.
59167         * modules/unictype/property-pattern-white-space: New file.
59168         * modules/unictype/property-pattern-syntax: New file.
59169         * modules/unictype/property-join-control: New file.
59170         * modules/unictype/property-grapheme-base: New file.
59171         * modules/unictype/property-grapheme-extend: New file.
59172         * modules/unictype/property-other-grapheme-extend: New file.
59173         * modules/unictype/property-grapheme-link: New file.
59174         * modules/unictype/property-bidi-control: New file.
59175         * modules/unictype/property-bidi-left-to-right: New file.
59176         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59177         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59178         * modules/unictype/property-bidi-european-digit: New file.
59179         * modules/unictype/property-bidi-eur-num-separator: New file.
59180         * modules/unictype/property-bidi-eur-num-terminator: New file.
59181         * modules/unictype/property-bidi-arabic-digit: New file.
59182         * modules/unictype/property-bidi-common-separator: New file.
59183         * modules/unictype/property-bidi-block-separator: New file.
59184         * modules/unictype/property-bidi-segment-separator: New file.
59185         * modules/unictype/property-bidi-whitespace: New file.
59186         * modules/unictype/property-bidi-non-spacing-mark: New file.
59187         * modules/unictype/property-bidi-boundary-neutral: New file.
59188         * modules/unictype/property-bidi-pdf: New file.
59189         * modules/unictype/property-bidi-embedding-or-override: New file.
59190         * modules/unictype/property-bidi-other-neutral: New file.
59191         * modules/unictype/property-hex-digit: New file.
59192         * modules/unictype/property-ascii-hex-digit: New file.
59193         * modules/unictype/property-ideographic: New file.
59194         * modules/unictype/property-unified-ideograph: New file.
59195         * modules/unictype/property-radical: New file.
59196         * modules/unictype/property-ids-binary-operator: New file.
59197         * modules/unictype/property-ids-trinary-operator: New file.
59198         * modules/unictype/property-zero-width: New file.
59199         * modules/unictype/property-space: New file.
59200         * modules/unictype/property-non-break: New file.
59201         * modules/unictype/property-iso-control: New file.
59202         * modules/unictype/property-format-control: New file.
59203         * modules/unictype/property-dash: New file.
59204         * modules/unictype/property-hyphen: New file.
59205         * modules/unictype/property-punctuation: New file.
59206         * modules/unictype/property-line-separator: New file.
59207         * modules/unictype/property-paragraph-separator: New file.
59208         * modules/unictype/property-quotation-mark: New file.
59209         * modules/unictype/property-sentence-terminal: New file.
59210         * modules/unictype/property-terminal-punctuation: New file.
59211         * modules/unictype/property-currency-symbol: New file.
59212         * modules/unictype/property-math: New file.
59213         * modules/unictype/property-other-math: New file.
59214         * modules/unictype/property-paired-punctuation: New file.
59215         * modules/unictype/property-left-of-pair: New file.
59216         * modules/unictype/property-combining: New file.
59217         * modules/unictype/property-composite: New file.
59218         * modules/unictype/property-decimal-digit: New file.
59219         * modules/unictype/property-numeric: New file.
59220         * modules/unictype/property-diacritic: New file.
59221         * modules/unictype/property-extender: New file.
59222         * modules/unictype/property-ignorable-control: New file.
59223         * modules/unictype/property-test: New file.
59224         * modules/unictype/property-byname: New file.
59225         * modules/unictype/property-all: New file.
59226         * modules/unictype/scripts: New file.
59227         * modules/unictype/scripts-all: New file.
59228         * modules/unictype/block-of: New file.
59229         * modules/unictype/block-test: New file.
59230         * modules/unictype/block-list: New file.
59231         * modules/unictype/block-all: New file.
59232         * modules/unictype/syntax-c-whitespace: New file.
59233         * modules/unictype/syntax-java-whitespace: New file.
59234         * modules/unictype/syntax-c-ident: New file.
59235         * modules/unictype/syntax-java-ident: New file.
59236         * modules/unictype/ctype-alnum: New file.
59237         * modules/unictype/ctype-alpha: New file.
59238         * modules/unictype/ctype-cntrl: New file.
59239         * modules/unictype/ctype-digit: New file.
59240         * modules/unictype/ctype-graph: New file.
59241         * modules/unictype/ctype-lower: New file.
59242         * modules/unictype/ctype-print: New file.
59243         * modules/unictype/ctype-punct: New file.
59244         * modules/unictype/ctype-space: New file.
59245         * modules/unictype/ctype-upper: New file.
59246         * modules/unictype/ctype-xdigit: New file.
59247         * modules/unictype/ctype-blank: New file.
59248         * lib/unictype/bidi_byname.c: New file.
59249         * lib/unictype/bidi_name.c: New file.
59250         * lib/unictype/bidi_of.c: New file.
59251         * lib/unictype/bidi_test.c: New file.
59252         * lib/unictype/bitmap.h: New file.
59253         * lib/unictype/block_test.c: New file.
59254         * lib/unictype/blocks.c: New file.
59255         * lib/unictype/categ_C.c: New file.
59256         * lib/unictype/categ_Cc.c: New file.
59257         * lib/unictype/categ_Cf.c: New file.
59258         * lib/unictype/categ_Cn.c: New file.
59259         * lib/unictype/categ_Co.c: New file.
59260         * lib/unictype/categ_Cs.c: New file.
59261         * lib/unictype/categ_L.c: New file.
59262         * lib/unictype/categ_Ll.c: New file.
59263         * lib/unictype/categ_Lm.c: New file.
59264         * lib/unictype/categ_Lo.c: New file.
59265         * lib/unictype/categ_Lt.c: New file.
59266         * lib/unictype/categ_Lu.c: New file.
59267         * lib/unictype/categ_M.c: New file.
59268         * lib/unictype/categ_Mc.c: New file.
59269         * lib/unictype/categ_Me.c: New file.
59270         * lib/unictype/categ_Mn.c: New file.
59271         * lib/unictype/categ_N.c: New file.
59272         * lib/unictype/categ_Nd.c: New file.
59273         * lib/unictype/categ_Nl.c: New file.
59274         * lib/unictype/categ_No.c: New file.
59275         * lib/unictype/categ_P.c: New file.
59276         * lib/unictype/categ_Pc.c: New file.
59277         * lib/unictype/categ_Pd.c: New file.
59278         * lib/unictype/categ_Pe.c: New file.
59279         * lib/unictype/categ_Pf.c: New file.
59280         * lib/unictype/categ_Pi.c: New file.
59281         * lib/unictype/categ_Po.c: New file.
59282         * lib/unictype/categ_Ps.c: New file.
59283         * lib/unictype/categ_S.c: New file.
59284         * lib/unictype/categ_Sc.c: New file.
59285         * lib/unictype/categ_Sk.c: New file.
59286         * lib/unictype/categ_Sm.c: New file.
59287         * lib/unictype/categ_So.c: New file.
59288         * lib/unictype/categ_Z.c: New file.
59289         * lib/unictype/categ_Zl.c: New file.
59290         * lib/unictype/categ_Zp.c: New file.
59291         * lib/unictype/categ_Zs.c: New file.
59292         * lib/unictype/categ_and.c: New file.
59293         * lib/unictype/categ_and_not.c: New file.
59294         * lib/unictype/categ_byname.c: New file.
59295         * lib/unictype/categ_name.c: New file.
59296         * lib/unictype/categ_none.c: New file.
59297         * lib/unictype/categ_of.c: New file.
59298         * lib/unictype/categ_or.c: New file.
59299         * lib/unictype/categ_test.c: New file.
59300         * lib/unictype/combining.c: New file.
59301         * lib/unictype/ctype_alnum.c: New file.
59302         * lib/unictype/ctype_alpha.c: New file.
59303         * lib/unictype/ctype_blank.c: New file.
59304         * lib/unictype/ctype_cntrl.c: New file.
59305         * lib/unictype/ctype_digit.c: New file.
59306         * lib/unictype/ctype_graph.c: New file.
59307         * lib/unictype/ctype_lower.c: New file.
59308         * lib/unictype/ctype_print.c: New file.
59309         * lib/unictype/ctype_punct.c: New file.
59310         * lib/unictype/ctype_space.c: New file.
59311         * lib/unictype/ctype_upper.c: New file.
59312         * lib/unictype/ctype_xdigit.c: New file.
59313         * lib/unictype/decdigit.c: New file.
59314         * lib/unictype/digit.c: New file.
59315         * lib/unictype/identsyntaxmap.h: New file.
59316         * lib/unictype/mirror.c: New file.
59317         * lib/unictype/numeric.c: New file.
59318         * lib/unictype/pr_alphabetic.c: New file.
59319         * lib/unictype/pr_ascii_hex_digit.c: New file.
59320         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59321         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59322         * lib/unictype/pr_bidi_block_separator.c: New file.
59323         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59324         * lib/unictype/pr_bidi_common_separator.c: New file.
59325         * lib/unictype/pr_bidi_control.c: New file.
59326         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59327         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59328         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59329         * lib/unictype/pr_bidi_european_digit.c: New file.
59330         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59331         * lib/unictype/pr_bidi_left_to_right.c: New file.
59332         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59333         * lib/unictype/pr_bidi_other_neutral.c: New file.
59334         * lib/unictype/pr_bidi_pdf.c: New file.
59335         * lib/unictype/pr_bidi_segment_separator.c: New file.
59336         * lib/unictype/pr_bidi_whitespace.c: New file.
59337         * lib/unictype/pr_byname.c: New file.
59338         * lib/unictype/pr_byname.gperf: New file.
59339         * lib/unictype/pr_combining.c: New file.
59340         * lib/unictype/pr_composite.c: New file.
59341         * lib/unictype/pr_currency_symbol.c: New file.
59342         * lib/unictype/pr_dash.c: New file.
59343         * lib/unictype/pr_decimal_digit.c: New file.
59344         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59345         * lib/unictype/pr_deprecated.c: New file.
59346         * lib/unictype/pr_diacritic.c: New file.
59347         * lib/unictype/pr_extender.c: New file.
59348         * lib/unictype/pr_format_control.c: New file.
59349         * lib/unictype/pr_grapheme_base.c: New file.
59350         * lib/unictype/pr_grapheme_extend.c: New file.
59351         * lib/unictype/pr_grapheme_link.c: New file.
59352         * lib/unictype/pr_hex_digit.c: New file.
59353         * lib/unictype/pr_hyphen.c: New file.
59354         * lib/unictype/pr_id_continue.c: New file.
59355         * lib/unictype/pr_id_start.c: New file.
59356         * lib/unictype/pr_ideographic.c: New file.
59357         * lib/unictype/pr_ids_binary_operator.c: New file.
59358         * lib/unictype/pr_ids_trinary_operator.c: New file.
59359         * lib/unictype/pr_ignorable_control.c: New file.
59360         * lib/unictype/pr_iso_control.c: New file.
59361         * lib/unictype/pr_join_control.c: New file.
59362         * lib/unictype/pr_left_of_pair.c: New file.
59363         * lib/unictype/pr_line_separator.c: New file.
59364         * lib/unictype/pr_logical_order_exception.c: New file.
59365         * lib/unictype/pr_lowercase.c: New file.
59366         * lib/unictype/pr_math.c: New file.
59367         * lib/unictype/pr_non_break.c: New file.
59368         * lib/unictype/pr_not_a_character.c: New file.
59369         * lib/unictype/pr_numeric.c: New file.
59370         * lib/unictype/pr_other_alphabetic.c: New file.
59371         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59372         * lib/unictype/pr_other_grapheme_extend.c: New file.
59373         * lib/unictype/pr_other_id_continue.c: New file.
59374         * lib/unictype/pr_other_id_start.c: New file.
59375         * lib/unictype/pr_other_lowercase.c: New file.
59376         * lib/unictype/pr_other_math.c: New file.
59377         * lib/unictype/pr_other_uppercase.c: New file.
59378         * lib/unictype/pr_paired_punctuation.c: New file.
59379         * lib/unictype/pr_paragraph_separator.c: New file.
59380         * lib/unictype/pr_pattern_syntax.c: New file.
59381         * lib/unictype/pr_pattern_white_space.c: New file.
59382         * lib/unictype/pr_private_use.c: New file.
59383         * lib/unictype/pr_punctuation.c: New file.
59384         * lib/unictype/pr_quotation_mark.c: New file.
59385         * lib/unictype/pr_radical.c: New file.
59386         * lib/unictype/pr_sentence_terminal.c: New file.
59387         * lib/unictype/pr_soft_dotted.c: New file.
59388         * lib/unictype/pr_space.c: New file.
59389         * lib/unictype/pr_terminal_punctuation.c: New file.
59390         * lib/unictype/pr_test.c: New file.
59391         * lib/unictype/pr_titlecase.c: New file.
59392         * lib/unictype/pr_unassigned_code_value.c: New file.
59393         * lib/unictype/pr_unified_ideograph.c: New file.
59394         * lib/unictype/pr_uppercase.c: New file.
59395         * lib/unictype/pr_variation_selector.c: New file.
59396         * lib/unictype/pr_white_space.c: New file.
59397         * lib/unictype/pr_xid_continue.c: New file.
59398         * lib/unictype/pr_xid_start.c: New file.
59399         * lib/unictype/pr_zero_width.c: New file.
59400         * lib/unictype/scripts.c: New file.
59401         * lib/unictype/sy_c_ident.c: New file.
59402         * lib/unictype/sy_c_whitespace.c: New file.
59403         * lib/unictype/sy_java_ident.c: New file.
59404         * lib/unictype/sy_java_whitespace.c: New file.
59405
59406         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59407         Unicode 5.0.0.
59408         * lib/unictype/blocks.h: Likewise.
59409         * lib/unictype/categ_C.h: Likewise.
59410         * lib/unictype/categ_Cc.h: Likewise.
59411         * lib/unictype/categ_Cf.h: Likewise.
59412         * lib/unictype/categ_Cn.h: Likewise.
59413         * lib/unictype/categ_Co.h: Likewise.
59414         * lib/unictype/categ_Cs.h: Likewise.
59415         * lib/unictype/categ_L.h: Likewise.
59416         * lib/unictype/categ_Ll.h: Likewise.
59417         * lib/unictype/categ_Lm.h: Likewise.
59418         * lib/unictype/categ_Lo.h: Likewise.
59419         * lib/unictype/categ_Lt.h: Likewise.
59420         * lib/unictype/categ_Lu.h: Likewise.
59421         * lib/unictype/categ_M.h: Likewise.
59422         * lib/unictype/categ_Mc.h: Likewise.
59423         * lib/unictype/categ_Me.h: Likewise.
59424         * lib/unictype/categ_Mn.h: Likewise.
59425         * lib/unictype/categ_N.h: Likewise.
59426         * lib/unictype/categ_Nd.h: Likewise.
59427         * lib/unictype/categ_Nl.h: Likewise.
59428         * lib/unictype/categ_No.h: Likewise.
59429         * lib/unictype/categ_P.h: Likewise.
59430         * lib/unictype/categ_Pc.h: Likewise.
59431         * lib/unictype/categ_Pd.h: Likewise.
59432         * lib/unictype/categ_Pe.h: Likewise.
59433         * lib/unictype/categ_Pf.h: Likewise.
59434         * lib/unictype/categ_Pi.h: Likewise.
59435         * lib/unictype/categ_Po.h: Likewise.
59436         * lib/unictype/categ_Ps.h: Likewise.
59437         * lib/unictype/categ_S.h: Likewise.
59438         * lib/unictype/categ_Sc.h: Likewise.
59439         * lib/unictype/categ_Sk.h: Likewise.
59440         * lib/unictype/categ_Sm.h: Likewise.
59441         * lib/unictype/categ_So.h: Likewise.
59442         * lib/unictype/categ_Z.h: Likewise.
59443         * lib/unictype/categ_Zl.h: Likewise.
59444         * lib/unictype/categ_Zp.h: Likewise.
59445         * lib/unictype/categ_Zs.h: Likewise.
59446         * lib/unictype/categ_of.h: Likewise.
59447         * lib/unictype/combining.h: Likewise.
59448         * lib/unictype/ctype_alnum.h: Likewise.
59449         * lib/unictype/ctype_alpha.h: Likewise.
59450         * lib/unictype/ctype_blank.h: Likewise.
59451         * lib/unictype/ctype_cntrl.h: Likewise.
59452         * lib/unictype/ctype_digit.h: Likewise.
59453         * lib/unictype/ctype_graph.h: Likewise.
59454         * lib/unictype/ctype_lower.h: Likewise.
59455         * lib/unictype/ctype_print.h: Likewise.
59456         * lib/unictype/ctype_punct.h: Likewise.
59457         * lib/unictype/ctype_space.h: Likewise.
59458         * lib/unictype/ctype_upper.h: Likewise.
59459         * lib/unictype/ctype_xdigit.h: Likewise.
59460         * lib/unictype/decdigit.h: Likewise.
59461         * lib/unictype/digit.h: Likewise.
59462         * lib/unictype/mirror.h: Likewise.
59463         * lib/unictype/numeric.h: Likewise.
59464         * lib/unictype/pr_alphabetic.h: Likewise.
59465         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59466         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59467         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59468         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59469         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59470         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59471         * lib/unictype/pr_bidi_control.h: Likewise.
59472         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59473         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59474         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59475         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59476         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59477         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59478         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59479         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59480         * lib/unictype/pr_bidi_pdf.h: Likewise.
59481         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59482         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59483         * lib/unictype/pr_combining.h: Likewise.
59484         * lib/unictype/pr_composite.h: Likewise.
59485         * lib/unictype/pr_currency_symbol.h: Likewise.
59486         * lib/unictype/pr_dash.h: Likewise.
59487         * lib/unictype/pr_decimal_digit.h: Likewise.
59488         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59489         * lib/unictype/pr_deprecated.h: Likewise.
59490         * lib/unictype/pr_diacritic.h: Likewise.
59491         * lib/unictype/pr_extender.h: Likewise.
59492         * lib/unictype/pr_format_control.h: Likewise.
59493         * lib/unictype/pr_grapheme_base.h: Likewise.
59494         * lib/unictype/pr_grapheme_extend.h: Likewise.
59495         * lib/unictype/pr_grapheme_link.h: Likewise.
59496         * lib/unictype/pr_hex_digit.h: Likewise.
59497         * lib/unictype/pr_hyphen.h: Likewise.
59498         * lib/unictype/pr_id_continue.h: Likewise.
59499         * lib/unictype/pr_id_start.h: Likewise.
59500         * lib/unictype/pr_ideographic.h: Likewise.
59501         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59502         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59503         * lib/unictype/pr_ignorable_control.h: Likewise.
59504         * lib/unictype/pr_iso_control.h: Likewise.
59505         * lib/unictype/pr_join_control.h: Likewise.
59506         * lib/unictype/pr_left_of_pair.h: Likewise.
59507         * lib/unictype/pr_line_separator.h: Likewise.
59508         * lib/unictype/pr_logical_order_exception.h: Likewise.
59509         * lib/unictype/pr_lowercase.h: Likewise.
59510         * lib/unictype/pr_math.h: Likewise.
59511         * lib/unictype/pr_non_break.h: Likewise.
59512         * lib/unictype/pr_not_a_character.h: Likewise.
59513         * lib/unictype/pr_numeric.h: Likewise.
59514         * lib/unictype/pr_other_alphabetic.h: Likewise.
59515         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59516         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59517         * lib/unictype/pr_other_id_continue.h: Likewise.
59518         * lib/unictype/pr_other_id_start.h: Likewise.
59519         * lib/unictype/pr_other_lowercase.h: Likewise.
59520         * lib/unictype/pr_other_math.h: Likewise.
59521         * lib/unictype/pr_other_uppercase.h: Likewise.
59522         * lib/unictype/pr_paired_punctuation.h: Likewise.
59523         * lib/unictype/pr_paragraph_separator.h: Likewise.
59524         * lib/unictype/pr_pattern_syntax.h: Likewise.
59525         * lib/unictype/pr_pattern_white_space.h: Likewise.
59526         * lib/unictype/pr_private_use.h: Likewise.
59527         * lib/unictype/pr_punctuation.h: Likewise.
59528         * lib/unictype/pr_quotation_mark.h: Likewise.
59529         * lib/unictype/pr_radical.h: Likewise.
59530         * lib/unictype/pr_sentence_terminal.h: Likewise.
59531         * lib/unictype/pr_soft_dotted.h: Likewise.
59532         * lib/unictype/pr_space.h: Likewise.
59533         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59534         * lib/unictype/pr_titlecase.h: Likewise.
59535         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59536         * lib/unictype/pr_unified_ideograph.h: Likewise.
59537         * lib/unictype/pr_uppercase.h: Likewise.
59538         * lib/unictype/pr_variation_selector.h: Likewise.
59539         * lib/unictype/pr_white_space.h: Likewise.
59540         * lib/unictype/pr_xid_continue.h: Likewise.
59541         * lib/unictype/pr_xid_start.h: Likewise.
59542         * lib/unictype/pr_zero_width.h: Likewise.
59543         * lib/unictype/scripts.h: Likewise.
59544         * lib/unictype/scripts_byname.gperf: Likewise.
59545         * lib/unictype/sy_c_ident.h: Likewise.
59546         * lib/unictype/sy_c_whitespace.h: Likewise.
59547         * lib/unictype/sy_java_ident.h: Likewise.
59548         * lib/unictype/sy_java_whitespace.h: Likewise.
59549
59550         * lib/unictype/Makefile: New file.
59551         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59552         glibc.
59553         * lib/unictype/3level.h: New file, copied from glibc.
59554         * lib/unictype/3levelbit.h: New file.
59555
59556 2007-11-11  Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/gperf: New file.
59559         * modules/iconv_open (Depends-on): Add it.
59560         (Makefile.am): Remove the GPERF definition.
59561
59562 2007-11-11  Bruno Haible  <bruno@clisp.org>
59563
59564         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59565         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59566
59567 2007-11-11  Bruno Haible  <bruno@clisp.org>
59568
59569         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59570         (usage): Remove function.
59571
59572 2007-11-11  Bruno Haible  <bruno@clisp.org>
59573
59574         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59575         gl_FUNC_CEILF_LIBS.
59576         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59577         gl_FUNC_CEIL_LIBS.
59578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59579         gl_FUNC_CEILL_LIBS.
59580         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59581         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59582         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59583
59584 2007-11-11  Bruno Haible  <bruno@clisp.org>
59585
59586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59587         roundf were declared but do not exist on functions.
59588         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59589         roundl were declared but do not exist on functions.
59590         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59591         HAVE_FLOORL_AND_CEILL, respectively.
59592         Needed for Sun C on Solaris 10.
59593
59594 2007-11-11  Bruno Haible  <bruno@clisp.org>
59595
59596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59597         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59598         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59599         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59601         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59602         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59603         HAVE_DECL_ROUNDF.
59604         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59605         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59607         of HAVE_DECL_ROUND*.
59608         * modules/math (Makefile.am): Update.
59609
59610 2007-11-10  Bruno Haible  <bruno@clisp.org>
59611
59612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59613         ptrdiff_t as m4/intl.m4.
59614
59615 2007-11-10  Jim Meyering  <meyering@redhat.com>
59616
59617         Avoid link failure for the argmatch test.
59618         * tests/test-argmatch.c (usage): Define function to avoid a link
59619         failure: argmatch_die requires a usage function.
59620
59621 2007-11-09  Bruno Haible  <bruno@clisp.org>
59622
59623         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59624         * doc/functions/vsnprintf.texi: Likewise.
59625         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59626         with a size argument < 2.
59627
59628 2007-11-09  Bruno Haible  <bruno@clisp.org>
59629
59630         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59631         buffer. Fixes an inefficiency introduced on 2007-11-03.
59632
59633 2007-11-09  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59636         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59637
59638 2007-11-08  Jim Meyering  <meyering@redhat.com>
59639
59640         Change cache variable name prefix "jm_" to "gl_" everywhere.
59641         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59642         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59643         * m4/uptime.m4: s/gl_/jm_/
59644
59645 2007-11-07  Bruno Haible  <bruno@clisp.org>
59646
59647         Update to GNU gettext 0.17.
59648         * m4/intl.m4: Update to GNU gettext 0.17.
59649         * m4/po.m4: Likewise.
59650         * modules/gettext (Files): Remove m4/ulonglong.m4.
59651         (configure.ac): Require gettext infrastructure from version 0.17.
59652
59653 2007-11-06  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59656         symbolic values are not defined in a public header.
59657         * lib/freadable.c (freadable) [QNX]: Likewise.
59658         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59659         * lib/freading.c (freading) [QNX]: Likewise.
59660         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59661         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59662         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59663         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59664         Reported by Alain Magloire.
59665
59666         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59667
59668 2007-11-05  Bruno Haible  <bruno@clisp.org>
59669
59670         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59671         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59672         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59673         Reported by Eric Blake.
59674
59675 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59676             Bruno Haible  <bruno@clisp.org>
59677
59678         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59679         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59680         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59681         (malloc): Undefine also before including <stdlib.h>.
59682         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59683         Needed on OSF/1 4.0.
59684
59685 2007-11-05  Jim Meyering  <meyering@redhat.com>
59686
59687         git-version-gen: sync from coreutils.
59688         * build-aux/git-version-gen: Add comments.
59689         Change the first '-' to '.' in the snapshot version string,
59690         e.g., 6.9-377-08144 -> 6.9.377-08144
59691         Remove first parameter.
59692         Don't declare a version "-dirty" merely because a time
59693         stamp has changed.
59694
59695 2007-11-04  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/lock.h: Protect all macro definitions containing an 'if'
59698         statement through a "do { ... } while (0)".
59699         * lib/tls.h: Likewise.
59700
59701 2007-11-04  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59704
59705 2007-11-04  Bruno Haible  <bruno@clisp.org>
59706
59707         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59708         * modules/fprintf-posix (Depends-on): Add nocrash.
59709         * modules/snprintf-posix (Depends-on): Likewise.
59710         * modules/sprintf-posix (Depends-on): Likewise.
59711         * modules/vasnprintf-posix (Depends-on): Likewise.
59712         * modules/vasprintf-posix (Depends-on): Likewise.
59713         * modules/vfprintf-posix (Depends-on): Likewise.
59714         * modules/vsnprintf-posix (Depends-on): Likewise.
59715         * modules/vsprintf-posix (Depends-on): Likewise.
59716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59723
59724 2007-11-04  Bruno Haible  <bruno@clisp.org>
59725
59726         * modules/nocrash: New file.
59727         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59728         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59729
59730 2007-11-04  Bruno Haible  <bruno@clisp.org>
59731
59732         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59733         precision handling.
59734         * tests/test-vasprintf-posix.c (test_function): Likewise.
59735         * tests/test-snprintf-posix.h (test_function): Likewise.
59736         * tests/test-sprintf-posix.h (test_function): Likewise.
59737
59738         Fix *printf behaviour for large precisions on mingw and BeOS.
59739         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59740         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59742         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59744         gl_PRINTF_PRECISION and test its result. Invoke
59745         gl_PREREQ_VASNPRINTF_PRECISION.
59746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59753         * doc/functions/fprintf.texi: Update.
59754         * doc/functions/printf.texi: Update.
59755         * doc/functions/snprintf.texi: Update.
59756         * doc/functions/sprintf.texi: Update.
59757         * doc/functions/vfprintf.texi: Update.
59758         * doc/functions/vprintf.texi: Update.
59759         * doc/functions/vsnprintf.texi: Update.
59760         * doc/functions/vsprintf.texi: Update.
59761
59762 2007-11-04  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59765
59766 2007-11-04  Bruno Haible  <bruno@clisp.org>
59767
59768         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59769         Reported by Sylvain Beucler <beuc@gnu.org>.
59770
59771 2007-11-03  Bruno Haible  <bruno@clisp.org>
59772
59773         * tests/test-fprintf-posix2.sh: New file.
59774         * tests/test-fprintf-posix2.c: New file.
59775         * modules/fprintf-posix-tests (Files): Add them.
59776         (TESTS): Add test-fprintf-posix2.sh.
59777         (configure.ac): Check for getrlimit and setrlimit.
59778         (check_PROGRAMS): Add test-fprintf-posix2.
59779
59780         * tests/test-printf-posix2.sh: New file.
59781         * tests/test-printf-posix2.c: New file.
59782         * modules/printf-posix-tests (Files): Add them.
59783         (TESTS): Add test-printf-posix2.sh.
59784         (configure.ac): Check for getrlimit and setrlimit.
59785         (check_PROGRAMS): Add test-printf-posix2.
59786
59787         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59788         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59789         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59790         (decode_double): New function, copied from decode_long_double.
59791         (scale10_round_decimal_decoded): New function, extracted from
59792         scale10_round_decimal_long_double.
59793         (scale10_round_decimal_long_double): Use it.
59794         (scale10_round_decimal_double): New function.
59795         (floorlog10): New function.
59796         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59800         gl_PRINTF_ENOMEM and test its result. Invoke
59801         gl_PREREQ_VASNPRINTF_ENOMEM.
59802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59809         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59810         * modules/snprintf-posix (Depends-on): Likewise.
59811         * modules/sprintf-posix (Depends-on): Likewise.
59812         * modules/vasnprintf-posix (Depends-on): Likewise.
59813         * modules/vasprintf-posix (Depends-on): Likewise.
59814         * modules/vfprintf-posix (Depends-on): Likewise.
59815         * modules/vsnprintf-posix (Depends-on): Likewise.
59816         * modules/vsprintf-posix (Depends-on): Likewise.
59817         * doc/functions/fprintf.texi: Update.
59818         * doc/functions/printf.texi: Update.
59819         * doc/functions/snprintf.texi: Update.
59820         * doc/functions/sprintf.texi: Update.
59821         * doc/functions/vfprintf.texi: Update.
59822         * doc/functions/vprintf.texi: Update.
59823         * doc/functions/vsnprintf.texi: Update.
59824         * doc/functions/vsprintf.texi: Update.
59825
59826 2007-11-03  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/frexp-nolibm-tests: New file.
59829
59830         * modules/frexp-nolibm: New file.
59831         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59832
59833 2007-11-03  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59836         value is C99 compliant.
59837         Needed for OSF/1 5.1.
59838
59839 2007-11-03  Bruno Haible  <bruno@clisp.org>
59840
59841         Fix out-of-memory handling of vasnprintf.
59842         * lib/printf-parse.c: Include <errno.h>.
59843         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59844         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59845         is already set.
59846
59847 2007-11-02  Eric Blake  <ebb9@byu.net>
59848
59849         Fix tests on cygwin.
59850         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59851
59852 2007-11-01  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59855         warning.
59856         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59857         needed for POSIX compatibility.
59858
59859 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59860
59861         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59862         for compatibility with GNU.
59863
59864 2007-11-01  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59867         (putenv): Renamed from rpl_putenv. Change argument type from
59868         'const char *' to 'char *'.
59869         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59870         of defining putenv in config.h, just set REPLACE_PUTENV.
59871         * modules/putenv (Depends-on): Add stdlib.
59872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59873         (Include): Use <stdlib.h>.
59874         * lib/stdlib.in.h (putenv): New declaration.
59875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59876         REPLACE_PUTENV.
59877         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59878         REPLACE_PUTENV.
59879         Needed for MacOS X 10.5.0.
59880         Reported by Peter O'Gorman <peter@pogma.com>.
59881
59882 2007-11-01  Jim Meyering  <meyering@redhat.com>
59883
59884         Treat an empty date string exactly like "0".
59885         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59886         if the remaining date string (to be parsed) is empty, use "0".
59887         Reported by Mischa Molhoek and discussed in this thread:
59888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59889
59890 2007-10-31  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59893         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59894         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59895         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59896         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59897         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59898
59899 2007-10-31  Bruno Haible  <bruno@clisp.org>
59900
59901         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59902         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59903         (AC_TYPE_LONG_LONG_INT): Use it.
59904         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59905         it as well.
59906         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59907         to m4/longlong.m4.
59908         * modules/stdint (Files): Remove m4/ulonglong.m4.
59909         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59910         m4/ulonglong.m4.
59911         * modules/strtoumax (Files): Likewise.
59912
59913 2007-10-30  Bruno Haible  <bruno@clisp.org>
59914
59915         * modules/xvasprintf-posix: New file.
59916         Suggested by Eric Blake.
59917
59918 2007-10-30  Bruno Haible  <bruno@clisp.org>
59919
59920         * modules/xprintf-posix-tests: New file.
59921         * tests/test-xprintf-posix.sh: New file.
59922         * tests/test-xprintf-posix.c: New file.
59923         * tests/test-xfprintf-posix.c: New file.
59924
59925         * modules/xprintf-posix: New file.
59926
59927 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59928
59929         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59930         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59931         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59932
59933 2007-10-29  Bruno Haible  <bruno@clisp.org>
59934
59935         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59936         contain the special marker '_cv_'.
59937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59938         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59939         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59942         Reported by Ralf Wildenhues.
59943
59944 2007-10-29  Bruno Haible  <bruno@clisp.org>
59945
59946         * gnulib-tool (func_import): When --lgpl is not specified, set
59947         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59948         GPLv3.
59949         Reported by Simon Josefsson.
59950
59951 2007-10-28  Bruno Haible  <bruno@clisp.org>
59952
59953         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59954         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59955         HAVE_DECL_ISFINITE.
59956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59957         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59958         HAVE_DECL_ISFINITE.
59959
59960 2007-10-28  Bruno Haible  <bruno@clisp.org>
59961
59962         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59963         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59964
59965 2007-10-28  Bruno Haible  <bruno@clisp.org>
59966
59967         Fix link errors with Sun C 5.0 on Solaris 10.
59968         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59969         function is declared but not present in the compiler's libm.
59970         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59971         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59972         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59973         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59974         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59975         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59976         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59978         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59979         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59980         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59981         HAVE_DECL_FLOORL.
59982
59983 2007-10-28  Bruno Haible  <bruno@clisp.org>
59984
59985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59986         gl_FUNC_FLOORL. Cache the result.
59987         (gl_FUNC_FLOORL): Use it.
59988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59989         gl_FUNC_CEILL. Cache the result.
59990         (gl_FUNC_CEILL): Use it.
59991
59992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59993         gl_FUNC_FLOOR. Cache the result.
59994         (gl_FUNC_FLOOR): Use it.
59995         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59996         gl_FUNC_CEIL. Cache the result.
59997         (gl_FUNC_CEIL): Use it.
59998
59999         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60000         gl_FUNC_FLOORF. Cache the result.
60001         (gl_FUNC_FLOORF): Use it.
60002         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60003         gl_FUNC_CEILF. Cache the result.
60004         (gl_FUNC_CEILF): Use it.
60005
60006 2007-10-28  Bruno Haible  <bruno@clisp.org>
60007
60008         * gnulib-tool: Allow specifying the LGPL version number through
60009         --lgpl=2 or --lgpl=3.
60010         (func_usage): Document --lgpl with argument.
60011         Handle --lgpl=... arguments.
60012         (func_import): Recognize also gl_LGPL calls with an argument. When
60013         --lgpl=2 is used and the module's license is just LGPL, report an
60014         error. Set sed_transform_lib_file according to the lgpl variable. In
60015         the generated files, use --lgpl or gl_LGPL invocations with argument,
60016         if necessary.
60017         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60018         an LGPv2+ license.
60019         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60020         gl_LGPL macro.
60021
60022 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60023             Bruno Haible  <bruno@clisp.org>
60024
60025         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60026         (u16_uctomb_aux): Likewise.
60027         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60028         !HAVE_INLINE.
60029         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60030
60031 2007-10-28  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60034         Invoke AM_GETTEXT_OPTION if it exists.
60035         * modules/vasprintf: Likewise.
60036         * modules/verror: Likewise.
60037         * modules/xprintf: Likewise.
60038         * modules/xvasprintf: Likewise.
60039
60040 2007-10-27  Ben Pfaff  <blp@gnu.org>
60041
60042         * lib/math.in.h: Define isfinite macro and prototypes for
60043         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60044         implementations.
60045         * m4/math_h.m4: New substitutions for isfinite module.
60046         * lib/isfinite.c: New file.
60047         * m4/isfinite.m4: New file.
60048         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60049         * modules/isfinite: New file.
60050         * modules/isfinite-tests: New file.
60051         * tests/tests-isfinite.c: New file.
60052         * doc/functions/isfinite.texi: Mention isfinite module.
60053         * MODULES.html.sh: Mention new module.
60054
60055 2007-10-27  Ben Pfaff  <blp@gnu.org>
60056
60057         Ralf Wildenhues reported that Tru64 4.0D declares the round
60058         functions but does not have definitions.
60059         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60060         cannot be found in any library, set the output variable to
60061         "missing" instead of "".
60062         * m4/round.m4: Also use our substitute if we cannot find round in
60063         any library, even if it is declared.
60064         * m4/roundf.m4: Likewise for roundf.
60065         * m4/roundl.m4: Likewise for roundl.
60066         * lib/math.in.h: Undefine roundf, round, roundl before defining
60067         their replacements, to allow for hypothetical systems where these
60068         may be defined as macros but not available in libraries.
60069
60070 2007-10-27  Bruno Haible  <bruno@clisp.org>
60071
60072         * doc/gnulib.texi: Invoke @firstparagraphindent.
60073         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60074         changes in gnulib.
60075         (Source changes): New section.
60076
60077 2007-10-26  Bruno Haible  <bruno@clisp.org>
60078
60079         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60080         borrowed from autoconf.
60081
60082 2007-10-26  Bruno Haible  <bruno@clisp.org>
60083
60084         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60085         strerror returned the empty string. Needed on HP-UX 11.00.
60086
60087 2007-10-24  Micah Cowan  <micah@cowan.name>
60088
60089         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60090         * build-aux/bootstrap: Remove support for now-unnecessary option,
60091         --cvs-user, and envvars CVS_USER, CVS_RSH.
60092
60093 2007-10-24  Jim Meyering  <meyering@redhat.com>
60094
60095         Avoid diagnostics from sha1sum when there is no cached checksum.
60096         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60097         if the po.s1 file hasn't been created yet.
60098
60099         * build-aux/bootstrap: Sync from coreutils:
60100         2007-10-24  Jim Meyering  <meyering@redhat.com>
60101         Get gnulib from the git repository, not from an obsolete cvs one.
60102         * build-aux/bootstrap: Suggestion from Micah Cowan.
60103         2007-10-04  Jim Meyering  <jim@meyering.net>
60104         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60105         (update_po_files): Work also when there are no .po files in po/.
60106
60107 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60108
60109         * README: Append ".git" to git and cg examples.
60110         Problem reported by Benoit Sigoure.
60111
60112 2007-10-23  Micah Cowan  <micah@cowan.name>
60113
60114         * users.txt: Add wget.
60115
60116 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60117
60118         Fix linking of some unistdio tests on FreeBSD.
60119         * modules/unistdio/u16-vsnprintf-tests
60120         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60121         * modules/unistdio/u16-vsprintf-tests
60122         (test_u16_vsnprintf1_LDADD): Likewise.
60123         * modules/unistdio/u32-vsnprintf-tests
60124         (test_u32_vsnprintf1_LDADD): Likewise.
60125         * modules/unistdio/u32-vsprintf-tests
60126         (test_u32_vsprintf1_LDADD): Likewise.
60127         * modules/unistdio/u8-vsnprintf-tests
60128         (test_u8_vsnprintf1_LDADD): Likewise.
60129         * modules/unistdio/u8-vsprintf-tests
60130         (test_u8_vsprintf1_LDADD): Likewise.
60131         * modules/unistdio/ulc-vsnprintf-tests
60132         (test_ulc_vsnprintf1_LDADD): Likewise.
60133         * modules/unistdio/ulc-vsprintf-tests
60134         (test_ulc_vsprintf1_LDADD): Likewise.
60135
60136         Fix linking of some uniconv tests on FreeBSD.
60137         * modules/uniconv/u16-conv-from-enc-tests
60138         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60139         * modules/uniconv/u16-conv-to-enc-tests
60140         (test_u16_conv_to_enc_LDADD): Likewise.
60141         * modules/uniconv/u16-strconv-from-enc-tests
60142         (test_u16_strconv_from_enc_LDADD): Likewise.
60143         * modules/uniconv/u16-strconv-to-enc-tests
60144         (test_u16_strconv_to_enc_LDADD): Likewise.
60145         * modules/uniconv/u32-conv-from-enc-tests
60146         (test_u32_conv_from_enc_LDADD): Likewise.
60147         * modules/uniconv/u32-conv-to-enc-tests
60148         (test_u32_conv_to_enc_LDADD): Likewise.
60149         * modules/uniconv/u32-strconv-from-enc-tests
60150         (test_u32_strconv_from_enc_LDADD): Likewise.
60151         * modules/uniconv/u32-strconv-to-enc-tests
60152         (test_u32_strconv_to_enc_LDADD): Likewise.
60153         * modules/uniconv/u8-conv-from-enc-tests
60154         (test_u8_conv_from_enc_LDADD): Likewise.
60155         * modules/uniconv/u8-conv-to-enc-tests
60156         (test_u8_conv_to_enc_LDADD): Likewise.
60157         * modules/uniconv/u8-strconv-from-enc-tests
60158         (test_u8_strconv_from_enc_LDADD): Likewise.
60159         * modules/uniconv/u8-strconv-to-enc-tests
60160         (test_u8_strconv_to_enc_LDADD): Likewise.
60161
60162 2007-10-22  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60165         size.
60166
60167 2007-10-22  Eric Blake  <ebb9@byu.net>
60168
60169         Tweak x*printf documentation.
60170         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60171         variable name and comments.
60172         Suggested by Bruno Haible.
60173
60174 2007-10-22  Bruno Haible  <bruno@clisp.org>
60175
60176         * lib/acl.c (copy_acl): Fix file name in comment.
60177
60178 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60179
60180         Fix Tru64 problem with stdbool.h.
60181         * lib/stdbool.in.h (false, true):
60182         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60183         Don't declare as an enum in this situation; it runs afoul of Tru64.
60184         Problem reported by Steven M. Schweda in
60185         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60186
60187 2007-10-22  Eric Blake  <ebb9@byu.net>
60188
60189         Also wrap vf?printf.
60190         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60191         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60192         (xvprintf, xvfprintf): New functions.
60193
60194 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60195
60196         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60197         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60198
60199         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60200         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60201
60202 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60205         by Bruno Haible.
60206
60207 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60208
60209         * lib/getloadavg.c
60210         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60211         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60212
60213         * tests/test-i-ring.c: Work for C89.
60214
60215 2007-10-22  Bruno Haible  <bruno@clisp.org>
60216
60217         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60218         -1u, in preprocessor expression, so that we don't test for the bug
60219         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60221
60222 2007-10-22  Eric Blake  <ebb9@byu.net>
60223
60224         * tests/test-yesno.sh: Silence stderr during test.
60225
60226 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60227
60228         * modules/crypto/gc-camellia: New file.
60229
60230         * m4/gc-camellia.m4: New file.
60231
60232         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60233
60234         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60235
60236 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60237
60238         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60239         --help to stdout.  Reported by sms@antinode.org (Steven
60240         M. Schweda).
60241
60242 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60243
60244         * users.txt: Fix link to libksba.
60245
60246 2007-10-21  Ben Pfaff  <blp@gnu.org>
60247
60248         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60249         round.c roundf implementation that depends on floorf and ceilf to
60250         be tested unconditionally.
60251
60252 2007-10-21  Ben Pfaff  <blp@gnu.org>
60253
60254         * m4/check-libm-func.m4: Removed.
60255         * m4/check-math-lib.m4: New file.
60256         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60257         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60258         definition and lack of AC_LIBOBJ([roundf]).
60259         * m4/roundl.m4: Ditto, and similarly for roundl.
60260         * modules/round: Reference new m4 file.
60261         * modules/roundf: Ditto.
60262         * modules/roundl: Ditto.
60263         * tests/test-round2.c (main): Use ROUND instead of round.
60264         Bug report from Bruno Haible.
60265
60266 2007-10-21  Bruno Haible  <bruno@clisp.org>
60267
60268         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60269         context.
60270
60271 2007-10-21  Bruno Haible  <bruno@clisp.org>
60272
60273         * tests/test-wcwidth.c (main): Allow negative result for some control
60274         characters.
60275
60276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60277         Needed on OSF/1 5.1.
60278
60279 2007-10-21  Bruno Haible  <bruno@clisp.org>
60280
60281         * tests/test-floorf1.c: Include isnanf.h.
60282         (main): Use isnanf() instead of isnan().
60283         * tests/test-ceilf1.c: Include isnanf.h.
60284         (main): Use isnanf() instead of isnan().
60285         * tests/test-truncf1.c: Include isnanf.h.
60286         (main): Use isnanf() instead of isnan().
60287         * tests/test-roundf1.c: Include isnanf.h.
60288         (main): Use isnanf() instead of isnan().
60289
60290 2007-10-21  Eric Blake  <ebb9@byu.net>
60291
60292         * users.txt: Update URL for m4.
60293
60294 2007-10-21  Bruno Haible  <bruno@clisp.org>
60295
60296         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60297
60298 2007-10-21  Bruno Haible  <bruno@clisp.org>
60299
60300         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60301         Git's management files if the CVS files are not present.
60302
60303 2007-10-20  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60306         gcc-3.4.x.
60307
60308 2007-10-20  Ben Pfaff  <blp@gnu.org>
60309
60310         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60311         implementations.
60312         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60313         * lib/round.c: New file.
60314         * lib/roundf.c: New file.
60315         * lib/roundl.c: New file.
60316         * m4/round.m4: New file.
60317         * m4/roundf.m4: New file.
60318         * m4/roundl.m4: New file.
60319         * m4/check-libm-func-m4: New file.
60320         * modules/math: Replace round, roundf, roundl related @VARS@ in
60321         math.in.h.
60322         * modules/round: New file.
60323         * modules/round-tests: New file.
60324         * modules/roundf: New file.
60325         * modules/roundf-tests: New file.
60326         * modules/roundl: New file.
60327         * modules/roundl-tests: New file.
60328         * tests/test-round1.c: New file.
60329         * tests/test-round2.c: New file.
60330         * tests/test-roundf1.c: New file.
60331         * tests/test-roundf2.c: New file.
60332         * tests/test-roundl.c: New file.
60333         * doc/functions/round.texi: Mention round module.
60334         * doc/functions/roundf.texi: Mention roundf module.
60335         * doc/functions/roundl.texi: Mention roundl module.
60336         * MODULES.html.sh: Mention new modules.
60337         Thanks to Bruno Haible for suggestions.
60338
60339 2007-10-20  Jim Meyering  <meyering@redhat.com>
60340
60341         * lib/xprintf.c: Include <config.h> unconditionally.
60342
60343         Change xprintf's license to GPL.
60344         * modules/xprintf (License): s/LGPL/GPL/, since this module
60345         depends on modules (exit and exitfail) which are GPL.
60346         Suggestion from Bruno Haible.
60347
60348         xprintf fixes.
60349         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60350         Use a clearer diagnostic.
60351         Patch from Bruno Haible.
60352
60353 2007-10-20  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60356         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60358
60359 2007-10-20  Bruno Haible  <bruno@clisp.org>
60360
60361         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60362         precision in the comparison result > x - 1 or similar.
60363         * tests/test-ceilf2.c (correct_result_p): Likewise.
60364         * tests/test-truncf2.c (correct_result_p): Likewise.
60365         * tests/test-trunc2.c (correct_result_p): Likewise.
60366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60367
60368 2007-10-20  Bruno Haible  <bruno@clisp.org>
60369
60370         * modules/ceil: New file.
60371         * m4/ceil.m4: New file.
60372         * doc/functions/ceil.texi: Mention the 'ceil' module.
60373
60374 2007-10-20  Bruno Haible  <bruno@clisp.org>
60375
60376         * modules/floor: New file.
60377         * m4/floor.m4: New file.
60378         * doc/functions/floor.texi: Mention the 'floor' module.
60379
60380 2007-10-20  Bruno Haible  <bruno@clisp.org>
60381
60382         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60383         of %a.
60384         * modules/floorf-tests (Depends-on): Likewise.
60385         * modules/truncf-tests (Depends-on): Likewise.
60386         * modules/trunc-tests (Depends-on): Likewise.
60387         Reported by Ben Pfaff.
60388
60389 2007-10-19  Jim Meyering  <meyering@redhat.com>
60390
60391         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60392         Don't bother testing specific errno values.  Just test ferror.
60393
60394         New module: xprintf
60395         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60396
60397 2007-10-19  Bruno Haible  <bruno@clisp.org>
60398
60399         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60400         syntax.
60401         * modules/javaexec (Makefile.am): Likewise.
60402         * modules/relocatable-prog (Makefile.am): Likewise.
60403         Suggested by Jim Meyering.
60404
60405 2007-10-18  Bruno Haible  <bruno@clisp.org>
60406
60407         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60408         Reported by Jim Meyering.
60409
60410 2007-10-18  Eric Blake  <ebb9@byu.net>
60411
60412         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60413
60414 2007-10-18  Bruno Haible  <bruno@clisp.org>
60415
60416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60417         the format string into writable memory. Needed in Fortify conditions.
60418
60419 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60420             Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60423         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60424         * modules/trim (Depends-on): Add mbchar.
60425         (configure.ac): Add gl_FUNC_MBRTOWC.
60426         (Makefile.am): Augment lib_SOURCES.
60427
60428 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         Modify glob.c to use fstatat and dirfd, to simplify it.
60431         Suggested by Eric Blake.
60432         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60433         Don't include <stdbool.h>; not used.
60434         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60435         (link_exists_p): Simplify implementation, since we can now assume
60436         dirfd and fstatat.
60437         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60438
60439 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60440
60441         * gnulib-tool (func_get_dependencies): Fix sed script to
60442         match only tests.
60443
60444 2007-10-17  Bruno Haible  <bruno@clisp.org>
60445
60446         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60447         allow locale names without encoding suffix.
60448         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60449         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60450
60451 2007-10-16  Bruno Haible  <bruno@clisp.org>
60452
60453         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60454         * lib/getgroups.c (getgroups): Likewise.
60455         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60456
60457 2007-10-16  Bruno Haible  <bruno@clisp.org>
60458
60459         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60460         * modules/malloc-posix (License): Likewise.
60461         * modules/realloc-posix (License): Likewise.
60462         * modules/calloc-posix (License): Likewise.
60463         * modules/intprops (License): Change from GPL to LGPL, with
60464         Paul Eggert's approval.
60465
60466 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         Merge glibc changes into lib/glob.c.
60469
60470         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60471         2007-10-15 04:59:03 UTC.  Here are the changes:
60472
60473         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60474
60475         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60476
60477         * lib/glob.c: Add some branch prediction throughout.
60478
60479         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60480
60481         [BZ #5103]
60482         * lib/glob.c (glob): Recognize patterns starting \/.
60483
60484         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60485
60486         [BZ #3996]
60487         * lib/glob.c (attribute_hidden): Define if not defined.
60488         (glob): Unescape dirname, filename or username when needed and not
60489         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60490         is NULL.  Handle unescaped [ in pattern without closing ].
60491         Don't pass GLOB_CHECK down to recursive glob for directories.
60492         (__glob_pattern_type): New function.
60493         (__glob_pattern_p): Implement using __glob_pattern_type.
60494         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60495         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60496         Remove unreachable code.
60497
60498         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60499
60500         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60501         explain why there are no leaks.
60502
60503         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60504
60505         [BZ #3253]
60506         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60507         time, rather allocate increasingly bigger arrays of pointers, if
60508         possible with alloca, if too large with malloc.
60509
60510 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60511
60512         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60513         Problem reported by H.Merijn Brand in
60514         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60517
60518 2007-10-15  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60521         with explicit rpl_ prefix.
60522         * lib/fopen.c (fopen): Likewise.
60523         * lib/freopen.c (freopen): Likewise.
60524         * lib/iconv.c (iconv): Likewise.
60525         * lib/iconv_close.c (iconv_close): Likewise.
60526
60527 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60528
60529         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60530
60531 2007-10-15  Bruno Haible  <bruno@clisp.org>
60532
60533         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60534         <stddef.h> instead of <stdlib.h> since we only need NULL.
60535         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60536
60537 2007-10-15  Bruno Haible  <bruno@clisp.org>
60538
60539         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60540         Replace paragraph talking about LIBOBJS.
60541         Reported by Colin Watson <cjwatson@debian.org>.
60542
60543 2007-10-15  Bruno Haible  <bruno@clisp.org>
60544
60545         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60546         <stdlib.h> before using NULL.
60547
60548 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60549
60550         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60551         Reported by Albert Chin <china@thewrittenword.com>.
60552
60553 2007-10-14  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/iconv_open-utf-tests: New file.
60556         * tests/test-iconv-utf.c: New file.
60557
60558         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60559         * modules/iconv_open-utf: New file.
60560         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60561         (iconv, iconv_close): New declarations.
60562         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60563         be defined.
60564         (iconv_open): Add special handling of conversion between UTF-8 and
60565         UTF-{16,32}{BE,LE}.
60566         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60567         * lib/iconv_close.c: New file.
60568         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60569         gl_FUNC_ICONV_OPEN.
60570         (gl_FUNC_ICONV_OPEN): Use it.
60571         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60572         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60573         and REPLACE_ICONV_UTF.
60574         * modules/iconv_open (Depends-on): Add c-strcase.
60575         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60576         ICONV_CONST.
60577         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60578
60579 2007-10-13  Albert Chin  <china@thewrittenword.com>
60580             Bruno Haible  <bruno@clisp.org>
60581
60582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60583         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60584
60585 2007-10-13  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60588         defined, use the ISO C99 inline semantics.
60589         * lib/argp.h (ARGP_EI): Likewise.
60590
60591 2007-10-13  Bruno Haible  <bruno@clisp.org>
60592
60593         Handle 'inline' change in gcc 4.3.0.
60594         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60595         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60596         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60597         argp_fmtstream_point): Disable 'extern' declaration if the function
60598         definition is going to be provided inline.
60599         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60600         semantics, not the ISO C99 inline semantics.
60601         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60602         'extern' declaration if the function definition is going to be provided
60603         inline.
60604         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60605         the GNU C inline semantics, not the ISO C99 inline semantics. With
60606         GCC 4.2, avoid a warning.
60607
60608 2007-10-13  Bruno Haible  <bruno@clisp.org>
60609
60610         * lib/freading.h (freading): Enable the use of __freading for
60611         glibc >= 2.7.
60612         * lib/freading.c (freading): Likewise.
60613
60614 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60617         "warning: C99 inline functions are not supported; using GNU89".
60618
60619 2007-10-12  Bruno Haible  <bruno@clisp.org>
60620
60621         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60622         of 2.
60623         * tests/test-ceilf2.c: New file.
60624         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60625
60626         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60627         * modules/ceilf-tests: Update.
60628
60629 2007-10-12  Bruno Haible  <bruno@clisp.org>
60630
60631         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60632         of 2.
60633         * tests/test-floorf2.c: New file.
60634         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60635
60636         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60637         * modules/floorf-tests: Update.
60638
60639 2007-10-12  Bruno Haible  <bruno@clisp.org>
60640
60641         * tests/test-trunc2.c: New file.
60642         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60643
60644         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60645         * modules/trunc-tests: Update.
60646
60647 2007-10-12  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60650         of 2.
60651         * tests/test-truncf2.c: New file.
60652         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60653
60654         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60655         * modules/truncf-tests: Update.
60656
60657 2007-10-11  Eric Blake  <ebb9@byu.net>
60658
60659         Don't claim strerror is broken on Interix.
60660         * doc/functions/strerror.texi (strerror): Known broken systems are
60661         now Solaris 8, and not Interix.
60662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60663         Interix on cross-compile.
60664         Reported by Martin Koeppe in
60665         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60666
60667 2007-10-11  Bruno Haible  <bruno@clisp.org>
60668
60669         * modules/i-ring-tests: New file.
60670         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60671         instead of assert.
60672
60673 2007-10-11  Bruno Haible  <bruno@clisp.org>
60674
60675         * modules/filenamecat-tests: New file.
60676         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60677         * lib/filenamecat.c: Remove test code.
60678
60679 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60682
60683         * lib/strerror.c: Include <string.h> always, to test interface,
60684         and to remove the need for the dummy.
60685         Include intprops.h to compute width instead of doing it ourselves
60686         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60687         (strerror): Define it to return NULL if there's no system strerror.
60688         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60689         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60690         ancient pre-strerror Unix systems well any more.  Saying "unknown
60691         system error" is enough.
60692         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60693         simpler strerror.c implementation.
60694         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60695         Simplify the tests to reflect the simpler strerror implementation.
60696         * modules/strerror (Depends-on): Add intprops.
60697
60698 2007-10-09  Eric Blake  <ebb9@byu.net>
60699
60700         Silence test-fpending.
60701         * modules/fpending-tests (Files): Add wrapper script.
60702         * tests/test-fpending.sh: New file.
60703
60704 2007-10-09  Bruno Haible  <bruno@clisp.org>
60705
60706         * MODULES.html.sh (func_module): Don't create a hyperlink for
60707         function names like 'printf_frexp'.
60708         (Misc): Add crc, memxor.
60709         (Characteristics of floating types): New section.
60710         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60711         isnanf-nolibm, signbit, trunc, truncf, truncl.
60712         (Enhancements for ISO C 99 functions): New subsection Input/output.
60713         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60714         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60715         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60716         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60717         (Enhancements for POSIX:2001 functions): Add chdir-long.
60718         (File system functions): Add areadlink, chdir-safer, read-file.
60719         Remove cycle-check.
60720         (File system as inode set): New section.
60721         (Date and time): Add gethrxtime.
60722         (Multithreading): Add openmp.
60723         (Internationalization functions): Add localename.
60724         (Unicode string functions): Add unistr/u*-mbsnlen.
60725         (Support for maintaining and releasing projects): Add git-version-gen.
60726         (Lone files): Remove directories.
60727
60728 2007-10-08  Ben Pfaff  <blp@gnu.org>
60729
60730         * lib/xmalloca.h: Fix typo in comment.
60731
60732 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60733
60734         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60735         when avoiding problems with integer overflow.  Use a portable test
60736         instead.
60737
60738 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60739
60740         * modules/dummy (License): Change to LGPLv2+.
60741         * modules/float (License): Likewise
60742         * modules/realloc (License): Likewise
60743         * modules/stdlib (License): Likewise
60744
60745 2007-10-07  Bruno Haible  <bruno@clisp.org>
60746
60747         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60748         * floor.c (TWO_MANT_DIG): Likewise.
60749         * ceil.c (TWO_MANT_DIG): Likewise.
60750         Reported by Ben Pfaff.
60751
60752 2007-10-07  Bruno Haible  <bruno@clisp.org>
60753
60754         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60755         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60756         * lib/frexp.c (FUNC): Likewise.
60757         * lib/printf-frexp.h (printf_frexp): Likewise.
60758         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60759         * lib/printf-frexp.c (FUNC): Likewise.
60760         Suggested by Jim Meyering.
60761
60762 2007-10-07  Jim Meyering  <meyering@redhat.com>
60763
60764         Make xnanosleep's integer overflow test more robust.
60765         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60766         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60767
60768 2007-10-07  Bruno Haible  <bruno@clisp.org>
60769
60770         * NEWS: Mention the license change.
60771
60772         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60773         abbreviations in the modules files.
60774
60775         Change copyright notice from GPLv2+ to GPLv3+.
60776         * README: Change copyright notice.
60777         * MODULES.html.sh: Likewise.
60778         * build-aux/bootstrap.conf: Likewise.
60779         * build-aux/config.libpath: Likewise.
60780         * build-aux/csharpcomp.sh.in: Likewise.
60781         * build-aux/csharpexec.sh.in: Likewise.
60782         * build-aux/install-reloc: Likewise.
60783         * build-aux/javacomp.sh.in: Likewise.
60784         * build-aux/javaexec.sh.in: Likewise.
60785         * build-aux/ldd.sh.in: Likewise.
60786         * build-aux/reloc-ldflags: Likewise.
60787         * build-aux/relocatable.sh.in: Likewise.
60788         * build-aux/x-to-1.in: Likewise.
60789         * check-module: Likewise.
60790         * config/srclistvars.sh: Likewise.
60791         * gnulib-tool: Likewise.
60792         * lib/acl-internal.h: Likewise.
60793         * lib/acl.c: Likewise.
60794         * lib/acl.h: Likewise.
60795         * lib/acl_entries.c: Likewise.
60796         * lib/areadlink-with-size.c: Likewise.
60797         * lib/areadlink.c: Likewise.
60798         * lib/areadlink.h: Likewise.
60799         * lib/argmatch.c: Likewise.
60800         * lib/argmatch.h: Likewise.
60801         * lib/argp-ba.c: Likewise.
60802         * lib/argp-eexst.c: Likewise.
60803         * lib/argp-fmtstream.c: Likewise.
60804         * lib/argp-fmtstream.h: Likewise.
60805         * lib/argp-fs-xinl.c: Likewise.
60806         * lib/argp-help.c: Likewise.
60807         * lib/argp-namefrob.h: Likewise.
60808         * lib/argp-parse.c: Likewise.
60809         * lib/argp-pin.c: Likewise.
60810         * lib/argp-pv.c: Likewise.
60811         * lib/argp-pvh.c: Likewise.
60812         * lib/argp-xinl.c: Likewise.
60813         * lib/argp.h: Likewise.
60814         * lib/at-func.c: Likewise.
60815         * lib/atanl.c: Likewise.
60816         * lib/backupfile.c: Likewise.
60817         * lib/backupfile.h: Likewise.
60818         * lib/basename.c: Likewise.
60819         * lib/binary-io.h: Likewise.
60820         * lib/byteswap.in.h: Likewise.
60821         * lib/c-stack.c: Likewise.
60822         * lib/c-stack.h: Likewise.
60823         * lib/c-strcasestr.c: Likewise.
60824         * lib/c-strcasestr.h: Likewise.
60825         * lib/c-strstr.c: Likewise.
60826         * lib/c-strstr.h: Likewise.
60827         * lib/c-strtod.c: Likewise.
60828         * lib/calloc.c: Likewise.
60829         * lib/canon-host.c: Likewise.
60830         * lib/canon-host.h: Likewise.
60831         * lib/canonicalize-lgpl.c: Likewise.
60832         * lib/canonicalize.c: Likewise.
60833         * lib/canonicalize.h: Likewise.
60834         * lib/ceil.c: Likewise.
60835         * lib/ceilf.c: Likewise.
60836         * lib/ceill.c: Likewise.
60837         * lib/chdir-long.c: Likewise.
60838         * lib/chdir-long.h: Likewise.
60839         * lib/chdir-safer.c: Likewise.
60840         * lib/chdir-safer.h: Likewise.
60841         * lib/chown.c: Likewise.
60842         * lib/classpath.c: Likewise.
60843         * lib/classpath.h: Likewise.
60844         * lib/clean-temp.c: Likewise.
60845         * lib/clean-temp.h: Likewise.
60846         * lib/cloexec.c: Likewise.
60847         * lib/close-stream.c: Likewise.
60848         * lib/closein.c: Likewise.
60849         * lib/closein.h: Likewise.
60850         * lib/closeout.c: Likewise.
60851         * lib/closeout.h: Likewise.
60852         * lib/concat-filename.c: Likewise.
60853         * lib/copy-file.c: Likewise.
60854         * lib/copy-file.h: Likewise.
60855         * lib/count-one-bits.h: Likewise.
60856         * lib/crc.c: Likewise.
60857         * lib/crc.h: Likewise.
60858         * lib/creat-safer.c: Likewise.
60859         * lib/csharpcomp.c: Likewise.
60860         * lib/csharpcomp.h: Likewise.
60861         * lib/csharpexec.c: Likewise.
60862         * lib/csharpexec.h: Likewise.
60863         * lib/cycle-check.c: Likewise.
60864         * lib/cycle-check.h: Likewise.
60865         * lib/diacrit.c: Likewise.
60866         * lib/diacrit.h: Likewise.
60867         * lib/diffseq.h: Likewise.
60868         * lib/dirchownmod.c: Likewise.
60869         * lib/dirent.in.h: Likewise.
60870         * lib/dirfd.c: Likewise.
60871         * lib/dirfd.h: Likewise.
60872         * lib/dirname.c: Likewise.
60873         * lib/dirname.h: Likewise.
60874         * lib/dummy.c: Likewise.
60875         * lib/dup-safer.c: Likewise.
60876         * lib/dup2.c: Likewise.
60877         * lib/eealloc.h: Likewise.
60878         * lib/error.c: Likewise.
60879         * lib/error.h: Likewise.
60880         * lib/euidaccess.c: Likewise.
60881         * lib/exclude.c: Likewise.
60882         * lib/exclude.h: Likewise.
60883         * lib/execute.c: Likewise.
60884         * lib/execute.h: Likewise.
60885         * lib/exitfail.c: Likewise.
60886         * lib/exitfail.h: Likewise.
60887         * lib/expl.c: Likewise.
60888         * lib/fatal-signal.c: Likewise.
60889         * lib/fatal-signal.h: Likewise.
60890         * lib/fbufmode.c: Likewise.
60891         * lib/fbufmode.h: Likewise.
60892         * lib/fchdir.c: Likewise.
60893         * lib/fchmodat.c: Likewise.
60894         * lib/fchownat.c: Likewise.
60895         * lib/fcntl--.h: Likewise.
60896         * lib/fcntl-safer.h: Likewise.
60897         * lib/fcntl.in.h: Likewise.
60898         * lib/fd-safer.c: Likewise.
60899         * lib/fflush.c: Likewise.
60900         * lib/file-has-acl.c: Likewise.
60901         * lib/file-set.c: Likewise.
60902         * lib/file-type.c: Likewise.
60903         * lib/file-type.h: Likewise.
60904         * lib/fileblocks.c: Likewise.
60905         * lib/filemode.c: Likewise.
60906         * lib/filemode.h: Likewise.
60907         * lib/filename.h: Likewise.
60908         * lib/filenamecat.c: Likewise.
60909         * lib/filenamecat.h: Likewise.
60910         * lib/findprog.c: Likewise.
60911         * lib/findprog.h: Likewise.
60912         * lib/float.in.h: Likewise.
60913         * lib/floor.c: Likewise.
60914         * lib/floorf.c: Likewise.
60915         * lib/floorl.c: Likewise.
60916         * lib/fopen-safer.c: Likewise.
60917         * lib/fopen.c: Likewise.
60918         * lib/fpending.c: Likewise.
60919         * lib/fpending.h: Likewise.
60920         * lib/fprintf.c: Likewise.
60921         * lib/fprintftime.h: Likewise.
60922         * lib/fpucw.h: Likewise.
60923         * lib/fpurge.c: Likewise.
60924         * lib/fpurge.h: Likewise.
60925         * lib/freadable.c: Likewise.
60926         * lib/freadable.h: Likewise.
60927         * lib/freadahead.c: Likewise.
60928         * lib/freadahead.h: Likewise.
60929         * lib/freading.c: Likewise.
60930         * lib/freading.h: Likewise.
60931         * lib/free.c: Likewise.
60932         * lib/freopen.c: Likewise.
60933         * lib/frexp.c: Likewise.
60934         * lib/frexpl.c: Likewise.
60935         * lib/fseek.c: Likewise.
60936         * lib/fseterr.c: Likewise.
60937         * lib/fseterr.h: Likewise.
60938         * lib/fstatat.c: Likewise.
60939         * lib/fstrcmp.c: Likewise.
60940         * lib/fstrcmp.h: Likewise.
60941         * lib/fsusage.c: Likewise.
60942         * lib/fsusage.h: Likewise.
60943         * lib/ftell.c: Likewise.
60944         * lib/ftello.c: Likewise.
60945         * lib/fts-cycle.c: Likewise.
60946         * lib/fts.c: Likewise.
60947         * lib/fts_.h: Likewise.
60948         * lib/full-read.c: Likewise.
60949         * lib/full-read.h: Likewise.
60950         * lib/full-write.c: Likewise.
60951         * lib/full-write.h: Likewise.
60952         * lib/fwritable.c: Likewise.
60953         * lib/fwritable.h: Likewise.
60954         * lib/fwriteerror.c: Likewise.
60955         * lib/fwriteerror.h: Likewise.
60956         * lib/fwriting.c: Likewise.
60957         * lib/fwriting.h: Likewise.
60958         * lib/gcd.c: Likewise.
60959         * lib/gcd.h: Likewise.
60960         * lib/getcwd.c: Likewise.
60961         * lib/getdate.h: Likewise.
60962         * lib/getdate.y: Likewise.
60963         * lib/getdomainname.c: Likewise.
60964         * lib/getdomainname.h: Likewise.
60965         * lib/getgroups.c: Likewise.
60966         * lib/gethostname.c: Likewise.
60967         * lib/gethrxtime.c: Likewise.
60968         * lib/gethrxtime.h: Likewise.
60969         * lib/getloadavg.c: Likewise.
60970         * lib/getndelim2.c: Likewise.
60971         * lib/getndelim2.h: Likewise.
60972         * lib/getnline.c: Likewise.
60973         * lib/getnline.h: Likewise.
60974         * lib/getopt.c: Likewise.
60975         * lib/getopt.in.h: Likewise.
60976         * lib/getopt1.c: Likewise.
60977         * lib/getopt_int.h: Likewise.
60978         * lib/getpagesize.h: Likewise.
60979         * lib/getsubopt.c: Likewise.
60980         * lib/gettime.c: Likewise.
60981         * lib/getugroups.c: Likewise.
60982         * lib/getugroups.h: Likewise.
60983         * lib/getusershell.c: Likewise.
60984         * lib/gl_anyavltree_list1.h: Likewise.
60985         * lib/gl_anyavltree_list2.h: Likewise.
60986         * lib/gl_anyhash_list1.h: Likewise.
60987         * lib/gl_anyhash_list2.h: Likewise.
60988         * lib/gl_anylinked_list1.h: Likewise.
60989         * lib/gl_anylinked_list2.h: Likewise.
60990         * lib/gl_anyrbtree_list1.h: Likewise.
60991         * lib/gl_anyrbtree_list2.h: Likewise.
60992         * lib/gl_anytree_list1.h: Likewise.
60993         * lib/gl_anytree_list2.h: Likewise.
60994         * lib/gl_anytree_oset.h: Likewise.
60995         * lib/gl_anytreehash_list1.h: Likewise.
60996         * lib/gl_anytreehash_list2.h: Likewise.
60997         * lib/gl_array_list.c: Likewise.
60998         * lib/gl_array_list.h: Likewise.
60999         * lib/gl_array_oset.c: Likewise.
61000         * lib/gl_array_oset.h: Likewise.
61001         * lib/gl_avltree_list.c: Likewise.
61002         * lib/gl_avltree_list.h: Likewise.
61003         * lib/gl_avltree_oset.c: Likewise.
61004         * lib/gl_avltree_oset.h: Likewise.
61005         * lib/gl_avltreehash_list.c: Likewise.
61006         * lib/gl_avltreehash_list.h: Likewise.
61007         * lib/gl_carray_list.c: Likewise.
61008         * lib/gl_carray_list.h: Likewise.
61009         * lib/gl_linked_list.c: Likewise.
61010         * lib/gl_linked_list.h: Likewise.
61011         * lib/gl_linkedhash_list.c: Likewise.
61012         * lib/gl_linkedhash_list.h: Likewise.
61013         * lib/gl_list.c: Likewise.
61014         * lib/gl_list.h: Likewise.
61015         * lib/gl_oset.c: Likewise.
61016         * lib/gl_oset.h: Likewise.
61017         * lib/gl_rbtree_list.c: Likewise.
61018         * lib/gl_rbtree_list.h: Likewise.
61019         * lib/gl_rbtree_oset.c: Likewise.
61020         * lib/gl_rbtree_oset.h: Likewise.
61021         * lib/gl_rbtreehash_list.c: Likewise.
61022         * lib/gl_rbtreehash_list.h: Likewise.
61023         * lib/gl_sublist.c: Likewise.
61024         * lib/gl_sublist.h: Likewise.
61025         * lib/group-member.c: Likewise.
61026         * lib/group-member.h: Likewise.
61027         * lib/hard-locale.c: Likewise.
61028         * lib/hard-locale.h: Likewise.
61029         * lib/hash-pjw.c: Likewise.
61030         * lib/hash-pjw.h: Likewise.
61031         * lib/hash-triple.c: Likewise.
61032         * lib/hash.c: Likewise.
61033         * lib/hash.h: Likewise.
61034         * lib/human.c: Likewise.
61035         * lib/human.h: Likewise.
61036         * lib/i-ring.c: Likewise.
61037         * lib/i-ring.h: Likewise.
61038         * lib/idcache.c: Likewise.
61039         * lib/imaxabs.c: Likewise.
61040         * lib/imaxdiv.c: Likewise.
61041         * lib/inet_pton.c: Likewise.
61042         * lib/inet_pton.h: Likewise.
61043         * lib/intprops.h: Likewise.
61044         * lib/inttostr.c: Likewise.
61045         * lib/inttostr.h: Likewise.
61046         * lib/inttypes.in.h: Likewise.
61047         * lib/isapipe.c: Likewise.
61048         * lib/isdir.c: Likewise.
61049         * lib/isnan.c: Likewise.
61050         * lib/isnan.h: Likewise.
61051         * lib/isnanf.c: Likewise.
61052         * lib/isnanf.h: Likewise.
61053         * lib/isnanl-nolibm.h: Likewise.
61054         * lib/isnanl.c: Likewise.
61055         * lib/isnanl.h: Likewise.
61056         * lib/javacomp.c: Likewise.
61057         * lib/javacomp.h: Likewise.
61058         * lib/javaexec.c: Likewise.
61059         * lib/javaexec.h: Likewise.
61060         * lib/javaversion.c: Likewise.
61061         * lib/javaversion.h: Likewise.
61062         * lib/javaversion.java: Likewise.
61063         * lib/lbrkprop.h: Likewise.
61064         * lib/lchmod.h: Likewise.
61065         * lib/lchown.c: Likewise.
61066         * lib/ldexpl.c: Likewise.
61067         * lib/linebreak.c: Likewise.
61068         * lib/linebreak.h: Likewise.
61069         * lib/linebuffer.c: Likewise.
61070         * lib/linebuffer.h: Likewise.
61071         * lib/locale.in.h: Likewise.
61072         * lib/logl.c: Likewise.
61073         * lib/long-options.c: Likewise.
61074         * lib/long-options.h: Likewise.
61075         * lib/lstat.c: Likewise.
61076         * lib/lstat.h: Likewise.
61077         * lib/math.in.h: Likewise.
61078         * lib/mbchar.c: Likewise.
61079         * lib/mbchar.h: Likewise.
61080         * lib/mbfile.h: Likewise.
61081         * lib/mbiter.h: Likewise.
61082         * lib/mbscasecmp.c: Likewise.
61083         * lib/mbscasestr.c: Likewise.
61084         * lib/mbschr.c: Likewise.
61085         * lib/mbscspn.c: Likewise.
61086         * lib/mbslen.c: Likewise.
61087         * lib/mbsncasecmp.c: Likewise.
61088         * lib/mbsnlen.c: Likewise.
61089         * lib/mbspbrk.c: Likewise.
61090         * lib/mbspcasecmp.c: Likewise.
61091         * lib/mbsrchr.c: Likewise.
61092         * lib/mbssep.c: Likewise.
61093         * lib/mbsspn.c: Likewise.
61094         * lib/mbsstr.c: Likewise.
61095         * lib/mbstok_r.c: Likewise.
61096         * lib/mbswidth.c: Likewise.
61097         * lib/mbswidth.h: Likewise.
61098         * lib/mbuiter.h: Likewise.
61099         * lib/memcasecmp.c: Likewise.
61100         * lib/memcasecmp.h: Likewise.
61101         * lib/memchr.c: Likewise.
61102         * lib/memcmp.c: Likewise.
61103         * lib/memcoll.c: Likewise.
61104         * lib/memcoll.h: Likewise.
61105         * lib/memcpy.c: Likewise.
61106         * lib/memrchr.c: Likewise.
61107         * lib/mkancesdirs.c: Likewise.
61108         * lib/mkdir-p.c: Likewise.
61109         * lib/mkdir-p.h: Likewise.
61110         * lib/mkdir.c: Likewise.
61111         * lib/mkdirat.c: Likewise.
61112         * lib/mkdtemp.c: Likewise.
61113         * lib/mkstemp-safer.c: Likewise.
61114         * lib/mkstemp.c: Likewise.
61115         * lib/modechange.c: Likewise.
61116         * lib/modechange.h: Likewise.
61117         * lib/mountlist.c: Likewise.
61118         * lib/mountlist.h: Likewise.
61119         * lib/mpsort.c: Likewise.
61120         * lib/nanosleep.c: Likewise.
61121         * lib/obstack.c: Likewise.
61122         * lib/obstack.h: Likewise.
61123         * lib/open-safer.c: Likewise.
61124         * lib/open.c: Likewise.
61125         * lib/openat-die.c: Likewise.
61126         * lib/openat-priv.h: Likewise.
61127         * lib/openat-proc.c: Likewise.
61128         * lib/openat.c: Likewise.
61129         * lib/openat.h: Likewise.
61130         * lib/pagealign_alloc.c: Likewise.
61131         * lib/pagealign_alloc.h: Likewise.
61132         * lib/physmem.c: Likewise.
61133         * lib/physmem.h: Likewise.
61134         * lib/pipe-safer.c: Likewise.
61135         * lib/pipe.c: Likewise.
61136         * lib/pipe.h: Likewise.
61137         * lib/posixtm.c: Likewise.
61138         * lib/posixtm.h: Likewise.
61139         * lib/posixver.c: Likewise.
61140         * lib/printf-frexp.c: Likewise.
61141         * lib/printf-frexp.h: Likewise.
61142         * lib/printf-frexpl.c: Likewise.
61143         * lib/printf-frexpl.h: Likewise.
61144         * lib/printf.c: Likewise.
61145         * lib/progname.c: Likewise.
61146         * lib/progname.h: Likewise.
61147         * lib/progreloc.c: Likewise.
61148         * lib/putenv.c: Likewise.
61149         * lib/quote.c: Likewise.
61150         * lib/quote.h: Likewise.
61151         * lib/quotearg.c: Likewise.
61152         * lib/quotearg.h: Likewise.
61153         * lib/raise.c: Likewise.
61154         * lib/readline.c: Likewise.
61155         * lib/readline.h: Likewise.
61156         * lib/readlink.c: Likewise.
61157         * lib/readtokens.c: Likewise.
61158         * lib/readtokens.h: Likewise.
61159         * lib/readtokens0.c: Likewise.
61160         * lib/readtokens0.h: Likewise.
61161         * lib/readutmp.c: Likewise.
61162         * lib/readutmp.h: Likewise.
61163         * lib/realloc.c: Likewise.
61164         * lib/relocwrapper.c: Likewise.
61165         * lib/rename-dest-slash.c: Likewise.
61166         * lib/rename.c: Likewise.
61167         * lib/rmdir.c: Likewise.
61168         * lib/rpmatch.c: Likewise.
61169         * lib/safe-read.c: Likewise.
61170         * lib/safe-read.h: Likewise.
61171         * lib/safe-write.c: Likewise.
61172         * lib/safe-write.h: Likewise.
61173         * lib/same-inode.h: Likewise.
61174         * lib/same.c: Likewise.
61175         * lib/same.h: Likewise.
61176         * lib/save-cwd.c: Likewise.
61177         * lib/save-cwd.h: Likewise.
61178         * lib/savedir.c: Likewise.
61179         * lib/savedir.h: Likewise.
61180         * lib/savewd.c: Likewise.
61181         * lib/savewd.h: Likewise.
61182         * lib/search.in.h: Likewise.
61183         * lib/setenv.c: Likewise.
61184         * lib/setenv.h: Likewise.
61185         * lib/settime.c: Likewise.
61186         * lib/sh-quote.c: Likewise.
61187         * lib/sh-quote.h: Likewise.
61188         * lib/sig2str.c: Likewise.
61189         * lib/sig2str.h: Likewise.
61190         * lib/signal.in.h: Likewise.
61191         * lib/signbitd.c: Likewise.
61192         * lib/signbitf.c: Likewise.
61193         * lib/signbitl.c: Likewise.
61194         * lib/sigprocmask.c: Likewise.
61195         * lib/sincosl.c: Likewise.
61196         * lib/sleep.c: Likewise.
61197         * lib/sprintf.c: Likewise.
61198         * lib/sqrtl.c: Likewise.
61199         * lib/stat-time.h: Likewise.
61200         * lib/stdio--.h: Likewise.
61201         * lib/stdio-safer.h: Likewise.
61202         * lib/stdlib--.h: Likewise.
61203         * lib/stdlib-safer.h: Likewise.
61204         * lib/stdlib.in.h: Likewise.
61205         * lib/stpcpy.c: Likewise.
61206         * lib/stpncpy.c: Likewise.
61207         * lib/strchrnul.c: Likewise.
61208         * lib/strcspn.c: Likewise.
61209         * lib/strerror.c: Likewise.
61210         * lib/strftime.c: Likewise.
61211         * lib/strftime.h: Likewise.
61212         * lib/striconveh.c: Likewise.
61213         * lib/striconveh.h: Likewise.
61214         * lib/striconveha.c: Likewise.
61215         * lib/striconveha.h: Likewise.
61216         * lib/stripslash.c: Likewise.
61217         * lib/strnlen1.c: Likewise.
61218         * lib/strnlen1.h: Likewise.
61219         * lib/strtod.c: Likewise.
61220         * lib/strtoimax.c: Likewise.
61221         * lib/strtok_r.c: Likewise.
61222         * lib/strtol.c: Likewise.
61223         * lib/strtoll.c: Likewise.
61224         * lib/strtoul.c: Likewise.
61225         * lib/strtoull.c: Likewise.
61226         * lib/sysexits.in.h: Likewise.
61227         * lib/tempname.c: Likewise.
61228         * lib/tempname.h: Likewise.
61229         * lib/timespec.h: Likewise.
61230         * lib/tls.c: Likewise.
61231         * lib/tls.h: Likewise.
61232         * lib/tmpdir.c: Likewise.
61233         * lib/tmpdir.h: Likewise.
61234         * lib/tmpfile-safer.c: Likewise.
61235         * lib/tmpfile.c: Likewise.
61236         * lib/trigl.c: Likewise.
61237         * lib/trigl.h: Likewise.
61238         * lib/trim.c: Likewise.
61239         * lib/trim.h: Likewise.
61240         * lib/trunc.c: Likewise.
61241         * lib/truncf.c: Likewise.
61242         * lib/truncl.c: Likewise.
61243         * lib/tsearch.c: Likewise.
61244         * lib/unicodeio.c: Likewise.
61245         * lib/unicodeio.h: Likewise.
61246         * lib/unistd--.h: Likewise.
61247         * lib/unistd-safer.h: Likewise.
61248         * lib/unistdio/ulc-fprintf.c: Likewise.
61249         * lib/unistdio/ulc-vfprintf.c: Likewise.
61250         * lib/unlinkdir.c: Likewise.
61251         * lib/unlinkdir.h: Likewise.
61252         * lib/unlocked-io.h: Likewise.
61253         * lib/unsetenv.c: Likewise.
61254         * lib/userspec.c: Likewise.
61255         * lib/utime.c: Likewise.
61256         * lib/utimecmp.c: Likewise.
61257         * lib/utimecmp.h: Likewise.
61258         * lib/utimens.c: Likewise.
61259         * lib/verify.h: Likewise.
61260         * lib/verror.c: Likewise.
61261         * lib/verror.h: Likewise.
61262         * lib/version-etc-fsf.c: Likewise.
61263         * lib/version-etc.c: Likewise.
61264         * lib/version-etc.h: Likewise.
61265         * lib/vfprintf.c: Likewise.
61266         * lib/vprintf.c: Likewise.
61267         * lib/vsprintf.c: Likewise.
61268         * lib/w32spawn.h: Likewise.
61269         * lib/wait-process.c: Likewise.
61270         * lib/wait-process.h: Likewise.
61271         * lib/wcwidth.c: Likewise.
61272         * lib/write-any-file.c: Likewise.
61273         * lib/xalloc-die.c: Likewise.
61274         * lib/xalloc.h: Likewise.
61275         * lib/xasprintf.c: Likewise.
61276         * lib/xgetcwd.c: Likewise.
61277         * lib/xgetcwd.h: Likewise.
61278         * lib/xgetdomainname.c: Likewise.
61279         * lib/xgetdomainname.h: Likewise.
61280         * lib/xgethostname.c: Likewise.
61281         * lib/xmalloc.c: Likewise.
61282         * lib/xmalloca.c: Likewise.
61283         * lib/xmalloca.h: Likewise.
61284         * lib/xmemcoll.c: Likewise.
61285         * lib/xnanosleep.c: Likewise.
61286         * lib/xreadlink.c: Likewise.
61287         * lib/xreadlink.h: Likewise.
61288         * lib/xsetenv.c: Likewise.
61289         * lib/xsetenv.h: Likewise.
61290         * lib/xstriconv.c: Likewise.
61291         * lib/xstriconv.h: Likewise.
61292         * lib/xstrndup.c: Likewise.
61293         * lib/xstrndup.h: Likewise.
61294         * lib/xstrtod.c: Likewise.
61295         * lib/xstrtod.h: Likewise.
61296         * lib/xstrtol-error.c: Likewise.
61297         * lib/xstrtol.c: Likewise.
61298         * lib/xstrtol.h: Likewise.
61299         * lib/xtime.h: Likewise.
61300         * lib/xvasprintf.c: Likewise.
61301         * lib/xvasprintf.h: Likewise.
61302         * lib/yesno.c: Likewise.
61303         * lib/yesno.h: Likewise.
61304         * posix-modules: Likewise.
61305         * tests/test-alloca-opt.c: Likewise.
61306         * tests/test-arcfour.c: Likewise.
61307         * tests/test-arctwo.c: Likewise.
61308         * tests/test-argmatch.c: Likewise.
61309         * tests/test-argp-2.sh: Likewise.
61310         * tests/test-argp.c: Likewise.
61311         * tests/test-arpa_inet.c: Likewise.
61312         * tests/test-array_list.c: Likewise.
61313         * tests/test-array_oset.c: Likewise.
61314         * tests/test-atexit.c: Likewise.
61315         * tests/test-avltree_list.c: Likewise.
61316         * tests/test-avltree_oset.c: Likewise.
61317         * tests/test-avltreehash_list.c: Likewise.
61318         * tests/test-base64.c: Likewise.
61319         * tests/test-binary-io.c: Likewise.
61320         * tests/test-byteswap.c: Likewise.
61321         * tests/test-c-ctype.c: Likewise.
61322         * tests/test-c-strcasecmp.c: Likewise.
61323         * tests/test-c-strcasestr.c: Likewise.
61324         * tests/test-c-strncasecmp.c: Likewise.
61325         * tests/test-c-strstr.c: Likewise.
61326         * tests/test-canonicalize-lgpl.c: Likewise.
61327         * tests/test-canonicalize.c: Likewise.
61328         * tests/test-carray_list.c: Likewise.
61329         * tests/test-ceilf.c: Likewise.
61330         * tests/test-ceill.c: Likewise.
61331         * tests/test-count-one-bits.c: Likewise.
61332         * tests/test-crc.c: Likewise.
61333         * tests/test-dirname.c: Likewise.
61334         * tests/test-fbufmode.c: Likewise.
61335         * tests/test-fcntl.c: Likewise.
61336         * tests/test-fflush.c: Likewise.
61337         * tests/test-floorf.c: Likewise.
61338         * tests/test-floorl.c: Likewise.
61339         * tests/test-fopen.c: Likewise.
61340         * tests/test-fprintf-posix.c: Likewise.
61341         * tests/test-fprintf-posix.h: Likewise.
61342         * tests/test-fpurge.c: Likewise.
61343         * tests/test-freadable.c: Likewise.
61344         * tests/test-freadahead.c: Likewise.
61345         * tests/test-freading.c: Likewise.
61346         * tests/test-freopen.c: Likewise.
61347         * tests/test-frexp.c: Likewise.
61348         * tests/test-frexpl.c: Likewise.
61349         * tests/test-fseek.c: Likewise.
61350         * tests/test-fseeko.c: Likewise.
61351         * tests/test-fseterr.c: Likewise.
61352         * tests/test-fstrcmp.c: Likewise.
61353         * tests/test-ftell.c: Likewise.
61354         * tests/test-ftello.c: Likewise.
61355         * tests/test-fwritable.c: Likewise.
61356         * tests/test-fwriting.c: Likewise.
61357         * tests/test-getaddrinfo.c: Likewise.
61358         * tests/test-getpass.c: Likewise.
61359         * tests/test-gettimeofday.c: Likewise.
61360         * tests/test-hmac-md5.c: Likewise.
61361         * tests/test-hmac-sha1.c: Likewise.
61362         * tests/test-iconv.c: Likewise.
61363         * tests/test-iconvme.c: Likewise.
61364         * tests/test-inttypes.c: Likewise.
61365         * tests/test-isnan.c: Likewise.
61366         * tests/test-isnanf.c: Likewise.
61367         * tests/test-isnanl-nolibm.c: Likewise.
61368         * tests/test-isnanl.c: Likewise.
61369         * tests/test-isnanl.h: Likewise.
61370         * tests/test-ldexpl.c: Likewise.
61371         * tests/test-linked_list.c: Likewise.
61372         * tests/test-linkedhash_list.c: Likewise.
61373         * tests/test-locale.c: Likewise.
61374         * tests/test-localename.c: Likewise.
61375         * tests/test-lock.c: Likewise.
61376         * tests/test-lseek.c: Likewise.
61377         * tests/test-malloca.c: Likewise.
61378         * tests/test-math.c: Likewise.
61379         * tests/test-mbscasecmp.c: Likewise.
61380         * tests/test-mbscasestr1.c: Likewise.
61381         * tests/test-mbscasestr2.c: Likewise.
61382         * tests/test-mbscasestr3.c: Likewise.
61383         * tests/test-mbscasestr4.c: Likewise.
61384         * tests/test-mbschr.c: Likewise.
61385         * tests/test-mbscspn.c: Likewise.
61386         * tests/test-mbsncasecmp.c: Likewise.
61387         * tests/test-mbspbrk.c: Likewise.
61388         * tests/test-mbspcasecmp.c: Likewise.
61389         * tests/test-mbsrchr.c: Likewise.
61390         * tests/test-mbsspn.c: Likewise.
61391         * tests/test-mbsstr1.c: Likewise.
61392         * tests/test-mbsstr2.c: Likewise.
61393         * tests/test-mbsstr3.c: Likewise.
61394         * tests/test-md5.c: Likewise.
61395         * tests/test-memmem.c: Likewise.
61396         * tests/test-netinet_in.c: Likewise.
61397         * tests/test-open.c: Likewise.
61398         * tests/test-printf-frexp.c: Likewise.
61399         * tests/test-printf-frexpl.c: Likewise.
61400         * tests/test-printf-posix.c: Likewise.
61401         * tests/test-printf-posix.h: Likewise.
61402         * tests/test-rbtree_list.c: Likewise.
61403         * tests/test-rbtree_oset.c: Likewise.
61404         * tests/test-rbtreehash_list.c: Likewise.
61405         * tests/test-read-file.c: Likewise.
61406         * tests/test-rijndael.c: Likewise.
61407         * tests/test-search.c: Likewise.
61408         * tests/test-signbit.c: Likewise.
61409         * tests/test-sleep.c: Likewise.
61410         * tests/test-snprintf-posix.c: Likewise.
61411         * tests/test-snprintf-posix.h: Likewise.
61412         * tests/test-snprintf.c: Likewise.
61413         * tests/test-sprintf-posix.c: Likewise.
61414         * tests/test-sprintf-posix.h: Likewise.
61415         * tests/test-stat-time.c: Likewise.
61416         * tests/test-stdbool.c: Likewise.
61417         * tests/test-stdint.c: Likewise.
61418         * tests/test-stdio.c: Likewise.
61419         * tests/test-stdlib.c: Likewise.
61420         * tests/test-stpncpy.c: Likewise.
61421         * tests/test-strcasestr.c: Likewise.
61422         * tests/test-striconv.c: Likewise.
61423         * tests/test-striconveh.c: Likewise.
61424         * tests/test-striconveha.c: Likewise.
61425         * tests/test-string.c: Likewise.
61426         * tests/test-sys_select.c: Likewise.
61427         * tests/test-sys_socket.c: Likewise.
61428         * tests/test-sys_stat.c: Likewise.
61429         * tests/test-sys_time.c: Likewise.
61430         * tests/test-sysexits.c: Likewise.
61431         * tests/test-time.c: Likewise.
61432         * tests/test-tls.c: Likewise.
61433         * tests/test-trunc.c: Likewise.
61434         * tests/test-truncf.c: Likewise.
61435         * tests/test-truncl.c: Likewise.
61436         * tests/test-unistd.c: Likewise.
61437         * tests/test-vasnprintf-posix.c: Likewise.
61438         * tests/test-vasnprintf-posix2.c: Likewise.
61439         * tests/test-vasnprintf.c: Likewise.
61440         * tests/test-vasprintf-posix.c: Likewise.
61441         * tests/test-vasprintf.c: Likewise.
61442         * tests/test-verify.c: Likewise.
61443         * tests/test-vfprintf-posix.c: Likewise.
61444         * tests/test-vprintf-posix.c: Likewise.
61445         * tests/test-vsnprintf-posix.c: Likewise.
61446         * tests/test-vsnprintf.c: Likewise.
61447         * tests/test-vsprintf-posix.c: Likewise.
61448         * tests/test-wchar.c: Likewise.
61449         * tests/test-wctype.c: Likewise.
61450         * tests/test-wcwidth.c: Likewise.
61451         * tests/test-xstrtol.c: Likewise.
61452         * tests/test-xvasprintf.c: Likewise.
61453         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61454         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61455         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61456         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61457         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61458         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61459         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61460         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61461         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61462         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61465         * tests/uniname/test-uninames.c: Likewise.
61466         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61467         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61468         * tests/unistdio/test-u16-printf1.h: Likewise.
61469         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61470         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61471         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61472         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61473         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61474         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61475         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61476         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61477         * tests/unistdio/test-u32-printf1.h: Likewise.
61478         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61479         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61480         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61481         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61482         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61483         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61484         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61485         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61486         * tests/unistdio/test-u8-printf1.h: Likewise.
61487         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61488         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61489         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61490         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61491         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61492         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61493         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61494         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61495         * tests/unistdio/test-ulc-printf1.h: Likewise.
61496         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61497         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61498         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61499         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61500         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61501         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61502         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61503         * tests/uniwidth/test-u16-width.c: Likewise.
61504         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61505         * tests/uniwidth/test-u32-width.c: Likewise.
61506         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61507         * tests/uniwidth/test-u8-width.c: Likewise.
61508         * tests/uniwidth/test-uc_width.c: Likewise.
61509         * config/srclist-update: Likewise.
61510         (fixlicense): Update to GPLv3+.
61511
61512         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61513         * tests/test-tsearch.c: Change copyright notice.
61514
61515         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61516         * lib/c-strcaseeq.h: Change copyright notice.
61517         * lib/streq.h: Likewise.
61518         * lib/uniconv.h: Likewise.
61519         * lib/uniconv/u-conv-from-enc.h: Likewise.
61520         * lib/uniconv/u-conv-to-enc.h: Likewise.
61521         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61522         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61523         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61524         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61525         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61526         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61527         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61528         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61529         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61530         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61531         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61532         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61533         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61534         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61535         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61536         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61537         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61538         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61539         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61540         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61541         * lib/uniname.h: Likewise.
61542         * lib/uniname/uniname.c: Likewise.
61543         * lib/unistdio.h: Likewise.
61544         * lib/unistdio/u-asnprintf.h: Likewise.
61545         * lib/unistdio/u-asprintf.h: Likewise.
61546         * lib/unistdio/u-printf-args.c: Likewise.
61547         * lib/unistdio/u-printf-args.h: Likewise.
61548         * lib/unistdio/u-printf-parse.h: Likewise.
61549         * lib/unistdio/u-snprintf.h: Likewise.
61550         * lib/unistdio/u-sprintf.h: Likewise.
61551         * lib/unistdio/u-vasprintf.h: Likewise.
61552         * lib/unistdio/u-vsnprintf.h: Likewise.
61553         * lib/unistdio/u-vsprintf.h: Likewise.
61554         * lib/unistdio/u16-asnprintf.c: Likewise.
61555         * lib/unistdio/u16-asprintf.c: Likewise.
61556         * lib/unistdio/u16-printf-parse.c: Likewise.
61557         * lib/unistdio/u16-snprintf.c: Likewise.
61558         * lib/unistdio/u16-sprintf.c: Likewise.
61559         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61560         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61561         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61562         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61563         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61564         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61565         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61566         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61567         * lib/unistdio/u16-vasnprintf.c: Likewise.
61568         * lib/unistdio/u16-vasprintf.c: Likewise.
61569         * lib/unistdio/u16-vsnprintf.c: Likewise.
61570         * lib/unistdio/u16-vsprintf.c: Likewise.
61571         * lib/unistdio/u32-asnprintf.c: Likewise.
61572         * lib/unistdio/u32-asprintf.c: Likewise.
61573         * lib/unistdio/u32-printf-parse.c: Likewise.
61574         * lib/unistdio/u32-snprintf.c: Likewise.
61575         * lib/unistdio/u32-sprintf.c: Likewise.
61576         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61577         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61578         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61579         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61580         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61581         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61582         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61583         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61584         * lib/unistdio/u32-vasnprintf.c: Likewise.
61585         * lib/unistdio/u32-vasprintf.c: Likewise.
61586         * lib/unistdio/u32-vsnprintf.c: Likewise.
61587         * lib/unistdio/u32-vsprintf.c: Likewise.
61588         * lib/unistdio/u8-asnprintf.c: Likewise.
61589         * lib/unistdio/u8-asprintf.c: Likewise.
61590         * lib/unistdio/u8-printf-parse.c: Likewise.
61591         * lib/unistdio/u8-snprintf.c: Likewise.
61592         * lib/unistdio/u8-sprintf.c: Likewise.
61593         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61594         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61595         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61596         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61597         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61598         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61599         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61600         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61601         * lib/unistdio/u8-vasnprintf.c: Likewise.
61602         * lib/unistdio/u8-vasprintf.c: Likewise.
61603         * lib/unistdio/u8-vsnprintf.c: Likewise.
61604         * lib/unistdio/u8-vsprintf.c: Likewise.
61605         * lib/unistdio/ulc-asnprintf.c: Likewise.
61606         * lib/unistdio/ulc-asprintf.c: Likewise.
61607         * lib/unistdio/ulc-printf-parse.c: Likewise.
61608         * lib/unistdio/ulc-snprintf.c: Likewise.
61609         * lib/unistdio/ulc-sprintf.c: Likewise.
61610         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61611         * lib/unistdio/ulc-vasprintf.c: Likewise.
61612         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61613         * lib/unistdio/ulc-vsprintf.c: Likewise.
61614         * lib/unistr.h: Likewise.
61615         * lib/unistr/u-cpy-alloc.h: Likewise.
61616         * lib/unistr/u-cpy.h: Likewise.
61617         * lib/unistr/u-endswith.h: Likewise.
61618         * lib/unistr/u-move.h: Likewise.
61619         * lib/unistr/u-set.h: Likewise.
61620         * lib/unistr/u-startswith.h: Likewise.
61621         * lib/unistr/u-stpcpy.h: Likewise.
61622         * lib/unistr/u-stpncpy.h: Likewise.
61623         * lib/unistr/u-strcat.h: Likewise.
61624         * lib/unistr/u-strcpy.h: Likewise.
61625         * lib/unistr/u-strcspn.h: Likewise.
61626         * lib/unistr/u-strdup.h: Likewise.
61627         * lib/unistr/u-strlen.h: Likewise.
61628         * lib/unistr/u-strncat.h: Likewise.
61629         * lib/unistr/u-strncpy.h: Likewise.
61630         * lib/unistr/u-strnlen.h: Likewise.
61631         * lib/unistr/u-strpbrk.h: Likewise.
61632         * lib/unistr/u-strspn.h: Likewise.
61633         * lib/unistr/u-strstr.h: Likewise.
61634         * lib/unistr/u-strtok.h: Likewise.
61635         * lib/unistr/u16-check.c: Likewise.
61636         * lib/unistr/u16-chr.c: Likewise.
61637         * lib/unistr/u16-cmp.c: Likewise.
61638         * lib/unistr/u16-cpy-alloc.c: Likewise.
61639         * lib/unistr/u16-cpy.c: Likewise.
61640         * lib/unistr/u16-endswith.c: Likewise.
61641         * lib/unistr/u16-mblen.c: Likewise.
61642         * lib/unistr/u16-mbsnlen.c: Likewise.
61643         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61644         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61645         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61646         * lib/unistr/u16-mbtouc.c: Likewise.
61647         * lib/unistr/u16-mbtoucr.c: Likewise.
61648         * lib/unistr/u16-move.c: Likewise.
61649         * lib/unistr/u16-next.c: Likewise.
61650         * lib/unistr/u16-prev.c: Likewise.
61651         * lib/unistr/u16-set.c: Likewise.
61652         * lib/unistr/u16-startswith.c: Likewise.
61653         * lib/unistr/u16-stpcpy.c: Likewise.
61654         * lib/unistr/u16-stpncpy.c: Likewise.
61655         * lib/unistr/u16-strcat.c: Likewise.
61656         * lib/unistr/u16-strchr.c: Likewise.
61657         * lib/unistr/u16-strcmp.c: Likewise.
61658         * lib/unistr/u16-strcpy.c: Likewise.
61659         * lib/unistr/u16-strcspn.c: Likewise.
61660         * lib/unistr/u16-strdup.c: Likewise.
61661         * lib/unistr/u16-strlen.c: Likewise.
61662         * lib/unistr/u16-strmblen.c: Likewise.
61663         * lib/unistr/u16-strmbtouc.c: Likewise.
61664         * lib/unistr/u16-strncat.c: Likewise.
61665         * lib/unistr/u16-strncmp.c: Likewise.
61666         * lib/unistr/u16-strncpy.c: Likewise.
61667         * lib/unistr/u16-strnlen.c: Likewise.
61668         * lib/unistr/u16-strpbrk.c: Likewise.
61669         * lib/unistr/u16-strrchr.c: Likewise.
61670         * lib/unistr/u16-strspn.c: Likewise.
61671         * lib/unistr/u16-strstr.c: Likewise.
61672         * lib/unistr/u16-strtok.c: Likewise.
61673         * lib/unistr/u16-to-u32.c: Likewise.
61674         * lib/unistr/u16-to-u8.c: Likewise.
61675         * lib/unistr/u16-uctomb-aux.c: Likewise.
61676         * lib/unistr/u16-uctomb.c: Likewise.
61677         * lib/unistr/u32-check.c: Likewise.
61678         * lib/unistr/u32-chr.c: Likewise.
61679         * lib/unistr/u32-cmp.c: Likewise.
61680         * lib/unistr/u32-cpy-alloc.c: Likewise.
61681         * lib/unistr/u32-cpy.c: Likewise.
61682         * lib/unistr/u32-endswith.c: Likewise.
61683         * lib/unistr/u32-mblen.c: Likewise.
61684         * lib/unistr/u32-mbsnlen.c: Likewise.
61685         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61686         * lib/unistr/u32-mbtouc.c: Likewise.
61687         * lib/unistr/u32-mbtoucr.c: Likewise.
61688         * lib/unistr/u32-move.c: Likewise.
61689         * lib/unistr/u32-next.c: Likewise.
61690         * lib/unistr/u32-prev.c: Likewise.
61691         * lib/unistr/u32-set.c: Likewise.
61692         * lib/unistr/u32-startswith.c: Likewise.
61693         * lib/unistr/u32-stpcpy.c: Likewise.
61694         * lib/unistr/u32-stpncpy.c: Likewise.
61695         * lib/unistr/u32-strcat.c: Likewise.
61696         * lib/unistr/u32-strchr.c: Likewise.
61697         * lib/unistr/u32-strcmp.c: Likewise.
61698         * lib/unistr/u32-strcpy.c: Likewise.
61699         * lib/unistr/u32-strcspn.c: Likewise.
61700         * lib/unistr/u32-strdup.c: Likewise.
61701         * lib/unistr/u32-strlen.c: Likewise.
61702         * lib/unistr/u32-strmblen.c: Likewise.
61703         * lib/unistr/u32-strmbtouc.c: Likewise.
61704         * lib/unistr/u32-strncat.c: Likewise.
61705         * lib/unistr/u32-strncmp.c: Likewise.
61706         * lib/unistr/u32-strncpy.c: Likewise.
61707         * lib/unistr/u32-strnlen.c: Likewise.
61708         * lib/unistr/u32-strpbrk.c: Likewise.
61709         * lib/unistr/u32-strrchr.c: Likewise.
61710         * lib/unistr/u32-strspn.c: Likewise.
61711         * lib/unistr/u32-strstr.c: Likewise.
61712         * lib/unistr/u32-strtok.c: Likewise.
61713         * lib/unistr/u32-to-u16.c: Likewise.
61714         * lib/unistr/u32-to-u8.c: Likewise.
61715         * lib/unistr/u32-uctomb.c: Likewise.
61716         * lib/unistr/u8-check.c: Likewise.
61717         * lib/unistr/u8-chr.c: Likewise.
61718         * lib/unistr/u8-cmp.c: Likewise.
61719         * lib/unistr/u8-cpy-alloc.c: Likewise.
61720         * lib/unistr/u8-cpy.c: Likewise.
61721         * lib/unistr/u8-endswith.c: Likewise.
61722         * lib/unistr/u8-mblen.c: Likewise.
61723         * lib/unistr/u8-mbsnlen.c: Likewise.
61724         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61725         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61726         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61727         * lib/unistr/u8-mbtouc.c: Likewise.
61728         * lib/unistr/u8-mbtoucr.c: Likewise.
61729         * lib/unistr/u8-move.c: Likewise.
61730         * lib/unistr/u8-next.c: Likewise.
61731         * lib/unistr/u8-prev.c: Likewise.
61732         * lib/unistr/u8-set.c: Likewise.
61733         * lib/unistr/u8-startswith.c: Likewise.
61734         * lib/unistr/u8-stpcpy.c: Likewise.
61735         * lib/unistr/u8-stpncpy.c: Likewise.
61736         * lib/unistr/u8-strcat.c: Likewise.
61737         * lib/unistr/u8-strchr.c: Likewise.
61738         * lib/unistr/u8-strcmp.c: Likewise.
61739         * lib/unistr/u8-strcpy.c: Likewise.
61740         * lib/unistr/u8-strcspn.c: Likewise.
61741         * lib/unistr/u8-strdup.c: Likewise.
61742         * lib/unistr/u8-strlen.c: Likewise.
61743         * lib/unistr/u8-strmblen.c: Likewise.
61744         * lib/unistr/u8-strmbtouc.c: Likewise.
61745         * lib/unistr/u8-strncat.c: Likewise.
61746         * lib/unistr/u8-strncmp.c: Likewise.
61747         * lib/unistr/u8-strncpy.c: Likewise.
61748         * lib/unistr/u8-strnlen.c: Likewise.
61749         * lib/unistr/u8-strpbrk.c: Likewise.
61750         * lib/unistr/u8-strrchr.c: Likewise.
61751         * lib/unistr/u8-strspn.c: Likewise.
61752         * lib/unistr/u8-strstr.c: Likewise.
61753         * lib/unistr/u8-strtok.c: Likewise.
61754         * lib/unistr/u8-to-u16.c: Likewise.
61755         * lib/unistr/u8-to-u32.c: Likewise.
61756         * lib/unistr/u8-uctomb-aux.c: Likewise.
61757         * lib/unistr/u8-uctomb.c: Likewise.
61758         * lib/unitypes.h: Likewise.
61759         * lib/uniwidth.h: Likewise.
61760         * lib/uniwidth/cjk.h: Likewise.
61761         * lib/uniwidth/u16-strwidth.c: Likewise.
61762         * lib/uniwidth/u16-width.c: Likewise.
61763         * lib/uniwidth/u32-strwidth.c: Likewise.
61764         * lib/uniwidth/u32-width.c: Likewise.
61765         * lib/uniwidth/u8-strwidth.c: Likewise.
61766         * lib/uniwidth/u8-width.c: Likewise.
61767         * lib/uniwidth/width.c: Likewise.
61768
61769 2007-10-07  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61772         The file is still under LGPL (see modules/inttypes).
61773
61774 2007-10-06  Bruno Haible  <bruno@clisp.org>
61775
61776         * modules/trunc (Dependencies): Add 'extensions'.
61777         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61778         Reported by Ben Pfaff <blp@gnu.org>.
61779
61780 2007-10-06  Bruno Haible  <bruno@clisp.org>
61781
61782         * modules/freopen-tests: New file.
61783         * tests/test-freopen.c: New file.
61784
61785         * modules/fopen-tests: New file.
61786         * tests/test-fopen.c: New file.
61787
61788         * modules/fopen: New file.
61789         * lib/fopen.c: New file.
61790         * m4/fopen.m4: New file.
61791         * modules/freopen: New file.
61792         * lib/freopen.c: New file.
61793         * m4/freopen.m4: New file.
61794         * lib/stdio.in.h (fopen, freopen): New declarations.
61795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61796         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61797         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61798         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61799         * doc/functions/fopen.texi: Mention the 'fopen' module.
61800         * doc/functions/freopen.texi: Mention the 'freopen' module.
61801
61802 2007-10-06  Bruno Haible  <bruno@clisp.org>
61803
61804         * modules/open-tests: New file.
61805         * tests/test-open.c: New file.
61806
61807         * modules/open: New file.
61808         * lib/open.c: New file.
61809         * m4/open.m4: New file.
61810         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61811         lib/open.c does.
61812         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61814         macros.
61815         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61816         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61817         REPLACE_OPEN.
61818         * doc/functions/open.texi: Mention the 'open' module.
61819
61820 2007-10-04  Bruno Haible  <bruno@clisp.org>
61821
61822         * modules/ceill-tests: New file.
61823         * tests/test-ceill.c: New file.
61824
61825         * modules/ceill: New file.
61826         * lib/ceill.c: Replace entire file.
61827         * m4/ceill.m4: New file.
61828         * lib/math.in.h (ceill): Replace declaration.
61829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61830         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61831         * doc/functions/ceill.texi: Mention the 'ceill' module.
61832         * modules/mathl (Files): Remove lib/ceill.c.
61833         (Depends-on): Add ceill.
61834
61835 2007-10-04  Bruno Haible  <bruno@clisp.org>
61836
61837         * modules/ceilf-tests: New file.
61838         * tests/test-ceilf.c: New file.
61839
61840         * modules/ceilf: New file.
61841         * lib/ceil.c: New file.
61842         * lib/ceilf.c: New file.
61843         * m4/ceilf.m4: New file.
61844         * lib/math.in.h (ceilf): New declaration.
61845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61846         HAVE_DECL_CEILF.
61847         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61848         HAVE_DECL_CEILF.
61849         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61850
61851 2007-10-04  Bruno Haible  <bruno@clisp.org>
61852
61853         * modules/floorl-tests: New file.
61854         * tests/test-floorl.c: New file.
61855
61856         * modules/floorl: New file.
61857         * lib/floorl.c: Replace entire file.
61858         * m4/floorl.m4: New file.
61859         * lib/math.in.h (floorl): Replace declaration.
61860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61861         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61862         * doc/functions/floorl.texi: Mention the 'floorl' module.
61863         * modules/mathl (Files): Remove lib/floorl.c.
61864         (Depends-on): Add floorl.
61865
61866 2007-10-04  Bruno Haible  <bruno@clisp.org>
61867
61868         * modules/floorf-tests: New file.
61869         * tests/test-floorf.c: New file.
61870
61871         * modules/floorf: New file.
61872         * lib/floor.c: New file.
61873         * lib/floorf.c: New file.
61874         * m4/floorf.m4: New file.
61875         * lib/math.in.h (floorf): New declaration.
61876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61877         HAVE_DECL_FLOORF.
61878         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61879         HAVE_DECL_FLOORF.
61880         * doc/functions/floorf.texi: Mention the 'floorf' module.
61881
61882 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61883             Bruno Haible  <bruno@clisp.org>
61884
61885         Advertise for the Git server instead of the CVS server.
61886         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61887         repository instead of the CVS one.
61888         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61889         about all VCS systems generically.
61890         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61891
61892 2007-10-04  Bruno Haible  <bruno@clisp.org>
61893
61894         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61895         means.
61896         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61897
61898 2007-10-04  Bruno Haible  <bruno@clisp.org>
61899
61900         * modules/truncl-tests: New file.
61901         * tests/test-truncl.c: New file.
61902
61903         * modules/truncl: New file.
61904         * lib/truncl.c: New file.
61905         * m4/truncl.m4: New file.
61906         * lib/math.in.h (truncl): New declaration.
61907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61908         HAVE_DECL_TRUNCL.
61909         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61910         HAVE_DECL_TRUNCL.
61911         * doc/functions/truncl.texi: Mention the 'truncl' module.
61912
61913 2007-10-04  Bruno Haible  <bruno@clisp.org>
61914
61915         * modules/truncf-tests: New file.
61916         * tests/test-truncf.c: New file.
61917
61918         * modules/truncf: New file.
61919         * lib/trunc.c: Make paramerizable through USE_* macros.
61920         * lib/truncf.c: New file.
61921         * m4/truncf.m4: New file.
61922         * lib/math.in.h (truncf): New declaration.
61923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61924         HAVE_DECL_TRUNCF.
61925         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61926         HAVE_DECL_TRUNCF.
61927         * doc/functions/truncf.texi: Mention the 'truncf' module.
61928
61929 2007-10-03  Bruno Haible  <bruno@clisp.org>
61930
61931         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61932         augmentation also for tests modules.
61933         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61934         * modules/atexit-tests (Makefile.am): Likewise.
61935         * modules/binary-io-tests (Makefile.am): Likewise.
61936         * modules/c-strcase-tests (Makefile.am): Likewise.
61937         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61938         * modules/canonicalize-tests (Makefile.am): Likewise.
61939         * modules/closein-tests (Makefile.am): Likewise.
61940         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61941         * modules/freadahead-tests (Makefile.am): Likewise.
61942         * modules/fseek-tests (Makefile.am): Likewise.
61943         * modules/fseeko-tests (Makefile.am): Likewise.
61944         * modules/ftell-tests (Makefile.am): Likewise.
61945         * modules/ftello-tests (Makefile.am): Likewise.
61946         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61947         * modules/isnanl-tests (Makefile.am): Likewise.
61948         * modules/lseek-tests (Makefile.am): Likewise.
61949         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61950         * modules/mbscasestr-tests (Makefile.am): Likewise.
61951         * modules/mbschr-tests (Makefile.am): Likewise.
61952         * modules/mbscspn-tests (Makefile.am): Likewise.
61953         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61954         * modules/mbspbrk-tests (Makefile.am): Likewise.
61955         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61956         * modules/mbsrchr-tests (Makefile.am): Likewise.
61957         * modules/mbsspn-tests (Makefile.am): Likewise.
61958         * modules/mbsstr-tests (Makefile.am): Likewise.
61959         * modules/printf-posix-tests (Makefile.am): Likewise.
61960         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61961         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61962         * modules/tsearch-tests (Makefile.am): Likewise.
61963         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61964         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61965         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61966         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61967         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61968         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61969         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61970         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61971         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61972         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61973         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61974         * modules/xstrtol-tests (Makefile.am): Likewise.
61975         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61976         * modules/yesno-tests (Makefile.am): Likewise.
61977
61978 2007-10-03  Bruno Haible  <bruno@clisp.org>
61979
61980         * modules/trunc-tests: New file.
61981         * tests/test-trunc.c: New file.
61982
61983         * modules/trunc: New file.
61984         * lib/trunc.c: New file.
61985         * m4/trunc.m4: New file.
61986         * lib/math.in.h (trunc): New declaration.
61987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61988         HAVE_DECL_TRUNC.
61989         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61990         HAVE_DECL_TRUNC.
61991         * doc/functions/trunc.texi: Mention the 'trunc' module.
61992
61993 2007-10-03  Bruno Haible  <bruno@clisp.org>
61994
61995         * tests/test-fpending.c: New file, mostly copied
61996         from coreutils/lib/t-fpending.c.
61997         * modules/fpending-tests: New file.
61998
61999 2007-10-03  Bruno Haible  <bruno@clisp.org>
62000
62001         Port the stdio extensions to QNX (untested).
62002         * lib/fseterr.c (fseterr): Add support for QNX.
62003         * lib/fbufmode.c (fbufmode): Likewise.
62004         * lib/freadable.c (freadable): Likewise.
62005         * lib/fwritable.c (fwritable): Likewise.
62006         * lib/freading.c (freading): Likewise.
62007         * lib/fwriting.c (fwriting): Likewise.
62008         * lib/freadahead.c (freadahed): Likewise.
62009         * lib/fpurge.c (fpurge): Likewise.
62010         * lib/fseeko.c (rpl_fseeko): Likewise.
62011
62012 2007-10-03  Bruno Haible  <bruno@clisp.org>
62013             Jim Meyering  <jim@meyering.net>
62014             Eric Blake  <ebb9@byu.net>
62015
62016         * doc/relocatable.texi: Use @command instead of @program.
62017
62018 2007-10-02  Jim Meyering  <jim@meyering.net>
62019
62020         Perform one more "_.h" -> ".in.h" substitution.
62021         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62022         instead of unistd_.h here, too.
62023
62024 2007-10-01  Bruno Haible  <bruno@clisp.org>
62025
62026         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62027         Needed for the alloca-opt module.
62028
62029 2007-09-30  Bruno Haible  <bruno@clisp.org>
62030
62031         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62032         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62033         alloca_.h.
62034         * lib/argz.in.h: Renamed from lib/argz_.h.
62035         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62036         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62037         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62038         byteswap_.h.
62039         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62040         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62041         dirent_.h.
62042         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62043         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62044         fcntl_.h.
62045         * lib/float.in.h: Renamed from lib/float_.h.
62046         * modules/float (Files, Makefile.am): Use float.in.h instead of
62047         float_.h.
62048         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62049         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62050         fnmatch_.h.
62051         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62052         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62053         getopt_.h.
62054         * lib/glob.in.h: Renamed from lib/glob_.h.
62055         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62056         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62057         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62058         iconv_.h.
62059         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62060         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62061         inttypes_.h.
62062         * lib/locale.in.h: Renamed from lib/locale_.h.
62063         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62064         locale_.h.
62065         * lib/math.in.h: Renamed from lib/math_.h.
62066         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62067         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62068         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62069         of netinet_in_.h. Add dependency.
62070         * lib/poll.in.h: Renamed from lib/poll_.h.
62071         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62072         * lib/search.in.h: Renamed from lib/search_.h.
62073         * modules/search (Files, Makefile.am): Use search.in.h instead of
62074         search_.h.
62075         * lib/signal.in.h: Renamed from lib/signal_.h.
62076         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62077         _signal.h.
62078         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62079         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62080         stdbool_.h.
62081         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62082         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62083         stdint_.h.
62084         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62085         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62086         stdio_.h.
62087         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62088         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62089         stdlib_.h.
62090         * lib/string.in.h: Renamed from lib/string_.h.
62091         * modules/string (Files, Makefile.am): Use string.in.h instead of
62092         string_.h.
62093         * doc/gnulib-tool.texi (Initial import): Update.
62094         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62095         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62096         of sys_select_.h. Add dependency.
62097         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62098         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62099         of sys_socket_.h.
62100         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62101         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62102         sys_stat_.h.
62103         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62104         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62105         sys_time_.h.
62106         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62107         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62108         sysexits_.h.
62109         * lib/time.in.h: Renamed from lib/time_.h.
62110         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62111         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62112         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62113         unistd_.h.
62114         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62115         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62116         wchar_.h.
62117         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62118         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62119         wctype_.h.
62120         * build-aux/bootstrap (slurp): Update.
62121         * lib/.cppi-disable: Update.
62122
62123 2007-09-30  Bruno Haible  <bruno@clisp.org>
62124
62125         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62126         Needed on BeOS.
62127
62128 2007-09-30  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62131
62132 2007-09-29  Bruno Haible  <bruno@clisp.org>
62133
62134         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62135
62136 2007-09-29  Bruno Haible  <bruno@clisp.org>
62137
62138         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62139         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62140         * build-aux/install-reloc: Compile also areadlink.c.
62141         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62142
62143 2007-09-29  Bruno Haible  <bruno@clisp.org>
62144
62145         * gnulib-tool (func_emit_initmacro_done): Indentation.
62146
62147 2007-09-29  Bruno Haible  <bruno@clisp.org>
62148
62149         * README: Add CVS checkout update instructions.
62150         Info from Bob Proulx <bob@proulx.com>.
62151
62152 2007-09-28  Eric Blake  <ebb9@byu.net>
62153
62154         Provide move-if-change.
62155         * build-aux/move-if-change: New file, based on best practice
62156         rather than any canonical upstream location.
62157
62158 2007-09-28  Jim Meyering  <jim@meyering.net>
62159
62160         Fix canonicalize loop-detection corner case.
62161         Do not attempt to stat the symlink values stored via seen_triple.
62162         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62163         on linux-2.6.18, (but not 2.6.22).
62164         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62165         triple_compare.  The former compares dev,ino,filename, while the latter
62166         would actually stat dirname(filename) when dev and ino were equal.
62167         * lib/hash-triple.c: Install <string.h>.
62168         (STREQ): Define.
62169         (triple_compare_ino_str): New function.
62170         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62171
62172 2007-09-28  Eric Blake  <ebb9@byu.net>
62173
62174         Enforce that AC_REPLACE_FUNCS files exist.
62175         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62176         override check for typos.
62177
62178         Fix test-closein on Solaris 10.
62179         * tests/test-closein.c (main): Don't assume stdin can be inherited
62180         closed on all systems.
62181         * tests/test-closein.sh: Likewise.
62182         Reported by Piotr Tarnowski.
62183
62184 2007-09-28  Jim Meyering  <jim@meyering.net>
62185
62186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62187
62188 2007-09-27  Jim Meyering  <jim@meyering.net>
62189
62190         canonicalize: Avoid a false-positive cycle failure.
62191         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62192         Sort.  Remove cycle-check.
62193         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62194         not cycle-check.h.
62195         (seen_triple): New function.
62196         (canonicalize_filename_mode): Use it instead of cycle-check.
62197         * tests/test-canonicalize.c: Add a test for this bug.
62198         * tests/test-canonicalize.sh: Set up and run the test.
62199
62200         New module, file-set, from coreutils.
62201         * modules/file-set: Define it.
62202         * lib/file-set.c, lib/file-set.h: Implement.
62203
62204         New module, hash-triple, from coreutils.
62205         * modules/hash-triple: Define it.
62206         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62207
62208 2007-09-25  Eric Blake  <ebb9@byu.net>
62209
62210         Fix strerror on Interix.
62211         * lib/string_.h (strerror): Declare replacement.
62212         * doc/functions/strerror.texi (strerror): Document the Interix
62213         shortcoming.
62214         * modules/string (Makefile.am): Support new hooks.
62215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62216         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62217         gl_FUNC_STRERROR_SEPARATE.
62218         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62219         * lib/strerror.c (rpl_strerror): Provide replacement.
62220         * modules/strerror (Depends-on): Add string.
62221         (configure.ac): Detect use of module.
62222         * tests/test-strerror.c: New file.
62223         * modules/strerror-tests: New test module.
62224         * modules/argp (Depends-on): Add strerror.
62225         * modules/error (Depends-on): Likewise.
62226         Reported by Martin Koeppe.
62227
62228 2007-09-24  Bruno Haible  <bruno@clisp.org>
62229
62230         * README: Update git instructions.
62231
62232 2007-09-24  Eric Blake  <ebb9@byu.net>
62233
62234         Revert fpending breakage from 2007-09-08.
62235         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62236         __fpending.c.
62237
62238 2007-09-24  Jim Meyering  <jim@meyering.net>
62239
62240         filenamecat.c: Add a test.
62241         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62242         showing how the function works when DIR is the empty string.
62243
62244 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62245
62246         * tests/test-canonicalize.sh: Turn on executable bit.
62247
62248 2007-09-19  Eric Blake  <ebb9@byu.net>
62249
62250         * README: Update CVS instructions.
62251
62252 2007-09-18  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/areadlink: New file.
62255         * lib/areadlink.h (areadlink): New declaration.
62256         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62257
62258 2007-09-17  Jim Meyering  <jim@meyering.net>
62259
62260         * lib/savewd.c (ESTALE) [!defined]: Define.
62261         Reported to be required on Interix by Martin Koeppe.
62262
62263 2007-09-17  Bruno Haible  <bruno@clisp.org>
62264
62265         * gnulib-tool (func_version): Use $version.
62266
62267 2007-09-16  Bruno Haible  <bruno@clisp.org>
62268
62269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62270         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62271         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62272         Reported by Greg Schafer <gschafer@zip.com.au>.
62273
62274 2007-09-15  Bruno Haible  <bruno@clisp.org>
62275
62276         * gnulib-tool (sed): Try a little harder to make bash understand the
62277         alias.
62278         Reported by Bruce Korb <bruce.korb@gmail.com>.
62279
62280 2007-09-13  Eric Blake  <ebb9@byu.net>
62281
62282         * ChangeLog: Remove conflict markers.
62283
62284 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62285
62286         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62287         Reported by Bruno Haible <bruno@clisp.org>.
62288
62289 2007-09-12  Bruno Haible  <bruno@clisp.org>
62290
62291         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62292         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62293         is not defined.
62294
62295 2007-09-12  Eric Blake  <ebb9@byu.net>
62296
62297         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62299         Autoconf definition.
62300         * modules/euidaccess (Depends-on): Add extensions, for
62301         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62302         * modules/fnmatch (Depends-on): Likewise.
62303         * modules/getaddrinfo (Depends-on): Likewise.
62304         * modules/getdelim (Depends-on): Likewise.
62305         * modules/getline (Depends-on): Likewise.
62306         * modules/getsubopt (Depends-on): Likewise.
62307         * modules/gettext (Depends-on): Likewise.
62308         * modules/group-member (Depends-on): Likewise.
62309         * modules/mbchar (Depends-on): Likewise.
62310         * modules/memmem (Depends-on): Likewise.
62311         * modules/mempcpy (Depends-on): Likewise.
62312         * modules/memrchr (Depends-on): Likewise.
62313         * modules/pagealign_alloc (Depends-on): Likewise.
62314         * modules/readutmp (Depends-on): Likewise.
62315         * modules/stpcpy (Depends-on): Likewise.
62316         * modules/stpncpy (Depends-on): Likewise.
62317         * modules/strchrnul (Depends-on): Likewise.
62318         * modules/strndup (Depends-on): Likewise.
62319         * modules/strsep (Depends-on): Likewise.
62320         * modules/strverscmp (Depends-on): Likewise.
62321         * modules/vasprintf (Depends-on): Likewise.
62322         * modules/wcwidth (Depends-on): Likewise.
62323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62324         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62325         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62327         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62328         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62329         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62330         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62331         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62332         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62337         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62338         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62339         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62340         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62342         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62343         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62345         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62346         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62347         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62349         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62350         so that lock.m4 can be used in gettext without extensions module.
62351
62352 2007-09-11  Bruno Haible  <bruno@clisp.org>
62353
62354         * m4/isc-posix.m4: Remove file.
62355         Suggested by Eric Blake.
62356
62357 2007-09-11  Eric Blake  <ebb9@byu.net>
62358
62359         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62360
62361 2007-09-10  Bruno Haible  <bruno@clisp.org>
62362
62363         * posix-modules: Fix typo in error message.
62364         Reported by Matt <mkraai@beckman.com>.
62365
62366 2007-09-09  Bruno Haible  <bruno@clisp.org>
62367
62368         * doc/functions/getdelim.texi: Update list of platforms lacking the
62369         function.
62370         * doc/functions/getline.texi: Likewise.
62371
62372 2007-09-09  Jim Meyering  <jim@meyering.net>
62373
62374         * lib/hash.c (hash_initialize): Detect calloc failure.
62375         Reported by Bruno Haible.
62376
62377 2007-09-09  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62380         malloc or realloc fails.
62381
62382 2007-09-09  Bruno Haible  <bruno@clisp.org>
62383
62384         * modules/getcwd (Depends-on): Add malloc-posix.
62385         * modules/glob (Depends-on): Likewise.
62386         * modules/putenv (Depends-on): Likewise.
62387         * modules/strdup (Depends-on): Likewise.
62388         * modules/getdelim (Depends-on): Add realloc-posix.
62389         * modules/read-file (Depends-on): Likewise.
62390
62391 2007-09-09  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62394         (gl_FUNC_MALLOC_POSIX): Require it.
62395         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62396         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62397         * modules/realloc (Files): Add m4/malloc.m4.
62398         * modules/calloc (Files): Likewise.
62399
62400 2007-09-09  Bruno Haible  <bruno@clisp.org>
62401
62402         * modules/malloc-posix: New file.
62403         * modules/malloc (Depends-on): Add malloc-posix.
62404         * lib/malloc.c: Include errno.h.
62405         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62406         and a POSIX-compatible malloc into a single function. Set ENOMEM
62407         when returning NULL.
62408         * m4/malloc.m4: New file.
62409         * doc/functions/malloc.texi: Mention the malloc-posix module.
62410         * lib/stdlib_.h (malloc): New declaration.
62411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62412         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62413         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62414         and HAVE_MALLOC_POSIX.
62415
62416 2007-09-09  Bruno Haible  <bruno@clisp.org>
62417
62418         * modules/realloc-posix: New file.
62419         * modules/realloc (Depends-on): Add realloc-posix.
62420         * lib/realloc.c: Include errno.h.
62421         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62422         and a POSIX-compatible realloc into a single function. Set ENOMEM
62423         when returning NULL.
62424         * m4/realloc.m4: New file.
62425         * doc/functions/realloc.texi: Mention the realloc-posix module.
62426         * lib/stdlib_.h (realloc): New declaration.
62427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62428         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62429         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62430         and HAVE_REALLOC_POSIX.
62431
62432 2007-09-09  Bruno Haible  <bruno@clisp.org>
62433
62434         * modules/calloc-posix: New file.
62435         * modules/calloc (Depends-on): Add calloc-posix.
62436         * lib/calloc.c: Include errno.h.
62437         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62438         and a POSIX-compatible calloc into a single function. Set ENOMEM
62439         when returning NULL.
62440         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62441         * doc/functions/calloc.texi: Mention the calloc-posix module.
62442         * lib/stdlib_.h (calloc): New declaration.
62443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62444         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62445         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62446         and HAVE_CALLOC_POSIX.
62447
62448 2007-09-09  Bruno Haible  <bruno@clisp.org>
62449
62450         Allow for modules to show an arbitrary notice.
62451         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62452         * gnulib-tool: New option --extract-notice.
62453         (func_usage): Document it.
62454         (sed_extract_prog): Update.
62455         (func_get_notice): New function.
62456         (func_modules_notice): New function.
62457         (func_import, func_create_testdir): Invoke it.
62458         Suggested by Jim Meyering.
62459
62460 2007-09-09  Bruno Haible  <bruno@clisp.org>
62461
62462         * gnulib-tool: New options --verbose, --quiet.
62463         (func_usage): Document them.
62464         (verbose): New variable.
62465         (func_execute_command): New function.
62466         (func_import): Don't show the module list and the file list if
62467         $verbose < 0.
62468         (func_create_testdir): Likewise. Use func_execute_command.
62469         (func_create_megatestdir): Use func_execute_command.
62470
62471 2007-09-08  Bruno Haible  <bruno@clisp.org>
62472
62473         * gnulib-tool (func_import): Prefer rsync over wget when available,
62474         for fetching the PO files.
62475
62476 2007-09-08  Bruno Haible  <bruno@clisp.org>
62477
62478         * posix-modules: New file. Portions copied from gnulib-tool.
62479         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62480
62481 2007-09-08  Jim Meyering  <jim@meyering.net>
62482
62483         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62484         * lib/fpending.h: Rename from __fpending.h.
62485         * lib/fpending.c: Rename from __fpending.c.
62486         Include "fpending.h", not "__fpending.h".
62487         * lib/__fpending.h, lib/__fpending.c: Remove files.
62488         * modules/fpending (Files): Reflect new file names.
62489         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62490
62491 2007-09-08  Bruno Haible  <bruno@clisp.org>
62492
62493         * m4/inttypes-h.m4: Remove stub file.
62494
62495 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62496
62497         * doc/headers/stdint.texi: Discuss #include_next issue.
62498
62499 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62500
62501         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62502
62503 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62504
62505         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62506         in variable name.
62507
62508 2007-09-03  Jim Meyering  <jim@meyering.net>
62509
62510         New module: git-version-gen.
62511         * modules/git-version-gen: New file.
62512
62513         Import changes from coreutils for bootstrap script.
62514
62515         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62516
62517         bootstrap: uses rsync to download the .po files
62518         * build-aux/bootstrap (po_download_command_format): New global.
62519         (download_po_files): Use rsync.
62520         (update_po_files): Don't remove .po files after download,
62521         so future rsync runs can take advantage of the copies.
62522
62523         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62524
62525         Solve the unnecessary-.po-file-regeneration problem once and for all.
62526         * build-aux/bootstrap (download_po_files): New function, renamed from
62527         get_translations.  Now, downloads, but doesn't update LINGUAS.
62528         (update_po_files): New function.
62529
62530         bootstrap: Ignore more.
62531         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62532         uniwidth to e.g., lib/.gitignore.
62533         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62534
62535         * build-aux/bootstrap: New setting: vc_ignore.
62536         (insert_sorted_if_absent): Create $file if absent.
62537         Adapt to new, possibly empty, list: $vc_ignore.
62538
62539         bootstrap: generate more ignorable names
62540         * build-aux/bootstrap (slurp): When generating ignorable names,
62541         also map .sin to .sed, .gperf to .c, and .y to .c.
62542
62543 2007-09-03  Jim Meyering  <jim@meyering.net>
62544
62545         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62546         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62547
62548 2007-09-02  Bruno Haible  <bruno@clisp.org>
62549
62550         Fix mis-recognition of 'mcs' on QNX 6.
62551         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62552         output contains the string "Mono".
62553         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62554         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62555
62556 2007-09-01  Bruno Haible  <bruno@clisp.org>
62557
62558         Fix collision between uniwidth/* and linebreak modules.
62559         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62560         u32_width): Remove declarations.
62561         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62562         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62563         streq3, streq2, streq1, streq0): Remove functions.
62564         (STREQ): Remove macro.
62565         (is_cjk_encoding): Remove function.
62566         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62567         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62568         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62569         * NEWS: Document the change.
62570
62571 2007-09-01  Bruno Haible  <bruno@clisp.org>
62572
62573         * lib/streq.h: Add double-inclusion guard.
62574
62575 2007-09-01  Karl Berry  <karl@gnu.org>
62576
62577         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62578
62579 2007-08-28  Jim Meyering  <jim@meyering.net>
62580
62581         Rename mreadlink_with_size to areadlink_with_size.
62582         * NEWS: Document the change.
62583         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62584         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62585         * lib/mreadlink.h: Rename this to...
62586         * lib/areadlink.h: ...this.
62587         * modules/mreadlink-with-size: Rename this to...
62588         * modules/areadlink-with-size: ...this.
62589         * lib/canonicalize.c: Reflect the renaming.
62590         * modules/canonicalize: Likewise.
62591
62592 2007-08-26  Bruno Haible  <bruno@clisp.org>
62593
62594         * gnulib-tool (func_import): When deciding which files to remove,
62595         consider also dangling symbolic links.
62596         Reported by Eric Blake.
62597
62598 2007-08-26  Bruno Haible  <bruno@clisp.org>
62599
62600         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62601
62602 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62603
62604         * lib/readline.c: Don't include getline.h, the prototype is now
62605         found in stdio.h.
62606
62607 2007-08-23  Jim Meyering  <jim@meyering.net>
62608
62609         Getdelim touchup.
62610         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62611         around the funlockfile call, since funlockfile never sets errno.
62612         Don't set errno upon failed realloc.
62613
62614 2007-08-22  Eric Blake  <ebb9@byu.net>
62615
62616         Getline touchups.
62617         * lib/getdelim.c (getdelim): Revert regression that required *n to
62618         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62619         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62620         getdelim, rather than whether implementation is missing.
62621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62622         * lib/stdio_.h (getline): Also declare if replacement is
62623         required.
62624         * doc/functions/getdelim.texi: New file.
62625         * doc/functions/getline.texi: Likewise.
62626         * doc/gnulib.texi (Function Substitutes): Add new files.
62627         Reported by Bruno Haible.
62628
62629 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62630
62631         * users.txt: Add Guile.
62632
62633 2007-08-22  Eric Blake  <ebb9@byu.net>
62634
62635         * tests/test-getdelim.c (main): Use remove, not unlink.
62636         * tests/test-getline.c (main): Likewise.
62637
62638         Move getline and getdelim into stdio.h, per POSIX 200x.
62639         * modules/getline (Files): Remove getline.h.
62640         (Depends-on): Add stdio.
62641         (configure.ac): Add module indicator.
62642         * modules/getdelim (Files): Remove getdelim.h.
62643         (Depends-on): Add stdio.
62644         (configure.ac): Add module indicator.
62645         * modules/stdio (Makefile.am): Work with new indicators.
62646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62649         * lib/getdelim.h: Delete.
62650         * lib/getline.h: Delete.
62651         * lib/stdio_.h (getdelim, getline): Declare.
62652         * modules/getdelim-tests: New module.
62653         * modules/getline-tests: Likewise.
62654         * tests/test-getdelim.c: New file.
62655         * tests/test-getline.c: Likewise.
62656         * NEWS: Document the change.
62657         * lib/getline.c: Update choice of header.
62658         * lib/csharpcomp.c: Likewise.
62659         * lib/getpass.c: Likewise.
62660         * lib/javacomp.c: Likewise.
62661         * lib/javaversion.c: Likewise.
62662         * lib/yesno.c: Likewise.
62663         * lib/getdelim.c: Likewise.
62664         (getdelim): Set errno on failure, and avoid memory leak.
62665
62666 2007-08-19  Bruno Haible  <bruno@clisp.org>
62667
62668         * modules/closein (Depends-on): Add freadahead.
62669         * lib/closein.c: Include freadahead.h.
62670         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62671         is zero.
62672
62673 2007-08-19  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/freadahead-tests: New file.
62676         * tests/test-freadahead.sh: New file.
62677         * tests/test-freadahead.c: New file.
62678
62679         * modules/freadahead: New file.
62680         * lib/freadahead.h: New file.
62681         * lib/freadahead.c: New file.
62682         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62683         fbufmode, fpurge, freadable, fwritable.
62684
62685 2007-08-19  Eric Blake  <ebb9@byu.net>
62686
62687         Test yesno in combination with closein.
62688         * lib/yesno.c (yesno): Document use of stdin.
62689         * modules/yesno-tests (Files): New module.
62690         * tests/test-yesno.c (main): New file.
62691         * tests/test-yesno.sh: Likewise.
62692
62693 2007-08-19  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62696         * lib/fseeko.c (rpl_fseeko): Likewise.
62697         * lib/fseterr.c (fseterr): Likewise.
62698
62699 2007-08-19  Bruno Haible  <bruno@clisp.org>
62700
62701         * tests/test-lseek.c (main): Disable a test for BeOS.
62702         * doc/functions/lseek.texi: Document the BeOS bug.
62703
62704 2007-08-19  Bruno Haible  <bruno@clisp.org>
62705             Eric Blake  <ebb9@byu.net>
62706
62707         * lib/lseek.c: Include <sys/stat.h>.
62708         (rpl_lseek): Add workaround code also for Unix platforms.
62709         Needed for BeOS.
62710         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62711         * doc/functions/lseek.texi: Document BeOS definiency.
62712
62713 2007-08-18  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/fstrcmp-tests: New file.
62716         * tests/test-fstrcmp.c: New file.
62717
62718 2007-08-18  Bruno Haible  <bruno@clisp.org>
62719
62720         * modules/fstrcmp: New file, from GNU gettext with modifications.
62721         * lib/fstrcmp.h: New file, from GNU gettext.
62722         * lib/fstrcmp.c: New file, from GNU gettext.
62723         * MODULES.html.sh (String handling): Add fstrcmp.
62724
62725 2007-08-18  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62728         'bool'.
62729         (diag, compareseq): Remove const from the ctxt argument.
62730         (USE_HEURISTIC): Undefine at the end.
62731
62732 2007-08-18  Jim Meyering  <jim@meyering.net>
62733
62734         New file: lib/idcache.h
62735         * NEWS: Mention the addition.
62736         * modules/idcache (Files): Add lib/idcache.h
62737         * lib/idcache.c: Include "idcache.h".
62738         Don't include <sys/types.h>.
62739         Add a FIXME comment.
62740         Move file-scoped "static" declarations to the top.
62741         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62742
62743 2007-08-17  Bruno Haible  <bruno@clisp.org>
62744         and Paul Eggert  <eggert@cs.ucla.edu>
62745
62746         * MODULES.html.sh: Add diffseq.
62747         * modules/diffseq: New file.
62748         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62749         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62750
62751 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62752
62753         Import changes from coreutils for bootstrap script.
62754
62755         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62756
62757         * build-aux/bootstrap (slurp): Work even in environments where
62758         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62759         current code does not slurp files whose names start with ".", and
62760         this looks like it might be a troublesome area.
62761
62762         2007-07-11  Jim Meyering  <jim@meyering.net>
62763
62764         If there's a GPL vN copyright comment, require that N == 3.
62765
62766         2007-07-08  Jim Meyering  <jim@meyering.net>
62767
62768         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62769         * build-aux/bootstrap (mam_template): Move definition out of loop.
62770
62771         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62772
62773         * build-aux/bootstrap (symlink_to_dir): Rename function from
62774         symlink_to_gnulib.  Add a directory parameter.  Update all
62775         callers.
62776         (cp_mark_as_generated): Also check for -- and link to -- files in
62777         gl/.
62778
62779         2007-07-08  Jim Meyering  <jim@meyering.net>
62780
62781         Adapt to deeper hierarchy in gnulib.
62782         * build-aux/bootstrap (symlink_to_dir): If the destination
62783         directory doesn't exist, create it. This is required at least for
62784         "lib/uniwidth/cjk.h".
62785
62786         2007-05-15  Jim Meyering  <jim@meyering.net>
62787
62788         * build-aux/bootstrap: Now that generated Makefile.am files
62789         are no longer under version control, they must be created at
62790         bootstrap time.
62791
62792 2007-08-14  Ben Pfaff  <blp@gnu.org>
62793
62794         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62795
62796 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62797
62798         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62799         given the changes below.
62800         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62801         even on hosts that have padding bits beyond the supported 64.
62802
62803 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62806         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62807         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62808         depends on it.
62809         (xstrtol_error): Remove.
62810         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62811         but with a different signature.
62812         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62813         * lib/xstrtol-error.c: Include exitfail.h.
62814         (xstrtol_fatal): New function, with a different signature from the
62815         old xstrtol_error, so that the caller need not worry about passing
62816         in an exit status, or about storage management of the option argument.
62817         (xstrtol_error): Now a static function.  Redo signature to
62818         implement xstrtol_fatal.  Output the correct number of hyphens in
62819         front of the option so that the caller need not worry about
62820         storage management.
62821         (N_): New macro.
62822         (_): Remove; not used now.
62823         * modules/xstrtol: Depend on getopt.
62824         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62825         of old STRTOL_FATAL_ERROR macro.
62826         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62827         of test program.
62828         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62829         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62830
62831 2007-08-08  Eric Blake  <ebb9@byu.net>
62832
62833         * lib/xstrtol-error.c: Add missing include.
62834
62835         Move xstrtol messages into gnulib domain, when --pobase is used.
62836         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62837         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62838         * modules/xstrtol (Files): Distribute new file.
62839         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62840         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62841         * tests/test-xstrtol.c: ...into new file.
62842         * tests/test-xstrtoul.c: Also test xstrtoul.
62843         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62844         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62845         * tests/test-xstrtol.sh: Drive the tests.
62846         * tests/test-xstrtoimax.sh: Likewise.
62847         * tests/test-xstrtoumax.sh: Likewise.
62848         * modules/xstrtol-tests: New module.
62849         * modules/xstrtoimax-tests: Likewise.
62850         * modules/xstrtoumax-tests: Likewise.
62851
62852 2007-08-08  Jim Meyering  <jim@meyering.net>
62853
62854         New function: mfile_name_concat.
62855         * lib/filenamecat.c (mfile_name_concat): New function, just like
62856         file_name_concat, but return NULL upon failure rather than exiting
62857         with a diagnostic.
62858         * lib/filenamecat.h: Declare it.
62859
62860 2007-08-07  Bruno Haible  <bruno@clisp.org>
62861
62862         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62863         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62864         warning from gcc.
62865         Reported by Eric Blake.
62866
62867 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62868
62869         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62870         * modules/crypto/arcfour (License): Likewise.
62871         * modules/crypto/des-tests (License): Likewise.
62872         * modules/crypto/gc-arctwo-tests (License): Likewise.
62873         * modules/crypto/gc-des-tests (License): Likewise.
62874         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62875         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62876         * modules/crypto/gc-md2-tests (License): Likewise.
62877         * modules/crypto/gc-md4-tests (License): Likewise.
62878         * modules/crypto/gc-md5-tests (License): Likewise.
62879         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62880         * modules/crypto/gc-rijndael-tests (License): Likewise.
62881         * modules/crypto/gc-sha1-tests (License): Likewise.
62882         * modules/crypto/gc-tests (License): Likewise.
62883         * modules/crypto/hmac-md5 (License): Likewise.
62884         * modules/crypto/hmac-sha1 (License): Likewise.
62885         * modules/crypto/md2-tests (License): Likewise.
62886         * modules/crypto/md4-tests (License): Likewise.
62887         * modules/crypto/md5 (License): Likewise.
62888         * modules/crypto/rijndael (License): Likewise.
62889         * modules/crypto/sha1 (License): Likewise.
62890         * modules/memxor (License): Likewise.
62891
62892 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62893         and Bruno Haible  <bruno@clisp.org>
62894
62895         * NEWS: Describe interface changes to human, xstrtol.
62896         * lib/human.h: Include <xstrtol.h>.
62897         (human_options): Return enum strtol_error, not int.  Remove
62898         bool arg; take int * instead.
62899         * lib/human.c: Don't include "gettext.h".
62900         (_): Remove; no longer used.
62901         Don't include <xstrtol.h>, since human.h does it.
62902         (human_options): Adjust to abovementioned interface changes.
62903         Do not report error to stderr; that's now the caller's
62904         responsibility.
62905         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62906         interface change.
62907         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62908         Str, Argument_type_string.  All uses changed.  Put " argument"
62909         in diagnostics to make them clearer.  Change wording of suffix
62910         message for clarity.
62911         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62912         Argument_type_string.
62913         (STRTOL_FATAL_WARN): Remove; no longer used.
62914         * modules/human (Depends-on): Remove gettext-h.
62915
62916 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62917
62918         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62919
62920 2007-07-31  Bruno Haible  <bruno@clisp.org>
62921
62922         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62923         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62924         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62925
62926 2007-07-31  Bruno Haible  <bruno@clisp.org>
62927
62928         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62929         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62930
62931 2007-07-30  Bruno Haible  <bruno@clisp.org>
62932
62933         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62934         * modules/c-ctype (License): Likewise.
62935         * modules/c-strcase (License): Likewise.
62936         * modules/check-version (License): Likewise.
62937         * modules/iconv (License): Likewise.
62938         * modules/iconv_open (License): Likewise.
62939         * modules/read-file (License): Likewise.
62940         * modules/striconv (License): Likewise.
62941         * modules/strverscmp (License): Likewise.
62942         * modules/vasprintf (License): Likewise.
62943         * modules/crypto/des (License): Likewise.
62944         * modules/crypto/gc (License): Likewise.
62945         * modules/crypto/gc-arcfour (License): Likewise.
62946         * modules/crypto/gc-arctwo (License): Likewise.
62947         * modules/crypto/gc-des (License): Likewise.
62948         * modules/crypto/gc-hmac-md5 (License): Likewise.
62949         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62950         * modules/crypto/gc-md2 (License): Likewise.
62951         * modules/crypto/gc-md4 (License): Likewise.
62952         * modules/crypto/gc-md5 (License): Likewise.
62953         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62954         * modules/crypto/gc-random (License): Likewise.
62955         * modules/crypto/gc-rijndael (License): Likewise.
62956         * modules/crypto/gc-sha1 (License): Likewise.
62957         * modules/crypto/md2 (License): Likewise.
62958         * modules/crypto/md4 (License): Likewise.
62959
62960 2007-07-30  Jim Meyering  <jim@meyering.net>
62961
62962         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62963         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62964         it has valid stat data.  This bug would cause du not to count the
62965         sizes of inaccessible directories.
62966         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62967         in <http://bugzilla.redhat.com/250077>.
62968
62969 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62970             Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62973         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62974         #include_next, gives a diagnostic about it, but reports no error in
62975         the exit code.
62976         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62977
62978 2007-07-24  Ben Pfaff  <blp@gnu.org>
62979
62980         Improve name: "count-one-bits" is better than "popcount".
62981         * MODULES.html.sh: Update name.
62982         * lib/popcount.h: Renamed lib/count-one-bits.h.
62983         (popcount): Renamed count_one_bits.
62984         (popcountl): Renamed count_one_bits_l.
62985         (popcountll): Renamed count_one_bits_ll.
62986         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62987         * modules/popcount: Renamed module/count-one-bits.
62988         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62989         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62990
62991 2007-07-23  Ben Pfaff  <blp@gnu.org>
62992
62993         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62994         better code generation, and add U to large constants to avoid
62995         warnings, in non-GCC case.
62996         Suggested by Bruno Haible.
62997
62998 2007-07-23  Ben Pfaff  <blp@gnu.org>
62999
63000         * lib/popcount.h: Use verify_true instead of if...abort.
63001         * modules/popcount: Depend on verify module.
63002         Suggested by Jim Meyering.
63003
63004 2007-07-23  Bruno Haible  <bruno@clisp.org>
63005
63006         * gnulib-tool (func_import): Create a .cvsignore file also when the
63007         directory is not yet in CVS but the toplevel directory is. When
63008         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63009         Reported by Karl Berry.
63010
63011 2007-07-22  Ben Pfaff  <blp@gnu.org>
63012
63013         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63014         case.
63015         Suggested by Eric Blake.
63016
63017 2007-07-22  Ben Pfaff  <blp@gnu.org>
63018
63019         New module: popcount.
63020         * MODULES.html.sh: Add popcount.
63021         * modules/popcount: New file.
63022         * modules/popcount-tests: New file.
63023         * tests/test-popcount.c: New file.
63024         * lib/popcount.h: New file.
63025         * m4/popcount.m4: New file.
63026
63027 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63028
63029         * build-aux/announce-gen: Update to GPLv3.
63030
63031         * build-aux/config.guess: Update from config.
63032
63033 2007-07-21  Bruno Haible  <bruno@clisp.org>
63034
63035         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63036         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63037
63038 2007-07-20  Jim Meyering  <jim@meyering.net>
63039
63040         * check-module: Diagnose a self-dependency.
63041
63042 2007-07-19  Bruno Haible  <bruno@clisp.org>
63043
63044         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63045         empty.
63046         Reported by Eric Blake.
63047
63048 2007-07-18  Bruno Haible  <bruno@clisp.org>
63049
63050         * gnulib-tool: New options --po-base, --po-domain.
63051         (func_usage): Document them.
63052         (pobase, po_domain): New variables.
63053         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63054         DEFAULT_TEXT_DOMAIN.
63055         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63056         (func_import): Consider pobase and po_domain. Create a po/ directory.
63057         (func_create_testdir): Set pobase and po_domain to empty.
63058         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63059         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63060
63061 2007-07-18  Bruno Haible  <bruno@clisp.org>
63062
63063         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63064         EXTRA_DIST augmentation for files in build-aux/.
63065
63066 2007-07-16  Bruno Haible  <bruno@clisp.org>
63067
63068         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63069         * modules/getdelim (License): Likewise.
63070
63071 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63072
63073         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63074         * modules/d-type (License): Likewise.
63075         * modules/extensions (License): Likewise.
63076         * modules/fnmatch (License): Likewise.
63077         * modules/fseeko (License): Likewise.
63078         * modules/getaddrinfo (License): Likewise.
63079         * modules/getline (License): Likewise.
63080         * modules/getlogin_r (License): Likewise.
63081         * modules/getpass (License): Likewise.
63082         * modules/gettimeofday (License): Likewise.
63083         * modules/glob (License): Likewise.
63084         * modules/inet_ntop (License): Likewise.
63085         * modules/malloc (License): Likewise.
63086         * modules/malloca (License): Likewise.
63087         * modules/memmem (License): Likewise.
63088         * modules/mempcpy (License): Likewise.
63089         * modules/memset (License): Likewise.
63090         * modules/minmax (License): Likewise.
63091         * modules/mktime (License): Likewise.
63092         * modules/netinet_in (License): Likewise.
63093         * modules/pathmax (License): Likewise.
63094         * modules/poll (License): Likewise.
63095         * modules/regex (License): Likewise.
63096         * modules/snprintf (License): Likewise.
63097         * modules/stdbool (License): Likewise.
63098         * modules/stdint (License): Likewise.
63099         * modules/stdio (License): Likewise.
63100         * modules/strcase (License): Likewise.
63101         * modules/strcasestr (License): Likewise.
63102         * modules/strdup (License): Likewise.
63103         * modules/string (License): Likewise.
63104         * modules/strndup (License): Likewise.
63105         * modules/strnlen (License): Likewise.
63106         * modules/strpbrk (License): Likewise.
63107         * modules/strptime (License): Likewise.
63108         * modules/strsep (License): Likewise.
63109         * modules/sys_select (License): Likewise.
63110         * modules/sys_socket (License): Likewise.
63111         * modules/sys_stat (License): Likewise.
63112         * modules/sys_time (License): Likewise.
63113         * modules/time (License): Likewise.
63114         * modules/time_r (License): Likewise.
63115         * modules/timegm (License): Likewise.
63116         * modules/unistd (License): Likewise.
63117         * modules/vsnprintf (License): Likewise.
63118         * modules/wctype (License): Likewise.
63119
63120 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63121
63122         * modules/argz (License): LGPLv2+.
63123
63124 2007-07-15  Karl Berry  <karl@gnu.org>
63125
63126         * doc/gnulib.texi: revise node structure per new fdl.texi.
63127
63128 2007-07-14  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63131         the output file.
63132         * lib/uniname/uninames.h: Regenerated.
63133
63134 2007-07-14  Karl Berry  <karl@gnu.org>
63135
63136         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63137         omitting sectioning and index commands.
63138
63139 2007-07-13  Bruno Haible  <bruno@clisp.org>
63140
63141         New gnulib-tool option --more-symlinks.
63142         * gnulib-tool (func_usage): Document --more-symlinks.
63143         (do_copyrights): New variable.
63144         Recognize option --more-symlinks.
63145         (func_import): Don't add a copyright notice transform to
63146         sed_transform_lib_file if do_copyrights is empty.
63147
63148 2007-07-13  Bruno Haible  <bruno@clisp.org>
63149
63150         * lib/vasnprintf.c (decimal_point_char): Define also if
63151         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63152         && !NEED_PRINTF_DIRECTIVE_A.
63153         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63154         Gary V. Vaughan <gary@gnu.org>.
63155
63156 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63157
63158         * lib/inttypes_.h: Undo previous change, since it was fixed
63159         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63160
63161 2007-07-13  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63164         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63165
63166 2007-07-13  Jim Meyering  <jim@meyering.net>
63167
63168         df: Don't fail for Tru64's "file-on-file mount".
63169         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63170         so we fall through and use statfs instead.  Details here:
63171         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63172         Reported by Albert Chin.
63173
63174 2007-07-13  Bruno Haible  <bruno@clisp.org>
63175
63176         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63177         * modules/configmake (License): Likewise.
63178         * modules/gettext (License): Likewise.
63179         * modules/gettext-h (License): Likewise.
63180         * modules/include_next (License): Likewise.
63181         * modules/link-warning (License): Likewise.
63182         * modules/localcharset (License): Likewise.
63183         * modules/localename (License): Likewise.
63184         * modules/lock (License): Likewise.
63185         * modules/relocatable-lib-lgpl (License): Likewise.
63186         * modules/size_max (License): Likewise.
63187         * modules/vasnprintf (License): Likewise.
63188         * modules/wchar (License): Likewise.
63189         * modules/xsize (License): Likewise.
63190
63191 2007-07-13  Bruno Haible  <bruno@clisp.org>
63192
63193         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63194         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63195
63196 2007-07-12  Bruno Haible  <bruno@clisp.org>
63197
63198         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63199         in the modules files.
63200
63201 2007-07-11  Karl Berry  <karl@gnu.org>
63202
63203         * MODULES.html.sh (func_module): use
63204          sed -e '\|^'"${includefile}"'$|d'
63205          instead of /.../d, to avoid errors on $includefile's containing /.
63206
63207 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63208
63209         * gnulib-tool (func_import): Avoid duplication of --avoid
63210         statements
63211         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63212         names to `_' in variable names.
63213
63214 2007-07-10  Eric Blake  <ebb9@byu.net>
63215
63216         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63217         * NEWS: Document this change.
63218
63219 2007-07-08  Bruno Haible  <bruno@clisp.org>
63220
63221         Update to Unicode 5.0.
63222         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63223         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63224         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63225         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63226         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63227         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63228         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63229         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63230         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63231         U+10A3F, U+1D242..U+1D244.
63232         (nonspacing_table_ind): Update.
63233         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63234         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63235
63236 2007-07-08  Bruno Haible  <bruno@clisp.org>
63237
63238         Update to Unicode 5.0.
63239         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63240         code transform. Extend the name index field of unicode_name_to_code and
63241         unicode_code_to_name from 16 to 24 bits.
63242         * lib/uniname/uniname.c (unicode_character_name,
63243         unicode_name_character): Add the range 0x12xxx to the code transform.
63244         * lib/uniname/uninames.h: Regenerated.
63245         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63246
63247 2007-07-07  Bruno Haible  <bruno@clisp.org>
63248
63249         * modules/wcwidth-tests: New file.
63250         * tests/test-wcwidth.c: New file.
63251
63252         Work around MacOS X wcwidth() bug.
63253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63254         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63255         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63256         original wcwidth in non-UTF-8 locales.
63257         * modules/wcwidth (Depends-on): Add localcharset, streq,
63258         uniwidth/width.
63259         * doc/functions/wcwidth.texi: Update.
63260
63261 2007-07-07  Bruno Haible  <bruno@clisp.org>
63262
63263         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63264         (wcwidth): New declaration.
63265         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63266         macros.
63267         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63268         here. Prepare for creating <wchar.h> unconditionally.
63269         * modules/wchar (Depends-on): Add link-warning.
63270         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63271         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63272         * lib/wcwidth.h: Remove file.
63273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63274         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63275         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63276         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63277         (Include): Replace wcwidth.h with <wchar.h>.
63278         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63279         * lib/mbchar.h: Don't include wcwidth.h.
63280         * lib/mbswidth.c: Likewise.
63281         * NEWS: Mention the change.
63282
63283 2007-07-07  Bruno Haible  <bruno@clisp.org>
63284
63285         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63286         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63287         definition with an external declaration.
63288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63289         defined as a function. Remove AC_C_INLINE requirement.
63290         * modules/wcwidth (Files): Add lib/wcwidth.c.
63291         (Makefile.am): Remove redundant statement.
63292
63293 2007-07-07  Bruno Haible  <bruno@clisp.org>
63294
63295         * MODULES.html.sh (Unicode string functions): Add the new modules.
63296
63297         * tests/uniwidth/test-u32-strwidth.c: New file.
63298         * modules/uniwidth/u32-strwidth-tests: New file.
63299
63300         * lib/uniwidth/u32-strwidth.c: New file.
63301         * modules/uniwidth/u32-strwidth: New file.
63302
63303         * tests/uniwidth/test-u16-strwidth.c: New file.
63304         * modules/uniwidth/u16-strwidth-tests: New file.
63305
63306         * lib/uniwidth/u16-strwidth.c: New file.
63307         * modules/uniwidth/u16-strwidth: New file.
63308
63309         * tests/uniwidth/test-u8-strwidth.c: New file.
63310         * modules/uniwidth/u8-strwidth-tests: New file.
63311
63312         * lib/uniwidth/u8-strwidth.c: New file.
63313         * modules/uniwidth/u8-strwidth: New file.
63314
63315         * tests/uniwidth/test-u32-width.c: New file.
63316         * modules/uniwidth/u32-width-tests: New file.
63317
63318         * lib/uniwidth/u32-width.c: New file.
63319         * modules/uniwidth/u32-width: New file.
63320
63321         * tests/uniwidth/test-u16-width.c: New file.
63322         * modules/uniwidth/u16-width-tests: New file.
63323
63324         * lib/uniwidth/u16-width.c: New file.
63325         * modules/uniwidth/u16-width: New file.
63326
63327         * tests/uniwidth/test-u8-width.c: New file.
63328         * modules/uniwidth/u8-width-tests: New file.
63329
63330         * lib/uniwidth/u8-width.c: New file.
63331         * modules/uniwidth/u8-width: New file.
63332
63333         * tests/uniwidth/test-uc_width.c: New file.
63334         * modules/uniwidth/width-tests: New file.
63335
63336         * lib/uniwidth/width.c: New file, from GNU libiconv.
63337         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63338         * modules/uniwidth/width: New file.
63339
63340         * lib/uniwidth.h: New file, from GNU libiconv.
63341         * modules/uniwidth/base: New file.
63342
63343 2007-07-07  Bruno Haible  <bruno@clisp.org>
63344
63345         * lib/uniname.h: New file, from GNU gettext.
63346         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63347         * lib/uniname/uninames.h: New file, from GNU gettext.
63348         * lib/uniname/uniname.c: New file, from GNU gettext.
63349         * tests/uniname/test-uninames.sh: New file.
63350         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63351         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63352         * modules/uniname/base: New file.
63353         * modules/uniname/uniname: New file.
63354         * modules/uniname/uniname-tests: New file.
63355         * MODULES.html.sh (Unicode string functions): Add the new modules.
63356
63357 2007-07-06  Bruno Haible  <bruno@clisp.org>
63358
63359         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63360
63361 2007-07-06  Bruno Haible  <bruno@clisp.org>
63362
63363         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63364         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63365         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63366         include <sys/time.h>.
63367         Reported by Eric Blake.
63368
63369 2007-07-06  Eric Blake  <ebb9@byu.net>
63370
63371         Fix testing canonicalize on cygwin.
63372         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63373         Revert patch from 2007-06-19.
63374         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63375         canonicalize module is also in use.
63376         * tests/test-canonicalize.c: New file.
63377         * tests/test-canonicalize.sh: Likewise.
63378         * modules/canonicalize-tests: Likewise.
63379
63380 2007-07-06  Jim Meyering  <jim@meyering.net>
63381
63382         * lib/getugroups.c (getugroups): Detect getgrent failure.
63383         Adjust comment to reflect reality: this function may return -1.
63384
63385 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63386
63387         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63388         the new TP address.
63389         (usage): Fix typo
63390         (gnulib_mk): New variable.
63391
63392 2007-07-05  Jim Meyering  <jim@meyering.net>
63393
63394         Don't let endgrent clobber errno, no matter how improbable.
63395         * lib/getugroups.c (getugroups): Save and restore errno around
63396         endgrent call.
63397
63398         Close the group DB even when failing with 2^31 or more members.
63399         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63400
63401 2007-07-04  Jim Meyering  <jim@meyering.net>
63402
63403         * lib/getugroups.h: New file.
63404         * lib/getugroups.c: Include "getugroups.h".
63405         Remove uses of "register" keyword.
63406         Move local variable, "cp", down into scope where used.
63407         Give "username" parameter the "const" attribute.
63408         * modules/getugroups (Files): Add lib/getugroups.h
63409
63410 2007-07-04  Karl Berry  <karl@gnu.org>
63411
63412         * MODULES.html.sh (func_all_modules): Complete rename of
63413         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63414
63415 2007-07-02  Bruno Haible  <bruno@clisp.org>
63416
63417         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63418         mode, when inttypes.h comes from gnulib.
63419         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63420
63421 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63422
63423         * NEWS: Mention lgpl module name change.
63424
63425         * modules/lgpl-2.1: Renamed from lgpl.
63426
63427         * NEWS: Mention gpl module name change.
63428
63429         * modules/gpl-3.0: New file, based on gpl-2.0.
63430
63431         * modules/gpl-2.0: Renamed from gpl.
63432
63433         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63434         doc/gpl-2.0.texi.
63435
63436 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63437
63438         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63439         #define __STDC_LIMIT_MACROS temporarily while including
63440         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63441         Problem reported by Joel E. Denny in
63442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63443
63444 2007-07-01  Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/unistdio.h: New file.
63447         * lib/unistdio/u-asnprintf.h: New file.
63448         * lib/unistdio/u-asprintf.h: New file.
63449         * lib/unistdio/u-printf-args.c: New file.
63450         * lib/unistdio/u-printf-args.h: New file.
63451         * lib/unistdio/u-printf-parse.h: New file.
63452         * lib/unistdio/u-snprintf.h: New file.
63453         * lib/unistdio/u-sprintf.h: New file.
63454         * lib/unistdio/u-vasprintf.h: New file.
63455         * lib/unistdio/u-vsnprintf.h: New file.
63456         * lib/unistdio/u-vsprintf.h: New file.
63457         * lib/unistdio/ulc-asnprintf.c: New file.
63458         * lib/unistdio/ulc-asprintf.c: New file.
63459         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63460         * lib/unistdio/ulc-printf-parse.c: New file.
63461         * lib/unistdio/ulc-snprintf.c: New file.
63462         * lib/unistdio/ulc-sprintf.c: New file.
63463         * lib/unistdio/ulc-vasnprintf.c: New file.
63464         * lib/unistdio/ulc-vasprintf.c: New file.
63465         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63466         * lib/unistdio/ulc-vsnprintf.c: New file.
63467         * lib/unistdio/ulc-vsprintf.c: New file.
63468         * lib/unistdio/u8-asnprintf.c: New file.
63469         * lib/unistdio/u8-asprintf.c: New file.
63470         * lib/unistdio/u8-printf-parse.c: New file.
63471         * lib/unistdio/u8-snprintf.c: New file.
63472         * lib/unistdio/u8-sprintf.c: New file.
63473         * lib/unistdio/u8-vasnprintf.c: New file.
63474         * lib/unistdio/u8-vasprintf.c: New file.
63475         * lib/unistdio/u8-vsnprintf.c: New file.
63476         * lib/unistdio/u8-vsprintf.c: New file.
63477         * lib/unistdio/u8-u8-asnprintf.c: New file.
63478         * lib/unistdio/u8-u8-asprintf.c: New file.
63479         * lib/unistdio/u8-u8-snprintf.c: New file.
63480         * lib/unistdio/u8-u8-sprintf.c: New file.
63481         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63482         * lib/unistdio/u8-u8-vasprintf.c: New file.
63483         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63484         * lib/unistdio/u8-u8-vsprintf.c: New file.
63485         * lib/unistdio/u16-asnprintf.c: New file.
63486         * lib/unistdio/u16-asprintf.c: New file.
63487         * lib/unistdio/u16-printf-parse.c: New file.
63488         * lib/unistdio/u16-snprintf.c: New file.
63489         * lib/unistdio/u16-sprintf.c: New file.
63490         * lib/unistdio/u16-vasnprintf.c: New file.
63491         * lib/unistdio/u16-vasprintf.c: New file.
63492         * lib/unistdio/u16-vsnprintf.c: New file.
63493         * lib/unistdio/u16-vsprintf.c: New file.
63494         * lib/unistdio/u16-u16-asnprintf.c: New file.
63495         * lib/unistdio/u16-u16-asprintf.c: New file.
63496         * lib/unistdio/u16-u16-snprintf.c: New file.
63497         * lib/unistdio/u16-u16-sprintf.c: New file.
63498         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63499         * lib/unistdio/u16-u16-vasprintf.c: New file.
63500         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63501         * lib/unistdio/u16-u16-vsprintf.c: New file.
63502         * lib/unistdio/u32-asnprintf.c: New file.
63503         * lib/unistdio/u32-asprintf.c: New file.
63504         * lib/unistdio/u32-printf-parse.c: New file.
63505         * lib/unistdio/u32-snprintf.c: New file.
63506         * lib/unistdio/u32-sprintf.c: New file.
63507         * lib/unistdio/u32-vasnprintf.c: New file.
63508         * lib/unistdio/u32-vasprintf.c: New file.
63509         * lib/unistdio/u32-vsnprintf.c: New file.
63510         * lib/unistdio/u32-vsprintf.c: New file.
63511         * lib/unistdio/u32-u32-asnprintf.c: New file.
63512         * lib/unistdio/u32-u32-asprintf.c: New file.
63513         * lib/unistdio/u32-u32-snprintf.c: New file.
63514         * lib/unistdio/u32-u32-sprintf.c: New file.
63515         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63516         * lib/unistdio/u32-u32-vasprintf.c: New file.
63517         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63518         * lib/unistdio/u32-u32-vsprintf.c: New file.
63519         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63520         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63521         * tests/unistdio/test-ulc-printf1.h: New file.
63522         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63523         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63524         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63525         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63526         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63527         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63528         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63529         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63530         * tests/unistdio/test-u8-asnprintf1.c: New file.
63531         * tests/unistdio/test-u8-asnprintf1.h: New file.
63532         * tests/unistdio/test-u8-printf1.h: New file.
63533         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63534         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63535         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63536         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63537         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63538         * tests/unistdio/test-u8-vasprintf1.c: New file.
63539         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63540         * tests/unistdio/test-u8-vsprintf1.c: New file.
63541         * tests/unistdio/test-u16-asnprintf1.c: New file.
63542         * tests/unistdio/test-u16-asnprintf1.h: New file.
63543         * tests/unistdio/test-u16-printf1.h: New file.
63544         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63545         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63546         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63547         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63548         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63549         * tests/unistdio/test-u16-vasprintf1.c: New file.
63550         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63551         * tests/unistdio/test-u16-vsprintf1.c: New file.
63552         * tests/unistdio/test-u32-asnprintf1.c: New file.
63553         * tests/unistdio/test-u32-asnprintf1.h: New file.
63554         * tests/unistdio/test-u32-printf1.h: New file.
63555         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63556         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63557         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63558         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63559         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63560         * tests/unistdio/test-u32-vasprintf1.c: New file.
63561         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63562         * tests/unistdio/test-u32-vsprintf1.c: New file.
63563         * modules/unistdio/base: New file.
63564         * modules/unistdio/u-printf-args: New file.
63565         * modules/unistdio/ulc-asnprintf: New file.
63566         * modules/unistdio/ulc-asprintf: New file.
63567         * modules/unistdio/ulc-fprintf: New file.
63568         * modules/unistdio/ulc-printf-parse: New file.
63569         * modules/unistdio/ulc-snprintf: New file.
63570         * modules/unistdio/ulc-sprintf: New file.
63571         * modules/unistdio/ulc-vasnprintf: New file.
63572         * modules/unistdio/ulc-vasprintf: New file.
63573         * modules/unistdio/ulc-vfprintf: New file.
63574         * modules/unistdio/ulc-vsnprintf: New file.
63575         * modules/unistdio/ulc-vsprintf: New file.
63576         * modules/unistdio/u8-asnprintf: New file.
63577         * modules/unistdio/u8-asprintf: New file.
63578         * modules/unistdio/u8-printf-parse: New file.
63579         * modules/unistdio/u8-snprintf: New file.
63580         * modules/unistdio/u8-sprintf: New file.
63581         * modules/unistdio/u8-vasnprintf: New file.
63582         * modules/unistdio/u8-vasprintf: New file.
63583         * modules/unistdio/u8-vsnprintf: New file.
63584         * modules/unistdio/u8-vsprintf: New file.
63585         * modules/unistdio/u8-u8-asnprintf: New file.
63586         * modules/unistdio/u8-u8-asprintf: New file.
63587         * modules/unistdio/u8-u8-snprintf: New file.
63588         * modules/unistdio/u8-u8-sprintf: New file.
63589         * modules/unistdio/u8-u8-vasnprintf: New file.
63590         * modules/unistdio/u8-u8-vasprintf: New file.
63591         * modules/unistdio/u8-u8-vsnprintf: New file.
63592         * modules/unistdio/u8-u8-vsprintf: New file.
63593         * modules/unistdio/u16-asnprintf: New file.
63594         * modules/unistdio/u16-asprintf: New file.
63595         * modules/unistdio/u16-printf-parse: New file.
63596         * modules/unistdio/u16-snprintf: New file.
63597         * modules/unistdio/u16-sprintf: New file.
63598         * modules/unistdio/u16-vasnprintf: New file.
63599         * modules/unistdio/u16-vasprintf: New file.
63600         * modules/unistdio/u16-vsnprintf: New file.
63601         * modules/unistdio/u16-vsprintf: New file.
63602         * modules/unistdio/u16-u16-asnprintf: New file.
63603         * modules/unistdio/u16-u16-asprintf: New file.
63604         * modules/unistdio/u16-u16-snprintf: New file.
63605         * modules/unistdio/u16-u16-sprintf: New file.
63606         * modules/unistdio/u16-u16-vasnprintf: New file.
63607         * modules/unistdio/u16-u16-vasprintf: New file.
63608         * modules/unistdio/u16-u16-vsnprintf: New file.
63609         * modules/unistdio/u16-u16-vsprintf: New file.
63610         * modules/unistdio/u32-asnprintf: New file.
63611         * modules/unistdio/u32-asprintf: New file.
63612         * modules/unistdio/u32-printf-parse: New file.
63613         * modules/unistdio/u32-snprintf: New file.
63614         * modules/unistdio/u32-sprintf: New file.
63615         * modules/unistdio/u32-vasnprintf: New file.
63616         * modules/unistdio/u32-vasprintf: New file.
63617         * modules/unistdio/u32-vsnprintf: New file.
63618         * modules/unistdio/u32-vsprintf: New file.
63619         * modules/unistdio/u32-u32-asnprintf: New file.
63620         * modules/unistdio/u32-u32-asprintf: New file.
63621         * modules/unistdio/u32-u32-snprintf: New file.
63622         * modules/unistdio/u32-u32-sprintf: New file.
63623         * modules/unistdio/u32-u32-vasnprintf: New file.
63624         * modules/unistdio/u32-u32-vasprintf: New file.
63625         * modules/unistdio/u32-u32-vsnprintf: New file.
63626         * modules/unistdio/u32-u32-vsprintf: New file.
63627         * modules/unistdio/ulc-asnprintf-tests: New file.
63628         * modules/unistdio/ulc-vasnprintf-tests: New file.
63629         * modules/unistdio/ulc-vasprintf-tests: New file.
63630         * modules/unistdio/ulc-vsnprintf-tests: New file.
63631         * modules/unistdio/ulc-vsprintf-tests: New file.
63632         * modules/unistdio/u8-asnprintf-tests: New file.
63633         * modules/unistdio/u8-vasnprintf-tests: New file.
63634         * modules/unistdio/u8-vasprintf-tests: New file.
63635         * modules/unistdio/u8-vsnprintf-tests: New file.
63636         * modules/unistdio/u8-vsprintf-tests: New file.
63637         * modules/unistdio/u16-asnprintf-tests: New file.
63638         * modules/unistdio/u16-vasnprintf-tests: New file.
63639         * modules/unistdio/u16-vasprintf-tests: New file.
63640         * modules/unistdio/u16-vsnprintf-tests: New file.
63641         * modules/unistdio/u16-vsprintf-tests: New file.
63642         * modules/unistdio/u32-asnprintf-tests: New file.
63643         * modules/unistdio/u32-vasnprintf-tests: New file.
63644         * modules/unistdio/u32-vasprintf-tests: New file.
63645         * modules/unistdio/u32-vsnprintf-tests: New file.
63646         * modules/unistdio/u32-vsprintf-tests: New file.
63647         * MODULES.html.sh (Unicode string functions): Add the new modules.
63648
63649 2007-07-01  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/sprintf.c (sprintf): Limit the available length estimation,
63652         to avoid address wraparound.
63653         * lib/vsprintf.c (vsprintf): Likewise.
63654         * modules/sprintf-posix (Dependencies): Add stdint.
63655         * modules/vsprintf-posix (Dependencies): Likewise.
63656
63657 2007-07-01  Bruno Haible  <bruno@clisp.org>
63658
63659         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63660         Windows PATH as well. Conservative double-quoting. Comments.
63661
63662 2007-07-01  Bruno Haible  <bruno@clisp.org>
63663             Eric Blake  <ebb9@byu.net>
63664             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63665
63666         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63667         empty components in $PATH, denoting '.'.
63668
63669 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63670
63671         * gnulib-tool: Fix indentation.
63672         (func_create_megatestdir): Likewise.
63673         Report by Bruno Haible.
63674
63675 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63676
63677         Sync from Automake.
63678         * build-aux/gnupload: Fix shell portability issues with for loops.
63679         Report by Karl Berry.
63680
63681 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63682
63683         * build-aux/maint.mk (POURL): Use translationproject.org.
63684
63685 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63686             Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63689         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63690         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63691         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63692         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63693
63694 2007-06-27  Bruno Haible  <bruno@clisp.org>
63695
63696         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63697         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63698
63699 2007-06-26  Karl Berry  <karl@gnu.org>
63700
63701         * MODULES.html.sh: remove xreadlink-with-size.
63702
63703 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63704
63705         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63706         method that I hope also handles the double-include problem noted
63707         by Bruno Haible in
63708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63709
63710 2007-06-23  Bruno Haible  <bruno@clisp.org>
63711
63712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63713         Don't let the 'mostlyclean' target fail if the last subdirectory could
63714         not be removed.
63715         Reported by Karl Berry.
63716
63717 2007-06-23  Bruno Haible  <bruno@clisp.org>
63718
63719         * gnulib-tool (echo): Add a speedier workaround for ksh.
63720         * tests/test-echo.sh: Likewise.
63721
63722 2007-06-23  Bruno Haible  <bruno@clisp.org>
63723
63724         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63725         * tests/test-echo.sh: Likewise.
63726
63727 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63728
63729         * gnulib-tool (IFS): Initialize early, so we don't set it to
63730         empty later.
63731         (self_abspathname): Rewrite algorithm to set it, reindent.
63732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63733         (func_create_megatestdir): Merge some sed scripts.
63734
63735 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63738         exposed by Sun Studio 11 cc on Solaris 8.
63739
63740 2007-06-22  Bruno Haible  <bruno@clisp.org>
63741
63742         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63743         backslashes.
63744         * tests/test-echo.sh: New file.
63745
63746 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63747
63748         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63749         simplify `sed_replace_build_aux' scripts, they are portable but
63750         echoing them with `echo' is not.
63751         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63752
63753 2007-06-21  Karl Berry  <karl@gnu.org>
63754
63755         * config/srclist.txt: guess we can't handle the licenses via
63756         srclist at the moment.
63757
63758 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63759
63760         * MODULES.html.sh: Add include_next.
63761         * modules/include_next: New file.
63762
63763 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63764
63765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63766         INCLUDE_NEXT.
63767         (gl_CHECK_NEXT_HEADERS): New macro.
63768         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63769         the obsolescent gl_ABSOLUTE_HEADER.
63770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63771         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63772         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63773         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63774         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63775         * m4/math_h.m4 (gl_MATH_H): Likewise.
63776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63777         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63778         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63779         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63780         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63781         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63782         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63787         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63788         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63790         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63791         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63792         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63793         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63794         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63795         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63796         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63797         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63798         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63799         * lib/float_.h: Likewise.
63800         * lib/inttypes_.h: Likewise.
63801         * lib/math_.h: Likewise.
63802         * lib/search_.h: Likewise.
63803         * lib/signal_.h: Likewise.
63804         * lib/stdint_.h: Likewise.
63805         * lib/stdio_.h: Likewise.
63806         * lib/stdlib_.h: Likewise.
63807         * lib/string_.h: Likewise.
63808         * lib/sys_stat_.h: Likewise.
63809         * lib/sys_time_.h: Likewise.
63810         * lib/time_.h: Likewise.
63811         * lib/unistd_.h: Likewise.
63812         * lib/wchar_.h: Likewise.
63813         * lib/wctype_.h: Likewise.
63814         * lib/dirent_.h: Likewise.
63815         * lib/iconv_.h: Likewise.
63816         * lib/locale_.h: Likewise.
63817         * lib/netinet_in_.h: Likewise.
63818         * lib/sys_select_.h: Likewise.
63819         * lib/sys_socket_.h: Likewise.
63820         * lib/sysexits_.h: Likewise.
63821         * modules/fcntl (Depends-on): Depend on include_next, not
63822         absolute_header.
63823         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63824         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63825         * modules/fchdir: Likewise.
63826         * modules/float: Likewise.
63827         * modules/iconv_open: Likewise.
63828         * modules/inttypes: Likewise.
63829         * modules/locale: Likewise.
63830         * modules/math: Likewise.
63831         * modules/netinet_in: Likewise.
63832         * modules/search: Likewise.
63833         * modules/signal: Likewise.
63834         * modules/stdint: Likewise.
63835         * modules/stdio: Likewise.
63836         * modules/stdlib: Likewise.
63837         * modules/string: Likewise.
63838         * modules/sys_select: Likewise.
63839         * modules/sys_socket: Likewise.
63840         * modules/sys_stat: Likewise.
63841         * modules/sys_time: Likewise.
63842         * modules/sysexits: Likewise.
63843         * modules/time: Likewise.
63844         * modules/unistd: Likewise.
63845         * modules/wchar: Likewise.
63846         * modules/wctype: Likewise.
63847         * modules/sys_stat: Change maintainer to "all".
63848         * modules/unistd: Likewise.
63849
63850 2007-06-20  Karl Berry  <karl@gnu.org>
63851
63852         * config/srclist.txt: track www changes in license files.
63853
63854 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63855
63856         * build-aux/bootstrap: Remove stray dot.
63857         Make sure build_aux settings are honored when linking
63858         gnulib_extra_files.
63859
63860 2007-06-19  Eric Blake  <ebb9@byu.net>
63861
63862         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63863         Allow compilation on cygwin.
63864
63865 2007-06-19  Jim Meyering  <jim@meyering.net>
63866
63867         xreadlink-with-size: Remove module.  No longer used.
63868         Ex-callers now use xreadlink or mreadlink-with-size.
63869         * modules/xreadlink-with-size: Remove module.
63870         * lib/xreadlink-with-size.c: Remove file.
63871         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63872         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63873         just before the function definition *is* accurate.
63874
63875         Eliminate one way canonicalize_filename_mode could exit.
63876         * lib/canonicalize.c (canonicalize_filename_mode):
63877         Use mreadlink_with_size, not xreadlink_with_size.
63878
63879 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63880
63881         Detect porting problems to FreeBSD/arm, which has time_t wider than
63882         long int.  Original problem reported for GNU diff by Xin Li in
63883         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63884         * modules/getdate (Depends-on): Add intprops, verify.
63885         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63886         is an integer type no wider than long int.
63887
63888 2007-06-18  Jim Meyering  <jim@meyering.net>
63889
63890         New module: mreadlink-with-size.
63891         * MODULES.html.sh: Add mreadlink-with-size.
63892         * modules/mreadlink-with-size: New module
63893         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63894         not xreadlink-with-size.
63895         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63896
63897 2007-06-16  Bruno Haible  <bruno@clisp.org>
63898
63899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63900         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63901         Reported by Gary V. Vaughan <gary@gnu.org>.
63902
63903 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63904
63905         Revamp lchown so that it lives in unistd.h where it belongs.
63906         * lib/lchown.h: Remove.
63907         * lib/dirchownmod.c: Don't include lib/lchown.h.
63908         * lib/fchownat.c: Likewise.
63909         * lib/openat.c: Likewise.
63910         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63911         does not follow symlinks.
63912         (EOPNOTSUPP): Define if not defined.
63913         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63914         is defined to 0.
63915         (lchown): New decl.
63916         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63917         Do not check for lchown decl.
63918         Set REPLACE_LCHOWN.
63919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63920         REPLACE_LCHOWN.
63921         * modules/chown: Make it clear it follows symlinks.
63922         * modules/lchown: Make it clear it doesn't follow symlinks.
63923         (Files): Remove lib/lchown.h
63924         (Depends-on): Add unistd.
63925         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63926         (Include): Include <unistd.h>, not "lchown.h".
63927         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63928         REPLACE_LCHOWN.
63929
63930 2007-06-15  Jim Meyering  <jim@meyering.net>
63931
63932         Change license (GPL to LGPL) of fsusage and dependents.
63933         * modules/fsusage (License): Change to LGPL.
63934         * modules/full-read (License): Likewise.
63935         * modules/full-write (License): Likewise.
63936         * modules/safe-read (License): Likewise.
63937         * modules/safe-write (License): Likewise.
63938
63939 2007-06-14  Ben Pfaff  <blp@gnu.org>
63940
63941         Missing part of allocsa -> malloca transition.
63942         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63943         gl_MALLOCA.
63944
63945 2007-06-12  Bruno Haible  <bruno@clisp.org>
63946
63947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63948         to ia64, x86_64, i386.
63949         Reported by Eric Blake.
63950
63951 2007-06-12  Bruno Haible  <bruno@clisp.org>
63952
63953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63954         cross-compiling to x86_64.
63955
63956 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63957
63958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63959         glitch reported by Ralf Wildenhues in
63960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63961
63962         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63963         Vin Shelton.
63964
63965 2007-06-11  Bruno Haible  <bruno@clisp.org>
63966
63967         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63968         replacement string.
63969         Reported by Eric Blake.
63970
63971 2007-06-10  Bruno Haible  <bruno@clisp.org>
63972
63973         Prepare vasnprintf code for use with Unicode strings.
63974         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63975         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63976         TYPE_U32_STRING.
63977         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63978         a_u32_string variants.
63979         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63980         * lib/printf-args.c: Don't include config.h and the specification
63981         header if PRINTF_FETCHARGS is already defined.
63982         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63983         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63984         TYPE_U16_STRING, TYPE_U32_STRING.
63985         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63986         u16_directive, u16_directives, u32_directive, u32_directives): New
63987         types.
63988         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63989         New declarations.
63990         * lib/printf-parse.c: Don't include config.h and the specification
63991         header if PRINTF_PARSE is already defined. Eliminate the set of
63992         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63993         them now. Include c-ctype.h.
63994         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63995         directive and CHAR_T_ONLY_ASCII.
63996         * lib/vasnprintf.c: Don't include config.h and the specification header
63997         if VASNPRINTF is already defined.
63998         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63999         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64000         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64001         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64002         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64003         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64004         code accordingly.
64005         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64006         pad_ourselves also in this case, with the 'c' and 's' directives, and
64007         with a different notion of "width".
64008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64009
64010 2007-06-10  Bruno Haible  <bruno@clisp.org>
64011
64012         * modules/unistr/u32-mbsnlen: New file.
64013         * lib/unistr/u32-mbsnlen.c: New file.
64014
64015         * modules/unistr/u16-mbsnlen: New file.
64016         * lib/unistr/u16-mbsnlen.c: New file.
64017
64018         * modules/unistr/u8-mbsnlen: New file.
64019         * lib/unistr/u8-mbsnlen.c: New file.
64020
64021         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64022         declarations.
64023
64024 2007-06-10  Bruno Haible  <bruno@clisp.org>
64025
64026         * lib/string_.h (mbsnlen): New declaration.
64027         * lib/mbsnlen.c: New file.
64028         * m4/mbsnlen.m4: New file.
64029         * modules/mbsnlen: New file.
64030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64031         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64032         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64033
64034 2007-06-10  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64037
64038 2007-06-10  Bruno Haible  <bruno@clisp.org>
64039
64040         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64041         * lib/mbuiter.h: Likewise.
64042
64043 2007-06-10  Bruno Haible  <bruno@clisp.org>
64044
64045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64046         declaration.
64047
64048 2007-06-10  Karl Berry  <karl@gnu.org>
64049
64050         * config/srclist.txt: remove gettext entries, Bruno prefers
64051         to update individually.
64052
64053 2007-06-10  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64056         'maxlen'. Ensure only length + width bytes are allocated, not
64057         length + 1 + width.
64058
64059 2007-06-09  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64062         (CHAR_T): Remove macro.
64063         (VASNPRINTF): Update.
64064
64065 2007-06-09  Bruno Haible  <bruno@clisp.org>
64066
64067         * MODULES.html.sh (Unicode string functions): Add the new modules.
64068
64069         * modules/uniconv/u32-conv-to-enc: New file.
64070         * lib/uniconv/u32-conv-to-enc.c: New file.
64071         * modules/uniconv/u32-conv-to-enc-tests: New file.
64072         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64073
64074         * modules/uniconv/u16-conv-to-enc: New file.
64075         * lib/uniconv/u16-conv-to-enc.c: New file.
64076         * lib/uniconv/u-conv-to-enc.h: New file.
64077         * modules/uniconv/u16-conv-to-enc-tests: New file.
64078         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64079
64080         * modules/uniconv/u8-conv-to-enc: New file.
64081         * lib/uniconv/u8-conv-to-enc.c: New file.
64082         * modules/uniconv/u8-conv-to-enc-tests: New file.
64083         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64084
64085         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64086         u32_conv_to_encoding): New declarations.
64087
64088 2007-06-09  Bruno Haible  <bruno@clisp.org>
64089
64090         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64091
64092 2007-06-09  Bruno Haible  <bruno@clisp.org>
64093
64094         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64095         * modules/malloca: Renamed from modules/allocsa, updated.
64096         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64097         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64098         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64099         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64100         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64101         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64102         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64103         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64104         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64105         * modules/c-strcasestr (Depends-on): Update.
64106         * lib/c-strcasestr.c: Update.
64107         * modules/c-strstr (Depends-on): Update.
64108         * lib/c-strstr.c: Update.
64109         * modules/canonicalize-lgpl (Depends-on): Update.
64110         * lib/canonicalize-lgpl.c: Update.
64111         * modules/clean-temp (Depends-on): Update.
64112         * lib/clean-temp.c: Update.
64113         * modules/csharpcomp (Depends-on): Update.
64114         * lib/csharpcomp.c: Update.
64115         * modules/csharpexec (Depends-on): Update.
64116         * lib/csharpexec.c: Update.
64117         * modules/javacomp (Depends-on): Update.
64118         * lib/javacomp.c: Update.
64119         * modules/javaexec (Depends-on): Update.
64120         * lib/javaexec.c: Update.
64121         * modules/mbscasestr (Depends-on): Update.
64122         * lib/mbscasestr.c: Update.
64123         * modules/mbsstr (Depends-on): Update.
64124         * lib/mbsstr.c: Update.
64125         * modules/setenv (Depends-on): Update.
64126         * lib/setenv.c: Update.
64127         * modules/strcasestr (Depends-on): Update.
64128         * lib/strcasestr.c: Update.
64129         * modules/striconveha (Depends-on): Update.
64130         * lib/striconveha.c: Update.
64131         * modules/relocatable-prog-wrapper (Files): Update.
64132         * lib/relocwrapper.c: Update.
64133         * build-aux/install-reloc: Update.
64134         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64135
64136 2007-06-08  Bruno Haible  <bruno@clisp.org>
64137
64138         Port to uClibc.
64139         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64140         * lib/fpurge.c (fpurge): Likewise.
64141         * lib/freading.c (freading): Likewise.
64142         * lib/fseeko.c (rpl_fseeko): Likewise.
64143         * lib/fseterr.c (fseterr): Likewise.
64144         * lib/fwriting.c (fwriting): Likewise.
64145         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64146
64147 2007-06-08  Bruno Haible  <bruno@clisp.org>
64148
64149         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64150         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64151         * modules/gettext (Files): Add m4/intlmacosx.m4.
64152
64153 2007-06-07  Bruno Haible  <bruno@clisp.org>
64154
64155         * modules/localename-tests: New file.
64156         * tests/test-localename.c: New file.
64157
64158         New module 'localename'.
64159         * lib/localename.h: New file.
64160         * lib/localename.c: New file, from GNU gettext.
64161         * m4/localename.m4: New file.
64162         * modules/localename: New file.
64163
64164 2007-06-07  Bruno Haible  <bruno@clisp.org>
64165
64166         Work around the lack of <wchar.h> on some builds of uClibc.
64167         * doc/headers/wchar.texi: Update.
64168         * lib/wchar_.h: Include <wchar.h> only if it exists.
64169         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64170         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64171         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64172         doesn't exist.
64173         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64174         * modules/mbfile (Depends-on): Add wchar.
64175         * modules/mbiter (Depends-on): Likewise.
64176         * modules/mbuiter (Depends-on): Likewise.
64177         Reported by Simon Josefsson.
64178
64179 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64180
64181         Work around problem reported by Steven M. Schweda in
64182         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64183         Tru64 5.1B with the Compaq compiler environment installed declares
64184         an 'isblank' function but does not define it in the C library.
64185         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64186         * lib/regex_internal.h (isblank): Likewise.
64187         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64188         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64189
64190 2007-06-05  Bruno Haible  <bruno@clisp.org>
64191
64192         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64193         ia64.
64194         * modules/printf-safe: New file.
64195         * modules/fprintf-posix (Depends-on): Add printf-safe.
64196         * modules/printf-posix (Depends-on): Likewise.
64197         * modules/snprintf-posix (Depends-on): Likewise.
64198         * modules/sprintf-posix (Depends-on): Likewise.
64199         * modules/vasnprintf-posix (Depends-on): Likewise.
64200         * modules/vasprintf-posix (Depends-on): Likewise.
64201         * modules/vfprintf-posix (Depends-on): Likewise.
64202         * modules/vprintf-posix (Depends-on): Likewise.
64203         * modules/vsnprintf-posix (Depends-on): Likewise.
64204         * modules/vsprintf-posix (Depends-on): Likewise.
64205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64206         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64207         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64208         "no" on i386, x86_64, ia64.
64209         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64211         on i386, x86_64, ia64.
64212         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64214         on i386, x86_64, ia64.
64215         * tests/test-vasnprintf-posix.c: Include float.h.
64216         (LDBL80_WORDS): New macro.
64217         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64218         on i386, x86_64, ia64.
64219         * tests/test-vasprintf-posix.c: Include float.h.
64220         (LDBL80_WORDS): New macro.
64221         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64222         on i386, x86_64, ia64.
64223         * tests/test-snprintf-posix.c: Include float.h.
64224         * tests/test-sprintf-posix.c: Likewise.
64225         * tests/test-vsnprintf-posix.c: Likewise.
64226         * tests/test-vsprintf-posix.c: Likewise.
64227
64228 2007-06-05  Bruno Haible  <bruno@clisp.org>
64229
64230         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64232         non-IEEE numbers on i386, x86_64, ia64.
64233         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64234         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64235         * tests/test-isnanl.h: Include float.h.
64236         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64237
64238 2007-06-05  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64241         also the %a / %A. Handle the %a / %A code before this extra handling.
64242
64243 2007-06-05  Bruno Haible  <bruno@clisp.org>
64244
64245         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64246         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64247
64248 2007-06-05  Bruno Haible  <bruno@clisp.org>
64249
64250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64251         typo in variable name.
64252
64253 2007-06-05  Eric Blake  <ebb9@byu.net>
64254
64255         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64256         Reported by Simon Josefsson.
64257
64258 2007-06-04  Bruno Haible  <bruno@clisp.org>
64259
64260         Avoid test failures on some PowerPC platforms.
64261         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64262         Define differently for PowerPC.
64263         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64264         Reported by Gary V. Vaughan <gary@gnu.org>.
64265
64266 2007-06-02  Bruno Haible  <bruno@clisp.org>
64267
64268         Fix test-stdint failure on FreeBSD/ia64.
64269         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64270         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64271         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64272         * doc/headers/stdint.texi: Update.
64273
64274 2007-06-01  Bruno Haible  <bruno@clisp.org>
64275
64276         * tests/test-binary-io.c (main): Pass a third argument to open().
64277         Reported by Gary V. Vaughan <gary@gnu.org>.
64278
64279 2007-06-01  Bruno Haible  <bruno@clisp.org>
64280
64281         * doc/functions/frexpl.texi: Update for mingw.
64282
64283 2007-06-01  Bruno Haible  <bruno@clisp.org>
64284
64285         * tests/test-lseek.c (main): Disable test of errno for invalid third
64286         argument.
64287         * doc/functions/lseek.texi: Update.
64288         Reported by Gary V. Vaughan <gary@gnu.org>.
64289
64290 2007-05-28  Bruno Haible  <bruno@clisp.org>
64291
64292         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64293
64294 2007-05-31  Eric Blake  <ebb9@byu.net>
64295
64296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64297         cross compiling.
64298
64299 2007-05-30  Eric Blake  <ebb9@byu.net>
64300         and Bruno Haible  <bruno@clisp.org>
64301
64302         Work around mingw test failures exposed by m4-1.4.9b.
64303         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64304         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64305         moment.
64306
64307 2007-05-30  Bruno Haible  <bruno@clisp.org>
64308
64309         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64310         assuming that they are closed. Needed on HP-UX 11.
64311
64312 2007-05-29  Bruno Haible  <bruno@clisp.org>
64313
64314         Fix a problem with #include_next.
64315         * lib/dirent_.h: Split the double-inclusion guard.
64316         * lib/fcntl_.h: Likewise.
64317         * lib/float_.h: Likewise.
64318         * lib/iconv_.h: Likewise.
64319         * lib/inttypes_.h: Likewise.
64320         * lib/locale_.h: Likewise.
64321         * lib/math_.h: Likewise.
64322         * lib/netinet_in_.h: Likewise.
64323         * lib/search_.h: Likewise.
64324         * lib/signal_.h: Likewise.
64325         * lib/stdint_.h: Likewise.
64326         * lib/stdio_.h: Likewise.
64327         * lib/stdlib_.h: Likewise.
64328         * lib/string_.h: Likewise.
64329         * lib/sys_select_.h: Likewise.
64330         * lib/sys_socket_.h: Likewise.
64331         * lib/sys_stat_.h: Likewise.
64332         * lib/sys_time_.h: Likewise.
64333         * lib/sysexits_.h: Likewise.
64334         * lib/time_.h: Likewise.
64335         * lib/unistd_.h: Likewise.
64336         * lib/wchar_.h: Likewise.
64337         * lib/wctype_.h: Likewise.
64338
64339 2007-05-29  Bruno Haible  <bruno@clisp.org>
64340
64341         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64342         for the moment.
64343
64344 2007-05-29  Bruno Haible  <bruno@clisp.org>
64345
64346         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64347         invocation.
64348         Reported by Eric Blake.
64349
64350 2007-05-29  Bruno Haible  <bruno@clisp.org>
64351
64352         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64353         compiling case.
64354
64355 2007-05-29  Eric Blake  <ebb9@byu.net>
64356             Bruno Haible  <bruno@clisp.org>
64357
64358         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64359         cross compiles.
64360
64361 2007-05-28  Eric Blake  <ebb9@byu.net>
64362
64363         * modules/closein-tests (test_closein_LDADD): Support test on
64364         cygwin with libtool.
64365
64366 2007-05-28  Bruno Haible  <bruno@clisp.org>
64367
64368         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64369         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64370         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64371         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64372         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64373         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64374         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64375         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64376         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64377
64378 2007-05-28  Eric Blake  <ebb9@byu.net>
64379
64380         Unconditionally include <config.h> in unit tests.
64381         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64382         * tests/test-allocsa.c, tests/test-arcfour.c,
64383         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64384         tests/test-array_list.c, tests/test-array_oset.c,
64385         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64386         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64387         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64388         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64389         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64390         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64391         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64392         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64393         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64394         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64395         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64396         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64397         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64398         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64399         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64400         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64401         test-md5.c, test-memmem.c, test-printf-posix.c,
64402         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64403         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64404         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64405         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64406         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64407         test-vasnprintf-posix2.c, test-vasnprintf.c,
64408         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64409         test-vfprintf-posix.c, test-vprintf-posix.c,
64410         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64411         test-xvasprintf.c: Likewise.
64412
64413 2007-05-28  Bruno Haible  <bruno@clisp.org>
64414
64415         * gnulib-tool (func_import): Remember the --with-tests command-line
64416         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64417         Reported by Eric Blake.
64418
64419 2007-05-28  Bruno Haible  <bruno@clisp.org>
64420
64421         * modules/ftell-tests: New file.
64422         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64423         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64424
64425         * lib/ftell.c: New file.
64426         * modules/ftell: New file.
64427         * m4/ftell.m4: New file.
64428         * doc/functions/ftell.texi: Update.
64429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64430         REPLACE_FTELL.
64431         * lib/stdio_.h (rpl_ftell): New declaration.
64432         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64433         REPLACE_FTELL.
64434
64435 2007-05-28  Eric Blake  <ebb9@byu.net>
64436
64437         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64438
64439 2007-05-28  Bruno Haible  <bruno@clisp.org>
64440
64441         * modules/fseek-tests: New file.
64442         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64443         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64444
64445         * lib/fseek.c: New file.
64446         * modules/fseek: New file.
64447         * m4/fseek.m4: New file.
64448         * doc/functions/fseek.texi: Update.
64449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64450         REPLACE_FSEEK.
64451         * lib/stdio_.h (rpl_fseek): New declaration.
64452         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64453         REPLACE_FSEEK.
64454
64455 2007-05-28  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/stdio_.h (fflush): More comments.
64458
64459 2007-05-28  Bruno Haible  <bruno@clisp.org>
64460
64461         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64462         runtime test.
64463
64464 2007-05-28  Eric Blake  <ebb9@byu.net>
64465
64466         Improve lseek module.
64467         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64468         * lib/unistd_.h (lseek): Scale back link warning message.
64469         * tests/test-lseek.c: Beef up test.
64470         * tests/test-lseek.sh: Exercise more facets of lseek.
64471         Reported by Bruno Haible.
64472
64473 2007-05-28  Bruno Haible  <bruno@clisp.org>
64474
64475         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64476         to define.
64477
64478 2007-05-27  Bruno Haible  <bruno@clisp.org>
64479
64480         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64481
64482 2007-05-27  Bruno Haible  <bruno@clisp.org>
64483
64484         * modules/openmp: New file.
64485         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64486         Noah Misch.
64487
64488 2007-05-26  Bruno Haible  <bruno@clisp.org>
64489
64490         * modules/chdir-long (Depends-on): Add fchdir.
64491         * modules/chdir-safer (Depends-on): Likewise.
64492         * modules/fts (Depends-on): Likewise.
64493         * modules/fts-lgpl (Depends-on): Likewise.
64494         * modules/openat (Depends-on): Likewise.
64495         * modules/savewd (Depends-on): Likewise.
64496
64497 2007-05-24  Eric Blake  <ebb9@byu.net>
64498
64499         Fix lseek on mingw.
64500         * modules/lseek: New module.
64501         * m4/lseek.m4: New file.
64502         * lib/lseek.c: New file.
64503         * modules/lseek-tests: New file.
64504         * tests/test-lseek.c: New file.
64505         * tests/test-lseek.sh: New file.
64506         * MODULES.html.sh: Document lseek module.
64507         * modules/fflush (Depends-on): Add lseek, fseeko.
64508         * modules/fseeko (Depends-on): Likewise.
64509         * modules/ftello (Depends-on): Likewise.
64510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64511         broken.
64512         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64513         broken.
64514         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64515         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64516         * lib/ftello.c (rpl_ftello): Likewise.
64517         * tests/test-fseeko.c (main): Test this.
64518         * tests/test-fseeko.sh: Likewise.
64519         * tests/test-ftello.c (main): Likewise.
64520         * tests/test-ftello.sh: Likewise.
64521         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64522         implies replacing fseek.
64523         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64524         HAVE_FTELLO.
64525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64526         * modules/unistd (Makefile.am): Likewise.
64527         * lib/unistd_.h (lseek): Declare a replacement.
64528         * doc/functions/lseek.texi (lseek): Document this fix.
64529         * doc/functions/fseek.texi (fseek): Likewise.
64530         * doc/functions/ftell.texi (ftell): Likewise.
64531
64532 2007-05-24  Bruno Haible  <bruno@clisp.org>
64533
64534         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64535         in the printed representation of a NaN.
64536         * tests/test-vasprintf-posix.c (test_function): Likewise.
64537         * tests/test-snprintf-posix.h (test_function): Likewise.
64538         * tests/test-sprintf-posix.h (test_function): Likewise.
64539         Reported by Eric Blake.
64540
64541 2007-05-23  Eric Blake  <ebb9@byu.net>
64542
64543         Fix fseeko/ftello on cygwin 1.5.24.
64544         * doc/functions/fseeko.texi (fseeko): Document the fix.
64545         * doc/functions/ftello.texi (ftello): Document the fix.
64546         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64547         * doc/functions/stdout.text (stdout): New file.
64548         * doc/functions/stderr.text (stderr): New file.
64549         * doc/gnulib.texi (Function Substitutes): Use new files.
64550         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64551         prior to 1.7.0.
64552         * tests/test-ftello.c (main): Likewise for ftello.
64553         * tests/test-fseeko.sh: New file.
64554         * tests/test-ftello.sh: New file.
64555         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64556         with seekable stdin.
64557         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64559         (gl_REPLACE_FSEEKO): New macro.
64560         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64561         * modules/fseeko (Files): Distribute fseeko.c.
64562         * modules/ftello (Files): Distribute ftello.c.
64563         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64564         mode.
64565         * lib/ftello.c (rpl_ftello): New file.
64566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64567         fseeko, ftello.
64568         (gl_STDIN_LARGE_OFFSET): New macro.
64569         * modules/stdio (Makefile.am): Perform the replacement.
64570         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64571
64572 2007-05-23  Bruno Haible  <bruno@clisp.org>
64573
64574         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64575         GNULIB_POSIXCHECK is defined.
64576
64577 2007-05-21  Bruno Haible  <bruno@clisp.org>
64578
64579         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64580         Check also the output for NaN arguments. When cross-compiling, guess
64581         no on IRIX.
64582         * lib/vasnprintf.c: Update comments.
64583         * tests/test-vasnprintf-posix.c (strisnan): New function.
64584         (test_function): Use it.
64585         * tests/test-vasprintf-posix.c (strisnan): New function.
64586         (test_function): Use it.
64587         * tests/test-snprintf-posix.h (strisnan): New function.
64588         (test_function): Use it.
64589         * tests/test-sprintf-posix.h (strisnan): New function.
64590         (test_function): Use it.
64591         Reported by Eric Blake.
64592
64593 2007-05-20  Bruno Haible  <bruno@clisp.org>
64594
64595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64596         numbers that fails on BeOS.
64597         * doc/functions/frexpl.texi: Update.
64598
64599 2007-05-20  Jim Meyering  <jim@meyering.net>
64600
64601         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64602         forced upon us by glibc-2.6.
64603
64604 2007-05-20  Bruno Haible  <bruno@clisp.org>
64605
64606         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64607         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64608         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64609         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64610         NEED_PRINTF_INFINITE.
64611         (is_infinitel): New function.
64612         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64614         gl_PREREQ_VASNPRINTF_INFINITE.
64615         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64617         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64618         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64619         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64620         gl_PREREQ_VASNPRINTF_INFINITE.
64621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64628         * doc/functions/fprintf.texi: Update.
64629         * doc/functions/printf.texi: Update.
64630         * doc/functions/snprintf.texi: Update.
64631         * doc/functions/sprintf.texi: Update.
64632         * doc/functions/vfprintf.texi: Update.
64633         * doc/functions/vprintf.texi: Update.
64634         * doc/functions/vsnprintf.texi: Update.
64635         * doc/functions/vsprintf.texi: Update.
64636
64637 2007-05-20  Bruno Haible  <bruno@clisp.org>
64638
64639         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64640         was not found in libc.
64641         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64642
64643 2007-05-20  Bruno Haible  <bruno@clisp.org>
64644
64645         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64646         printed as "-nan" instead of "nan".
64647         * tests/test-vasprintf-posix.c (test_function): Likewise.
64648         * tests/test-snprintf-posix.h (test_function): Likewise.
64649         * tests/test-sprintf-posix.h (test_function): Likewise.
64650         Needed for HP-UX 11.
64651
64652 2007-05-20  Jim Meyering  <jim@meyering.net>
64653
64654         Fix buggy test for the fchownat-deref bug.
64655         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64656         symlink required for the run-test.  Without it, this test would
64657         always declare that fchownat doesn't work, and client code would
64658         unnecessarily use the replacement function with fixed libc.
64659         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64660         Reported by Greg Schafer.
64661
64662 2007-05-19  Bruno Haible  <bruno@clisp.org>
64663
64664         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64665         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64666         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64667         Needed for IRIX 6.5 and Solaris 2.5.1.
64668
64669 2007-05-19  Bruno Haible  <bruno@clisp.org>
64670
64671         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64672         (test_function): Skip tests involving -0.0 on platforms where
64673         -0.0 = 0.0.
64674         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64675         (test_function): Skip tests involving -0.0 on platforms where
64676         -0.0 = 0.0.
64677         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64678         (test_function): Skip tests involving -0.0 on platforms where
64679         -0.0 = 0.0.
64680         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64681         (test_function): Skip tests involving -0.0 on platforms where
64682         -0.0 = 0.0.
64683         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64684         tests.
64685         * tests/test-printf-posix.h (test_function): Likewise.
64686         * tests/test-printf-posix.output: Remove all -0.0 related results.
64687         Needed for IRIX 6.5.
64688
64689 2007-05-19  Bruno Haible  <bruno@clisp.org>
64690
64691         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64692         printed as "nan0x7fffffff" instead of "nan".
64693         * tests/test-vasprintf-posix.c (test_function): Likewise.
64694         * tests/test-snprintf-posix.h (test_function): Likewise.
64695         * tests/test-sprintf-posix.h (test_function): Likewise.
64696         * tests/test-fprintf-posix.h (NaN): Remove macro.
64697         (test_function): Remove all NaN related tests.
64698         * tests/test-printf-posix.h (NaN): Remove macro.
64699         (test_function): Remove all NaN related tests.
64700         * tests/test-printf-posix.output: Remove all NaN related results.
64701         Needed for IRIX 6.5.
64702
64703 2007-05-19  Bruno Haible  <bruno@clisp.org>
64704
64705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64707
64708 2007-05-19  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/float_.h: New file.
64711         * m4/float_h.m4: New file.
64712         * modules/float: New file.
64713         * modules/isnanl (Dependencies): Add float.
64714         * modules/isnanl-nolibm (Dependencies): Likewise.
64715         * modules/mathl (Dependencies): Likewise.
64716         * modules/printf-frexpl (Dependencies): Likewise.
64717         * modules/signbit (Dependencies): Likewise.
64718         * modules/vasnprintf (Dependencies): Likewise.
64719         * doc/headers/float.texi: Update.
64720
64721 2007-05-19  Jim Meyering  <jim@meyering.net>
64722
64723         * lib/utimens.c (gl_futimens): Rename from futimens,
64724         now that glibc-2.6 declares futimens.
64725         * lib/utimens.h: Likewise.
64726
64727 2007-05-19  Bruno Haible  <bruno@clisp.org>
64728
64729         Avoid test failures on mingw.
64730         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64731         * tests/test-printf-posix.sh: Likewise.
64732         * tests/test-vfprintf-posix.sh: Likewise.
64733         * tests/test-vprintf-posix.sh: Likewise.
64734
64735 2007-05-19  Bruno Haible  <bruno@clisp.org>
64736
64737         Fix *printf result for NaN, Inf, -0.0 on mingw.
64738         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64739         * lib/vasnprintf.c: Include math.h and isnan.h.
64740         (is_infinite_or_zero): New function.
64741         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64742         values in the %f, %F, %e, %E, %g, %G directives.
64743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64745         gl_PRINTF_INFINITE and test its result. Invoke
64746         gl_PREREQ_VASNPRINTF_INFINITE.
64747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64754         * doc/functions/fprintf.texi: Update.
64755         * doc/functions/printf.texi: Update.
64756         * doc/functions/snprintf.texi: Update.
64757         * doc/functions/sprintf.texi: Update.
64758         * doc/functions/vfprintf.texi: Update.
64759         * doc/functions/vprintf.texi: Update.
64760         * doc/functions/vsnprintf.texi: Update.
64761         * doc/functions/vsprintf.texi: Update.
64762
64763 2007-05-19  Bruno Haible  <bruno@clisp.org>
64764
64765         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64766         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64767         Instead of multiplying with 10^k, set extra_zeroes to k.
64768         (scale10_round_long_double): Remove function.
64769
64770 2007-05-18  Bruno Haible  <bruno@clisp.org>
64771
64772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64773         introduced on 2007-05-06.
64774
64775 2007-05-18  Bruno Haible  <bruno@clisp.org>
64776
64777         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64778         %g directives.
64779         * tests/test-vasprintf-posix.c (test_function): Likewise.
64780         * tests/test-snprintf-posix.h (test_function): Likewise.
64781         * tests/test-sprintf-posix.h (test_function): Likewise.
64782
64783 2007-05-18  Bruno Haible  <bruno@clisp.org>
64784
64785         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64786         (strmatch): New function.
64787         (test_function): Test the %f directive on numbers of various exponents.
64788         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64789         (strmatch): New function.
64790         (test_function): Test the %f directive on numbers of various exponents.
64791         * tests/test-snprintf-posix.h (strmatch): New function.
64792         (test_function): Test the %f directive on numbers of various exponents.
64793         * tests/test-sprintf-posix.h (strmatch): New function.
64794         (test_function): Test the %f directive on numbers of various exponents.
64795         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64796         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64797         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64798         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64799
64800 2007-05-18  Bruno Haible  <bruno@clisp.org>
64801
64802         Add support for 'long double' number output.
64803         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64804         * lib/vasnprintf.c: Include math.h and float+.h.
64805         (mp_limb_t): New type.
64806         (GMP_LIMB_BITS): New macro.
64807         (mp_twolimb_t): New type.
64808         (GMP_TWOLIMB_BITS): New macro.
64809         (mpn_t): New type.
64810         (multiply, divide, convert_to_decimal, decode_long_double,
64811         scale10_round_long_double, scale10_round_decimal_long_double,
64812         floorlog10l): New functions.
64813         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64814         for the %f, %F, %e, %E, %g, %G directives.
64815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64817         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64818         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64826         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64827         * modules/snprintf-posix (Depends-on): Likewise.
64828         * modules/sprintf-posix (Depends-on): Likewise.
64829         * modules/vasnprintf-posix (Depends-on): Likewise.
64830         * modules/vasprintf-posix (Depends-on): Likewise.
64831         * modules/vfprintf-posix (Depends-on): Likewise.
64832         * modules/vsnprintf-posix (Depends-on): Likewise.
64833         * modules/vsprintf-posix (Depends-on): Likewise.
64834         * modules/vasnprintf (Files): Add lib/float+.h.
64835         * doc/functions/fprintf.texi: Update.
64836         * doc/functions/printf.texi: Update.
64837         * doc/functions/snprintf.texi: Update.
64838         * doc/functions/sprintf.texi: Update.
64839         * doc/functions/vfprintf.texi: Update.
64840         * doc/functions/vprintf.texi: Update.
64841         * doc/functions/vsnprintf.texi: Update.
64842         * doc/functions/vsprintf.texi: Update.
64843
64844 2007-05-18  Bruno Haible  <bruno@clisp.org>
64845
64846         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64847
64848 2007-05-18  Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64851         for printing 64-bit integers. Needed for mingw.
64852
64853 2007-05-18  Bruno Haible  <bruno@clisp.org>
64854
64855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64856         gl_FUNC_FREXPL_WORKS.
64857         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64858
64859 2007-05-18  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/frexpl-nolibm-tests: New file.
64862
64863         * modules/frexpl-nolibm: New file.
64864         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64865
64866 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64869         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64870         GCC 4.2, which otherwise issues a lot of warnings.
64871         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64872         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64873         Likewise.
64874         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64875         * modules/iconv_open (iconv.h): Likewise.
64876         * modules/locale (locale.h): Likewise.
64877         * modules/netinet_in (netinet/in.h): Likewise.
64878         * modules/sys_select (sys_select.h): Likewise.
64879         * modules/sys_socket (sys/socket.h): Likewise.
64880         * modules/sys_stat (sys/stat.h): Likewise.
64881         * modules/sysexits (sysexits.h): Likewise.
64882         * modules/unistd (unistd.h): Likewise.
64883
64884 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64885
64886         * modules/closein-tests (Makefile.am): Distribute
64887         `test-closein.sh'.
64888
64889 2007-05-17  Bruno Haible  <bruno@clisp.org>
64890
64891         * tests/test-printf-posix.output: Renamed from
64892         tests/test-fprintf-posix.out.
64893         * modules/fprintf-posix-tests: Update.
64894         * modules/printf-posix-tests: Update.
64895         * modules/vfprintf-posix-tests: Update.
64896         * modules/vprintf-posix-tests: Update.
64897         * tests/test-fprintf-posix.sh: Update.
64898         * tests/test-printf-posix.sh: Update.
64899         * tests/test-vfprintf-posix.sh: Update.
64900         * tests/test-vprintf-posix.sh: Update.
64901         Reported by Ralf Wildenhues.
64902
64903 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64906         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64907         GCC 4.2, which otherwise issues a lot of warnings.
64908         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64909         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64910         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64911         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64912         it should no longer be needed.
64913         * lib/string_.h: Likewise.
64914         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64915         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64916         * modules/inttypes (inttypes.h): Likewise.
64917         * modules/math (math.h): Likewise.
64918         * modules/search (search.h): Likewise.
64919         * modules/signal (signal.h): Likewise.
64920         * modules/stdint (stdint.h): Likewise.
64921         * modules/stdio (stdio.h): Likewise.
64922         * modules/stdlib (stdlib.h): Likewise.
64923         * modules/string (string.h): Likewise.
64924         * modules/sys_time (sys/time.h): Likewise.
64925         * modules/time (time.h): Likewise.
64926         * modules/wchar (wchar.h): Likewise.
64927         * modules/wctype (wtype.h): Likewise.
64928
64929 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64930
64931         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64932
64933 2007-05-13  Bruno Haible  <bruno@clisp.org>
64934
64935         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64936         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64937         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64938         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64939         (gl_PREREQ_STRTOK_R): Don't require it here.
64940
64941 2007-05-13  Bruno Haible  <bruno@clisp.org>
64942
64943         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64944         when used in C++ mode.
64945
64946 2007-05-12  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/linebuffer.h: Tweak doc.
64949         * lib/linebuffer.c: Likewise.
64950
64951 2007-05-12  James Youngman  <jay@gnu.org>
64952
64953         * lib/linebuffer.c (readlinebuffer_delim): New function,
64954         like readlinebuffer, but use a caller-specified delimiter.
64955         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64956         as the delimiter.
64957         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64958
64959 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64960
64961         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64962         * modules/openat (Files): Remove openat-die.c.
64963         (Depends-on): Add openat-die.
64964         * modules/openat-die: New module.
64965
64966 2007-05-06  Bruno Haible  <bruno@clisp.org>
64967
64968         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64969         Update with info about Cygwin.
64970         * doc/functions/fprintf.texi: Update.
64971         * doc/functions/printf.texi: Update.
64972         * doc/functions/snprintf.texi: Update.
64973         * doc/functions/sprintf.texi: Update.
64974         * doc/functions/vfprintf.texi: Update.
64975         * doc/functions/vprintf.texi: Update.
64976         * doc/functions/vsnprintf.texi: Update.
64977         * doc/functions/vsprintf.texi: Update.
64978         Reported by Eric Blake.
64979
64980 2007-05-06  Bruno Haible  <bruno@clisp.org>
64981
64982         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64983         padding ourselves for the floating-point directives.
64984         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64987         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64988         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64996         * tests/test-snprintf-posix.h (test_function): Also check the width
64997         and some flags in the %f directive.
64998         * tests/test-sprintf-posix.h (test_function): Likewise.
64999         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65000         * tests/test-vasprintf-posix.c (test_function): Likewise.
65001         * doc/functions/fprintf.texi: Update.
65002         * doc/functions/printf.texi: Update.
65003         * doc/functions/snprintf.texi: Update.
65004         * doc/functions/sprintf.texi: Update.
65005         * doc/functions/vfprintf.texi: Update.
65006         * doc/functions/vprintf.texi: Update.
65007         * doc/functions/vsnprintf.texi: Update.
65008         * doc/functions/vsprintf.texi: Update.
65009
65010 2007-05-06  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65013         pass the ' flag character to sprintf or snprintf.
65014         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65017         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65018         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65025         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65026         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65027         flag.
65028         * tests/test-sprintf-posix.h (test_function): Likewise.
65029         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65030         * tests/test-vasprintf-posix.c (test_function): Likewise.
65031         * doc/functions/fprintf.texi: Update.
65032         * doc/functions/printf.texi: Update.
65033         * doc/functions/snprintf.texi: Update.
65034         * doc/functions/sprintf.texi: Update.
65035         * doc/functions/vfprintf.texi: Update.
65036         * doc/functions/vprintf.texi: Update.
65037         * doc/functions/vsnprintf.texi: Update.
65038         * doc/functions/vsprintf.texi: Update.
65039
65040 2007-05-01  Bruno Haible  <bruno@clisp.org>
65041
65042         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65043
65044 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65047         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65048
65049 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65052         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65054
65055 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65056
65057         * lib/argp-help.c (struct hol_entry): New member `ord'.
65058         (HOL_ENTRY_PTRCMP): Use ord for comparison
65059         (hol_sort): Initialize ord.
65060
65061 2007-05-01  Bruno Haible  <bruno@clisp.org>
65062
65063         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65064         Reported by Eric Blake.
65065         * doc/gnulib.texi (Function Substitutes): Update.
65066
65067 2007-05-01  Bruno Haible  <bruno@clisp.org>
65068
65069         * doc/functions.texi: Remove file, now redundant through
65070         doc/functions/*.texi.
65071
65072 2007-05-01  Bruno Haible  <bruno@clisp.org>
65073
65074         * modules/argp (Depends-on): Add sleep.
65075
65076 2007-05-01  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/sleep-tests: New file.
65079         * tests/test-sleep.c: New file.
65080
65081         * modules/sleep: New file.
65082         * lib/sleep.c: New file.
65083         * m4/sleep.m4: New file.
65084         * lib/unistd_.h (sleep): New declaration.
65085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65086         HAVE_SLEEP.
65087         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65088         * doc/functions/sleep.texi: Document the sleep module.
65089
65090 2007-05-01  Bruno Haible  <bruno@clisp.org>
65091
65092         * lib/sigprocmask.h: Remove file.
65093         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65094         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65095         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65096         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65097         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65098         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65099         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65100         HAVE_SIGSET_T as a shell variable.
65101         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65102         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65103         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65104         (Depends-on): Add signal. Remove verify.
65105         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65106         (Include): Mention <signal.h> instead of sigprocmask.h.
65107         * NEWS: Mention the change.
65108         * lib/fatal-signal.c: Don't include sigprocmask.h.
65109
65110 2007-05-01  Bruno Haible  <bruno@clisp.org>
65111
65112         * modules/signal: New file.
65113         * lib/signal_.h: New file.
65114         * m4/signal_h.m4: New file.
65115
65116 2007-05-01  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65119         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65120         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65121         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65122
65123 2007-05-01  Bruno Haible  <bruno@clisp.org>
65124
65125         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65126         configure time.
65127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65128         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65129         * modules/sys_stat (Makefile.am): Substitute their values into
65130         sys/stat.h.
65131
65132 2007-05-01  Bruno Haible  <bruno@clisp.org>
65133
65134         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65135         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65136         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65137
65138 2007-05-01  Bruno Haible  <bruno@clisp.org>
65139
65140         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65141         'assert' module here.
65142
65143 2007-05-01  Bruno Haible  <bruno@clisp.org>
65144
65145         * doc/functions/*.texi: New files.
65146         * doc/functions/google-ranking.txt: New file.
65147         * doc/gnulib.texi (Function Substitutes): New chapter.
65148         (ctime, inet_ntoa): Remove sections.
65149         * doc/ctime.texi: Remove file.
65150         * doc/inet_ntoa.texi: Remove file.
65151         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65152         dependencies.
65153         (%.info): New rule, specifying a --reference-limit.
65154
65155 2007-05-01  Bruno Haible  <bruno@clisp.org>
65156
65157         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65158
65159 2007-05-01  Bruno Haible  <bruno@clisp.org>
65160
65161         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65162         the portability of 'mkdir' to mingw systems.
65163
65164 2007-05-01  Bruno Haible  <bruno@clisp.org>
65165
65166         * doc/headers/google-ranking.txt: New file.
65167
65168 2007-04-30  Eric Blake  <ebb9@byu.net>
65169
65170         Prefer fseeko to fseek.
65171         * modules/getpass (Depends-on): Add fseeko.
65172         * lib/getpass.c (getpass): Use fseeko, not fseek.
65173
65174 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65175
65176         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65177         assumes the sorting is stable, while most qsort implementations
65178         are not.  Use argument addresses to ensure they never compare as
65179         equal.
65180
65181         * tests/test-argp-2.sh (usage-indent test): Fix output
65182         (func_compare): Restore diff options
65183         * tests/test-argp.c: Restore #include "progname.h"
65184
65185 2007-04-29  Bruno Haible  <bruno@clisp.org>
65186
65187         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65189         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65191         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65192         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65193         (TESTS, check_PROGRAMS): Add test-snprintf.
65194         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65195         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65196         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65197         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65198         assertions that fail on HP-UX, OSF/1, or IRIX.
65199         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65200
65201 2007-04-29  Bruno Haible  <bruno@clisp.org>
65202
65203         * MODULES.html.sh (posix_functions): Remove 'contents'.
65204
65205 2007-04-29  Karl Berry  <karl@gnu.org>
65206
65207         * config/srclist.txt (gendocs_template_min): new entry.
65208
65209 2007-04-29  Bruno Haible  <bruno@clisp.org>
65210
65211         Work around fpurge bug on BSD systems.
65212         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65214         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65215         fpurge to rpl_fpurge if the system already has this function.
65216         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65217         the case where the system already has this function. Correct invariants
65218         on BSD systems.
65219         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65220         BSD systems.
65221
65222 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65223
65224         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65225         proposed by Sven Verdoolaege.
65226
65227         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65228         options.
65229         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65230         (usage and help tests): Update
65231
65232 2007-04-29  Bruno Haible  <bruno@clisp.org>
65233
65234         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65235         Print more information in case of failure. Disable a test on BeOS.
65236
65237 2007-04-29  Bruno Haible  <bruno@clisp.org>
65238
65239         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65240         This helps debugging on systems on which no gdb is available.
65241
65242 2007-04-29  Bruno Haible  <bruno@clisp.org>
65243
65244         * lib/freading.h: Improve comments.
65245         * lib/fwriting.h: Likewise.
65246         * tests/test-freading.c (main): Don't check freading immediately after
65247         repositioning. Needed for glibc.
65248
65249 2007-04-29  Bruno Haible  <bruno@clisp.org>
65250
65251         * lib/freading.c (freading): Trivial simplification.
65252
65253 2007-04-28  Bruno Haible  <bruno@clisp.org>
65254
65255         * tests/test-fwriting.c (main): Also test the interaction between
65256         fflush and fwriting.
65257         * modules/fwriting-tests (Depends-on): Add fflush.
65258
65259         * tests/test-freading.c (main): Also test the interaction between
65260         fflush and freading.
65261         * modules/freading-tests (Depends-on): Add fflush.
65262
65263 2007-04-28  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65266         fseeko and ftello.
65267         Suggested by Eric Blake.
65268
65269 2007-04-28  Jim Meyering  <jim@meyering.net>
65270
65271         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65272         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65273         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65274
65275 2007-04-27  Eric Blake  <ebb9@byu.net>
65276
65277         * doc/headers/assert.texi (assert.h): Document assert module use.
65278
65279 2007-04-27  Bruno Haible  <bruno@clisp.org>
65280
65281         * doc/headers/*.texi: New files.
65282         * doc/gnulib.texi (Header File Substitutes): New chapter.
65283         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65284         dependencies.
65285         (standards.info ,standards.html, standards.dvi): Update dependencies.
65286         (mostlyclean, clean): New targets.
65287
65288 2007-04-27  Bruno Haible  <bruno@clisp.org>
65289
65290         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65291         * modules/sysexits (Files, Makefile.am): Update.
65292
65293         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65294         * modules/sys_socket (Files, Makefile.am): Update.
65295
65296         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65297         * modules/sys_stat (Files, Makefile.am): Update.
65298
65299 2007-04-27  Eric Blake  <ebb9@byu.net>
65300
65301         * lib/freading.h: Improve comments.
65302         * lib/fwriting.h: Likewise.
65303         * lib/fflush.c: Likewise.
65304
65305         Fix closein for mingw.
65306         * modules/closein-tests: Add tests for closein.
65307         * tests/test-closein.c: New file.
65308         * tests/test-closein.sh: Likewise.
65309         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65310         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65311
65312 2007-04-27  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65315         version is < 6.
65316         * lib/math_.h [__DECC]: Likewise.
65317         * lib/stdio_.h [__DECC]: Likewise.
65318         * lib/stdlib_.h [__DECC]: Likewise.
65319         * lib/string_.h [__DECC]: Likewise.
65320         * lib/time_.h [__DECC]: Likewise.
65321         * lib/wchar_.h [__DECC]: Likewise.
65322         * lib/wctype_.h [__DECC]: Likewise.
65323
65324 2007-04-27  Bruno Haible  <bruno@clisp.org>
65325
65326         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65327
65328 2007-04-27  Bruno Haible  <bruno@clisp.org>
65329
65330         * lib/fflush.c: Add comments.
65331         * modules/fpurge-tests (Depends-on): Add fflush.
65332         * modules/freadable-tests (Depends-on): Likewise.
65333         * modules/fwritable-tests (Depends-on): Likewise.
65334
65335 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65336
65337         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65338         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65339         Report by Bruno Haible <bruno@clisp.org>.
65340
65341 2007-04-26  Eric Blake  <ebb9@byu.net>
65342
65343         Fix fflush on mingw.
65344         * modules/fflush (Depends-on): Add freading.
65345         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65346         but unread data.
65347
65348 2007-04-26  Eric Blake  <ebb9@byu.net>
65349         and Bruno Haible  <bruno@clisp.org>
65350
65351         Implement freading and fwriting.
65352         * lib/freading.c: New file.
65353         * lib/freading.h: Likewise.
65354         * m4/freading.m4: Likewise.
65355         * modules/freading: Likewise.
65356         * modules/freading-tests: Likewise.
65357         * tests/test-freading.c: Likewise.
65358         * lib/fwriting.c: New file.
65359         * lib/fwriting.h: Likewise.
65360         * m4/fwriting.m4: Likewise.
65361         * modules/fwriting: Likewise.
65362         * modules/fwriting-tests: Likewise.
65363         * tests/test-fwriting.c: Likewise.
65364         * MODULES.html.sh (File stream based Input/Output): Mention them.
65365
65366 2007-04-26  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65369         'long' when we assume it.
65370         Suggested by Eric Blake.
65371
65372 2007-04-26  Bruno Haible  <bruno@clisp.org>
65373
65374         Ensure fseeko, ftello are declared on glibc systems.
65375         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65376         * modules/fseeko (configure.ac-early): Likewise.
65377         * modules/ftello (configure.ac-early): Likewise.
65378         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65379         AC_FUNC_FSEEKO for this.
65380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65381         (gl_CHECK_FSEEKO): Remove macro.
65382
65383 2007-04-26  Bruno Haible  <bruno@clisp.org>
65384
65385         * tests/test-fflush.c (main): Also check the ftell result after
65386         fflush and fseek/fseeko.
65387         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65388         file descriptor position cache in the stream.
65389         * lib/fseeko.c (rpl_fseeko): Likewise.
65390
65391 2007-04-26  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/fflush-tests (Depends-on): Add fseeko.
65394
65395 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65396             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65397
65398         * lib/argz_.h: ensure error_t definition is obtained in same
65399         mechanism system argz.h would have.
65400         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65401         argz facilities are known bad.  Err on the side of caution if
65402         cross-compiling.
65403
65404 2007-04-25  Eric Blake  <ebb9@byu.net>
65405
65406         * lib/fpurge.c (includes): Use stdlib.h for free.
65407         * tests/test-fflush.c (main): Also test fflush-fseeko.
65408
65409 2007-04-25  Bruno Haible  <bruno@clisp.org>
65410
65411         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65412         * lib/fseeko.c: New file.
65413         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65414         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65415         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65416         gl_FUNC_FSEEKO.
65417         (gl_FUNC_FSEEKO): Invoke it.
65418         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65419         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65420         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65421
65422 2007-04-25  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/fflush (Depends-on): Add ftello.
65425
65426 2007-04-25  Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/ftello-tests: New file.
65429         * tests/test-ftello.c: New file.
65430
65431         * modules/ftello: New file.
65432         * m4/ftello.m4: New file.
65433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65434         HAVE_FTELLO.
65435         * lib/stdio_.h (ftello): New declaration.
65436         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65437         HAVE_FTELLO.
65438
65439 2007-04-25  Bruno Haible  <bruno@clisp.org>
65440
65441         * modules/fseeko-tests: New file.
65442         * tests/test-fseeko.c: New file.
65443
65444         * modules/fseeko: New file.
65445         * m4/fseeko.m4: New file.
65446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65447         HAVE_FSEEKO.
65448         * lib/stdio_.h (fseeko): New declaration.
65449         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65450         HAVE_FSEEKO.
65451
65452 2007-04-25  Bruno Haible  <bruno@clisp.org>
65453
65454         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65455
65456 2007-04-25  Bruno Haible  <bruno@clisp.org>
65457
65458         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65459         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65460         * tests/test-unistd.c: Likewise.
65461         * tests/test-fcntl.c: Likewise.
65462
65463 2007-04-23  Eric Blake  <ebb9@byu.net>
65464
65465         * lib/fflush.c: Fix missing include.
65466         Reported by Bruno Haible.
65467
65468 2007-04-23  Bruno Haible  <bruno@clisp.org>
65469
65470         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65471         Reported by Eric Blake.
65472
65473 2007-04-23  Bruno Haible  <bruno@clisp.org>
65474
65475         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65476
65477 2007-04-23  Bruno Haible  <bruno@clisp.org>
65478
65479         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65480
65481 2007-04-23  Bruno Haible  <bruno@clisp.org>
65482
65483         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65484         Needed on HP-UX 11.
65485
65486 2007-04-16  Eric Blake  <ebb9@byu.net>
65487
65488         Make fflush rely on fpurge.
65489         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65490         open coding all variants.
65491         * modules/fflush (Depends-on): Add fpurge and unistd.
65492         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65494
65495         Fix --with-tests compilation on cygwin.
65496         * modules/argmatch-tests (Makefile.am): List gnulib library first
65497         in LDADD.
65498         * modules/argp-tests (Makefile.am): Likewise.
65499         * modules/array-list-tests (Makefile.am): Likewise.
65500         * modules/array-oset-tests (Makefile.am): Likewise.
65501         * modules/avltree-list-tests (Makefile.am): Likewise.
65502         * modules/avltree-oset-tests (Makefile.am): Likewise.
65503         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65504         * modules/carray-list-tests (Makefile.am): Likewise.
65505         * modules/dirname-tests (Makefile.am): Likewise.
65506         * modules/frexp-tests (Makefile.am): Likewise.
65507         * modules/isnanl-tests (Makefile.am): Likewise.
65508         * modules/linked-list-tests (Makefile.am): Likewise.
65509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65510         * modules/lock-tests (Makefile.am): Likewise.
65511         * modules/rbtree-list-tests (Makefile.am): Likewise.
65512         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65514         * modules/tls-tests (Makefile.am): Likewise.
65515         * modules/tsearch-tests (Makefile.am): Likewise.
65516         * modules/xvasprintf-tests (Makefile.am): Likewise.
65517
65518         Fix fpurge for cygwin.
65519         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65520         value.
65521         * modules/fpurge-tests (Depends-on): Clean up trash.
65522
65523 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65524
65525         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65526
65527         * m4/autobuild.m4: Re-indent.
65528
65529 2007-04-13  Bruno Haible  <bruno@clisp.org>
65530
65531         * modules/fpurge-tests: New file.
65532         * tests/test-fpurge.c: New file.
65533
65534         * modules/fpurge: New file.
65535         * lib/fpurge.h: New file.
65536         * lib/fpurge.c: New file.
65537         * m4/fpurge.m4: New file.
65538
65539 2007-04-13  Bruno Haible  <bruno@clisp.org>
65540
65541         * modules/fbufmode-tests: New file.
65542         * tests/test-fbufmode.c: New file.
65543
65544         * modules/fbufmode: New file.
65545         * lib/fbufmode.h: New file.
65546         * lib/fbufmode.c: New file.
65547         * m4/fbufmode.m4: New file.
65548
65549 2007-04-13  Bruno Haible  <bruno@clisp.org>
65550
65551         * modules/fwritable-tests: New file.
65552         * tests/test-fwritable.c: New file.
65553
65554         * modules/fwritable: New file.
65555         * lib/fwritable.h: New file.
65556         * lib/fwritable.c: New file.
65557         * m4/fwritable.m4: New file.
65558
65559 2007-04-13  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/freadable-tests: New file.
65562         * tests/test-freadable.c: New file.
65563
65564         * modules/freadable: New file.
65565         * lib/freadable.h: New file.
65566         * lib/freadable.c: New file.
65567         * m4/freadable.m4: New file.
65568
65569 2007-04-13  Bruno Haible  <bruno@clisp.org>
65570
65571         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65572         MOSTLYCLEANFILES.
65573
65574 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65575
65576         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65577         gzip bootstrap.conf to avoid dragging in i18n machinery.
65578         (gnulib_tool_option): Use it.
65579
65580 2007-04-13  Bruno Haible  <bruno@clisp.org>
65581
65582         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65583         %F directives.
65584         * tests/test-vasprintf-posix.c (test_function): Likewise.
65585         * tests/test-snprintf-posix.h (test_function): Likewise.
65586         * tests/test-sprintf-posix.h (test_function): Likewise.
65587         * tests/test-fprintf-posix.h (test_function): Likewise.
65588         * tests/test-printf-posix.h (test_function): Likewise.
65589         * tests/test-fprintf-posix.out: Likewise.
65590
65591 2007-04-13  Bruno Haible  <bruno@clisp.org>
65592
65593         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65594         * modules/tls-tests (configure.ac): Likewise.
65595         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65596
65597 2007-04-13  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/tls.c (glthread_tls_get): Fix return type.
65600         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65601
65602 2007-04-12  Eric Blake  <ebb9@byu.net>
65603
65604         * modules/gettime (Depends-on): Remove gettime.
65605         Reported by Dmitry V. Levin.
65606
65607 2007-04-12  Bruno Haible  <bruno@clisp.org>
65608
65609         * modules/fflush (Include): Mention <stdio.h>.
65610         * modules/strtoimax (Include): Mention <inttypes.h>.
65611         * modules/strtoumax (Include): Likewise.
65612
65613 2007-04-12  Eric Blake  <ebb9@byu.net>
65614
65615         * .cvsignore: New file.
65616         * .gitignore: Likewise.
65617
65618 2007-04-12  Bruno Haible  <bruno@clisp.org>
65619
65620         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65621         not before, since $(LDADD) often contains libgnu.a.
65622         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65623         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65624         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65625         Needed on Cygwin.
65626
65627 2007-04-12  Eric Blake  <ebb9@byu.net>
65628
65629         Work around glibc's failure to flush stdin on fclose.
65630         * lib/closein.c (close_stdin): Flush stdin before closing.
65631
65632         Work around glibc's failure to reset seekable stdin on exit.
65633         * modules/closein: New module.
65634         * lib/closein.c: New file.
65635         * lib/closein.h: Likewise.
65636         * m4/closein.m4: Likewise.
65637         * MODULES.html.sh (File stream based Input/Output): Document it.
65638
65639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65640
65641         * gnulib-tool: Rename generated 'autobuild' script to
65642         'do-autobuild' in --create-megatestdir output.
65643
65644         * doc/gnulib.texi (Build robot for gnulib): Fix.
65645
65646 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65647
65648         * modules/sysexits (Depends-on): Add absolute-header.
65649
65650 2007-04-12  Eric Blake  <ebb9@byu.net>
65651
65652         No need to preserve errno on success.
65653         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65654         Reported by Bruno Haible.
65655
65656 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65657
65658         * MODULES.html.sh (Support for maintaining and releasing
65659         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65660
65661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65662
65663         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65664
65665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65666
65667         * modules/autobuild: New module.
65668
65669         * m4/autobuild.m4: New file.
65670
65671 2007-04-11  Bruno Haible  <bruno@clisp.org>
65672
65673         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65674         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65701         Reported by Eric Blake.
65702
65703 2007-04-11  Bruno Haible  <bruno@clisp.org>
65704
65705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65706
65707 2007-04-10  Bruno Haible  <bruno@clisp.org>
65708
65709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65710         for NaN and Infinity. Needed on FreeBSD 6.1.
65711         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65712         regarding results for "%010a" of Infinity and NaN.
65713         * tests/test-vasprintf-posix.c (test_function): Likewise.
65714         * tests/test-snprintf-posix.h (test_function): Likewise.
65715         * tests/test-sprintf-posix.h (test_function): Likewise.
65716         * tests/test-fprintf-posix.h (test_function): Likewise.
65717         * tests/test-printf-posix.h (test_function): Likewise.
65718         * tests/test-fprintf-posix.out: Likewise.
65719
65720 2007-04-10  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/locale-tests: New file.
65723         * tests/test-locale.c: New file.
65724
65725         * modules/locale: New file.
65726         * lib/locale_.h: New file.
65727         * m4/locale_h.m4: New file.
65728
65729 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65730             Bruno Haible  <bruno@clisp.org>
65731
65732         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65733         be determined, test for availability of the copysignf, copysign,
65734         copysignl functions.
65735         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65736         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65737         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65738
65739 2007-04-09  Eric Blake  <ebb9@byu.net>
65740
65741         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65742         * modules/stdio (Makefile.am): Support fflush.
65743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65744         * modules/fflush: New file.
65745         * lib/fflush.c: Likewise.
65746         * m4/fflush.m4: Likewise.
65747         * modules/fflush-tests: New test.
65748         * tests/test-fflush.c: Likewise.
65749         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65750
65751 2007-04-06  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65754         (VASNPRINTF): Use signbit for faster determination whether to print a
65755         minus sign.
65756         * modules/vasnprintf (Files): Remove lib/float+.h.
65757         * modules/fprintf-posix (Depends-on): Add signbit.
65758         * modules/snprintf-posix (Depends-on): Likewise.
65759         * modules/sprintf-posix (Depends-on): Likewise.
65760         * modules/vasnprintf-posix (Depends-on): Likewise.
65761         * modules/vasprintf-posix (Depends-on): Likewise.
65762         * modules/vfprintf-posix (Depends-on): Likewise.
65763         * modules/vsnprintf-posix (Depends-on): Likewise.
65764         * modules/vsprintf-posix (Depends-on): Likewise.
65765
65766 2007-04-06  Bruno Haible  <bruno@clisp.org>
65767
65768         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65769         * tests/test-frexpl.c (main): Likewise.
65770         * tests/test-ldexpl.c (main): Likewise.
65771         * modules/frexp-tests (Depends-on): Add signbit.
65772         * modules/frexpl-tests (Depdends-on): Likewise.
65773         * modules/ldexpl-tests (Depdends-on): Likewise.
65774
65775 2007-04-06  Bruno Haible  <bruno@clisp.org>
65776
65777         * modules/signbit-tests: New file.
65778         * tests/test-signbit.c: New file.
65779
65780         * modules/signbit: New file.
65781         * lib/signbitf.c: New file.
65782         * lib/signbitd.c: New file.
65783         * lib/signbitl.c: New file.
65784         * m4/signbit.m4: New file.
65785         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65786         (signbit): New macro.
65787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65788         REPLACE_SIGNBIT.
65789         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65790         REPLACE_FREXPL into math.h.
65791
65792 2007-04-06  Bruno Haible  <bruno@clisp.org>
65793
65794         * modules/isnanf-nolibm-tests: New file.
65795         * tests/test-isnanf.c: New file.
65796
65797         * modules/isnanf-nolibm: New file.
65798         * lib/isnanf.h: New file.
65799         * lib/isnanf.c: New file.
65800         * lib/isnan.c: Consider the USE_FLOAT macro.
65801         * m4/isnanf.m4: New file.
65802
65803 2007-04-06  Bruno Haible  <bruno@clisp.org>
65804
65805         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65806         (Link): New section.
65807
65808         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65809
65810 2007-04-06  Bruno Haible  <bruno@clisp.org>
65811
65812         Assume the 'long double' type.
65813         * m4/longdouble.m4: Remove file.
65814         * config/srclist.txt: Don't mention longdouble.m4.
65815         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65816         * lib/float+.h: Likewise.
65817         * lib/frexp.c: Likewise.
65818         * lib/printf-args.h: Likewise.
65819         * lib/printf-args.c: Likewise.
65820         * lib/printf-frexp.c: Likewise.
65821         * lib/printf-parse.c: Likewise.
65822         * lib/vasnprintf.c: Likewise.
65823         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65824         * m4/intl.m4: Likewise.
65825         * m4/isnanl.m4: Likewise.
65826         * m4/printf.m4: Likewise.
65827         * m4/printf-frexpl.m4: Likewise.
65828         * m4/vasnprintf.m4: Likewise.
65829         * modules/allocsa (Files): Remove m4/longdouble.m4.
65830         * modules/gettext (Files): Likewise.
65831         * modules/relocatable-prog-wrapper (Files): Likewise.
65832         * modules/vasnprintf (Files): Likewise.
65833         * modules/isnanl (Files): Likewise.
65834         (Include): Simplify.
65835         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65836         (Include): Simplify.
65837         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65838         (Include): Simplify.
65839         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65840         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65841         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65842         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65843         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65844         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65845         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65846         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65847         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65848         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65849         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65850         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65851         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65852         * tests/test-isnanl.c: Likewise.
65853         * tests/test-snprintf-posix.h: Likewise.
65854         * tests/test-sprintf-posix.h: Likewise.
65855         * tests/test-vasnprintf-posix.c: Likewise.
65856         * tests/test-vasnprintf-posix2.c: Likewise.
65857         * tests/test-vasprintf-posix.c: Likewise.
65858
65859 2007-04-06  Bruno Haible  <bruno@clisp.org>
65860
65861         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65862         * lib/math_.h [__DECC]: Include the overridden include file through
65863         #include_next, outside the double-inclusion guard.
65864         * lib/stdio_.h [__DECC]: Likewise.
65865         * lib/stdlib_.h [__DECC]: Likewise.
65866         * lib/string_.h [__DECC]: Likewise.
65867         * lib/time_.h [__DECC]: Likewise.
65868         * lib/wchar_.h [__DECC]: Likewise.
65869         * lib/wctype_.h [__DECC]: Likewise.
65870         * lib/inttypes_.h [__DECC]: Likewise.
65871         Reported by Albert Chin <china@thewrittenword.com> in
65872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65873
65874 2007-04-04  Eric Blake  <ebb9@byu.net>
65875
65876         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65877         1.5.x.
65878
65879 2007-04-04  Bruno Haible  <bruno@clisp.org>
65880
65881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65882         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65883
65884 2007-04-04  Bruno Haible  <bruno@clisp.org>
65885
65886         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65887         results for "%010a" of Infinity and NaN.
65888         * tests/test-vasprintf-posix.c (test_function): Likewise.
65889         * tests/test-snprintf-posix.h (test_function): Likewise.
65890         * tests/test-sprintf-posix.h (test_function): Likewise.
65891         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65892         * tests/test-printf-posix.h (test_function): Likewise.
65893         * tests/test-fprintf-posix.out: Update.
65894         Needed for FreeBSD 6.1.
65895
65896 2007-04-04  Bruno Haible  <bruno@clisp.org>
65897
65898         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65899         directly used by the gnulib modules nor by gnulib-tool.
65900
65901 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65902
65903         * DEPENDENCIES: Give overall description of version dependency
65904         desirability.  Use more-typical names for apps.
65905         Add shell, coreutils, diffutils, grep, tar, gzip.
65906
65907 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65908
65909         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65910
65911 2007-04-04  Karl Berry  <karl@gnu.org>
65912
65913         * MODULES.html.sh (func_module): missing '.
65914
65915 2007-04-03  Bruno Haible  <bruno@clisp.org>
65916
65917         * modules/argmatch-tests (Makefile.am): New variable
65918         test_argmatch_LDADD.
65919         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65920         * modules/array-list-tests (Makefile.am): New variable
65921         test_array_list_LDADD.
65922         * modules/array-oset-tests (Makefile.am): New variable
65923         test_array_oset_LDADD.
65924         * modules/avltree-list-tests (Makefile.am): New variable
65925         test_avltree_list_LDADD.
65926         * modules/avltree-oset-tests (Makefile.am): New variable
65927         test_avltree_oset_LDADD.
65928         * modules/avltreehash-list-tests (Makefile.am): New variable
65929         test_avltreehash_list_LDADD.
65930         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65931         test_canonicalize_lgpl_LDADD.
65932         * modules/carray-list-tests (Makefile.am): New variable
65933         test_carray_list_LDADD.
65934         * modules/dirname-tests (Makefile.am): New variable
65935         test_dirname_LDADD.
65936         * modules/linked-list-tests (Makefile.am): New variable
65937         test_linked_list_LDADD.
65938         * modules/linkedhash-list-tests (Makefile.am): New variable
65939         test_linkedhash_list_LDADD.
65940         * modules/rbtree-list-tests (Makefile.am): New variable
65941         test_rbtree_list_LDADD.
65942         * modules/rbtree-oset-tests (Makefile.am): New variable
65943         test_rbtree_oset_LDADD.
65944         * modules/rbtreehash-list-tests (Makefile.am): New variable
65945         test_rbtreehash_list_LDADD.
65946         * modules/xvasprintf-tests (Makefile.am): New variable
65947         test_xvasprintf_LDADD.
65948         Reported by Eric Blake.
65949
65950 2007-04-03  Eric Blake  <ebb9@byu.net>
65951
65952         * DEPENDENCIES: Weaken m4 requirements.
65953
65954 2007-04-03  Bruno Haible  <bruno@clisp.org>
65955
65956         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65957         * modules/isnanl-tests (configure.ac): Likewise.
65958
65959 2007-04-03  Ben Pfaff  <blp@gnu.org>
65960
65961         * modules/iconv_open: Add $(srcdir)/ to source directory
65962         references in Makefile fragments that call gperf, to fix VPATH
65963         builds.
65964
65965 2007-04-03  Bruno Haible  <bruno@clisp.org>
65966
65967         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65968         * lib/ldexpl.c: Undo last change.
65969
65970 2007-04-03  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/printf-frexpl (Depends-on): Undo last change.
65973         (Files): Add m4/ldexpl.m4.
65974
65975 2007-04-03  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65978         * modules/isnanl (Link): New section.
65979
65980         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65981         * modules/frexp (Link): New section.
65982
65983         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65984         * modules/frexpl (Link): New section.
65985
65986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65987         * modules/ldexpl (Link): New section.
65988
65989 2007-04-03  Bruno Haible  <bruno@clisp.org>
65990
65991         * modules/TEMPLATE-EXTENDED: New file.
65992         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65993
65994 2007-04-03  Bruno Haible  <bruno@clisp.org>
65995
65996         * DEPENDENCIES: New file.
65997         Suggested by Simon Josefsson.
65998
65999 2007-04-03  Bruno Haible  <bruno@clisp.org>
66000
66001         * doc/gnulib.texi: Escape @.
66002
66003 2007-04-03  James Youngman  <jay@gnu.org>
66004         and Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66007         birthtime on all systems that have birthtime, not just those which
66008         use st_birthtimensec rather than st_birthtim.  Putting zero in
66009         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66010         that the birth time is not available for files on an NFS mount.
66011
66012 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66013
66014         * modules/memxor: Move back from crypto/, suggested by Bruno.
66015         * modules/crypto/hmac-sha1: Fix memxor dependency.
66016
66017         * modules/crypto/gc: Moved from ../.
66018
66019 2007-04-02  Eric Blake  <ebb9@byu.net>
66020
66021         * lib/ldexpl.c (includes): Avoid libm.
66022
66023         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66024
66025 2007-04-02  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66028         on IRIX.
66029
66030 2007-04-02  Bruno Haible  <bruno@clisp.org>
66031
66032         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66033         x86 or x86_64 platforms running MacOS X.
66034         Reported by Ryan Schmidt <@ryandesign.com>.
66035
66036 2007-04-02  Bruno Haible  <bruno@clisp.org>
66037
66038         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66039         i386.
66040
66041 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66042
66043         * modules/crypto/arcfour: Moved from ../.
66044         * modules/crypto/arcfour-tests: Moved from ../.
66045         * modules/crypto/arctwo: Moved from ../.
66046         * modules/crypto/arctwo-tests: Moved from ../.
66047         * modules/crypto/des: Moved from ../.
66048         * modules/crypto/des-tests: Moved from ../.
66049         * modules/crypto/gc-arcfour: Moved from ../.
66050         * modules/crypto/gc-arcfour-tests: Moved from ../.
66051         * modules/crypto/gc-arctwo: Moved from ../.
66052         * modules/crypto/gc-arctwo-tests: Moved from ../.
66053         * modules/crypto/gc-des: Moved from ../.
66054         * modules/crypto/gc-des-tests: Moved from ../.
66055         * modules/crypto/gc-hmac-md5: Moved from ../.
66056         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66057         * modules/crypto/gc-hmac-sha1: Moved from ../.
66058         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66059         * modules/crypto/gc-md2: Moved from ../.
66060         * modules/crypto/gc-md2-tests: Moved from ../.
66061         * modules/crypto/gc-md4: Moved from ../.
66062         * modules/crypto/gc-md4-tests: Moved from ../.
66063         * modules/crypto/gc-md5: Moved from ../.
66064         * modules/crypto/gc-md5-tests: Moved from ../.
66065         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66066         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66067         * modules/crypto/gc-random: Moved from ../.
66068         * modules/crypto/gc-rijndael: Moved from ../.
66069         * modules/crypto/gc-rijndael-tests: Moved from ../.
66070         * modules/crypto/gc-sha1: Moved from ../.
66071         * modules/crypto/gc-sha1-tests: Moved from ../.
66072         * modules/crypto/gc-tests: Moved from ../.
66073         * modules/crypto/hmac-md5: Moved from ../.
66074         * modules/crypto/hmac-md5-tests: Moved from ../.
66075         * modules/crypto/hmac-sha1: Moved from ../.
66076         * modules/crypto/hmac-sha1-tests: Moved from ../.
66077         * modules/crypto/md2: Moved from ../.
66078         * modules/crypto/md2-tests: Moved from ../.
66079         * modules/crypto/md4: Moved from ../.
66080         * modules/crypto/md4-tests: Moved from ../.
66081         * modules/crypto/md5: Moved from ../.
66082         * modules/crypto/md5-tests: Moved from ../.
66083         * modules/crypto/memxor: Moved from ../.
66084         * modules/crypto/rijndael: Moved from ../.
66085         * modules/crypto/rijndael-tests: Moved from ../.
66086         * modules/crypto/sha1: Moved from ../.
66087
66088 2007-03-30  James Youngman  <jay@gnu.org>
66089
66090         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66091         rename() to change the ctime of a file (because ctime is unaffected
66092         by rename on jfs2 on AIX 5.1).
66093         (main): Start by doing cleanup, in case a previous run failed leaving
66094         test files behind.
66095
66096 2007-03-31  Bruno Haible  <bruno@clisp.org>
66097
66098         Support old proprietary implementations of iconv.
66099         * modules/iconv_open: New file.
66100         * lib/iconv_.h: New file.
66101         * m4/iconv_h.m4: New file.
66102         * lib/iconv_open.c: New file.
66103         * lib/iconv_open-aix.gperf: New file.
66104         * lib/iconv_open-hpux.gperf: New file.
66105         * lib/iconv_open-irix.gperf: New file.
66106         * lib/iconv_open-osf.gperf: New file.
66107         * m4/iconv_open.m4: New file.
66108         * modules/linebreak (Depends-on): Add iconv_open.
66109         * modules/striconv (Depends-on): Likewise.
66110         * modules/striconveh (Depends-on): Likewise.
66111         * modules/unicodeio (Depends-on): Likewise.
66112         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66113         (iconv_t)(-1).
66114         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66115         conversion if cd is (iconv_t)(-1).
66116         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66117         is not possible.
66118
66119 2007-03-31  Bruno Haible  <bruno@clisp.org>
66120
66121         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66122         work on Solaris either. Protect also second use of "autodetect_jp".
66123
66124 2007-03-31  Bruno Haible  <bruno@clisp.org>
66125
66126         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66127         the function is not present.
66128
66129 2007-03-31  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66132         the function is not present.
66133
66134 2007-03-31  Bruno Haible  <bruno@clisp.org>
66135
66136         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66137         a bug in HP-UX iconv_open().
66138
66139 2007-03-31  Bruno Haible  <bruno@clisp.org>
66140
66141         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66142         (Mathematics <math.h>): New section, add fpieee.
66143         (Input/output <stdio.h>): Add fseterr.
66144         (Mathematics <math.h>): New section, add printf-frexp.
66145         (Container data structures): Add sublist.
66146         (Core language properties): Add fpucw, inline.
66147         (Functions for greatest-width integer types <inttypes.h>): Add
66148         imaxabs, imaxdiv, inttypes.
66149         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66150         isnanl-nolibm, ldexp.
66151         (Mathematics <math.h>): New section, add printf-frexpl.
66152         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66153         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66154         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66155         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66156         (Unicode string functions): Add unistr/u*-mbtoucr.
66157         (Java): Add javacomp-script, javaexec-script.
66158         (C#): Add csharpcomp-script, csharpexec-script.
66159         (Support for building libraries and executables): Add havelib,
66160         relocatable-*.
66161         (Support for maintaining and releasing projects): Renamed from
66162         'Support for maintaining and release projects'. Add announce-gen.
66163
66164 2007-03-31  Bruno Haible  <bruno@clisp.org>
66165
66166         * README: Talk primarily about git.
66167         (git and CVS): Renamed from CVS.
66168         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66169         gnulib is available through git.
66170         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66171
66172 2007-03-30  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66175         * lib/poll_.h: Likewise.
66176         * lib/stat_.h: Likewise.
66177         * lib/sys_time_.h: Likewise.
66178         * lib/sysexit_.h: Likewise.
66179         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66180         * lib/stdbool_.h: Likewise.
66181         * lib/byteswap_.h: Add double-inclusion guard.
66182
66183 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66184
66185         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66186
66187 2007-03-30  Karl Berry  <karl@gnu.org>
66188
66189         * config/srclist-update: double space after USA in the license
66190         substitution, since that's how it's usually (?) written.
66191
66192 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66195         reported by Bruno Haible.
66196
66197 2007-03-29  Bruno Haible  <bruno@clisp.org>
66198
66199         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66200         a bug in AIX iconv().
66201
66202 2007-03-29  Bruno Haible  <bruno@clisp.org>
66203
66204         * modules/ldexpl-tests: New file.
66205         * tests/test-ldexpl.c: New file.
66206
66207 2007-03-29  Bruno Haible  <bruno@clisp.org>
66208
66209         * lib/ldexpl.c: Include fpucw.h.
66210         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66211         multiplication.
66212         * modules/ldexpl (Depends-on): Add fpucw.
66213
66214 2007-03-29  Bruno Haible  <bruno@clisp.org>
66215
66216         * modules/ldexpl: New file.
66217         * m4/ldexpl.m4: New file.
66218         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66219         set.
66220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66221         REPLACE_LDEXPL.
66222         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66223         REPLACE_LDEXPL.
66224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66225         gl_FUNC_LDEXPL_WORKS.
66226         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66227         * modules/mathl (Files): Remove lib/ldexpl.c.
66228         (Depends-on): Add ldexpl.
66229
66230 2007-03-29  Bruno Haible  <bruno@clisp.org>
66231
66232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66233
66234 2007-03-29  Bruno Haible  <bruno@clisp.org>
66235
66236         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66237         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66238         and possibly also HP-UX.
66239         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66240         work on AIX, IRIX, HP-UX, OSF/1.
66241         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66242         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66243         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66244         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66245         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66246         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66247
66248 2007-03-29  Bruno Haible  <bruno@clisp.org>
66249
66250         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66251
66252 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66255         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66256
66257 2007-03-29  Eric Blake  <ebb9@byu.net>
66258
66259         * lib/acl-internal.h: Remove redundant include.
66260         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66261         Cygwin when a file is locked.
66262
66263 2007-03-29  Bruno Haible  <bruno@clisp.org>
66264
66265         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66266         file.
66267         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66268
66269 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66272         try to remove a parent directory if the child couldn't be removed
66273         (except for the first rmdir, which could fail because the child
66274         doesn't exist).  Problem reported by Jeff Blaine in
66275         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66276
66277 2007-03-28  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/striconveh.c (utf8conv_carefully): New function.
66280         (mem_cd_iconveh_internal): Invoke it.
66281
66282 2007-03-28  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66285         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66286         input.
66287         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66288         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66289         unistr/u8-uctomb.
66290
66291 2007-03-28  Bruno Haible  <bruno@clisp.org>
66292
66293         * modules/unistr/u8-mbtoucr: New file.
66294         * lib/unistr/u8-mbtoucr.c: New file.
66295         * modules/unistr/u16-mbtoucr: New file.
66296         * lib/unistr/u16-mbtoucr.c: New file.
66297         * modules/unistr/u16-mbtoucr: New file.
66298         * lib/unistr/u16-mbtoucr.c: New file.
66299         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66300
66301 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66302             Bruno Haible  <bruno@clisp.org>
66303
66304         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66305         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66306         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66307
66308         * m4/stdio_h.m4: Add stubs for vasprintf too.
66309
66310         * modules/stdio: Support vasprintf in sed command.
66311
66312         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66313         vasprintf.h.  Add stdio module indicator.
66314
66315         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66316         vasprintf.h.
66317
66318         * lib/vasprintf.h: File removed.
66319
66320         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66321         * lib/vasprintf.c: Ditto.
66322         * lib/xvasprintf.c: Ditto.
66323         * tests/test-vasprintf-posix.c: Ditto.
66324         * tests/test-vasprintf.c: Ditto.
66325
66326 2007-03-27  Bruno Haible  <bruno@clisp.org>
66327
66328         Make vasnprintf multithread-safe.
66329         * lib/vasnprintf.c (decimal_point_char): New function.
66330         (VASNPRINTF): Use it.
66331         Suggested by Simon Josefsson.
66332
66333 2007-03-27  Eric Blake  <ebb9@byu.net>
66334
66335         Support sub-second birthtime on cygwin.
66336         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66337         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66338         (get_stat_birthtime): Also work with st_birthtim.
66339
66340 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66341
66342         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66343         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66344         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66345         (get_stat_birthtime_ns): Simplify compile-time tests.
66346         (get_stat_birthtime): Change the API to look like
66347         get_stat_mtime etc., except return a negative tv_nsec on error.
66348         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66349         Don't check for "spare" fields.
66350         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66351         or for struct stat.st_birthtime, as these tests aren't used.
66352         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66353
66354 2007-03-27  Bruno Haible  <bruno@clisp.org>
66355
66356         * lib/stat-time.h: Include <sys/stat.h>.
66357
66358 2007-03-27  James Youngman  <jay@gnu.org>
66359
66360         * lib/stat-time.h (get_stat_birthtime): New function for
66361           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66362         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66363           and its variants.
66364         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66365         * modules/stat-time-test: New file.
66366         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66367
66368 2007-03-26  Bruno Haible  <bruno@clisp.org>
66369
66370         Better support of signalling NaNs.
66371         * lib/atanl.c: Include isnanl.h.
66372         (atanl): Perform test for NaN at the beginning of the function and
66373         through a call to isnanl.
66374         * lib/cosl.c: Include isnanl.h.
66375         (cosl): Perform test for NaN at the beginning of the function and
66376         through a call to isnanl.
66377         * lib/ldexpl.c: Include isnanl.h.
66378         (ldexpl): Perform test for NaN through a call to isnanl.
66379         * lib/logl.c: Include isnanl.h.
66380         (logl): Perform test for NaN at the beginning of the function and
66381         through a call to isnanl.
66382         * lib/sinl.c: Include isnanl.h.
66383         (sinl): Perform test for NaN at the beginning of the function and
66384         through a call to isnanl.
66385         * lib/sqrtl.c: Include isnanl.h.
66386         (sqrtl): Perform test for NaN at the beginning of the function and
66387         through a call to isnanl.
66388         * lib/tanl.c: Include isnanl.h.
66389         (tanl): Perform test for NaN at the beginning of the function and
66390         through a call to isnanl.
66391         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66392         * modules/mathl (Depends-on): Add isnanl.
66393
66394 2007-03-26  Eric Blake  <ebb9@byu.net>
66395
66396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66397         regression in logic sense of previous patch.
66398
66399 2007-03-26  Bruno Haible  <bruno@clisp.org>
66400
66401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66402         unportable shell command "if ! ...".
66403         Reported by Ralf Wildenhues.
66404
66405 2007-03-25  Bruno Haible  <bruno@clisp.org>
66406
66407         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66408         <sysexits.h> file, and only add EX_CONFIG.
66409         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66410         absolute file name and whether it is sufficient. Substitute also
66411         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66412         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66413         ABSOLUTE_SYSEXITS_H into sysexits.h.
66414
66415 2007-03-25  Bruno Haible  <bruno@clisp.org>
66416
66417         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66418         hints is NULL.
66419
66420 2007-03-25  Bruno Haible  <bruno@clisp.org>
66421
66422         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66423         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66424
66425 2007-03-25  Bruno Haible  <bruno@clisp.org>
66426
66427         * lib/vasnprintf.c: Include langinfo.h.
66428         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66429         multithread-safe.
66430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66439         Reported by Simon Josefsson.
66440
66441 2007-03-25  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66444         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66445         * modules/vasnprintf (Depends-on): Add stdint.
66446
66447 2007-03-25  Bruno Haible  <bruno@clisp.org>
66448
66449         * modules/fpieee: New file.
66450         * m4/fpieee.m4: New file.
66451         * modules/isnan-nolibm (Depends-on): Add fpieee.
66452         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66453         * modules/isnanl (Depends-on): Add fpieee.
66454
66455 2007-03-25  Bruno Haible  <bruno@clisp.org>
66456
66457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66458
66459 2007-03-25  Bruno Haible  <bruno@clisp.org>
66460
66461         Avoid test failures on IRIX 6.5.
66462         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66463         (main): Use it.
66464         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66465         macros.
66466         (main): Use them.
66467
66468 2007-03-25  Bruno Haible  <bruno@clisp.org>
66469
66470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66471         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66472         exists but doesn't work.
66473         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66474         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66476         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66477         math.h.
66478
66479 2007-03-25  Bruno Haible  <bruno@clisp.org>
66480
66481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66482         returns inf. Needed on IRIX 6.5.
66483
66484 2007-03-25  Bruno Haible  <bruno@clisp.org>
66485
66486         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66487         (main): Use isnanl instead of x != x idiom.
66488         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66489
66490         * tests/test-frexp.c: Include isnan.h.
66491         (main): Use isnan instead of x != x idiom.
66492         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66493
66494 2007-03-25  Bruno Haible  <bruno@clisp.org>
66495
66496         * tests/test-frexp.c (NaN): New function/macro.
66497         (main): Use it instead of 0.0 / 0.0.
66498         * tests/test-isnan.c (NaN): New function/macro.
66499         (main): Use it instead of 0.0 / 0.0.
66500         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66501         (test_function): Use it instead of 0.0 / 0.0.
66502         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66503         (test_function): Use it instead of 0.0 / 0.0.
66504         * tests/test-snprintf-posix.h (NaN): New function/macro.
66505         (test_function): Use it instead of 0.0 / 0.0.
66506         * tests/test-sprintf-posix.h (NaN): New function/macro.
66507         (test_function): Use it instead of 0.0 / 0.0.
66508         * tests/test-fprintf-posix.h (NaN): New function/macro.
66509         (test_function): Use it instead of 0.0 / 0.0.
66510         * tests/test-printf-posix.h (NaN): New function/macro.
66511         (test_function): Use it instead of 0.0 / 0.0.
66512
66513         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66514
66515 2007-03-25  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66518
66519 2007-03-25  Bruno Haible  <bruno@clisp.org>
66520
66521         * lib/regexec.c (merge_state_with_log): Make static.
66522
66523 2007-03-25  Bruno Haible  <bruno@clisp.org>
66524
66525         * lib/trigl.c (kernel_rem_pio2): Make static.
66526
66527 2007-03-25  Bruno Haible  <bruno@clisp.org>
66528
66529         * lib/sincosl.c (sincosl_table): Make static.
66530
66531 2007-03-25  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66534         if the compiler does not support C99.
66535
66536 2007-03-25  Bruno Haible  <bruno@clisp.org>
66537
66538         * modules/time (Makefile.am): Ensure all rule action lines start with a
66539         tab.
66540
66541 2007-03-24  Bruno Haible  <bruno@clisp.org>
66542
66543         * modules/tsearch-tests: New file.
66544         * tests/test-tsearch.sh: New file.
66545         * tests/test-tsearch.c: New file, mostly copied from glibc.
66546
66547         * modules/search-tests: New file.
66548         * tests/test-search.c: New file.
66549
66550         * modules/search: New file.
66551         * lib/search_.h: New file, incorporating lib/tsearch.h.
66552         * m4/search_h.m4: New file.
66553         * lib/tsearch.h: Remove file.
66554         * lib/tsearch.c: Include search.h instead of tsearch.h.
66555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66556         HAVE_TSEARCH.
66557         * modules/tsearch (Files): Remove lib/tsearch.h.
66558         (Depends-on): Add search.
66559         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66560         (Include): Change tsearch.h into search.h.
66561
66562 2007-03-24  Bruno Haible  <bruno@clisp.org>
66563
66564         * modules/fpucw: New file.
66565         * lib/fpucw.h: New file.
66566         * lib/frexp.c: Include fpucw.h.
66567         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66568         (FUNC): Use them.
66569         * lib/printf-frexp.c: Include fpucw.h.
66570         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66571         (FUNC): Use them.
66572         * lib/vasnprintf.c: Include fpucw.h.
66573         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66574         'long double' calculations.
66575         * tests/test-frexpl.c: Include fpucw.h.
66576         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66577         * tests/test-printf-frexpl.c: Include fpucw.h.
66578         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66579         * modules/frexpl (Depends-on): Add fpucw.
66580         * modules/printf-frexpl (Depends-on): Likewise.
66581         * modules/fprintf-posix (Depends-on): Likewise.
66582         * modules/snprintf-posix (Depends-on): Likewise.
66583         * modules/sprintf-posix (Depends-on): Likewise.
66584         * modules/vasnprintf-posix (Depends-on): Likewise.
66585         * modules/vasprintf-posix (Depends-on): Likewise.
66586         * modules/vfprintf-posix (Depends-on): Likewise.
66587         * modules/vsnprintf-posix (Depends-on): Likewise.
66588         * modules/vsprintf-posix (Depends-on): Likewise.
66589         * modules/frexpl-tests (Depends-on): Likewise.
66590         * modules/printf-frexpl-tests (Depends-on): Likewise.
66591
66592 2007-03-24  Bruno Haible  <bruno@clisp.org>
66593
66594         * lib/float+.h: New file.
66595         * lib/isnan.c: Include float+.h.
66596         (SIZE): New macro.
66597         (FUNC): Compare only SIZE bytes of the value.
66598         * lib/vasnprintf.c: Include float+.h.
66599         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66600         SIZEOF_LDBL or SIZEOF_DBL bytes.
66601         * modules/isnan-nolibm (Files): Add lib/float+.h.
66602         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66603         * modules/isnanl (Files): Add lib/float+.h.
66604         * modules/vasnprintf (Files): Add lib/float+.h.
66605
66606 2007-03-24  Bruno Haible  <bruno@clisp.org>
66607
66608         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66609         include isnanl-nolibm.h.
66610
66611 2007-03-24  Bruno Haible  <bruno@clisp.org>
66612
66613         * tests/test-read-file.c (main): Don't produce spurious output for
66614         expected situations. Make the test fail if it encountered unexpected
66615         results.
66616
66617 2007-03-24  Bruno Haible  <bruno@clisp.org>
66618
66619         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66620         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66621
66622 2007-03-24  Bruno Haible  <bruno@clisp.org>
66623
66624         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66625
66626 2007-03-24  Bruno Haible  <bruno@clisp.org>
66627
66628         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66629         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66630
66631         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66632         * modules/utf8-ucs4: Turn into a symbolic link to module
66633         unistr/u8-mbtouc.
66634
66635         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66636         utf8-ucs4-unsafe.
66637         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66638         unistr/u8-mbtouc-unsafe.
66639
66640         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66641         * modules/utf16-ucs4: Turn into a symbolic link to module
66642         unistr/u16-mbtouc.
66643
66644         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66645         utf16-ucs4-unsafe.
66646         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66647         unistr/u16-mbtouc-unsafe.
66648
66649         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66650         * modules/ucs4-utf8: Turn into a symbolic link to module
66651         unistr/u8-ubtomb.
66652
66653         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66654         * modules/ucs4-utf16: Turn into a symbolic link to module
66655         unistr/u16-ubtomb.
66656
66657 2007-03-24  Bruno Haible  <bruno@clisp.org>
66658
66659         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66660         Enable the function only if HAVE_INLINE.
66661         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66662         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66663         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66664         Enable the function only if HAVE_INLINE.
66665         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66666         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66667         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66668         Enable the function only if HAVE_INLINE.
66669         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66670         Enable the function only if HAVE_INLINE.
66671         * modules/utf8-ucs4: Update.
66672         * modules/utf8-ucs4-unsafe: Update.
66673         * modules/utf16-ucs4: Update.
66674         * modules/utf16-ucs4-unsafe: Update.
66675         * modules/ucs4-utf8: Update.
66676         * modules/ucs4-utf16: Update.
66677
66678 2007-03-24  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/utf8-ucs4.h: Remove file.
66681         * lib/utf8-ucs4-unsafe.h: Remove file.
66682         * lib/utf16-ucs4.h: Remove file.
66683         * lib/utf16-ucs4-unsafe.h: Remove file.
66684         * lib/ucs4-utf8.h: Remove file.
66685         * lib/ucs4-utf16.h: Remove file.
66686         * lib/unistr.h: Include their previous contents.
66687         * m4/utf-ucs4.m4: Remove file.
66688         * m4/ucs4-utf.m4: Remove file.
66689         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66690         (Depends-on): Add unistr/base.
66691         (configure.ac): Remove gl_UTF_UCS4.
66692         (Makefile.am): Update.
66693         (Include): Change to unistr.h.
66694         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66695         (Depends-on): Add unistr/base.
66696         (configure.ac): Remove gl_UTF_UCS4.
66697         (Makefile.am): Update.
66698         (Include): Change to unistr.h.
66699         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66700         (Depends-on): Add unistr/base.
66701         (configure.ac): Remove gl_UTF_UCS4.
66702         (Makefile.am): Update.
66703         (Include): Change to unistr.h.
66704         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66705         (Depends-on): Add unistr/base.
66706         (configure.ac): Remove gl_UTF_UCS4.
66707         (Makefile.am): Update.
66708         (Include): Change to unistr.h.
66709         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66710         (Depends-on): Add unistr/base.
66711         (configure.ac): Remove gl_UCS4_UTF.
66712         (Makefile.am): Update.
66713         (Include): Change to unistr.h.
66714         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66715         (Depends-on): Add unistr/base.
66716         (configure.ac): Remove gl_UCS4_UTF.
66717         (Makefile.am): Update.
66718         (Include): Change to unistr.h.
66719         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66720         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66721         utf8-ucs4-unsafe.h.
66722         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66723         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66724         utf16-ucs4-unsafe.h.
66725         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66726         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66727         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66728         * lib/unistr/u8-strchr.c: Likewise.
66729         * lib/unistr/u8-strrchr.c: Likewise.
66730         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66731         * lib/unistr/u16-strchr.c: Likewise.
66732         * lib/unistr/u16-strrchr.c: Likewise.
66733         * lib/striconveh.c: Update.
66734         * lib/linebreak.c: Update.
66735
66736 2007-03-24  Bruno Haible  <bruno@clisp.org>
66737
66738         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66739         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66740
66741 2007-03-22  Bruno Haible  <bruno@clisp.org>
66742
66743         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66744
66745 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66746
66747         * MODULES.html.sh (File system functions): New module write-any-file.
66748         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66749         * m4/write-any-file.m4: New files.
66750
66751 2007-03-23  Eric Blake  <ebb9@byu.net>
66752
66753         * gnulib-tool: Rearrange space-tab sequences, since some editors
66754         like to eat them.
66755
66756 2007-03-23  Eric Blake  <ebb9@byu.net>
66757
66758         * lib/version-etc.c (version_etc_va): Update license wording to
66759         be more concise.  Recommended by Richard Stallman.
66760
66761 2007-03-22  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/poll.c (MSG_PEEK): New fallback definition.
66764
66765 2007-03-22  Bruno Haible  <bruno@clisp.org>
66766
66767         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66768         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66769         (main): Update.
66770         Fixes a compilation error on BeOS.
66771
66772 2007-03-22  Bruno Haible  <bruno@clisp.org>
66773
66774         * modules/frexpl-tests: New file.
66775         * tests/test-frexpl.c: New file.
66776
66777         * modules/frexpl: New file.
66778         * m4/frexpl.m4: New file.
66779         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66780         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66782         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66783         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66784         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66785
66786 2007-03-22  Bruno Haible  <bruno@clisp.org>
66787
66788         * lib/frexpl.c: Share code with lib/frexp.c.
66789         * modules/mathl (Files): Add lib/frexp.c.
66790         (Depends-on): Add isnanl-nolibm.
66791
66792 2007-03-22  Bruno Haible  <bruno@clisp.org>
66793
66794         * modules/printf-frexp (Files): Add m4/frexp.m4.
66795         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66796         only if the found frexp function actually works.
66797
66798 2007-03-22  Bruno Haible  <bruno@clisp.org>
66799
66800         * lib/frexp.c: Remove older implementation that uses divisions.
66801
66802 2007-03-21  Bruno Haible  <bruno@clisp.org>
66803
66804         * modules/frexp-tests: New file.
66805         * tests/test-frexp.c: New file.
66806
66807         * modules/frexp: New file.
66808         * lib/frexp.c: New file.
66809         * m4/frexp.m4: New file.
66810         * lib/math_.h (frexp): New declaration.
66811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66812         REPLACE_FREXP.
66813         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66814
66815 2007-03-21  Bruno Haible  <bruno@clisp.org>
66816
66817         * modules/isnanl-tests: New file.
66818         * tests/test-isnanl.c: New file.
66819
66820         * modules/isnanl: New file.
66821         * lib/isnanl.h: New file.
66822         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66823         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66824         gl_FUNC_ISNANL_WORKS.
66825         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66826         New macros.
66827
66828 2007-03-21  Bruno Haible  <bruno@clisp.org>
66829
66830         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66831         lib/isnanl.h.
66832         (Include): Update.
66833         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66834         * lib/vasnprintf.c: Update.
66835         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66836         tests/test-isnanl.h, remove tests/test-isnanl.c.
66837         (Makefile.am): Update.
66838         * tests/test-isnanl-nolibm.c: New file.
66839         * tests/test-isnanl.h: New file.
66840         * tests/test-isnanl.c: Remove file.
66841
66842 2007-03-21  Jim Meyering  <jim@meyering.net>
66843
66844         When trying to open ".", treat ESTALE like EACCES.
66845         * lib/savewd.c (savewd_save): Resort to forking not just upon
66846         failure with EACCES, but also when errno is ESTALE.
66847
66848 2007-03-20  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66851         Needed on AIX 5.1. Reported by Matthew Woehlke.
66852
66853 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66854
66855         Suggestions by Bruno Haible:
66856         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66857         our own.
66858         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66859         * modules/acl (Depends-on): Add gettext.
66860
66861 2007-03-19  Bruno Haible  <bruno@clisp.org>
66862
66863         * modules/iconvme: Remove file.
66864         * lib/iconvme.h: Remove file.
66865         * lib/iconvme.c: Remove file.
66866         * m4/iconvme.m4: Remove file.
66867
66868 2007-03-19  Bruno Haible  <bruno@clisp.org>
66869
66870         * doc/relocatable-maint.texi: Break long shell script line.
66871         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66872
66873 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66876         handle file_has_acl.
66877         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66878         * lib/acl.c: Move header inclusions and related macro defns into
66879         lib/acl-internal.h.
66880         (S_ISLNK): Remove defn, since that's now done for us.
66881         (file_has_acl): Move to lib/file-has-acl.c.
66882         Call acl_trivial if available.  This is the crucial part of the fix.
66883         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66884         shared within the library.  Rewrite a bit, partly to make it compatible
66885         with the GNU coding style.
66886         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66887         Remove unnecessary double-quotes.
66888         Don't test for acl_to_text; the build will catch that.
66889         Replace acl_entries if it doesn't exist and it is needed.
66890         Check for -lsec and acl_trivial (as used on Solaris 10).
66891         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66892         lib/file-has-acl.c.
66893         (Depends-on): Add sys_stat, for S_ISLNK.
66894
66895 2007-03-19  Ben Pfaff  <blp@gnu.org>
66896
66897         * doc/gnulib.texi: Fix typos.
66898         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66899
66900 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66903         If size is zero here, buf must be zero.
66904
66905 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66906
66907         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66908         <bruno@clisp.org>.
66909
66910 2007-03-18  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66913         Suggested by Eric Blake.
66914
66915 2007-03-18  Ben Pfaff  <blp@gnu.org>
66916
66917         * doc/relocatable.texi: Recommend using as prefix a directory
66918         that does not exist and will never be created.  Based on
66919         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66920         and others.
66921
66922 2007-03-17  Bruno Haible  <bruno@clisp.org>
66923
66924         * lib/fchownat.c: Include lchown.h.
66925
66926 2007-03-17  Bruno Haible  <bruno@clisp.org>
66927
66928         Fix endless loop when the given allocated size was > INT_MAX.
66929         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66930         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66931         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66932         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66933         * lib/sprintf.c (sprintf): Likewise.
66934
66935 2007-03-17  Bruno Haible  <bruno@clisp.org>
66936
66937         * tests/test-argp-2.sh (func_compare): Output a context diff.
66938
66939 2007-03-17  Bruno Haible  <bruno@clisp.org>
66940
66941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66942         locale's decimal-point character.
66943
66944 2007-03-17  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66947         before comparing it. Needed because on some platforms (e.g. x86) a
66948         'long double' occupies less bytes than sizeof (long double).
66949
66950 2007-03-17  Bruno Haible  <bruno@clisp.org>
66951
66952         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66953         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66954         * tests/test-getaddrinfo.c (simple): Likewise.
66955         * tests/test-read-file.c (main): Likewise.
66956
66957 2007-03-17  Bruno Haible  <bruno@clisp.org>
66958
66959         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66960
66961 2007-03-17  Bruno Haible  <bruno@clisp.org>
66962
66963         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66964         unused variable.
66965
66966 2007-03-17  Bruno Haible  <bruno@clisp.org>
66967
66968         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66969         * tests/test-c-strncasecmp.c: Likewise.
66970
66971 2007-03-17  Bruno Haible  <bruno@clisp.org>
66972
66973         * modules/stdlib (Depends-on): Add unistd.
66974         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66975         Needed for MacOS X 10.3.
66976
66977 2007-03-17  Bruno Haible  <bruno@clisp.org>
66978
66979         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66980
66981 2007-03-17  Bruno Haible  <bruno@clisp.org>
66982
66983         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66984
66985 2007-03-17  Bruno Haible  <bruno@clisp.org>
66986
66987         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66988         to reflect files copied from gnulib (with or without modifications).
66989         Suggested by Jim Meyering.
66990
66991 2007-03-17  Eric Blake  <ebb9@byu.net>
66992
66993         * NEWS: Document stdlib change from 2007-02-18.
66994
66995 2007-03-17  Jim Meyering  <jim@meyering.net>
66996
66997         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66998         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66999         someone uses a name containing shell meta-characters.
67000         Reported by Alfred M. Szmidt.
67001
67002         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67003
67004 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67005
67006         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67007         and copy gettext configuration files only if configure.ac contains
67008         a use of AM_GNU_GETTEXT_VERSION.
67009
67010 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67011
67012         * build-aux/bootstrap (gnulib_name): New variable.
67013         (gnulib_tool_options): Use it.
67014
67015 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67016
67017         * tests/test-des.c: Use new namespace.
67018
67019 2007-03-15  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67022         Reported by James Youngman <jay@gnu.org>.
67023
67024 2007-03-15  Bruno Haible  <bruno@clisp.org>
67025
67026         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67027         declared prototype. Needed with cc on OSF/1 5.1.
67028
67029 2007-03-15  Bruno Haible  <bruno@clisp.org>
67030
67031         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67032         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67033         (struct gl_list_implementation): Add dispose_fn argument to the
67034         'create_empty', 'create' methods.
67035         (struct gl_list_impl_base): Add field 'dispose_fn'.
67036         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67037         argument.
67038         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67039         dispose_fn argument.
67040         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67041         dispose_fn on the dropped values.
67042         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67043         dispose_fn argument.
67044         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67045         dropped values.
67046         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67047         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67048         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67049         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67050         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67051         argument.
67052         (gl_tree_list_free): Call dispose_fn on the dropped values.
67053         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67054         the dropped values.
67055         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67056         Add dispose_fn argument.
67057         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67058         Call dispose_fn on the dropped values.
67059         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67060         Add dispose_fn argument.
67061         (gl_sublist_create): Initialize the 'dispose_fn' field.
67062         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67063         * tests/test-array_list.c (main): Update.
67064         * tests/test-carray_list.c (main): Update.
67065         * tests/test-avltree_list.c (main): Update.
67066         * tests/test-rbtree_list.c (main): Update.
67067         * tests/test-avltreehash_list.c (main): Update.
67068         * tests/test-rbtreehash_list.c (main): Update.
67069         * tests/test-linked_list.c (main): Update.
67070         * tests/test-linkedhash_list.c (main): Update.
67071         * tests/test-array_oset.c (main): Update.
67072
67073 2007-03-15  Bruno Haible  <bruno@clisp.org>
67074
67075         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67076         (gl_oset_create_empty): Add dispose_fn argument.
67077         (struct gl_oset_implementation): Add dispose_fn argument to
67078         'create_empty' method.
67079         (struct gl_oset_impl_base): Add dispose_fn field.
67080         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67081         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67082         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67083         values.
67084         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67085         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67086         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67087         dropped value.
67088         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67089         dropped value.
67090         * tests/test-array_oset.c (main): Update.
67091         * tests/test-avltree_oset.c (main): Update.
67092         * tests/test-rbtree_oset.c (main): Update.
67093         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67094
67095 2007-03-13  Bruno Haible  <bruno@clisp.org>
67096
67097         * tests/test-stdbool.c (i): Update after last patch.
67098
67099 2007-03-12  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67102         the iswprint macro. Needed on Solaris 2.5.1.
67103
67104 2007-03-12  Bruno Haible  <bruno@clisp.org>
67105
67106         * tests/test-printf-frexp.c (main): Declare x as volatile.
67107
67108 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67109
67110         * doc/gnulib.texi (Build robot for gnulib): New section.
67111
67112 2007-03-12  Jim Meyering  <jim@meyering.net>
67113
67114         * build-aux/bootstrap: New file.
67115         * build-aux/bootstrap.conf: New file, from coreutils.
67116
67117 2007-03-11  Bruno Haible  <bruno@clisp.org>
67118
67119         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67120
67121 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67122
67123         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67124         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67125         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67126
67127 2007-03-11  Bruno Haible  <bruno@clisp.org>
67128
67129         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67130         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67131
67132 2007-03-11  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67135         formula. Needed for SunPRO C 5.0.
67136
67137 2007-03-11  Bruno Haible  <bruno@clisp.org>
67138
67139         * modules/long-options (Depends-on): Add getopt.
67140
67141 2007-03-11  Bruno Haible  <bruno@clisp.org>
67142
67143         * modules/modechange (Depends-on): Add stdbool.
67144
67145 2007-03-11  Bruno Haible  <bruno@clisp.org>
67146
67147         * modules/i-ring (Depends-on): Add stdbool.
67148
67149 2007-03-11  Bruno Haible  <bruno@clisp.org>
67150
67151         * modules/gc-des (Depends-on): Add stdbool.
67152
67153 2007-03-11  Bruno Haible  <bruno@clisp.org>
67154
67155         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67156
67157 2007-03-11  Bruno Haible  <bruno@clisp.org>
67158
67159         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67160
67161 2007-03-11  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67164
67165 2007-03-11  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/vasnprintf.c (sprintf): Undefine.
67168
67169 2007-03-11  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67172         initializers in SunPRO C and Compaq C compilers.
67173
67174 2007-03-11  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67177         decrementing code ANSI C compliant.
67178
67179 2007-03-11  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67182         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67183
67184 2007-03-11  Bruno Haible  <bruno@clisp.org>
67185
67186         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67187         <stdbool.h> substitute doesn't pass.
67188
67189 2007-03-11  Bruno Haible  <bruno@clisp.org>
67190
67191         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67192
67193 2007-03-11  Bruno Haible  <bruno@clisp.org>
67194
67195         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67196         script, for submission to autobuild.josefsson.org.
67197
67198 2007-03-10  Bruno Haible  <bruno@clisp.org>
67199
67200         * modules/canonicalize-lgpl-tests: New file.
67201         * tests/test-canonicalize-lgpl.sh: New file.
67202         * tests/test-canonicalize-lgpl.c: New file.
67203
67204         * modules/c-strcase-tests: New file.
67205         * tests/test-c-strcase.sh: New file.
67206         * tests/test-c-strcasecmp.c: New file.
67207         * tests/test-c-strncasecmp.c: New file.
67208
67209         * modules/atexit-tests: New file.
67210         * tests/test-atexit.sh: New file.
67211         * tests/test-atexit.c: New file.
67212
67213 2007-03-10  Bruno Haible  <bruno@clisp.org>
67214
67215         * tests/test-binary-io.sh: Use temporary filenames that are not so
67216         likely to clash with those of other tests (in a parallel make).
67217         * tests/test-binary-io.c: Likewise.
67218
67219 2007-03-10  Bruno Haible  <bruno@clisp.org>
67220
67221         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67222         fallback; use #error instead.
67223         Suggested by Simon Josefsson.
67224
67225 2007-03-10  Bruno Haible  <bruno@clisp.org>
67226
67227         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67228         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67229         first and the last.
67230
67231 2007-03-10  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67234
67235 2007-03-10  Bruno Haible  <bruno@clisp.org>
67236
67237         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67238         "make distcheck".
67239         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67240         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67241         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67242
67243 2007-03-10  Bruno Haible  <bruno@clisp.org>
67244
67245         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67246         variable.
67247         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67248         variable.
67249
67250 2007-03-09  Eric Blake  <ebb9@byu.net>
67251         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67252
67253         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67254         types are not being provided by gnulib.
67255         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67256         types are supported.
67257
67258 2007-03-10  Bruno Haible  <bruno@clisp.org>
67259
67260         * lib/stdio_.h (__attribute__): New macro.
67261         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67262         vsprintf): Specify __attribute__ __format__ for GCC.
67263         Suggested by Eric Blake.
67264
67265 2007-03-09  Bruno Haible  <bruno@clisp.org>
67266
67267         * modules/printf-posix-tests: New file.
67268         * tests/test-printf-posix.sh: New file.
67269         * tests/test-printf-posix.c: New file.
67270
67271         * modules/printf-posix: New file.
67272         * lib/printf.c: New file.
67273         * m4/printf-posix-rpl.m4: New file.
67274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67275         REPLACE_PRINTF.
67276         * lib/stdio_.h (printf): New declaration.
67277         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67278         ____strfmon____): New macros.
67279         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67280         REPLACE_PRINTF.
67281
67282 2007-03-09  Bruno Haible  <bruno@clisp.org>
67283
67284         * tests/test-vasnprintf-posix2.sh: New file.
67285         * tests/test-vasnprintf-posix2.c: New file.
67286         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67287         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67288         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67289
67290         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67291         a locale dependent decimal point, rather than always '.'.
67292
67293 2007-03-09  Eric Blake  <ebb9@byu.net>
67294
67295         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67296         spite of platforms like Tandem/NSK that define it to -1.
67297
67298 2007-03-08  Bruno Haible  <bruno@clisp.org>
67299
67300         * modules/vprintf-posix-tests: New file.
67301         * tests/test-vprintf-posix.sh: New file.
67302         * tests/test-vprintf-posix.c: New file.
67303         * tests/test-printf-posix.h: New file.
67304
67305         * modules/vprintf-posix: New file.
67306         * lib/vprintf.c: New file.
67307         * m4/vprintf-posix.m4: New file.
67308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67309         REPLACE_VPRINTF.
67310         * lib/stdio_.h (vprintf): New declaration.
67311         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67312         REPLACE_VPRINTF.
67313
67314 2007-03-08  Bruno Haible  <bruno@clisp.org>
67315
67316         * modules/fprintf-posix-tests: New file.
67317         * tests/test-fprintf-posix.sh: New file.
67318         * tests/test-fprintf-posix.c: New file.
67319
67320         * modules/fprintf-posix: New file.
67321         * lib/fprintf.c: New file.
67322         * m4/fprintf-posix.m4: New file.
67323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67324         REPLACE_FPRINTF.
67325         * lib/stdio_.h (fprintf): New declaration.
67326         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67327         REPLACE_FPRINTF.
67328
67329 2007-03-08  Bruno Haible  <bruno@clisp.org>
67330
67331         * modules/vfprintf-posix-tests: New file.
67332         * tests/test-vfprintf-posix.sh: New file.
67333         * tests/test-vfprintf-posix.c: New file.
67334         * tests/test-fprintf-posix.h: New file.
67335         * tests/test-fprintf-posix.out: New file.
67336
67337         * modules/vfprintf-posix: New file.
67338         * lib/vfprintf.c: New file.
67339         * m4/vfprintf-posix.m4: New file.
67340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67341         REPLACE_VFPRINTF.
67342         * lib/stdio_.h (vfprintf): New declaration.
67343         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67344         REPLACE_VFPRINTF.
67345
67346 2007-03-08  Bruno Haible  <bruno@clisp.org>
67347
67348         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67349
67350 2007-03-08  Bruno Haible  <bruno@clisp.org>
67351
67352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67353         instead of 'expr' invocations.
67354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67359         Suggested by Paul Eggert.
67360
67361 2007-03-08  Bruno Haible  <bruno@clisp.org>
67362
67363         * modules/fseterr-tests: New file.
67364         * tests/test-fseterr.c: New file.
67365
67366         * modules/fseterr: New file.
67367         * lib/fseterr.h: New file.
67368         * lib/fseterr.c: New file.
67369
67370 2007-03-08  Bruno Haible  <bruno@clisp.org>
67371
67372         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67373         * lib/getopt_.h: Likewise.
67374         * lib/mbswidth.h: Likewise.
67375         * lib/setenv.h: Likewise.
67376         * lib/vasnprintf.h: Likewise.
67377         * lib/vasprintf.h: Likewise.
67378         * lib/verror.h: Likewise.
67379         * lib/xsetenv.h: Likewise.
67380         * lib/xvasprintf.h: Likewise.
67381
67382 2007-03-08  Jim Meyering  <jim@meyering.net>
67383
67384         * users.txt: Add parted.
67385
67386         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67387
67388 2007-03-07  Bruno Haible  <bruno@clisp.org>
67389
67390         * m4/printf.m4: Make the shell script snippets copy&pastable.
67391
67392 2007-03-02  Bruno Haible  <bruno@clisp.org>
67393
67394         * lib/netinet_in_.h: New file.
67395         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67396         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67397         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67398         (Depends-on): Add absolute-header.
67399         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67400         into netinet/in.h.
67401
67402 2007-03-03  Bruno Haible  <bruno@clisp.org>
67403
67404         * lib/sys_select_.h: New file.
67405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67406         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67407         * modules/sys_select (Files): Add lib/sys_select_.h.
67408         (Depends-on): Add absolute-header.
67409         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67410         into sys/select.h.
67411
67412 2007-03-02  Bruno Haible  <bruno@clisp.org>
67413
67414         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67415         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67416         values.
67417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67418         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67419         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67420         * modules/sys_socket (Depends-on): Add absolute-header.
67421         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67422         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67423         (Include): Remove requirement of inclusion of <sys/types.h>.
67424
67425 2007-03-02  Bruno Haible  <bruno@clisp.org>
67426
67427         * lib/byteswap_.h (bswap_32): Fix formula.
67428
67429 2007-03-06  Bruno Haible  <bruno@clisp.org>
67430
67431         * modules/sprintf-posix-tests: New file.
67432         * tests/test-sprintf-posix.c: New file.
67433
67434         * modules/sprintf-posix: New file.
67435         * lib/sprintf.c: New file.
67436         * m4/sprintf-posix.m4: New file.
67437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67438         REPLACE_SPRINTF.
67439         * lib/stdio_.h (sprintf): New declaration.
67440         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67441         REPLACE_SPRINTF.
67442
67443 2007-03-06  Bruno Haible  <bruno@clisp.org>
67444
67445         * modules/vsprintf-posix-tests: New file.
67446         * tests/test-vsprintf-posix.c: New file.
67447         * tests/test-sprintf-posix.h: New file.
67448
67449         * modules/vsprintf-posix: New file.
67450         * lib/vsprintf.c: New file.
67451         * m4/vsprintf-posix.m4: New file.
67452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67453         REPLACE_VSPRINTF.
67454         * lib/stdio_.h (vsprintf): New declaration.
67455         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67456         REPLACE_VSPRINTF.
67457
67458 2007-03-06  Bruno Haible  <bruno@clisp.org>
67459
67460         * modules/vsnprintf (Depend-on): Remove minmax.
67461
67462 2007-03-06  Bruno Haible  <bruno@clisp.org>
67463
67464         * modules/snprintf-posix-tests: New file.
67465         * tests/test-snprintf-posix.c: New file.
67466
67467         * modules/snprintf-posix: New file.
67468         * m4/snprintf-posix.m4: New file.
67469         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67470         gl_FUNC_SNPRINTF.
67471         (gl_FUNC_SNPRINTF): Invoke it.
67472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67473         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67474         is set.
67475         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67476
67477 2007-03-06  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/vsnprintf-posix-tests: New file.
67480         * tests/test-vsnprintf-posix.c: New file.
67481         * tests/test-snprintf-posix.h: New file.
67482
67483         * modules/vsnprintf-posix: New file.
67484         * m4/vsnprintf-posix.m4: New file.
67485         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67486         gl_FUNC_VSNPRINTF.
67487         (gl_FUNC_VSNPRINTF): Invoke it.
67488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67489         * lib/stdio_.h (vsnprintf): Define as a replacement if
67490         REPLACE_VSNPRINTF is set.
67491         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67492
67493 2007-03-06  Bruno Haible  <bruno@clisp.org>
67494
67495         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67497
67498 2007-03-06  Bruno Haible  <bruno@clisp.org>
67499
67500         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67501         (asinl): Declare also if HAVE_DECL_ASINL is set.
67502         (atanl): Declare also if HAVE_DECL_ATANL is set.
67503         (ceill): Declare also if HAVE_DECL_CEILL is set.
67504         (cosl): Declare also if HAVE_DECL_COSL is set.
67505         (expl): Declare also if HAVE_DECL_EXPL is set.
67506         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67507         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67508         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67509         (logl): Declare also if HAVE_DECL_LOGL is set.
67510         (sinl): Declare also if HAVE_DECL_SINL is set.
67511         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67512         (tanl): Declare also if HAVE_DECL_TANL is set.
67513         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67516         declaration of frexpl, ldexpl.
67517         * modules/printf-frexpl (Depends-on): Add math.
67518         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67519
67520 2007-03-05  Bruno Haible  <bruno@clisp.org>
67521
67522         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67523         frexpl and ldexpl are declared.
67524         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67525
67526 2007-03-05  Bruno Haible  <bruno@clisp.org>
67527
67528         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67529         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67530
67531 2007-03-05  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/stdio_.h: Include <stddef.h>.
67534
67535 2007-03-05  Bruno Haible  <bruno@clisp.org>
67536
67537         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67538
67539 2007-03-05  Bruno Haible  <bruno@clisp.org>
67540
67541         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67542         NetBSD 4, from Ralf Wildenhues.
67543
67544 2007-03-04  Bruno Haible  <bruno@clisp.org>
67545
67546         * lib/vasprintf.h: Update #if logic for the case when the functions
67547         exist but are overridden.
67548
67549 2007-03-04  Bruno Haible  <bruno@clisp.org>
67550
67551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67552         implementations: glibc-2.4 and MacOS X 10.3.
67553         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67554         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67555         * tests/test-vasprintf-posix.c (test_function): Likewise.
67556
67557 2007-03-04  Bruno Haible  <bruno@clisp.org>
67558
67559         * modules/vasprintf-posix-tests: New file.
67560         * tests/test-vasprintf-posix.c: New file.
67561
67562         * modules/vasprintf-posix: New file.
67563         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67564         defined.
67565         * m4/vasprintf-posix.m4: New file.
67566         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67567         gl_FUNC_VASPRINTF.
67568         (gl_FUNC_VASPRINTF): Invoke it.
67569         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67570         here.
67571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67572
67573 2007-03-04  Bruno Haible  <bruno@clisp.org>
67574
67575         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67576         REPLACE_GETTIMEOFDAY.
67577         * modules/sys_time (Makefile.am): Likewise.
67578         * m4/sys_time_h.m4: Likewise.
67579         * m4/gettimeofday.m4: Likewise.
67580
67581 2007-03-04  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/vasnprintf-posix-tests: New file.
67584         * tests/test-vasnprintf-posix.c: New file.
67585
67586         * modules/vasnprintf-posix: New file.
67587         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67588         printf-frexpl.h.
67589         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67590         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67591         REPLACE_VASNPRINTF is defined.
67592         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67593         gl_FUNC_VASNPRINTF.
67594         (gl_FUNC_VASNPRINTF): Invoke it.
67595         * m4/vasnprintf-posix.m4: New file.
67596         * m4/printf.m4: New file.
67597
67598 2007-03-04  Bruno Haible  <bruno@clisp.org>
67599
67600         Compile progreloc.c only if --enable-relocatable is specified.
67601         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67602         if --enable-relocatable was specified.
67603         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67604         lib_SOURCES.
67605
67606 2007-03-04  Jim Meyering  <jim@meyering.net>
67607
67608         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67609         Use it consistently, rather than enumerating errno constants.
67610
67611 2007-03-04  Bruno Haible  <bruno@clisp.org>
67612
67613         * modules/xvasprintf-tests: New file.
67614         * tests/test-xvasprintf.c: New file.
67615
67616         * modules/vasprintf-tests: New file.
67617         * tests/test-vasprintf.c: New file.
67618
67619         * modules/vasnprintf-tests: New file.
67620         * tests/test-vasnprintf.c: New file.
67621
67622         * modules/vsnprintf-tests: New file.
67623         * tests/test-vsnprintf.c: New file.
67624
67625         * modules/snprintf-tests: New file.
67626         * tests/test-snprintf.c: New file.
67627
67628 2007-03-04  Bruno Haible  <bruno@clisp.org>
67629
67630         Compile relocatable.c only if --enable-relocatable is specified.
67631         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67632         gl_RELOCATABLE_LIBRARY.
67633         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67634         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67635         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67636         gl_RELOCATABLE_LIBRARY.
67637         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67638         (Makefile.am): Remove lib_SOURCES.
67639         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67640         gl_RELOCATABLE_LIBRARY.
67641         (Makefile.am): Remove lib_SOURCES.
67642         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67643         always.
67644         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67645         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67646
67647 2007-03-04  Bruno Haible  <bruno@clisp.org>
67648
67649         * modules/argmatch-tests: New file.
67650         * tests/test-argmatch.c: New file.
67651
67652         * tests/test-allocsa.c (main): Halve the number of loop runs.
67653
67654         * modules/alloca-opt-tests: New file.
67655         * tests/test-alloca-opt.c: New file.
67656
67657 2007-03-04  Jim Meyering  <jim@meyering.net>
67658
67659         Work around difference between Linux ACLs and Solaris 10 ZFS.
67660         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67661         for EINVAL.
67662
67663 2007-03-03  Bruno Haible  <bruno@clisp.org>
67664
67665         * modules/relocatable-prog (Depends-on): Add back progreloc's
67666         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67667
67668 2007-03-03  Bruno Haible  <bruno@clisp.org>
67669
67670         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67671         * modules/relocatable-lib: New file.
67672
67673 2007-03-03  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/relocatable-prog: Renamed from modules/relocatable.
67676         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67677
67678 2007-03-03  Bruno Haible  <bruno@clisp.org>
67679
67680         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67681         m4/relocatable-lib.m4.
67682         (Depends-on): Remove 'relocatable'.
67683         (configure.ac): Add gl_RELOCATABLE_NOP.
67684
67685 2007-03-03  Bruno Haible  <bruno@clisp.org>
67686
67687         * modules/relocatable-prog-wrapper: New file.
67688         * modules/relocatable (Depends-on): Add it. Remove all other
67689         dependencies except progname.
67690         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67691
67692         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67693         (gl_FUNC_STRERROR): Nop.
67694         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67695
67696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67697         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67698
67699         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67700         (gl_FUNC_READLINK): Update.
67701
67702         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67703
67704 2007-03-03  Bruno Haible  <bruno@clisp.org>
67705
67706         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67707         * modules/xreadlink (Depends-on): Add unistd.
67708         * modules/xreadlink-with-size (Depends-on): Likewise.
67709
67710 2007-03-03  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67713         extracted from gt_FUNC_SETENV.
67714         (gt_FUNC_SETENV): Remove macro.
67715         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67716         remove gt_FUNC_SETENV.
67717
67718 2007-03-03  Bruno Haible  <bruno@clisp.org>
67719
67720         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67721         ENABLE_RELOCATABLE here.
67722         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67723
67724 2007-03-03  Bruno Haible  <bruno@clisp.org>
67725
67726         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67727         * tests/test-rbtreehash_list.c: Include progname.h.
67728         (main): Call set_program_name.
67729
67730         * modules/rbtree-oset-tests (Depends-on): Add progname.
67731         * tests/test-rbtree_oset.c: Include progname.h.
67732         (main): Call set_program_name.
67733
67734         * modules/rbtree-list-tests (Depends-on): Add progname.
67735         * tests/test-rbtree_list.c: Include progname.h.
67736         (main): Call set_program_name.
67737
67738         * modules/linked-list-tests (Depends-on): Add progname.
67739         * tests/test-linked_list.c: Include progname.h.
67740         (main): Call set_program_name.
67741
67742 2007-03-03  Bruno Haible  <bruno@clisp.org>
67743
67744         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67745         All uses of __restrict changed to _Restrict_.
67746         * lib/glob_.h (__restrict): Remove macro.
67747
67748 2007-03-02  Bruno Haible  <bruno@clisp.org>
67749
67750         * modules/gettext (configure.ac): Require gettext infrastructure
67751         from version 0.16.1.
67752
67753 2007-03-02  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/linkedhash-list-tests (Depends-on): Add progname.
67756         * tests/test-linkedhash_list.c: Include progname.h.
67757         (main): Call set_program_name.
67758
67759         * modules/carray-list-tests (Depends-on): Add progname.
67760         * tests/test-carray_list.c: Include progname.h.
67761         (main): Call set_program_name.
67762
67763         * modules/avltreehash-list-tests (Depends-on): Add progname.
67764         * tests/test-avltreehash_list.c: Include progname.h.
67765         (main): Call set_program_name.
67766
67767         * modules/avltree-oset-tests (Depends-on): Add progname.
67768         * tests/test-avltree_oset.c: Include progname.h.
67769         (main): Call set_program_name.
67770
67771         * modules/avltree-list-tests (Depends-on): Add progname.
67772         * tests/test-avltree_list.c: Include progname.h.
67773         (main): Call set_program_name.
67774
67775         * modules/array-oset-tests (Depends-on): Add progname.
67776         * tests/test-array_oset.c: Include progname.h.
67777         (main): Call set_program_name.
67778
67779         * modules/array-list-tests (Depends-on): Add progname.
67780         * tests/test-array_list.c: Include progname.h.
67781         (main): Call set_program_name.
67782
67783         * modules/argp-tests (Depends-on): Add progname.
67784         * tests/test-argp.c: Include argp.h first. Include progname.h.
67785         (main): Call set_program_name.
67786
67787 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67788
67789         * doc/gnulib-tool.texi (Initial import): Reword description of
67790         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67791         limited effect even if defined after the first system include.
67792
67793 2007-03-01  Bruno Haible  <bruno@clisp.org>
67794
67795         * build-aux/config.libpath: Update to libtool-1.5.22.
67796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67797
67798 2007-03-01  Bruno Haible  <bruno@clisp.org>
67799
67800         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67801         foo_CFLAGS.
67802         Reported by Ralf Wildenhues.
67803
67804 2007-03-01  Bruno Haible  <bruno@clisp.org>
67805
67806         * build-aux/install-reloc: Remove object files left over by some
67807         compilers.
67808         Reported by Ralf Wildenhues.
67809
67810 2007-03-01  Bruno Haible  <bruno@clisp.org>
67811
67812         * build-aux/install-reloc: Break long lines.
67813
67814 2007-03-01  Bruno Haible  <bruno@clisp.org>
67815
67816         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67817         Reported by Ralf Wildenhues.
67818
67819 2007-03-01  Bruno Haible  <bruno@clisp.org>
67820
67821         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67822         include ordering constraints.
67823
67824 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67825
67826         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67828         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67829         as another example.
67830         * lib/time_.h: Fix misspelling.
67831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67832         Require gl_HEADER_TIME_H_DEFAULTS.
67833         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67834         * m4/time_r.m4 (gl_TIME_R): Likewise.
67835         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67836
67837 2007-03-01  Bruno Haible  <bruno@clisp.org>
67838
67839         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67840         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67841
67842 2007-03-01  Jim Meyering  <jim@meyering.net>
67843
67844         * modules/xreadlink (Maintainer): Add my name.
67845         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67846
67847 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67848             Bruno Haible  <bruno@clisp.org>
67849
67850         * build-aux/install-reloc: Compile also c-ctype.c.
67851         * build-aux/relocatable.sh.in: New file.
67852         * doc/relocatable.texi: New file.
67853         * doc/relocatable-maint.texi: New file.
67854         * doc/gnulib.texi: Include relocatable-maint.texi.
67855         * lib/progreloc.c: Include unistd.h unconditionally.
67856         * lib/relocwrapper.c: Include unistd.h unconditionally.
67857         Include c-ctype.h.
67858         (add_dotbin): Use c_tolower.
67859         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67860         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67861         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67862         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67863         to m4/relocatable-lib.m4.
67864         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67865         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67866         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67867         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67868         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67869         * modules/relocatable: New file.
67870         * modules/relocatable-lib: New file.
67871         * modules/relocatable-script: New file.
67872
67873 2007-02-28  Bruno Haible  <bruno@clisp.org>
67874
67875         Import --enable-relocatable infrastructure.
67876         * build-aux/config.libpath: New file, from GNU gettext.
67877         * build-aux/install-reloc: New file, from GNU gettext.
67878         * build-aux/reloc-ldflags: New file, from GNU gettext.
67879         * lib/relocatable.h: New file, from GNU gettext.
67880         * lib/relocatable.c: New file, from GNU gettext.
67881         * lib/relocwrapper.c: New file, from GNU gettext.
67882         * m4/relocatable.m4: New file, from GNU gettext.
67883
67884 2007-02-28  Bruno Haible  <bruno@clisp.org>
67885
67886         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67887
67888         * modules/xreadlink: New file, from GNU gettext with modifications.
67889         * lib/xreadlink.c: New file, from GNU gettext.
67890         * lib/xreadlink.h: Add comments.
67891         (xreadlink): New declaration.
67892
67893         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67894         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67895         lib/xreadlink-with-size.c.
67896         (configure.ac): Remove gl_XREADLINK invocation.
67897         (Makefile.am): Augment lib_SOURCES.
67898         * m4/xreadlink.m4: Remove file.
67899         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67900         (xreadlink_with_size): Renamed from xreadink.
67901         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67902         * modules/canonicalize (Depends-on): Replace xreadlink with
67903         xreadlink-with-size.
67904         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67905
67906 2007-02-25  Jim Meyering  <jim@meyering.net>
67907
67908         * build-aux/announce-gen: When complaining about excess arguments,
67909         list them.
67910
67911 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * README: Document signed integer overflow situation more
67914         accurately.
67915
67916 2007-02-25  Bruno Haible  <bruno@clisp.org>
67917
67918         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67919         'a' or 'A' conversion.
67920
67921 2007-02-25  Bruno Haible  <bruno@clisp.org>
67922
67923         * modules/filename: Renamed from modules/pathname.
67924         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67925         lib/concatpath.c with lib/concat-filename.c.
67926         (Makefile.am): Update.
67927         (Include): Replace pathname.h with filename.h.
67928         * lib/filename.h: Renamed from lib/pathname.h.
67929         (concatenated_filename): Renamed from concatenated_pathname.
67930         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67931         (concatenated_filename): Renamed from concatenated_pathname.
67932         * lib/findprog.c: Include filename.h instead of pathname.h.
67933         (find_in_path): Update.
67934         * lib/javacomp.c: Include filename.h instead of pathname.h.
67935         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67936         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67937         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67938         is_oldgcj_14_13_usable, is_javac_usable): Update.
67939         * lib/javaexec.c: Include filename.h instead of pathname.h.
67940         (execute_java_class): Update.
67941         * modules/findprog: Update.
67942         * modules/javacomp: Update.
67943         * modules/javaexec: Update.
67944         * MODULES.html.sh (File system functions): Add 'filename', remove
67945         'pathname'.
67946
67947 2007-02-25  Bruno Haible  <bruno@clisp.org>
67948
67949         * modules/printf-frexpl-tests: New file.
67950         * tests/test-printf-frexpl.c: New file.
67951
67952         * modules/printf-frexpl: New file.
67953         * lib/printf-frexpl.h: New file.
67954         * lib/printf-frexpl.c: New file.
67955         * m4/printf-frexpl.m4: New file.
67956
67957 2007-02-25  Bruno Haible  <bruno@clisp.org>
67958
67959         * modules/printf-frexp-tests: New file.
67960         * tests/test-printf-frexp.c: New file.
67961
67962         * modules/printf-frexp: New file.
67963         * lib/printf-frexp.h: New file.
67964         * lib/printf-frexp.c: New file.
67965         * m4/printf-frexp.m4: New file.
67966
67967 2007-02-25  Bruno Haible  <bruno@clisp.org>
67968
67969         Assume automake >= 1.10 for the tests.
67970         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67971         * modules/arctwo-tests: Likewise.
67972         * modules/argp-tests: Likewise.
67973         * modules/avltree-list-tests: Likewise.
67974         * modules/avltree-oset-tests: Likewise.
67975         * modules/avltreehash-list-tests: Likewise.
67976         * modules/carray-list-tests: Likewise.
67977         * modules/crc-tests: Likewise.
67978         * modules/des-tests: Likewise.
67979         * modules/gc-arcfour-tests: Likewise.
67980         * modules/gc-arctwo-tests: Likewise.
67981         * modules/gc-des-tests: Likewise.
67982         * modules/gc-hmac-md5-tests: Likewise.
67983         * modules/gc-hmac-sha1-tests: Likewise.
67984         * modules/gc-md2-tests: Likewise.
67985         * modules/gc-md4-tests: Likewise.
67986         * modules/gc-md5-tests: Likewise.
67987         * modules/gc-pbkdf2-sha1-tests: Likewise.
67988         * modules/gc-rijndael-tests: Likewise.
67989         * modules/gc-sha1-tests: Likewise.
67990         * modules/gc-tests: Likewise.
67991         * modules/getaddrinfo-tests: Likewise.
67992         * modules/hmac-md5-tests: Likewise.
67993         * modules/hmac-sha1-tests: Likewise.
67994         * modules/linked-list-tests: Likewise.
67995         * modules/linkedhash-list-tests: Likewise.
67996         * modules/lock-tests: Likewise.
67997         * modules/md2-tests: Likewise.
67998         * modules/md4-tests: Likewise.
67999         * modules/md5-tests: Likewise.
68000         * modules/rbtree-list-tests: Likewise.
68001         * modules/rbtree-oset-tests: Likewise.
68002         * modules/rbtreehash-list-tests: Likewise.
68003         * modules/read-file-tests: Likewise.
68004         * modules/rijndael-tests: Likewise.
68005         * modules/stdint-tests: Likewise.
68006         * modules/tls-tests: Likewise.
68007
68008 2007-02-24  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68011         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68012         function; instead check whether isnan with a double argument links.
68013         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68014         function; instead check whether isnan with a 'long double' argument
68015         links.
68016         Reported by Eric Blake <ebb9@byu.net>.
68017
68018 2007-02-24  Bruno Haible  <bruno@clisp.org>
68019
68020         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68021         defined.
68022         * lib/isnanl.c: Remove all code. Just include isnan.c.
68023         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68024
68025 2007-02-25  Jim Meyering  <jim@meyering.net>
68026
68027         Avoid conflicting types for 'unsetenv' on FreeBSD.
68028         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68029         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68030         in stdlib.h.
68031
68032 2007-02-24  Bruno Haible  <bruno@clisp.org>
68033
68034         * modules/isnanl-nolibm-tests: New file.
68035         * tests/test-isnanl.c: New file.
68036
68037         * modules/isnanl-nolibm: New file.
68038         * lib/isnanl.h: New file.
68039         * lib/isnanl.c: New file.
68040         * m4/isnanl.m4: New file.
68041
68042 2007-02-24  Bruno Haible  <bruno@clisp.org>
68043
68044         * modules/isnan-nolibm-tests: New file.
68045         * tests/test-isnan.c: New file.
68046
68047         * modules/isnan-nolibm: New file.
68048         * lib/isnan.h: New file.
68049         * lib/isnan.c: New file.
68050         * m4/isnan.m4: New file.
68051
68052 2007-02-24  Bruno Haible  <bruno@clisp.org>
68053
68054         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68055         assume that an exponent fits in 20 bits.
68056
68057 2007-02-24  Jim Meyering  <jim@meyering.net>
68058
68059         * m4/regex.m4: Update the description of the configure-time option,
68060         --without-included-regex, to state accurately what the defaults are,
68061         and perhaps to give people an idea why using this option is risky.
68062
68063 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68066         loops on small arguments.  This attempts to avoid the problem
68067         Bruno Haible reported for AIX 4.3.2 in
68068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68069
68070 2007-02-23  Bruno Haible  <bruno@clisp.org>
68071
68072         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68073         Needed for help2man.
68074
68075 2007-02-23  Karl Berry  <karl@gnu.org>
68076
68077         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68078         exists, foo.h should be cvs-ignored, not committed.
68079
68080 2007-02-23  Eric Blake  <ebb9@byu.net>
68081
68082         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68083         * lib/stat-time.h (includes): Likewise.
68084         * lib/utimecmp.c (includes): Likewise.
68085         * lib/utimens.h (includes): Likewise.
68086         * lib/getdate.y (includes): Also include "timespec.h" for use
68087         internal to the module.
68088         * modules/utimens (Depends-on): Revert yesterday's patch.
68089         * modules/nanosleep (Depends-on): Add missing dependency.
68090
68091 2007-02-22  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/glob.c: Don't include getlogin_r.h.
68094
68095 2007-02-22  Jim Meyering  <jim@meyering.net>
68096
68097         * modules/utimens (Depends-on): Add timespec, required for
68098         utimens.h's inclusion of timespec.h.
68099
68100 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68101
68102         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68103         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68104         Schwab in
68105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68106         I'll try to think of a better way to fix the Solaris problem.
68107
68108         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68109         like glibc; on Solaris 10, it fails with errno == EINVAL.
68110         POSIX says the behavior is unspecified if the first argument is NULL,
68111         so play it safe and never pass NULL to the system getcwd.
68112
68113 2007-02-21  Jim Meyering  <jim@meyering.net>
68114
68115         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68116         of gettimeofday.  It would conflict with the one now always
68117         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68118         an IRIX 6.5 build failure.
68119
68120 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         Minor fixups to port to Solaris 10 with Sun C 5.8.
68123         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68124         * modules/getcwd (Depends-on): Add dirfd.
68125         * lib/putenv.c (putenv): #undef it.
68126         (rpl_putenv): New decl.
68127         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68128
68129 2007-02-20  Bruno Haible  <bruno@clisp.org>
68130
68131         * modules/stdio-tests: New file.
68132         * tests/test-stdio.c: New file.
68133
68134         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68135         (Depends-on): Add stdio.
68136         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68137         (Include): Use <stdio.h> instead of vsnprintf.h.
68138         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68139         HAVE_DECL_VSNPRINTF.
68140         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68141
68142         * modules/snprintf (Files): Remove lib/snprintf.h.
68143         (Depends-on): Add stdio.
68144         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68145         (Include): Use <stdio.h> instead of snprintf.h.
68146         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68147         HAVE_DECL_SNPRINTF.
68148         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68149         * lib/getaddrinfo.c: Likewise.
68150
68151         * modules/stdio: New file.
68152         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68153         * lib/snprintf.h: Remove file.
68154         * lib/vsnprintf.h: Remove file.
68155         * lib/.cppi-disable: Remove snprintf.h.
68156         * m4/stdio_h.m4: New file.
68157         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68158
68159 2007-02-20  Jim Meyering  <jim@meyering.net>
68160
68161         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68162         used by e.g., mingw.  From Bruno Haible.
68163
68164 2007-02-19  Bruno Haible  <bruno@clisp.org>
68165
68166         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68167         warnings.
68168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68169
68170 2007-02-19  Bruno Haible  <bruno@clisp.org>
68171
68172         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68173         from mingw users.
68174
68175 2007-02-19  Bruno Haible  <bruno@clisp.org>
68176
68177         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68178         warnings.
68179         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68180
68181 2007-02-19  Jim Meyering  <jim@meyering.net>
68182
68183         Don't use FD after a successful "fdopendir (fd)".
68184         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68185         Reset it by calling dirfd on the just-obtained DIR*.
68186
68187         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68188         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68189
68190 2007-02-18  Bruno Haible  <bruno@clisp.org>
68191
68192         * lib/readlink.c: Include <unistd.h>.
68193         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68194         HAVE_READLINK.
68195         * modules/readlink (Depends-on): Add unistd.
68196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68197         (Include): Add <unistd.h>.
68198
68199         * lib/getlogin_r.h: Remove file.
68200         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68201         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68202         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68203         HAVE_DECL_GETLOGIN_R.
68204         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68206         (Include): Use <unistd.h> instead of getlogin_r.h.
68207
68208         * lib/getcwd.h: Remove file.
68209         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68210         * lib/xgetcwd.c: Likewise.
68211         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68212         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68213         * modules/getcwd (Files): Remove lib/getcwd.h.
68214         (Depends-on): Add unistd.
68215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68216         (Include): Use <unistd.h> instad of getcwd.h.
68217
68218         * lib/ftruncate.c: Include <unistd.h> first.
68219         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68220         Set HAVE_FTRUNCATE.
68221         * modules/ftruncate (Depends-on): Add unistd.
68222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68223
68224         * lib/fchdir.c: Include <unistd.h> first.
68225         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68227         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68228         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68229         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68230
68231         * lib/dup2.c: Include <unistd.h> first.
68232         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68233         HAVE_DUP2.
68234         * modules/dup2 (Depends-on): Add unistd.
68235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68236
68237         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68238         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68239         REPLACE_CHOWN. Don't define chown as a macro here.
68240         * modules/chown (Depends-on): Add unistd.
68241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68242
68243         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68244         Add definition for GL_LINK_WARNING.
68245         (chown, dup2): New declarations.
68246         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68247         link warning.
68248         (ftruncate): New declaration.
68249         (getcwd): New declaration, taken from old getcwd.h.
68250         (getlogin_r): New declaration, taken from old getlogin_r.h.
68251         (readlink): New declaration.
68252         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68253         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68254         (gl_PREREQ_UNISTD): Remove macro.
68255         (gl_UNISTD_MODULE_INDICATOR): New macro.
68256         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68257         many new variables. Don't set UNISTD_H.
68258         * modules/unistd (Description): Change.
68259         (Depends-on): Add link-warning.
68260         (configure.ac): Update.
68261         (Makefile.am): Create unistd.h always. Substitute many new variables
68262         into it.
68263
68264 2007-02-18  Bruno Haible  <bruno@clisp.org>
68265
68266         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68267         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68268         HAVE_GETSUBOPT.
68269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68270         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68271         * lib/getsubopt.h: Remove file.
68272         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68273         (Depends-on): Add stdlib.
68274         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68275         (Includes): Use <stdlib.h> instead of getsubopt.h.
68276         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68277         Set HAVE_GETSUBOPT.
68278         * lib/getsubopt.c: Don't include getsubopt.h.
68279
68280 2007-02-18  Bruno Haible  <bruno@clisp.org>
68281
68282         * modules/fchdir (Depends-on): Add dup2.
68283
68284 2007-02-18  Bruno Haible  <bruno@clisp.org>
68285
68286         * lib/stdlib_.h: Handle glibc's special invocation convention
68287         specially.
68288
68289 2007-02-18  Bruno Haible  <bruno@clisp.org>
68290
68291         * modules/stdlib-tests: New file.
68292         * tests/test-stdlib.c: New file.
68293
68294         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68295         (Depends-on): Add stdlib.
68296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68297         (Includes): Use <stdlib.h> instead of mkstemp.h.
68298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68299         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68300         * lib/mkstemp.c: Don't include mkstemp.h.
68301         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68302         * lib/stdlib--.h: Don't include mkstemp.h.
68303
68304         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68305         (Depends-on): Add stdlib.
68306         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68307         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68308         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68309         HAVE_MKDTEMP.
68310         * lib/mkdtemp.c: Don't include mkdtemp.h.
68311         * lib/clean-temp.c: Don't include mkdtemp.h.
68312
68313         * modules/exit (Files): Remove lib/exit.h.
68314         (Depends-on): Add stdlib.
68315         (Makefile.am): Remove lib_SOURCES.
68316         (Include): Use <stdlib.h> instead of exit.h.
68317         * lib/argmatch.c: Don't include exit.h.
68318         * lib/execute.c: Likewise.
68319         * lib/pagealign_alloc.c: Likewise.
68320         * lib/pipe.c: Likewise.
68321         * lib/wait-process.c: Likewise.
68322         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68323         * lib/exitfail.c: Likewise.
68324         * lib/savewd.c: Likewise.
68325         * lib/xsetenv.c: Likewise.
68326
68327         * modules/stdlib: New file.
68328         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68329         and extra comments about mkstemp().
68330         * lib/exit.h: Remove file.
68331         * lib/mkdtemp.h: Remove file.
68332         * lib/mkstemp.h: Remove file.
68333         * m4/stdlib_h.m4: New file.
68334         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68335
68336 2007-02-18  Bruno Haible  <bruno@clisp.org>
68337
68338         * modules/math-tests: New file.
68339         * tests/test-math.c: New file.
68340
68341         * modules/math: New file.
68342         * modules/mathl (Files): Remove lib/mathl.h.
68343         (Depends-on): Add math.
68344         (Makefile.am): Don't mention mathl.h.
68345         (Include): Use <math.h> instead of mathl.h.
68346         * lib/math_.h: New file.
68347         * lib/mathl.h: Remove file.
68348         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68349         mathl.h.
68350         * lib/asinl.c: Likewise.
68351         * lib/atanl.c: Likewise.
68352         * lib/ceill.c: Likewise.
68353         * lib/cosl.c: Likewise.
68354         * lib/expl.c: Likewise.
68355         * lib/floorl.c: Likewise.
68356         * lib/frexpl.c: Likewise.
68357         * lib/ldexpl.c: Likewise.
68358         * lib/logl.c: Likewise.
68359         * lib/sincosl.c: Likewise.
68360         * lib/sinl.c: Likewise.
68361         * lib/sqrtl.c: Likewise.
68362         * lib/tanl.c: Likewise.
68363         * lib/trigl.c: Likewise.
68364         * m4/math_h.m4: New file.
68365         * MODULES.html.sh (Mathematics): Add math.
68366
68367 2007-02-17  Bruno Haible  <bruno@clisp.org>
68368
68369         * modules/wctype-tests: New file.
68370         * tests/test-wctype.c: New file.
68371
68372         * modules/wchar-tests: New file.
68373         * tests/test-wchar.c: New file.
68374
68375         * modules/unistd-tests: New file.
68376         * tests/test-unistd.c: New file.
68377
68378         * modules/time-tests: New file.
68379         * tests/test-time.c: New file.
68380
68381         * modules/sysexits-tests: New file.
68382         * tests/test-sysexits.c: New file.
68383
68384         * modules/sys_time-tests: New file.
68385         * tests/test-sys_time.c: New file.
68386
68387         * modules/sys_stat-tests: New file.
68388         * tests/test-sys_stat.c: New file.
68389
68390         * modules/sys_socket-tests: New file.
68391         * tests/test-sys_socket.c: New file.
68392
68393         * modules/sys_select-tests: New file.
68394         * tests/test-sys_select.c: New file.
68395
68396         * modules/string-tests: New file.
68397         * tests/test-string.c: New file.
68398
68399         * modules/stdbool-tests: New file.
68400         * tests/test-stdbool.c: New file.
68401
68402         * modules/netinet_in-tests: New file.
68403         * tests/test-netinet_in.c: New file.
68404
68405         * modules/inttypes-tests: New file.
68406         * tests/test-inttypes.c: New file.
68407
68408         * modules/fcntl-tests: New file.
68409         * tests/test-fcntl.c: New file.
68410
68411         * modules/byteswap-tests: New file.
68412         * tests/test-byteswap.c: New file.
68413
68414         * modules/arpa_inet-tests: New file.
68415         * tests/test-arpa_inet.c: New file.
68416
68417 2007-02-17  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68420         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68421         if the corresponding module is not enabled. Emit link warnings if
68422         the function is used nevertheless.
68423         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68424         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68425         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68426         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68427         * modules/inttypes (Depends-on): Add link-warning.
68428         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68429         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68430         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68431         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68432         * modules/imaxdiv (configure.ac): Likewise.
68433         * modules/strtoimax (configure.ac): Likewise.
68434         * modules/strtoumax (configure.ac): Likewise.
68435
68436 2007-02-17  Bruno Haible  <bruno@clisp.org>
68437
68438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68439         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68440         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68441         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68442
68443 2007-02-17  Bruno Haible  <bruno@clisp.org>
68444
68445         * modules/link-warning: New file.
68446         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68447         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68448         * modules/string (Depends-on): Add link-warning.
68449         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68450         string.h.
68451         * MODULES.html.sh (Support for building libraries and executables): Add
68452         link-warning.
68453
68454 2007-02-17  Bruno Haible  <bruno@clisp.org>
68455
68456         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68457         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68458         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68459         long lines.
68460
68461 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68462             Bruno Haible  <bruno@clisp.org>
68463
68464         * modules/tmpfile: New file.
68465         * lib/tmpfile.c: New file.
68466         * m4/tmpfile.m4: New file.
68467         * MODULES.html.sh (func_all_modules): New section "Input/output".
68468
68469 2007-02-15  Bruno Haible  <bruno@clisp.org>
68470
68471         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68472         (supports_delete_on_close): New function.
68473         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68474
68475 2007-02-14  Bruno Haible  <bruno@clisp.org>
68476
68477         * modules/mbspcasecmp-tests: New file.
68478         * tests/test-mbspcasecmp.sh: New file.
68479         * tests/test-mbspcasecmp.c: New file.
68480
68481         New module mbspcasecmp.
68482         * modules/mbspcasecmp: New file.
68483         * lib/mbspcasecmp.c: New file.
68484         * lib/string_.h (strncasecmp): Change warning message.
68485         (mbspcasecmp): New declaration.
68486         * m4/mbspcasecmp.m4: New file.
68487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68488         GNULIB_MBSPCASECMP.
68489         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68490         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68491
68492 2007-02-14  Bruno Haible  <bruno@clisp.org>
68493
68494         * modules/mbsncasecmp-tests: New file.
68495         * tests/test-mbsncasecmp.sh: New file.
68496         * tests/test-mbsncasecmp.c: New file.
68497
68498         New module mbsncasecmp.
68499         * modules/mbsncasecmp: New file.
68500         * lib/mbsncasecmp.c: New file.
68501         * lib/string_.h (mbsncasecmp): New declaration.
68502         * m4/mbsncasecmp.m4: New file.
68503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68504         GNULIB_MBSNCASECMP.
68505         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68506         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68507
68508 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68511         Verify that it doesn't overlap with our flags.
68512         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68513         do not have the desired effect in multibyte locales; instead, use
68514         mbscasecmp.
68515         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68516         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68517         we don't require GNU fnmatch ourselves (if our users require it, they
68518         should do so explicitly).
68519
68520         Fix regex code so it doesn't rely on strcasecmp.
68521         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68522         Otherwise, include gnulib's langinfo.h.
68523         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68524         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68525         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68526         * modules/regex (FILES): Remove m4/codeset.m4.
68527         (Depends-on): Add localcharset.  Remove strcase.
68528
68529 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68530
68531         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68532         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68533
68534 2007-02-13  Bruno Haible  <bruno@clisp.org>
68535
68536         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68538
68539 2007-02-12  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68542         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68543         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68544         time warning rather than a link error.
68545
68546 2007-02-12  Bruno Haible  <bruno@clisp.org>
68547
68548         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68551
68552 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68555         args, not 2.
68556
68557 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         New module 'time', so that apps can include <time.h> as per
68560         POSIX and GNU instead of separate include files like time_r.h
68561         and timegm.h.  This implementation tries out a simpler approach
68562         for replacing decls in standard include files (as compared to
68563         the string module), somewhat as an experiment.
68564
68565         * config/srclist.txt: Comment out mktime.c for now.
68566         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68567         since it doesn't apply any more.  Use generic wording instead.
68568         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68569         'time'.
68570         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68571         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68572         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68573         Don't include <sys/types.h>; no longer needed since we assume C89.
68574         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68575         * lib/strftime.c: Likewise.
68576         * lib/time_r.c: Likewise.
68577         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68578         * lib/nanosleep.c: Include <time.h> first, to check interface.
68579         * lib/strptime.c: Likewise.
68580         * lib/time_r.c: Likewise.
68581         * lib/timegm.c: Likewise.
68582         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68583         needed.
68584         * lib/timegm.c: Don't include timegm.h; no longer needed.
68585         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68586         time.h now handles any problems in that area.
68587         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68588         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68589         that time.h defines struct timespec.
68590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68591         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68592         handles that.
68593         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68594         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68595         needed.  Set REPLACE_LOCALTIME.
68596         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68597         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68598         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68599         nanosleep; time_h.m4 now does that.  Don't require
68600         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68601         module handles this now.
68602         * modules/getdate (Depends-on): Remove timespec.  Add time.
68603         * modules/nanosleep (Depends-on): Likewise.
68604         * modules/stat-time (Depends-on): Likewise.
68605         * modules/nanosleep (Include): Include time.h, not timespec.h.
68606         * modules/strptime (Files): Remove lib/strptime.h.
68607         (Depends-on): Add extensions, time.
68608         (Include): Include time.h, not strptime.h.
68609         * modules/time_r (Files): Remove lib/time_r.h.
68610         (Depends-on): Add time.
68611         (Include): Include time.h, not time_r.h.
68612         * modules/timegm: Likewise.
68613         * modules/timespec (Description): Now does timespec-related decls
68614         of our own, instead of struct timespec itself.
68615         (Depends-on): Add time; remove extensions.
68616         (Maintainer): Add self.
68617         * modules/utimecmp (Depends-on): Add time; remove timespec.
68618         * modules/utimens (Depends-on): Likewise.
68619         * modules/xnanosleep (Depends-on): Likewise.
68620
68621 2007-02-11  Bruno Haible  <bruno@clisp.org>
68622
68623         * lib/c-strstr.c: Include allocsa.h.
68624         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68625         * lib/c-strcasestr.c: Include allocsa.h.
68626         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68627         * lib/strcasestr.c: Include allocsa.h.
68628         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68629         * lib/mbsstr.c: Include allocsa.h.
68630         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68631         allocsa/freesa instead of malloc/free.
68632         * lib/mbscasestr.c: Include allocsa.h.
68633         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68634         allocsa/freesa instead of malloc/free.
68635         * modules/c-strstr (Depends-on): Add allocsa.
68636         * modules/c-strcasestr (Depends-on): Likewise.
68637         * modules/strcasestr (Depends-on): Likewise.
68638         * modules/mbsstr (Depends-on): Likewise.
68639         * modules/mbscasestr (Depends-on): Likewise.
68640
68641 2007-02-11  Bruno Haible  <bruno@clisp.org>
68642
68643         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68644
68645         * modules/mbsspn-tests: New file.
68646         * tests/test-mbsspn.sh: New file.
68647         * tests/test-mbsspn.c: New file.
68648
68649 2007-02-11  Bruno Haible  <bruno@clisp.org>
68650
68651         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68652
68653         * modules/mbspbrk-tests: New file.
68654         * tests/test-mbspbrk.sh: New file.
68655         * tests/test-mbspbrk.c: New file.
68656
68657 2007-02-11  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68660         unneeded cast.
68661
68662         * modules/mbscspn-tests: New file.
68663         * tests/test-mbscspn.sh: New file.
68664         * tests/test-mbscspn.c: New file.
68665
68666 2007-02-11  Bruno Haible  <bruno@clisp.org>
68667
68668         * modules/mbscasecmp-tests: New file.
68669         * tests/test-mbscasecmp.sh: New file.
68670         * tests/test-mbscasecmp.c: New file.
68671
68672 2007-02-11  Bruno Haible  <bruno@clisp.org>
68673
68674         Ensure O(n) worst-case complexity of mbscasestr.
68675         * lib/mbscasestr.c: Include stdbool.h.
68676         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68677         functions.
68678         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68679         the bookkeeping indicates that it's worth it.
68680         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68681
68682         * modules/mbscasestr-tests: New file.
68683         * tests/test-mbscasestr1.c: New file.
68684         * tests/test-mbscasestr2.sh: New file.
68685         * tests/test-mbscasestr2.c: New file.
68686         * tests/test-mbscasestr3.sh: New file.
68687         * tests/test-mbscasestr3.c: New file.
68688         * tests/test-mbscasestr4.sh: New file.
68689         * tests/test-mbscasestr4.c: New file.
68690         * m4/locale-tr.m4: New file.
68691
68692 2007-02-11  Bruno Haible  <bruno@clisp.org>
68693
68694         Ensure O(n) worst-case complexity of mbsstr.
68695         * lib/mbsstr.c: Include stdbool.h.
68696         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68697         functions.
68698         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68699         bookkeeping indicates that it's worth it.
68700         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68701
68702         * modules/mbsstr-tests: New file.
68703         * tests/test-mbsstr1.c: New file.
68704         * tests/test-mbsstr2.sh: New file.
68705         * tests/test-mbsstr2.c: New file.
68706         * tests/test-mbsstr3.sh: New file.
68707         * tests/test-mbsstr3.c: New file.
68708         * m4/locale-fr.m4: New file.
68709
68710 2007-02-11  Bruno Haible  <bruno@clisp.org>
68711
68712         * lib/mbsrchr.c (mbsrchr): Fix bug.
68713
68714         * modules/mbsrchr-tests: New file.
68715         * tests/test-mbsrchr.sh: New file.
68716         * tests/test-mbsrchr.c: New file.
68717
68718 2007-02-11  Bruno Haible  <bruno@clisp.org>
68719
68720         * lib/mbschr.c (mbschr): Fix bug.
68721
68722         * modules/mbschr-tests: New file.
68723         * tests/test-mbschr.sh: New file.
68724         * tests/test-mbschr.c: New file.
68725         * m4/locale-zh.m4: New file.
68726
68727 2007-02-11  Bruno Haible  <bruno@clisp.org>
68728
68729         Support for copying multibyte string iterators.
68730         * lib/mbiter.h: Include <string.h>.
68731         (mbiter_multi_copy): New function.
68732         (mbi_copy): New macro.
68733         * lib/mbuiter.h: Include <string.h>.
68734         (mbuiter_multi_copy): New function.
68735         (mbui_copy): New macro.
68736
68737 2007-02-11  Bruno Haible  <bruno@clisp.org>
68738
68739         New module mbslen.
68740         * modules/mbslen: New file.
68741         * lib/mbslen.c: New file.
68742         * lib/string_.h (mbslen): New declaration.
68743         * m4/mbslen.m4: New file.
68744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68745         GNULIB_MBSLEN.
68746         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68747         * MODULES.html.sh (Internationalization functions): Add mbslen.
68748
68749 2007-02-11  Bruno Haible  <bruno@clisp.org>
68750
68751         Ensure O(n) worst-case complexity of strcasestr substitute.
68752         * lib/strcasestr.c: Include stdbool.h.
68753         (knuth_morris_pratt): New function.
68754         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68755         bookkeeping indicates that it's worth it.
68756         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68757
68758         * modules/strcasestr-tests: New file.
68759         * tests/test-strcasestr.c: New file.
68760
68761 2007-02-11  Bruno Haible  <bruno@clisp.org>
68762
68763         Ensure O(n) worst-case complexity of c_strcasestr.
68764         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68765         (knuth_morris_pratt): New function.
68766         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68767         the bookkeeping indicates that it's worth it.
68768         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68769
68770         * modules/c-strcasestr-tests: New file.
68771         * tests/test-c-strcasestr.c: New file.
68772
68773 2007-02-11  Bruno Haible  <bruno@clisp.org>
68774
68775         Ensure O(n) worst-case complexity of c_strstr.
68776         * lib/c-strstr.c: Include stdbool.h, string.h.
68777         (knuth_morris_pratt): New function.
68778         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68779         bookkeeping indicates that it's worth it.
68780         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68781
68782         * lib/c-strstr.c: Complete rewrite for maintainability.
68783
68784         * modules/c-strstr-tests: New file.
68785         * tests/test-c-strstr.c: New file.
68786
68787 2007-02-11  Bruno Haible  <bruno@clisp.org>
68788
68789         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68790         5.2.1 and earlier, whereby \055 was treated just like the range
68791         delimiter '-'.
68792         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68793
68794 2007-02-08  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/regex (Depends-on): Add stdbool.
68797         Reported by Dalibor Topic <robilad@kaffe.org>.
68798
68799 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68802         Prefer returning from main to exiting from it.
68803         Remove unnecessary parens after sizeof.
68804
68805 2007-02-05  Bruno Haible  <bruno@clisp.org>
68806
68807         New module mbssep.
68808         * modules/mbssep: New file.
68809         * lib/mbssep.c: New file.
68810         * lib/string_.h (strsep): Add a conditional link warning.
68811         (mbssep): New declaration.
68812         * m4/mbssep.m4: New file.
68813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68814         GNULIB_MBSSEP.
68815         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68816         * MODULES.html.sh (Internationalization functions): Add mbssep.
68817
68818 2007-02-05  Bruno Haible  <bruno@clisp.org>
68819
68820         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68821         Optimize search in case of 1 delimiter.
68822
68823 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68824
68825         * lib/acl.h: Include sys/types.h before sys/acl.h.
68826
68827 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68828
68829         Merge upstream fix for glibc bugzilla #3957:
68830
68831         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68832
68833         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68834         bit for RE_HAT_LISTS_NOT_NEWLINE.
68835         (build_charclass_op): Remove bogus comment.
68836
68837 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68838
68839         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68840
68841 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68842
68843         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68844         * lib/memmem.c [!defined _LIBC]: Include config.h.
68845
68846 2007-02-04  Bruno Haible  <bruno@clisp.org>
68847
68848         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68849         warning message.
68850
68851 2007-02-04  Bruno Haible  <bruno@clisp.org>
68852
68853         New module mbstok_r.
68854         * modules/mbstok_r: New file.
68855         * lib/mbstok_r.c: New file.
68856         * lib/string_.h (strtok_r): Change argument names to match the
68857         comments. Add a conditional link warning.
68858         (mbstok_r): New declaration.
68859         * m4/mbstok_r.m4: New file.
68860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68861         GNULIB_MBSTOK_R.
68862         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68863         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68864
68865 2007-02-04  Bruno Haible  <bruno@clisp.org>
68866
68867         New module mbsspn.
68868         * modules/mbsspn: New file.
68869         * lib/mbsspn.c: New file.
68870         * lib/string_.h (strspn): Add a conditional link warning.
68871         (mbsspn): New declaration.
68872         * m4/mbsspn.m4: New file.
68873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68874         GNULIB_MBSSPN.
68875         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68876         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68877
68878 2007-02-04  Bruno Haible  <bruno@clisp.org>
68879
68880         New module mbspbrk.
68881         * modules/mbspbrk: New file.
68882         * lib/mbspbrk.c: New file.
68883         * lib/string_.h (strpbrk): Add a conditional link warning.
68884         (mbspbrk): New declaration.
68885         * m4/mbspbrk.m4: New file.
68886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68887         GNULIB_MBSPBRK.
68888         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68889         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68890
68891 2007-02-04  Bruno Haible  <bruno@clisp.org>
68892
68893         New module mbscspn.
68894         * modules/mbscspn: New file.
68895         * lib/mbscspn.c: New file.
68896         * lib/string_.h (strcspn): Add a conditional link warning.
68897         (mbscspn): New declaration.
68898         * m4/mbscspn.m4: New file.
68899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68900         GNULIB_MBSCSPN.
68901         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68902         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68903
68904 2007-02-04  Bruno Haible  <bruno@clisp.org>
68905
68906         New module mbscasestr, reduced goal of strcasestr.
68907         * modules/mbscasestr: New file.
68908         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68909         (mbscasestr): Renamed from strcasestr.
68910         * lib/strcasestr.c: Don't include mbuiter.h.
68911         (strcasestr): Remove support for multibyte locales.
68912         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68913         Change the conditional link warning.
68914         (mbscasestr): New declaration.
68915         * m4/mbscasestr.m4: New file.
68916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68917         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68918         REPLACE_STRCASESTR.
68919         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68921         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68922         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68923         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68924         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68925         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68926         (Depends-on): Remove mbuiter.
68927         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68928
68929 2007-02-04  Bruno Haible  <bruno@clisp.org>
68930
68931         Simplify handling of strncasecmp.
68932         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68933         the conditional link warning.
68934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68935         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68936         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68937         * modules/strcase (configure.ac): Don't invoke
68938         gl_STRING_MODULE_INDICATOR.
68939         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68940
68941 2007-02-04  Bruno Haible  <bruno@clisp.org>
68942
68943         New module mbscasecmp, reduced goal of strcasecmp.
68944         * modules/mbscasecmp: New file.
68945         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68946         (mbscasecmp): Renamed from strcasecmp.
68947         * lib/strcasecmp.c: Don't include mbuiter.h.
68948         (strcasecmp): Remove support for multibyte locales.
68949         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68950         Change the conditional link warning.
68951         (mbscasecmp): New declaration.
68952         * m4/mbscasecmp.m4: New file.
68953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68954         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68955         REPLACE_STRCASECMP.
68956         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68958         GNULIB_MBSCASECMP.
68959         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68960         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68961         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68962         (Depends-on): Remove mbuiter.
68963         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68964
68965 2007-02-04  Bruno Haible  <bruno@clisp.org>
68966
68967         New module mbsstr. Remove module strstr.
68968         * modules/mbsstr: New file.
68969         * modules/strstr: Remove file.
68970         * lib/mbsstr.c: Renamed from lib/strstr.c.
68971         (mbsstr): Renamed from strstr.
68972         * lib/string_.h (strstr): Remove declaration. Change the conditional
68973         link warning.
68974         (mbsstr): New declaration.
68975         * m4/mbsstr.m4: New file.
68976         * m4/strstr.m4: Remove file.
68977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68978         REPLACE_STRSTR.
68979         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68980         Don't initialize GNULIB_STRSTR.
68981         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68982         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68983         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68984         (Support for systems lacking ANSI C 89): Remove strstr.
68985
68986 2007-02-04  Bruno Haible  <bruno@clisp.org>
68987
68988         New module mbsrchr.
68989         * modules/mbsrchr: New file.
68990         * lib/mbsrchr.c: New file.
68991         * lib/string_.h (strrchr): Add a conditional link warning.
68992         (mbsrchr): New declaration.
68993         * m4/mbsrchr.m4: New file.
68994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68995         GNULIB_MBSRCHR.
68996         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68997         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68998
68999 2007-02-04  Bruno Haible  <bruno@clisp.org>
69000
69001         New module mbschr.
69002         * modules/mbschr: New file.
69003         * lib/mbschr.c: New file.
69004         * lib/string_.h (strchr): Add a conditional link warning.
69005         (mbschr): New declaration.
69006         * m4/mbschr.m4: New file.
69007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69008         GNULIB_MBSCHR.
69009         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69010         * MODULES.html.sh (Internationalization functions): Add mbschr.
69011
69012 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69013
69014         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69015
69016         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69017
69018 2007-02-04  Bruno Haible  <bruno@clisp.org>
69019
69020         New module description section 'configure.ac-early'.
69021         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69022         (func_get_autoconf_early_snippet): New function.
69023         (func_import, func_create_testdir): Use it. Remove special cases for
69024         modules 'extensions' and 'lock'.
69025         * modules/extensions (configure.ac-early): Require
69026         gl_USE_SYSTEM_EXTENSIONS.
69027         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69028
69029 2007-02-04  Bruno Haible  <bruno@clisp.org>
69030
69031         Make use of gcj-4.3's -fsource and -ftarget option.
69032         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69033         and if so try the options -fsource and -ftarget.
69034         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69035         source_version, ftarget_option, target_version arguments.
69036         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69037         (is_envjavac_oldgcj_14_14_usable): Renamed from
69038         is_envjavac_gcj_14_14_usable.
69039         (is_envjavac_oldgcj_14_13_usable): Renamed from
69040         is_envjavac_gcj_14_13_usable.
69041         (is_gcj_present): Update.
69042         (is_gcj_43, is_gcj43_usable): New functions.
69043         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69044         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69045         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69046         try the options -fsource and -ftarget.
69047
69048 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69051         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69052         larger value.
69053
69054 2007-02-03  Jim Meyering  <jim@meyering.net>
69055
69056         Give tools a better chance to allocate space for very large buffers.
69057         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69058
69059         Make pwd and readlink work also when run with an unreadable parent dir
69060         on systems with openat support.
69061         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69062         provided getcwd function, even when we have openat support.
69063         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69064
69065 2007-02-02  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69068         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69069         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69070         portability problems if one of these functions is only used on specific
69071         platforms.
69072         Reported by Paul Eggert.
69073
69074 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69075
69076         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69077         is causing more trouble than it's curing.
69078         * lib/regex_internal.h (__mempcpy): Remove.
69079         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69080         (and make the code a tad smaller to boot).
69081         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69082
69083 2007-02-02  Jim Meyering  <jim@meyering.net>
69084
69085         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69086         section, not in the Makefile.am: one.
69087
69088 2007-02-02  Eric Blake  <ebb9@byu.net>
69089
69090         * lib/strchrnul.c: Always include config.h first.
69091
69092         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69093         gnulib strstr is not necessary here.
69094
69095 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69096
69097         * m4/socklen.m4: Fix typo.
69098
69099 2007-02-02  Eric Blake  <ebb9@byu.net>
69100
69101         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69102         * modules/netinet_in (Makefile.am): Likewise.
69103
69104 2007-02-01  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/string_.h (GL_LINK_WARNING): New macro.
69107         (strcasecmp, strstr, strcasestr): If provided by the system,
69108         conditionally define as a macro that leads to a warning instead of to
69109         an error.
69110         (strncasecmp): Conditionally define as a macro that leads to a warning.
69111
69112 2007-02-01  Karl Berry  <karl@gnu.org>
69113
69114         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69115
69116 2007-02-01  Bruno Haible  <bruno@clisp.org>
69117
69118         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69119         renamings.
69120
69121 2007-02-01  Eric Blake  <ebb9@byu.net>
69122
69123         * modules/regex (Depends-on): Revert dependence on mempcpy.
69124         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69125         module's definition of mempcpy.
69126         Reported by Paul Eggert.
69127
69128 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69129
69130         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69131         the symbol XYZ before redefining it.  This fixes a problem with
69132         programs that don't use XYZ, when compiled on systems that define
69133         XYZ to something else.
69134
69135 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69138         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69139         writeable to group or other and (2) is intended to have a special
69140         mode bit that is set or cleared.  In such a case, the directory
69141         should be neither group- nor other-writeable until the special
69142         mode bits are right.
69143
69144 2007-01-31  Eric Blake  <ebb9@byu.net>
69145
69146         * modules/mountlist (Depends-on): Add strstr.
69147
69148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69149         bug.
69150         * modules/string (Makefile.am): Remove redundant replacement.
69151         * modules/regex (Depends-on): Add mempcpy.
69152
69153 2007-01-31  Bruno Haible  <bruno@clisp.org>
69154
69155         New module description field 'Link'.
69156         * gnulib-tool (func_usage): Document --extract-link-directive.
69157         (sed_extract_prog): Recognize 'Link' directive.
69158         (func_get_link_directive): New function.
69159         (func_import): Show summary of link directives.
69160         Handle --extract-link-directive option.
69161         * modules/acl (Link): New section.
69162         * modules/clock-time (Link): New section.
69163         * modules/euidaccess (Link): New section.
69164         * modules/gettext (Link): New section.
69165         * modules/iconv (Link): New section.
69166         * modules/lock (Link): New section.
69167         * modules/nanosleep (Link): New section.
69168         * modules/readline (Link): New section.
69169
69170 2007-01-27  Bruno Haible  <bruno@clisp.org>
69171
69172         Enforce the use of gnulib modules for unportable <string.h> functions.
69173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69174         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69175         (gl_HEADER_STRING_H_BODY): Require it.
69176         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69177         the symbol XYZ to one that gives a link error.
69178         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69179         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69180         * modules/mempcpy (configure.ac): Likewise.
69181         * modules/memrchr (configure.ac): Likewise.
69182         * modules/stpcpy (configure.ac): Likewise.
69183         * modules/stpncpy (configure.ac): Likewise.
69184         * modules/strcase (configure.ac): Likewise.
69185         * modules/strcasestr (configure.ac): Likewise.
69186         * modules/strchrnul (configure.ac): Likewise.
69187         * modules/strdup (configure.ac): Likewise.
69188         * modules/strndup (configure.ac): Likewise.
69189         * modules/strnlen (configure.ac): Likewise.
69190         * modules/strpbrk (configure.ac): Likewise.
69191         * modules/strsep (configure.ac): Likewise.
69192         * modules/strstr (configure.ac): Likewise.
69193         * modules/strtok_r (configure.ac): Likewise.
69194
69195 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69196
69197         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69198
69199 2007-01-30  Jim Meyering  <jim@meyering.net>
69200
69201         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69202
69203 2007-01-29  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69206         * lib/execute.c: Likewise.
69207         * lib/pipe.c: Likewise.
69208         * lib/printf-args.h: Likewise.
69209         * lib/printf-args.c: Likewise.
69210         * lib/printf-parse.c: Likewise.
69211         * lib/vasnprintf.c: Likewise.
69212
69213 2007-01-29  Eric Blake  <ebb9@byu.net>
69214
69215         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69216         declaration.
69217
69218 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69219
69220         * lib/strptime.h (strptime): Use 'restrict' for args where
69221         POSIX requires this.
69222         * lib/strptime.c (strptime): Likewise.
69223         Change license notice from LGPL to GPL, since gnulib-tool will
69224         change this as needed.
69225         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69226         defined.
69227         Include "strptime.h" first, to check interface.
69228         Do not #undef _LIBC and _NL_CURRENT.
69229         Do not include <stdlib.h>; no longer needed.
69230         Include "time_r.h" and declare ptime_locale_status
69231         only if _LIBC is not defined.
69232         (__P): Remove unused macro.
69233         (match_string): Bring back glibc version, but use it only if _LIBC
69234         is defined.
69235         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69236         Remove unnecessary assertion and abort() call.
69237         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69238         * m4/strptime.m4: Fix serial number comment.
69239         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69240         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69241         (Depends-on): Add time_r.
69242
69243 2007-01-29  Bruno Haible  <bruno@clisp.org>
69244
69245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69246         strptime.
69247         * modules/strptime (Depends-on): Add stdbool.
69248         * lib/strptime.h: Include <time.h> always. Add comments.
69249
69250 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69251
69252         * modules/strptime: New file.
69253         * lib/strptime.h: New file.
69254         * lib/strptime.c: New file.
69255         * m4/strptime.m4: New file.
69256
69257 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69258
69259         * MODULES.html.sh: New module mpsort.
69260         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69261
69262         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69263         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69265         All uses changed.
69266         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69267         All uses changed.
69268         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69269         to _Restrict_.
69270         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69271         the parameter matches the prototype.
69272
69273 2007-01-28  Jim Meyering  <jim@meyering.net>
69274
69275         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69276         sys/time.h here, reverting that part of the previous patch:
69277         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69278
69279 2007-01-28  Bruno Haible  <bruno@clisp.org>
69280
69281         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69282         value of $(SYS_TIME_H).
69283         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69284         remove it conditionally, too. [added by Jim Meyering]
69285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69287         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69288         GETTIMEOFDAY_REPLACEMENT to 1.
69289
69290 2007-01-28  Bruno Haible  <bruno@clisp.org>
69291
69292         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69293         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69295         Set UNISTD_H instead of UNISTD_H2.
69296         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69297
69298 2007-01-28  Bruno Haible  <bruno@clisp.org>
69299
69300         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69301         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69302
69303 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69304
69305         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69306         (func_create_testdir): Ensure C locale for `grep' and `tr'
69307         character ranges.
69308         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69309         ACLOCAL_AMFLAGS parsing state machine.
69310
69311 2007-01-27  Bruno Haible  <bruno@clisp.org>
69312
69313         * modules/unistr/base: Update.
69314
69315 2007-01-27  Bruno Haible  <bruno@clisp.org>
69316
69317         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69318         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69319         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69320         modules/unistr/u32-mbtouc.
69321         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69322         * lib/unistr.h: Update.
69323         * lib/linebreak.c: Update.
69324         * modules/unistr/u32-mbtouc: Renamed from
69325         modules/unistr/u32-mbtouc-safe.
69326         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69327         * lib/unistr.h: Update.
69328         * lib/unistr/u32-to-u8.c: Update.
69329         * lib/unistr/u32-to-u16.c: Update.
69330
69331 2007-01-27  Bruno Haible  <bruno@clisp.org>
69332
69333         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69334         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69335         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69336         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69337         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69338         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69339         modules/unistr/u16-mbtouc.
69340         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69341         * lib/unistr.h: Update.
69342         * lib/linebreak.c: Update.
69343         * modules/linebreak: Update.
69344         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69345         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69346         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69347         * modules/unistr/u16-mbtouc: Renamed from
69348         modules/unistr/u16-mbtouc-safe.
69349         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69350         * lib/unistr.h: Update.
69351         * lib/unistr/u16-to-u8.c: Update.
69352         * modules/unistr/u16-to-u8: Update.
69353         * lib/unistr/u16-to-u32.c: Update.
69354         * modules/unistr/u16-to-u32: Update.
69355
69356 2007-01-27  Bruno Haible  <bruno@clisp.org>
69357
69358         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69359         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69360         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69361         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69362         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69363         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69364         modules/unistr/u8-mbtouc.
69365         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69366         * lib/unistr.h: Update.
69367         * lib/striconveh.c: Update.
69368         * modules/striconveh: Update.
69369         * lib/linebreak.c: Update.
69370         * modules/linebreak: Update.
69371         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69372         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69373         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69374         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69375         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69376         * lib/unistr.h: Update.
69377         * lib/striconveh.c: Update.
69378         * modules/striconveh: Update.
69379         * lib/unistr/u8-to-u16.c: Update.
69380         * modules/unistr/u8-to-u16: Update.
69381         * lib/unistr/u8-to-u32.c: Update.
69382         * modules/unistr/u8-to-u32: Update.
69383
69384 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69385
69386         Sync from Libtool.
69387         * lib/argz.c: Do not include strings.h nor memory.h, include
69388         string.h unconditionally.  Patch by Simon Josefsson.
69389
69390 2007-01-27  Bruno Haible  <bruno@clisp.org>
69391
69392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69393         from gl_HEADER_STRING_H_BODY.
69394         (gl_HEADER_STRING_H_BODY): Require it.
69395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69396         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69398         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69399         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69400         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69402         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69403         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69404         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69405         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69406         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69407         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69409         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69410
69411 2007-01-27  Bruno Haible  <bruno@clisp.org>
69412
69413         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69414         check_PROGRAMS into noinst_PROGRAMS.
69415         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69416         check_PROGRAMS in this case.
69417         (func_import): Set for_test to false.
69418         (func_create_testdir): Set for_test to true.
69419
69420 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69421             Bruno Haible  <bruno@clisp.org>
69422
69423         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69424         (Depends-on): Add string.
69425         (Includes): Use <string.h> instead of strcasestr.h.
69426         * modules/string (Makefile.am): Also substitute the value of
69427         REPLACE_STRCASESTR.
69428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69429         assume strcasestr is declared in <string.h> not <strings.h>. Also
69430         set REPLACE_STRCASESTR.
69431         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69432         REPLACE_STRCASESTR.
69433         * lib/strcasestr.h: Remove file.
69434         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69435         * lib/string_.h (strcasestr): New declaration.
69436
69437 2007-01-27  Bruno Haible  <bruno@clisp.org>
69438
69439         * lib/string_.h: Use 'extern'.
69440
69441 2007-01-27  Jim Meyering  <jim@meyering.net>
69442
69443         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69444         of set-but-not-used local, "q".
69445
69446         * lib/mempcpy.c: Include <config.h> before <string.h>.
69447         This fixes a compilation error on HP-UX, due to the system's
69448         "restrict"-using mempcpy prototype.
69449
69450 2007-01-26  Bruno Haible  <bruno@clisp.org>
69451
69452         Small optimization.
69453         * lib/javacomp.c: Include c-strstr.h.
69454          (is_envjavac_gcj): Use c_strstr instead of strstr.
69455         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69456
69457 2007-01-26  Bruno Haible  <bruno@clisp.org>
69458
69459         * MODULES.html.sh (Unicode string functions): Add the new modules.
69460
69461         * modules/uniconv/u32-strconv-to-locale: New file.
69462         * lib/uniconv/u32-strconv-to-locale.c: New file.
69463
69464         * modules/uniconv/u16-strconv-to-locale: New file.
69465         * lib/uniconv/u16-strconv-to-locale.c: New file.
69466
69467         * modules/uniconv/u8-strconv-to-locale: New file.
69468         * lib/uniconv/u8-strconv-to-locale.c: New file.
69469
69470         * modules/uniconv/u32-strconv-from-locale: New file.
69471         * lib/uniconv/u32-strconv-from-locale.c: New file.
69472
69473         * modules/uniconv/u16-strconv-from-locale: New file.
69474         * lib/uniconv/u16-strconv-from-locale.c: New file.
69475
69476         * modules/uniconv/u8-strconv-from-locale: New file.
69477         * lib/uniconv/u8-strconv-from-locale.c: New file.
69478
69479         * modules/uniconv/u32-strconv-to-enc: New file.
69480         * lib/uniconv/u32-strconv-to-enc.c: New file.
69481         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69482         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69483
69484         * modules/uniconv/u16-strconv-to-enc: New file.
69485         * lib/uniconv/u16-strconv-to-enc.c: New file.
69486         * lib/uniconv/u-strconv-to-enc.h: New file.
69487         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69488         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69489
69490         * modules/uniconv/u8-strconv-to-enc: New file.
69491         * lib/uniconv/u8-strconv-to-enc.c: New file.
69492         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69493         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69494
69495         * modules/uniconv/u32-strconv-from-enc: New file.
69496         * lib/uniconv/u32-strconv-from-enc.c: New file.
69497         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69498         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69499
69500         * modules/uniconv/u16-strconv-from-enc: New file.
69501         * lib/uniconv/u16-strconv-from-enc.c: New file.
69502         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69503         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69504
69505         * modules/uniconv/u8-strconv-from-enc: New file.
69506         * lib/uniconv/u8-strconv-from-enc.c: New file.
69507         * lib/uniconv/u-strconv-from-enc.h: New file.
69508         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69509         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69510
69511         * modules/uniconv/u32-conv-from-enc: New file.
69512         * lib/uniconv/u32-conv-from-enc.c: New file.
69513         * modules/uniconv/u32-conv-from-enc-tests: New file.
69514         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69515
69516         * modules/uniconv/u16-conv-from-enc: New file.
69517         * lib/uniconv/u16-conv-from-enc.c: New file.
69518         * lib/uniconv/u-conv-from-enc.h: New file.
69519         * modules/uniconv/u16-conv-from-enc-tests: New file.
69520         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69521
69522         * modules/uniconv/u8-conv-from-enc: New file.
69523         * lib/uniconv/u8-conv-from-enc.c: New file.
69524         * modules/uniconv/u8-conv-from-enc-tests: New file.
69525         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69526
69527         * modules/uniconv/base: New file.
69528         * lib/uniconv.h: New file.
69529
69530 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * doc/gnulib-tool.texi (Initial import): Update to match current
69533         behavior with strdup module.
69534         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69535         * lib/memmem.h: Remove; all uses removed.  This is now done
69536         by <string.h>.
69537         * lib/mempcpy.h: Likewise.
69538         * lib/memrchr.h: Likewise.
69539         * lib/stpcpy.h: Likewise.
69540         * lib/stpncpy.h: Likewise.
69541         * lib/strcase.h: Likewise.
69542         * lib/strchrnul.h: Likewise.
69543         * lib/strdup.h: Likewise.
69544         * lib/strndup.h: Likewise.
69545         * lib/strnlen.h: Likewise.
69546         * lib/strpbrk.h: Likewise.
69547         * lib/strsep.h: Likewise.
69548         * lib/strstr.h: Likewise.
69549         * lib/strtok_r.h: Likewise.
69550         * lib/string_.h: New file.
69551         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69552         Rely on <string.h> instead.
69553         * lib/canon-host.c: Likewise.
69554         * lib/chdir-long.c: Likewise.
69555         * lib/concatpath.c: Likewise.
69556         * lib/exclude.c: Likewise.
69557         * lib/fchdir.c: Likewise.
69558         * lib/getaddrinfo.c: Likewise.
69559         * lib/getcwd.c: Likewise.
69560         * lib/getsubopt.c: Likewise.
69561         * lib/glob.c: Likewise.
69562         * lib/hard-locale.c: Likewise.
69563         * lib/iconvme.c: Likewise.
69564         * lib/javacomp.c: Likewise.
69565         * lib/mempcpy.c: Likewise.
69566         * lib/memrchr.c: Likewise.
69567         * lib/regex_internal.h: Likewise.
69568         * lib/stpncpy.c: Likewise.
69569         * lib/strcasecmp.c: Likewise.
69570         * lib/strchrnul.c: Likewise.
69571         * lib/strdup.c: Likewise.
69572         * lib/striconv.c: Likewise.
69573         * lib/striconveh.c: Likewise.
69574         * lib/striconveha.c: Likewise.
69575         * lib/strncasecmp.c: Likewise.
69576         * lib/strndup.c: Likewise.
69577         * lib/strnlen.c: Likewise.
69578         * lib/strsep.c: Likewise.
69579         * lib/strstr.c: Likewise.
69580         * lib/strtok_r.c: Likewise.
69581         * lib/userspec.c: Likewise.
69582         * lib/w32spawn.h: Likewise.
69583         * lib/xstrndup.c: Likewise.
69584         * lib/mountlist.c (strstr): Remove decl.
69585         * m4/string_h.m4: New file.
69586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69587         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69588         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69589         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69590         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69591         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69592         Set REPLACE_STRCASECMP if necessary.
69593         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69594         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69595         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69597         HAVE_DECL_STRDUP if necessary.
69598         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69599         since gl_FUNC_STRNDUP does that now.
69600         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69601         Check for decl here...
69602         (gl_PREREQ_STRNLEN): ... not here.
69603         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69604         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69605         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69607         necessary.
69608         * modules/string: New file.
69609         * modules/memmem (Files): Remove special-purpose include file.
69610         (Depends-on): Add string.
69611         (Include): Include <string.h>, not the removed file.
69612         * modules/mempcpy: Likewise.
69613         * modules/memrchr: Likewise.
69614         * modules/stpcpy: Likewise.
69615         * modules/stpncpy: Likewise.
69616         * modules/strcase: Likewise.
69617         * modules/strchrnul: Likewise.
69618         * modules/strdup: Likewise.
69619         * modules/strndup: Likewise.
69620         * modules/strnlen: Likewise.
69621         * modules/strpbrk: Likewise.
69622         * modules/strsep: Likewise.
69623         * modules/strstr: Likewise.
69624         * modules/strtok_r: Likewise.
69625         * tests/test-dirname.c: Don't include "strdup.h", since
69626         <string.h> now suffices.
69627         * tests/test-memmem.c: Don't include "memmem.h", since
69628         <string.h> now suffices.
69629
69630 2007-01-25  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69633         *resultp is 0.
69634
69635         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69636         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69637         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69638         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69639
69640         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69641         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69642         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69643         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69644         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69645         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69646
69647 2007-01-24  Bruno Haible  <bruno@clisp.org>
69648
69649         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69651         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69652         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69653         gl_FUNC_FTS_CORE.
69654         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69655         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69657         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69658         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69659         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69660         gl_FUNC_FCHOWNAT.
69661         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69662         gl_FUNC_STRFTIME.
69663         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69664         Reported by Ralf Wildenhues.
69665
69666 2007-01-24  Bruno Haible  <bruno@clisp.org>
69667
69668         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69669         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69670         gl_GETADDRINFO.
69671         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69672         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69673         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69674
69675 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69678         Don't use 'exit'; just return from 'main'.
69679         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69680
69681         * lib/fnmatch_.h: Readjust white space and comments to match
69682         glibc, to avoid spurious diffs.
69683
69684 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69687         2004-12-01 change by Jakub Jelinek, since this code won't compile
69688         if !LIBC.  Problem reported by Bob Proulx.
69689
69690 2007-01-23  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/striconveh.c: Include c-strcaseeq.h.
69693         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69694         * modules/striconveh (Depends-on): Add c-strcaseeq.
69695
69696 2007-01-23  Bruno Haible  <bruno@clisp.org>
69697
69698         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69699
69700         * modules/c-strcaseeq: New file.
69701         * lib/c-strcaseeq.h: New file.
69702
69703         * modules/streq: New file.
69704         * lib/streq.h: New file.
69705
69706 2007-01-23  Bruno Haible  <bruno@clisp.org>
69707
69708         * modules/striconveha-tests: New file.
69709         * tests/test-striconveha.c: New file.
69710
69711         * lib/striconveha.h: Include <stdbool.h>.
69712         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69713         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69714         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69715         (mem_iconveha): New function.
69716         (str_iconveha_notranslit): Renamed from str_iconveha.
69717         (str_iconveha): New function.
69718         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69719         c-strcase.
69720
69721 2007-01-23  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69724         encodings without forgiving before trying any encoding with handler.
69725         (str_iconveha): Try all encodings without forgiving before trying any
69726         encoding with handler.
69727
69728 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         Import the following changes from libc.
69731
69732         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69733
69734         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69735
69736         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69737
69738         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69739         normal_bracket label.
69740
69741         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69742
69743         [BZ #361]
69744         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69745         to normal_bracket after fetching the next character.
69746
69747 2007-01-22  Bruno Haible  <bruno@clisp.org>
69748
69749         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69750         argument.
69751         * lib/striconveh.c (iconv_carefully_1): New function.
69752         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69753         argument.
69754         (str_cd_iconveh): Update.
69755         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69756         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69757         * tests/test-striconveh.c (MAGIC): New macro.
69758         (new_offsets): New function.
69759         (main): Test call with and without offsets.
69760
69761 2007-01-22  Bruno Haible  <bruno@clisp.org>
69762
69763         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69764         * modules/sys_select (Makefile.am): Likewise.
69765         * modules/sys_socket (Makefile.am): Likewise.
69766         * modules/sys_time (Makefile.am): Likewise.
69767
69768 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * modules/gettimeofday (License): Change from GPL to LGPL, since
69771         gettimeofday is a library function.
69772
69773 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69774
69775         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69776
69777 2007-01-21  Bruno Haible  <bruno@clisp.org>
69778
69779         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69780
69781 2007-01-21  Bruno Haible  <bruno@clisp.org>
69782
69783         * modules/striconveha: New file.
69784         * lib/striconveha.h: New file.
69785         * lib/striconveha.c: New file.
69786         * MODULES.html.sh (Internationalization functions): Add striconveha.
69787         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69788         string.
69789         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69790
69791 2007-01-21  Bruno Haible  <bruno@clisp.org>
69792
69793         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69794         * lib/striconveh.c (str_iconveh): Likewise.
69795
69796 2007-01-21  Bruno Haible  <bruno@clisp.org>
69797
69798         * lib/striconveh.h (mem_iconveh): New declaration.
69799         * lib/striconveh.c (mem_iconveh): New function.
69800         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69801
69802 2007-01-21  Bruno Haible  <bruno@clisp.org>
69803
69804         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69805
69806         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69807         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69808         original result buffer.
69809         (str_cd_iconveh): Update.
69810         * tests/test-striconveh.c (main): Update.
69811
69812         * lib/striconv.h (mem_cd_iconv): Change specification.
69813         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69814         result buffer.
69815         (str_cd_iconv): Update.
69816         * tests/test-striconv.c (main): Update.
69817
69818 2007-01-21  Bruno Haible  <bruno@clisp.org>
69819
69820         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69821
69822 2007-01-20  Jim Meyering  <jim@meyering.net>
69823
69824         * lib/userspec.c (parse_with_separator): If a user or group string
69825         starts with "+", skip the corresponding name-to-ID look-up, since
69826         such a look-up must fail: user and group names may not include "+".
69827
69828 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69829
69830         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69831         since we now assume the sys_time module.
69832         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69833         check for sys/time.h; no longer needed.
69834         * modules/poll (Depends-on): Depend on sys_time.
69835
69836 2007-01-18  Bruno Haible  <bruno@clisp.org>
69837
69838         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69839         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69840
69841         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69842         gettimeofday.
69843
69844         * tests/test-gettimeofday.c: Include <time.h>.
69845         (dummy): Remove variable.
69846
69847         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69848         gl_HEADER_SYS_TIME_H.
69849         (gl_HEADER_SYS_TIME_H): New macro.
69850
69851         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69852         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69854         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69855         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69857         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69858         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69859         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69860         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69861         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69862
69863         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69864         last change; it caused a compilation error when cross-compiling to
69865         Cygwin.
69866
69867 2007-01-18  Jim Meyering  <jim@meyering.net>
69868
69869         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69870         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69871         than the race-prone "test -d sys || mkdir sys".
69872         (configure.ac): Use AC_PROG_MKDIR_P.
69873         * modules/sys_select: Likewise.
69874         * modules/sys_socket: Likewise.
69875         * modules/sys_time: Likewise.
69876
69877 2007-01-18  Eric Blake  <ebb9@byu.net>
69878
69879         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69880         replace gettimeofday.
69881         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69882         name, to avoid infinite recursion.
69883
69884 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69887         module sys_time.
69888         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69889         assume timespec.h defines struct timeval.
69890         * lib/settime.c: Likewise.
69891         * lib/utimens.c: Likewise.
69892         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69893         since we now assume the gettimeofday module.
69894         * lib/tempname.c (__gen_tempname): Likewise.
69895         * lib/gettimeofday.h: Remove.
69896         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69897         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69898         Include <time.h>, for 'time()'.
69899         (localtime_buffer_addr): Also use this workaround if
69900         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69901         to simplify the uses.  All uses changed.
69902         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69903         that #undef is inside {}, and 'const' follows type name consistently.
69904         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69905         (gettimeofday): Do not use the maximum possible value for
69906         tv->tv_usec, since that might break usages other than ls.c.
69907         Instead, we'll leave ls.c alone.  This undoes today's patch
69908         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69909         we've never observed the problem but might as well keep the
69910         canary.
69911         * lib/nanosleep.c: Include timespec.h first, for interface check.
69912         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69913         now assume the sys_time module.
69914         * lib/tempname.c: Likewise.
69915         * lib/timespec.h: Likewise.
69916         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69917         needed.
69918         * lib/strftime.c: Likewise.
69919         * lib/timespec.h: Likewise.
69920         * lib/posixtm.c: Include posixtm.h first, for interface check.
69921         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69922         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69923         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69924         * lib/sys_time_.h: New file.
69925         * lib/timespec.h (struct timespec): Use long int, not long.
69926         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69927         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69928         Remove obsolescent call to AC_HEADER_TIME.
69929         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69931         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69932         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69933         Likewise.
69934         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69935         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69936         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69937         into the sys_time module.  Check for gettimeofday just once.
69938         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69939         for gettimeofday signature to just check the signature.  Merely
69940         compile it, since linking doesn't test signature.  Improve test for
69941         whether gettimeofday.o is actually needed.
69942         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69943         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69944         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69945         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69946         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69947         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69948         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69949         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69950         than worrying about sys/time.h.
69951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69952         Don't bother worrying about TIME_WITH_SYS_TIME.
69953         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69954         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69955         * m4/sys_time_h.m4: New file.
69956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69957         Don't include sys/time.h.  Return from main rather than exiting.
69958         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69959         all uses changed.
69960         * modules/gethrxtime (Depends-on): Add sys_time.
69961         * modules/gettime (Depends-on): Likewise.
69962         * modules/gettimeofday (Depends-on): Likewise.
69963         * modules/nanosleep (Depends-on): Likewise.
69964         * modules/settime (Depends-on): Likewise.
69965         * modules/tempname (Depends-on): Likewise.
69966         * modules/utimens (Depends-on): Likewise.
69967         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69968         (Include): Change back to <sys/time.h>.
69969         (Maintainer): Add self.
69970         * modules/sys_time: New file.
69971         * modules/tempname (Depends-on): Add gettimeofday.
69972         * tests/test-gettimeofday.c: Include <sys/time.h>
69973         rather than gettimeofday.h.
69974
69975 2007-01-17  Bruno Haible  <bruno@clisp.org>
69976
69977         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69978         the license default to GPL.
69979         (func_create_testdir): Don't complain if a module is LGPL and its
69980         tests module depends on GPLed modules.
69981
69982 2007-01-17  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/gettimeofday.c (gettimeofday): Add code for the case
69985         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69986         maximum possible value for tv->tv_usec, rather than the minimum one.
69987
69988 2005-10-08  Martin Lambers  <marlam@marlam.de>
69989 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69990 2007-01-16  Bruno Haible  <bruno@clisp.org>
69991
69992         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69993         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69994         gl_FUNC_GETTIMEOFDAY.
69995         (Include): Add gettimeofday.h.
69996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69997         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69998         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69999         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70000         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70001         * lib/gettimeofday.h: New file.
70002         * lib/gettimeofday.c: Include <sys/timeb.h>.
70003         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70004         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70005         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70006         fall back on time().
70007
70008         * tests/test-gettimeofday.c: New file.
70009         * modules/gettimeofday-tests: New file.
70010
70011 2007-01-16  Eric Blake  <ebb9@byu.net>
70012
70013         * modules/fnmatch (Depends-on): Depend on wchar.
70014         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70015         * m4/fnmatch.m4: Likewise.
70016         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70017         * m4/mbchar.m4: Likewise.
70018         * modules/mbswidth (Depends-on): Depend on wchar.
70019         * lib/mbswidth.c: Assume <wchar.h>.
70020         * m4/mbswidth.m4: Likewise.
70021         * modules/quotearg (Depends-on): Depend on wchar.
70022         * lib/quotearg.c: Assume <wchar.h>.
70023         * m4/quotearg.m4: Likewise.
70024         * modules/regex (Depends-on): Depend on wchar.
70025         * lib/regex_internal.h: Assume <wchar.h>.
70026         * m4/regex.m4: Likewise.
70027         * modules/stdint (Depends-on): Depend on wchar.
70028         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70029         * m4/stdint.m4: Likewise.
70030         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70031         * modules/strftime (Depends-on): Depend on wchar.
70032         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70033         * modules/strtol (Depends-on): Depend on wchar.
70034         * lib/strtol.c: Assume <wchar.h>.
70035         * modules/wcwidth (Depends-on): Depend on wchar.
70036         * lib/wcwidth.h: Assume <wchar.h>.
70037         * m4/wcwidth.m4: Likewise.
70038
70039 2007-01-16  Bruno Haible  <bruno@clisp.org>
70040
70041         * modules/csharpexec-script: New, created from...
70042         * modules/csharpexec: ... this.
70043
70044 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70045
70046         * modules/javaexec-script: New, created from...
70047         * modules/javaexec: ... this.
70048
70049 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70050
70051         * modules/poll (Dependencies): Add sys_select.
70052
70053 2007-01-15  Jim Meyering  <jim@meyering.net>
70054
70055         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70056         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70057         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70058         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70059
70060 2007-01-15  Bruno Haible  <bruno@clisp.org>
70061
70062         * modules/striconveh: New file.
70063         * lib/striconveh.h: New file.
70064         * lib/striconveh.c: New file.
70065         * MODULES.html.sh (Internationalization functions): Add striconveh.
70066
70067         * modules/striconveh-tests: New file.
70068         * tests/test-striconveh.c: New file.
70069
70070 2007-01-15  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70073         not from GNU libiconv or GNU libc.
70074
70075 2007-01-15  Bruno Haible  <bruno@clisp.org>
70076
70077         * doc/gnulib-intro.texi (Copyright): Explain the different license
70078         terms for module descriptions, autoconf macros, tests, documentation.
70079
70080 2007-01-14  Bruno Haible  <bruno@clisp.org>
70081
70082         * modules/striconv-tests: New file.
70083         * tests/test-striconv.c: New file.
70084
70085 2007-01-14  Bruno Haible  <bruno@clisp.org>
70086
70087         * modules/iconv-tests: New file.
70088         * tests/test-iconv.c: New file.
70089
70090 2007-01-14  Bruno Haible  <bruno@clisp.org>
70091
70092         * gnulib-tool (func_get_license): For test modules, use the license of
70093         the main module.
70094
70095 2007-01-14  Bruno Haible  <bruno@clisp.org>
70096
70097         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70098         if iconv is found to exist.
70099
70100 2007-01-14  Bruno Haible  <bruno@clisp.org>
70101
70102         * modules/c-ctype-tests: New file.
70103         * tests/test-c-ctype.c: New file.
70104
70105 2007-01-14  Bruno Haible  <bruno@clisp.org>
70106
70107         * modules/binary-io-tests: New file.
70108         * tests/test-binary-io.sh: New file.
70109         * tests/test-binary-io.c: New file.
70110
70111 2007-01-14  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/array-oset-tests: New file.
70114         * tests/test-array_oset.c: New file.
70115
70116 2007-01-14  Bruno Haible  <bruno@clisp.org>
70117
70118         * modules/array-list-tests: New file.
70119         * tests/test-array_list.c: New file.
70120
70121 2007-01-14  Bruno Haible  <bruno@clisp.org>
70122
70123         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70124         and make.
70125         Reported by Simon Josefsson in
70126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70127
70128 2007-01-14  Bruno Haible  <bruno@clisp.org>
70129
70130         * modules/allocsa-tests: New file.
70131         * tests/test-allocsa.c: New file.
70132
70133 2007-01-14  Bruno Haible  <bruno@clisp.org>
70134
70135         * modules/fchdir (Depends-on): Add absolute-header.
70136         * modules/unistd (Depends-on): Likewise.
70137
70138 2006-12-30  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/fchdir: New file.
70141         * modules/unistd (Files): Add lib/unistd_.h.
70142         (Makefile.am): Generate unistd.h from unistd_.h.
70143         * lib/fchdir.c: New file.
70144         * lib/dirent_.h: New file.
70145         * lib/unistd_.h: New file.
70146         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70147         * m4/fchdir.m4: New file.
70148         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70149         (gl_HEADER_UNISTD): Invoke it.
70150         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70151         function.
70152         * lib/backupfile.c (opendir, closedir): Undefine.
70153         * lib/chown.c (open, close): Undefine.
70154         * lib/clean-temp.c (open, close): Undefine.
70155         * lib/copy-file.c (open, close): Undefine.
70156         * lib/execute.c (open, close): Undefine.
70157         * lib/fsusage.c (open, close): Undefine.
70158         * lib/gc-gnulib.c (open, close): Undefine.
70159         * lib/getcwd.c (opendir, closedir): Undefine.
70160         * lib/glob.c (opendir, closedir): Undefine.
70161         * lib/javacomp.c (open, close): Undefine.
70162         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70163         * lib/openat-proc.c (open, close): Undefine.
70164         * lib/pagealign_alloc.c (open, close): Undefine.
70165         * lib/pipe.c (open, close): Undefine.
70166         * lib/progreloc.c (open, close): Undefine.
70167         * lib/savedir.c (opendir, closedir): Undefine.
70168         * lib/utime.c (open, close): Undefine.
70169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70170
70171 2007-01-10  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70174
70175 2007-01-12  Eric Blake  <ebb9@byu.net>
70176
70177         Provide a robust <wchar.h>.  Further simplifications are now
70178         possible in other modules, but not included here.
70179         * modules/wchar: New module.
70180         * m4/wchar.m4: New file.
70181         * lib/wchar_.h: Likewise.
70182         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70183         of the new module.
70184         * MODULES.html.sh (Extended multibyte and wide character utilities):
70185         New section.
70186
70187 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70190         to a reasonable default for memory allocation.
70191         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70192         file system that reports garbage st_size values for symlinks.
70193         Problem reported by Liyang Hu.
70194
70195 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70196
70197         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70198         Emacs .#* auto-save files).
70199
70200 2007-01-11  Bruno Haible  <bruno@clisp.org>
70201
70202         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70203         directory.
70204
70205 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         Use @...@ consistently in lib/wctype_.h.
70208         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70209         on it being set to 1 or 0.
70210         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70211         go back to AC_SUBSTing it.
70212         * modules/wctype (Makefile.am): Undo previous change.
70213
70214 2007-01-10  Eric Blake  <ebb9@byu.net>
70215
70216         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70217         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70218         * modules/wctype (Makefile.am): Likewise.
70219         Reported by Chris McGuire.
70220
70221 2007-01-10  Jim Meyering  <jim@meyering.net>
70222
70223         fts.c: a small readability/maintainability improvement
70224         * lib/fts.c (fts_read): Make this code slightly more readable and
70225         maintainable by hoisting the "sp->fts_cur = p" assignments to
70226         immediately follow the statements that set P.  Derived from
70227         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70228
70229 2007-01-10  Eric Blake  <ebb9@byu.net>
70230
70231         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70232         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70234         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70235         Reported by Chris McGuire.
70236
70237 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70238
70239         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70240         in sed script.
70241
70242 2007-01-09  Bruno Haible  <bruno@clisp.org>
70243
70244         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70245         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70246         variables.
70247         (func_module): Use them.
70248
70249 2007-01-09  Bruno Haible  <bruno@clisp.org>
70250
70251         * modules/unistr/base: New file.
70252         * lib/unistr.h: New file.
70253
70254         * modules/unistr/u8-to-u16: New file.
70255         * lib/unistr/u8-to-u16.c: New file.
70256
70257         * modules/unistr/u8-to-u32: New file.
70258         * lib/unistr/u8-to-u32.c: New file.
70259
70260         * modules/unistr/u16-to-u8: New file.
70261         * lib/unistr/u16-to-u8.c: New file.
70262
70263         * modules/unistr/u16-to-u32: New file.
70264         * lib/unistr/u16-to-u32.c: New file.
70265
70266         * modules/unistr/u32-to-u8: New file.
70267         * lib/unistr/u32-to-u8.c: New file.
70268
70269         * modules/unistr/u32-to-u16: New file.
70270         * lib/unistr/u32-to-u16.c: New file.
70271
70272         * modules/unistr/u8-check: New file.
70273         * modules/unistr/u16-check: New file.
70274         * modules/unistr/u32-check: New file.
70275         * lib/unistr/u8-check.c: New file.
70276         * lib/unistr/u16-check.c: New file.
70277         * lib/unistr/u32-check.c: New file.
70278
70279         * modules/unistr/u8-chr: New file.
70280         * modules/unistr/u16-chr: New file.
70281         * modules/unistr/u32-chr: New file.
70282         * lib/unistr/u8-chr.c: New file.
70283         * lib/unistr/u16-chr.c: New file.
70284         * lib/unistr/u32-chr.c: New file.
70285
70286         * modules/unistr/u8-cmp: New file.
70287         * modules/unistr/u16-cmp: New file.
70288         * modules/unistr/u32-cmp: New file.
70289         * lib/unistr/u8-cmp.c: New file.
70290         * lib/unistr/u16-cmp.c: New file.
70291         * lib/unistr/u32-cmp.c: New file.
70292
70293         * modules/unistr/u8-cpy: New file.
70294         * modules/unistr/u16-cpy: New file.
70295         * modules/unistr/u32-cpy: New file.
70296         * lib/unistr/u8-cpy.c: New file.
70297         * lib/unistr/u16-cpy.c: New file.
70298         * lib/unistr/u32-cpy.c: New file.
70299         * lib/unistr/u-cpy.h: New file.
70300
70301         * modules/unistr/u8-cpy-alloc: New file.
70302         * modules/unistr/u16-cpy-alloc: New file.
70303         * modules/unistr/u32-cpy-alloc: New file.
70304         * lib/unistr/u8-cpy-alloc.c: New file.
70305         * lib/unistr/u16-cpy-alloc.c: New file.
70306         * lib/unistr/u32-cpy-alloc.c: New file.
70307         * lib/unistr/u-cpy-alloc.h: New file.
70308
70309         * modules/unistr/u8-endswith: New file.
70310         * modules/unistr/u16-endswith: New file.
70311         * modules/unistr/u32-endswith: New file.
70312         * lib/unistr/u8-endswith.c: New file.
70313         * lib/unistr/u16-endswith.c: New file.
70314         * lib/unistr/u32-endswith.c: New file.
70315         * lib/unistr/u-endswith.h: New file.
70316
70317         * modules/unistr/u8-mblen: New file.
70318         * modules/unistr/u16-mblen: New file.
70319         * modules/unistr/u32-mblen: New file.
70320         * lib/unistr/u8-mblen.c: New file.
70321         * lib/unistr/u16-mblen.c: New file.
70322         * lib/unistr/u32-mblen.c: New file.
70323
70324         * modules/unistr/u8-mbtouc: New file.
70325         * modules/unistr/u16-mbtouc: New file.
70326         * modules/unistr/u32-mbtouc: New file.
70327         * lib/unistr/u8-mbtouc.c: New file.
70328         * lib/unistr/u16-mbtouc.c: New file.
70329         * lib/unistr/u32-mbtouc.c: New file.
70330
70331         * modules/unistr/u8-mbtouc-safe: New file.
70332         * modules/unistr/u16-mbtouc-safe: New file.
70333         * modules/unistr/u32-mbtouc-safe: New file.
70334         * lib/unistr/u8-mbtouc-safe.c: New file.
70335         * lib/unistr/u16-mbtouc-safe.c: New file.
70336         * lib/unistr/u32-mbtouc-safe.c: New file.
70337
70338         * modules/unistr/u8-move: New file.
70339         * modules/unistr/u16-move: New file.
70340         * modules/unistr/u32-move: New file.
70341         * lib/unistr/u8-move.c: New file.
70342         * lib/unistr/u16-move.c: New file.
70343         * lib/unistr/u32-move.c: New file.
70344         * lib/unistr/u-move.h: New file.
70345
70346         * modules/unistr/u8-next: New file.
70347         * modules/unistr/u16-next: New file.
70348         * modules/unistr/u32-next: New file.
70349         * lib/unistr/u8-next.c: New file.
70350         * lib/unistr/u16-next.c: New file.
70351         * lib/unistr/u32-next.c: New file.
70352
70353         * modules/unistr/u8-prev: New file.
70354         * modules/unistr/u16-prev: New file.
70355         * modules/unistr/u32-prev: New file.
70356         * lib/unistr/u8-prev.c: New file.
70357         * lib/unistr/u16-prev.c: New file.
70358         * lib/unistr/u32-prev.c: New file.
70359
70360         * modules/unistr/u8-set: New file.
70361         * modules/unistr/u16-set: New file.
70362         * modules/unistr/u32-set: New file.
70363         * lib/unistr/u8-set.c: New file.
70364         * lib/unistr/u16-set.c: New file.
70365         * lib/unistr/u32-set.c: New file.
70366         * lib/unistr/u-set.h: New file.
70367
70368         * modules/unistr/u8-startswith: New file.
70369         * modules/unistr/u16-startswith: New file.
70370         * modules/unistr/u32-startswith: New file.
70371         * lib/unistr/u8-startswith.c: New file.
70372         * lib/unistr/u16-startswith.c: New file.
70373         * lib/unistr/u32-startswith.c: New file.
70374         * lib/unistr/u-startswith.h: New file.
70375
70376         * modules/unistr/u8-stpcpy: New file.
70377         * modules/unistr/u16-stpcpy: New file.
70378         * modules/unistr/u32-stpcpy: New file.
70379         * lib/unistr/u8-stpcpy.c: New file.
70380         * lib/unistr/u16-stpcpy.c: New file.
70381         * lib/unistr/u32-stpcpy.c: New file.
70382         * lib/unistr/u-stpcpy.h: New file.
70383
70384         * modules/unistr/u8-stpncpy: New file.
70385         * modules/unistr/u16-stpncpy: New file.
70386         * modules/unistr/u32-stpncpy: New file.
70387         * lib/unistr/u8-stpncpy.c: New file.
70388         * lib/unistr/u16-stpncpy.c: New file.
70389         * lib/unistr/u32-stpncpy.c: New file.
70390         * lib/unistr/u-stpncpy.h: New file.
70391
70392         * modules/unistr/u8-strcat: New file.
70393         * modules/unistr/u16-strcat: New file.
70394         * modules/unistr/u32-strcat: New file.
70395         * lib/unistr/u8-strcat.c: New file.
70396         * lib/unistr/u16-strcat.c: New file.
70397         * lib/unistr/u32-strcat.c: New file.
70398         * lib/unistr/u-strcat.h: New file.
70399
70400         * modules/unistr/u8-strchr: New file.
70401         * modules/unistr/u16-strchr: New file.
70402         * modules/unistr/u32-strchr: New file.
70403         * lib/unistr/u8-strchr.c: New file.
70404         * lib/unistr/u16-strchr.c: New file.
70405         * lib/unistr/u32-strchr.c: New file.
70406
70407         * modules/unistr/u8-strcmp: New file.
70408         * modules/unistr/u16-strcmp: New file.
70409         * modules/unistr/u32-strcmp: New file.
70410         * lib/unistr/u8-strcmp.c: New file.
70411         * lib/unistr/u16-strcmp.c: New file.
70412         * lib/unistr/u32-strcmp.c: New file.
70413
70414         * modules/unistr/u8-strcpy: New file.
70415         * modules/unistr/u16-strcpy: New file.
70416         * modules/unistr/u32-strcpy: New file.
70417         * lib/unistr/u8-strcpy.c: New file.
70418         * lib/unistr/u16-strcpy.c: New file.
70419         * lib/unistr/u32-strcpy.c: New file.
70420         * lib/unistr/u-strcpy.h: New file.
70421
70422         * modules/unistr/u8-strcspn: New file.
70423         * modules/unistr/u16-strcspn: New file.
70424         * modules/unistr/u32-strcspn: New file.
70425         * lib/unistr/u8-strcspn.c: New file.
70426         * lib/unistr/u16-strcspn.c: New file.
70427         * lib/unistr/u32-strcspn.c: New file.
70428         * lib/unistr/u-strcspn.h: New file.
70429
70430         * modules/unistr/u8-strdup: New file.
70431         * modules/unistr/u16-strdup: New file.
70432         * modules/unistr/u32-strdup: New file.
70433         * lib/unistr/u8-strdup.c: New file.
70434         * lib/unistr/u16-strdup.c: New file.
70435         * lib/unistr/u32-strdup.c: New file.
70436         * lib/unistr/u-strdup.h: New file.
70437
70438         * modules/unistr/u8-strlen: New file.
70439         * modules/unistr/u16-strlen: New file.
70440         * modules/unistr/u32-strlen: New file.
70441         * lib/unistr/u8-strlen.c: New file.
70442         * lib/unistr/u16-strlen.c: New file.
70443         * lib/unistr/u32-strlen.c: New file.
70444         * lib/unistr/u-strlen.h: New file.
70445
70446         * modules/unistr/u8-strmblen: New file.
70447         * modules/unistr/u16-strmblen: New file.
70448         * modules/unistr/u32-strmblen: New file.
70449         * lib/unistr/u8-strmblen.c: New file.
70450         * lib/unistr/u16-strmblen.c: New file.
70451         * lib/unistr/u32-strmblen.c: New file.
70452
70453         * modules/unistr/u8-strmbtouc: New file.
70454         * modules/unistr/u16-strmbtouc: New file.
70455         * modules/unistr/u32-strmbtouc: New file.
70456         * lib/unistr/u8-strmbtouc.c: New file.
70457         * lib/unistr/u16-strmbtouc.c: New file.
70458         * lib/unistr/u32-strmbtouc.c: New file.
70459
70460         * modules/unistr/u8-strncat: New file.
70461         * modules/unistr/u16-strncat: New file.
70462         * modules/unistr/u32-strncat: New file.
70463         * lib/unistr/u8-strncat.c: New file.
70464         * lib/unistr/u16-strncat.c: New file.
70465         * lib/unistr/u32-strncat.c: New file.
70466         * lib/unistr/u-strncat.h: New file.
70467
70468         * modules/unistr/u8-strncmp: New file.
70469         * modules/unistr/u16-strncmp: New file.
70470         * modules/unistr/u32-strncmp: New file.
70471         * lib/unistr/u8-strncmp.c: New file.
70472         * lib/unistr/u16-strncmp.c: New file.
70473         * lib/unistr/u32-strncmp.c: New file.
70474
70475         * modules/unistr/u8-strncpy: New file.
70476         * modules/unistr/u16-strncpy: New file.
70477         * modules/unistr/u32-strncpy: New file.
70478         * lib/unistr/u8-strncpy.c: New file.
70479         * lib/unistr/u16-strncpy.c: New file.
70480         * lib/unistr/u32-strncpy.c: New file.
70481         * lib/unistr/u-strncpy.h: New file.
70482
70483         * modules/unistr/u8-strnlen: New file.
70484         * modules/unistr/u16-strnlen: New file.
70485         * modules/unistr/u32-strnlen: New file.
70486         * lib/unistr/u8-strnlen.c: New file.
70487         * lib/unistr/u16-strnlen.c: New file.
70488         * lib/unistr/u32-strnlen.c: New file.
70489         * lib/unistr/u-strnlen.h: New file.
70490
70491         * modules/unistr/u8-strpbrk: New file.
70492         * modules/unistr/u16-strpbrk: New file.
70493         * modules/unistr/u32-strpbrk: New file.
70494         * lib/unistr/u8-strpbrk.c: New file.
70495         * lib/unistr/u16-strpbrk.c: New file.
70496         * lib/unistr/u32-strpbrk.c: New file.
70497         * lib/unistr/u-strpbrk.h: New file.
70498
70499         * modules/unistr/u8-strrchr: New file.
70500         * modules/unistr/u16-strrchr: New file.
70501         * modules/unistr/u32-strrchr: New file.
70502         * lib/unistr/u8-strrchr.c: New file.
70503         * lib/unistr/u16-strrchr.c: New file.
70504         * lib/unistr/u32-strrchr.c: New file.
70505
70506         * modules/unistr/u8-strspn: New file.
70507         * modules/unistr/u16-strspn: New file.
70508         * modules/unistr/u32-strspn: New file.
70509         * lib/unistr/u8-strspn.c: New file.
70510         * lib/unistr/u16-strspn.c: New file.
70511         * lib/unistr/u32-strspn.c: New file.
70512         * lib/unistr/u-strspn.h: New file.
70513
70514         * modules/unistr/u8-strstr: New file.
70515         * modules/unistr/u16-strstr: New file.
70516         * modules/unistr/u32-strstr: New file.
70517         * lib/unistr/u8-strstr.c: New file.
70518         * lib/unistr/u16-strstr.c: New file.
70519         * lib/unistr/u32-strstr.c: New file.
70520         * lib/unistr/u-strstr.h: New file.
70521
70522         * modules/unistr/u8-strtok: New file.
70523         * modules/unistr/u16-strtok: New file.
70524         * modules/unistr/u32-strtok: New file.
70525         * lib/unistr/u8-strtok.c: New file.
70526         * lib/unistr/u16-strtok.c: New file.
70527         * lib/unistr/u32-strtok.c: New file.
70528         * lib/unistr/u-strtok.h: New file.
70529
70530         * modules/unistr/u8-uctomb: New file.
70531         * modules/unistr/u16-uctomb: New file.
70532         * modules/unistr/u32-uctomb: New file.
70533         * lib/unistr/u8-uctomb.c: New file.
70534         * lib/unistr/u16-uctomb.c: New file.
70535         * lib/unistr/u32-uctomb.c: New file.
70536
70537         * MODULES.html.sh (Unicode string functions): Add the new modules.
70538
70539 2007-01-08  Bruno Haible  <bruno@clisp.org>
70540
70541         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70542         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70543         subdirectories.
70544
70545 2007-01-08  Karl Berry  <karl@gnu.org>
70546
70547         * doc/error.texi: mention that main() fns must set program_name
70548         when progname is used.
70549
70550 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70553         WCTYPE_H is empty, for the benefit of builds from non-distclean
70554         directories.  Problem reported by Eric Blake in
70555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70556
70557 2007-01-08  Bruno Haible  <bruno@clisp.org>
70558
70559         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70560         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70561         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70562         PROVIDE_CANONICALIZE_FILENAME_MODE.
70563         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70564
70565 2007-01-08  Bruno Haible  <bruno@clisp.org>
70566
70567         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70568         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70569         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70570         * lib/fts.c: Likewise.
70571         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70572
70573 2006-12-25  Bruno Haible  <bruno@clisp.org>
70574
70575         * modules/utf8-ucs4-safe: New file.
70576         * lib/utf8-ucs4-safe.h: New file.
70577         * lib/unistr/utf8-ucs4-safe.c: New file.
70578
70579         * modules/utf16-ucs4-safe: New file.
70580         * lib/utf16-ucs4-safe.h: New file.
70581         * lib/unistr/utf16-ucs4-safe.c: New file.
70582
70583         * MODULES.html.sh (Unicode string functions): Add the new modules.
70584
70585 2007-01-08  Bruno Haible  <bruno@clisp.org>
70586
70587         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70588         (Depends-on): Add unitypes.
70589         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70590         (u8_mbtouc_aux): Move out to separate file.
70591         (u8_mbtouc): Use ucs4_t, uint8_t types.
70592         * lib/unistr/utf8-ucs4.c: New file.
70593
70594         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70595         (Depends-on): Add unitypes.
70596         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70597         (u16_mbtouc_aux): Move out to separate file.
70598         (u16_mbtouc): Use ucs4_t, uint16_t types.
70599         * lib/unistr/utf16-ucs4.c: New file.
70600
70601         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70602         (Depends-on): Add unitypes.
70603         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70604         (u8_uctomb_aux): Move out to separate file.
70605         (u8_uctomb): Use ucs4_t, uint8_t types.
70606         * lib/unistr/ucs4-utf8.c: New file.
70607
70608         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70609         (Depends-on): Add unitypes.
70610         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70611         (u16_uctomb_aux): Move out to separate file.
70612         (u16_uctomb): Use ucs4_t, uint16_t types.
70613         * lib/unistr/ucs4-utf16.c: New file.
70614
70615 2006-12-25  Bruno Haible  <bruno@clisp.org>
70616
70617         * modules/unitypes: New file.
70618         * lib/unitypes.h: New file.
70619         * MODULES.html.sh (func_all_modules): New section "Unicode string
70620         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70621         this section. Add unitypes.
70622
70623 2007-01-08  Bruno Haible  <bruno@clisp.org>
70624
70625         Avoid variable names that conflict with those from libtool.
70626         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70627         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70628         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70629         library_names_spec to acl_library_names_spec, hardcode_* to
70630         acl_hardcode_*.
70631         Reported by Ralf Wildenhues.
70632
70633 2007-01-08  Bruno Haible  <bruno@clisp.org>
70634
70635         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70636         definition.
70637         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70638         definition.
70639         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70640         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70641         definition.
70642         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70643         definition.
70644         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70645         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70646         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70647         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70648         definition.
70649         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70650         definition.
70651         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70652         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70653         GC_USE_<algorithm>.
70654         * lib/gc-libgcrypt.c: Likewise.
70655         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70656         * modules/gc-arctwo (configure.ac): Likewise.
70657         * modules/gc-des (configure.ac): Likewise.
70658         * modules/gc-hmac-md5 (configure.ac): Likewise.
70659         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70660         * modules/gc-md2 (configure.ac): Likewise.
70661         * modules/gc-md4 (configure.ac): Likewise.
70662         * modules/gc-md5 (configure.ac): Likewise.
70663         * modules/gc-random (configure.ac): Likewise.
70664         * modules/gc-rijndael (configure.ac): Likewise.
70665         * modules/gc-sha1 (configure.ac): Likewise.
70666
70667 2007-01-08  Bruno Haible  <bruno@clisp.org>
70668
70669         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70670         macro definition.
70671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70672         definition.
70673         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70674         definition.
70675         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70676         * modules/fcntl-safer (configure.ac): Likewise.
70677         * modules/fopen-safer (configure.ac): Likewise.
70678         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70679         GNULIB_FWRITEERROR macro definition.
70680
70681 2007-01-08  Bruno Haible  <bruno@clisp.org>
70682
70683         * m4/gnulib-common.m4: New file.
70684         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70685         (func_get_filelist): Add m4/gnulib-common.m4.
70686
70687 2007-01-08  Bruno Haible  <bruno@clisp.org>
70688
70689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70690         command.
70691
70692 2007-01-08  Jim Meyering  <jim@meyering.net>
70693
70694         Use a more robust test for a "can't happen" condition.
70695         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70696         narrowed the st_size value.  Presuming the "can't happen" condition
70697         is true, that narrowing could conceivably convert an invalid st_size
70698         value into a valid one.  Instead, use a change based on Matthew
70699         Woehlke's original patch.
70700
70701         Slight readability improvement: use an assert-like macro
70702         in place of literal "abort ()" uses.
70703         * lib/fts.c (fts_assert): Define.
70704         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70705         Use this macro instead of a bare 'abort'.
70706
70707 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70710         simply work around them.
70711         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70712         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70713         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70714         declaring.
70715         Don't bother to define as macros, since the standard doesn't require it.
70716         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70717         longer worry about IRIX 5.3.
70718         (HAVE_WCTYPE_CTMP_BUG): Remove.
70719
70720 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70723         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70724         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70725         Problems reported by Georg Schwarz for IRIX 5.3.
70726
70727         * gnulib-tool (autoconf_minversion): Take the maximum version number
70728         found, not the minimum.  Problem reported by James Youngman.
70729
70730 2007-01-03  Karl Berry  <karl@gnu.org>
70731
70732         * doc/error.texi: new file, explaining interaction with progname.
70733         * doc/gnulib.texi: include it.  Update copyright.
70734
70735 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70736
70737         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70738         AC_CANONICAL_HOST, to improve autobuild outputs.
70739
70740 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70741             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70742
70743         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70744         sockets, server sockets, and other file descriptors.  Count errors
70745         to compute the return value.  Reorder the code a bit to be easier
70746         to follow.  Don't set event bits that were not requested (except
70747         POLLERR and POLLHUP).
70748
70749 2007-01-01  Bruno Haible  <bruno@clisp.org>
70750
70751         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70752
70753 2007-01-03  Jim Meyering  <jim@meyering.net>
70754
70755         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70756
70757 2007-01-02  Bruno Haible  <bruno@clisp.org>
70758
70759         * modules/settime (Include): Require timespec.h.
70760         * modules/nanosleep (Include): Likewise.
70761
70762 2007-01-01  Bruno Haible  <bruno@clisp.org>
70763
70764         * gnulib-tool (func_emit_copyright_notice): Bump year.
70765         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70766
70767 2007-01-01  Bruno Haible  <bruno@clisp.org>
70768
70769         Improve support for OpenBSD.
70770         * build-aux/config.rpath (libname_spec): Export.
70771         (library_names_spec): New variable. Export.
70772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70773         library_names_spec from the config.rpath output. Locate shared library
70774         through the name pattern in library_names_spec.
70775
70776 2007-01-01  Eric Blake  <ebb9@byu.net>
70777
70778         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70779
70780 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70783         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70784         assume the C locale, and avoid an "eval" that could cause trouble.
70785         Problem with SORT reported by Bob Proulx.
70786
70787         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70788         Define.  Trivial patch from Henning Nielsen Lund, originally
70789         sent to bug-grep@gnu.org today.
70790
70791 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70794         struct stat.  Problem reported by Henning Nielsen Lund.
70795         * lib/acl.c: Include acl.h first, to check interface.  Don't
70796         bother to include sys/types.h and sys/stat.h again.
70797
70798 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         Import the following change from libc; problem reported by
70801         Sven Verdoolaege.
70802
70803         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70804
70805         [BZ #1373]
70806         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70807
70808 2006-12-28  Jim Meyering  <jim@meyering.net>
70809
70810         * build-aux/announce-gen: Do not assume that the package
70811         builds any of tar.gz, tar.bz2, and .xdelta files.
70812         Suggestion from Simon Josefsson.
70813
70814 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70815
70816         * modules/announce-gen: New file.
70817
70818 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70821         handles its gotchas now.
70822         * lib/mbswidth.c: Likewise.
70823         * lib/wcwidth.h: Likewise.
70824         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70825         and iswcntrl; the wctype module does this stuff now.
70826         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70828         * modules/mbchar (Depends-on): Add wctype.
70829         * modules/mbswidth (Depends-on): Likewise.
70830         * modules/wcwidth (Depends-on): Likewise.
70831
70832 2006-12-27  Eric Blake  <ebb9@byu.net>
70833
70834         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70835         module uses more than what <wctype.h> is required to provide.
70836
70837 2006-12-26  Eric Blake  <ebb9@byu.net>
70838
70839         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70840
70841 2006-12-26  Eric Blake  <ebb9@byu.net>
70842
70843         * modules/absolute-header: New module.
70844         * modules/fcntl (Depends-on): Depend on it.
70845         * modules/inttypes (Depends-on): Likewise.
70846         * modules/stdint (Depends-on): Likewise.
70847         * modules/sys_stat (Depends-on): Likewise.
70848         * modules/wctype (Depends-on): Likewise.
70849         * MODULES.html.sh (Support for building libraries and
70850         executables): Document it.
70851
70852 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * gnulib-tool (SED): Remove, undoing previous change.
70855         The problem was that it broke coreutils on Solaris, because
70856         "sed --posix" leaked into a makefile.
70857         (sed): New alias, if 'alias' and GNU sed.
70858
70859 2006-12-24  Jim Meyering  <jim@meyering.net>
70860
70861         Work around an fchownat bug in glibc-2.4:
70862         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70863         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70864         in spite of the -P option.
70865         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70866         New macros.
70867         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70868         * modules/openat (Files): Add lib/fchownat.c.
70869         * lib/openat.c (fchownat): Don't define here.  Move to...
70870         * lib/fchownat.c: ...this new file.
70871
70872 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         Fix bug reported by Bruno Haible in
70875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70876         where quotearg.c didn't compile on Mac OS X 10.2 because it
70877         lacks <wchar.h> and wint_t.
70878         * lib/wctype_.h (__wctype_wint_t): New type.
70879         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70880         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70881         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70882         Arg is now of type __wctype_wint_t, not wint_t.
70883         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70884         substitute HAVE_WINT_T.
70885         * modules/wctype (Files): Add m4/wint_t.m4.
70886         (wctype.h): Substitute HAVE_WINT_T.
70887
70888 2006-12-23  Bruno Haible  <bruno@clisp.org>
70889
70890         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70891
70892 2006-12-23  Bruno Haible  <bruno@clisp.org>
70893
70894         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70895         S_ISLNK.
70896         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70897         mingw.
70898
70899 2006-12-22  Bruno Haible  <bruno@clisp.org>
70900
70901         * lib/copy-file.c: Include acl.h.
70902         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70903         Close the file descriptors only after being done with copy_acl.
70904         * modules/copy-file (Depends-on): Add acl.
70905
70906 2006-12-22  Bruno Haible  <bruno@clisp.org>
70907
70908         * gnulib-tool (SED): New variable.
70909         Use $SED instead of sed everywhere.
70910
70911 2006-12-22  Bruno Haible  <bruno@clisp.org>
70912
70913         * modules/no-c++: New file.
70914         * m4/no-c++.m4: New file.
70915         * MODULES.html.sh (Support for building libraries and executables):
70916         Add no-c++.
70917
70918 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70921         Include <limits.h>, and use its INT_MAX to rewrite the
70922         j loop so that it does not overflow 'int'.  Problem reported by
70923         Ralf Wildenhues in
70924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70925         Play it safe by shifting left by 1 rather than multiplying by 2,
70926         as GCC is less likely to optimize this away when the value
70927         is signed (when it assumes overflow leads to undefined behavior).
70928         Also, don't assume time_t uses two's complement.
70929
70930 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * MODULES.html.sh: New module wctype.
70933         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70934         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70935         <wctype.h>, since the new wctype module should fix this.
70936         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70937         the wctype module should arrange for it.
70938         * lib/regex_internal.h: Likewise.
70939         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70940         since the wctype module should handle this now.
70941         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70942         * modules/fnmatch (Depends-on): Add wctype.
70943         * modules/quotearg (Depends-on): Likewise.
70944         * modules/regex (Depends-on): Likewise.
70945
70946 2006-12-19  Bruno Haible  <bruno@clisp.org>
70947
70948         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70949         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70950
70951 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70952
70953         * modules/savewd (Depends-on): Fix dependency on fcntl.
70954
70955 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70956
70957         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70958         conforms to C99, rather than relying on the user's environment
70959         setting of STDINT_H.
70960
70961 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70962         and Eric Blake  <ebb9@byu.net>
70963
70964         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70965         This is more consistent with the other defines here.
70966         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70967         Port to z/OS.  Problem reported by Paul Gilmartin.
70968         Change local vars to use gl_ prefix rather than ac_.
70969         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70970         with other defines.
70971         * modules/double-slash-root: New module.
70972         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70973         (Depends-on): Add double-slash-root.
70974         * MODULES.html.sh (File system functions): Mention new module.
70975
70976 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70979         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70980         This is for the benefit of gzip, which doesn't do i18n.
70981
70982 2006-12-12  Jim Meyering  <jim@meyering.net>
70983
70984         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70985         Reported by Andreas Schwab <schwab@suse.de>.
70986
70987 2006-12-12  Bruno Haible  <bruno@clisp.org>
70988
70989         Merge these changes.
70990         2006-09-05  Bruno Haible  <bruno@clisp.org>
70991         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70992         iconv_alloc succeeded.
70993         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70994         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70995         test for " && dest " at the end - dest is always != NULL there. Call
70996         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70997         with 2xNULL arguments, also to flush the state storage. Handle the
70998         IRIX iconv behaviour. Realloc the final result, to throw away unused
70999         memory.
71000
71001 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71004         and fchmodat unconditionally, since glibc 2.4 has them.
71005         Problem reported by Arkadiusz Miskiewicz.
71006
71007 2006-12-10  Bruno Haible  <bruno@clisp.org>
71008
71009         * gnulib-tool (func_import): Show the include files only for those
71010         modules that are copied and specified.
71011         Reported by Karl Berry.
71012
71013 2006-12-08  Jim Meyering  <jim@meyering.net>
71014
71015         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71016         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71017
71018         * build-aux/announce-gen: Add two new options, both optional:
71019         --bootstrap-tools=TOOL_LIST
71020               a comma-separated list of tools, e.g.,
71021               autoconf,automake,bison,gnulib
71022         --gnulib-snapshot-date=DATE
71023               if gnulib is in the bootstrap tool list,
71024               then report this as the snapshot date.
71025               If not specified, use the current date/time.
71026               If you specify a date here, be sure it's UTC.
71027
71028 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71029
71030         * tests/test-argp-2.sh: Fix test to match actual output.
71031         (func_compare): Fix sed script to be portable.
71032
71033 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71036         workaround for this case.  It is not autoconfigured now; offhand
71037         it's hard to see how to autoconfigure it.
71038
71039 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71040
71041         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71042         a directory that is about to be chowned.  Such a directory's
71043         initial file permissions should permit the owner only and this
71044         should not be changed until after the chown, since the group and
71045         other bits would be incorrect if they granted permission before
71046         the chown.
71047
71048         Fix porting problem for iswctype reported by Georg Schwarz in:
71049         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71050         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71051         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71054
71055 2006-12-03  Jim Meyering  <jim@meyering.net>
71056
71057         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71058         p->fts_statp may not yet be defined.
71059         (fts_read): Instead, set it in the caller, once p->fts_statp is
71060         sure to be defined, and corresponds to a top-level directory.
71061         This bug made du -x fail.  Here's the coreutils test case:
71062         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71063         Reported by Mike Frysinger.
71064
71065 2006-12-01  Jim Meyering  <jim@meyering.net>
71066
71067         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71068         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71069         Reported by Simon Josefsson.
71070
71071 2006-11-30  Jim Meyering  <jim@meyering.net>
71072
71073         * m4/warning.m4: Use the all-permissive copyright notice
71074         recommended by RMS (rather than LGPL).
71075         * m4/vararrays.m4: Likewise.
71076         * m4/flexmember.m4: Likewise.
71077
71078 2006-11-29  Bruno Haible  <bruno@clisp.org>
71079
71080         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71081         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71082         using +=.
71083         Reported by Simon Josefsson <simon@josefsson.org>.
71084
71085 2006-11-28  James Youngman <jay@gnu.org>
71086
71087         * README: Advise users that they might find the bug-gnulib@gnu.org
71088         and autotools-announce@gnu.org mailing lists useful.
71089
71090 2006-11-28  Bruno Haible  <bruno@clisp.org>
71091
71092         * m4/ptrdiff_max.m4: Remove file.
71093
71094 2006-11-21  Bruno Haible  <bruno@clisp.org>
71095
71096         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71097         _AC_COMPUTE_INT.
71098         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71099         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71100         _AC_COMPUTE_INT.
71101         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71102         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71103         _AC_COMPUTE_INT.
71104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71105
71106 2006-11-28  Jim Meyering  <jim@meyering.net>
71107
71108         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71109         warning from "gcc -Wshadow" about shadowing the builtin.
71110
71111 2006-11-27  Bruno Haible  <bruno@clisp.org>
71112
71113         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71114         _AC_COMPUTE_INT.
71115         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71116
71117 2006-11-27  Bruno Haible  <bruno@clisp.org>
71118             Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71121
71122 2006-11-26  Bruno Haible  <bruno@clisp.org>
71123
71124         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71125         noinst_LTLIBRARIES.
71126
71127 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71128             Bruno Haible  <bruno@clisp.org>
71129
71130         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71131         if compiling with "gcc -ansi".
71132
71133 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71134
71135         Fix some incompatibilities with gcc -ansi -pedantic.
71136         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71137         if compiling pedantically with GCC, unless it's C99 or later.
71138         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71139         it mishandles gcc -ansi -pedantic as well.
71140         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71141         if gcc -pedantic.
71142         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71143         initializers for struct if -pedantic, unless it's C99 or later.
71144
71145 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71146
71147         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71148         Don't close an fd more than once. Identical atimes indicate
71149         success, not failure.
71150
71151 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71152
71153         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71154
71155 2006-11-23  Jim Meyering  <jim@meyering.net>
71156
71157         * build-aux/announce-gen: New file.  From coreutils.
71158
71159 2006-11-22  Jim Meyering  <jim@meyering.net>
71160
71161         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71162         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71163         (fts_read): Use a temporary to narrow the overused st_size member
71164         before using it in a switch statement.  Reported by Matthew Woehlke.
71165
71166         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71167         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71168
71169 2006-11-20  Bruno Haible  <bruno@clisp.org>
71170
71171         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71172         changequote instead of pairs of brackets.
71173         Reported by Andreas Schwab <schwab@suse.de>.
71174
71175 2006-11-21  Jim Meyering  <jim@meyering.net>
71176
71177         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71178         so as to remain compatible with older compilers.
71179         Patch from Michael Deutschmann.
71180
71181 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * MODULES.html.sh (File system functions): Add openat.
71184
71185         * lib/openat.h (rpl_fstatat): New macro, if
71186         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71187         (fstatat): Define to rpl_fstatat under the same conditions,
71188         unless COMPILING_FSTATAT.
71189         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71190         seems to have the bug.
71191         * lib/fstatat.c: New file.
71192         * modules/openat (Files): Add it.
71193
71194 2006-11-20  Bruno Haible  <bruno@clisp.org>
71195
71196         * Makefile: New file.
71197
71198 2006-11-20  Jim Meyering  <jim@meyering.net>
71199
71200         The beginnings of syntax-related checks for gnulib.
71201         * lib/Makefile: New file.
71202         * lib/t-idcache: New script.  Ensure that the two halves of
71203         idcache.c stay in sync.
71204
71205         * lib/idcache.c: Adjust comments in user- and group- portions to
71206         be more accurate, and to be consistent with one another.
71207
71208 2006-11-20  Jim Meyering  <jim@meyering.net>
71209
71210         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71211         continue using the flexible array member (thus, this module performs
71212         half as many malloc calls), with the addition that...
71213         (getgroup, getuser): Consistently record a non-match via an empty
71214         "name" string, and map an empty string match to a NULL return value.
71215         * modules/idcache (Depends-on): Re-add flexmember.
71216
71217         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71218         (getuidbyname, getgroup, getgidbyname): Likewise.
71219
71220         Use cleaner syntax: NULL rather than 0.
71221         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71222
71223 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71226         It mishandled the case where the group was missing.
71227         Problem reported by Greg Schafer.
71228         * modules/idcache: Likewise.
71229
71230 2006-11-18  Jim Meyering  <jim@meyering.net>
71231
71232         * check-module (%exempt_header): Add exception for some
71233         conditionally-included headers.
71234
71235         * modules/i-ring (Depends-on): Add verify.
71236         (License): Change to LGPL.
71237
71238 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71241         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71242         and inttostr.h.  Use snprintf rather than uinttostr, so that
71243         LGPLed code doesn't depend on GPLed.
71244
71245 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * modules/inline (License): Change from GPL to LGPL.
71248
71249 2006-11-17  Jim Meyering  <jim@meyering.net>
71250
71251         * modules/d-type (License): Switch to LGPL.
71252
71253 2006-11-15  Bruno Haible  <bruno@clisp.org>
71254
71255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71256
71257 2006-11-15  Eric Blake  <ebb9@byu.net>
71258
71259         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71260         the module dependency.
71261
71262 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71263             Bruno Haible  <bruno@clisp.org>
71264
71265         * gnulib-tool (func_create_testdir): Add license consistency check.
71266
71267 2006-11-15  Eric Blake  <ebb9@byu.net>
71268
71269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71270         random "(cached)" in configure output.
71271
71272 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71273
71274         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71275         test for conforming inttypes.h is both announced and cached.
71276
71277         * MODULES.html.sh (seen_modules, seen_files): New variables.
71278         (func_module): Rewrite to use a few less gnulib-tool and sed
71279         invocations.  Avoid a couple of quadratic algorithms for ...
71280         (missed_modules, missed_files): ... these, with ...
71281         (func_append, func_tmpdir): ... these new functions, from
71282         gnulib-tool.  Analogously, install traps for cleanup.
71283
71284         * tests/test-gc.c (main): Remove unused variables.
71285         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71286
71287 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * modules/inttostr (License): Change to LGPL.
71290
71291 2006-11-14  Eric Blake  <ebb9@byu.net>
71292
71293         * modules/tempname (License): Change to LGPL.
71294
71295 2006-11-14  Eric Blake  <ebb9@byu.net>
71296
71297         * doc/functions.texi (Function Portability): *printf functions on
71298         Cygwin now understand all POSIX size specifiers.
71299
71300 2006-11-14  Bruno Haible  <bruno@clisp.org>
71301
71302         * modules/c-ctype (License): Change to LGPL.
71303
71304 2006-11-12  Bruno Haible  <bruno@clisp.org>
71305
71306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71307         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71308         for GNOME libraries, for which the include files are installed in
71309         subdirectories of $prefix/include.
71310
71311 2006-11-12  Bruno Haible  <bruno@clisp.org>
71312
71313         * m4/lib-link.m4: Require at least autoconf-2.54.
71314         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71315         name to underscores for the --with option.
71316
71317 2006-11-13  Bruno Haible  <bruno@clisp.org>
71318
71319         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71320         the tests directory.
71321         Reported by Ralf Wildenhues.
71322
71323 2006-11-13  Bruno Haible  <bruno@clisp.org>
71324
71325         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71326         (func_emit_initmacro_end): Undo the override here.
71327         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71328         Works around the famous automake error in coreutils.
71329
71330 2006-11-13  Eric Blake  <ebb9@byu.net>
71331
71332         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71333         element, not its node.
71334
71335 2006-11-12  Bruno Haible  <bruno@clisp.org>
71336
71337         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71338         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71339
71340 2006-11-12  Bruno Haible  <bruno@clisp.org>
71341
71342         * gnulib-tool: New option --local-symlink.
71343         (func_usage): Document it.
71344         (lsymbolic): New variable.
71345         (func_import, func_create_testdir): If --symlink was not specified,
71346         test whether --local-symlink was specified and the file comes from
71347         the local_gnulib_dir.
71348
71349 2006-11-12  Bruno Haible  <bruno@clisp.org>
71350
71351         * gnulib-tool (func_ln): New function.
71352         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71353
71354 2006-11-12  Bruno Haible  <bruno@clisp.org>
71355
71356         Finish support for source files in subdirectories.
71357         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71358         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71359         AUTOMAKE_OPTIONS.
71360         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71361
71362 2006-11-12  Bruno Haible  <bruno@clisp.org>
71363
71364         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71365         EXTRA_lib_SOURCES augmentation.
71366         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71367
71368 2006-11-12  Jim Meyering  <jim@meyering.net>
71369
71370         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71371         file descriptors.  This also averts a failure on systems with
71372         native openat support when a traversed directory lacks "x" access.
71373         * lib/fts_.h: Include "i-ring.h"
71374         (struct FTS) [fts_fd_ring]: New member.
71375         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71376         (FCHDIR): Add parentheses.
71377         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71378         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71379         When descending, rather than simply closing the previous
71380         fts_cwd_fd value, push that file descriptor onto the ring.
71381         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71382         (fts_open): Initialize the new fd_ring member.
71383         (fts_close): Clear the ring.
71384         (fts_safe_changedir): When possible, use our new fd_ring to skip
71385         the diropen and fstat and dev/ino comparison that would normally
71386         accompany a virtual `chdir ("..")'.
71387
71388         * modules/fts (Depends-on): Add i-ring.
71389         * modules/i-ring: New module.
71390         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71391         * m4/i-ring.m4: New file.
71392
71393 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71394
71395         * gnulib-tool (func_create_testdir): Fix replacement of
71396         `build-aux' in configure.ac.  Run autotools in gltests
71397         subdirectory.
71398         (func_create_testdir, func_create_megatestdir, test): There is
71399         no need for '--force' in most autotool invocations in a new
71400         tree.  Actually fail the whole test if any of the tools, or the
71401         configure or make stages fail.
71402
71403         Sync from Automake.
71404         * build-aux/gnupload: Revert last change.  Add pointer to upload
71405         instructions of the GNU Maintenance Instructions.
71406         Suggestion by Karl Berry.
71407
71408 2006-11-10  Jim Meyering  <jim@meyering.net>
71409
71410         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71411
71412 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71413
71414         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71415         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71416         (bind_textdomain_codeset) [! ENABLE_NLS]:
71417         Evaluate all the arguments.  That way, callers get compatible behavior
71418         if the arguments have side effects.  Also, it avoids some GCC
71419         diagnostics in some cases; Joel E. Denny reported problems when Bison
71420         was configured with --enable-gcc-warnigs.
71421
71422 2006-11-10  Jim Meyering  <jim@meyering.net>
71423
71424         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71425         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71426         account.
71427
71428 2006-11-10  Jim Meyering  <jim@meyering.net>
71429
71430         * modules/inline: New file/module.
71431         * modules/xalloc (Files): Remove m4/inline.m4.
71432         (Depends-on): Add inline, instead.
71433         * modules/oset: Likewise.
71434         * modules/list: Likewise.
71435
71436 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71439         Problem reported by Matthew Woehlke.
71440
71441 2006-11-09  Bruno Haible  <bruno@clisp.org>
71442
71443         * lib/tempname.c (gen_tempname): Remove variant that invokes
71444         __gen_tempname.
71445         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71446         __gen_tempname.
71447
71448 2006-11-08  Bruno Haible  <bruno@clisp.org>
71449
71450         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71451         to 'yes' instead of 'cross-compiling'.
71452
71453 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * lib/quotearg.h (quotearg_free): New decl.
71456         * lib/quotearg.c (quotearg_free): New function.
71457         (slot0, nslots, slotvec0, slotvec):
71458         Now file-scope so that quotearg_free can get at them.
71459
71460 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71461
71462         Sync from Automake.
71463         * build-aux/gnupload: Add missing 'gnu' to example URL.
71464         Report by Karl Berry.
71465
71466 2006-11-08  Bruno Haible  <bruno@clisp.org>
71467
71468         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71469         Suggested by Paul Eggert.
71470
71471 2006-11-08  Jim Meyering  <jim@meyering.net>
71472
71473         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71474         It's already included if !_LIBC.
71475         (fts_safe_changedir): Add a comment.
71476
71477 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71480         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71481         Matthew Woehlke.
71482
71483         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71484         definitions up, to avoid colliding with change below.
71485         (static_inline) [HAVE_INLINE]: New macro.
71486         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71487         Provide extern decls when !HAVE_INLINE.  Do not define unless
71488         static_inline is defined, either by us or by xmalloc.c.  Use
71489         static_inline rather than static inline.
71490         (XCALLOC): Optimize sizeof(T) = 1 case.
71491         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71492
71493 2006-11-07  Bruno Haible  <bruno@clisp.org>
71494
71495         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71496         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71497         AC_C_INLINE.
71498         * modules/xalloc (Files): Add m4/inline.m4.
71499
71500 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71501
71502         * README: Fix typo.
71503         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71504         (Miscellanous Notes): ...from this.
71505
71506 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71507
71508         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71509         Mention that offsetof should be used instead of sizeof.
71510         From Bruno Haible.
71511
71512 2006-11-07  Bruno Haible  <bruno@clisp.org>
71513
71514         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71515
71516 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71519         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71520         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71521         (gl_tree_add_before, gl_tree_add_after):
71522         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71523         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71524         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71525         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71526         (gl_linked_add_after, gl_linked_add_at): Likewise.
71527         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71528         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71529         (gl_tree_add_before, gl_tree_add_after): Likewise.
71530         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71531         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71532         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71533
71534 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71535
71536         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71537
71538 2006-11-06  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/inline.m4: New file.
71541         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71542         * modules/list (Files): Add m4/inline.m4.
71543         * modules/oset (Files): Likewise.
71544
71545 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * lib/idcache.c: Include <stddef.h>, for offsetof.
71548         (struct userid.name): Change from char * to a flexible array member.
71549         All uses changed.
71550         * modules/idcache (Depends-on): Add flexmember.
71551
71552         * MODULES.html.sh (Core language properties): New module flexmember.
71553         * modules/flexmember, m4/flexmember.m4: New files.
71554
71555         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71556         inline functions that are identical with the old xnmalloc_inline,
71557         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71558         that we can avoid some unnecessary integer multiplications and
71559         divisions in the common case where the element size is known at
71560         compile time.
71561         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71562         needed.
71563         (xnboundedmalloc): Remove.
71564         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71565         arguments, for consistency with rest of this header.
71566         (xcharalloc): Rewrite using XNMALLOC.
71567         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71568         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71569         versions have been moved to lib/xalloc.h and renamed to be the
71570         non-*_inline versions.
71571         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71572         and xnrealloc functions, since those functions are now inline and
71573         now call us.
71574         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71575         renaming described above.
71576         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71577         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71578         captures the dependency in AC_C_INLINE.
71579
71580         New module canonicalize-lgpl, proposed by Charles Wilson in
71581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71582         with a few small changes afterwards.
71583         * MODULES.html.sh (File system functions): New module
71584         canonicalize-lgpl.
71585         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71586         and canonicalize_file_name.
71587         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71588         * modules/canonicalize-lgpl: New files.
71589
71590 2006-11-05  Bruno Haible  <bruno@clisp.org>
71591
71592         * gnulib-tool (func_import, func_create_testdir): Create directories
71593         also for files in subdirectories of lib/.
71594
71595 2006-11-05  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71598         ANSI C compliant.
71599
71600 2006-11-03  Bruno Haible  <bruno@clisp.org>
71601
71602         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71603         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71604         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71605         (xnboundedmalloc): New inline function.
71606         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71607         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71608         xmalloc.
71609         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71610         xmalloc.
71611         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71612         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71613         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71614         xmalloc.
71615         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71616         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71617         xmalloc.
71618         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71619         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71620         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71621         xmalloc.
71622         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71623         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71624         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71625         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71626         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71627         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71628         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71629
71630 2006-11-03  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/c-ctype.h [C++]: Define functions without name mangling.
71633         * lib/fwriteerror.h [C++]: Likewise.
71634         * lib/gcd.h [C++]: Likewise.
71635         * lib/linebreak.h [C++]: Likewise.
71636
71637 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71640         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71641         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71642         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71643         Check for functions and headers just once.
71644         Check for declaration of canonicalize_file_name.
71645         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71646
71647 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71648
71649         * gnulib-tool (func_import): Fix typo in actioncmd.
71650
71651 2006-11-02  Bruno Haible  <bruno@clisp.org>
71652
71653         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71654         newline sequence in the Makefile.am snippet as a space, like "make"
71655         does.
71656         Reported by Roger Persson <perrog@gmail.com>.
71657
71658 2006-11-01  Bruno Haible  <bruno@clisp.org>
71659
71660         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71661         already declared in <string.h>.
71662         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71663
71664 2006-11-01  Bruno Haible  <bruno@clisp.org>
71665
71666         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71667         * lib/strcase.h: Include <string.h>.
71668         (strcasecmp): Define to rpl_strcasecmp here.
71669
71670 2006-11-01  Bruno Haible  <bruno@clisp.org>
71671
71672         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71673
71674 2006-11-01  Eric Blake  <ebb9@byu.net>
71675
71676         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71677
71678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71679
71680 2006-10-29  Bruno Haible  <bruno@clisp.org>
71681
71682         Make it compile in C++ mode.
71683         * lib/full-write.c (full_rw): Add a cast.
71684
71685 2006-11-01  Bruno Haible  <bruno@clisp.org>
71686
71687         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71688         be POSIX compliant.
71689         Reported by Roger Persson <perrog@gmail.com>.
71690
71691 2006-11-01  Eric Blake  <ebb9@byu.net>
71692
71693         * lib/getopt_.h: Fix comments.
71694
71695 2006-10-31  Eric Blake  <ebb9@byu.net>
71696
71697         * modules/tmpdir (Depends-on): Add sys_stat.
71698         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71699         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71700         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71701         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71702         tempname.
71703
71704 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         Avoid some C++ diagnostics reported by Bruno Haible.
71707         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71708         xmalloc.
71709         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71710         (struct slotvec): Move to top level.
71711         (quotearg_n_options): Rewrite to avoid xmalloc.
71712         * lib/xalloc.h (xcharalloc): New function.
71713         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71714         [defined __cplusplus]: Add function template that provides result
71715         type propagation.  This part of the change is from Bruno Haible.
71716
71717 2006-10-29  Bruno Haible  <bruno@clisp.org>
71718
71719         Make it compile in C++ mode.
71720         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71721         * lib/strnlen1.c (strnlen1): Cast memchr result.
71722         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71723         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71724         (create_temp_dir): Rename local variable 'template'.
71725         (compile_csharp_using_sscli): Add cast.
71726         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71727         * lib/findprog.c (find_in_path): Likewise.
71728         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71729         * lib/wait-process.c (register_slave_subprocess): Likewise.
71730
71731 2006-10-22  Bruno Haible  <bruno@clisp.org>
71732
71733         * modules/tsearch: New file.
71734         * lib/tsearch.h: New file.
71735         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71736         * m4/tsearch.m4: New file.
71737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71738
71739 2006-10-29  Eric Blake  <ebb9@byu.net>
71740
71741         * lib/arcfour.c: Assume config.h.
71742         * lib/arctwo.c: Likewise.
71743         * lib/base64.c: Likewise.
71744         * lib/check-version.c: Likewise.
71745         * lib/crc.c: Likewise.
71746         * lib/des.c: Likewise.
71747         * lib/gc-gnulib.c: Likewise.
71748         * lib/gc-libgcrypt.c: Likewise.
71749         * lib/gc-pbkdf2-sha1.c: Likewise.
71750         * lib/getaddrinfo.c: Likewise.
71751         * lib/getdelim.c: Likewise.
71752         * lib/getline.c: Likewise.
71753         * lib/hmac-md5.c: Likewise.
71754         * lib/hmac-sha1.c: Likewise.
71755         * lib/iconvme.c: Likewise.
71756         * lib/md2.c: Likewise.
71757         * lib/md4.c: Likewise.
71758         * lib/memxor.c: Likewise.
71759         * lib/read-file.c: Likewise.
71760         * lib/readline.c: Likewise.
71761         * lib/rijndael-alg-fst.c: Likewise.
71762         * lib/rijndael-api-fst.c: Likewise.
71763         * lib/xgetdomainname.c: Likewise.
71764
71765 2006-10-28  Eric Blake  <ebb9@byu.net>
71766
71767         * lib/xstrndup.c: Assume config.h.
71768
71769 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71772         stat-macros.h is now for our own macros, whereas stat_h is for
71773         macros in the <sys/stat.h> name space.
71774         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71775         (STAT_MACROS_H): Remove.
71776         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71777         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71778         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71779         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71780         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71781         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71782         Move these macros to ...
71783         * lib/stat_.h: here.  Don't include stat-macros.h.
71784         * lib/canonicalize.c: Don't include stat-macros.h.
71785         * lib/chown.c: Likewise.
71786         * lib/euidaccess.c: Likewise.
71787         * lib/file-type.c: Likewise.
71788         * lib/filemode.c: Likewise.
71789         * lib/glob.c: Likewise.
71790         * lib/isapipe.c: Likewise.
71791         * lib/lchown.c: Likewise.
71792         * lib/lstat.c: Likewise.
71793         * lib/mkdir-p.c: Likewise.
71794         * lib/rmdir.c: Likewise.
71795         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71797         unless mkdir isn't declared, to speed up 'configure'.
71798         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71799         would define all the S_* symbols.
71800         * modules/canonicalize (Depends-on):
71801         Depend on sys_stat, not stat-macros.
71802         * modules/chown: Likewise.
71803         * modules/euidaccess: Likewise.
71804         * modules/filemode: Likewise.
71805         * modules/file-type: Likewise.
71806         * modules/glob: Likewise.
71807         * modules/isapipe: Likewise.
71808         * modules/lchown: Likewise.
71809         * modules/lstat: Likewise.
71810         * modules/mkancesdirs: Likewise.
71811         * modules/rmdir: Likewise.
71812         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71813         * modules/modechange: Likewise.
71814         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71815         (configure.ac): Remove gl_STAT_MACROS.
71816         * modules/sys_stat (Depends-on): Remove stat-macros.
71817
71818 2006-10-27  Bruno Haible  <bruno@clisp.org>
71819
71820         * m4/signed.m4: Remove file.
71821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71822         invocation.
71823         * modules/vasnprintf (Files): Remove m4/signed.m4.
71824
71825 2006-10-27  Bruno Haible  <bruno@clisp.org>
71826
71827         Update to GNU gettext 0.16.
71828         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71829         m4/inttypes-h.m4, m4/signed.m4.
71830         * m4/gettext.m4: Update to GNU gettext 0.16.
71831         * m4/intl.m4: New file, from GNU gettext.
71832         * m4/intldir.m4: New file, from GNU gettext.
71833         * config/srclist.txt: Update
71834
71835 2006-10-27  Eric Blake  <ebb9@byu.net>
71836
71837         * MODULES.html.sh: Document tempname.
71838         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71839         dependencies.
71840         (Files): Move lib/tempname.c...
71841         * modules/tempname: ...to this new module.
71842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71843         (gl_PREREQ_TEMPNAME): Move...
71844         * m4/tempname.m4: ...to this new file.
71845         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71846         * modules/sys_stat (Depends-on): Add stat-macros.
71847         * lib/stat_.h (includes): Pick up stat macros.
71848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71849         if stat macros are broken.
71850         * lib/tempname.c (includes): No need to include "stat-macros.h".
71851         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71852         (direxists, __path_search) [!_LIBC]: Don't compile these in
71853         gnulib; the tmpdir module covers that.
71854         * lib/tempname.h: New file.
71855
71856 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * COPYING: Explain how gnulib-tool converts licence headers.
71859         Almost all wording by Eric Blake.
71860
71861 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * lib/mbchar.h (is_basic_table): Make read-only.
71864         * lib/mbchar.c (is_basic_table): Likewise.
71865         Reported by John Darrington.
71866
71867 2006-10-25  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/progname.h (set_program_name): Undefine before defining.
71870
71871 2006-10-25  Bruno Haible  <bruno@clisp.org>
71872
71873         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71874         false for non-gcc C++ compilers.
71875         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71876
71877 2006-10-24  Bruno Haible  <bruno@clisp.org>
71878
71879         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71880         iconv implementations like Irix iconv.
71881
71882 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * modules/vararrays: New file.
71885         * m4/vararrays.m4: New file, taken from diffutils.
71886         * MODULES.html.sh: New module vararrays.
71887
71888 2006-10-24  Karl Berry  <karl@gnu.org>
71889
71890         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71891         Don't call GNU Unix.
71892
71893 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71894
71895         * users.txt: Add Libtool.
71896
71897         Sync from Libtool:
71898
71899         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71902         to gnulib's policy of including config.h unconditionally.
71903
71904 2006-10-24  Bruno Haible  <bruno@clisp.org>
71905
71906         * modules/wcwidth (Files): Add m4/wint_t.m4.
71907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71908         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71909
71910 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71911
71912         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71913         to pacify GCC with some -W flags enabled.  Problem reported by
71914         Bruno Haible.
71915
71916 2006-10-24  Jim Meyering  <jim@meyering.net>
71917
71918         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71919         Reported by Karl Berry.
71920
71921 2006-10-23  Bruno Haible  <bruno@clisp.org>
71922
71923         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71924
71925 2006-10-24  Bruno Haible  <bruno@clisp.org>
71926
71927         * lib/gl_list.h: Use C comment style, not C++ comment style.
71928
71929 2006-10-23  Eric Blake  <ebb9@byu.net>
71930
71931         * lib/getaddrinfo.c (includes): Add missing include.
71932
71933 2006-10-23  Bruno Haible  <bruno@clisp.org>
71934             Paul Eggert  <eggert@cs.ucla.edu>
71935
71936         Ability to rename obstack_free.
71937         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71938         obstack_free.
71939         (obstack_free): Invoke the __obstack_free macro.
71940         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71941
71942 2006-10-23  Bruno Haible  <bruno@clisp.org>
71943             Paul Eggert  <eggert@cs.ucla.edu>
71944
71945         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71946         __argc, __argv from the declaration. (They are defined as macros on
71947         mingw.)
71948
71949 2006-10-22  Bruno Haible  <bruno@clisp.org>
71950
71951         * doc/gnulib-intro.texi: New file.
71952         * doc/gnulib.texi: Include it.
71953
71954 2006-10-21  Bruno Haible  <bruno@clisp.org>
71955
71956         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71957         "Introduction", "Miscellanous Notes", "Particular Modules".
71958
71959 2006-10-21  Bruno Haible  <bruno@clisp.org>
71960
71961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71962         Change mostlyclean-local rule to avoid sh syntax error from bash
71963         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71964
71965 2006-10-23  Jim Meyering  <jim@meyering.net>
71966
71967         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71968         in place of snprintf.
71969
71970         * modules/inttostr (Files): Add lib/uinttostr.c.
71971         * lib/uinttostr.c (inttostr): New file/function.
71972         * lib/inttostr.h (uinttostr): Declare.
71973         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71974         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71975         Add uinttostr.
71976         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71977
71978 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * lib/canonicalize.c (ELOOP): Define if not already defined.
71981         Problem reported by Bruno Haible in
71982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71983
71984 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71985
71986         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71987         Problem reported by Perry Smith and Ville Laurikari.
71988
71989         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71990         uses.
71991
71992 2006-10-19  Bruno Haible  <bruno@clisp.org>
71993
71994         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71995         for mingw.
71996
71997 2006-10-19  Bruno Haible  <bruno@clisp.org>
71998
71999         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72000         Needed for mingw.
72001
72002 2006-10-19  Bruno Haible  <bruno@clisp.org>
72003
72004         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72005
72006 2006-10-19  Bruno Haible  <bruno@clisp.org>
72007
72008         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72009         it.
72010
72011 2006-10-19  Bruno Haible  <bruno@clisp.org>
72012
72013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72014         invocation.
72015
72016 2006-10-19  Bruno Haible  <bruno@clisp.org>
72017
72018         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72019         mountlist by default.
72020
72021 2006-10-16  Bruno Haible  <bruno@clisp.org>
72022
72023         * lib/c-strstr.c: Include c-strstr.h.
72024
72025 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72026
72027         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72028         in a slash.
72029
72030 2006-10-18  Bruno Haible  <bruno@clisp.org>
72031
72032         * lib/lock.h [C++]: Wrap definitions in extern "C".
72033
72034 2006-10-18  Bruno Haible  <bruno@clisp.org>
72035
72036         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72037         gl_LIBOBJS list.
72038
72039 2006-10-18  Bruno Haible  <bruno@clisp.org>
72040
72041         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72042
72043 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72044
72045         * lib/xstrtol.h: Include gettext.h.
72046         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72047         Problem reported by Eric Blake.
72048         * modules/xstrtol (Depends-on): Add gettext-h.
72049
72050 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72051
72052         * lib/strftime.c (advance): New macro.
72053         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72054         incomplete type, so you can't add 0 to it.  Problem and patch
72055         reported by Eelco Dolstra for dietlibc.
72056
72057 2006-10-18  Jim Meyering  <jim@meyering.net>
72058
72059         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72060         type for a local, and rename it: s/up/user_proc/.
72061
72062 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72063
72064         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72065         READ_UTMP_USER_PROCESS.
72066         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72067
72068 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72071         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72072
72073 2006-10-17  Eric Blake  <ebb9@byu.net>
72074
72075         * lib/sigprocmask.c (sigprocmask): Fix typo.
72076
72077         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72078
72079         * modules/clean-temp (Makefile.am): Don't add to make output...
72080         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72081         config.h.
72082
72083 2006-10-17  Bruno Haible  <bruno@clisp.org>
72084
72085         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72086         differently if DEFAULT_TEXT_DOMAIN is set.
72087
72088 2006-10-16  Bruno Haible  <bruno@clisp.org>
72089
72090         * lib/clean-temp.c: Include fwriteerror.h.
72091
72092 2006-10-16  Bruno Haible  <bruno@clisp.org>
72093
72094         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72095
72096 2006-10-16  Bruno Haible  <bruno@clisp.org>
72097
72098         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72099         * lib/sigprocmask.h: Include <sys/types.h>.
72100         (sigset_t): Use the system's definition if present.
72101
72102 2006-10-17  Eric Blake  <ebb9@byu.net>
72103
72104         * lib/xvasprintf.c (includes): Assume config.h.
72105         * lib/xasprintf.c (includes): Likewise.
72106
72107 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72110         at least as wide as intmax_t.
72111
72112 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72113
72114         (Imported from Automake.)
72115         * build-aux/gnupload: Update to version 1.1 of directive file.
72116
72117 2006-10-16  Eric Blake  <ebb9@byu.net>
72118
72119         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72120         match Automake 1.10a.
72121
72122 2006-10-14  Bruno Haible  <bruno@clisp.org>
72123
72124         * modules/sigprocmask: New file.
72125         * lib/sigprocmask.h: New file.
72126         * lib/sigprocmask.c: New file.
72127         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72128         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72129         request sigprocmask.o.
72130         (gl_PREREQ_SIGPROCMASK): New macro.
72131         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72132         (Depends-on): Add sigprocmask.
72133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72134         gt_SIGNALBLOCKING. Test for 'raise' only once.
72135         * lib/fatal-signal.c: Include sigprocmask.h.
72136         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72137         unblock_fatal_signals): Define always.
72138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72139         sigprocmask.
72140
72141 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         Sync from Automake.
72144         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72145         which incorrectly sets the mode of an existing destination
72146         directory.  In some cases the unpatched install-sh could do the
72147         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72148         system.  We hope this is rare in practice, but it's clearly worth
72149         fixing.  Problem reported by Alex Unleashed in
72150         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72151         Also, don't bother to check for -m bugs unless we're using -m;
72152         suggested by Stepan Kasal.
72153
72154 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72155
72156         Sync from Automake.
72157         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72158         `-c' flag, so they appear at the same position as in %FASTDEP%
72159         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72160         which ignores unknown options only after the first non-option.
72161         Bug report against M4 by Nelson H. F. Beebe.
72162
72163 2006-10-13  Jim Meyering  <jim@meyering.net>
72164
72165         Fix a bug in yesterday's change.
72166         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72167         p->fts_statp->st_dev would be used uninitialized.
72168         Ensures that we always call fts_stat on the very first entry.
72169         Miklos Szeredi reported that find -xdev stopped working.
72170
72171 2006-10-12  Bruno Haible  <bruno@clisp.org>
72172
72173         * gnulib-tool (func_get_automake_snippet): Append an automatically
72174         computed EXTRA_DIST augmentation.
72175         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72176         * modules/alloca-opt (Makefile.am): Likewise.
72177         * modules/allocsa (Makefile.am): Likewise.
72178         * modules/arcfour (Makefile.am): Likewise.
72179         * modules/arctwo (Makefile.am): Likewise.
72180         * modules/argmatch (Makefile.am): Likewise.
72181         * modules/argz (Makefile.am): Likewise.
72182         * modules/atexit (Makefile.am): Likewise.
72183         * modules/backupfile (Makefile.am): Likewise.
72184         * modules/byteswap (Makefile.am): Likewise.
72185         * modules/c-strtod (Makefile.am): Likewise.
72186         * modules/c-strtold (Makefile.am): Likewise.
72187         * modules/calloc (Makefile.am): Likewise.
72188         * modules/canon-host (Makefile.am): Likewise.
72189         * modules/canonicalize (Makefile.am): Likewise.
72190         * modules/chdir-long (Makefile.am): Likewise.
72191         * modules/chdir-safer (Makefile.am): Likewise.
72192         * modules/check-version (Makefile.am): Likewise.
72193         * modules/chown (Makefile.am): Likewise.
72194         * modules/cloexec (Makefile.am): Likewise.
72195         * modules/close-stream (Makefile.am): Likewise.
72196         * modules/closeout (Makefile.am): Likewise.
72197         * modules/crc (Makefile.am): Likewise.
72198         * modules/csharpexec (Makefile.am): Likewise.
72199         * modules/cycle-check (Makefile.am): Likewise.
72200         * modules/des (Makefile.am): Likewise.
72201         * modules/dev-ino (Makefile.am): Likewise.
72202         * modules/dirfd (Makefile.am): Likewise.
72203         * modules/dirname (Makefile.am): Likewise.
72204         * modules/dup2 (Makefile.am): Likewise.
72205         * modules/eealloc (Makefile.am): Likewise.
72206         * modules/error (Makefile.am): Likewise.
72207         * modules/euidaccess (Makefile.am): Likewise.
72208         * modules/exclude (Makefile.am): Likewise.
72209         * modules/exitfail (Makefile.am): Likewise.
72210         * modules/fcntl-safer (Makefile.am): Likewise.
72211         * modules/fcntl (Makefile.am): Likewise.
72212         * modules/file-type (Makefile.am): Likewise.
72213         * modules/fileblocks (Makefile.am): Likewise.
72214         * modules/filemode (Makefile.am): Likewise.
72215         * modules/filenamecat (Makefile.am): Likewise.
72216         * modules/fnmatch (Makefile.am): Likewise.
72217         * modules/fopen-safer (Makefile.am): Likewise.
72218         * modules/fpending (Makefile.am): Likewise.
72219         * modules/fprintftime (Makefile.am): Likewise.
72220         * modules/free (Makefile.am): Likewise.
72221         * modules/fsusage (Makefile.am): Likewise.
72222         * modules/ftruncate (Makefile.am): Likewise.
72223         * modules/fts (Makefile.am): Likewise.
72224         * modules/gc-arcfour (Makefile.am): Likewise.
72225         * modules/gc-des (Makefile.am): Likewise.
72226         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72227         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72228         * modules/gc-md4 (Makefile.am): Likewise.
72229         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72230         * modules/gc-sha1 (Makefile.am): Likewise.
72231         * modules/gc (Makefile.am): Likewise.
72232         * modules/getaddrinfo (Makefile.am): Likewise.
72233         * modules/getcwd (Makefile.am): Likewise.
72234         * modules/getdelim (Makefile.am): Likewise.
72235         * modules/getdomainname (Makefile.am): Likewise.
72236         * modules/getgroups (Makefile.am): Likewise.
72237         * modules/gethostname (Makefile.am): Likewise.
72238         * modules/gethrxtime (Makefile.am): Likewise.
72239         * modules/getline (Makefile.am): Likewise.
72240         * modules/getloadavg (Makefile.am): Likewise.
72241         * modules/getlogin_r (Makefile.am): Likewise.
72242         * modules/getndelim2 (Makefile.am): Likewise.
72243         * modules/getopt (Makefile.am): Likewise.
72244         * modules/getpagesize (Makefile.am): Likewise.
72245         * modules/getpass-gnu (Makefile.am): Likewise.
72246         * modules/getpass (Makefile.am): Likewise.
72247         * modules/getsubopt (Makefile.am): Likewise.
72248         * modules/gettime (Makefile.am): Likewise.
72249         * modules/gettimeofday (Makefile.am): Likewise.
72250         * modules/getugroups (Makefile.am): Likewise.
72251         * modules/getusershell (Makefile.am): Likewise.
72252         * modules/glob (Makefile.am): Likewise.
72253         * modules/group-member (Makefile.am): Likewise.
72254         * modules/hard-locale (Makefile.am): Likewise.
72255         * modules/hash (Makefile.am): Likewise.
72256         * modules/hmac-md5 (Makefile.am): Likewise.
72257         * modules/hmac-sha1 (Makefile.am): Likewise.
72258         * modules/human (Makefile.am): Likewise.
72259         * modules/idcache (Makefile.am): Likewise.
72260         * modules/imaxabs (Makefile.am): Likewise.
72261         * modules/imaxdiv (Makefile.am): Likewise.
72262         * modules/inet_ntop (Makefile.am): Likewise.
72263         * modules/inet_pton (Makefile.am): Likewise.
72264         * modules/intprops (Makefile.am): Likewise.
72265         * modules/inttostr (Makefile.am): Likewise.
72266         * modules/inttypes (Makefile.am): Likewise.
72267         * modules/isapipe (Makefile.am): Likewise.
72268         * modules/javaversion (Makefile.am): Likewise.
72269         * modules/lchmod (Makefile.am): Likewise.
72270         * modules/lchown (Makefile.am): Likewise.
72271         * modules/localcharset (Makefile.am): Likewise.
72272         * modules/long-options (Makefile.am): Likewise.
72273         * modules/lstat (Makefile.am): Likewise.
72274         * modules/malloc (Makefile.am): Likewise.
72275         * modules/mathl (Makefile.am): Likewise.
72276         * modules/mbchar (Makefile.am): Likewise.
72277         * modules/md2 (Makefile.am): Likewise.
72278         * modules/md4 (Makefile.am): Likewise.
72279         * modules/md5 (Makefile.am): Likewise.
72280         * modules/memcasecmp (Makefile.am): Likewise.
72281         * modules/memchr (Makefile.am): Likewise.
72282         * modules/memcmp (Makefile.am): Likewise.
72283         * modules/memcoll (Makefile.am): Likewise.
72284         * modules/memcpy (Makefile.am): Likewise.
72285         * modules/memmem (Makefile.am): Likewise.
72286         * modules/memmove (Makefile.am): Likewise.
72287         * modules/mempcpy (Makefile.am): Likewise.
72288         * modules/memrchr (Makefile.am): Likewise.
72289         * modules/memset (Makefile.am): Likewise.
72290         * modules/memxor (Makefile.am): Likewise.
72291         * modules/mkancesdirs (Makefile.am): Likewise.
72292         * modules/mkdir-p (Makefile.am): Likewise.
72293         * modules/mkdir (Makefile.am): Likewise.
72294         * modules/mkdtemp (Makefile.am): Likewise.
72295         * modules/mkstemp (Makefile.am): Likewise.
72296         * modules/mktime (Makefile.am): Likewise.
72297         * modules/modechange (Makefile.am): Likewise.
72298         * modules/mountlist (Makefile.am): Likewise.
72299         * modules/nanosleep (Makefile.am): Likewise.
72300         * modules/obstack (Makefile.am): Likewise.
72301         * modules/openat (Makefile.am): Likewise.
72302         * modules/pagealign_alloc (Makefile.am): Likewise.
72303         * modules/pathmax (Makefile.am): Likewise.
72304         * modules/physmem (Makefile.am): Likewise.
72305         * modules/poll (Makefile.am): Likewise.
72306         * modules/posixtm (Makefile.am): Likewise.
72307         * modules/posixver (Makefile.am): Likewise.
72308         * modules/putenv (Makefile.am): Likewise.
72309         * modules/quote (Makefile.am): Likewise.
72310         * modules/quotearg (Makefile.am): Likewise.
72311         * modules/raise (Makefile.am): Likewise.
72312         * modules/read-file (Makefile.am): Likewise.
72313         * modules/readline (Makefile.am): Likewise.
72314         * modules/readlink (Makefile.am): Likewise.
72315         * modules/readtokens (Makefile.am): Likewise.
72316         * modules/readutmp (Makefile.am): Likewise.
72317         * modules/realloc (Makefile.am): Likewise.
72318         * modules/regex (Makefile.am): Likewise.
72319         * modules/rename-dest-slash (Makefile.am): Likewise.
72320         * modules/rename (Makefile.am): Likewise.
72321         * modules/rijndael (Makefile.am): Likewise.
72322         * modules/rmdir (Makefile.am): Likewise.
72323         * modules/rpmatch (Makefile.am): Likewise.
72324         * modules/safe-read (Makefile.am): Likewise.
72325         * modules/safe-write (Makefile.am): Likewise.
72326         * modules/same-inode (Makefile.am): Likewise.
72327         * modules/same (Makefile.am): Likewise.
72328         * modules/save-cwd (Makefile.am): Likewise.
72329         * modules/savedir (Makefile.am): Likewise.
72330         * modules/setenv (Makefile.am): Likewise.
72331         * modules/settime (Makefile.am): Likewise.
72332         * modules/sha1 (Makefile.am): Likewise.
72333         * modules/sig2str (Makefile.am): Likewise.
72334         * modules/snprintf (Makefile.am): Likewise.
72335         * modules/stat-macros (Makefile.am): Likewise.
72336         * modules/stat-time (Makefile.am): Likewise.
72337         * modules/stdbool (Makefile.am): Likewise.
72338         * modules/stdint (Makefile.am): Likewise.
72339         * modules/stdlib-safer (Makefile.am): Likewise.
72340         * modules/stpcpy (Makefile.am): Likewise.
72341         * modules/stpncpy (Makefile.am): Likewise.
72342         * modules/strcase (Makefile.am): Likewise.
72343         * modules/strcasestr (Makefile.am): Likewise.
72344         * modules/strchrnul (Makefile.am): Likewise.
72345         * modules/strcspn (Makefile.am): Likewise.
72346         * modules/strdup (Makefile.am): Likewise.
72347         * modules/strerror (Makefile.am): Likewise.
72348         * modules/strftime (Makefile.am): Likewise.
72349         * modules/strndup (Makefile.am): Likewise.
72350         * modules/strnlen (Makefile.am): Likewise.
72351         * modules/strpbrk (Makefile.am): Likewise.
72352         * modules/strsep (Makefile.am): Likewise.
72353         * modules/strstr (Makefile.am): Likewise.
72354         * modules/strtod (Makefile.am): Likewise.
72355         * modules/strtoimax (Makefile.am): Likewise.
72356         * modules/strtok_r (Makefile.am): Likewise.
72357         * modules/strtol (Makefile.am): Likewise.
72358         * modules/strtoll (Makefile.am): Likewise.
72359         * modules/strtoul (Makefile.am): Likewise.
72360         * modules/strtoull (Makefile.am): Likewise.
72361         * modules/strtoumax (Makefile.am): Likewise.
72362         * modules/strverscmp (Makefile.am): Likewise.
72363         * modules/sys_socket (Makefile.am): Likewise.
72364         * modules/sys_stat (Makefile.am): Likewise.
72365         * modules/sysexits (Makefile.am): Likewise.
72366         * modules/time_r (Makefile.am): Likewise.
72367         * modules/timegm (Makefile.am): Likewise.
72368         * modules/timespec (Makefile.am): Likewise.
72369         * modules/tmpfile-safer (Makefile.am): Likewise.
72370         * modules/trim (Makefile.am): Likewise.
72371         * modules/unistd-safer (Makefile.am): Likewise.
72372         * modules/unlinkdir (Makefile.am): Likewise.
72373         * modules/unlocked-io (Makefile.am): Likewise.
72374         * modules/userspec (Makefile.am): Likewise.
72375         * modules/utime (Makefile.am): Likewise.
72376         * modules/utimecmp (Makefile.am): Likewise.
72377         * modules/utimens (Makefile.am): Likewise.
72378         * modules/vasnprintf (Makefile.am): Likewise.
72379         * modules/vasprintf (Makefile.am): Likewise.
72380         * modules/vsnprintf (Makefile.am): Likewise.
72381         * modules/xalloc (Makefile.am): Likewise.
72382         * modules/xgetcwd (Makefile.am): Likewise.
72383         * modules/xnanosleep (Makefile.am): Likewise.
72384         * modules/xreadlink (Makefile.am): Likewise.
72385         * modules/xstrtod (Makefile.am): Likewise.
72386         * modules/xstrtol (Makefile.am): Likewise.
72387         * modules/xstrtold (Makefile.am): Likewise.
72388         * modules/yesno (Makefile.am): Likewise.
72389         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72390
72391 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         * modules/error (Makefile.am): Distribute files through
72394         EXTRA_DIST, not lib_SOURCES.
72395
72396 2006-10-12  Eric Blake  <ebb9@byu.net>
72397
72398         * modules/error (Makefile.am): Distribute files in /lib.
72399         * modules/obstack (Makefile.am): Likewise.
72400
72401 2006-10-12  Bruno Haible  <bruno@clisp.org>
72402
72403         * modules/acl (Makefile.am): Distribute all files in lib/ through
72404         EXTRA_DIST.
72405         * modules/arcfour (Makefile.am): Likewise.
72406         * modules/arctwo (Makefile.am): Likewise.
72407         * modules/argmatch (Makefile.am): Likewise.
72408         * modules/argz (Makefile.am): Likewise.
72409         * modules/atexit (Makefile.am): Likewise.
72410         * modules/backupfile (Makefile.am): Likewise.
72411         * modules/c-strtod (Makefile.am): Likewise.
72412         * modules/c-strtold (Makefile.am): Likewise.
72413         * modules/calloc (Makefile.am): Likewise.
72414         * modules/canon-host (Makefile.am): Likewise.
72415         * modules/canonicalize (Makefile.am): Likewise.
72416         * modules/chdir-long (Makefile.am): Likewise.
72417         * modules/chdir-safer (Makefile.am): Likewise.
72418         * modules/check-version (Makefile.am): Likewise.
72419         * modules/chown (Makefile.am): Likewise.
72420         * modules/cloexec (Makefile.am): Likewise.
72421         * modules/close-stream (Makefile.am): Likewise.
72422         * modules/closeout (Makefile.am): Likewise.
72423         * modules/crc (Makefile.am): Likewise.
72424         * modules/cycle-check (Makefile.am): Likewise.
72425         * modules/des (Makefile.am): Likewise.
72426         * modules/dirfd (Makefile.am): Likewise.
72427         * modules/dirname (Makefile.am): Likewise.
72428         * modules/dup2 (Makefile.am): Likewise.
72429         * modules/euidaccess (Makefile.am): Likewise.
72430         * modules/exclude (Makefile.am): Likewise.
72431         * modules/exitfail (Makefile.am): Likewise.
72432         * modules/fcntl-safer (Makefile.am): Likewise.
72433         * modules/file-type (Makefile.am): Likewise.
72434         * modules/fileblocks (Makefile.am): Likewise.
72435         * modules/filemode (Makefile.am): Likewise.
72436         * modules/filenamecat (Makefile.am): Likewise.
72437         * modules/fnmatch (Makefile.am): Likewise.
72438         * modules/fopen-safer (Makefile.am): Likewise.
72439         * modules/fpending (Makefile.am): Likewise.
72440         * modules/fprintftime (Makefile.am): Likewise.
72441         * modules/free (Makefile.am): Likewise.
72442         * modules/fsusage (Makefile.am): Likewise.
72443         * modules/ftruncate (Makefile.am): Likewise.
72444         * modules/fts (Makefile.am): Likewise.
72445         * modules/gc (Makefile.am): Likewise.
72446         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72447         * modules/getaddrinfo (Makefile.am): Likewise.
72448         * modules/getcwd (Makefile.am): Likewise.
72449         * modules/getdelim (Makefile.am): Likewise.
72450         * modules/getdomainname (Makefile.am): Likewise.
72451         * modules/getgroups (Makefile.am): Likewise.
72452         * modules/gethostname (Makefile.am): Likewise.
72453         * modules/gethrxtime (Makefile.am): Likewise.
72454         * modules/getline (Makefile.am): Likewise.
72455         * modules/getloadavg (Makefile.am): Likewise.
72456         * modules/getlogin_r (Makefile.am): Likewise.
72457         * modules/getopt (Makefile.am): Likewise.
72458         * modules/getpass (Makefile.am): Likewise.
72459         * modules/getpass-gnu (Makefile.am): Likewise.
72460         * modules/getsubopt (Makefile.am): Likewise.
72461         * modules/gettime (Makefile.am): Likewise.
72462         * modules/gettimeofday (Makefile.am): Likewise.
72463         * modules/getugroups (Makefile.am): Likewise.
72464         * modules/getusershell (Makefile.am): Likewise.
72465         * modules/glob (Makefile.am): Likewise.
72466         * modules/group-member (Makefile.am): Likewise.
72467         * modules/hard-locale (Makefile.am): Likewise.
72468         * modules/hash (Makefile.am): Likewise.
72469         * modules/hmac-md5 (Makefile.am): Likewise.
72470         * modules/hmac-sha1 (Makefile.am): Likewise.
72471         * modules/human (Makefile.am): Likewise.
72472         * modules/idcache (Makefile.am): Likewise.
72473         * modules/imaxabs (Makefile.am): Likewise.
72474         * modules/imaxdiv (Makefile.am): Likewise.
72475         * modules/inet_ntop (Makefile.am): Likewise.
72476         * modules/inet_pton (Makefile.am): Likewise.
72477         * modules/inttostr (Makefile.am): Likewise.
72478         * modules/isapipe (Makefile.am): Likewise.
72479         * modules/lchown (Makefile.am): Likewise.
72480         * modules/long-options (Makefile.am): Likewise.
72481         * modules/lstat (Makefile.am): Likewise.
72482         * modules/malloc (Makefile.am): Likewise.
72483         * modules/mathl (Makefile.am): Likewise.
72484         * modules/mbchar (Makefile.am): Likewise.
72485         * modules/md2 (Makefile.am): Likewise.
72486         * modules/md4 (Makefile.am): Likewise.
72487         * modules/md5 (Makefile.am): Likewise.
72488         * modules/memcasecmp (Makefile.am): Likewise.
72489         * modules/memchr (Makefile.am): Likewise.
72490         * modules/memcmp (Makefile.am): Likewise.
72491         * modules/memcoll (Makefile.am): Likewise.
72492         * modules/memcpy (Makefile.am): Likewise.
72493         * modules/memmem (Makefile.am): Likewise.
72494         * modules/memmove (Makefile.am): Likewise.
72495         * modules/mempcpy (Makefile.am): Likewise.
72496         * modules/memrchr (Makefile.am): Likewise.
72497         * modules/memset (Makefile.am): Likewise.
72498         * modules/memxor (Makefile.am): Likewise.
72499         * modules/mkancesdirs (Makefile.am): Likewise.
72500         * modules/mkdir (Makefile.am): Likewise.
72501         * modules/mkdir-p (Makefile.am): Likewise.
72502         * modules/mkdtemp (Makefile.am): Likewise.
72503         * modules/mkstemp (Makefile.am): Likewise.
72504         * modules/mktime (Makefile.am): Likewise.
72505         * modules/modechange (Makefile.am): Likewise.
72506         * modules/mountlist (Makefile.am): Likewise.
72507         * modules/nanosleep (Makefile.am): Likewise.
72508         * modules/openat (Makefile.am): Likewise.
72509         * modules/pagealign_alloc (Makefile.am): Likewise.
72510         * modules/physmem (Makefile.am): Likewise.
72511         * modules/poll (Makefile.am): Likewise.
72512         * modules/posixtm (Makefile.am): Likewise.
72513         * modules/posixver (Makefile.am): Likewise.
72514         * modules/putenv (Makefile.am): Likewise.
72515         * modules/quote (Makefile.am): Likewise.
72516         * modules/quotearg (Makefile.am): Likewise.
72517         * modules/raise (Makefile.am): Likewise.
72518         * modules/read-file (Makefile.am): Likewise.
72519         * modules/readline (Makefile.am): Likewise.
72520         * modules/readlink (Makefile.am): Likewise.
72521         * modules/readtokens (Makefile.am): Likewise.
72522         * modules/readutmp (Makefile.am): Likewise.
72523         * modules/realloc (Makefile.am): Likewise.
72524         * modules/regex (Makefile.am): Likewise.
72525         * modules/rename (Makefile.am): Likewise.
72526         * modules/rename-dest-slash (Makefile.am): Likewise.
72527         * modules/rijndael (Makefile.am): Likewise.
72528         * modules/rmdir (Makefile.am): Likewise.
72529         * modules/rpmatch (Makefile.am): Likewise.
72530         * modules/safe-read (Makefile.am): Likewise.
72531         * modules/safe-write (Makefile.am): Likewise.
72532         * modules/same (Makefile.am): Likewise.
72533         * modules/save-cwd (Makefile.am): Likewise.
72534         * modules/savedir (Makefile.am): Likewise.
72535         * modules/setenv (Makefile.am): Likewise.
72536         * modules/settime (Makefile.am): Likewise.
72537         * modules/sha1 (Makefile.am): Likewise.
72538         * modules/sig2str (Makefile.am): Likewise.
72539         * modules/snprintf (Makefile.am): Likewise.
72540         * modules/stdlib-safer (Makefile.am): Likewise.
72541         * modules/stpcpy (Makefile.am): Likewise.
72542         * modules/stpncpy (Makefile.am): Likewise.
72543         * modules/strcase (Makefile.am): Likewise.
72544         * modules/strcasestr (Makefile.am): Likewise.
72545         * modules/strchrnul (Makefile.am): Likewise.
72546         * modules/strcspn (Makefile.am): Likewise.
72547         * modules/strdup (Makefile.am): Likewise.
72548         * modules/strerror (Makefile.am): Likewise.
72549         * modules/strftime (Makefile.am): Likewise.
72550         * modules/strndup (Makefile.am): Likewise.
72551         * modules/strnlen (Makefile.am): Likewise.
72552         * modules/strpbrk (Makefile.am): Likewise.
72553         * modules/strsep (Makefile.am): Likewise.
72554         * modules/strstr (Makefile.am): Likewise.
72555         * modules/strtod (Makefile.am): Likewise.
72556         * modules/strtoimax (Makefile.am): Likewise.
72557         * modules/strtok_r (Makefile.am): Likewise.
72558         * modules/strtol (Makefile.am): Likewise.
72559         * modules/strtoll (Makefile.am): Likewise.
72560         * modules/strtoul (Makefile.am): Likewise.
72561         * modules/strtoull (Makefile.am): Likewise.
72562         * modules/strtoumax (Makefile.am): Likewise.
72563         * modules/strverscmp (Makefile.am): Likewise.
72564         * modules/time_r (Makefile.am): Likewise.
72565         * modules/timegm (Makefile.am): Likewise.
72566         * modules/tmpfile-safer (Makefile.am): Likewise.
72567         * modules/unistd-safer (Makefile.am): Likewise.
72568         * modules/unlinkdir (Makefile.am): Likewise.
72569         * modules/userspec (Makefile.am): Likewise.
72570         * modules/utime (Makefile.am): Likewise.
72571         * modules/utimecmp (Makefile.am): Likewise.
72572         * modules/utimens (Makefile.am): Likewise.
72573         * modules/vasnprintf (Makefile.am): Likewise.
72574         * modules/vasprintf (Makefile.am): Likewise.
72575         * modules/vsnprintf (Makefile.am): Likewise.
72576         * modules/xalloc (Makefile.am): Likewise.
72577         * modules/xgetcwd (Makefile.am): Likewise.
72578         * modules/xnanosleep (Makefile.am): Likewise.
72579         * modules/xreadlink (Makefile.am): Likewise.
72580         * modules/xstrtod (Makefile.am): Likewise.
72581         * modules/xstrtol (Makefile.am): Likewise.
72582         * modules/xstrtold (Makefile.am): Likewise.
72583         * modules/yesno (Makefile.am): Likewise.
72584
72585 2006-10-12  Jim Meyering  <jim@meyering.net>
72586
72587         * m4/getloadavg.m4: Revert the change below.
72588
72589         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72590         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72591         fail with a symlink, which is what coreutils' ./bootstrap now
72592         creates by default.
72593
72594 2006-10-12  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72597         mingw.
72598         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72599         MSVC and mingw explicitly.
72600
72601 2006-10-11  Simon Josefsson  <jas@extundo.com>
72602             Bruno Haible  <bruno@clisp.org>
72603
72604         Add support for multiple gnulib-tool invocations in the scope of a
72605         single configure.ac file.
72606         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72607         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72608         with the same contents as the _LIBADD variable.
72609         (func_emit_initmacro_start, func_emit_initmacro_end,
72610         func_emit_initmacro_done): New functions.
72611         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72612         gl_LIBOBJS and gl_LTLIBOBJS.
72613
72614 2006-10-11  Bruno Haible  <bruno@clisp.org>
72615
72616         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72617         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72618         autoreconf. Instead, invoke autopoint explicitly but move back the
72619         *.m4 files from gnulib.
72620
72621 2006-10-11  Bruno Haible  <bruno@clisp.org>
72622
72623         * gnulib-tool (func_usage): Make module names after --create-testdir
72624         optional.
72625         (func_create_testdir): If no module was specified, use nearly all
72626         modules.
72627
72628 2006-10-12  Jim Meyering  <jim@meyering.net>
72629
72630         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72631         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72632         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72633         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72634         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72635         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72636         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72637         (fts_set_stat_required): New function.
72638         (fts_open): Defer the calls to fts_stat, if possible or requested.
72639         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72640         into fts_stat itself.
72641         (fts_read): Perform any required (deferred) fts_stat call.
72642         (fts_build): Likewise, for the directory we're about to open and read.
72643         In the readdir loop, carefully decide whether each entry will require
72644         an eventual call to fts_stat, using dirent.d_type info if available.
72645         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72646         a command line argument into this function.  Update all callers.
72647         Map a return value of FTS_DOT to FTS_D for a command line argument.
72648         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72649         Thanks to Miklos Szeredi for his tenacity and for the initial
72650         bug report about "find" failing on a FUSE-based file system.
72651
72652         * lib/fts.c (fts_open): Use consistent indentation.
72653
72654 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72657         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72658         reported by Jim Meyering.  All uses of cache variables renamed
72659         to match Autoconf's.
72660         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72661         the other one.
72662
72663         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72664         Fix misspelling in diagnostic.
72665
72666 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72669         defined.  Problem reported by Matthew Woehlke.
72670
72671         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72672         Add support for Tandem NonStop R series.
72673         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72674         Use new macro.
72675
72676         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72677         (has_trailing_slash): Omit size arg; all callers changed.
72678         Omit 'inline', since it doesn't help performance and we'd
72679         need to configure it.
72680         Don't count //, ///, etc. as having a trailing slash.
72681         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72682         (rpl_rename_dest_slash): On failure, use rename's errno rather
72683         than (in some cases) an incorrect or junk errno.
72684         Simplify code by removing need to compute length; this does
72685         cause it to make two passes instead of one over the file name,
72686         but it's worth it.
72687
72688         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72689         change, since Autoconf's version may no longer be appropriate now
72690         that we are using CVS Autoconf's version.  Add support for Tandem.
72691
72692 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72693             Bruno Haible  <bruno@clisp.org>
72694
72695         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72696         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72697         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72698         gl_AC_TYPE_LONG_LONG.
72699
72700         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72701         instead of HAVE_LONG_LONG.
72702         * lib/printf-args.c (printf_fetchargs): Likewise.
72703         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72704         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72705         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72706         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72707         gl_AC_TYPE_LONG_LONG.
72708
72709 2006-10-11  Bruno Haible  <bruno@clisp.org>
72710
72711         * m4/longlong.m4: Add comments.
72712         * m4/ulonglong.m4: Likewise.
72713
72714 2006-10-10  Bruno Haible  <bruno@clisp.org>
72715
72716         Make it possible to #define stpcpy, strdup to aliases.
72717         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72718         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72719
72720 2006-10-10  Bruno Haible  <bruno@clisp.org>
72721
72722         Make it possible to #define gcd to an alias.
72723         * lib/gcd.c: Include config.h.
72724
72725 2006-10-10  Bruno Haible  <bruno@clisp.org>
72726
72727         Make it possible to #define c_isascii to an alias.
72728         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72729         defined. Undefine the macros before defining them, to avoid gcc
72730         warnings.
72731         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72732         define NO_C_CTYPE_MACROS early.
72733
72734 2006-10-10  Bruno Haible  <bruno@clisp.org>
72735
72736         Make it possible to #define set_program_name to an alias.
72737         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72738         ENABLE_RELOCATABLE early.
72739
72740 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72743         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72744         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72745         More generally, don't assume that 64-bit signed int is available
72746         if unsigned int is, and vice versa.
72747         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72748         unsigned symbols, not on their signed counterparts.
72749         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72750         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72751         (UINT64_C, UINTMAX_C):
72752         Likewise.
72753         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72754         unsigned counterparts.
72755         (Have_long_long, Unsigned): New macros.
72756         (Int): Renamed from INT.
72757         (strtoimax): Use the new macros.
72758         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72759         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72760         * modules/inttypes (inttypes.h): Substitute
72761         HAVE_UNSIGNED_LONG_LONG_INT.
72762         * modules/stdint (stdint.h): Likewise.
72763         (Files): Add m4/ulonglong.m4.
72764
72765 2006-10-10  Bruno Haible  <bruno@clisp.org>
72766
72767         Fix a gcc -Wshadow warning.
72768         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72769         to 'bucket'.
72770         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72771         gl_linked_indexof_from_to): Likewise.
72772         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72773         Likewise.
72774         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72775         Likewise.
72776         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72777         Reported by Eric Blake.
72778
72779 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72782         for NetBSD.  Problem reported by Bruno Haible.
72783
72784 2006-10-09  Jim Meyering  <jim@meyering.net>
72785
72786         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72787         Patch from Bruno Haible.
72788
72789 2006-10-09  Jim Meyering  <jim@meyering.net>
72790
72791         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72792         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72793         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72794
72795 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         Don't include <config.h> twice; this doesn't work in some cases,
72798         e.g., when config.h has "#define intmax_t long long int" and
72799         we include <config.h>, <inttypes.h>, <config.h> in that order.
72800         Problem reported by Matthew Woehlke in:
72801         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72802         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72803         * lib/fts-cycle.c: Don't include config.h.
72804         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72805         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72806         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72807         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72808         inttypes.h.
72809         * lib/xstrtoumax.c: Likewise.
72810         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72811         __strtol and the like, so that this module is more like its siblings.
72812         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72813         Remove; no longer needed now that we assume gnulib inttypes.h.
72814
72815 2006-10-08  Bruno Haible  <bruno@clisp.org>
72816
72817         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72818         option.
72819
72820 2006-10-07  Jim Meyering  <jim@meyering.net>
72821
72822         * modules/inttypes (inttypes.h): Revert what seems to have been
72823         an inadvertent part of today's change: use "|", not "/" in the
72824         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72825
72826 2006-10-07  Bruno Haible  <bruno@clisp.org>
72827
72828         * modules/sublist: New file.
72829
72830 2006-10-07  Bruno Haible  <bruno@clisp.org>
72831
72832         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72833         * modules/argz (argz.h): Likewise.
72834         * modules/arpa_inet (arpa/inet.h): Likewise.
72835         * modules/byteswap (byteswap.h): Likewise.
72836         * modules/configmake (configmake.h): Likewise.
72837         * modules/fcntl (fcntl.h): Likewise.
72838         * modules/fnmatch (fnmatch.h): Likewise.
72839         * modules/getopt (getopt.h): Likewise.
72840         * modules/glob (glob.h): Likewise.
72841         * modules/inttypes (inttypes.h): Likewise.
72842         * modules/netinet_in (netinet/in.h): Likewise.
72843         * modules/poll (poll.h): Likewise.
72844         * modules/stdbool (stdbool.h): Likewise.
72845         * modules/stdint (stdint.h): Likewise.
72846         * modules/sys_select (sys/select.h): Likewise.
72847         * modules/sys_socket (sys/socket.h): Likewise.
72848         * modules/sys_stat (sys/stat.h): Likewise.
72849         * modules/sysexits (sysexits.h): Likewise.
72850         * modules/unistd (unistd.h): Likewise.
72851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72852         Add a "DO NOT EDIT" comment to the generated file.
72853         (func_import): Likewise for gnulib-comp.m4.
72854
72855 2006-10-07  Bruno Haible  <bruno@clisp.org>
72856
72857         * lib/gl_sublist.h: New file.
72858         * lib/gl_sublist.c: New file.
72859
72860 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72861
72862         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72863         name (relative to the original working directory) and the file
72864         name component (relative to the temporary working directory).  All
72865         callers changed.
72866         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72867         * lib/mkdir-p.c (make_dir_parents): Likewise.
72868         * lib/mkdir-p.h (make_dir_parents): Likewise.
72869
72870 2006-10-06  Eric Blake  <ebb9@byu.net>
72871
72872         Define several macros for use by the clean-temp module.
72873         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72874         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72875         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72876
72877         * lib/clean-temp.h (close_stream_temp): New declaration.
72878         * lib/clean-temp.c (includes): Pull in headers according to what
72879         other modules are in use.
72880         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72881
72882 2006-10-06  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72885         instead of fopen, fwriteerror.
72886
72887 2006-10-06  Bruno Haible  <bruno@clisp.org>
72888
72889         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72890         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72891         int.
72892         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72893         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72894         Return an error indicator.
72895         Suggested by Eric Blake.
72896
72897 2006-10-06  Bruno Haible  <bruno@clisp.org>
72898
72899         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72900         Reported by Eric Blake.
72901
72902 2006-10-06  Bruno Haible  <bruno@clisp.org>
72903
72904         * modules/closeout (Description): Mention stderr too.
72905
72906 2006-10-06  Bruno Haible  <bruno@clisp.org>
72907         and Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * lib/closeout.c (close_stdout): Also close stderr.
72910         * lib/closeout.h: Update comment.
72911
72912 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72916         * lib/dirchownmod.c: Include lchown.h.
72917         * lib/lchown.c: Don't include files that lchown.h now includes.
72918         Don't declare chown, since lchown.h now does that.
72919         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72920         (lchown): Define to rpl_chown if lchown is declared but
72921         does not exist.  Declare using a prototype if lchown is not
72922         declared.  Add a copyright notice.
72923         * lib/mkstemp.h: Include <unistd.h>.
72924         * lib/openat.c: Include lchown.h.
72925
72926         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72927         we now test for that separately.
72928         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72929         rather than O_NOFOLLOW, when testing whether it's possible to
72930         avoid a race condition reliably.
72931         * lib/savewd.c (savewd_chdir): Likewise.
72932
72933         Remove macros that are no longer needed now that stdint.h is
72934         reliable.
72935         * lib/fsusage.c (UINTMAX_MAX): Remove.
72936         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72937         * lib/utimecmp.c (SIZE_MAX): Remove.
72938
72939         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72940
72941         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72942         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72943         O_NOATIME works.
72944
72945 2006-10-05  Bruno Haible  <bruno@clisp.org>
72946
72947         * lib/gl_list.h (gl_sortedlist_search_from_to,
72948         gl_sortedlist_indexof_from_to): New declarations.
72949         (gl_list_implementation): New fields sortedlist_search_from_to,
72950         sortedlist_indexof_from_to.
72951         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72952         inline functions.
72953         * lib/gl_list.c (gl_sortedlist_search_from_to,
72954         gl_sortedlist_indexof_from_to): New functions.
72955         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72956         function.
72957         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72958         (gl_array_sortedlist_search_from_to): New function.
72959         (gl_array_list_implementation): Update.
72960         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72961         function.
72962         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72963         (gl_carray_sortedlist_search_from_to): New function.
72964         (gl_carray_list_implementation): Update.
72965         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72966         gl_linked_sortedlist_indexof_from_to): New functions.
72967         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72968         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72969         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72970         gl_tree_sortedlist_indexof_from_to): New functions.
72971         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72972         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72973         Update.
72974         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72975         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72976         Update.
72977
72978 2006-10-05  Bruno Haible  <bruno@clisp.org>
72979
72980         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72981         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72982         (struct gl_list_implementation): Add fields search_from_to,
72983         indexof_from_to. Remove fields search, indexof.
72984         (gl_list_search): Use the search_from_to method.
72985         (gl_list_search_from, gl_list_search_from_to): New functions.
72986         (gl_list_indexof): Use the indexof_from_to method.
72987         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72988         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72989         (gl_list_search_from, gl_list_search_from_to): New functions.
72990         (gl_list_indexof): Use the indexof_from_to method.
72991         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72992         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72993         gl_array_indexof. Add start_index, end_index arguments.
72994         (gl_array_search_from_to): Renamed from gl_array_search. Add
72995         start_index, end_index arguments.
72996         (gl_array_remove, gl_array_list_implementation): Update.
72997         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72998         gl_carray_indexof. Add start_index, end_index arguments.
72999         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73000         start_index, end_index arguments.
73001         (gl_carray_remove, gl_carray_list_implementation): Update.
73002         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73003         gl_linked_search. Add start_index, end_index arguments.
73004         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73005         start_index, end_index arguments.
73006         (gl_linked_remove): Update.
73007         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73008         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73009         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73010         field to 'size_t'.
73011         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73012         gl_tree_search. Add start_index, end_index arguments.
73013         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73014         start_index, end_index arguments.
73015         (gl_tree_remove): Update.
73016         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73017         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73018         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73019         function.
73020         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73021         gl_tree_search. Add start_index, end_index arguments.
73022         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73023         start_index, end_index arguments.
73024         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73025         Update.
73026         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73027
73028 2006-10-05  Bruno Haible  <bruno@clisp.org>
73029
73030         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73031
73032         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73033         fwriteerror_temp): New declarations.
73034         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73035         (descriptors): New variable.
73036         (cleanup): First, close the descriptors.
73037         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73038         fclose_temp, fwriteerror_temp): New functions.
73039
73040 2006-10-04  Jim Meyering  <jim@meyering.net>
73041
73042         * lib/fts.c (fts_open): Tiny comment change.
73043
73044 2006-10-04  Bruno Haible  <bruno@clisp.org>
73045
73046         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73047         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73048         gl_LOCK_BODY.
73049         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73050         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73051         gl_LOCK_EARLY_BODY.
73052         (gl_LOCK): Require gl_LOCK_BODY.
73053
73054 2006-10-04  Bruno Haible  <bruno@clisp.org>
73055
73056         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73057         (gl_oset_search_atleast): New declaration.
73058         (struct gl_oset_implementation): Add field 'search_atleast'.
73059         (gl_oset_search_atleast): New inline function.
73060         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73061         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73062         (gl_array_oset_implementation): Update.
73063         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73064         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73065         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73066
73067 2006-10-04  Bruno Haible  <bruno@clisp.org>
73068
73069         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73070
73071 2006-10-03  Bruno Haible  <bruno@clisp.org>
73072
73073         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73074         from gl_avltreehash_list_implementation.
73075
73076 2006-10-03  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/gl_oset.c (gl_oset_add): Fix return type.
73079
73080 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73081
73082         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73083
73084 2006-10-02  Eric Blake  <ebb9@byu.net>
73085
73086         * modules/strnlen (Depends-on): Add extensions.
73087
73088 2006-10-02  Eric Blake  <ebb9@byu.net>
73089
73090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73091         definition in 2.60+.
73092
73093 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73094
73095         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73096         checks.
73097
73098 2006-10-02  Bruno Haible  <bruno@clisp.org>
73099
73100         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73101         to the AUTOMAKE_OPTIONS.
73102         Reported by Jim Meyering.
73103
73104 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         Work around bug in Solaris 10 /proc file system:
73107         /proc/self/fd/NNN/.. isn't the parent directory of
73108         the directory whose file descriptor is NNN.  This needs to
73109         be worked around at run time, not compile time, since a
73110         program might be built on Solaris 8, where things work, and
73111         run on Solaris 10.
73112         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73113         to use the following interface instead:
73114         (OPENAT_BUFFER_SIZE): New macro.
73115         (openat_proc_name): New function.
73116         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73117         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73118         Likewise.
73119         * lib/openat-proc.c: New file.
73120         * modules/openat (Files): Add lib/openat-proc.c.
73121         (Depends-on): Add same-inode, stdbool.
73122         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73123
73124 2006-09-29  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73127         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73128         argument. Set stdout_closed before testing for ferror, not after.
73129         (fwriteerror, fwriteerror_no_ebadf): New functions.
73130
73131 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73132
73133         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73134
73135 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73136
73137         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73138         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73139
73140 2006-09-28  Jim Meyering  <jim@meyering.net>
73141
73142         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73143         Include <unistd.h>.
73144
73145 2006-09-28  Bruno Haible  <bruno@clisp.org>
73146
73147         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73148         * modules/linkedhash-list (Depends-on): Likewise.
73149         * modules/rbtreehash-list (Depends-on): Likewise.
73150
73151 2006-09-28  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/strndup.h: Simplify the redefinition of strndup.
73154         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73156
73157 2006-09-28  Bruno Haible  <bruno@clisp.org>
73158
73159         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73160         * lib/gl_linkedhash_list.c: Likewise.
73161         * lib/gl_rbtreehash_list.c: Likewise.
73162
73163 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73164
73165         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73166         getaddrinfo.
73167
73168         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73169         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73170         it causes <stdio_ext.h> to cause a compile-time error.
73171         Problem reported by Nelson H. F. Beebe.
73172         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73173         of HAVE_DECL___PENDING.
73174
73175         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73176         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73177         declaration.
73178
73179 2006-09-27  Jim Meyering  <jim@meyering.net>
73180
73181         This file could end up with a definition for a function
73182         named __strndup, rather than rpl_strndup on a system with
73183         incomplete weak_alias support.
73184         * lib/strndup.c (strndup): Rename from __strndup.
73185         Remove #defines that used to map __strndup to strndup.
73186         Don't use K&R prototypes.
73187         Remove LIBC-related code, since this file is not sync'd with glibc.
73188         * lib/strndup.h: Revamp, accordingly.
73189         * m4/strndup.m4: Modernize.
73190
73191 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * modules/savewd (Depends-on): Add 'raise'.
73194         * lib/savewd.c: Include <signal.h>, for 'raise'.
73195
73196 2006-09-26  Jim Meyering  <jim@meyering.net>
73197
73198         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73199         when we detect Darwin 8.7.0's acl_get_file bug.
73200         Rearrange to perform the new (below) run-test while $LIBS
73201         contains any acl-related library.  Set USE_ACL at the end.
73202         (gl_ACL_GET_FILE): New function.
73203
73204 2006-09-26  Eric Blake  <ebb9@byu.net>
73205
73206         * lib/verror.c: Include <config.h> unconditionally.
73207
73208 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * modules/clock-time (Maintainer): Add self.
73211         * modules/getlogin_r (Depends-on): Add extensions.
73212
73213 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73214
73215         * modules/clock-time: New module.
73216         * modules/nanosleep (Depends-on): Add clock-time.
73217         * modules/gethrxtime (Depends-on): Likewise.
73218         * modules/gettime (Depends-on): Likewise.
73219         * modules/settime (Depends-on): Likewise.
73220
73221         * modules/fts-lgpl: Depend on openat.
73222         * modules/mkancesdirs: Depend on savewd.
73223         * modules/mkdir-p: Likewise.
73224
73225 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73226
73227         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73228
73229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73230         `gl_have_arbitrary_file_name_length_limit' to
73231         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73232         actually works between configure runs.
73233
73234 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73235             Bruno Haible  <bruno@clisp.org>
73236
73237         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73238
73239 2006-09-25  Jim Meyering  <jim@meyering.net>
73240
73241         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73242         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73243
73244 2006-09-25  Eric Blake  <ebb9@byu.net>
73245
73246         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73247         exec's in 2006-09-18 patch when shuffling fds.
73248
73249 2006-09-25  Bruno Haible  <bruno@clisp.org>
73250
73251         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73252         Reported by Jim Meyering.
73253
73254 2006-09-24  Jim Meyering  <jim@meyering.net>
73255
73256         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73257         compare a pointer against a literal "0".  That caused failures with
73258         at least HP-UX's hpcc.
73259
73260 2006-09-22  Simon Josefsson  <jas@extundo.com>
73261
73262         * modules/gc-sha1:
73263         * modules/gc-md4:
73264         * modules/gc-hmac-sha1:
73265         * modules/gc-hmac-md5:
73266         * modules/gc-des:
73267         * modules/gc-arcfour: Distribute more files.
73268
73269 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73270
73271         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73272         (gl_linked_iterator_from_to): Initialize struct completely.
73273         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73274         (gl_tree_iterator_from_to): Likewise
73275         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73276         * lib/gl_array_list.c [lint] (gl_array_iterator)
73277         (gl_array_iterator_from_to): Likewise.
73278         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73279         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73280         (gl_carray_iterator_from_to): Likewise.
73281
73282         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73283         * lib/md4.c (md4_process_block): Remove unused variable.
73284         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73285         parentheses for clarity.
73286
73287 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73288
73289         * modules/bison-i18n (Depends-on): Add gettext.
73290
73291 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73292
73293         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73294         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73295         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73296         also add missing comma that caused broken test.
73297         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73298         stdlib.h, for `abort'.
73299         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73300         variables.
73301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73302         include unistd.h if present, for `rmdir'.
73303         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73304         variables.
73305         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73306         in the process include standard headers for prototypes.
73307         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73308         gets declared on GNU/Linux.
73309         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73310         unistd.h, for `rmdir'.
73311         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73312
73313         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73314         always true.
73315         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73316
73317         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73318
73319 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73320
73321         * gnulib-tool (func_version): Create output all at once.  This
73322         may help avoid triggering unnecessary SIGPIPEs, and at any
73323         rate it doesn't hurt.
73324
73325 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73326             Bruno Haible  <bruno@clisp.org>
73327
73328         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73329         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73330         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73331
73332         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73333         (gl_FUNC_VASPRINTF): Invoke it.
73334
73335 2006-09-22  Bruno Haible  <bruno@clisp.org>
73336
73337         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73338         getloadavg.c as first argument.
73339
73340 2006-09-22  Bruno Haible  <bruno@clisp.org>
73341
73342         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73343         at the beginning of the gl_INIT macro.
73344         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73345         gl_GETLOADAVG.
73346
73347 2006-09-22  Bruno Haible  <bruno@clisp.org>
73348
73349         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73350         module.
73351         Suggested by Ralf Wildenhues.
73352
73353 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         Import this patch from libc:
73356
73357         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73358
73359         * lib/regex_internal.c (re_string_reconstruct): Handle
73360         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73361         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73362         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73363         re_string_context_at.
73364
73365         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73366         now requires it.
73367         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73368         gl_REGEX now does it for us.
73369         (gl_REGEX): Add test taken from
73370         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73371
73372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73373         Check that large offsets work.  Modernize Autoconf usages.
73374         Prefer "yes" to mean a good thing rather than a bad.
73375         Don't put "#define mkstemp" in config.h, as this might interfere
73376         with standard system headers that "#define mkstemp mkstemp64".
73377
73378         * modules/mkstemp (Depends-on): Add extensions, so that
73379         mkstemp is visible on some platforms.
73380         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73381         (Include): Change to "mkstemp.h" from <stdlib.h>.
73382         (Files): Add mkstemp.h.
73383
73384         * lib/mkstemp.h: New file, since some standard headers
73385         #define mkstemp.
73386         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73387         Include "mkstemp.h".
73388         Make the _LIBC code resemble glibc original more,
73389         e.g., use K&R style.
73390         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73391         (mkstemp): Remove, since mkstemp.h does this for us.
73392         * lib/stdlib--.h: Include mkstemp.h.
73393
73394         Import this patch from libc:
73395
73396         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73397
73398         * lib/tempname.c (__gen_tempname): Change attempts_min
73399         into a macro.  Use preprocessor to decide how to initialize
73400         attempts [Coverity CID 67].
73401
73402 2006-09-20  Bruno Haible  <bruno@clisp.org>
73403
73404         * lib/mkdtemp.c: Import from libc.
73405         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73406                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73407                 attempts_min into a macro.  Use preprocessor to decide how to
73408                 initialize attempts [Coverity CID 67].
73409         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73410                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73411                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73412
73413 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73414
73415         * gnulib-tool (func_exit): New function, to allow to pass the
73416         exit status portably through the trap.  Use everywhere.
73417         (--help, --version): Signal a write error.
73418         (trap): catch SIGPIPE, for write errors.
73419         Exit at the end of the trap, with the correct exit status.
73420
73421 2006-09-19  Karl Berry  <karl@gnu.org>
73422
73423         * doc/gnulib.texi: note about the license texinfo files.
73424
73425 2006-09-19  Eric Blake  <ebb9@byu.net>
73426
73427         * gnulib-tool: Avoid space-tab.
73428
73429 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73432         that prevented coreutils 6.1 from building.  Problem reported
73433         by Petter Reinholdtsen.
73434
73435 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73436
73437         * gnulib-tool (avoidlist): Fix typo that broke options like
73438         --avoid=lock that are used by coreutils bootstrap.
73439
73440 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73441
73442         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73443         more systematically.
73444
73445 2006-09-18  Jim Meyering  <jim@meyering.net>
73446
73447         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73448
73449 2006-09-18  Bruno Haible  <bruno@clisp.org>
73450
73451         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73452
73453 2006-09-18  Bruno Haible  <bruno@clisp.org>
73454
73455         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73456         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73457         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73458         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73459         * m4/gettext.m4: Require autoconf >= 2.52.
73460         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73461         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73462         of gl_cv_header_inttypes_h.
73463
73464 2006-09-18  Bruno Haible  <bruno@clisp.org>
73465
73466         * lib/javaversion.c: Include configmake.h.
73467
73468 2006-09-18  Bruno Haible  <bruno@clisp.org>
73469
73470         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73471         avoid that the while loops be executed in a subshell.
73472
73473 2006-09-18  Bruno Haible  <bruno@clisp.org>
73474
73475         * MODULES.html.sh (func_module): Break long lines.
73476         Suggested by Bruce Korb <bkorb@gnu.org>.
73477
73478 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73479
73480         Speed up by a factor of 1.12.
73481         * gnulib-tool (nl): New variable.
73482         (func_import): Rewrite include directive extraction to only read each
73483         directive once.
73484
73485 2006-09-17  Bruno Haible  <bruno@clisp.org>
73486
73487         * modules/javaversion (Makefile.am): Remove DEFS setting.
73488         (Depends-on): Add configmake, for PKGDATADIR definition.
73489
73490 2006-09-17  Bruno Haible  <bruno@clisp.org>
73491
73492         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73493
73494 2006-09-17  Bruno Haible  <bruno@clisp.org>
73495
73496         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73497         (func_modules_transitive_closure, func_modules_add_dummy,
73498         func_modules_to_filelist, func_import, func_create_testdir,
73499         func_create_megatestdir, ...): Use it wherever possible.
73500         Suggested by Ralf Wildenhues.
73501
73502 2006-09-16  Karl Berry  <karl@gnu.org>
73503
73504         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73505         to avoid sectioning errors.
73506         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73507         [ifinfo]: blank line after @center-ed titles.
73508         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73509         Spell FSF address consistently with others.
73510         (These changes approved by rms.)
73511
73512 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73513
73514         Speed up by a factor of 1.61.
73515         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73516         already checked module names again.
73517
73518 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73519
73520         Speed up by a factor of 1.13.
73521         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73522         for new_files, and the input to func_add_or_update.
73523
73524 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73525
73526         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73527         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73528
73529 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * modules/mkancesdirs (Depends-on): Add fcntl.
73532         * modules/savewd: New file.
73533         * MODULES.html.sh (File system functions): Add savewd.
73534
73535         * modules/configmake (Makefile.am): Add support for the
73536         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73537
73538 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73539
73540         * m4/savewd.m4: New file.
73541
73542 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73545         (dirchownmod): New arg FD.  All callers changed.
73546         Use FD rather than opening the directory ourself, as opening is
73547         now the caller's responsibility.
73548         * lib/dirchownmod.h: Likewise.
73549         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73550         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73551         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73552         (test_dir): Remove.
73553         (mkancesdirs): Return length of prefix of FILE that has already
73554         been made, or -2 if there is a child doing the work.  Redo
73555         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73556         ".", and treat ".." specially since it might stray back into
73557         already-created areas.  Use a subprocess if necessary.  New arg
73558         WD; all users changed.  MAKE_DIR function should now return 1
73559         if it creates a directory that is not readable.  Return -2 if
73560         a child process is spun off.
73561         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73562         Adjust signature to match code.
73563         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73564         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73565         all users changed.
73566         * lib/savewd.c, lib/savewd.h: New files.
73567
73568 2006-09-15  Jim Meyering  <jim@meyering.net>
73569
73570         * modules/rename-dest-slash: New module.
73571         * MODULES.html.sh (posix_compat): Add it here.
73572
73573         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73574
73575 2006-09-15  Jim Meyering  <jim@meyering.net>
73576
73577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73578         file.
73579
73580         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73581
73582 2006-09-15  Jim Meyering  <jim@meyering.net>
73583
73584         * lib/rename-dest-slash.c (has_trailing_slash): Use
73585         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73586         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73587         test before testing whether SRC is a directory.
73588         Suggestions from Bruno Haible.
73589
73590         Avoid a warning about an unused variable.
73591         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73592         into the #ifdef block where it's used.
73593
73594         * lib/rename-dest-slash.c: New file.
73595
73596 2006-09-14  Bruno Haible  <bruno@clisp.org>
73597
73598         * lib/allocsa.c: Include <config.h> unconditionally.
73599         * lib/asnprintf.c: Likewise.
73600         * lib/asprintf.c: Likewise.
73601         * lib/c-strcasecmp.c: Likewise.
73602         * lib/c-strcasestr.c: Likewise.
73603         * lib/c-strncasecmp.c: Likewise.
73604         * lib/c-strstr.c: Likewise.
73605         * lib/classpath.c: Likewise.
73606         * lib/clean-temp.c: Likewise.
73607         * lib/concatpath.c: Likewise.
73608         * lib/copy-file.c: Likewise.
73609         * lib/csharpcomp.c: Likewise.
73610         * lib/csharpexec.c: Likewise.
73611         * lib/execute.c: Likewise.
73612         * lib/fatal-signal.c: Likewise.
73613         * lib/findprog.c: Likewise.
73614         * lib/fwriteerror.c: Likewise.
73615         * lib/gl_array_list.c: Likewise.
73616         * lib/gl_array_oset.c: Likewise.
73617         * lib/gl_avltree_list.c: Likewise.
73618         * lib/gl_avltree_oset.c: Likewise.
73619         * lib/gl_avltreehash_list.c: Likewise.
73620         * lib/gl_carray_list.c: Likewise.
73621         * lib/gl_linked_list.c: Likewise.
73622         * lib/gl_linkedhash_list.c: Likewise.
73623         * lib/gl_list.c: Likewise.
73624         * lib/gl_oset.c: Likewise.
73625         * lib/gl_rbtree_list.c: Likewise.
73626         * lib/gl_rbtree_oset.c: Likewise.
73627         * lib/gl_rbtreehash_list.c: Likewise.
73628         * lib/imaxabs.c: Likewise.
73629         * lib/imaxdiv.c: Likewise.
73630         * lib/javacomp.c: Likewise.
73631         * lib/javaexec.c: Likewise.
73632         * lib/javaversion.c: Likewise.
73633         * lib/linebreak.c: Likewise.
73634         * lib/localcharset.c: Likewise.
73635         * lib/lock.c: Likewise.
73636         * lib/mbchar.c: Likewise.
73637         * lib/mbswidth.c: Likewise.
73638         * lib/mkdtemp.c: Likewise.
73639         * lib/pipe.c: Likewise.
73640         * lib/printf-args.c: Likewise.
73641         * lib/printf-parse.c: Likewise.
73642         * lib/progname.c: Likewise.
73643         * lib/progreloc.c: Likewise.
73644         * lib/readlink.c: Likewise.
73645         * lib/sh-quote.c: Likewise.
73646         * lib/stpcpy.c: Likewise.
73647         * lib/stpncpy.c: Likewise.
73648         * lib/strcasecmp.c: Likewise.
73649         * lib/strcasestr.c: Likewise.
73650         * lib/strcspn.c: Likewise.
73651         * lib/striconv.c: Likewise.
73652         * lib/strncasecmp.c: Likewise.
73653         * lib/strnlen1.c: Likewise.
73654         * lib/strstr.c: Likewise.
73655         * lib/strtok_r.c: Likewise.
73656         * lib/tls.c: Likewise.
73657         * lib/tmpdir.c: Likewise.
73658         * lib/unicodeio.c: Likewise.
73659         * lib/unsetenv.c: Likewise.
73660         * lib/vasnprintf.c: Likewise.
73661         * lib/vasprintf.c: Likewise.
73662         * lib/wait-process.c: Likewise.
73663         * lib/xallocsa.c: Likewise.
73664         * lib/xsetenv.c: Likewise.
73665         * lib/xstriconv.c: Likewise.
73666
73667 2006-09-13  Simon Josefsson  <jas@extundo.com>
73668
73669         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73670         that internally, suggested by Ralf Wildenhues
73671         <Ralf.Wildenhues@gmx.de>.
73672
73673 2006-09-13  Simon Josefsson  <jas@extundo.com>
73674
73675         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73676         @LIBOBJS@.
73677         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73678
73679 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73682         longer worry about uses that don't define HAVE_CONFIG_H.
73683         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73684         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73685         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73686         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73687         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73688         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73689         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73690         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73691         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73692         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73693         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73694         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73695         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73696         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73697         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73698         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73699         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73700         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73701         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73702         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73703         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73704         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73705         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73706         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73707         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73708         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73709         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73710         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73711         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73712         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73713         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73714         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73715         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73716         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73717         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73718         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73719         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73720         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73721         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73722         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73723         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73724         Likewise.
73725
73726 2006-09-13  Eric Blake  <ebb9@byu.net>
73727
73728         * lib/getopt.c: Fix typo in last commit.
73729
73730 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73731
73732         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73733         dgettext.
73734
73735 2006-09-12  Jim Meyering  <jim@meyering.net>
73736
73737         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73738         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73739         Reported by Nelson H. F. Beebe.
73740
73741 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73742
73743         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73744         program_invocation_name and program_invocation_short_name are
73745         initialized.
73746         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73747         and program_invocation_short_name to argp.h, so they are visible
73748         to user programs.
73749         * lib/argp.h: Likewise
73750
73751 2006-09-10  Bruno Haible  <bruno@clisp.org>
73752
73753         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73754         m4/inttypes_h.m4, m4/uintmax_t.m4.
73755
73756 2006-09-10  Bruno Haible  <bruno@clisp.org>
73757
73758         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73759         gl_AC_TYPE_UINTMAX_T.
73760
73761 2006-09-10  Bruno Haible  <bruno@clisp.org>
73762
73763         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73764
73765 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73766
73767         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73768         convention.  Text proposed by Bruno Haible.
73769         (struct argp_option): Document the use of N_() wrappers.
73770
73771         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73772         '\v', and translate the two parts separately, instead of feeding
73773         the whole string to gettext.  This allows to exclude
73774         '\v' from the strings visible to the translator by writing doc
73775         strings as N_("..") "\v" N_("..").
73776
73777 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * config/srclist.txt: Undo latest change; the bug was fixed.
73780
73781 2006-09-09  Bruno Haible  <bruno@clisp.org>
73782
73783         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73784         assignments if building a library without libtool.
73785         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73786         in func_emit_lib_Makefile_am.
73787         (func_import): When building a static library libfoo.a, arrange to
73788         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73789         (func_create_testdir): Likewise.
73790         * modules/gc (configure.ac, Makefile.am): If building statically,
73791         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73792         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73793         * modules/striconv (configure.ac, Makefile.am): Likewise.
73794         Based on a suggestion by Ralf Wildenhues.
73795
73796 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73799         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73800         Also:
73801
73802         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73803         Add year_2050_test to catch glibc bug 2821
73804         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73805
73806         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73807         Prefer #ifdef to #if.
73808
73809         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73810         Return from 'main' instead of calling 'exit'.
73811
73812 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73815         returned the maximum time_t value rather than (time_t) -1.
73816         Problem originally reported by William Bardwell
73817         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73818
73819         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73820         Moved to here ...
73821         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73822         ... from here.
73823
73824 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73827         2821 is fixed.
73828
73829 2006-09-08  Jim Meyering  <jim@meyering.net>
73830
73831         Don't make generated files read-only.  That would bother too many
73832         people.  However, do retain the ability to work when targets are
73833         read-only: remove the destination and temporary files before writing
73834         them (when generated via sed or echo), or by using the -f option for
73835         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73836         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73837         * modules/byteswap, modules/configmake, modules/fcntl:
73838         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73839         * modules/localcharset, modules/netinet_in, modules/poll:
73840         * modules/stdbool, modules/stdint, modules/sys_select:
73841         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73842
73843 2006-09-08  Jim Meyering  <jim@meyering.net>
73844
73845         Avoid new build failure on FreeBSD 6.0.
73846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73847         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73848         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73849
73850 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73851
73852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73853
73854 2006-09-07  Jim Meyering  <jim@meyering.net>
73855
73856         Fix global typo in last change: use chmod u-w, not chmod u-x.
73857         Spotted by Paul Eggert and Bruce Korb.
73858         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73859         * modules/byteswap, modules/configmake, modules/fcntl:
73860         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73861         * modules/localcharset, modules/netinet_in, modules/poll:
73862         * modules/stdbool, modules/stdint, modules/sys_select:
73863         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73864
73865 2006-09-06  Jim Meyering  <jim@meyering.net>
73866
73867         Make generated files be read-only.
73868         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73869         Ensure that each generated file is now read-only.
73870         * modules/argz: Likewise.
73871         * modules/arpa_inet: Likewise.
73872         * modules/byteswap: Likewise.
73873         * modules/configmake: Likewise.
73874         * modules/fcntl: Likewise.
73875         * modules/fnmatch: Likewise.
73876         * modules/getopt: Likewise.
73877         * modules/glob: Likewise.
73878         * modules/inttypes: Likewise.
73879         * modules/netinet_in: Likewise.
73880         * modules/poll: Likewise.
73881         * modules/stdbool: Likewise.
73882         * modules/stdint: Likewise.
73883         * modules/sys_select: Likewise.
73884         * modules/sys_socket: Likewise.
73885         * modules/sys_stat: Likewise.
73886         * modules/sysexits: Likewise.
73887         * modules/localcharset: Same as above, but continue using temporary
73888         file named "t-$@" (why different?) rather than the "$@-t" used
73889         everywhere else.
73890
73891         * modules/sysexits (Makefile.am): Replace literal occurrences
73892         of "sysexit.h" more readable, and more consistent, "$@".
73893
73894 2006-09-06  Bruno Haible  <bruno@clisp.org>
73895
73896         * modules/striconv: New file.
73897         * modules/xstriconv: New file.
73898         * MODULES.html.sh (Internationalization functions): Add striconv,
73899         xstriconv.
73900
73901 2006-09-06  Bruno Haible  <bruno@clisp.org>
73902
73903         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73904         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73905         not using libtool correctly.
73906
73907 2006-09-06  Bruno Haible  <bruno@clisp.org>
73908
73909         * lib/striconv.h: New file.
73910         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73911         iconvstring.c.
73912         * lib/xstriconv.h: New file.
73913         * lib/xstriconv.c: New file.
73914
73915 2006-09-06  Bruno Haible  <bruno@clisp.org>
73916
73917         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73918         lib_..._LDFLAGS.
73919
73920 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73921
73922         * lib/argz_.h: Sync from Libtool.
73923
73924         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73925                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73926
73927         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73928
73929 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73930
73931         * modules/trim: New file.
73932
73933 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73934
73935         * lib/trim.h: New file.
73936         * lib/trim.c: New file.
73937
73938 2006-09-05  Bruno Haible  <bruno@clisp.org>
73939
73940         * MODULES.html.sh (String handling): Add trim.
73941
73942 2006-09-04  Karl Berry  <karl@gnu.org>
73943
73944         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73945         until next release.
73946
73947 2006-09-03  Bruno Haible  <bruno@clisp.org>
73948
73949         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73950         correctly.
73951
73952 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73955         not gl_GETLOADAVG.  Omit unneeded semicolons.
73956         Problems reported by Ralf Wildenhues in
73957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73958         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73959         at the end, which is the usual gnulib style.
73960
73961         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73962         of doing all the work ourselves.
73963         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73964         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73965
73966 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73969         Problem reported by Ralf Wildenhues in
73970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73971
73972         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73973         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73974
73975 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73978         yesterday's patch by changing test -n to test -z.
73979
73980 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73983         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73984         the former is now obsolescent.
73985
73986         * modules/chdir-long (Depends-on): Add fcntl.
73987
73988 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73991         obsolescent, and programs should use gnulib instead.
73992         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73993         but with prefixes changed.
73994
73995 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73998         or stdbool.h, because they might not exist while configuring.
73999
74000         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74001         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74002         does that for us.
74003         (O_DIRECTORY): Remove.
74004
74005 2006-08-31  Eric Blake  <ebb9@byu.net>
74006
74007         * gnulib-tool: Don't let emacs change spaces to TAB.
74008
74009 2006-08-31  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool: When calling func_import more than once, do it in a
74012         subshell.
74013         Reported by Eric Blake <ebb9@byu.net>.
74014
74015 2006-08-31  Bruno Haible  <bruno@clisp.org>
74016
74017         * gnulib-tool (nl): Remove variable.
74018         (sed_transform_lib_file): Use more robust test for config-h module.
74019         (func_import): Fix typo in 2006-08-25 patch.
74020
74021 2006-08-31  Bruno Haible  <bruno@clisp.org>
74022
74023         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74024         specified, augment Makefile.am variables instead of assigning them.
74025
74026 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74027
74028         Work around a bug in both the Linux and SunOS 64-bit kernels:
74029         nanosleep mishandles sleeps for longer than 2**31 seconds.
74030         Problem reported by Frank v Waveren in
74031         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74033         Check for nanosleep bug.
74034         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74035
74036 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74037
74038         Work around a bug in both the Linux and SunOS 64-bit kernels:
74039         nanosleep mishandles sleeps for longer than 2**31 seconds.
74040         Problem reported by Frank v Waveren in
74041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74042         * lib/nanosleep.c (BILLION): New constant.
74043         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74044         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74045         implementation.
74046
74047 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         * modules/nanosleep (Depends-on): Add gettime.
74050
74051 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74052         and Simon Josefsson  <jas@extundo.com>
74053         and Oskar Liljeblad  <oskar@osk.mine.nu>
74054
74055         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74056         * gnulib-tool (func_import): New license type 'unmodifiable license
74057         text'.
74058         * modules/fdl: Use it.  Longer description.
74059         * module/gpl, module/lgpl: New files.
74060
74061 2006-08-30  Jim Meyering  <jim@meyering.net>
74062
74063         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74064         shadowing the parameter.
74065
74066 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74067
74068         Sync from Libtool:
74069
74070         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74071
74072         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74073         sharing with gnulib.  Report by Eric Blake.
74074
74075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * modules/isapipe: New file.
74078         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74079
74080 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * modules/configmake (Makefile.am): Add a comment, and omit
74083         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74084         by Bruno Haible.
74085
74086 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74087
74088         * m4/isapipe.m4: New file.
74089
74090 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74091
74092         * lib/isapipe.c, lib/isapipe.h: New files.
74093
74094 2006-08-29  Jim Meyering  <jim@meyering.net>
74095
74096         * modules/configmake (Makefile.am): Make configmake.h depend on
74097         Makefile.  Otherwise, a stale configmake.h could hang around.
74098
74099 2006-08-29  Eric Blake  <ebb9@byu.net>
74100
74101         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74102         resolution of upstream bug 3044.
74103
74104 2006-08-29  Bruno Haible  <bruno@clisp.org>
74105
74106         * modules/localcharset (Depends-on): Add configmake.
74107         (Makefile.am): Remove setting of LIBDIR through DEFS.
74108
74109 2006-08-29  Bruno Haible  <bruno@clisp.org>
74110
74111         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74112         defined.
74113
74114 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * modules/fcntl: New file.
74117         * modules/chdir-safer (Depends-on): Add fcntl.
74118         * modules/fts: Likewise.
74119         * modules/mkdir-p: Likewise.
74120
74121         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74122         This undoes the most recent change, since we're now addressing the
74123         problem in a different way.
74124
74125         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74126         into output, since the output might be called Makefile.am even
74127         if $makefile_name is something different.
74128         (func_import): Use $makefile_am rather than
74129         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74130         empty.
74131
74132         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74133
74134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74135
74136         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74137         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74138         recent change to stdint.m4, since we're now addressing the problem in a
74139         different way.
74140
74141 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         * m4/fcntl_h.m4: New file.
74144
74145 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * lib/fcntl_.h: New file.
74148         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74149         the fcntl module.
74150         * lib/dirchownmod.c: Likewise.
74151         * lib/fts.c: Likewise.
74152
74153         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74154         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74155         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74156         just before including <inttypes.h>, to avoid circular inclusion.
74157
74158 2006-08-28  Jim Meyering  <jim@meyering.net>
74159
74160         * doc/visibility.texi: Actually read and correct the grammar of the
74161         sentence affected by yesterday's change.
74162
74163 2006-08-28  Eric Blake  <ebb9@byu.net>
74164
74165         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74166         needs wrapper.
74167
74168 2006-08-28  Eric Blake  <ebb9@byu.net>
74169
74170         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74171
74172 2006-08-28  Eric Blake  <ebb9@byu.net>
74173
74174         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74175
74176 2006-08-28  Bruno Haible  <bruno@clisp.org>
74177
74178         * modules/c-strstr: New file, from GNU gettext.
74179         * MODULES.html.sh (String handling): Add c-strstr.
74180
74181 2006-08-28  Bruno Haible  <bruno@clisp.org>
74182
74183         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74184         macros.
74185         Reported by Eric Blake.
74186
74187 2006-08-28  Bruno Haible  <bruno@clisp.org>
74188
74189         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74190         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74191         * lib/vasprintf.c: Include errno.h, limits.h.
74192         (EOVERFLOW): New fallback definition.
74193         (vasprintf): Test here whether the string length is > INT_MAX.
74194         * lib/vsnprintf.c: Include errno.h, limits.h.
74195         (EOVERFLOW): New fallback definition.
74196         (vsnprintf): Fix bug when generated string was too long for the buffer.
74197         Test here whether the string length is > INT_MAX.
74198
74199 2006-08-28  Bruno Haible  <bruno@clisp.org>
74200
74201         * lib/inttypes_.h (SCNX*): Remove definitions.
74202         Reported by Eric Blake.
74203
74204 2006-08-28  Bruno Haible  <bruno@clisp.org>
74205
74206         * lib/c-strstr.h: New file, from GNU gettext.
74207         * lib/c-strstr.c: New file, from GNU gettext.
74208
74209 2006-08-28  Bruno Haible  <bruno@clisp.org>
74210
74211         * gnulib-tool: Reorder some statements.
74212
74213 2006-08-28  Bruno Haible  <bruno@clisp.org>
74214
74215         * gnulib-tool: New option --makefile-name.
74216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74217         $makefile_name.
74218         (func_import): Write $makefile_name to the cache file, and read it from
74219         there unless explicitly specified. Use $makefile_name as file name
74220         instead of Makefile.am. Adjust the recommendations accordingly.
74221
74222 2006-08-28  Bruno Haible  <bruno@clisp.org>
74223
74224         * gnulib-tool (func_verify_module): Check against misapplying patch.
74225
74226 2006-08-28  Bruno Haible  <bruno@clisp.org>
74227
74228         * gnulib-tool (func_relativize, func_relconcat): New functions.
74229         Give an error if --local-dir is given with --update.
74230         Remove trailing slashes from $local_gnulib_dir.
74231         (func_import): Store the relativized $local_gnulib_dir in
74232         gnulib-cache.m4, and read it from there if not specified explicitly.
74233
74234 2006-08-28  Bruno Haible  <bruno@clisp.org>
74235
74236         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74237         is the current directory. Respect also $local_gnulib_dir.
74238
74239 2006-08-28  Bruno Haible  <bruno@clisp.org>
74240             Simon Josefsson  <jas@extundo.com>
74241
74242         BeOS portability.
74243         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74244
74245 2006-08-27  Jim Meyering  <jim@meyering.net>
74246
74247         * doc/visibility.texi: Remove duplicate word: "pointer".
74248
74249 2006-08-26  Bruno Haible  <bruno@clisp.org>
74250
74251         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74252         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74253         (Makefile.am): Create inttypes.h from inttypes_.h.
74254         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74255
74256         * modules/imaxabs: New file.
74257
74258         * modules/imaxdiv: New file.
74259
74260 2006-08-26  Bruno Haible  <bruno@clisp.org>
74261
74262         * m4/inttypes.m4: New file.
74263         * m4/_inttypes_h.m4: Remove file.
74264         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74265         PRI_MACROS_BROKEN.
74266         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74267
74268         * m4/imaxabs.m4: New file.
74269
74270         * m4/imaxdiv.m4: New file.
74271
74272 2006-08-26  Bruno Haible  <bruno@clisp.org>
74273
74274         * lib/inttypes_.h: New file.
74275         * lib/inttypes.h: Remove file.
74276         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74277
74278         * lib/imaxabs.c: New file.
74279
74280         * lib/imaxdiv.c: New file.
74281
74282 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         New config-h module, so that "make" output needn't be cluttered
74285         by -DHAVE_CONFIG_H.
74286         * MODULES.html.sh (Support for building libraries and executables):
74287         Add config-h.
74288         * modules/config-h: New file.
74289         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74290         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74291         the config-h module is used.
74292
74293         New configmake module, so that "make" output needn't be cluttered
74294         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74295         * MODULES.html.sh (Support for building libraries and executables):
74296         Add configmake.
74297         * modules/configmake: New file.
74298
74299 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74300
74301         * m4/config-h.m4: New file.
74302
74303 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         * config/srclist.txt: Add elisp-comp.
74306
74307 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         * MODULES.html.sh (Support for building libraries and executables):
74310         Add elisp-comp.
74311         * build-aux/elisp-comp: New file.
74312         * modules/elisp-comp: New file.
74313
74314 2006-08-24  Bruno Haible  <bruno@clisp.org>
74315
74316         * gnulib-tool (func_create_testdir): Use non-default values of
74317         sourcebase and m4base.
74318
74319 2006-08-24  Bruno Haible  <bruno@clisp.org>
74320
74321         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74322         HTML structure.
74323
74324 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         * modules/openat (Depends-on): Add lchown.
74327
74328 2006-08-23  Bruno Haible  <bruno@clisp.org>
74329
74330         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74331         of gl_LOCK_EARLY instead of gl_LOCK.
74332
74333 2006-08-23  Bruno Haible  <bruno@clisp.org>
74334
74335         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74336         on OSF/1 to no.
74337         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74338
74339 2006-08-23  Bruno Haible  <bruno@clisp.org>
74340
74341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74342         as unusable.
74343
74344         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74345         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74346         (gl_LOCK): New macro.
74347
74348 2006-08-22  Simon Josefsson  <jas@extundo.com>
74349
74350         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74351         to md5 module.
74352
74353 2006-08-22  Simon Josefsson  <jas@extundo.com>
74354
74355         * MODULES.html.sh: Add "Support for maintaining and release
74356         projects".
74357
74358         * build-aux/gnupload: New file, from coreutils.
74359
74360 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74361
74362         Avoid the need for AC_LIBSOURCES in m4 macros.
74363         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74364         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74365         * modules/check-version (EXTRA_DIST): Add check-version.h.
74366         * modules/crc (EXTRA_DIST): Add crc.h.
74367         * modules/des (EXTRA_DIST): Add des.h.
74368         * modules/gc (EXTRA_DIST): Add gc.h.
74369         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74370         * modules/getline (EXTRA_DIST): Add getline.h.
74371         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74372         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74373         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74374         * modules/md2 (EXTRA_DIST): Add md2.h.
74375         * modules/md4 (EXTRA_DIST): Add md4.h.
74376         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74377         * modules/read-file (EXTRA_DIST): Add read-file.h.
74378         * modules/readline (EXTRA_DIST): Add readline.h.
74379         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74380         rijndael-api-fst.h.
74381
74382 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * m4/rijndael.m4 (gl_ARCFOUR):
74385         * m4/arctwo.m4 (gl_ARCTWO):
74386         * m4/check-version.m4 (gl_CHECK_VERSION):
74387         * m4/crc.m4 (gl_CRC):
74388         * m4/des.m4 (gl_DES):
74389         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74390         * m4/gc.m4 (gl_GC):
74391         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74392         * m4/getline.m4 (gl_FUNC_GETLINE):
74393         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74394         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74395         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74396         * m4/md2.m4 (gl_MD2):
74397         * m4/md4.m4 (gl_MD4):
74398         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74399         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74400         * m4/readline.m4 (gl_FUNC_READLINE):
74401         * m4/rijndael.m4 (gl_RIJNDAEL):
74402         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74403         to get the necessary .h files and whatnot.
74404
74405 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74408         gnulib rather than the other way around.
74409         * config/srclistvars.sh (COREUTILS): Remove.
74410
74411 2006-08-22  Jim Meyering  <jim@meyering.net>
74412
74413         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74414
74415         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74416
74417 2006-08-22  Eric Blake  <ebb9@byu.net>
74418
74419         * modules/regexprops-generic: New file.
74420         * MODULES.html.sh (Support for building documentation): List it.
74421
74422 2006-08-22  Eric Blake  <ebb9@byu.net>
74423
74424         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74425         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74426         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74427         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74428
74429 2006-08-22  Bruno Haible  <bruno@clisp.org>
74430
74431         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74432         and lib_LTLIBRARIES like the other lib_* variables.
74433
74434 2006-08-22  Bruno Haible  <bruno@clisp.org>
74435
74436         * build-aux/x-to-1.in: New file, from GNU gettext.
74437
74438 2006-08-22  Bruno Haible  <bruno@clisp.org>
74439
74440         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74441         <utmpx.h> exists.
74442
74443 2006-08-22  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74446         <utmpx.h> exists.
74447
74448 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         BeOS portability.
74451         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74452         exist.
74453         Problem reported by Bruno Haible.
74454
74455 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         Avoid the need for AC_LIBSOURCES in m4 macros.
74458         * modules/acl (EXTRA_DIST): Add acl.h.
74459         * modules/argmatch (Files): Add m4/argmatch.m4.
74460         (configure.ac): Add gl_ARGMATCH.
74461         (EXTRA_DIST): Renamed from lib_SOURCES, for
74462         consistency with the other modules.  Remove argmatch.c.
74463         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74464         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74465         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74466         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74467         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74468         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74469         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74470         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74471         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74472         * modules/closeout (EXTRA_DIST): Add closeout.h.
74473         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74474         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74475         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74476         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74477         dirname.h; remove basename.c and stripslash.c.
74478         * modules/exclude (EXTRA_DIST): Add exclude.h.
74479         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74480         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74481         * modules/file-type (EXTRA_DIST): Add file-type.h.
74482         * modules/filemode (EXTRA_DIST): Add filemode.h.
74483         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74484         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74485         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74486         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74487         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74488         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74489         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74490         * modules/getdate (EXTRA_DIST): Add getdate.c.
74491         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74492         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74493         * modules/getpass (EXTRA_DIST): Add getpass.h.
74494         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74495         * modules/group-member (EXTRA_DIST): Add group-member.h.
74496         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74497         * modules/hash (EXTRA_DIST): Add hash.h.
74498         * modules/human (EXTRA_DIST): Add human.h.
74499         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74500         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74501         * modules/lchown (EXTRA_DIST): Add lchown.h.
74502         * modules/long-options (EXTRA_DIST): Add long-options.h.
74503         * modules/lstat (EXTRA_DIST): Add lstat.h.
74504         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74505         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74506         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74507         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74508         * modules/memxor (EXTRA_DIST): Add memxor.h.
74509         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74510         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74511         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74512         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74513         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74514         * modules/physmem (EXTRA_DIST): Add physmem.h.
74515         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74516         * modules/posixver (EXTRA_DIST): Add posixver.h.
74517         * modules/quote (EXTRA_DIST): Add quote.h.
74518         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74519         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74520         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74521         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74522         regex_internal.h regexec.c.
74523         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74524         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74525         * modules/same (EXTRA_DIST): Add same.h.
74526         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74527         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74528         * modules/savedir (EXTRA_DIST): Add savedir.h.
74529         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74530         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74531         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74532         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74533         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74534         * modules/strdup (EXTRA_DIST): Add strdup.h.
74535         * modules/strftime (EXTRA_DIST): Add strftime.h.
74536         * modules/strndup (EXTRA_DIST): Add strndup.h.
74537         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74538         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74539         * modules/time_r (EXTRA_DIST): Add time_r.h.
74540         * modules/timespec (EXTRA_DIST): Add timespec.h.
74541         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74542         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74543         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74544         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74545         * modules/userspec (EXTRA_DIST): Add userspec.h.
74546         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74547         * modules/utimens (EXTRA_DIST): Add utimens.h.
74548         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74549         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74550         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74551         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74552         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74553         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74554         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74555         * modules/yesno (EXTRA_DIST): Add yesno.h.
74556
74557 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74560
74561         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74562         * m4/dev-ino.m4, same-inode.m4: Remove.
74563
74564         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74565         * m4/acl.m4 (AC_FUNC_ACL):
74566         * m4/backupfile.m4 (gl_BACKUPFILE):
74567         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74568         * m4/canon-host.m4 (gl_CANON_HOST):
74569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74571         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74572         * m4/cloexec.m4 (gl_CLOEXEC):
74573         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74574         * m4/closeout.m4 (gl_CLOSEOUT):
74575         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74576         * m4/dirname.m4 (gl_DIRNAME):
74577         * m4/exclude.m4 (gl_EXCLUDE):
74578         * m4/exitfail.m4 (gl_EXITFAIL):
74579         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74580         * m4/file-type.m4 (gl_FILE_TYPE):
74581         * m4/filemode.m4 (gl_FILEMODE):
74582         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74583         * m4/fpending.m4 (gl_FUNC_FPENDING):
74584         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74585         * m4/fts.m4 (gl_FUNC_FTS):
74586         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74587         * m4/getdate.m4 (gl_GETDATE):
74588         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74589         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74590         * m4/getpass.m4 (gl_FUNC_GETPASS):
74591         * m4/gettime.m4 (gl_GETTIME):
74592         * m4/getugroups.m4 (gl_GETUGROUPS):
74593         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74594         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74595         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74596         * m4/hash.m4 (gl_HASH):
74597         * m4/idcache.m4 (gl_IDCACHE):
74598         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74599         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74600         * m4/long-options.m4 (gl_LONG_OPTIONS):
74601         * m4/lstat.m4 (gl_FUNC_LSTAT):
74602         * m4/md5.m4 (gl_MD5):
74603         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74604         * m4/memcoll.m4 (gl_MEMCOLL):
74605         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74607         * m4/memxor.m4 (gl_MEMXOR):
74608         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74610         * m4/modechange.m4 (gl_MODECHANGE):
74611         * m4/mountlist.m4 (gl_MOUNTLIST):
74612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74613         * m4/openat.m4 (gl_FUNC_OPENAT):
74614         * m4/pathmax.m4 (gl_PATHMAX):
74615         * m4/physmem.m4 (gl_PHYSMEM):
74616         * m4/posixtm.m4 (gl_POSIXTM):
74617         * m4/posixver.m4 (gl_POSIXVER):
74618         * m4/quote.m4 (gl_QUOTE):
74619         * m4/quotearg.m4 (gl_QUOTEARG):
74620         * m4/readtokens.m4 (gl_READTOKENS):
74621         * m4/readutmp.m4 (gl_READUTMP):
74622         * m4/regex.m4 (gl_REGEX):
74623         * m4/safe-read.m4 (gl_SAFE_READ):
74624         * m4/safe-write.m4 (gl_SAFE_WRITE):
74625         * m4/same.m4 (gl_SAME):
74626         * m4/save-cwd.m4 (gl_SAVE_CWD):
74627         * m4/savedir.m4 (gl_SAVEDIR):
74628         * m4/settime.m4 (gl_SETTIME):
74629         * m4/sha1.m4 (gl_SHA1):
74630         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74631         * m4/stat-macros.m4 (gl_STAT_MACROS):
74632         * m4/stat-time.m4 (gl_STAT_TIME):
74633         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74634         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74635         * m4/strdup.m4 (gl_FUNC_STRDUP):
74636         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74637         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74638         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74639         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74640         * m4/time_r.m4 (gl_TIME_R):
74641         * m4/timespec.m4 (gl_TIMESPEC):
74642         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74643         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74644         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74645         * m4/userspec.m4 (gl_USERSPEC):
74646         * m4/utimecmp.m4 (gl_UTIMECMP):
74647         * m4/utimens.m4 (gl_UTIMENS):
74648         * m4/xalloc.m4 (gl_XALLOC):
74649         * m4/xgetcwd.m4 (gl_XGETCWD):
74650         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74651         * m4/xreadlink.m4 (gl_XREADLINK):
74652         * m4/xstrtod.m4 (gl_XSTRTOD):
74653         * m4/yesno.m4 (gl_YESNO):
74654         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74655         to get the necessary .h files and whatnot.
74656
74657 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74658             Bruno Haible  <bruno@clisp.org>
74659
74660         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74661         /bin/sh understanding of '!' conditional negation.
74662
74663 2006-08-21  Jim Meyering  <jim@meyering.net>
74664
74665         * modules/openat (Depends-on): Really alphabetize.
74666
74667         * modules/acl (Depends-on): Add error and quote.
74668
74669         * check-module (find_included_lib_files): Add at-func.c to the
74670         ok-to-include-more-than-once white list.
74671
74672         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74673
74674 2006-08-21  Bruno Haible  <bruno@clisp.org>
74675
74676         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74677         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74678         Reported by Martin Lambers <marlam@marlam.de>.
74679
74680 2006-08-21  Bruno Haible  <bruno@clisp.org>
74681
74682         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74683         specify an installation location, don't emit a noinst_LIBRARIES or
74684         noinst_LTLIBRARIES assignment.
74685
74686 2006-08-21  Bruno Haible  <bruno@clisp.org>
74687
74688         BeOS portability.
74689         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74690         BeOS has mbrtowc() but no <wctype.h>.
74691
74692 2006-08-21  Bruno Haible  <bruno@clisp.org>
74693
74694         BeOS portability.
74695         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74696         exist.
74697
74698 2006-08-21  Bruno Haible  <bruno@clisp.org>
74699
74700         BeOS portability.
74701         * lib/mbchar.h: Include <wctype.h> only if it exists.
74702
74703 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74704
74705         Remove files that are no longer needed by their respective modules.
74706         * m4/obstack.m4: Remove.
74707         * m4/strerror_r.m4: Remove.
74708         * m4/uint32_t.m4: Remove.
74709         * m4/uintptr_t.m4: Remove.
74710         * m4/ullong_max.m4: Remove.
74711         * m4/xstrtoimax.m4: Remove.
74712         * m4/xstrtoumax.m4: Remove.
74713
74714         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74715         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74716         dependencies now capture this.
74717
74718         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74719         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74720         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74721         * m4/human.m4 (gl_HUMAN): Likewise.
74722         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74723         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74724
74725         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74726
74727         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74728         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74729         stdint.
74730         * m4/human.m4 (gl_HUMAN): Likewise.
74731         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74732         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74733         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74734         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74735         * m4/xstrtol (gl_XSTRTOL): Likewise.
74736
74737         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74738         AC_TYPE_LONG_LONG_INT.
74739         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74740         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74741         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74742         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74743
74744         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74745         on stdbool.
74746
74747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74748         (gl_PREREQ_XSTRTOUL): Remove.
74749
74750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74751
74752         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74753         mode.
74754
74755 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         Add and change modules to make it easier for coreutils to use
74758         gnulib-tool.
74759         * modules/backupfile (Files): Remove m4/d-ino.m4.
74760         (Depends-on): Add d-ino.
74761         * modules/cycle-check (Depends-on): Add stdint.
74762         (lib_SOURCES): Add cycle-check.h.
74763         * modules/d-ino: New module.
74764         * modules/d-type: New module.
74765         * modules/error (Files): Remove m4/strerror_r.m4.
74766         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74767         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74768         m4/inttypes_h.m4, m4/uintmax_t.m4.
74769         (Depends-on): Add stdint.
74770         (lib_SOURCES): Add fsusage.h.
74771         * modules/getcwd (Files): Remove d-ino.m4.
74772         (Depends-on): Add d-ino.
74773         * modules/getndelim2 (Depends-on): Add stdint.
74774         * modules/glob (Files): Remove m4/d-type.m4.
74775         (Depends-on): Add d-type.
74776         * modules/host-os: New module.
74777         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74778         m4/inttypes_h.m4, m4/uintmax_t.m4.
74779         * Depends-on: Add stdint.
74780         (lib_SOURCES): Add human.h.
74781         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74782         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74783         m4/uintmax_t.m4, m4/ulonglong.m4.
74784         (Depends-on): Add stdint.
74785         (EXTRA_DIST): Add inttostr.h.
74786         * modules/lchmod: New module.
74787         * modules/link-follow: New module.
74788         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74789         (Depends-on): Add lchmod.
74790         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74791         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74792         (Depends-on): Add stdint.
74793         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74794         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74795         (Depends-on): Add stdint.
74796         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74797         * modules/perl: New module.
74798         * modules/regex (Depends-on): Add stdint.
74799         * modules/rmdir-errno: New module.
74800         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74801         m4/intmax_t.m4.
74802         (Depends-on): Add stdint.
74803         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74804         m4/uintmax_t.m4.
74805         (Depends-on): Add stdint.
74806         * modules/unlink-busy: New module.
74807         * modules/utimecmp (Depends-on): Add stdint.
74808         * modules/uptime: New module.
74809         * modules/winsz-ioctl: New module.
74810         * modules/winsz-termios: New module.
74811         * modules/xnanosleep (Depends-on): Add nanosleep.
74812         * modules/ullong_max: Remove.
74813         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74814         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74815         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74816         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74817         (Depends-on): Add inttypes.
74818         (lib_SOURCES): Add xstrtol.h.
74819         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74820         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74821         * MODULES.html.sh: Move 'assert' into the assert section.
74822         Move 'dummy' into the linking section.
74823         Remove ullong_max.
74824         Add section for compatibility checks for POSIX:2001 functions,
74825         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74826         winsz-ioctl, and winsz-termios into it.
74827         Add lchmod.
74828         Add top-level Misc section and put host-os, perl, and uptime
74829         into it.
74830
74831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74834         now assume the stdint module.  Do not include inttypes.h.
74835         * lib/fsusage.h: Likewise.
74836         * lib/getndelim2.c: Likewise.
74837         * lib/human.h: Likewise.
74838         * lib/inttostr.h: Likewise.
74839         * lib/obstack.c: Likewise.
74840         * lib/regex_internal.h: Likewise.
74841         * lib/tempname.c: Likewise.
74842         * lib/utimecmp.c: Likewise.
74843         * lib/xstrtol.h: Likewise.
74844
74845         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74846
74847         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74848         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74849         * lib/xtime.h: Likewise.
74850
74851 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         * modules/openat (Files): Add lib/fchmodat.c.
74854         Fixes problem reported by Jay Youngman.
74855
74856 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74859         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74860
74861 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74862             Bruno Haible  <bruno@clisp.org>
74863
74864         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74865         and is a script that invokes bison. Tighten the code. Add comments.
74866
74867 2006-08-18  Jim Meyering  <jim@meyering.net>
74868
74869         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74870         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74871         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74872         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74873
74874 2006-08-18  Bruno Haible  <bruno@clisp.org>
74875
74876         * modules/bison-i18n: New file.
74877         * MODULES.html.sh (Internationalization functions): Add it.
74878
74879 2006-08-18  Bruno Haible  <bruno@clisp.org>
74880
74881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74882         sys/statvfs.h. When getmntinfo was found, check its declaration and
74883         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74884
74885 2006-08-18  Bruno Haible  <bruno@clisp.org>
74886
74887         * m4/bison-i18n.m4: New file, from bison.
74888
74889 2006-08-18  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74892         (ME_DUMMY): Treat "kernfs" as a dummy.
74893         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74894
74895 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         Update from coreutils.
74898
74899         2006-08-15  Jim Meyering  <jim@meyering.net>
74900
74901         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74902
74903         2006-01-17  Jim Meyering  <jim@meyering.net>
74904
74905         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74906
74907         2006-01-11  Jim Meyering  <jim@meyering.net>
74908
74909         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74910         Check for the lchmod function.
74911
74912 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         Update from coreutils.
74915
74916         * lib/__fpending.h: Add copyright notice.
74917         * lib/fprintftime.h: Likewise.
74918         * lib/savedir.c: Use (C) in copyright notice.
74919         * lib/savedir.h: Likewise.
74920
74921         2006-08-15  Jim Meyering  <jim@meyering.net>
74922
74923         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74924         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74925         in support of the EXPECTED_ERRNO macro.
74926         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74927         definitions.  Instead, define the appropriate symbols and include
74928         "at-func.c".
74929         * lib/mkdirat.c (mkdirat): Likewise.
74930         * lib/fchmodat.c (fchmodat): Likewise.
74931         (ENOSYS): Remove definition.
74932         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74933         it.  Don't include "unistd--.h" -- it wasn't ever used.
74934
74935         2006-01-17  Jim Meyering  <jim@meyering.net>
74936
74937         Rewrite fts.c not to change the current working directory,
74938         by using openat, fstatat, fdopendir, etc..
74939
74940         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74941         (HAVE_OPENAT_SUPPORT): Define.
74942         [_LIBC] (fchdir): Don't undef or define; no longer used.
74943         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74944         Now, this `function' always succeeds, and consumes its file descriptor
74945         parameter -- so callers must not close such FDs.  Update callers.
74946         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74947         (diropen): Add parameter, SP.  Adjust all callers.
74948         Implement using diropen_fd, rather than open.
74949         (fts_open): Initialize new member, fts_cwd_fd.
74950         Remove fts_rft-setting code.
74951         (fts_close): Close fts_cwd_fd, if necessary.
74952         (__opendir2): Define in terms of opendir or opendirat,
74953         depending on whether the FST_NOCHDIR flag is set.
74954         (fts_build): Since fts_safe_changedir consumes its FD, and since
74955         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74956         and close the dup'd file descriptor upon failure.
74957         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74958         (fts_safe_changedir): Tweak semantics to reflect that this function
74959         now calls cwd_advance_fd and hence consumes its FD argument.
74960         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74961         [struct FTS] (fts_rft): Remove now-unused member.
74962         [struct FTS] (fts_cycle.state): Improve comment.
74963
74964         * lib/openat.c (openat_needs_fchdir): New function.
74965         * lib/openat.h (openat_needs_fchdir): Declare it.
74966
74967 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74968
74969         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74970         Problem and fix reported by Pádraig Brady in
74971         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74972
74973 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74976
74977 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * lib/memcoll.c (memcoll): Optimize for the common case where the
74980         arguments are bytewise equal.
74981
74982 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * doc/regexprops-generic.texi: Add a copyright notice.
74985
74986 2006-08-15  Bruno Haible  <bruno@clisp.org>
74987
74988         * modules/tmpdir (License): Change to LGPL.
74989
74990 2006-08-15  Bruno Haible  <bruno@clisp.org>
74991
74992         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74993         module.
74994
74995 2006-08-14  Simon Josefsson  <jas@extundo.com>
74996
74997         * config/srclist.txt: Add gnupload.
74998
74999 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         Change copyright notice from LGPL 2 to GPL 2, since that's the
75002         standard form used in the gnulib repository.
75003         * tests/test-lock.c: Likewise.
75004         * tests/test-stdint.c: Likewise.
75005         * tests/test-tls.c: Likewise.
75006
75007         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75008         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75009         Add copyright notice.
75010
75011         * check-module: Add copyright notice.  Output a copyright
75012         notice if "--version" is specified.
75013         * modules/COPYING: New file.
75014         * tests/test-getaddrinfo.c: Add copyright notice.
75015         * tests/test-verify.c: Likewise.
75016
75017 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         Change copyright notice from LGPL 2 to GPL 2, since that's the
75020         standard form used in the gnulib repository.
75021         * lib/lock.c: LGPL -> GPL.
75022         * lib/lock.h: Likewise.
75023         * lib/strnlen1.c: Likewise.
75024         * lib/strnlen1.h: Likewise.
75025         * lib/tls.c: Likewise.
75026         * lib/tls.h: Likewise.
75027         * lib/tmpdir.c: Likewise.
75028
75029         * lib/TODO: Remove; this belongs only in coreutils.
75030
75031 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         Add copyright notices to long-enough files that lack them, since
75034         otherwise the files aren't clearly free.  Use the same notice that
75035         getdate.texi already uses.
75036         * doc/alloca-opt.texi: Add copyright notice.
75037         * doc/alloca.texi: Likewise.
75038         * doc/ctime.texi: Likewise.
75039         * doc/functions.texi: Likewise.
75040         * doc/gcd.texi: Likewise.
75041         * doc/gnulib-tool.texi: Likewise.
75042         * doc/inet_ntoa.texi: Likewise.
75043         * doc/visibility.texi: Likewise.
75044
75045         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75046         * doc/quote.texi: Add copyright notice.
75047
75048         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75049         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75050         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75051         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75052         is now obsolete, and give a pointer to the Sun list.
75053         Add copyright notice.
75054
75055 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * config/srclistvars.sh: Add copyright notice.
75058
75059 2006-08-14  Eric Blake  <ebb9@byu.net>
75060
75061         Import the following change from libc:
75062
75063         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75064
75065         Upstream bug 2997.
75066         * lib/misc/error.c: Add space between program name and message if file
75067         name is missing.
75068
75069 2006-08-12  Karl Berry  <karl@gnu.org>
75070
75071         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75072         remove, these originate in gnulib now.
75073
75074 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75075
75076         * doc/Makefile (standards.info standards.html standards.dvi):
75077         Also depend on make-stds.texi.
75078
75079 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75082         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75083
75084         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75085         in wchar_t.  Problem reported by Eric Blake.
75086
75087         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75088         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75089         Also, help the compiler to keep LEN in a register.
75090
75091 2006-08-11  Eric Blake  <ebb9@byu.net>
75092
75093         * users.txt: Sort.  Add tar.
75094
75095 2006-08-11  Bruno Haible  <bruno@clisp.org>
75096
75097         * users.txt: New file.
75098
75099 2006-08-11  Bruno Haible  <bruno@clisp.org>
75100
75101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75102         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75103
75104 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * modules/snprintf (Depends-on): Remove minmax.
75107         (Maintainer): Add self and Bruno.
75108
75109 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75112         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75113         (EOVERFLOW): Define if the system does not.
75114         Do not include "minmax.h"; it wasn't used.
75115         (snprintf): Don't assume size_t promotes to an unsigned type.
75116         Fix bug when generated string was too long for the buffer: the
75117         buffer's contents are supposed to be the initial prefix of the
75118         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75119         exceeds INT_MAX; do the check ourselves.
75120
75121         Import the following changes from libc:
75122
75123         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75124
75125         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75126         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75127         set wc to the byte which couldn't be converted.
75128         (re_string_reconstruct): Don't clear valid_raw_len before calling
75129         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75130         tip_context using re_string_context_at.
75131
75132         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75133
75134         * lib/posix/regex.h: g++ still cannot handled [restrict].
75135
75136         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75137
75138         * lib/posix/regex.h: Remove special handling for VMS.
75139
75140 2006-08-10  Jim Meyering  <jim@meyering.net>
75141
75142         * modules/same-inode: New module.
75143         * modules/dev-ino: New module.
75144         * modules/cycle-check: Depend on these modules, rather than simply
75145         including their .h files.
75146         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75147         required via m4/cycle-check.m4.
75148         * modules/same: Depend on new same-inode module, rather than
75149         including same-inode.h.
75150         * modules/chdir-safer: New file.
75151
75152         * modules/chown (Depends-on): Add stat-macros.
75153
75154 2006-08-10  Jim Meyering  <jim@meyering.net>
75155
75156         * m4/cycle-check.m4: New file.
75157         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75158         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75159
75160 2006-08-10  Eric Blake  <ebb9@byu.net>
75161
75162         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75163         in from original proposal.
75164
75165 2006-08-10  Eric Blake  <ebb9@byu.net>
75166         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75167
75168         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75169         namespace.
75170
75171 2006-08-10  Bruno Haible  <bruno@clisp.org>
75172
75173         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75174         as well.
75175
75176 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         Sync from coreutils.
75179
75180         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75181
75182         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75183         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75184
75185 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * modules/restrict: Remove; no longer needed now that we assume
75188         Autoconf 2.59 or later.
75189         * MODULES.html.sh: Remove 'restrict'.
75190         * modules/argp (Depends-on): Remove 'restrict'.
75191         * modules/base64 (Depends-on): Likewise.
75192         * modules/gc (Depends-on): Likewise.
75193         * modules/getaddrinfo (Depends-on): Likewise.
75194         * modules/glob (Depends-on): Likewise.
75195         * modules/inet_ntop (Depends-on): Likewise.
75196         * modules/inet_pton (Depends-on): Likewise.
75197         * modules/memxor (Depends-on): Likewise.
75198         * modules/regex (Depends-on): Likewise.
75199         * modules/strtok_r (Depends-on): Likewise.
75200         * modules/time_r (Depends-on): Likewise.
75201
75202 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75205         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75206         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75207         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75208         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75209         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75210         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75211         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75212
75213         Merge from coreutils.
75214         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75215         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75217         * m4/time_r.m4 (gl_TIME_R): Likewise.
75218
75219 2006-08-09  Karl Berry  <karl@gnu.org>
75220
75221         * config/srclist.txt: no more gettext-tools, per Bruno.
75222
75223 2006-08-08  Eric Blake  <ebb9@byu.net>
75224
75225         * modules/verror: New module.
75226         * MODULES.html.sh: Document it.
75227
75228 2006-08-08  Eric Blake  <ebb9@byu.net>
75229
75230         * lib/verror.h, lib/verror.c: New files.
75231
75232 2006-08-08  Eric Blake  <ebb9@byu.net>
75233
75234         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75235         verror_at_line output complies with GNU Coding Standards even when
75236         file is NULL.
75237
75238 2006-08-07  Bruno Haible  <bruno@clisp.org>
75239
75240         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75241         versions of AIX.
75242         Reported by Ralf Wildenhues.
75243
75244 2006-08-07  Bruno Haible  <bruno@clisp.org>
75245
75246         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75247         in an AC_DEFUN. Needed so that the autoconf snippets can use
75248         AC_REQUIRE.
75249
75250 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75251
75252         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75253         Initialize pkgdata_DATA.
75254         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75255         overriding it.
75256
75257 2006-08-06  Eric Blake  <ebb9@byu.net>
75258
75259         * lib/error.h: Fold in some upstream changes from glibc.
75260         * lib/error.c: Likewise.
75261
75262 2006-08-04  Bruno Haible  <bruno@clisp.org>
75263
75264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75265         Make the mostlyclean-local rule depend on mostlyclean-generic.
75266         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75267
75268 2006-07-31  Bruno Haible  <bruno@clisp.org>
75269
75270         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75271         <stdlib.h>, <string.h>.
75272
75273 2006-07-30  Bruno Haible  <bruno@clisp.org>
75274
75275         * modules/readlink (License): Change to LGPL.
75276
75277 2006-07-30  Bruno Haible  <bruno@clisp.org>
75278
75279         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75280         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75281         set PKGDATADIR to point to it.
75282
75283 2006-07-30  Bruno Haible  <bruno@clisp.org>
75284
75285         * modules/csharpexec (configure.ac): Comment out macro invocation.
75286         * modules/javaexec (configure.ac): Likewise.
75287         * modules/javacomp-script (configure.ac): Likewise.
75288
75289         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75290
75291 2006-07-30  Bruno Haible  <bruno@clisp.org>
75292
75293         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75294         linked-list.
75295
75296 2006-07-30  Bruno Haible  <bruno@clisp.org>
75297
75298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75299
75300 2006-07-30  Bruno Haible  <bruno@clisp.org>
75301
75302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75303         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75304         get removed.
75305
75306 2006-07-29  Bruno Haible  <bruno@clisp.org>
75307
75308         Make it possible for gnulib-tool to work with locally modified or
75309         augmented gnulib repositories.
75310         * gnulib-tool (func_usage): Document --local-dir option.
75311         (local_gnulib_dir): New variable.
75312         Handle --local-dir option.
75313         (func_lookup_file): New function.
75314         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75315         (func_get_description, func_get_filelist, func_get_description,
75316         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75317         func_get_automake_snippet, func_get_include_directive,
75318         func_get_license, func_get_maintainer): Use func_lookup_file.
75319         (func_import, func_create_testdir): Use func_lookup_file.
75320
75321 2006-07-29  Bruno Haible  <bruno@clisp.org>
75322
75323         * modules/setenv (Depends-on): Add unistd.
75324
75325 2006-07-29  Bruno Haible  <bruno@clisp.org>
75326
75327         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75328
75329 2006-07-29  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75332
75333 2006-07-29  Bruno Haible  <bruno@clisp.org>
75334
75335         * gnulib-tool (import, update): If there is no Makefile.am, look at
75336         aclocal.m4, instead of bailing out.
75337
75338 2006-07-29  Bruno Haible  <bruno@clisp.org>
75339
75340         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75341         Categorize the options by when they are useful.
75342
75343 2006-07-29  Bruno Haible  <bruno@clisp.org>
75344
75345         * gnulib-tool (func_usage): Document option --no-libtool.
75346         Handle option --no-libtool.
75347         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75348         for changed semantics of $libtool variable.
75349         (func_import): Likewise. If libtool is not used, show this through
75350         an option --no-libtool.
75351         (func_create_testdir): Update.
75352
75353 2006-07-29  Bruno Haible  <bruno@clisp.org>
75354
75355         * gnulib-tool (func_import): Extend error message about missing
75356         --doc-base.
75357
75358 2006-07-29  Bruno Haible  <bruno@clisp.org>
75359
75360         * gnulib-tool (func_import): Don't create the $docbase directory if
75361         there is no file to store there.
75362
75363 2006-07-29  Bruno Haible  <bruno@clisp.org>
75364
75365         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75366         relevant, look for configure.ac there, not in the current directory.
75367         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75368
75369 2006-07-29  Bruno Haible  <bruno@clisp.org>
75370
75371         * gnulib-tool (SORT): New variable.
75372         (func_usage): Undocument --assume-autoconf option.
75373         Remove --assume-autoconf option handling.
75374         (autoconf_minversion): Determine from the contents of configure.ac.
75375         (func_import): Remove autoconf_minversion handling.
75376         Suggested by Eric Blake.
75377
75378 2006-07-29  Bruno Haible  <bruno@clisp.org>
75379
75380         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75381
75382 2006-07-29  Bruno Haible  <bruno@clisp.org>
75383
75384         * config/srclist.txt (*setenv.[ch]): Remove rules.
75385
75386 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75387
75388         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75389
75390 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75391
75392         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75393         arpa/inet.h.
75394
75395 2006-07-28  Simon Josefsson  <jas@extundo.com>
75396
75397         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75398         * modules/inet_pton (Depends-on): Likewise.
75399
75400 2006-07-28  Simon Josefsson  <jas@extundo.com>
75401
75402         * m4/netinet_in_h.m4: New file.
75403
75404 2006-07-28  Simon Josefsson  <jas@extundo.com>
75405
75406         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75407         #include's.
75408
75409 2006-07-28  Simon Josefsson  <jas@extundo.com>
75410
75411         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75412         #include's.
75413
75414 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75417         setgid on directories only if they set these bits.
75418         * lib/modechange.h: Remove obsolete comment about masks.
75419
75420 2006-07-28  Eric Blake  <ebb9@byu.net>
75421
75422         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75423         macro expansion.
75424
75425 2006-07-28  Bruno Haible  <bruno@clisp.org>
75426
75427         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75428
75429 2006-07-28  Bruno Haible  <bruno@clisp.org>
75430
75431         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75432
75433 2006-07-28  Bruno Haible  <bruno@clisp.org>
75434
75435         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75436         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75437         Define fallbacks.
75438         Avoids link error on FreeBSD 4.x.
75439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75440
75441         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75442         encoding.
75443         * lib/mbswidth.c (iswcntrl): Likewise.
75444
75445 2006-07-27  Bruno Haible  <bruno@clisp.org>
75446
75447         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75448         test.
75449
75450 2006-07-27  Bruno Haible  <bruno@clisp.org>
75451
75452         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75453         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75454         defined.
75455
75456 2006-07-26  Eric Blake  <ebb9@byu.net>
75457
75458         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75459
75460 2006-07-26  Eric Blake  <ebb9@byu.net>
75461
75462         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75463         like mingw that lack mkstemp.
75464         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75465         avoid compilation warning on mingw.
75466
75467 2006-07-26  Bruno Haible  <bruno@clisp.org>
75468
75469         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75470         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75471         INT_FAST*_MIN, INTPTR_MIN.
75472
75473 2006-07-25  Bruno Haible  <bruno@clisp.org>
75474
75475         * modules/version-etc (Depends-on): Add stdarg.
75476
75477 2006-07-25  Bruno Haible  <bruno@clisp.org>
75478
75479         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75480         complex commands.
75481
75482 2006-07-25  Bruno Haible  <bruno@clisp.org>
75483
75484         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75485         defined in <stdarg.h> or config.h.
75486
75487 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75490         (gl_STDIO_SAFER): Remove.
75491
75492 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * MODULES.html.sh (File stream based Input/Output):
75495         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75496         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75497         * modules/fopen-safer, modules/tmpfile-safer: New files.
75498         * modules/stdio-safer: Remove.
75499
75500 2006-07-24  Bruno Haible  <bruno@clisp.org>
75501
75502         * modules/tmpdir: New file.
75503         * MODULES.html.sh (File system functions): Add it.
75504
75505 2006-07-24  Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75508         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75509
75510 2006-07-24  Bruno Haible  <bruno@clisp.org>
75511
75512         * modules/clean-temp: New file.
75513
75514 2006-07-24  Bruno Haible  <bruno@clisp.org>
75515
75516         * m4/tmpdir.m4: New file, from GNU gettext.
75517
75518 2006-07-24  Bruno Haible  <bruno@clisp.org>
75519
75520         * lib/tmpdir.h: New file, from GNU gettext.
75521         * lib/tmpdir.c: New file, from GNU gettext.
75522
75523 2006-07-24  Bruno Haible  <bruno@clisp.org>
75524
75525         * lib/clean-temp.h: New file, from GNU gettext.
75526         * lib/clean-temp.c: New file, from GNU gettext.
75527
75528 2006-07-23  Eric Blake  <ebb9@byu.net>
75529
75530         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75531         (Depends-on): Add binary-io.
75532
75533 2006-07-23  Eric Blake  <ebb9@byu.net>
75534
75535         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75536
75537 2006-07-23  Eric Blake  <ebb9@byu.net>
75538
75539         * lib/tmpfile-safer.c: New file.
75540         * lib/stdio-safer.h (fopen_safer): Add prototype.
75541         * lib/stdio--.h (tmpfile): Make safer.
75542
75543 2006-07-23  Bruno Haible  <bruno@clisp.org>
75544
75545         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75546         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75547         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75548         gl_linked_remove_at): Use it.
75549
75550 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75551         and Simon Josefsson <jas@extundo.com>
75552
75553         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75554
75555         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75556
75557 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         * modules/close-stream: New file.
75560         * modules/closeout (Description): Make it clear that it exits
75561         with a diagnostic on error.
75562         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75563         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75564
75565 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75566
75567         * m4/close-stream.m4: New file.
75568
75569 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         * lib/close-stream.c, lib/close-stream.h: New files.
75572
75573 2006-07-22  Bruno Haible  <bruno@clisp.org>
75574
75575         Merge from GNU gettext 0.15.
75576
75577         2006-05-01  Bruno Haible  <bruno@clisp.org>
75578
75579                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75580
75581         2006-07-22  Bruno Haible  <bruno@clisp.org>
75582
75583                 * modules/javaversion: New file.
75584                 * MODULES.html.sh (Java): Add javaversion.
75585
75586         2006-03-12  Bruno Haible  <bruno@clisp.org>
75587
75588                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75589
75590         2005-12-04  Bruno Haible  <bruno@clisp.org>
75591
75592                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75593                 (untested).
75594
75595         2006-06-21  Bruno Haible  <bruno@clisp.org>
75596
75597                 Avoid warnings from recent versions of mcs.
75598                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75599                 -o, -L, -r any more. Use options documented since mcs-1.0
75600                 instead. Similarly for -g.
75601
75602         2005-12-04  Bruno Haible  <bruno@clisp.org>
75603
75604                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75605                 .resources, not .resource.
75606
75607         2005-07-09  Bruno Haible  <bruno@clisp.org>
75608
75609                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75610                 add a .dll suffix.
75611                 Reported by Mark Junker <mjscod@gmx.de>.
75612
75613         2006-07-22  Bruno Haible  <bruno@clisp.org>
75614
75615                 * modules/gettext: Upgrade to gettext-0.15.
75616                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75617                 m4/visibility.m4.
75618                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75619
75620 2006-07-22  Bruno Haible  <bruno@clisp.org>
75621
75622         Merge from GNU gettext 0.15.
75623
75624         2006-03-25  Bruno Haible  <bruno@clisp.org>
75625
75626                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75627
75628         2006-07-21  Bruno Haible  <bruno@clisp.org>
75629
75630                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75631                 "1.1".
75632
75633         2006-05-09  Bruno Haible  <bruno@clisp.org>
75634
75635                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75636                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75637                 for the conftestver execution.
75638
75639         2006-05-01  Bruno Haible  <bruno@clisp.org>
75640
75641                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75642                 optional target-version argument. Verify that the compiler
75643                 groks source of the specified source-version, or add -source
75644                 option as necessary. Verify that the compiler produces
75645                 bytecode in the specified target-version, or add -target and
75646                 -source options as necessary. Make the result of the test
75647                 available as variable CONF_JAVAC. Also log error output in
75648                 config.log.
75649
75650         2006-03-11  Bruno Haible  <bruno@clisp.org>
75651
75652                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75653
75654         2006-05-09  Bruno Haible  <bruno@clisp.org>
75655
75656                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75657                 CLASSPATH_SEPARATOR to a semicolon.
75658
75659         2006-03-12  Bruno Haible  <bruno@clisp.org>
75660
75661                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75662                 available as variable CONF_JAVA, for subsequent autoconf
75663                 tests. Also log error output in config.log.
75664
75665         2006-07-19  Bruno Haible  <bruno@clisp.org>
75666
75667                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75668                 that getline works on glibc2 systems. Needed to avoid trouble
75669                 in relocatable.c.
75670                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75671
75672         2005-12-04  Bruno Haible  <bruno@clisp.org>
75673
75674                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75675                 launcher (untested).
75676
75677         2005-12-04  Bruno Haible  <bruno@clisp.org>
75678
75679                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75680
75681         2006-07-22  Bruno Haible  <bruno@clisp.org>
75682
75683                 * gettext.m4: Update from GNU gettext-0.15.
75684                 * nls.m4: Likewise.
75685                 * po.m4: Likewise.
75686                 * inttypes-pri.m4: Likewise.
75687                 * inttypes-h.m4: Renamed from inttypes.m4.
75688                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75689
75690 2006-07-22  Bruno Haible  <bruno@clisp.org>
75691
75692         Merge from GNU gettext 0.15.
75693
75694         2005-07-05  Bruno Haible  <bruno@clisp.org>
75695
75696                 * printf-args.c (printf_fetchargs): Work around broken
75697                 definition of wint_t on mingw.
75698
75699         2005-02-12  Bruno Haible  <bruno@clisp.org>
75700
75701                 * xallocsa.h: Add extern "C" for C++.
75702
75703         2006-05-17  Bruno Haible  <bruno@clisp.org>
75704
75705                 Cygwin portability.
75706                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75707
75708         2006-04-30  Bruno Haible  <bruno@clisp.org>
75709
75710                 * progreloc.c: Include <mach-o/dyld.h> if available.
75711                 (find_executable): Use _NSGetExecutablePath when possible.
75712
75713         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75714
75715                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75716                 function.
75717
75718         2005-12-29  Bruno Haible  <bruno@clisp.org>
75719
75720                 * progreloc.c (set_program_name_and_installdir): Fix
75721                 compilation error.
75722
75723         2005-12-04  Bruno Haible  <bruno@clisp.org>
75724
75725                 Cygwin portability.
75726                 * progreloc.c: Include <windows.h> also on Cygwin.
75727                 (find_executable): Add support for Cygwin.
75728                 (set_program_name_and_installdir): Handle also platforms with
75729                 nonempty EXEEXT.
75730
75731         2006-07-11  Bruno Haible  <bruno@clisp.org>
75732
75733                 * javacomp.c: Fix a comment.
75734                 Reported by Jim Meyering.
75735
75736         2006-04-30  Bruno Haible  <bruno@clisp.org>
75737
75738                 * javacomp.h (compile_java_class): Add source_version,
75739                 target_version arguments.
75740                 * javacomp.c: Rewritten to choose only a compiler that
75741                 respects the specified source_version and target_version.
75742
75743         2006-06-27  Bruno Haible  <bruno@clisp.org>
75744
75745                 Assume correct S_ISDIR macro.
75746                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75747
75748         2006-07-22  Bruno Haible  <bruno@clisp.org>
75749
75750                 * javaversion.h: New file, from GNU gettext.
75751                 * javaversion.c: New file, from GNU gettext.
75752                 * javaversion.java: New file, from GNU gettext.
75753                 * javaversion.class: New file, from GNU gettext.
75754
75755         2006-05-17  Bruno Haible  <bruno@clisp.org>
75756
75757                 Cygwin portability.
75758                 * javaexec.c (execute_java_class): Test for jview program
75759                 also on Cygwin.
75760
75761         2006-04-09  Bruno Haible  <bruno@clisp.org>
75762
75763                 * fatal-signal.c: Don't include string.h.
75764                 (at_fatal_signal): Use a copying loop instead of memcpy.
75765
75766         2005-12-04  Bruno Haible  <bruno@clisp.org>
75767
75768                 * csharpexec.c: Add support for 'clix' launcher (untested).
75769                 (execute_csharp_using_sscli): New function.
75770                 (execute_csharp_program): Call it.
75771
75772         2006-06-21  Bruno Haible  <bruno@clisp.org>
75773
75774                 Avoid warnings from recent versions of mcs.
75775                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75776                 -o, -L, -r any more. Use options documented since mcs-1.0
75777                 instead. Similarly for -g.
75778
75779         2005-07-09  Bruno Haible  <bruno@clisp.org>
75780
75781                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75782                 add a .dll suffix.
75783                 Reported by Mark Junker <mjscod@gmx.de>.
75784
75785         2006-06-17  Bruno Haible  <bruno@clisp.org>
75786
75787                 * config.charset: Update for NetBSD 3.0.
75788
75789         2006-05-17  Bruno Haible  <bruno@clisp.org>
75790
75791                 Cygwin portability.
75792                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75793
75794         2006-05-16  Bruno Haible  <bruno@clisp.org>
75795
75796                 * localcharset.c [CYGWIN]: Include <windows.h>.
75797                 (get_charset_aliases): For Cygwin, return the same CPxxx
75798                 aliases list as under WIN32.
75799                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75800                 the environment variables. Fall back to GetACP().
75801
75802         2006-04-05  Bruno Haible  <bruno@clisp.org>
75803
75804                 * config.charset: Update Juan Manuel Guerrero's address.
75805
75806         2005-02-12  Bruno Haible  <bruno@clisp.org>
75807
75808                 * allocsa.h: Add extern "C" for C++.
75809
75810         2005-02-10  Bruno Haible  <bruno@clisp.org>
75811
75812                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75813                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75814
75815         2006-07-22  Bruno Haible  <bruno@clisp.org>
75816
75817                 * gettext.h: Update to GNU gettext-0.15.
75818
75819 2006-07-22  Bruno Haible  <bruno@clisp.org>
75820
75821         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75822         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75823         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75824
75825 2006-07-21  Eric Blake  <ebb9@byu.net>
75826
75827         * modules/stdlib-safer: New file.
75828         * MODULES.html.sh (File stream based Input/Output): Add
75829         stdlib-safer.
75830
75831 2006-07-21  Eric Blake  <ebb9@byu.net>
75832
75833         * lib/stdlib-safer.h: New file from coreutils, required by
75834         stdlib--.h.
75835
75836 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75839
75840 2006-07-20  Bruno Haible  <bruno@clisp.org>
75841
75842         * gnulib-tool: Recognize new option --assume-autoconf.
75843         (autoconf_minversion): New variable.
75844         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75845
75846 2006-07-20  Bruno Haible  <bruno@clisp.org>
75847
75848         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75849
75850 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75851
75852         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75853         Reindent and repaginate.
75854
75855 2006-07-19  Derek Price  <derek@ximbiot.com>
75856
75857         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75858         Correct grammar.
75859
75860 2006-07-17  Bruno Haible  <bruno@clisp.org>
75861
75862         * modules/list: New file.
75863         * modules/array-list: New file.
75864         * modules/carray-list, modules/carray-list-tests: New files.
75865         * modules/linked-list, modules/linked-list-tests: New files.
75866         * modules/avltree-list, modules/avltree-list-tests: New files.
75867         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75868         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75869         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75870         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75871         * modules/oset: New file.
75872         * modules/array-oset: New file.
75873         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75874         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75875         * tests/test-carray_list.c: New file.
75876         * tests/test-linked_list.c: New file.
75877         * tests/test-avltree_list.c: New file.
75878         * tests/test-rbtree_list.c: New file.
75879         * tests/test-linkedhash_list.c: New file.
75880         * tests/test-avltreehash_list.c: New file.
75881         * tests/test-rbtreehash_list.c: New file.
75882         * tests/test-avltree_oset.c: New file.
75883         * tests/test-rbtree_oset.c: New file.
75884         * MODULES.html.sh (Container data structures): New section.
75885
75886 2006-07-17  Bruno Haible  <bruno@clisp.org>
75887
75888         * m4/gl_list.m4: New file.
75889
75890 2006-07-17  Bruno Haible  <bruno@clisp.org>
75891
75892         * lib/gl_list.h: New file.
75893         * lib/gl_list.c: New file.
75894         * lib/gl_array_list.h: New file.
75895         * lib/gl_array_list.c: New file.
75896         * lib/gl_carray_list.h: New file.
75897         * lib/gl_carray_list.c: New file.
75898         * lib/gl_linked_list.h: New file.
75899         * lib/gl_linked_list.c: New file.
75900         * lib/gl_anylinked_list1.h: New file.
75901         * lib/gl_anylinked_list2.h: New file.
75902         * lib/gl_avltree_list.h: New file.
75903         * lib/gl_avltree_list.c: New file.
75904         * lib/gl_anyavltree_list1.h: New file.
75905         * lib/gl_anyavltree_list2.h: New file.
75906         * lib/gl_rbtree_list.h: New file.
75907         * lib/gl_rbtree_list.c: New file.
75908         * lib/gl_anyrbtree_list1.h: New file.
75909         * lib/gl_anyrbtree_list2.h: New file.
75910         * lib/gl_anytree_list1.h: New file.
75911         * lib/gl_anytree_list2.h: New file.
75912         * lib/gl_linkedhash_list.h: New file.
75913         * lib/gl_linkedhash_list.c: New file.
75914         * lib/gl_anyhash_list1.h: New file.
75915         * lib/gl_anyhash_list2.h: New file.
75916         * lib/gl_avltreehash_list.h: New file.
75917         * lib/gl_avltreehash_list.c: New file.
75918         * lib/gl_rbtreehash_list.h: New file.
75919         * lib/gl_rbtreehash_list.c: New file.
75920         * lib/gl_anytreehash_list1.h: New file.
75921         * lib/gl_anytreehash_list2.h: New file.
75922
75923         * lib/gl_oset.h: New file.
75924         * lib/gl_oset.c: New file.
75925         * lib/gl_array_oset.h: New file.
75926         * lib/gl_array_oset.c: New file.
75927         * lib/gl_avltree_oset.h: New file.
75928         * lib/gl_avltree_oset.c: New file.
75929         * lib/gl_rbtree_oset.h: New file.
75930         * lib/gl_rbtree_oset.c: New file.
75931         * lib/gl_anytree_oset.h: New file.
75932
75933 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * m4/mkancesdirs.m4: New file.
75936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75937         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75938         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75939         it.
75940
75941 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75944         * lib/mkancesdirs.h: New files.
75945         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75946         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75947         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75948         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75949         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75950         callers changed.  Revamp internals significantly, by not
75951         attempting to create directories that are temporarily more
75952         permissive than the final results.  Do not attempt to use
75953         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75954         This removes some race conditions, fixes some bugs, and simplifies
75955         things.  Use new dirchownmod function to do owner and mode changes.
75956         * lib/mkdir-p.h: Likewise.
75957         * lib/modechange.c (octal_to_mode): New function.
75958         (struct mode_change): New member mentioned.
75959         (make_node_op_equals): New arg mentioned.  All callers changed.
75960         (mode_compile): Keep track of which mode bits the user has explicitly
75961         mentioned.
75962         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75963         New arg PMODE_BITS, to keep track of which mode bits the user
75964         mentioned; it treats S_ISUID and S_ISGID speciall.
75965         All callers changed.
75966         * lib/modechange.h: Likewise.
75967
75968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         * MODULES.html.sh: Add mkancestors.
75971         * modules/mkancesdirs: New module.
75972         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75973         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75974         The chdir-safer and afs files are now orphans; I'll remove them
75975         unless someone speaks up.
75976         Add lib/dirchownmod.c, lib/dirchownmod.h.
75977         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75978         Add lchown, mkancesdirs.
75979         (Maintainer): Add self.
75980
75981 2006-07-15  Karl Berry  <karl@gnu.org>
75982
75983         * gnulib-tool: help message wording/arrangement.
75984
75985 2006-07-14  Simon Josefsson  <jas@extundo.com>
75986
75987         * doc/gnulib.texi (Libtool and Windows): New section.
75988
75989 2006-07-12  Simon Josefsson  <jas@extundo.com>
75990
75991         * modules/gendocs (License): Fix license, approved by Karl.
75992
75993 2006-07-12  Eric Blake  <ebb9@byu.net>
75994
75995         * MODULES.html.sh: Add gendocs.
75996
75997 2006-07-11  Eric Blake  <ebb9@byu.net>
75998
75999         * modules/fdl: New module, to install doc/fdl.texi.
76000         * MODULES.html.sh: Add new section for documentation modules.
76001         * gnulib-tool: Avoid space-tab.
76002         (--doc-base): New option, to manage files from doc.
76003
76004 2006-07-11  Eric Blake  <ebb9@byu.net>
76005
76006         * m4/absolute-header.m4: Fix comments to match recent change.
76007
76008 2006-07-11  Eric Blake  <ebb9@byu.net>
76009
76010         * gnulib-tool: List --doc-base before --tests-base.
76011
76012 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76013
76014         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76015
76016 2006-07-11  Bruno Haible  <bruno@clisp.org>
76017
76018         * README: Mention where to put documentation.
76019
76020 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76021
76022         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76023
76024 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76025
76026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76027         to stdint.m4.
76028
76029 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76032         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76033         "no/such/file/stdint.h" when there is no such file, so that
76034         the resulting C code can be parsed by dodgy compilers.
76035         Problems reported by Bob Proulx.
76036
76037 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76038
76039         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76040         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76041         macros into the GNU _D_EXACT_NAMLEN.
76042         * lib/savedir.c:  Likewise.
76043         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76044
76045 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76046         and Paul Eggert  <eggert@cs.ucla.edu>
76047
76048         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76049         * m4/savedir.m4:
76050         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76051         macros into the GNU _D_EXACT_NAMLEN.
76052
76053 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76056         around the absolute name, to work around a problem with the HP-UX
76057         11.23 native C compiler, reported by Bob Proulx.
76058
76059 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76060
76061         * doc/maintain.texi, make-stds.texi: Sync from
76062         <http://savannah.gnu.org/projects/gnustandards>.
76063
76064 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76065
76066         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76067
76068 2006-07-09  Jim Meyering  <jim@meyering.net>
76069
76070         * m4/glob.m4: Remove a doubled word in a comment.
76071
76072 2006-07-09  Jim Meyering  <jim@meyering.net>
76073
76074         * lib/argp-pv.c: Remove a doubled word in a comment.
76075         * lib/check-version.c (check_version): Likewise.
76076         * lib/javacomp.c (compile_java_class): Likewise.
76077
76078 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76081         for the benefit of people using Autoconf 2.60.  If you want to
76082         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76083         (or m4/onceonly.m4, if pre-2.57) manually.
76084
76085 2006-07-08  Jim Meyering  <jim@meyering.net>
76086
76087         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76088         comment.
76089         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76090         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76091         comment.
76092
76093 2006-07-08  Jim Meyering  <jim@meyering.net>
76094
76095         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76096
76097 2006-07-07  Simon Josefsson  <jas@extundo.com>
76098
76099         * tests/test-crc.c: Change expected crc value, the test vector
76100         were probably computed using the old broken crc.c?
76101
76102 2006-07-06  Simon Josefsson  <jas@extundo.com>
76103
76104         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76105         now the canonical place for the M4 file).
76106
76107         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76108         from the sys_socket dependency now.
76109
76110         * modules/inet_pton (Files): Ditto.
76111
76112         * modules/inet_ntop (Files): Ditto.
76113
76114 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76115
76116         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76117         not gl_PREREQ_GETUSERSHELL.
76118
76119 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76120
76121         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76122         with only one argument, for Autoconf 2.60.
76123         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76124         expand to nothing, so add a shell command to avoid syntax error.
76125         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76126
76127 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76128
76129         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76130
76131 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76134         no longer needed.  Check for isblank decl.
76135         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76136         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76137         of existence.
76138
76139 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * lib/getloadavg.c: Use __VMS, not VMS.
76142         * lib/getopt.c: Likewise.
76143         * lib/getpagesize.h: Likewise.
76144         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76145         and probably does not work.
76146
76147 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * lib/.cppi-disable: Add wcwidth.
76150         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76151         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76152         (ISGRAPH): Remove.  All uses changed to isgraph.
76153         (FOLD) [!defined _LIBC]: Remove special case.
76154         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76155         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76156         HAVE_ISBLANK.
76157         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76158         case.
76159
76160 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76161
76162         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76163         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76164         brackets.  Other minor changes to suppress some compiler
76165         warnings.
76166
76167 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76168         and Paul Eggert  <eggert@cs.ucla.edu>
76169
76170         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76171         of invoking obsolescent AC_HEADER_DIRENT macro.
76172         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76173         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76175         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76176         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76177         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76178         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76179         * m4/readdir.m4: Remove; no longer needed.
76180
76181 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76182         and Paul Eggert  <eggert@cs.ucla.edu>
76183
76184         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76185         Don't worry about this obsolete case any more.
76186         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76187         directories.
76188         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76189         worry about this obsolete case any more.
76190         * lib/fts.c: Likewise.
76191         * lib/getcwd.c: Likewise.
76192         * lib/glob.h: Likewise.
76193         * lib/savedir.c: Likewise.
76194
76195 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76198         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76199         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76200         needed.
76201         All uses removed.
76202         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76203         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76204         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76205         needed.
76206         * m4/getdate.m4 (gl_GETDATE): Likewise.
76207         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76208         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76209         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76210         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76211         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76213         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76214         needed.
76215
76216 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * lib/memcasecmp.c: Include <limits.h>.
76219         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76220         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76221         Don't assume isdigit succeeds only on '0' through '9'.
76222
76223 2006-07-05  Eric Blake  <ebb9@byu.net>
76224
76225         * modules/getaddrinfo (Depends-on): Add snprintf.
76226
76227 2006-07-05  Eric Blake  <ebb9@byu.net>
76228
76229         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76230         to avoid 'header present but could not be compiled' on cygwin.
76231
76232 2006-07-05  Eric Blake  <ebb9@byu.net>
76233
76234         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76235         missing from netdb.h.
76236         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76237
76238 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76239
76240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76241         no longer needed.
76242         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76243         * m4/getdate.m4 (gl_GETDATE): Likewise.
76244         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76245         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76246         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76247         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76248         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76249
76250 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76251
76252         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76253         All uses of is_space replaced by isspace.
76254         * lib/exit.h: Don't talk about STDC_HEADERS.
76255         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76256         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76257         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76258         replaced by isprint etc.
76259         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76260         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76261         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76262         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76263         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76264         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76265
76266 2006-07-05  Bruno Haible  <bruno@clisp.org>
76267
76268         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76269         the function exists, before testing against AIX.
76270         Reported by Martin Lambers <marlam@marlam.de>.
76271
76272 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76275         From Mark D. Baushke.
76276
76277 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76280         to the absolute name, not just one, to bypass Sun C 5.8's
76281         "warning: #include of /usr/include/... may be non-portable".
76282
76283 2006-07-04  Eric Blake  <ebb9@byu.net>
76284
76285         * modules/dirname-tests: New test module.
76286         * tests/test-dirname.c: New file, replacing dirname.c
76287         TEST_DIRNAME section that was recently deleted.
76288
76289 2006-07-04  Bruno Haible  <bruno@clisp.org>
76290
76291         Assume ANSI C header files and <ctype.h> functions.
76292         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76293         (mbsnwidth): Use isprint, iscntrl instead.
76294
76295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         Merge from coreutils.
76298         * MODULES.html.sh: Add xstrtold.
76299         * modules/xstrtold: New file.
76300         * modules/cycle-check (Files): Add lib/same-inode.h.
76301         * modules/dirname (Files): Add m4/double-slash-root.m4.
76302         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76303         * modules/mkdir-p (Files): Add lib/same-inode.h.
76304         * modules/same (Files): Add lib/same-inode.h.
76305
76306 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76309         This is to keep the terminology clean; POSIX talks about
76310         "absolute pathnames", not "full pathnames", but the GNU
76311         Coding Standards say to use "path" for something else;
76312         so use "absolute" to keep both sides happy.
76313         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76314         Set gl_absolute_header, not gl_full_header_path.
76315         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76316         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76317         All uses changed.
76318
76319         Merge from coreutils.
76320
76321         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76324         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76325         want to require the building of c-strtod.o.
76326         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76327         needs -lm directly.
76328         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76329
76330         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76331
76332         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76333         --as-needed option if available.  Problem reported by Albert Chin in
76334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76335         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76336         cc merely issues a bunch of annoying warnings for --as-needed
76337         (this problem was reported by Bob Proulx).  Also, try linking with
76338         -lm to detect a bug in binutils 2.16 (this problem was reported
76339         by Ralf Wildenhues).
76340
76341         2006-06-18  Jim Meyering  <jim@meyering.net>
76342
76343         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76344         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76345         macro.
76346         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76347         also check for glibc-2.4's abort-inducing bug.
76348
76349         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76350         Low-probability clean-up should be to use rmdir to get rid of
76351         the just-created directory, not unlink.
76352
76353         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76354         configure fail, and request a bug report to inform us about it.
76355         Add a comment that, barring reports to the contrary, in 2007 we'll
76356         assume ftruncate is universally available.
76357
76358         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76359
76360         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76361
76362         2006-03-12  Jim Meyering  <jim@meyering.net>
76363
76364         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76365         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76366         * m4/same.m4 (gl_SAME): Likewise.
76367         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76368
76369         2006-03-11  Eric Blake  <ebb9@byu.net>
76370
76371         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76372         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76373         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76374         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76375
76376 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76377
76378         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76379         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76380         reported by Mark D. Baushke, one in
76381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76382
76383         Merge from coreutils.
76384
76385         * lib/.cppi-disable: Add stdint_.h.
76386         * lib/.cvsignore: Add stdint.h.
76387
76388         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76391         both double and long double versions.
76392         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76393         * lib/xstrtold.c: New file.
76394         * lib/xstrtod.h (xstrtold): New decl.
76395
76396         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * lib/filemode.c (setst): Remove.
76399         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76400         (arguably) clearer, and the generated code is a bit smaller on my
76401         Debian GNU/Linux stable x86 host.
76402
76403         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76404
76405         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76406         Assume that filemode.h includes sys/types.h and sys/stat.h.
76407         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76408         (ftypelet): Reorder to put common cases first, for efficiency.
76409         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76410         to do 'M'.
76411         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76412         of 10, for compatibility with FreeBSD.  All callers changed.
76413         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76414         types that can't be deduced solely from st_mode.  First arg is now a
76415         const pointer.
76416         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76417         (strmode): Renamed from mode_string.
76418         (filemodestring): New decl.
76419         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76420         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76421         needed.
76422         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76423
76424         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76427         fsusage.h now does that.  Include fsusage.h first, to test interface.
76428         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76429         at most one method (the old code could have generated decls that
76430         didn't conform to C89, not that this was ever exercised).
76431         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76432
76433         2006-03-19  Jim Meyering  <jim@meyering.net>
76434
76435         Work even in a chroot where d_ino values for entries in "/"
76436         don't match the stat.st_ino values for the same names.
76437         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76438         number, iterate through all entries again, using lstat instead.
76439         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76440         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76441
76442         * lib/getcwd.c (__getcwd): Clarify a comment.
76443         Use memcpy in place of a call to strcpy.
76444
76445         2006-03-12  Jim Meyering  <jim@meyering.net>
76446
76447         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76448         matches that of the current directory (which we're about to chdir ".."
76449         out of), then save the dev-ino of the parent, instead.
76450
76451         * lib/same-inode.h (SAME_INODE): New file/macro.
76452         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76453         Include "same-inode.h", instead.
76454         * lib/same.c: Likewise.
76455         * lib/cycle-check.h: Include "same-inode.h".
76456         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76457         * lib/cycle-check.c (SAME_INODE): Remove definition.
76458         * lib/root-dev-ino.h: Include "same-inode.h".
76459
76460         2006-03-11  Eric Blake  <ebb9@byu.net>
76461
76462         * lib/same.c (same_name): s/base_name/last_component/
76463         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76464         * lib/filenamecat.c (file_name_concat): Likewise.
76465
76466         2006-03-11  Eric Blake  <ebb9@byu.net>,
76467                     Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76470         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76471         drive prefix.
76472         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76473         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76474         (last_component): New method.
76475         * lib/dirname.c (dir_len): Determine when drive letters need a
76476         subsequent slash.  Preserve // when it is special.
76477         (dir_name): Don't append dot when drive letter is absolute.
76478         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76479         * lib/basename.c (base_name): New semantics - malloc the result.
76480         Preserve // when it is special.  Preserve relative files that look
76481         like drive letters.
76482         (base_len): Preserve // when it is special.
76483         (last_component): New method, similar to old base_name semantics.
76484         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76485         base_name.  Strip redundant slashes from ///.
76486
76487 2006-07-03  Jim Meyering  <jim@meyering.net>
76488
76489         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76490         macro is used before the first cycle_check call.
76491
76492 2006-07-03  Eric Blake  <ebb9@byu.net>
76493
76494         * modules/dirname (Depends-on): Add xstrndup.
76495
76496 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76499         test cases, so that config.log is a bit easier to follow.
76500
76501 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76504         both are 64 bits, since this seems to be the tradition, and this
76505         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76506         we ever run into a host that prefers long long to long in this
76507         case, we'll need another configure-time test.  Problem reported by
76508         Jim Meyering.
76509
76510 2006-07-02  Eric Blake  <ebb9@byu.net>
76511
76512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76513
76514 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76515
76516         * modules/inttypes (Depends-on): No longer depends on stdint.
76517         * modules/stdint (Description): Say more about assumptions.
76518         Say that the fast types might differ.  Say macros are used.
76519         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76520         (Makefile.am): Revise list of substituted symbols to match
76521         new stdint.m4.
76522         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76523         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76524         * tests/test-stdint.c (verify_same_types)
76525         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76526         the code conforms to C99/C89.
76527         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76528         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76529
76530 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76533         but fix a bug, by requiring at least 64 bits.
76534         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76535         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76536         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76537         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76538
76539         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76540         changes.  Make 2.59 a prerequisite.  Check and substitute for
76541         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76542         inttypes.h.  Do not use special include files; just use the
76543         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76544         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76545         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76546         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76547         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76548         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76549         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76550         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76551         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76552         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76553         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76554         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76555         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76556         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76557         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76558         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76559         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76560         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76561         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76562         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76563         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76564         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76565         not check for things that C99 does not require, e.g., int8_t.  If
76566         a test isn't needed unless <stdint.h> isn't working, and is
76567         unlikely to be needed for any other reason, then don't do it
76568         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76569         size_t, since we assume C89 freestanding at least.  Do not check
76570         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76571         the right thing even if the types are not defined.  Instead use:
76572         (gl_STDINT_TYPE_PROPERTIES): New macro.
76573         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76574         testing whether <sys/types.h> clashes, as Autoconf does this for
76575         us now.  All uses removed.
76576         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76577         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76578         (gl_CHECK_TYPE_SAME):
76579         Remove; no longer needed.
76580         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76581         exists, since we'll return 0 anyway in that case.
76582         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76583
76584 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76585
76586         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76587         possible collision with system files.
76588         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76589         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76590         WCHAR_MIN and WCHAR_MAX in this case.
76591         (<stddef.h>): Do not include; no longer needed.
76592         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76593         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76594         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76595         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76596         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76597         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76598         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76599         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76600         !defined(__c99))]: Include in this case too, since it's harmless
76601         now.
76602         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76603         dangerous to do so.
76604         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76605         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76606         (_STDINT_MIN, _STDINT_MAX): New macros.
76607         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76608         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76609         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76610         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76611         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76612         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76613         macros, not typedefs; this simplifies things quite a bit.
76614         Use long int for all types narrower than int64_t.
76615         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76616         Define in terms of long long int or int64_t or long int,
76617         not int64_t or int32_t.  This saves some compile-time testing.
76618         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76619         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76620         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76621         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76622         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76623         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76624         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76625         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76626         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76627         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76628         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76629         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76630         undef any previous version and define our own version, for
76631         simplicity and consistency with the new macros for types.
76632         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76633         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76634         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76635         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76636         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76637         @WINT_T_SUFFIX@ to keep things simple here.
76638         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76639         Simplify by assuming typical 8/16/32/64 host, since we're
76640         already doing that elsewhere anyway.
76641         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76642         and assume long long int is 64 bits if available.  This
76643         speeds up 'configure'.
76644
76645 2006-07-01  Eric Blake  <ebb9@byu.net>
76646
76647         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76648         Reported by Andreas Buening.
76649
76650 2006-07-01  Eric Blake  <ebb9@byu.net>
76651
76652         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76653
76654 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76655
76656         * lib/getaddrinfo.c: fixed typo
76657
76658 2006-06-29  Jim Meyering  <jim@meyering.net>
76659
76660         * modules/strftime (Maintainer): Add my name, since with the
76661         FPRINTFTIME changes strftime.c has forked from glibc.
76662
76663 2006-06-29  Eric Blake  <ebb9@byu.net>
76664
76665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76666
76667 2006-06-29  Eric Blake  <ebb9@byu.net>
76668
76669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76670
76671 2006-06-29  Eric Blake  <ebb9@byu.net>
76672
76673         * lib/stat_.h: New file.
76674
76675 2006-06-29  Eric Blake  <ebb9@byu.net>
76676
76677         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76678         unused static function.
76679
76680 2006-06-29  Eric Blake  <ebb9@byu.net>
76681
76682         * doc/functions.texi (Function Portability): Document missing lstat
76683         on mingw.
76684
76685 2006-06-29  Eric Blake  <ebb9@byu.net>
76686
76687         * MODULES.html.sh: Add sys_stat.
76688         * modules/sys_stat: New module.
76689         * modules/mkstemp (Depends-on): Add sys_stat.
76690
76691 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76692
76693         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76694
76695 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76696
76697         * m4/c-bs-a.m4: Removed.
76698
76699 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76700
76701         * lib/strftime.c: Assume strftime() exists.
76702
76703 2006-06-29  Derek Price  <derek@ximbiot.com>
76704
76705         * modules/c-bs-a: Removed - \a is C89.
76706         * MODULES.html.sh: Remove c-bs-a.
76707
76708 2006-06-29  Bruno Haible  <bruno@clisp.org>
76709
76710         * modules/wcwidth (License): Change to LGPL.
76711
76712 2006-06-28  Simon Josefsson  <jas@extundo.com>
76713
76714         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76715         on _WIN32.
76716
76717         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76718         getnameinfo.
76719
76720 2006-06-28  Simon Josefsson  <jas@extundo.com>
76721
76722         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76723
76724 2006-06-28  Simon Josefsson  <jas@extundo.com>
76725
76726         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76727         functions there.  It will succeed on Windows XP, but on Windows
76728         2000 and (presumably) earlier, it will fail, and use the internal
76729         re-implementation.
76730         (use_win32_p): New function.
76731         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76732         Support AI_NUMERICSERV to disable getservbyname.
76733         (getnameinfo): New function, only supports
76734         NI_NUMERICHOST|NI_NUMERICSERV for now.
76735
76736         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76737         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76738         getnameinfo.
76739
76740 2006-06-28  Eric Blake  <ebb9@byu.net>
76741
76742         * modules/wcwidth: New file.
76743         * modules/mbchar (Depends-on): Add wcwidth.
76744         * modules/mbswidth (Depends-on): Add wcwidth.
76745         * MODULES.html.sh: Add wcwidth.
76746
76747 2006-06-28  Eric Blake  <ebb9@byu.net>
76748
76749         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76751
76752 2006-06-28  Eric Blake  <ebb9@byu.net>
76753
76754         * lib/xvasprintf.h: Fix comments.
76755
76756 2006-06-28  Eric Blake  <ebb9@byu.net>
76757
76758         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76759         * lib/mbswidth.c (wcwidth): Move from here...
76760         * lib/wcwidth.h: ...to this new file.
76761
76762 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76763
76764         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76765
76766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76767         it's obsolete.
76768         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76769
76770 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76771
76772         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76773         Autoconf 2.60 says this stuff was obsolete.
76774
76775 2006-06-28  Bruno Haible  <bruno@clisp.org>
76776
76777         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76778
76779 2006-06-28  Bruno Haible  <bruno@clisp.org>
76780
76781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76782         gt_TYPE_WCHAR_T.
76783
76784 2006-06-28  Bruno Haible  <bruno@clisp.org>
76785
76786         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76787         declaration for wcwidth.
76788         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76789
76790 2006-06-28  Bruno Haible  <bruno@clisp.org>
76791
76792         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76793         (mkdir): Define using _mkdir.
76794
76795 2006-06-28  Bruno Haible  <bruno@clisp.org>
76796
76797         * lib/getaddrinfo.h: Fix POSIX URL.
76798         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76799         _WIN32.
76800         (use_win32_p): Make static.
76801         (getaddrinfo): Reject service name if it is empty or does not consist
76802         solely of decimal digits, or if its value is > 65535.
76803         (getnameinfo): Remove useless casts.
76804
76805 2006-06-27  Simon Josefsson  <jas@extundo.com>
76806
76807         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76808         Eggert and Martin Lambers.
76809
76810 2006-06-27  Simon Josefsson  <jas@extundo.com>
76811
76812         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76813         Eggert and Martin Lambers.
76814
76815 2006-06-27  Bruno Haible  <bruno@clisp.org>
76816
76817         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76818         result to 0, not to empty.
76819         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76820
76821 2006-06-27  Bruno Haible  <bruno@clisp.org>
76822
76823         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76824
76825 2006-06-26  Simon Josefsson  <jas@extundo.com>
76826
76827         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76828         present.
76829
76830 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76833         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76834         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76835
76836 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76837
76838         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76839
76840 2006-06-26  Bruno Haible  <bruno@clisp.org>
76841
76842         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76843
76844 2006-06-26  Bruno Haible  <bruno@clisp.org>
76845
76846         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76847
76848 2006-06-26  Bruno Haible  <bruno@clisp.org>
76849
76850         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76851         SGI C compiler in pre-C99 mode.
76852         Suggested by Mark D. Baushke and Larry Jones.
76853
76854 2006-06-26  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76857         WCHAR_MAX.
76858         Reported by Mark D. Baushke and Larry Jones.
76859
76860 2006-06-26  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76863         in pre-C99 mode.
76864         Suggested by Mark D. Baushke and Larry Jones.
76865
76866 2006-06-23  Simon Josefsson  <jas@extundo.com>
76867             Bruno Haible  <bruno@clisp.org>
76868
76869         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76870         Emit mostlyclean-local rule.
76871         (func_emit_tests_Makefile_am): Likewise.
76872         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76873
76874 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76875
76876         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76877
76878 2006-06-23  Bruno Haible  <bruno@clisp.org>
76879
76880         * tests/test-stdint.c: Update to match ISO C 99 Technical
76881         Corrigendum 1.
76882
76883 2006-06-23  Bruno Haible  <bruno@clisp.org>
76884
76885         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76886
76887 2006-06-23  Bruno Haible  <bruno@clisp.org>
76888
76889         * lib/stdint_.h: Treat IRIX like OpenBSD.
76890
76891 2006-06-23  Bruno Haible  <bruno@clisp.org>
76892
76893         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76894         ISO C 99 Technical Corrigendum 1.
76895
76896 2006-06-22  Simon Josefsson  <jas@extundo.com>
76897
76898         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76899         MinGW.
76900
76901 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76902
76903         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76904         needed.  Some compiler complained about some of them.  Problem reported
76905         by Larry Jones in
76906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76907
76908 2006-06-21  Simon Josefsson  <jas@extundo.com>
76909
76910         * tests/test-getaddrinfo.c: New file.
76911
76912         * modules/getaddrinfo-tests: New file.
76913
76914         * MODULES.html.sh: Add inet_pton.
76915
76916         * modules/inet_pton: New file.
76917
76918 2006-06-21  Simon Josefsson  <jas@extundo.com>
76919
76920         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76921         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76922         of using the (limited) gnulib implementation on Windows XP.
76923
76924         * m4/inet_pton.m4: New file.
76925
76926 2006-06-21  Simon Josefsson  <jas@extundo.com>
76927
76928         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76929         variable.
76930
76931         * lib/socket_.h: Don't define WINVER.
76932
76933         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76934         slightly modified to work in gnulib.
76935
76936 2006-06-21  Simon Josefsson  <jas@extundo.com>
76937
76938         * doc/gnulib.texi (Windows sockets): Add.
76939
76940 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         * lib/read-file.c (fread_file): Start with buffer allocation of
76943         0 bytes rather than 1 byte; this simplifies the code.
76944         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76945         code to free buffer and save/restore errno.
76946         (internal_read_file): Remove unused local.
76947
76948 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76951         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76952         Problem reported by Denis Excoffier in
76953         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76954
76955 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76956
76957         * modules/sys_socket, modules/socklen: Include sys/types since
76958         FreeBSD 4.x's sys/socket.h needs it.
76959
76960 2006-06-19  Simon Josefsson  <jas@extundo.com>
76961
76962         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76963
76964 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76967
76968 2006-06-19  Bruno Haible  <bruno@clisp.org>
76969
76970         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76971         and FULL_PATH_INTTYPES_H in angle brackets.
76972         Reported by Mark D. Baushke <mdb@gnu.org>.
76973
76974 2006-06-17  Eric Blake  <ebb9@byu.net>
76975
76976         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76977         errno.
76978
76979 2006-06-17  Bruno Haible  <bruno@clisp.org>
76980
76981         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76982         <sys/inttypes.h>.
76983
76984 2006-06-17  Bruno Haible  <bruno@clisp.org>
76985
76986         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76987         whether errno is declared. Assume <errno.h> declares errno.
76988
76989 2006-06-17  Bruno Haible  <bruno@clisp.org>
76990
76991         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76992
76993 2006-06-17  Bruno Haible  <bruno@clisp.org>
76994
76995         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76996         problem on Solaris 2.5.1.
76997
76998 2006-06-16  Eric Blake  <ebb9@byu.net>
76999
77000         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77001         * lib/unicodeio.c [!defined errno]: Likewise.
77002         * lib/strtol.c [!defined errno]: Likewise.
77003         * lib/strtod.c [!defined errno]: Likewise.
77004
77005 2006-06-15  Eric Blake  <ebb9@byu.net>
77006
77007         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77008
77009 2006-06-15  Eric Blake  <ebb9@byu.net>
77010
77011         * config/srclist.txt (ssize_t.m4): Lose sync.
77012
77013 2006-06-15  Bruno Haible  <bruno@clisp.org>
77014
77015         * modules/stdint (Files): Include m4/full-header-path.m4,
77016         m4/size_max.m4, m4/wchar_t.m4.
77017         (Makefile.am): Many more substitutions.
77018         * modules/stdint-tests: New file.
77019         * tests/test-stdint.c: New file.
77020
77021 2006-06-15  Bruno Haible  <bruno@clisp.org>
77022
77023         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77024         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77025         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77026         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77027         gl_CHECK_TYPE_SAME): New macros.
77028
77029 2006-06-15  Bruno Haible  <bruno@clisp.org>
77030
77031         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77032
77033 2006-06-15  Bruno Haible  <bruno@clisp.org>
77034
77035         * lib/stdint_.h: Rewritten to be fully auto-configured.
77036         Fixes bug on HP-UX/IA64.
77037
77038 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * lib/getdate.y (__attribute__): Don't define if already defined.
77041         Problem reported by Larry Jones.
77042         * lib/utimens.c (__attribute__): Likewise.
77043
77044 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77047         reported by Andreas Schwab.
77048
77049 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77050             Bruno Haible  <bruno@clisp.org>
77051
77052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77053         check for the declaration of strnlen and a run test that exposes the
77054         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77055         rpl_strndup.
77056
77057 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77058             Bruno Haible  <bruno@clisp.org>
77059
77060         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77061
77062 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77063
77064         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77065         compile test, for Tru64 4.0D.
77066
77067 2006-05-28  Karl Berry  <karl@gnu.org>
77068
77069         * config/srclist.txt (printf-args.c): lose sync.
77070
77071 2006-05-26  Martin Lambers  <marlam@marlam.de>
77072
77073         * lib/getpass.c: Updates the test for the native W32 API, and adds
77074         missing includes, thus fixing compilation warnings.
77075
77076 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77077
77078         * lib/exclude.c (exclude_fnmatch): New function.
77079         (excluded_file_name): Call exclude_fnmatch.
77080         * lib/exclude.h (excluded_file_name): New prototype
77081
77082 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77083
77084         * lib/tempname.c (small_open, large_open): New macros.
77085         (__open, __open64) [!_LIBC]: Remove.
77086         (__gen_tempname): Use small_open and large_open instead of __open
77087         and __open64.  This fixes a portability bug on HP-UX 11.11i
77088         reported by Simon Wing-Tang in
77089         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77090
77091 2006-05-24  Bruno Haible  <bruno@clisp.org>
77092
77093         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77094         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77095         Reported by Thorsten Maerz <torte@netztorte.de> via
77096         Aaron Stone <aaron@serendipity.cx>.
77097
77098 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77101         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77102         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77103         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77104         not really conditional on the cache.
77105         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77106
77107 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77110         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77111         (my_usleep): Don't mishandle maximum value.
77112
77113 2006-05-19  Jim Meyering  <jim@meyering.net>
77114
77115         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77116
77117 2006-05-17  Bruno Haible  <bruno@clisp.org>
77118
77119         Cygwin portability.
77120         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77121
77122 2006-05-17  Bruno Haible  <bruno@clisp.org>
77123
77124         * lib/stdint_.h: Fix recognition of Cygwin.
77125
77126 2006-05-15  Bruno Haible  <bruno@clisp.org>
77127
77128         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77129         on libtool patch by Ralf Wildenhues.
77130
77131 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77134         test for C99 conformance; (bool) 0.5 is an integer constant
77135         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77136         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77137
77138 2006-05-11  Simon Josefsson  <jas@extundo.com>
77139
77140         * m4/xvasprintf.m4: Fix obvious typo.
77141
77142 2006-05-11  Jim Meyering  <jim@meyering.net>
77143
77144         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77145         James Lemley.
77146
77147 2006-05-10  Simon Josefsson  <jas@extundo.com>
77148
77149         * lib/md4.c: Typo fix, update copyright years.
77150         (K1, K2): Don't use L because it turn computations into 64-bit on
77151         64-bit platforms.
77152
77153 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77154
77155         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77156         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77157         unwanted sign propagation, e.g., on hosts with 64-bit int.
77158         There still are some problems with reeelly weird theoretical hosts
77159         (e.g., 33-bit int) but it's not worth worrying about now.
77160         * lib/sha1.c (rol): Likewise.
77161         (K1, K2, K3, K4): Remove unnecessary L suffix.
77162
77163 2006-05-10  Bruno Haible  <bruno@clisp.org>
77164
77165         * lib/des.c: Cast to avoid warnings.
77166
77167 2006-05-09  Bruno Haible  <bruno@clisp.org>
77168
77169         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77170         (Depends-on): Depend also on xsize, stdarg.
77171         (configure.ac): Add gl_XVASPRINTF.
77172
77173 2006-05-09  Bruno Haible  <bruno@clisp.org>
77174
77175         * m4/xvasprintf.m4: New file.
77176
77177 2006-05-09  Bruno Haible  <bruno@clisp.org>
77178
77179         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77180         (EOVERFLOW): Define fallback value.
77181         (xstrcat): New function.
77182         (xvasprintf): Recognize the special case of a string concatenation.
77183
77184 2006-05-08  Eric Blake  <ebb9@byu.net>
77185
77186         * gnulib-tool (func_version): Base copyright year on CVS date.
77187         (func_emit_copyright_notice): New function.
77188         (func_emit_lib_Makefile_am): Use it.
77189         (func_emit_tests_Makefile_am): Likewise.
77190         (func_import): Likewise.
77191
77192 2006-05-08  Bruno Haible  <bruno@clisp.org>
77193
77194         * modules/stdarg: New file.
77195         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77196
77197 2006-05-08  Bruno Haible  <bruno@clisp.org>
77198
77199         * m4/stdarg.m4: New file, from GNU gettext.
77200
77201 2006-05-08  Bruno Haible  <bruno@clisp.org>
77202
77203         * config/srclist.txt (build-aux/config.rpath): different from latest
77204         release.
77205
77206 2006-05-08  Bruno Haible  <bruno@clisp.org>
77207
77208         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77209
77210 2006-05-05  Jim Meyering  <jim@meyering.net>
77211
77212         * m4/warning.m4: New file, derived from bison's file by the same name.
77213
77214 2006-05-03  Bruno Haible  <bruno@clisp.org>
77215
77216         * lib/stdint_.h: Shorter URL.
77217         * lib/inttypes.h: Likewise.
77218
77219 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77220
77221         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77222
77223 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77224
77225         * lib/verify.h: Document the internals better.  Most of this change
77226         was written by Bruno Haible.
77227
77228 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77229
77230         * doc/verify.texi: New file, partly based on a proposal by
77231         Bruno Haible.
77232
77233 2006-05-02  Bruno Haible  <bruno@clisp.org>
77234
77235         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77236         test from here...
77237         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77238
77239 2006-04-29  Bruno Haible  <bruno@clisp.org>
77240
77241         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77242         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77243
77244 2006-04-29  Bruno Haible  <bruno@clisp.org>
77245
77246         * gnulib-tool: Make --update option actually work.
77247
77248 2006-04-29  Bruno Haible  <bruno@clisp.org>
77249
77250         * doc/gcd.texi: New file.
77251         * doc/gnulib.texi: Include it.
77252
77253 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * lib/getdate.y (get_date): When adding relative date, start with the
77256         initial time, not with the result of the first mktime call.
77257
77258 2006-04-25  Bruno Haible  <bruno@clisp.org>
77259
77260         * gnulib-tool (func_import): Output the include directives in three
77261         blocks, sorted separately.
77262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77263
77264 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77267         to define main with arguments, for C++.  Reported by Eric Blake.
77268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77269         Prefer 'int main ()' to 'int main (void)', for C++.
77270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77271         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77272         for 'main', for C99 and C++.
77273
77274 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77277         Don't assume that exit status -1 is valid.
77278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77279         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77280         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77281         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77282         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77283         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77284         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77285         functions can be used without declaring them, or that you can
77286         exit with status -1.
77287         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77288
77289 2006-04-24  Karl Berry  <karl@gnu.org>
77290
77291         * config/srclist.txt (longdouble.m4): sync lost.
77292
77293 2006-04-24  Eric Blake  <ebb9@byu.net>
77294
77295         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77296
77297 2006-04-24  Bruno Haible  <bruno@clisp.org>
77298
77299         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77300         poll() implementation in AIX.
77301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77302
77303 2006-04-24  Bruno Haible  <bruno@clisp.org>
77304
77305         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77306         assigned exactly once.
77307
77308 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77309             Bruno Haible  <bruno@clisp.org>
77310
77311         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77312         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77313         for AM_CPPFLAGS.
77314
77315 2006-04-23  Bruno Haible  <bruno@clisp.org>
77316
77317         * modules/copy-file: Depend on unistd.
77318         * modules/execute: Likewise.
77319         * modules/fatal-signal: Likewise.
77320         * modules/findprog: Likewise.
77321         * modules/mkdtemp : Likewise.
77322         * modules/pipe: Likewise.
77323         * modules/wait-process: Likewise.
77324
77325 2006-04-23  Bruno Haible  <bruno@clisp.org>
77326
77327         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77328         condition was already detected.
77329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77330
77331 2006-04-23  Bruno Haible  <bruno@clisp.org>
77332
77333         * lib/copy-file.c: Include <unistd.h> unconditionally.
77334         * lib/execute.c: Likewise.
77335         * lib/fatal-signal.c: Likewise.
77336         * lib/findprog.c: Likewise.
77337         * lib/mkdtemp.c: Likewise.
77338         * lib/pipe.h: Likewise.
77339         * lib/pipe.c: Likewise.
77340         * lib/wait-process.h: Likewise.
77341
77342 2006-04-23  Bruno Haible  <bruno@clisp.org>
77343
77344         * gnulib-tool (func_usage): Fix --import description. Document
77345         --update.
77346         (func_import): Create temporary file in a temporary directory, if
77347         --dry-run is specified. Silence errors from 'grep' when there are no
77348         m4 files in $m4dir.
77349         (func_create_testdir): Silence errors from 'grep' when there are no
77350         m4 files in $m4dir.
77351         Reported by Karl Berry <karl@freefriends.org>.
77352
77353 2006-04-20  Bruno Haible  <bruno@clisp.org>
77354
77355         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77356         one argument, so that the code will be portable to Autoconf 2.60.
77357         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77358         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77359         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77360
77361 2006-04-19  Derek Price  <derek@ximbiot.com>
77362             Eric Blake  <ebb9@byu.net>
77363
77364         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77365         rather than "/full/path.h".  Update comment to match.  Shorten &
77366         generalize m4_translit call via AS_TR_CPP.
77367
77368 2006-04-19  Derek Price  <derek@ximbiot.com>
77369             Eric Blake  <ebb9@byu.net>
77370
77371         * lib/inttypes.h: Correct grammar in comment.
77372
77373 2006-04-18  Derek Price  <derek@ximbiot.com>
77374             Paul Eggert  <eggert@cs.ucla.edu>
77375
77376         * modules/inttypes: New file.
77377         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77378
77379 2006-04-18  Derek Price  <derek@ximbiot.com>
77380             Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77383         New files.
77384
77385 2006-04-18  Derek Price  <derek@ximbiot.com>
77386             Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * lib/inttypes.h: New file.
77389         * lib/strtoimax.c: Assume <inttypes.h>.
77390
77391 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77392
77393         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77394         isn't mounted.  Problem reported by Kir Kolyshkin.
77395
77396 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77399         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77400         Derek R. Price.
77401         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77402         implementation.
77403
77404 2006-04-12  Eric Blake  <ebb9@byu.net>
77405
77406         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77407         is now done automatically by the corresponding Autoconf macro.
77408
77409 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77412         time_r.h.
77413
77414 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         Merge regex changes from libc, removing some of our
77417         POSIX-conformance changes that were rejected and redoing them in a
77418         less-intrusive way.
77419
77420         * lib/regcomp.c (re_compile_internal, init_dfa):
77421         Length arg is now size_t, not Idx.  All uses changed.
77422         (peek_token): Forward decl now says internal_function.
77423         (__re_error_msgid, __re_error_msgid_idx):
77424         Now static rather than extern with attribute_hidden.
77425         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77426         For some reason libc prefers K&R style defns for external functions.
77427         (regerror) [!defined _LIBC]: Likewise.
77428         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77429         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77430         (build_range_exp, build_collating_symbol):
77431         Use K&R-style defn.
77432         (re_compile_fastmap): Use '\0' to memset, not 0.
77433         (utf8_sb_map): Make the calculations more obvious.
77434         (init_dfa, parse_bracket_exp, build_charclass_op):
77435         Call calloc and cast result, as glibc does.
77436         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77437         (build_range_exp, build_collating_symbol):
77438         Now internal functions.
77439
77440         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77441
77442         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77443         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77444         Don't depend on VMS; depend on __VMS instead, for POSIX
77445         namespace cleanness.
77446         (regoff_t): Define to ssize_t, not long int.
77447
77448         Remove the REG_ macros named below.  Instead, make the old names
77449         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77450         __USE_GNU_REGEX.
77451         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77452         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77453         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77454         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77455         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77456         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77457         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77458         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77459         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77460         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77461         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77462         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77463         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77464         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77465         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77466         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77467         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77468         (REG_NREGS):
77469         Remove.  All uses replaced by the old RE_* names.
77470         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77471         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77472         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77473         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77474         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77475         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77476         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77477         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77478         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77479         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77480         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77481         Don't bother having these macros be independent of each others'
77482         values, since they no longer exist in the POSIX name space.
77483
77484         Rename the following member names back to their old names,
77485         unless !__USE_GNU_REGEX.  All uses changed back.
77486         (buffer): Renamed from re_buffer.
77487         (allocated): Renamed from re_allocated.
77488         (used): Renamed from re_used.
77489         (syntax): Renamed from re_syntax.
77490         (fastmap): Renamed from re_fastmap.
77491         (translate): Renamed from re_translate.
77492         (can_be_null): Renamed from re_can_be_null.
77493         (regs_allocated): Renamed from re_regs_allocated.
77494         (fastmap_accurate): Renamed from re_fastmap_accurate.
77495         (no_sub): Renamed from re_no_sub.
77496         (not_bol): Renamed from re_not_bol.
77497         (not_eol): Renamed from re_not_eol.
77498         (newline_anchor): Renamed from re_newline_anchor.
77499         (num_regs): Renamed from rm_num_regs.
77500         (start): Renamed from rm_start.
77501         (end): Renamed from rm_end.
77502
77503         (free_state): Move up a bit.
77504
77505         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77506         #define to be empty.
77507         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77508         when that is what is intended.
77509         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77510         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77511         (MAX): New macro.
77512         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77513         All uses changed back to re_malloc, etc.  It's now the caller's
77514         responsibility to check for overflow; all callers changed.
77515         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77516         (re_x2nrealloc): Remove.
77517         (free_state): Remove decl.
77518
77519         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77520         (re_set_registers, re_exec):
77521         Use K&R-style defn.
77522
77523         2006-01-31  Roland McGrath  <roland@redhat.com>
77524
77525         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77526         Reported by Mike Frysinger <vapier@gentoo.org>.
77527
77528         2006-01-15  Andreas Jaeger  <aj@suse.de>
77529
77530         [BZ #1950]
77531         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77532         build_wcs_upper_buffer change.
77533         (build_wcs_upper_buffer): Change return type.
77534
77535         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77536
77537         * lib/regex_internal.h: Include <stdint.h> if available.
77538
77539         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77540
77541         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77542
77543         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77544
77545         * lib/regcomp.c: Adjust for changed secondary hash function.
77546
77547         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77548
77549         * lib/regex.h: Pretty printing.
77550         Clean up namespace a bit.
77551
77552         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77553
77554         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77555         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77556
77557         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77558                     Ulrich Drepper  <drepper@redhat.com>
77559
77560         [BZ #1302]
77561         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77562         changed.
77563         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77564
77565         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77566
77567         [BZ #281]
77568         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77569         * lib/regcomp.c: Remove unnecessary uses of
77570         unsigned RE_TRANSLATE_TYPE.
77571         * lib/regex_internal.h: Likewise.
77572         * lib/regex_internal.c: Likewise.
77573         * lib/regexec.c: Likewise.
77574         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77575
77576         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77577
77578         * lib/regexec.c (find_recover_state): Remove unnecessary
77579         initialization.
77580         (transit_state_bkref): Make DFA a const pointer.
77581         (get_subexp): Likewise.
77582         (check_arrival): Likewise.
77583         (update_cur_sifted_state): Likewise.
77584         (re_search_internal): Likewise.
77585         (prune_impossible_nodes): Likewise.
77586         (acquire_init_state_context): Likewise.
77587         (proceed_next_node): Likewise.
77588         (set_regs): Likewise.
77589         (free_fail_stack_return): Likewise.
77590         (check_arrival_expand_ecl): Mark DFA parameter as const.
77591         (check_arrival_expand_ecl_sub): Likewise.
77592         (check_subexp_limits): Likewise.
77593         (sub_epsilon_src_nodes):  Likewise.
77594         (add_epsilon_src_nodes):  Likewise.
77595         (merge_state_array): Likewise.
77596         (update_regs): Likewise.
77597         (build_trtable): Likewise.
77598         (sift_states_backward): Mark MCTX parameter as const.
77599         (build_sifted_states): Likewise.
77600         (update_cur_sifted_state): Likewise.
77601         (sift_states_mkref): Likewise.
77602         (check_arrival_expand_ecl): Mark eclosure as const.
77603         (check_dst_limits_calc_pos_1): Likewise.
77604         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77605         pointer.
77606
77607         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77608
77609         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77610         (transit_state_sb): Likewise.
77611         (transit_state_mb): Likewise.
77612         (sift_states_iter_mb): Likewise.
77613         (check_arrival_add_next_nodes): Likewise.
77614         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77615         [_LIBC] (re_search_2_stub): Use mempcpy.
77616
77617         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77618         mbrtowc for very simple UTF-8 case.
77619
77620         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77621         a pointer-to-const.
77622         (re_acquire_state_context): Likewise.
77623         * lib/regex_internal.h: Adjust prototypes.
77624
77625         * lib/regex.c: Prevent using C++ compilers.
77626
77627         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77628         (re_acquire_state_context): Likewise.
77629
77630 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         * modules/regex (Depends-on): Add ssize_t.
77633
77634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77635
77636         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77637         translation table.
77638
77639 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77642
77643 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77644             Bruno Haible  <bruno@clisp.org>
77645
77646         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77647         <sys/types.h> and <inttypes.h>.
77648
77649 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77650
77651         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77652         `__error_t_defined', so argp.h will not typedef the former.
77653
77654 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77657         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77658         glibc names.  Even if glibc is changed to conform to POSIX, the
77659         traditional names will be available anyway, since regex depends on
77660         the extensions module.  Also, fix a longstanding typo in the
77661         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77662         reported by Emanuele Giaquinta.  Also, change sense of cached
77663         variable, so that the message makes sense.
77664
77665 2006-03-24  Simon Josefsson  <jas@extundo.com>
77666
77667         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77668         including some doc fixes.
77669         (base64_encode_alloc): Fix +1 bug on allocation failures.
77670
77671 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77672
77673         * lib/base64.c (base64_encode): Do not read past end of array with
77674         unsanitized input on systems with CHAR_BIT > 8.
77675
77676 2006-03-24  Eric Blake  <ebb9@byu.net>
77677
77678         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77679
77680 2006-03-22  Karl Berry  <karl@gnu.org>
77681
77682         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77683         * config/srclistvars.sh (COREUTILS): new var.
77684
77685 2006-03-17  Jim Meyering  <jim@meyering.net>
77686
77687         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77688         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77689
77690 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77693         no longer needs it.  Instead, check that regoff_t is as least
77694         as wide as ptrdiff_t.
77695
77696         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77697         so that our regex.h stays compatible with the installed regex.
77698         This is helpful for installers who configure --without-included-regex.
77699         Problem reported by Emanuele Giaquinta.
77700
77701 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77702
77703         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77704         Typedef to long int, not to off_, as POSIX will likely change
77705         in that direction.
77706
77707 2006-03-15  Eric Blake  <ebb9@byu.net>
77708
77709         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77710
77711 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77712
77713         * lib/argp-help.c (validate_uparams): Fix typo
77714         * lib/argp-parse.c (argp_default_options): Consistently begin help
77715         messages with a lowercase letter.
77716
77717 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77720         overrun buffers and shouldn't be used (much as gets shouldn't be
77721         used).
77722         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77723
77724 2006-03-08  Simon Josefsson  <jas@extundo.com>
77725
77726         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77727         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77728
77729 2006-03-08  Simon Josefsson  <jas@extundo.com>
77730
77731         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77732         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77733
77734 2006-03-08  Simon Josefsson  <jas@extundo.com>
77735
77736         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77737         signal that configure disabled the device.
77738
77739 2006-03-08  Simon Josefsson  <jas@extundo.com>
77740
77741         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77742         languages.
77743
77744 2006-03-07  Simon Josefsson  <jas@extundo.com>
77745
77746         * modules/getopt (Depends-on): Add unistd.
77747
77748         * modules/unistd: New file.
77749
77750 2006-03-07  Simon Josefsson  <jas@extundo.com>
77751
77752         * modules/gc-random: New file.
77753
77754 2006-03-07  Simon Josefsson  <jas@extundo.com>
77755
77756         * m4/unistd_h.m4: New file.
77757
77758 2006-03-07  Simon Josefsson  <jas@extundo.com>
77759
77760         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77761         test to be side-effect free by storing the result in the cache
77762         variable gl_cv_lib_readline, and moving the assignment of
77763         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77764         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77765
77766 2006-03-07  Simon Josefsson  <jas@extundo.com>
77767
77768         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77769         error on missing devices (the functions will return an error).
77770
77771         * m4/gc.m4: Move random stuff to gc-random.m4
77772
77773 2006-03-07  Simon Josefsson  <jas@extundo.com>
77774
77775         * lib/unistd_.h: New file.
77776
77777 2006-03-07  Simon Josefsson  <jas@extundo.com>
77778
77779         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77780
77781 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77782
77783         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77784         Problem reported by Juan Manuel Guerrero.
77785
77786 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77789         the unistd module.
77790         * lib/getlogin_r.c: Likewise.
77791         * lib/getlogin_r.h: Likewise.
77792         * lib/glob.c: Likewise.
77793         * lib/pagealign_alloc.c: Likewise.
77794         * lib/unistd_.h: Remove; no longer needed.
77795
77796 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77799         Add unistd.
77800         * modules/c-stack (Depends-on): Add unistd.
77801         * modules/getlogin_r: Likewise.
77802         * modules/glob: Likewise.
77803         * modules/pagealign_alloc: Likewise.
77804         * modules/unistd (Files): Remove lib/unistd_.h.
77805         (EXTRA_DIST): Remove.
77806         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77807         need unistd_.h.
77808         (MOSTLYCLEANFILES): Remove unistd.h-t.
77809
77810 2006-03-03  Simon Josefsson  <jas@extundo.com>
77811
77812         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77813
77814 2006-03-03  Simon Josefsson  <jas@extundo.com>
77815
77816         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77817         libidn and bison.
77818
77819 2006-03-03  Simon Josefsson  <jas@extundo.com>
77820
77821         * build-aux/maint.mk: Add indent target.
77822
77823 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77824
77825         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77826         our replacement poll.h in any case, to avoid a differing
77827         declaration from a system header.  Seen on AIX.
77828
77829 2006-03-01  Simon Josefsson  <jas@extundo.com>
77830
77831         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77832         <kasal@ucw.cz>.
77833
77834 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         * modules/gettime (Depends-on): Add extensions module.
77837         * modules/nanosleep (Depends-on): Likewise.
77838         * modules/settime (Depends-on): Likewise.
77839
77840 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77843         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77844         pedantically.
77845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77846         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77847
77848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77849         not "==".  Reported by Ralf Wildenhues.
77850
77851 2006-03-01  Karl Berry  <karl@gnu.org>
77852
77853         * doc/Copyright/request-*: new files, synced from gnuorg.
77854
77855 2006-03-01  Karl Berry  <karl@gnu.org>
77856
77857         * config/srclist.txt (Copyright/*): new entries.
77858
77859 2006-02-28  Simon Josefsson  <jas@extundo.com>
77860
77861         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77862
77863 2006-02-27  Simon Josefsson  <jas@extundo.com>
77864
77865         * lib/base64.h: Indent #define's.  From Jim Meyering
77866         <jim@meyering.net>.
77867
77868 2006-02-27  Jim Meyering  <jim@meyering.net>
77869
77870         Revert the change of 2006-02-24, so these files can continue
77871         to be sync'd from gettext.
77872         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77873         of `config.h'.
77874
77875 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77876
77877         * modules/intprops: New file.
77878         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77879         Add intprops.
77880         * modules/getloadavg (Files): Remove lib/intprops.h.
77881         (Depends-on): Add intprops.
77882         * modules/human: Likewise.
77883         * modules/inttostr: Likewise.
77884         * modules/openat: Likewise.
77885         * modules/sig2str: Likewise.
77886         * modules/userspec: Likewise.
77887         * modules/utimecmp: Likewise.
77888         * modules/xnanosleep: Likewise.
77889         * modules/xstrtol: Likewise.
77890
77891 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77892
77893         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77894         * modules/lock-tests (TESTS): Use $(EXEEXT).
77895         * modules/tls-tests: Likewise.
77896         * modules/argp-tests: Likewise.
77897         (check_PROGRAMS): New var, replacing...
77898         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77899
77900 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77901
77902         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77903         `config.h'.
77904
77905 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77908
77909 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77910
77911         Sync from coreutils.
77912         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77913         gl_CHDIR_SAFER.
77914
77915 2006-02-22  Jim Meyering  <jim@meyering.net>
77916
77917         Sync from coreutils.
77918         * m4/chdir-safer.m4: New file.
77919
77920 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77923         AT_FDCWD exceeds INT_MAX.
77924         * lib/openat.h (AT_FDCWD): Likewise.
77925
77926 2006-02-17  Eric Blake  <address@hidden>
77927
77928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77929
77930 2006-02-16  Simon Josefsson  <jas@extundo.com>
77931
77932         * modules/getaddrinfo (Depends-on): Add sys_socket.
77933
77934 2006-02-15  Simon Josefsson  <jas@extundo.com>
77935
77936         * build-aux/maint.mk: Add dsyntax-check rule.
77937
77938 2006-02-15  Eric Blake  <ebb9@byu.net>
77939
77940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77941         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77942         'present but cannot compile' warnings on cygwin.
77943         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77944         use ws2tcpip.h if sys/socket.h works.
77945         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77946         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77947
77948 2006-02-14  Simon Josefsson  <jas@extundo.com>
77949
77950         * modules/maintainer-makefile (Files): Rename.
77951
77952         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77953         and (the local) Makefile.cfg to maint-cfg.mk.
77954
77955         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77956         to the latter.
77957
77958         * modules/maintainer-makefile: New module.
77959
77960         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77961         severaly stripped to make it possible to build it up from scratch
77962         with reliable tests.
77963
77964         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77965         fixes to permit overriding the default actions when configure and
77966         makefile are not available.
77967
77968 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         Sync from coreutils.
77971         * modules/lstat (Depends-on): Don't depend on xalloc.
77972         (License): Change from GPL to LGPL, since this is now simply a
77973         replacement for a libc function.
77974
77975 2006-02-14  Jim Meyering  <jim@meyering.net>
77976
77977         Sync from coreutils.
77978
77979         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77980         failure on deficient systems, and simplify gnulib lgpl dependencies.
77981         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77982         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77983
77984         * lib/xalloc-die.c: Remove unused definition of N_.
77985
77986 2006-02-14  Jim Meyering  <jim@meyering.net>
77987
77988         Sync from coreutils.
77989         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77990         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77991         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77992         double-quote uses of that variable, to accommodate the rare case in
77993         which getmntent is available in none of the libraries checked.  This
77994         happens at least on FreeBSD 5.0.
77995
77996 2006-02-13  Simon Josefsson  <jas@extundo.com>
77997
77998         * gnulib-tool (Usage): Fix --import, from
77999         karl@freefriends.org (Karl Berry).
78000
78001 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78002
78003         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78004
78005 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78006
78007         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78008         "autoupdate" on 2005-12-12.
78009
78010 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78011
78012         * modules/closeout (Depends-on): Remove atexit.
78013
78014 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78015
78016         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78017         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78018
78019 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78022         __EXTENSIONS__ if this causes compilation to fail.  Problem
78023         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78024         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78025
78026 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78029         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78031         All uses changed.
78032
78033 2006-01-26  Simon Josefsson  <jas@extundo.com>
78034
78035         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78036         prototype is visible on mingw32.
78037
78038         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78039         for mingw32.
78040
78041         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78042         mingw32).
78043
78044 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78047         attempt to open for write; this always fails, at least on POSIX
78048         hosts.  This reinstates the 2006-01-09 change, which was
78049         inadvertently removed.
78050
78051 2006-01-26  Bruno Haible  <bruno@clisp.org>
78052
78053         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78054         Reported by Paul Eggert.
78055
78056 2006-01-26  Bruno Haible  <bruno@clisp.org>
78057             Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/stdbool_.h (_Bool)
78060         [(! (defined __cplusplus || defined __BEOS__)
78061           && !defined __GNUC__
78062           && !(defined __HP_cc || defined __xlc__
78063                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78064                || defined __sgi))]:
78065         #define to signed char in these cases too; this simplifies
78066         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78067         etc., separately) and makes it more conservative.
78068
78069 2006-01-25  Simon Josefsson  <jas@extundo.com>
78070
78071         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78072         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78073         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78074
78075 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78076
78077         * lib/argp-namefrob.h: Bugfix. Remove stray #
78078
78079 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78082         so that we test the test.
78083         Check for yet another HP-UX cc bug involving *bool |= bool.
78084
78085 2006-01-25  Karl Berry  <karl@gnu.org>
78086
78087         * config/srclist.txt (vasnprintf.c): sync lost.
78088
78089 2006-01-25  Jim Meyering  <jim@meyering.net>
78090
78091         Sync from the stable (b5) branch of coreutils:
78092
78093         * lib/fts.c (fts_children): Don't let close() clobber errno from
78094         failed fchdir().
78095
78096         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78097         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78098         a dangling symlink.  That can also happen at least for ELOOP.
78099         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78100         FYI, this bug predates the inclusion of fts.c in coreutils.
78101
78102         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78103         in their own block, so pre-c99 compilers don't object.
78104
78105         Avoid the double-free (first in fts_read, second in fts_close) that
78106         would occur when an `active' directory is made inaccessible (e.g.,
78107         via chmod a-x) during a traversal.
78108         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78109         before returning.  Reproduce this failure by
78110         mkdir -p a/b; cd a; chmod a-x . b
78111         Reported by Stavros Passas.
78112
78113 2006-01-25  Jim Meyering  <jim@meyering.net>
78114
78115         * lib/fileblocks.c: Remove more useless parentheses.
78116         * lib/readutmp.h: Likewise.
78117
78118 2006-01-25  Bruno Haible  <bruno@clisp.org>
78119
78120         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78121         warnings.
78122         Reported by Paul Eggert.
78123
78124 2006-01-25  Bruno Haible  <bruno@clisp.org>
78125
78126         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78127         rid of a trap command. For Solaris sh.
78128         Reported by Mark D. Baushke <mdb@gnu.org>.
78129
78130 2006-01-24  Simon Josefsson  <jas@extundo.com>
78131
78132         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78133         Bruno.
78134
78135 2006-01-24  Karl Berry  <karl@gnu.org>
78136
78137         * config/srclist.txt (argp-namefrob.h): sync lost.
78138
78139 2006-01-24  Jim Meyering  <jim@meyering.net>
78140
78141         * modules/openat (Files): Add lib/intprops.h.
78142         From Mark D. Baushke.
78143
78144 2006-01-24  Jim Meyering  <jim@meyering.net>
78145
78146         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78147         Reported by Mark D. Baushke.
78148
78149 2006-01-24  Jim Meyering  <jim@meyering.net>
78150
78151         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78152
78153 2006-01-24  Bruno Haible  <bruno@clisp.org>
78154
78155         * modules/strnlen (Maintainer): Change from glibc to all.
78156
78157 2006-01-24  Bruno Haible  <bruno@clisp.org>
78158
78159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78160         Patch by Paul Eggert.
78161
78162 2006-01-24  Bruno Haible  <bruno@clisp.org>
78163
78164         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78165         already has it.
78166         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78167         2005-11-26.
78168
78169         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78170         'signed char' to avoid problems with the built-in _Bool type.
78171         Reported by Paul Eggert on 2005-11-26.
78172
78173 2006-01-24  Bruno Haible  <bruno@clisp.org>
78174
78175         * gnulib-tool (func_import): Avoid constructing complicated sed
78176         expressions inside backquote.
78177         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78178
78179 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78180
78181         These changes imported from libc.
78182         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78183         test and two separate function calls.
78184         * lib/strndup.c (__strndup): Add libc_hidden_def.
78185
78186 2006-01-23  Simon Josefsson  <jas@extundo.com>
78187
78188         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78189         Remove the test_*_SOURCES variable: automake infers it by default.
78190         * modules/tls-tests: Likewise.
78191
78192 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78193
78194         Work around porting bugs reported by Dieter in
78195         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78196         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78197         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78198         Include "getopt.h" first, to check interface.
78199         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78200         !HAVE_DECL_GETENV.
78201         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78202         (__strndup): Revert to K&R-style function dfns, the glibc style.
78203         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78204         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78205         Include strnlen.h first, to get prototype properly.
78206         (strnlen): Renamed from __strnlen.
78207         Remove weak alias.
78208
78209 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78212
78213 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78214
78215         * config/srclist.txt: Adjust to reflect glibc reorganization.
78216         This affects only comments.
78217
78218 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78219
78220          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78221          Reported by Bruce Korb <bkorb@gnu.org>.
78222
78223 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78226         to pacify gcc -Wswitch-default.
78227
78228 2006-01-22  Bruno Haible  <bruno@clisp.org>
78229
78230         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78231         temporary buffer for sprintf, take into account the precision also
78232         for 'd', 'i', 'u', 'o', 'x', 'X'.
78233
78234 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78235
78236         * modules/argp-tests: New module
78237         * tests/test-argp.c: New file
78238         * tests/test-argp-2.sh: New file
78239
78240 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78241
78242         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78243         (__argp_base_name): Removed
78244         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78245         typo.
78246         (__argp_base_name): Provide macro definition or extern declaration
78247         depending on the configuration
78248
78249 2006-01-20  Simon Josefsson  <jas@extundo.com>
78250
78251         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78252
78253 2006-01-20  Simon Josefsson  <jas@extundo.com>
78254
78255         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78256
78257 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78258
78259         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78260         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78261         Suggested by Bruno Haible.
78262
78263 2006-01-20  Karl Berry  <karl@gnu.org>
78264
78265         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78266         until changes propagate, I guess.
78267
78268 2006-01-19  Simon Josefsson  <jas@extundo.com>
78269
78270         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78271
78272 2006-01-19  Simon Josefsson  <jas@extundo.com>
78273
78274         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78275
78276 2006-01-19  Simon Josefsson  <jas@extundo.com>
78277
78278         * gnulib-tool: Set check_PROGRAMS.
78279
78280         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78281         modules/des-tests, modules/gc-arcfour-tests,
78282         modules/gc-arctwo-tests, modules/gc-des-tests,
78283         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78284         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78285         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78286         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78287         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78288         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78289         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78290         test_*_SOURCES.
78291
78292 2006-01-18  Simon Josefsson  <jas@extundo.com>
78293
78294         * modules/socklen (Depends-on): Depend on sys_socket.
78295
78296 2006-01-18  Simon Josefsson  <jas@extundo.com>
78297
78298         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78299         modules/des-tests, modules/gc-arcfour-tests,
78300         modules/gc-arctwo-tests, modules/gc-des-tests,
78301         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78302         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78303         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78304         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78305         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78306         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78307         $(EXEEXT) to automake TESTS variable, for mingw32.
78308
78309 2006-01-17  Simon Josefsson  <jas@extundo.com>
78310
78311         * modules/socklen (Include): Need sys/socket.h.
78312
78313 2006-01-17  Bruno Haible  <bruno@clisp.org>
78314
78315         * modules/ssize_t (Include): Add <sys/types.h>.
78316
78317 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78320         it's not portable and it doesn't work with cross-compiles.
78321         Problem reported by Bruno Haible.  Fix missing-$ typo in
78322         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78323         -zignore from being used with Sun's C compiler.
78324
78325 2006-01-12  Simon Josefsson  <jas@extundo.com>
78326
78327         * lib/base64.c: Fix warning, reported by Bruno Haible
78328         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78329
78330 2006-01-12  Bruno Haible  <bruno@clisp.org>
78331
78332         * modules/ldd: New file.
78333         * build-aux/ldd.sh.in: New file.
78334         * MODULES.html.sh (Support for building libraries and executables): Add
78335         ldd.
78336
78337 2006-01-12  Bruno Haible  <bruno@clisp.org>
78338
78339         * m4/ldd.m4: New file.
78340
78341 2006-01-12  Bruno Haible  <bruno@clisp.org>
78342
78343         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78344         endless loop while replacing $auxdir with build-aux.
78345
78346 2006-01-11  Simon Josefsson  <jas@extundo.com>
78347
78348         * lib/stdint_.h (SIZE_MAX): Add missing (.
78349
78350 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         Sync from coreutils.
78353         * lib/md5.c: Fix commentary typos.
78354         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78355         * lib/md5.h (__attribute__): Remove; unused.
78356         * lib/sha1.c: Fix commentary to match md5 better.
78357         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78358         so that we don't need to worry about alignment.  All uses changed.
78359         This merges the 2005-10-28 md5 change into sha1.
78360
78361 2006-01-11  Jim Meyering  <jim@meyering.net>
78362
78363         Sync from coreutils.
78364         * lib/md5.c (OP): Fix spacing.
78365
78366 2006-01-11  Bruno Haible  <bruno@clisp.org>
78367
78368         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78369         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78370         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78371
78372 2006-01-11  Bruno Haible  <bruno@clisp.org>
78373
78374         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78375         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78376         the "early" section as well.
78377
78378 2006-01-11  Bruno Haible  <bruno@clisp.org>
78379
78380         Avoid "ar: no archive members specified" error on MacOS X.
78381         * gnulib-tool (func_modules_add_dummy): New function.
78382         (func_import, func_create_testdir): Invoke it.
78383
78384 2006-01-11  Bruno Haible  <bruno@clisp.org>
78385
78386         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78387         with $auxdir in AC_CONFIG_FILES statements.
78388
78389 2006-01-11  Bruno Haible  <bruno@clisp.org>
78390
78391         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78392         Initialize also noinst_HEADERS to empty.
78393
78394 2006-01-11  Bruno Haible  <bruno@clisp.org>
78395
78396         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78397         variables.
78398         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78399         autoreconf.
78400
78401 2006-01-11  Bruno Haible  <bruno@clisp.org>
78402
78403         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78404         overridable by the user.
78405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78406
78407 2006-01-10  Simon Josefsson  <jas@extundo.com>
78408
78409         * modules/sys_socket: New file.
78410
78411 2006-01-10  Simon Josefsson  <jas@extundo.com>
78412
78413         * m4/sys_socket_h.m4: New file.
78414
78415 2006-01-10  Simon Josefsson  <jas@extundo.com>
78416
78417         * lib/socket_.h: New file.
78418
78419 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * modules/readutmp (Maintainer): Add myself.
78422
78423 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78424
78425         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78426         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78427         People who are still concerned with buggy memcmp implementations
78428         can invoke gl_FUNC_MEMCMP themselves.
78429
78430 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * lib/regex_internal.h (BITSET_WORD_BITS):
78433         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78434         preprocessor mishandles large unsigned values as if they were signed.
78435         Problem reported by Claudio Fontana in
78436         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78437
78438 2006-01-10  Jim Meyering  <jim@meyering.net>
78439
78440         Avoid the double-free (first in fts_read, second in fts_close) that
78441         would occur when an `active' directory is made inaccessible (e.g.,
78442         via chmod a-x) during a traversal.
78443         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78444         before returning.  Reproduce this failure by
78445         mkdir -p a/b; cd a; chmod a-x . b
78446         Reported by Stavros Passas.
78447
78448         Sync from coreutils.
78449         * lib/sha1.c: Tweak grammar in a comment.
78450
78451 2006-01-10  Jim Meyering  <jim@meyering.net>
78452
78453         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78454         Patch by Joerg Sonnenberger.
78455
78456 2006-01-10  Bruno Haible  <bruno@clisp.org>
78457
78458         * modules/readutmp: Depend on module free.
78459         * modules/strtok_r: Depend on module restrict.
78460
78461 2006-01-10  Bruno Haible  <bruno@clisp.org>
78462
78463         * modules/gettext (configure.ac): Add an invocation of
78464         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78465
78466 2006-01-10  Bruno Haible  <bruno@clisp.org>
78467
78468         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78469         Reported by Werner Lemberg <wl@gnu.org>.
78470
78471 2006-01-10  Bruno Haible  <bruno@clisp.org>
78472
78473         * lib/localcharset.c: Update from GNU gettext.
78474
78475 2006-01-10  Bruno Haible  <bruno@clisp.org>
78476
78477         * lib/argp.h (__const): Remove macro. Use const instead.
78478         * lib/argp-fmtstream.h (__const): Likewise.
78479         * lib/glob_.h (__const): Remove macro.
78480         * lib/glob-libc.h: Use const instead of __const.
78481
78482 2006-01-10  Bruno Haible  <bruno@clisp.org>
78483
78484         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78485         variable.
78486         Needed to avoid an automake error regarding the 'gettext' module.
78487
78488 2006-01-09  Simon Josefsson  <jas@extundo.com>
78489
78490         * modules/inet_ntop (Depends-on): Add restrict.
78491
78492 2006-01-09  Simon Josefsson  <jas@extundo.com>
78493
78494         * modules/gc-rijndael-tests (License): Put under LGPL.
78495
78496         * modules/gc-des-tests (License): Likewise.
78497
78498         * modules/gc-arcfour-tests (License): Likewise.
78499
78500         * modules/gc-arctwo-tests (License): Likewise.
78501
78502         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78503
78504         * modules/gc-hmac-sha1-tests (Files): Likewise.
78505
78506         * modules/gc-hmac-md5-tests (License): Likewise.
78507
78508         * modules/gc-sha1-tests (License): Likewise.
78509
78510         * modules/gc-md5-tests (License): Likewise.
78511
78512         * modules/gc-md4-tests (License): Likewise.
78513
78514         * modules/gc-md2-tests (License): Likewise.
78515
78516         * modules/gc-tests (License): Likewise.
78517
78518         * modules/des-tests (License): Likewise.
78519
78520         * modules/md4-tests (License): Likewise.
78521
78522         * modules/md2-tests (License): Likewise.
78523
78524 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         Sync from coreutils:
78527
78528         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78529         * modules/lib-ignore: New file.
78530         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78531         chdir-safer.m4, lchmod.m4.
78532         * modules/openat: Add mkdirat.c, openat-priv.h.
78533
78534 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         Sync from coreutils.
78537         * m4/lib-ignore.m4: New file.
78538         * m4/lchmod.m4: New file.
78539
78540 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         Sync from coreutils.
78543         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78544         for write access: POSIX says that must fail.
78545         * lib/fts.c (diropen): Likewise.
78546         * lib/save-cwd.c (save_cwd): Likewise.
78547         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78548         well, for minor improvements on hosts that lack O_DIRECTORY.
78549         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78550         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78551         Fall back on chown if open failed with EACCES.
78552
78553         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78554         Report an error at compile-time if only a 1-second nominal clock
78555         resolution is found.
78556
78557         * lib/lchmod.h: New file.
78558         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78559         (make_dir_parents): Use lchown rather than chown, and
78560         lchmod rather than chmod.
78561
78562         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78563         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78564         "proc" reported by n0dalus.
78565
78566         * lib/mountlist.c: Include <limits.h>.
78567         (dev_from_mount_options)
78568         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78569         New function.  It no longer assumes "dev=" has the System V meaning
78570         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78571         (read_file_system_list)
78572         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78573         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78574         dev= in that case.
78575
78576         * lib/posixtm.h (PDS_PRE_2000): New macro.
78577         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78578         allow_century.  All usages changed.  Reject dates outside the range
78579         1969-1999 if PDS_PRE_2000 is used.
78580
78581 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         Sync from coreutils.
78584         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78585         (Time of day items): Mention the possibility of leap seconds.
78586         Problem reported by Dr. David Alan Gilbert.
78587
78588 2006-01-09  Jim Meyering  <jim@meyering.net>
78589
78590         Sync from coreutils.
78591
78592         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78593
78594         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78595
78596         * lib/modechange.c (mode_compile): Reject an invalid mode string
78597         that starts with an octal digit.  From Andreas Gruenbacher.
78598
78599         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78600         and dup to open_safer and dup_safer, respectively.
78601         (openat_permissive): Fix typo in comment.
78602
78603         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78604         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78605         (_): Remove; no longer needed.
78606         (openat): Renamed from rpl_openat; no need for rpl_openat
78607         since openat.h renames openat for us.
78608         Replace most of the body with a call to openat_permissive,
78609         to avoid duplicate code.
78610         Port to (probably hypothetical) environments were mode_t is
78611         wider than int.
78612         (openat_permissive): Require mode arg, so that we can check
78613         types better.  Put it just after flags.  Change cwd failure
78614         indicator from pointer-to-bool to pointer-to-errno-value.
78615         All callers changed.
78616         Invoke openat_save_fail and/or openat_restore_fail if
78617         cwd_errno is null, so that openat can call us.
78618         (openat_permissive, fdopendir, fstatat, unlinkat):
78619         Simplify errno handling to avoid some duplicate code,
78620         as it's OK to set errno on success.
78621         * lib/openat.h: Revamp code so that function macros depend on
78622         __OPENAT_PREFIX only, not also on AT_FDCWD.
78623         (openat_ro): Remove.  Caller changed to use openat_permissive.
78624         (openat_permissive): Now a macro, if not a function.
78625         (openat_restore_fail, openat_save_fail): Now always functions,
78626         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78627
78628         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78629         and openat.c.
78630         * lib/mkdirat.c: Include openat-priv.h.
78631         Remove definitions of macros defined therein.
78632         * lib/openat.c: Likewise.
78633
78634         * lib/mkdirat.c (mkdirat): New file and function.
78635         * lib/openat.h (mkdirat): Declare.
78636
78637         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78638
78639         * lib/openat.h (openat_permissive): Declare.
78640         (openat_ro): Define.
78641
78642         * lib/openat.c (EXPECTED_ERRNO): New macro.
78643         (openat_permissive): New function -- used in remove.c rewrite.
78644         (all functions): Set errno just before returning, only if there
78645         was an actual failure.
78646         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78647
78648         Emulate openat-family functions using Linux's procfs, if possible.
78649         Idea and some code based on Ulrich Drepper's glibc changes.
78650
78651         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78652         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78653         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78654         before falling back on save_cwd and restore_cwd.
78655         (fdopendir, fstatat, unlinkat): Likewise.
78656
78657         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78658         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78659
78660         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78661         as second argument to va_arg.  Otherwise, some versions of gcc
78662         warn that `if this code is reached, the program will abort'.
78663
78664 2006-01-09  Jim Meyering  <jim@meyering.net>
78665
78666         Sync from coreutils.
78667         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78668         Require openat-priv.h.
78669
78670 2006-01-09  Bruno Haible  <bruno@clisp.org>
78671
78672         * modules/strnlen (Include): Use strnlen.h.
78673
78674 2006-01-09  Bruno Haible  <bruno@clisp.org>
78675
78676         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78677
78678 2006-01-09  Bruno Haible  <bruno@clisp.org>
78679
78680         * lib/sysexit_.h (EX_OK): New macro.
78681         Suggested by Martin Lambers <marlam@marlam.de>.
78682
78683 2006-01-09  Bruno Haible  <bruno@clisp.org>
78684
78685         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78686         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78687
78688 2006-01-09  Bruno Haible  <bruno@clisp.org>
78689
78690         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78691         numbers.
78692
78693 2006-01-09  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78696         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78697         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78698         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78699
78700 2006-01-09  Bruno Haible  <bruno@clisp.org>
78701
78702         * build-aux/javacomp.sh.in: New file, moved from lib/.
78703         * modules/javacomp-script (Files): Update.
78704         (configure.ac): Add AC_CONFIG_FILES invocation.
78705         (EXTRA_DIST): Remove variable.
78706
78707         * build-aux/javaexec.sh.in: New file, moved from lib/.
78708         * modules/javaexec (Files): Update.
78709         (configure.ac): Add AC_CONFIG_FILES invocation.
78710         (EXTRA_DIST): Remove javaexec.sh.in.
78711
78712         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78713         * modules/csharpcomp-script (Files): Update.
78714         (configure.ac): Add AC_CONFIG_FILES invocation.
78715         (EXTRA_DIST): Remove variable.
78716
78717         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78718         * modules/csharpexec (Files): Update.
78719         (configure.ac): Add AC_CONFIG_FILES invocation.
78720         (EXTRA_DIST): Remove csharpexec.sh.in.
78721
78722 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78723
78724         Sync from coreutils.
78725
78726         Add POSIX ACL support
78727         * lib/acl.h (copy_acl, set_acl): Add declarations.
78728         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78729         systems other than Linux.
78730         (chmod_or_fchmod): New function: use fchmod when possible,
78731         and chmod otherwise.
78732         (file_has_acl): Add a POSIX ACL implementation, with a
78733         Linux-specific subcase.
78734         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78735         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78736         acls are unsupported.
78737         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78738         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78739         are unsupported.
78740
78741 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78742
78743         Sync from coreutils.
78744         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78745
78746 2006-01-07  Bruno Haible  <bruno@clisp.org>
78747
78748         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78749         gl_EARLY.
78750
78751 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78752
78753         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78754         Problem reported for Mingw by Mark Junker.
78755
78756 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * README: Gnulib normally doesn't generate a tarball.
78759
78760 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78763         long int, not int, for nanosecond counts, so that people who are
78764         used to POSIX struct timespec won't be surprised.  Reported by Jim
78765         Meyering.
78766
78767 2005-12-28  Bruno Haible  <bruno@clisp.org>
78768
78769         * build-aux/config.rpath: Update from GNU gettext.
78770
78771 2005-12-16  Jim Meyering  <jim@meyering.net>
78772
78773         * modules/fprintftime: New module.
78774         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78775
78776 2005-12-16  Jim Meyering  <jim@meyering.net>
78777
78778         * m4/fprintftime.m4: New file.
78779
78780 2005-12-16  Jim Meyering  <jim@meyering.net>
78781
78782         * lib/fprintftime.c, lib/fprintftime.h: New files.
78783
78784 2005-12-15  Simon Josefsson  <jas@extundo.com>
78785
78786         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78787         new m4/socklen.m4.
78788
78789 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78790
78791         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78792         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78793
78794 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78795
78796         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78797         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78798         struct uparams is valid. Fall back to the default values if it is
78799         not.
78800
78801 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78802
78803         * modules/argp (Files): Add argp-pin.c
78804         (Depends-on): dirname
78805         (lib_SOURCES): Add argp-pin.c
78806
78807 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78808
78809         * m4/argp.m4:  Check if program_invocation_name and
78810         program_invocation_short_name are declared and define appropriate
78811         macros if they are not.
78812
78813 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78814
78815         * lib/argp-help.c (__argp_base_name): New function
78816         (__argp_short_program_name): Rewrite using __argp_base_name
78817         * lib/argp-namefrob.h: Define program_invocation_name and
78818         program_invocation_short_name if requested
78819         (__argp_base_name): Add prototype
78820         * lib/argp-parse.c (argp_def): Use gettext wrappers
78821         (argp_default_parser): Use __argp_base_name
78822         * lib/argp-pin.c: New file. Defines program_invocation_name and
78823         program_invocation_short_name on systems that lack them.
78824
78825 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78828         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78829         porting problem reported by Georg Schwarz in
78830         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78831
78832 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78833
78834         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78835         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78836         porting problem reported by Georg Schwarz in
78837         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78838
78839 2005-12-05  Bruno Haible  <bruno@clisp.org>
78840
78841         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78842         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78843         Reported by Mark Junker <mjscod@gmx.de>.
78844
78845 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78848         Use implementation from Albert Chin, with some
78849         comments/corrections by Stepan Kasal and myself.
78850
78851 2005-12-02  Bruno Haible  <bruno@clisp.org>
78852
78853         * gnulib-tool (func_import): Accept GPLed build tool modules when
78854         --lgpl is given.
78855         * modules/csharpcomp-script: New file.
78856         * modules/csharpcomp: Depend on it.
78857         * modules/javacomp-script: New file.
78858         * modules/javacomp: Depend on it.
78859         Suggested by Simon Josefsson.
78860
78861 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78862
78863         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78864         statement, to work around an HP-UX 10.20 compiler bug reported by
78865         Peter O'Gorman.
78866
78867 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * modules/savedir (Depends-on): Add openat.
78870
78871 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78874         (uintmax_t) [defined uintmax_t]: Do not declare.
78875         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78876         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78877         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78878         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78879         sake of portability to weird hosts that C allows (though we don't
78880         know of any practical examples).
78881
78882         * lib/savedir.h (fdsavedir): New decl.
78883         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78884         contains most of the former guts of savedir.
78885         (savedir): Use savedirstream.
78886         Include "openat.h".
78887
78888 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * modules/obstack (Files): Add m4/ulonglong.m4.
78891         Problem reported by Davide Angelocola.
78892
78893 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78894
78895         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78896         coreutils no longer futzes with rounding modes.
78897
78898 2005-11-14  Jim Meyering  <jim@meyering.net>
78899
78900         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78901         replacement of mkstemp.
78902
78903 2005-11-10  Simon Josefsson  <jas@extundo.com>
78904
78905         * lib/readline.c: Remove EOL.
78906
78907 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * modules/gethrxtime (Depends-on): Add gettime.
78910
78911 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78914         or gettimeofday; no longer needed.
78915
78916 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78919         time business.
78920         (gethrxtime) [! (HAVE_NANOUPTIME
78921         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78922         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78923         our own approximation.
78924
78925 2005-11-08  Eric Blake  <ebb9@byu.net>
78926
78927         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78928
78929 2005-11-08  Eric Blake  <ebb9@byu.net>
78930
78931         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78932
78933 2005-11-04  Bruno Haible  <bruno@clisp.org>
78934
78935         * gnulib-tool: Implement --update mode.
78936
78937 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         Fix porting problem reported by Theodoros V. Kalamatianos.
78940         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78941         Don't assume that futimes failing means we must fail.
78942
78943 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78946         variables to suggest the intended function of the PATH_MAX check.
78947
78948 2005-10-30  Kean Johnston  <jkj@sco.com>
78949
78950         Trivial changes to support SCO systems.
78951         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78952         as PATH_MAX.
78953         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78954         where __ptr is null when no I/O is pending.
78955
78956 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78959         leave errno alone.  Problem reported by Dmitry V. Levin.
78960
78961 2005-10-28  Simon Josefsson  <jas@extundo.com>
78962
78963         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78964         Test more.
78965
78966         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78967
78968         * modules/md2, modules/md2-tests: New files.
78969
78970 2005-10-28  Simon Josefsson  <jas@extundo.com>
78971
78972         * m4/inet_ntop.m4: More tests.
78973
78974         * m4/gc-md2.m4, md2.m4: New file.
78975
78976 2005-10-28  Simon Josefsson  <jas@extundo.com>
78977
78978         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78979         "restrict" keywords, as per POSIX.  Protect the function
78980         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78981         Don't use K&R prototypes.  Check the sprintf return values.
78982         Re-define EAFNOSUPPORT if not present.  Indent.
78983
78984         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78985         suggested by Bruno Haible <bruno@clisp.org>.
78986
78987         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78988
78989         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78990
78991         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78992         libgcrypt).
78993
78994         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78995
78996         * lib/md2.h, lib/md2.c: New files.
78997
78998 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79001         errno alone.  Problem reported by Frederic Jolliton.
79002
79003 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79004
79005         * modules/verify (License): Change from GPL to LGPL.  This is a
79006         tiny module and there are apparently near-equivalents that are
79007         under the BSD license.
79008
79009 2005-10-24  Simon Josefsson  <jas@extundo.com>
79010
79011         * modules/sha1: Relicense to LGPL.
79012
79013 2005-10-24  Simon Josefsson  <jas@extundo.com>
79014
79015         * lib/md4.h: Shrink buffer size, now that we changed the type.
79016
79017 2005-10-23  Simon Josefsson  <jas@extundo.com>
79018
79019         * gnulib-tool (func_import): Fix --tests-base.
79020
79021 2005-10-22  Simon Josefsson  <jas@extundo.com>
79022
79023         * modules/arcfour (Depends-on): Need stdint.
79024
79025 2005-10-22  Simon Josefsson  <jas@extundo.com>
79026
79027         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79028         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79029
79030 2005-10-22  Simon Josefsson  <jas@extundo.com>
79031
79032         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79033         suggested by Bruno Haible <bruno@clisp.org>.
79034
79035 2005-10-22  Simon Josefsson  <jas@extundo.com>
79036
79037         * lib/crc.h: Include stddef.h, for size_t.
79038
79039 2005-10-22  Simon Josefsson  <jas@extundo.com>
79040
79041         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79042         arcfour_context struct (simplify test vector testing in GNU
79043         Shishi).
79044
79045 2005-10-21  Simon Josefsson  <jas@extundo.com>
79046
79047         * modules/des, modules/des-tests: New files.
79048
79049         * modules/gc-des, modules/gc-des-tests: New files.
79050
79051         * tests/test-des.c, tests/test-gc-des.c: New file.
79052
79053 2005-10-21  Simon Josefsson  <jas@extundo.com>
79054
79055         * modules/arctwo, modules/arctwo-tests: New files.
79056
79057         * tests/test-arctwo.c: New file.
79058
79059         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79060
79061         * tests/test-gc-arctwo.c: New file.
79062
79063 2005-10-21  Simon Josefsson  <jas@extundo.com>
79064
79065         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79066         Bruno Haible <bruno@clisp.org>.
79067
79068         * m4/gc-des.m4: New file.
79069
79070 2005-10-21  Simon Josefsson  <jas@extundo.com>
79071
79072         * m4/arctwo.m4: New file.
79073
79074         * m4/gc-arctwo.m4: New file.
79075
79076 2005-10-21  Simon Josefsson  <jas@extundo.com>
79077
79078         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79079         block.
79080
79081 2005-10-21  Simon Josefsson  <jas@extundo.com>
79082
79083         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79084         <bruno@clisp.org>.
79085
79086         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79087
79088         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79089         Bruno Haible <bruno@clisp.org>.
79090
79091         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79092         <bruno@clisp.org>.
79093
79094 2005-10-21  Simon Josefsson  <jas@extundo.com>
79095
79096         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79097
79098 2005-10-21  Simon Josefsson  <jas@extundo.com>
79099
79100         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79101
79102 2005-10-21  Simon Josefsson  <jas@extundo.com>
79103
79104         * lib/des.h, lib/des.c: New files.
79105
79106         * lib/gc-gnulib.c: Support DES.c
79107
79108 2005-10-21  Simon Josefsson  <jas@extundo.com>
79109
79110         * lib/arctwo.h, lib/arctwo.c: New files.
79111
79112         * lib/gc-gnulib.c: Support ARCTWO.
79113
79114 2005-10-21  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79117         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79118
79119 2005-10-21  Simon Josefsson  <jas@extundo.com>
79120
79121         * gnulib-tool (func_import, func_create_testdir): Define automake
79122         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79123         Makefile.am snippet),
79124         suggested by Bruno Haible <bruno@clisp.org>.
79125
79126         * modules/gc (Makefile.am): Use it.
79127
79128 2005-10-21  Bruno Haible  <bruno@clisp.org>
79129
79130         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79131         patch.
79132
79133 2005-10-19  Simon Josefsson  <jas@extundo.com>
79134
79135         * tests/test-gc-rijndael.c: New file.
79136
79137         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79138
79139 2005-10-19  Simon Josefsson  <jas@extundo.com>
79140
79141         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79142         interface too.
79143
79144 2005-10-19  Simon Josefsson  <jas@extundo.com>
79145
79146         * tests/test-gc-arcfour.c: New file.
79147
79148         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79149
79150 2005-10-19  Simon Josefsson  <jas@extundo.com>
79151
79152         * modules/gc-md4, modules/gc-md4-tests: New file.
79153
79154         * tests/test-gc-md4.c: New file.
79155
79156 2005-10-19  Simon Josefsson  <jas@extundo.com>
79157
79158         * m4/gc-md4.m4: New file.
79159
79160 2005-10-19  Simon Josefsson  <jas@extundo.com>
79161
79162         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79163         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79164         <kasal@ucw.cz>.
79165
79166 2005-10-19  Simon Josefsson  <jas@extundo.com>
79167
79168         * m4/gc-arcfour.m4: New file.
79169
79170         * m4/gc-rijndael.m4: New file.
79171
79172 2005-10-19  Simon Josefsson  <jas@extundo.com>
79173
79174         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79175
79176 2005-10-19  Simon Josefsson  <jas@extundo.com>
79177
79178         * lib/gc-gnulib.c: Support ARCFOUR.
79179
79180 2005-10-19  Simon Josefsson  <jas@extundo.com>
79181
79182         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79183         support.
79184
79185         * lib/gc.h: Add ECB enum type.
79186
79187         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79188
79189 2005-10-18  Simon Josefsson  <jas@extundo.com>
79190
79191         * tests/test-md5.c: New file.
79192
79193         * modules/md5-tests: New file.
79194
79195 2005-10-18  Simon Josefsson  <jas@extundo.com>
79196
79197         * tests/test-md4.c: New file.
79198
79199         * modules/md4, modules/md4-tests: New files.
79200
79201 2005-10-18  Simon Josefsson  <jas@extundo.com>
79202
79203         * m4/md4.m4: New file.
79204
79205 2005-10-18  Simon Josefsson  <jas@extundo.com>
79206
79207         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79208
79209 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79210
79211         * gnulib-tool (func_create_testdir): Omit the second check whether
79212         BUILT_SOURCES in nonempty.
79213
79214 2005-10-17  Simon Josefsson  <jas@extundo.com>
79215
79216         * tests/test-rijndael.c: New file.
79217
79218 2005-10-17  Simon Josefsson  <jas@extundo.com>
79219
79220         * modules/sha1: Depend on stdint instead of md5.
79221
79222         * modules/md5: Depend on stdint, remove uint32_t.
79223
79224 2005-10-17  Simon Josefsson  <jas@extundo.com>
79225
79226         * modules/gc-sha1-tests: New file.
79227
79228         * tests/test-gc-sha1.c: New file.
79229
79230 2005-10-17  Simon Josefsson  <jas@extundo.com>
79231
79232         * m4/md5.m4: Remove call to uint32_t.m4.
79233
79234 2005-10-17  Simon Josefsson  <jas@extundo.com>
79235
79236         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79237
79238         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79239         md5.h.
79240
79241         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79242
79243         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79244
79245 2005-10-17  Simon Josefsson  <jas@extundo.com>
79246
79247         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79248
79249 2005-10-17  Simon Josefsson  <jas@extundo.com>
79250
79251         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79252
79253 2005-10-17  Simon Josefsson  <jas@extundo.com>
79254
79255         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79256
79257         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79258
79259 2005-10-17  Bruno Haible  <bruno@clisp.org>
79260
79261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79262         that it can also be used in a test.
79263
79264 2005-10-16  Bruno Haible  <bruno@clisp.org>
79265
79266         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79267         TESTS_ENVIRONMENT, so that individual tests can augment it.
79268
79269         * gnulib-tool (func_create_testdir): Use an intermediate target for
79270         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79271         macros, like $(ALLOCA_H), which cannot be passed through the command
79272         line.
79273
79274 2005-10-15  Simon Josefsson  <jas@extundo.com>
79275
79276         * modules/rijndael-tests: New file.
79277
79278         * modules/rijndael: New file.
79279
79280 2005-10-15  Simon Josefsson  <jas@extundo.com>
79281
79282         * m4/rijndael.m4: New file.
79283
79284 2005-10-15  Simon Josefsson  <jas@extundo.com>
79285
79286         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79287
79288         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79289
79290 2005-10-14  Simon Josefsson  <jas@extundo.com>
79291
79292         * tests/test-arcfour.c: New file.
79293
79294         * modules/arcfour, modules/arcfour-tests: New files.
79295
79296 2005-10-14  Simon Josefsson  <jas@extundo.com>
79297
79298         * m4/arcfour.m4: New file.
79299
79300 2005-10-14  Simon Josefsson  <jas@extundo.com>
79301
79302         * lib/arcfour.h, lib/arcfour.c: New files.
79303
79304 2005-10-14  Roland McGrath  <roland@redhat.com>
79305
79306         Import from libc.  [BZ #1331]
79307         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79308         macro argument.
79309         Reported by Matej Vela <vela@debian.org>.
79310
79311 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79314         include <wchar.h>; no longer needed.
79315
79316 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79319
79320 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79321         and  Ulrich Drepper  <drepper@redhat.com>
79322
79323         Import from libc.
79324         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79325         instead of inline stream orientation test and two separate
79326         function calls.  Pay no attention to USE_IN_LIBIO.
79327
79328 2005-10-13  Simon Josefsson  <jas@extundo.com>
79329
79330         * modules/gc-hmac-md5-tests: New file.
79331
79332         * tests/test-gc-hmac-sha1.c: New file.
79333
79334         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79335
79336         * modules/gc-hmac-md5-tests: New file.
79337
79338         * tests/test-gc-md5.c: New file.
79339
79340         * modules/gc-md5-tests: New file.
79341
79342 2005-10-13  Simon Josefsson  <jas@extundo.com>
79343
79344         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79345         Move memory allocation outside of loop.
79346
79347 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79350         intermediate directory is in a read-only file system.  Problem
79351         reported by Eric Blake.
79352
79353 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79354
79355         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79356
79357 2005-10-12  Simon Josefsson  <jas@extundo.com>
79358
79359         * tests/test-hmac-sha1.c: New file.
79360
79361         * modules/hmac-sha1-tests: New file.
79362
79363         * modules/hmac-sha1: New file.
79364
79365 2005-10-12  Simon Josefsson  <jas@extundo.com>
79366
79367         * modules/gc-sha1: New file.
79368
79369 2005-10-12  Simon Josefsson  <jas@extundo.com>
79370
79371         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79372
79373         * tests/test-gc-pbkdf2-sha1.c: New file.
79374
79375 2005-10-12  Simon Josefsson  <jas@extundo.com>
79376
79377         * modules/gc-md5, modules/gc-hmac-md5: New files.
79378
79379         * modules/gc (Files): Remove md5, memxor and hmac files.
79380
79381 2005-10-12  Simon Josefsson  <jas@extundo.com>
79382
79383         * m4/gc-pbkdf2-sha1.m4: New file.
79384
79385         * m4/gc-hmac-sha1.m4: New file.
79386
79387         * m4/gc-sha1: New file.
79388
79389         * m4/hmac-sha1.m4: New file.
79390
79391 2005-10-12  Simon Josefsson  <jas@extundo.com>
79392
79393         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79394
79395         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79396
79397 2005-10-12  Simon Josefsson  <jas@extundo.com>
79398
79399         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79400         suggested by Bruno Haible <bruno@clisp.org>.
79401
79402 2005-10-12  Simon Josefsson  <jas@extundo.com>
79403
79404         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79405
79406 2005-10-12  Simon Josefsson  <jas@extundo.com>
79407
79408         * lib/gc-pbkdf2-sha1.c: New file.
79409
79410         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79411
79412 2005-10-12  Simon Josefsson  <jas@extundo.com>
79413
79414         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79415
79416         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79417
79418 2005-10-12  Simon Josefsson  <jas@extundo.com>
79419
79420         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79421         GC_USE_HMAC_MD5, respectively.
79422
79423         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79424         (gc_md5): Fix typo.
79425
79426         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79427
79428         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79429
79430         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79431
79432 2005-10-12  Bruno Haible  <bruno@clisp.org>
79433
79434         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79435         Reported by Stepan Kasal <kasal@ucw.cz>.
79436
79437 2005-10-11  Simon Josefsson  <jas@extundo.com>
79438
79439         * tests/test-crc.c: New file.
79440
79441         * modules/crc, modules/crc-tests: New files.
79442
79443 2005-10-11  Simon Josefsson  <jas@extundo.com>
79444
79445         * m4/crc.m4: New file.
79446
79447 2005-10-11  Simon Josefsson  <jas@extundo.com>
79448
79449         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79450
79451         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79452
79453         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79454
79455 2005-10-11  Simon Josefsson  <jas@extundo.com>
79456
79457         * lib/crc.h, lib/crc.c: New files.
79458
79459         * lib/gc.h (gc_hash_buffer): Add doc.
79460
79461 2005-10-11  Bruno Haible  <bruno@clisp.org>
79462
79463         * modules/c-strcasestr: New file.
79464         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79465
79466 2005-10-11  Bruno Haible  <bruno@clisp.org>
79467
79468         * modules/c-strcase: New file.
79469         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79470
79471 2005-10-11  Bruno Haible  <bruno@clisp.org>
79472
79473         * lib/strcasecmp.c: Include limits.h.
79474         (strcasecmp): Avoid integer overflow on exotic platforms.
79475         * lib/strncasecmp.c: Include limits.h.
79476         (strncasecmp): Avoid integer overflow on exotic platforms.
79477         Reported by Paul Eggert.
79478
79479 2005-10-11  Bruno Haible  <bruno@clisp.org>
79480
79481         * lib/c-strcasestr.h: New file, from GNU gettext.
79482         * lib/c-strcasestr.c: New file, from GNU gettext.
79483
79484 2005-10-11  Bruno Haible  <bruno@clisp.org>
79485
79486         * lib/c-strcase.h: New file, from GNU gettext.
79487         * lib/c-strcasecmp.c: New file, from GNU gettext.
79488         * lib/c-strncasecmp.c: New file, from GNU gettext.
79489
79490 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * modules/mempcpy (License): GPL -> LGPL.
79493         * modules/strchrnul (License): Likewise.
79494         * modules/sysexits (License): Likewise.
79495
79496 2005-10-08  Simon Josefsson  <jas@extundo.com>
79497
79498         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79499
79500 2005-10-07  Simon Josefsson  <jas@extundo.com>
79501
79502         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79503
79504 2005-10-06  Simon Josefsson  <jas@extundo.com>
79505
79506         * tests/test-hmac-md5.c: New file.
79507
79508         * modules/hmac-md5-tests: New file.
79509
79510         * modules/hmac-md5: New file.
79511
79512 2005-10-06  Simon Josefsson  <jas@extundo.com>
79513
79514         * m4/hmac-md5.m4: New file.
79515
79516         * m4/memxor.m4: Require gl_C_RESTRICT.
79517
79518 2005-10-06  Simon Josefsson  <jas@extundo.com>
79519
79520         * lib/memxor.c (memxor): Avoid casts and warnings.
79521
79522 2005-10-06  Simon Josefsson  <jas@extundo.com>
79523
79524         * lib/hmac-md5.c: New file.
79525
79526         * lib/hmac.h: New file.
79527
79528 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79531         promotes to int, not unsigned int, to catch the AIX 5.3
79532         compiler bug.
79533
79534 2005-10-05  Simon Josefsson  <jas@extundo.com>
79535
79536         * modules/memxor: New file.
79537
79538         * modules/iconv (Files): Move config.rpath to havelib, it is used
79539         there.
79540
79541         * modules/havelib (Files): Add config.rpath.
79542
79543 2005-10-05  Simon Josefsson  <jas@extundo.com>
79544
79545         * m4/memxor.m4: New file.
79546
79547 2005-10-05  Simon Josefsson  <jas@extundo.com>
79548
79549         * lib/memxor.c (memxor): Fix compiler error.
79550
79551         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79552         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79553
79554         * lib/memxor.h, lib/memxor.c: New files.
79555
79556         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79557         we assume all systems have it, suggested by Jim Meyering
79558         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79559         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79560         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79561         same reasons.
79562
79563 2005-10-05  Simon Josefsson  <jas@extundo.com>
79564
79565         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79566
79567 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79570         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79571         needed, since the source code now assumes these .h files.
79572
79573 2005-10-05  Derek Price  <derek@ximbiot.com>
79574
79575         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79576
79577 2005-10-05  Bruno Haible  <bruno@clisp.org>
79578
79579         * modules/stdint (License): Change to LGPL.
79580
79581 2005-10-04  Simon Josefsson  <jas@extundo.com>
79582
79583         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79584         D. Baushke" <mdb@gnu.org>.
79585
79586 2005-10-04  Bruno Haible  <bruno@clisp.org>
79587
79588         * lib/verify.h (verify_true): Provide alternative definition for C++.
79589
79590 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79591
79592         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79593         (SSIZE_MAX): New macro, if not already defined.
79594         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79595         than 2 GiB.
79596
79597 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         Sync from coreutils.
79600         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79601         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79602         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79603         ULLONG_MAX doesn't work with 2.7.2.1.
79604
79605 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79608         From Ben Pfaff.
79609
79610         * modules/exclude (Depends-on): Depend on verify.
79611         * modules/strtoimax (Depends-on): Likewise.
79612         * modules/utimecmp (Depends-on): Likewise.
79613
79614 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79615
79616         * lib/exclude.c: Include verify.h.
79617         (verify): Remove.  All callers changed to use verify.h's version.
79618         * lib/strtoimax.c: Likewise.
79619         * lib/utimecmp.c: Likewis.e
79620
79621         Sync from coreutils.
79622         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79623         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79624         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79625         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79626         bother returning ENOSYS if settimeofday or stime fails; just let
79627         them return whatever errno they want to return.
79628         * lib/utimens.c: Include unistd.h, for dup2.
79629         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79630         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79631
79632 2005-10-02  Jim Meyering  <jim@meyering.net>
79633
79634         Sync from coreutils.
79635         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79636         from glibc-2.2.5 that fails for read-only files.
79637
79638 2005-10-02  Jim Meyering  <jim@meyering.net>
79639
79640         Sync from coreutils.
79641         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79642         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79643         `#if HAVE_CONFIG_H'.
79644         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79645         Remove AT_FDCWD test.
79646         Do not consume the fd unless successful.
79647         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79648         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79649         block, so that we don't even try to compile it if settimeofday is
79650         available.  This works around a compilation failure on OSF1 V5.1,
79651         due to stime requiring a `long int*' while tv_sec is `int'.
79652
79653 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79654
79655         Sync from coreutils.
79656         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79657         against `yes', rather than just testing for nonempty.
79658
79659 2005-10-01  Simon Josefsson  <jas@extundo.com>
79660
79661         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79662         and Darwin.
79663
79664         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79665         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79666         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79667         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79668         Check if struct addrinfo is declared.
79669
79670 2005-10-01  Simon Josefsson  <jas@extundo.com>
79671
79672         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79673         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79674         AI_* and EAI_* definitions.  Protect function declarations.
79675
79676 2005-10-01  Jim Meyering  <jim@meyering.net>
79677
79678         Sync from coreutils.
79679
79680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79681         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79682         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79684         in the inet and nsl libraries.  Required on Solaris 5.7.
79685
79686 2005-10-01  Jim Meyering  <jim@meyering.net>
79687
79688         Sync from coreutils.
79689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79690         in the inet and nsl libraries.  Required on Solaris 5.7.
79691
79692 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79693
79694         * lib/getdelim.c (getdelim): Remove unused variables.
79695
79696 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79699         so that the code works even with ancient cpp.  Portability problem
79700         with GCC 2.7.2.1 reported by Thomas M.Ott.
79701
79702 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * modules/regex (Depends-on): Add strcase.
79705
79706         * modules/gethostname (Licence): Change from GPL to LGPL, since
79707         gethostname.c is a trivial implementation of a standard library
79708         function.
79709         * modules/poll (License): Change from GPL to LGPL, since it's
79710         derived from LGPL code.
79711
79712 2005-09-27  Jim Meyering  <jim@meyering.net>
79713
79714         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79715         HAVE_CONFIG_H.
79716
79717         * lib/intprops.h (signed_type_or_expr__): Define.
79718         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79719         for unsigned types.
79720
79721 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * lib/verify.h (verify_expr): Remove, replacing with:
79724         (verify_true): New macro that returns true instead of void.
79725         (verify_type__): Remove.
79726         (verify): Use verify_true rather than verify_type__.
79727
79728 2005-09-26  Bruno Haible  <bruno@clisp.org>
79729
79730         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79731         is necessary.
79732         (lib_SOURCES): Remove mbchar.c.
79733         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79734         (Files): Add m4/mbrtowc.m4.
79735         * modules/mbiter: Likewise.
79736         * modules/mbuiter: Likewise.
79737
79738 2005-09-26  Bruno Haible  <bruno@clisp.org>
79739
79740         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79741         compile mbchar.c if they are not both present.
79742         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79743         * m4/mbiter.m4 (gl_MBITER): Likewise.
79744         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79745         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79746         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79747
79748 2005-09-25  Jim Meyering  <jim@meyering.net>
79749
79750         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79751         also uses socklen_t.
79752
79753 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * lib/utimens.c (ENOSYS): Define if not already defined.
79756         (futimens): Support having a null PATH if the file descriptor
79757         is nonnegative.
79758
79759         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79760         Remove.
79761         (__attribute): Define to empty unless GCC 3.1 or later.
79762         This works around a core dump on OpenBSD 3.4, which has GCC
79763         2.95.3, which dumps core when given __attribute__(()).  It also
79764         simplifies other tests, since we really don't want to bother with
79765         worrying about which ancient version of GCC supported what.
79766         Original problem reported by Yoann Vandoorselaere, with part of
79767         the fix suggested by Derek Price.
79768
79769 2005-09-24  Jim Meyering  <jim@meyering.net>
79770
79771         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79772         so we can once again use a positive bitfield width of 1 -- now we
79773         don't have to explain why we were using a bitfield width of 2.
79774
79775 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79776
79777         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79778         and similarly for the other external symbols.  Problem reported
79779         by James Gallager.
79780
79781         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79782         bug reported by Jim Meyering.
79783
79784         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79786         not needed, since socklen is a prerequisite module.
79787
79788 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79791         Problem reported by Eric Blake.
79792         (getaddrinfo): Initialize se so that it's not garbage.
79793         Redo internal storage allocation so that it doesn't make unportable
79794         assumptions about alignment.
79795         Fix a memory leak.
79796
79797         * lib/utimens.c (futimens): Use futimesat if available.
79798         Prefer it to futimes since it doesn't have the futimes bug.
79799
79800         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79801         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79802         Instead, declare a function that returns a pointer to an array,
79803         and use verify_type__ to declare the size of the array.
79804         Problem and germ of a solution reported by Bruno Haible.
79805         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79806         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79807
79808 2005-09-23  Jim Meyering  <jim@meyering.net>
79809
79810         Sync from coreutils.
79811         Correct build failure (socklen_t not defined) on at least
79812         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79814
79815 2005-09-23  Jim Meyering  <jim@meyering.net>
79816
79817         * modules/getaddrinfo (Depends-on): Add socklen.
79818
79819 2005-09-23  Bruno Haible  <bruno@clisp.org>
79820
79821         * tests/test-verify.c: New file.
79822
79823 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         Sync from coreutils.
79826
79827         * modules/argmatch (Depends-on): Add verify.
79828         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79829         unistd-safer.
79830         * modules/save-cwd (Depends-on): Likewise.
79831
79832         * modules/openat (Files): Add lib/openat-die.c.
79833         (Depends-on): Remove error, exitfail.
79834         Add dirname.
79835
79836         * modules/verify: New file.
79837         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79838         with "verify" module.
79839
79840 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         Sync from coreutils.
79843
79844         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79845         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79846         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79847         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79848         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79849         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79850         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79851         Don't bother checking for string.h, stdlib.h, unistd.h.
79852         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79853         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79854         module's job.
79855         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79856         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79857
79858         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79859         (gl_GETDATE): Use it.
79860
79861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79862
79863 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         Sync from coreutils.
79866
79867         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79868         stat-time.h.
79869         * lib/argmatch.h: Include verify.h
79870         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79871         (ARGMATCH_ASSERT): Remove; unused.
79872         * lib/canonicalize.c: Assume STDC_HEADERS.
79873         * lib/exclude.c: Include "strcase.h".
79874         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79875         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79876         and stdio-safer.h.
79877         (getusershell): Call fopen, not fopen_safer.
79878         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79879         Do not include unistd-safer.h.
79880         (save_cwd): Don't call fd_safer; no longer needed
79881         now that we include fcntl--.h.
79882
79883         * lib/getdate.y (relative_time): New type.
79884         (RELATIVE_TIME_0): New constant.
79885         (parser_control): Use relative_time instead of doing it ourselves.
79886         (%union): Add new relative_time rel member.
79887         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79888         Now typeless.
79889         (relunit, relunit_snumber): Now of type rel.
79890         (zone, rel, relunit, get_date): Adjust to above changes.
79891
79892         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79893         Do not include unistd-safer.h.
79894         (getloadavg): Don't call fd_safer; no longer needed
79895         now that we include fcntl--.h.
79896
79897         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79898         (make_dir_parents): Treat ENOSYS like EEXIST.
79899
79900         Improve quality of diagnostics on restore_cwd failure.
79901         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79902         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79903         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79904         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79905         each time through the loop.  Do not diagnose restore_cwd failure;
79906         that is the caller's job (and perhaps the caller does not care).
79907
79908         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79909         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79910         If the file already exists but is not a directory, don't bother
79911         to try to make its parents.
79912         Close potential file descriptor leak if we can't chdir("/") (!).
79913         Don't always return true if chdir($PWD) fails; return true only
79914         if the requested action was done successfully (except for the
79915         chdir($PWD)).
79916         Don't log final directory unless we actually made it.
79917         Refactor to avoid duplicate code to fix up permissions.
79918         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79919
79920         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79921         to make it a bit faster and (I hope) clearer.
79922         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79923         Fix bug in formats like %2N.
79924
79925         * lib/verify.h: New file.
79926
79927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         Sync from coreutils.
79930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79931
79932 2005-09-22  Jim Meyering  <jim@meyering.net>
79933
79934         Sync from coreutils.
79935
79936         * m4/lstat.m4 (gl_FUNC_LSTAT):
79937         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79938         Remove obsolete comment.
79939         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79940         * m4/xstrtod.m4: Likewise.
79941
79942         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79943
79944 2005-09-22  Jim Meyering  <jim@meyering.net>
79945
79946         Sync from coreutils.
79947
79948         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79949
79950         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79951         the .tm_year member, since otherwise gcc-4.0 would now warn about
79952         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79953
79954         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79955         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79956
79957         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79958         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79959         when run in a time zone for which daylight savings time is in effect
79960         for the starting date.
79961
79962         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79963         stop us from restricting permissions of just-created absolute-named
79964         directories.
79965         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79966         to restore initial working directory.
79967         * lib/mkdir-p.c (make_dir_parents): New parameter:
79968         different_working_dir, to tell caller if/when we change the working
79969         directory and are unable to return to the initial one.
79970         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79971         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79972         `return false'.  This fixes a bug introduced on 2004-07-30.
79973
79974         * lib/openat.c (fdopendir): Be sure to close the supplied
79975         file descriptor before returning.  This makes our replacement
79976         implementation a little closer to Solaris's, where fdopendir
79977         ties the file descriptor to the returned DIR* pointer.
79978         * lib/openat.c (unlinkat): New function.
79979         * lib/openat.h (unlinkat): Add prototype.
79980         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79981         (openat_restore_fail): Rename from openat_restore_die.
79982         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79983
79984         Provide an alternative to exiting immediately upon save_cwd or
79985         restore_cwd failure.  Now, an application can arrange e.g.,
79986         to perform a longjump in that case.
79987         * lib/openat.c: Include dirname.h.
79988         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79989         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79990         and openat_restore_die rather than calling error directly.
79991         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79992
79993         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79994         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79995         define.
79996
79997         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79998         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79999                             int utc, int nanoseconds);
80000         Background:
80001         date should not have to allocate a megabyte of virtual memory to
80002         handle a format argument like +%1048575T.  When implemented with
80003         strftime, it must allocate such a buffer, use strftime to fill it
80004         in, print it, then free it.
80005         With fprintftime, it simply prints everything and exits.
80006         With no need for memory allocation, that's one fewer way to fail.
80007         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80008         optional field width, not before, so we accept %9:z, not %:9z.
80009         (my_strftime): Be sure to use L_('x') for literals.
80010
80011         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80012         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80013         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80014         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80015         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80016         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80017         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80018         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80019         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80020         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80021         * lib/xgethostname.c, lib/xreadlink.c:
80022         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80023
80024         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80025         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80026         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80027         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80028         and don't include <sys/file.h>).
80029
80030 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80031
80032         Sync from coreutils.
80033
80034         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80035         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80036         [!LDAV_DONE]: Avoid unused variable warning.
80037
80038 2005-09-21  Bruno Haible  <bruno@clisp.org>
80039
80040         * lib/unicodeio.h (unicode_to_mb): New declaration.
80041
80042 2005-09-20  Derek Price  <derek@ximbiot.com>
80043
80044         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80045         getaddrinfo.h.
80046
80047 2005-09-20  Bruno Haible  <bruno@clisp.org>
80048
80049         * gnulib-tool: Remove trailing slashes from the values specified for
80050         --source-base, --m4-base, --tests-base, --aux-dir.
80051         Suggested by Simon Josefsson <jas@extundo.com>.
80052
80053 2005-09-20  Bruno Haible  <bruno@clisp.org>
80054
80055         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80056         func_modules_to_filelist, func_import, func_create_testdir): Make all
80057         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80058         change when gnulib-tool is invoked in a different locale.
80059
80060 2005-09-19  Simon Josefsson  <jas@extundo.com>
80061
80062         * m4/socklen.m4: Fix typo.
80063
80064 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80065
80066         Use a consistent style for including <config.h>.
80067         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80068         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80069         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80070         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80071         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80072         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80073         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80074         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80075         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80076         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80077         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80078         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80079         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80080         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80081         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80082         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80083         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80084         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80085         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80086         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80087         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80088         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80089         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80090         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80091         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80092         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80093         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80094         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80095         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80096         lib/xstrtoumax.c, lib/yesno.c:
80097         Standardize inclusion of config.h.
80098         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80099         lib/inttostr.h:  Removed inclusion of config.h from header files.
80100         * lib/inttostr.c:  Adjusted in-tree users.
80101         * lib/timespec.h: Remove superfluous warning to include config.h.
80102         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80103         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80104         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80105         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80106         config.h with HAVE_CONFIG_H.
80107
80108 2005-09-19  Jim Meyering  <jim@meyering.net>
80109
80110         * modules/pathmax (License): Change to LGPL.
80111
80112 2005-09-19  Derek Price  <derek@ximbiot.com>
80113
80114         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80115
80116 2005-09-19  Bruno Haible  <bruno@clisp.org>
80117
80118         * gnulib-tool (import): Provide default for --tests-base.
80119
80120 2005-09-19  Bruno Haible  <bruno@clisp.org>
80121
80122         * doc/quote.texi: New file, extracted from gnulib.texi.
80123         * doc/ctime.texi: New file, extracted from gnulib.texi.
80124         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80125         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80126         * doc/gnulib.texi: Include them.
80127
80128 2005-09-18  Bruno Haible  <bruno@clisp.org>
80129
80130         Portability fix.
80131         * gnulib-tool (func_readlink): New function.
80132         (func_ln_if_changed): Use it.
80133
80134 2005-09-18  Bruno Haible  <bruno@clisp.org>
80135
80136         * gnulib-tool: Support --with-tests also with --import.
80137         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80138         (func_import): Use variables $testsbase and $inctests. Emit a
80139         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80140         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80141         SUBDIRS += $testsdir.
80142         (func_create_testdir): Update.
80143
80144 2005-09-18  Bruno Haible  <bruno@clisp.org>
80145
80146         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80147         instead of $dry_run.
80148         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80149         (func_ln_if_changed): Don't handle dry-run here.
80150         (func_import): In dry-run mode, detect more precisely which actions
80151         would be performed, and don't use "...ing" verbs.
80152
80153 2005-09-18  Bruno Haible  <bruno@clisp.org>
80154
80155         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80156         (func_import): Use join on two temporary files instead of three nested
80157         loops, in order to determine which files are new or old.
80158
80159 2005-09-18  Bruno Haible  <bruno@clisp.org>
80160
80161         * gnulib-tool (func_import): Comment out code that spits out the
80162         new files with --dry-run.
80163
80164 2005-09-18  Bruno Haible  <bruno@clisp.org>
80165
80166         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80167
80168 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         * lib/stat-time.h: New file.
80171         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80172         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80173         in a different way.
80174         (timespec_cmp): New function.
80175         * lib/utimecmp.c: Include stat-time.h.
80176         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80177         members exist, not on the obsolescent ST_MTIM_NSEC.
80178         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80179
80180 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80183
80184 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * MODULES.html.sh (File system functions): Add stat-time.
80187         * modules/stat-time: New file.
80188         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80189         is now done in a different way, by the stat-time module.
80190         * modules/utimecmp (Depends-on): Add stat-time.
80191
80192 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         * m4/st_mtim.m4: Remove.  Superseded by...
80195         * m4/stat-time.m4: New file.
80196         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80197         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80198
80199 2005-09-15  Derek Price  <derek@ximbiot.com>
80200
80201         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80202
80203 2005-09-15  Derek Price  <derek@ximbiot.com>
80204
80205         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80206         * lib/regex_internal.c: Ditto, using this...
80207         (__GNUC_PREREQ): ...new macro.
80208         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80209         using...
80210         (__GNUC_PREREQ): ...this new macro.
80211
80212         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80213
80214 2005-09-15  Derek Price  <derek@ximbiot.com>
80215             Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80218         changes, consolidating in...
80219         * lib/regex_internal.h: ...this file.
80220
80221 2005-09-13  Jim Meyering  <jim@meyering.net>
80222
80223         * lib/canon-host.c: Filter through gnu indent and reword comments
80224         slightly.
80225         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80226
80227 2005-09-13  Derek Price  <derek@ximbiot.com>
80228
80229         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80230         failure.
80231         Reported by Jim Meyering  <jim@meyering.net>.
80232
80233 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80234
80235         * lib/base64.c: Typo.
80236         (base64_encode): Put b64str in initialized data section.
80237
80238 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         Merge glibc and coreutils changes into gnulib, plus a few
80241         extra fixes.
80242         * lib/md5.c: Use #error rather than a string.
80243         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80244         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80245         (__attribute__): Define to empty for non recent-GCC.
80246         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80247         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80248         Renamed from their non-__ counterparts, with new macros replacing
80249         them if not _LIBC.  Add __THROW attribute.
80250         (rol): Remove.
80251         (struct md5_ctx): Align buffer if using GCC.
80252         * lib/sha1.h (struct sha1_ctx): Likewise.
80253         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80254         The old name was backwards.
80255         (NOTSWAP): Remove; not used.
80256         (rol): New macro, moved here from md5.h.
80257         (sha1_process_block): Remove a FIXME that doesn't make sense.
80258
80259 2005-09-12  Derek Price  <derek@ximbiot.com>
80260
80261         Return usable errors from canon-host.
80262         * lib/canon-host.h: New file.
80263         * lib/canon-host.c (canon_host): Wrap...
80264         (canon_host_r): ...this new function, which now relies exclusively on
80265         getaddrinfo.
80266         (ch_strerror): New function.
80267         (last_cherror): New global.
80268         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80269         interface.
80270         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80271         void *.
80272         (freeaddrinfo): Free ai->ai_canonname when set.
80273
80274 2005-09-12  Derek Price  <derek@ximbiot.com>
80275
80276         Make canon-host require getaddrinfo.
80277         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80278         AC_LIBSOURCE canon-host.h.  Call...
80279         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80280         gl_GETADDRINFO.
80281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80282
80283 2005-09-12  Derek Price  <derek@ximbiot.com>
80284
80285         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80286         LGPL.
80287         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80288
80289 2005-09-12  Derek Price  <derek@ximbiot.com>
80290
80291         * lib/gai_strerror.c: Include config.h when available.  Include
80292         getaddrinfo.h before other headers to test interface.
80293         Reported by Larry Jones <lawrence.jones@ugs.com>.
80294
80295 2005-09-12  Derek Price  <derek@ximbiot.com>
80296             Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * modules/glob (Files): Add glob-libc.h.
80299
80300 2005-09-12  Derek Price  <derek@ximbiot.com>
80301             Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80304         glob_.h, glob-libc.h.
80305         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80306
80307 2005-09-12  Derek Price  <derek@ximbiot.com>
80308             Paul Eggert  <eggert@cs.ucla.edu>
80309
80310         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80311         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80312         protecting things that should be done only in gnulib contexts.
80313         * lib/glob_.h: New file, containing only the glob things needed for
80314         gnulib.
80315         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80316         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80317         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80318         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80319         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80320         and to respect the namespace rules better.
80321
80322 2005-09-08  Simon Josefsson  <jas@extundo.com>
80323
80324         * modules/socklen: New file.
80325
80326 2005-09-08  Simon Josefsson  <jas@extundo.com>
80327
80328         * m4/socklen.m4: New file.
80329
80330 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * modules/utimens (Files): Add m4/utimbuf.m4, since
80333         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80334         Reported by Sergey Poznyakoff.
80335
80336 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80339         definitions, since that's the preferred style in glibc.
80340         Fix a minor spacing issue, and update copyright notice to match
80341         glibc's.
80342
80343 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80344
80345         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80346
80347 2005-09-06  Simon Josefsson  <jas@extundo.com>
80348
80349         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80350         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80351
80352 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80355         warning.
80356
80357 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80358
80359         * config/srclist.txt: Add glibc bug 1302.
80360
80361 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         Change bitset word type from unsigned int to unsigned long int,
80364         as this has better performance on typical 64-bit hosts.
80365         Port bitset code to hosts with unusual word sizes.
80366         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80367         (build_collating_symbol):
80368         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80369         argument is a bitset.  This is merely a style issue, but it makes
80370         it clearer that an entire array is expected.
80371         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80372         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80373         Port to the case where bitset_word is not the same as unsigned int.
80374         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80375         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80376         Likewise.
80377         * lib/regexec.c (check_dst_limits_calc_pos_1,
80378         check_subexp_matching_top):
80379         (build_trtable, group_nodes_into_DFAstates):
80380         Likewise.
80381         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80382         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80383         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80384         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80385         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80386         * lib/regcomp.c (optimize_subexps, lower_subexp):
80387         Work even if bitset_word has holes in its bitwise representation.
80388         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80389         * lib/regexec.c (check_dst_limits_calc_pos_1,
80390         check_subexp_matching_top):
80391         Likewise.
80392         * lib/regex_internal.c (re_string_reconstruct):
80393         Don't assume UCHAR_MAX == 255.
80394         * lib/regex_internal.h (bitset_set_all): Likewise.
80395         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80396         All uses changed.
80397         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80398         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80399         All uses changed.
80400         (BITSET_WORD_MAX): New macro.
80401         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80402         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80403         (bitset_empty, bitset_copy):
80404         Prefer sizeof (bitset) to multiplying it out ourselves.
80405         (bitset_not_merge): Remove; unused.
80406         (bitset_contain): Return bool, not unsigned int with one bit on.
80407         All callers changed.
80408         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80409         alignment than re_node_set; do this by defining a new internal
80410         type struct dests_alloc and using it to allocate memory.
80411
80412 2005-09-05  Bruno Haible  <bruno@clisp.org>
80413
80414         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80415         links.
80416
80417 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80418
80419         * modules/size_max (Makefile.am): Add size_max.h
80420
80421 2005-09-04  Derek Price  <derek@ximbiot.com>
80422
80423         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80424
80425 2005-09-03  Simon Josefsson  <jas@extundo.com>
80426
80427         * gnulib-tool: Fix typo.
80428
80429 2005-09-03  Simon Josefsson  <jas@extundo.com>
80430
80431         * config/srclist.txt: Add glibc bug 1293.
80432
80433 2005-09-03  Derek Price  <derek@ximbiot.com>
80434
80435         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80436         From Larry Jones <lawrence.jones@ugs.com>.
80437
80438 2005-09-02  Simon Josefsson  <jas@extundo.com>
80439
80440         * modules/socklen: New file.
80441
80442 2005-09-02  Simon Josefsson  <jas@extundo.com>
80443
80444         * modules/havelib: New module.
80445
80446         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80447         Use havelib.
80448
80449 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         Check for arithmetic overflow when calculating sizes, to prevent
80452         some buffer-overflow issues.  These patches are conservative, in the
80453         sense that when I couldn't determine whether an overflow was possible,
80454         I inserted a run-time check.
80455         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80456         macros.
80457         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80458         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80459         (re_xnrealloc, re_x2nrealloc): New inline functions.
80460         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80461         parse_bracket_exp):
80462         (build_equiv_class, build_charclass): Check for arithmetic overflow
80463         in size expression calculations.
80464         * lib/regex_internal.c (re_string_realloc_buffers):
80465         (build_wcs_upper_buffer, re_node_set_add_intersect):
80466         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80467         (re_dfa_add_node, register_state): Likewise.
80468         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80469         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80470         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80471         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80472
80473 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80474
80475         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80476         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80477
80478 2005-09-02  Bruno Haible  <bruno@clisp.org>
80479
80480         Support for lib vs. lib64 distinction on biarch platforms.
80481         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80482         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80484
80485 2005-09-02  Bruno Haible  <bruno@clisp.org>
80486
80487         * gnulib-tool (import): In the other first-use case, provide defaults
80488         as well.
80489
80490 2005-09-02  Bruno Haible  <bruno@clisp.org>
80491
80492         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80493         patches not yet found in the latest gettext release.
80494
80495 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80498         to avoid a collision with bits/local_lim.h in glibc.
80499         All uses changed.  Problem reported by Dmitry V. Levin in
80500         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80501
80502         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80503         bugs in int versus size_t comparisons.
80504         (re_string_context_at): Fix bug where the code assumed that
80505         Idx is signed.
80506
80507         Use bool where appropriate.
80508         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80509         All callers changed.
80510         (calc_eclosure_iter): Likewise, for ROOT arg.
80511         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80512         (build_charclass_op): Likewise, for NON_MATCH arg.
80513         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80514         (re_string_construct_common): Likewise, for ICASE arg.
80515         * lib/regexec.c (re_search_2_stub, re_search_stub):
80516         Likewise, for RET_LEN arg.
80517         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80518         (set_regs): Likewise, for FL_BACKTRACK arg.
80519         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80520         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80521         (calc_eclosure_iter, parse_bracket_exp):
80522         Use bool for internal variables that are booleans.
80523         * lib/regexec.c (re_search_internal, check_matching,
80524         proceed_next_node):
80525         (set_regs, build_sifted_states, sift_states_bkref):
80526         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80527         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80528         (find_collation_sequence_value):
80529         Likewise.
80530         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80531         (re_node_set_compare):
80532         Return bool, not int. All callers changed.
80533         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80534         (build_trtable, check_node_accept): Likewise.
80535         * lib/regex_internal.h: Include stdbool.h.
80536
80537         Fix bugs uncovered when converting to bool.
80538         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80539         failure instead of charging ahead blindly.
80540         * lib/regex_internal.c (register_state): Likewise.
80541         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80542         for freeing internal storage.
80543         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80544         bitset pieces used as boolean, to avoid undefined behavior
80545         on hosts that do int overflow checking.
80546
80547 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80548
80549         * config/srclist.txt: Add glibc bugs 1285-1287.
80550
80551 2005-09-01  Jim Meyering  <jim@meyering.net>
80552
80553         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80554         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80555         Require gl_STAT_MACROS, too.
80556
80557 2005-09-01  Bruno Haible  <bruno@clisp.org>
80558
80559         * gnulib-tool (import): In the first-use case, provide defaults.
80560
80561 2005-09-01  Bruno Haible  <bruno@clisp.org>
80562
80563         * gnulib-tool (func_import): Remove the .tmp files.
80564
80565 2005-09-01  Bruno Haible  <bruno@clisp.org>
80566
80567         * gnulib-tool (func_import): Fix handling of symbolic links.
80568
80569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80572         old glibc regex code mishandles strings longer than 2**31 bytes.
80573         This patch fixes this when the regex code is used in gnulib
80574         (i.e., outside glibc).
80575
80576         This patch should not affect the use of the regex code inside
80577         glibc.  No doubt this problem also needs to be handled for glibc
80578         as well, but the result will be an incompatible change to the
80579         glibc ABI, and the old ABI will have to be supported too.  That
80580         can be the the subject for another patch.
80581
80582         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80583         governing whether the rest of this patch is active.  By default,
80584         the macro is disabled and the patch has no effect.
80585         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80586         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80587         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80588         (re_match_2, re_set_registers): Use the new types.
80589         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80590         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80591         New macros.
80592         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80593         (re_string_context_at, bin_tree_t, re_dfastate_t):
80594         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80595         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80596         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80597         (re_string_char_size_at, re_string_wchar_at):
80598         (re_string_elem_size_at):
80599         Use the new types and macros to port to 64-bit hosts.
80600         Use unsigned types for internal values, so that the code
80601         mostly works even for arrays larger than SSIZE_MAX.
80602         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80603         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80604         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80605         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80606         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80607         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80608         (calc_inveclosure, parse_dup_op, build_range_exp):
80609         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80610         (fetch_number, create_token_tree, mark_opt_subexp):
80611         Likewise.
80612         * lib/regex_internal.c (re_string_construct_common,
80613         create_ci_newstate):
80614         (create_cd_newstate, re_string_allocate, re_string_construct):
80615         (re_string_realloc_buffers, build_wcs_upper_buffer):
80616         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80617         (re_string_reconstruct, re_string_peek_byte_case):
80618         (re_string_fetch_byte_case, re_string_context_at):
80619         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80620         (re_node_set_init_copy, re_node_set_add_intersect):
80621         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80622         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80623         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80624         (re_acquire_state, re_acquire_state_context, register_state):
80625         Likewise.
80626         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80627         search_cur_bkref_entry):
80628         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80629         (re_search_internal, re_search_2_stub, re_search_stub)
80630         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80631         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80632         (update_cur_sifted_state, check_dst_limits):
80633         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80634         (check_subexp_limits, sift_states_bkref, merge_state_array):
80635         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80636         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80637         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80638         (expand_bkref_cache, check_node_accept_bytes):
80639         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80640         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80641         (acquire_init_state_context, check_halt_node_context):
80642         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80643         (sift_states_backward, clean_state_log_if_needed):
80644         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80645         (find_recover_state, transit_state_sb, transit_state_mb):
80646         (transit_state_bkref, build_trtable, match_ctx_clean):
80647         Likewise.
80648         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80649         to work around an assumption that REG_MISSING is negative.
80650
80651         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80652         (seek_collating_symbol_entry) [defined _LIBC]:
80653         (lookup_collation_sequence_value) [defined _LIBC]:
80654         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80655         Use prototypes rather than old-style function definitions.
80656         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80657         (transit_state_sb) [0]:
80658         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80659
80660         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80661         rm_eo.
80662
80663         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80664         (optimize_subexps, lower_subexp):
80665         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80666         since the signed shift might overflow.  Use 1u<<31 instead.
80667         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80668         Likewise.
80669         * lib/regexec.c (check_dst_limits_calc_pos_1,
80670         check_subexp_matching_top): Likewise.
80671
80672         * lib/regcomp.c (optimize_subexps, lower_subexp):
80673         Use CHAR_BIT rather than 8, for clarity.
80674         * lib/regexec.c (check_dst_limits_calc_pos_1):
80675         (check_subexp_matching_top): Likewise.
80676         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80677         have to worry about portability issues when shifting it left.
80678         Remove no-longer-needed test for table_size > 0.
80679         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80680         in a word, as the resulting behavior is undefined.
80681         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80682         in one case, a <= should have been an <, and in another case the
80683         whole test was missing.
80684         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80685         the standard name CHAR_BIT.
80686         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80687         this is not true on one's complement and signed-magnitude hosts.
80688
80689         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80690         next_last_offset.
80691         (struct re_dfa_t): Remove unused member states_alloc.
80692         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80693
80694 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80697         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80698         and large-file glibc and in 32-bit large-file Solaris.
80699
80700 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80703         lengths fit in regoff_t; this isn't true if regoff_t is the same
80704         width as size_t.
80705         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80706         (= START + RANGE) instead of RANGE.  This avoids overflow
80707         problems when regoff_t is the same width as size_t.
80708         All callers changed.
80709         (re_search_2_stub): Check for overflow when adding the
80710         sizes of the two strings.
80711         (re_search_stub): Check for overflow when adding START
80712         to RANGE; if it occurs, substitute the extreme value.
80713
80714 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80717
80718 2005-08-31  Jim Meyering  <jim@meyering.net>
80719
80720         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80721         a pointer-to-const.
80722         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80723         (register_state): Likewise.
80724         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80725         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80726         (group_nodes_into_DFAstates): Likewise.
80727
80728 2005-08-31  Jim Meyering  <jim@meyering.net>
80729
80730         * check-module: Add a FIXME comment.
80731
80732 2005-08-31  Eric Blake  <ebb9@byu.net>
80733
80734         * modules/unistd-safer (Files): Add unistd--.h.
80735         * modules/stdio-safer (Files): Add stdio--.h.
80736
80737 2005-08-31  Derek Price  <derek@ximbiot.com>
80738
80739         * lib/getdelim.c (getdelim): Return EOF on EOF.
80740         Reported by Larry Jones <lawrence.jones@ugs.com>.
80741
80742 2005-08-31  Bruno Haible  <bruno@clisp.org>
80743
80744         Avoid unnecessary diffs in the generated lib/Makefile.am.
80745         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80746         the generated files.
80747         (func_import): Don't set cmd.
80748
80749 2005-08-31  Bruno Haible  <bruno@clisp.org>
80750
80751         * lib/strstr.c: Include <stddef.h>, for NULL.
80752         * lib/strcasestr.c: Likewise.
80753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80754
80755 2005-08-31  Bruno Haible  <bruno@clisp.org>
80756
80757         * gnulib-tool: New option --macro-prefix.
80758         (func_import): Use macro_prefix.
80759         (import): Handle option --macro-prefix.
80760
80761 2005-08-31  Bruno Haible  <bruno@clisp.org>
80762
80763         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80764         Also use new variables cached_lgpl, cached_libtool.
80765
80766 2005-08-31  Bruno Haible  <bruno@clisp.org>
80767
80768         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80769         always instantiating them.
80770
80771 2005-08-31  Bruno Haible  <bruno@clisp.org>
80772
80773         * gnulib-tool (func_import): Read the previous cached settings
80774         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80775         earlier added by gnulib but are now dropped. Warn when a gnulib file
80776         overwrites a non-gnulib file.
80777
80778 2005-08-31  Bruno Haible  <bruno@clisp.org>
80779
80780         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80781         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80782         projects that don't keep autogenerated files in CVS. Put into
80783         actioncmd only the specified modules, not the transitive closure.
80784
80785 2005-08-31  Bruno Haible  <bruno@clisp.org>
80786
80787         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80788         Create directories that shall be filled.
80789         (import): Don't look for gl_* macros in configure.ac. Recurse across
80790         all directories containing a gnulib-cache.m4 files, if meaningful.
80791
80792 2005-08-31  Bruno Haible  <bruno@clisp.org>
80793
80794         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80795         (import): Set seen_libtool when we see gl_LIBTOOL.
80796
80797 2005-08-31  Bruno Haible  <bruno@clisp.org>
80798
80799         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80800         declaration macro definitions from generated gnulib.m4.
80801
80802 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80803
80804         * lib/iconvme.h: Add prototype for iconv_alloc.
80805
80806 2005-08-29  Simon Josefsson  <jas@extundo.com>
80807
80808         * lib/iconvme.c: Fix errno.
80809
80810 2005-08-29  Bruno Haible  <bruno@clisp.org>
80811
80812         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80813         that it works when the directory contains spaces.
80814
80815 2005-08-29  Bruno Haible  <bruno@clisp.org>
80816
80817         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80818
80819 2005-08-29  Bruno Haible  <bruno@clisp.org>
80820
80821         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80822         Emit more advice.
80823
80824 2005-08-29  Bruno Haible  <bruno@clisp.org>
80825         and Stepan Kasal  <kasal@ucw.cz>
80826
80827         * check-module: If more parameters are given, check each of them
80828         separately; add more exceptions, as noted by Jim Meyering.
80829         (check_module): New procedure.
80830         (%exempt_header): Now contains all exceptions.
80831
80832 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80833
80834         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80835
80836 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80837
80838         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80839
80840 2005-08-28  Bruno Haible  <bruno@clisp.org>
80841
80842         * m4/gnulib-tool.m4: New file.
80843
80844 2005-08-27  Jim Meyering  <jim@meyering.net>
80845
80846         * modules/unistd-safer (Files): Add pipe-safer.c.
80847         * modules/fcntl-safer (Files): Add creat-safer.c.
80848
80849 2005-08-27  Jim Meyering  <jim@meyering.net>
80850
80851         * m4/stdlib-safer.m4: New file.  From coreutils.
80852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80853         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80854         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80855         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80856         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80857
80858 2005-08-27  Jim Meyering  <jim@meyering.net>
80859
80860         * lib/fopen-safer.c: Merge minor changes from coreutils.
80861         * lib/dup-safer.c: Likewise.
80862         * lib/fd-safer.c: Likewise.
80863
80864         Merge from coreutils.
80865         * lib/stdio--.h: New file.
80866         * lib/stdlib--.h: New file.
80867         * lib/mkstemp-safer.c: New file.
80868
80869         GNU tar needs these.
80870         * lib/pipe-safer.c: New file.
80871         * lib/creat-safer.c: New file.
80872         * lib/fcntl--.h (creat): Define to creat_safer.
80873         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80874         * lib/unistd--.h (pipe): Define to pipe_safer.
80875         * lib/unistd-safer.h: Declare pipe_safer.
80876
80877 2005-08-26  Simon Josefsson  <jas@extundo.com>
80878
80879         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80880         Haible <bruno@clisp.org>.
80881
80882 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         * lib/regex_internal.h: Remove all references to
80885         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80886         or better.
80887         (bitset_not, bitset_merge, bitset_not_merge):
80888         (bitset_mask, re_string_allocate, re_string_construct):
80889         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80890         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80891         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80892         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80893         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80894         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80895         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80896         (re_acquire_state_context):
80897         Remove unnecessary forward decls.
80898         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80899         Put __attribute at function definition,
80900         now that the function decl has been removed.
80901         * lib/regex_internal.c (re_string_peek_byte_case):
80902         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80903         Likewise.
80904
80905 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80906
80907         * m4/regex.m4: Add AC_PREREQ(2.50).
80908         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80909
80910 2005-08-25  Simon Josefsson  <jas@extundo.com>
80911
80912         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80913         __fsetlocking.
80914
80915 2005-08-25  Simon Josefsson  <jas@extundo.com>
80916
80917         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80918         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80919         GLIBC specific code.
80920
80921 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         Make regex safe for g++.  This fixes one real bug (an "err"
80924         that should have been "*err").  g++ problem reported by
80925         Sam Steingold.
80926         * lib/regex_internal.h (re_calloc): New macro, consistent with
80927         re_malloc etc.  All callers of calloc changed to use re_calloc.
80928         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80929         not int.  All callers changed.
80930         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80931         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80932         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80933         (find_recover_state): Change "err" to "*err"; this fixes what
80934         appears to be a real bug.
80935         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80936         versus int.
80937
80938 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * modules/regex (Depends-on): Add malloc, since the code
80941         assumes that !malloc(0) means failure.
80942
80943 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80946
80947         alloca modernization/simplification for regex.
80948         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80949         needs to be at the start of the file, and can be moved into
80950         regex_internal.h and simplified.
80951         * lib/regex_internal.h: Include <alloca.h>.
80952         (__libc_use_alloca) [!defined _LIBC]: New macro.
80953         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80954         now works outside glibc.
80955
80956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * config/srclist.txt: Add glibc bugs 1241, 1245.
80959
80960 2005-08-25  Jim Meyering  <jim@meyering.net>
80961
80962         * lib/open-safer.c: Include <config.h>.
80963         Otherwise, we'd lose LARGEFILE support in any file using
80964         e.g. "fcntl--.h"
80965
80966 2005-08-25  Bruno Haible  <bruno@clisp.org>
80967
80968         * m4/minmax.m4: Require autoconf 2.52.
80969         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80970         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80971         alternatives of translit over the alphabet.
80972         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80973
80974 2005-08-24  Simon Josefsson  <jas@extundo.com>
80975
80976         * tests/test-getpass.c: New file.
80977
80978 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80979
80980         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80981         for GNU regex features.
80982
80983 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80986         * lib/regex.h (regerror): Likewise.
80987
80988         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80989         requires this.  (The code never needed it.)
80990
80991         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80992         All uses of recently-renamed identifiers changed to use the new,
80993         POSIX-compliant names.  The code will build and run just fine
80994         without these changes, but it's better to eat our own dog food
80995         and use the standard-conforming names.
80996
80997         * lib/regex.h: Fix a multitude of POSIX name space violations.
80998         These changes have an effect only for programs that define
80999         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81000         do not change anything for programs compiled in the normal way.
81001         Also, there is no effect on the ABI.
81002
81003         (_REGEX_SOURCE): New macro.
81004         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81005         defined and _GNU_SOURCE is not; this fixes a name space violation.
81006
81007         Rename the following macros to obey POSIX requirements.
81008         The old names are still visible as macros if _REGEX_SOURCE is defined.
81009         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81010         RE_BACKSLASH_ESCAPE_IN_LISTS.
81011         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81012         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81013         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81014         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81015         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81016         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81017         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81018         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81019         (REG_INTERVALS): renamed from RE_INTERVALS.
81020         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81021         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81022         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81023         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81024         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81025         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81026         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81027         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81028         RE_UNMATCHED_RIGHT_PAREN_ORD.
81029         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81030         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81031         (REG_DEBUG): renamed from RE_DEBUG.
81032         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81033         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81034         unusual, since we can't clash with the POSIX REG_ICASE.
81035         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81036         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81037         (REG_NO_SUB): renamed from RE_NO_SUB.
81038         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81039         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81040         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81041         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81042         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81043         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81044         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81045         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81046         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81047         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81048         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81049         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81050         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81051         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81052         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81053         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81054         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81055         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81056         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81057         (REG_FIXED): Renamed from REGS_FIXED.
81058         (REG_NREGS): Renamed from RE_NREGS.
81059
81060         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81061         of other REG_* macros, since POSIX says the user is allowed to
81062         #undef these macros selectively.
81063
81064         (reg_errcode_t): Update comment stating what other tables need
81065         to be consistent.
81066
81067         Rename the following enum values to obey POSIX requirements.
81068         The old names are still visible as macros.
81069         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81070         is not defined, since GNU is supposed to be a superset of POSIX as
81071         much as possible, and since we want reg_errcode_t to be a signed
81072         type for implementation consistency.
81073         (_REG_NOERROR): Renamed from REG_NOERROR.
81074         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81075         (_REG_BADPAT): Renamed from REG_BADPAT.
81076         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81077         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81078         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81079         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81080         (_REG_EBRACK): Renamed from REG_EBRACK.
81081         (_REG_EPAREN): Renamed from REG_EPAREN.
81082         (_REG_EBRACE): Renamed from REG_EBRACE.
81083         (_REG_BADBR): Renamed from REG_BADBR.
81084         (_REG_ERANGE): Renamed from REG_ERANGE.
81085         (_REG_ESPACE): Renamed from REG_ESPACE.
81086         (_REG_BADRPT): Renamed from REG_BADRPT.
81087         (_REG_EEND): Renamed from REG_EEND.
81088         (_REG_ESIZE): Renamed from REG_ESIZE.
81089         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81090         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81091         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81092         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81093         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81094
81095         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81096         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81097         changed.  But support the old name if the new one is not defined
81098         and if _REGEX_SOURCE.
81099
81100         Change the following member names in struct re_pattern_buffer.
81101         The old names are still supported if !_REGEX_SOURCE.
81102         The new names are always supported, regardless of _REGEX_SOURCE.
81103         (re_buffer): Renamed from buffer.
81104         (re_allocated): Renamed from allocated.
81105         (re_used): Renamed from used.
81106         (re_syntax): Renamed from syntax.
81107         (re_fastmap): Renamed from fastmap.
81108         (re_translate): Renamed from translate.
81109         (re_can_be_null): Renamed from can_be_null.
81110         (re_regs_allocated): Renamed from regs_allocated.
81111         (re_fastmap_accurate): Renamed from fastmap_accurate.
81112         (re_no_sub): Renamed from no_sub.
81113         (re_not_bol): Renamed from not_bol.
81114         (re_not_eol): Renamed from not_eol.
81115         (re_newline_anchor): Renamed from newline_anchor.
81116
81117         Change the following member names in struct re_registers.
81118         The old names are still supported if !_REGEX_SOURCE.
81119         The new names are always supported, regardless of _REGEX_SOURCE.
81120         (rm_num_regs): Renamed from num_regs.
81121         (rm_start): Renamed from start.
81122         (rm_end): Renamed from end.
81123
81124         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81125         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81126         Prepend __ to parameter names.
81127
81128         Undo yesterday's changes.
81129
81130 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81133         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81134         lib/regex.c.
81135
81136 2005-08-24  Jim Meyering  <jim@meyering.net>
81137
81138         Sync from coreutils.
81139         * m4/fcntl-safer.m4: New file.
81140
81141         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81142         and object files for this module.
81143
81144 2005-08-24  Jim Meyering  <jim@meyering.net>
81145
81146         Sync from coreutils.
81147         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81148
81149 2005-08-24  Jim Meyering  <jim@meyering.net>
81150
81151         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81152         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81153
81154 2005-08-24  Jim Meyering  <jim@meyering.net>
81155
81156         * modules/fcntl-safer: New module.
81157         * modules/fts (Depends-on): Add fcntl-safer.
81158         * MODULES.html.sh (File descriptor based Input/Output):
81159         Add fcntl-safer.
81160
81161 2005-08-24  Bruno Haible  <bruno@clisp.org>
81162
81163         Support for unit test modules.
81164         * modules/README: Mention tests modules.
81165         * modules/TEMPLATE-TESTS: New file.
81166         * gnulib-tool: New options --extract-tests-module, --with-tests and
81167         --tests-base (unused for the moment).
81168         (testsbase, inctests): New variables.
81169         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81170         (func_verify_module): Exclude TEMPLATE-TESTS.
81171         (func_verify_nontests_module, func_verify_tests_module): New functions.
81172         (func_get_dependencies): Add implicit dependency for tests modules.
81173         (func_get_tests_module): New function.
81174         (func_modules_transitive_closure): When --with-tests was specified,
81175         include the unit tests as well, unless explicitly avoided.
81176         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81177         (func_emit_tests_Makefile_am): New function.
81178         (func_create_testdir): When --with-tests was specified, emit a
81179         tests/ directory.
81180         * MODULES.html.sh (Future developments): Update.
81181
81182 2005-08-24  Bruno Haible  <bruno@clisp.org>
81183
81184         * modules/tls-tests: New file.
81185         * tests/test-tls.c: New file, from GNU gettext.
81186
81187 2005-08-24  Bruno Haible  <bruno@clisp.org>
81188
81189         * modules/lock-tests: New file.
81190         * tests/test-lock.c: New file, from GNU gettext.
81191
81192 2005-08-24  Bruno Haible  <bruno@clisp.org>
81193
81194         * lib/lock.h: Add multiple inclusion guard.
81195         * lib/tls.h: Add multiple inclusion guard.
81196
81197 2005-08-24  Bruno Haible  <bruno@clisp.org>
81198
81199         * gnulib-tool: Add support for the --aux-dir option to
81200         --create-testdir, --create-megatestdir, --test, --megatest.
81201         (func_create_testdir, func_create_megatestdir): Optionally emit a
81202         AC_CONFIG_AUX_DIR directive.
81203         (create-testdir, create-megatestdir, test, megatest): Provide a
81204         default value for $auxdir.
81205
81206 2005-08-24  Bruno Haible  <bruno@clisp.org>
81207
81208         * gnulib-tool (import): Use compound statement instead of subshell
81209         where possible.
81210
81211 2005-08-24  Bruno Haible  <bruno@clisp.org>
81212
81213         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81214
81215 2005-08-24  Bruno Haible  <bruno@clisp.org>
81216
81217         * gnulib-tool (func_version): Update.
81218
81219 2005-08-24  Bruno Haible  <bruno@clisp.org>
81220
81221         * gnulib-tool (func_import, func_create_testdir,
81222         func_create_megatestdir): Quote all autoconf macro arguments.
81223
81224 2005-08-24  Bruno Haible  <bruno@clisp.org>
81225
81226         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81227         option --force, because --force causes the aclocal.m4 of each
81228         subdirectory to be newer than the corresponding config.h.in.
81229
81230 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81233         All contents moved to gl_REGEX.
81234         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81235         assume that it does.
81236
81237 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * lib/regex.h (REG_NOSYS)
81240         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81241         Define, since POSIX requires it as of 2001.
81242         (_REG_ENOSYS)
81243         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81244         New private symbol, used to keep the enum signed in all cases.
81245         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81246         Youngman in
81247         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81248
81249         * lib/regex_internal.c (re_string_skip_chars, register_state):
81250         (calc_state_hash):
81251         Remove forward decls; no longer needed now that we use prototypes.
81252         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81253         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81254         (clean_state_log_if_needed): Likewise.
81255
81256 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81257
81258         * config/srclist.txt: Add glibc bugs 1231-1233.
81259
81260 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81261
81262         Fix problems reported by Sam Steingold in
81263         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81264         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81265         assumed that reg_errcode_t is a signed type, which is not
81266         necessarily true if _XOPEN_SOURCE is not defined.
81267         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81268         since some compilers warn about it otherwise.
81269
81270 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81273         (init_word_char, create_initial_state, duplicate_node_closure):
81274         (fetch_token, peek_token_bracket, build_range_exp):
81275         (build_collating_symbol): Remove forward decls; no longer needed
81276         now that we use prototypes.
81277
81278         * lib/regcomp.c:
81279         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81280         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81281         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81282         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81283         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81284         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81285         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81286         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81287         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81288         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81289         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81290         (build_charclass, build_charclass_op, fetch_number, create_tree):
81291         (create_token_tree, mark_opt_subexp, duplicate_tree):
81292         Use prototypes rather than old-style definitions.
81293
81294         * lib/regex_internal.c:
81295         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81296         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81297         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81298         (re_string_reconstruct, re_string_peek_byte_case):
81299         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81300         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81301         (re_node_set_init_copy, re_node_set_add_intersect):
81302         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81303         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81304         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81305         (re_acquire_state, re_acquire_state_context, register_state):
81306         (create_ci_newstate, create_cd_newstate, free_state):
81307         Likewise.
81308         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81309         re_search_2):
81310         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81311         (re_search_internal, prune_impossible_nodes):
81312         (acquire_init_state_context, check_matching, static):
81313         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81314         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81315         (update_regs, sift_states_backward, build_sifted_states):
81316         (clean_state_log_if_needed, merge_state_array):
81317         (update_cur_sifted_state, add_epsilon_src_nodes):
81318         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81319         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81320         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81321         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81322         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81323         (check_arrival, check_arrival_add_next_nodes):
81324         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81325         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81326         (check_node_accept_bytes, check_node_accept, extend_buffers):
81327         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81328         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81329         (sift_ctx_init):
81330         Likewise.
81331
81332         * lib/regex_internal.h:
81333         (re_string_allocate, re_string_construct, re_string_reconstruct):
81334         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81335         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81336         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81337         (re_string_context_at, re_string_peek_byte_case):
81338         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81339         is defined, since we now use prototypes always.
81340
81341         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81342         C89 or better.  All uses removed.
81343
81344 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81345
81346         * config/srclist.txt: Add glibc bugs 1220-1227.
81347
81348 2005-08-20  Jim Meyering  <jim@meyering.net>
81349
81350         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81351         of unused local, dfa.
81352
81353 2005-08-20  Bruno Haible  <bruno@clisp.org>
81354
81355         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81356
81357 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81360         (re_node_set_insert_last, re_dfa_add_node):
81361         Rename local variables to avoid GCC shadowing warnings.
81362
81363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81366         [defined lint]: Suppress bogus uninitialized-variable warnings.
81367
81368         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81369         and let the caller return REG_ESPACE if out of space.  This
81370         removes an uninitialied-variable warning with GCC 4.0.1, and also
81371         avoids taking the address of a local variable.  All callers
81372         changed.
81373
81374 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81375
81376         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81377         $LIBCSRC/posix/regexec.c.
81378         Add glibc bug 1217 for regcomp.c.
81379
81380 2005-08-19  Jim Meyering  <jim@meyering.net>
81381
81382         * lib/regexec.c (proceed_next_node): Redo local variables to
81383         avoid GCC shadowing warnings.
81384
81385 2005-08-18  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/strstr.c (strstr): Fix return value in multibyte case.
81388         * lib/strcasestr.c (strcasestr): Likewise.
81389
81390 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81391
81392         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81393
81394 2005-08-17  Jim Meyering  <jim@meyering.net>
81395
81396         Make the %s format (seconds since the epoch) work for a negative
81397         number and when used with a zero-padded field width, e.g. %015s.
81398
81399         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81400         label so that it precedes the code to set `digits'.  Otherwise,
81401         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81402         print `00-22'.  Now, it prints `-0022', as it should.
81403
81404 2005-08-17  Bruno Haible  <bruno@clisp.org>
81405
81406         * modules/strstr (Files): Add m4/mbrtowc.m4.
81407         (Depends-on): Add mbuiter.
81408
81409 2005-08-17  Bruno Haible  <bruno@clisp.org>
81410
81411         * modules/strcasestr: New file.
81412         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81413         strcasestr.
81414
81415 2005-08-17  Bruno Haible  <bruno@clisp.org>
81416
81417         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81418
81419 2005-08-17  Bruno Haible  <bruno@clisp.org>
81420
81421         * modules/mbuiter: New file.
81422         * MODULES.html.sh (Extended multibyte and wide character utilities):
81423         Add mbuiter.
81424
81425 2005-08-17  Bruno Haible  <bruno@clisp.org>
81426
81427         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81428         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81429
81430 2005-08-17  Bruno Haible  <bruno@clisp.org>
81431
81432         * m4/strcasestr.m4: New file.
81433
81434 2005-08-17  Bruno Haible  <bruno@clisp.org>
81435
81436         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81437         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81438
81439 2005-08-17  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/strcasestr.h: New file.
81442         * lib/strcasestr.c: New file.
81443
81444 2005-08-17  Bruno Haible  <bruno@clisp.org>
81445
81446         * lib/strcasecmp.c: Use mbuiter.h.
81447
81448 2005-08-17  Bruno Haible  <bruno@clisp.org>
81449
81450         * lib/mbuiter.h: New file.
81451
81452 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81455         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81456         and gl_GETOPT are both invoked via different paths (as happens
81457         with GNU tar CVS because it uses both argp and getopt), the former
81458         wins.
81459
81460 2005-08-16  Bruno Haible  <bruno@clisp.org>
81461
81462         * modules/tls: New file.
81463         * MODULES.html.sh (Multithreading): Add tls.
81464
81465 2005-08-16  Bruno Haible  <bruno@clisp.org>
81466
81467         * modules/strnlen1: New file.
81468         * MODULES.html.sh (String handling): Add strnlen1.
81469
81470 2005-08-16  Bruno Haible  <bruno@clisp.org>
81471
81472         * modules/strcase (Files): Add m4/mbrtowc.m4.
81473         (Depends-on): Add strnlen1, mbchar.
81474
81475 2005-08-16  Bruno Haible  <bruno@clisp.org>
81476
81477         * modules/mbiter: New file.
81478         * MODULES.html.sh (Extended multibyte and wide character utilities):
81479         Add mbiter.
81480
81481 2005-08-16  Bruno Haible  <bruno@clisp.org>
81482
81483         * modules/mbfile: New file.
81484         * MODULES.html.sh (Extended multibyte and wide character utilities):
81485         Add mbfile.
81486
81487 2005-08-16  Bruno Haible  <bruno@clisp.org>
81488
81489         * modules/mbchar: New file.
81490         * MODULES.html.sh (Extended multibyte and wide character utilities):
81491         New section.
81492
81493 2005-08-16  Bruno Haible  <bruno@clisp.org>
81494
81495         * m4/tls.m4: New file, from GNU gettext.
81496
81497 2005-08-16  Bruno Haible  <bruno@clisp.org>
81498
81499         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81500         always.
81501         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81502
81503 2005-08-16  Bruno Haible  <bruno@clisp.org>
81504
81505         * m4/mbiter.m4: New file.
81506
81507 2005-08-16  Bruno Haible  <bruno@clisp.org>
81508
81509         * m4/mbfile.m4: New file.
81510
81511 2005-08-16  Bruno Haible  <bruno@clisp.org>
81512
81513         * m4/mbchar.m4: New file.
81514
81515 2005-08-16  Bruno Haible  <bruno@clisp.org>
81516
81517         * lib/tls.h: New file, from GNU gettext.
81518         * lib/tls.c: New file, from GNU gettext.
81519
81520 2005-08-16  Bruno Haible  <bruno@clisp.org>
81521
81522         * lib/strnlen1.h: New file.
81523         * lib/strnlen1.c: New file.
81524
81525 2005-08-16  Bruno Haible  <bruno@clisp.org>
81526
81527         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81528         (mbi_init): Update.
81529         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81530         NUL byte, not after it.
81531
81532 2005-08-16  Bruno Haible  <bruno@clisp.org>
81533
81534         * lib/strcase.h (strcasecmp): Add note in comments.
81535         * lib/strncasecmp.c: Use code from strcasecmp.c.
81536         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81537         (strcasecmp): Work correctly in multibyte locales.
81538
81539 2005-08-16  Bruno Haible  <bruno@clisp.org>
81540
81541         * lib/mbiter.h: New file.
81542
81543 2005-08-16  Bruno Haible  <bruno@clisp.org>
81544
81545         * lib/mbfile.h: New file.
81546
81547 2005-08-16  Bruno Haible  <bruno@clisp.org>
81548
81549         * lib/mbchar.h: New file.
81550         * lib/mbchar.c: New file.
81551
81552 2005-08-16  Bruno Haible  <bruno@clisp.org>
81553
81554         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81555         the valid ones. Makes the comparison operations transitive:
81556         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81557         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81558
81559 2005-08-15  Simon Josefsson  <jas@extundo.com>
81560
81561         * modules/ssize_t (License): Change to 'unlimited'.
81562
81563         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81564
81565 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81566
81567         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81568         Add comments for each pending glibc patch.
81569
81570 2005-08-15  Bruno Haible  <bruno@clisp.org>
81571
81572         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81573         __cplusplus is defined.
81574
81575 2005-08-14  Jim Meyering  <jim@meyering.net>
81576
81577         Sync from coreutils.
81578
81579         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81580         Use the hash-table-based cycle-detection code not just when
81581         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81582         Reported by James Youngman in
81583         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81584         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81585         FTS_TIGHT_CYCLE_CHECK.
81586         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81587         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81588         once again.
81589         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81590         * lib/fts.c (fd_safer): Remove decl.
81591         Include fcntl--.h rather than unistd-safer.h
81592         (fts_safe_changedir): Don't call fd_safer; no longer needed
81593         now that we include fcntl--.h.
81594
81595 2005-08-12  Simon Josefsson  <jas@extundo.com>
81596
81597         * modules/getndelim2: Use ssize_t module.
81598         * modules/getnline: Likewise.
81599         * modules/safe-read: Likewise.
81600         * modules/xreadlink: Likewise.
81601
81602         * modules/ssize_t: New file.
81603
81604 2005-08-12  Simon Josefsson  <jas@extundo.com>
81605
81606         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81607
81608 2005-08-12  Simon Josefsson  <jas@extundo.com>
81609
81610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81611         ssize_t.
81612
81613 2005-08-12  Simon Josefsson  <jas@extundo.com>
81614
81615         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81616         readline, getdelim and check_version.
81617         (Support for systems lacking ISO C 99: Sizes of integer types):
81618         Add size_max.
81619
81620 2005-08-12  Bruno Haible  <bruno@clisp.org>
81621
81622         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81623
81624 2005-08-11  Simon Josefsson  <jas@extundo.com>
81625
81626         * modules/readline: New file.
81627
81628         * modules/strnlen (Files): Add strnlen.h.
81629
81630 2005-08-11  Simon Josefsson  <jas@extundo.com>
81631
81632         * m4/readline.m4: New file.
81633
81634 2005-08-11  Simon Josefsson  <jas@extundo.com>
81635
81636         * lib/readline.h, readline.c: New file.
81637
81638 2005-08-11  Simon Josefsson  <jas@extundo.com>
81639
81640         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81641         gl_AVOID.
81642
81643 2005-08-11  Bruno Haible  <bruno@clisp.org>
81644
81645         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81646
81647 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81648
81649         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81650
81651 2005-08-10  Simon Josefsson  <jas@extundo.com>
81652
81653         * tests/test-iconvme.c: New file.
81654
81655 2005-08-10  Simon Josefsson  <jas@extundo.com>
81656
81657         * m4/strnlen.m4: New file.
81658
81659         * m4/strndup.m4: Don't check for strnlen declaration, done in
81660         strnlen.m4.
81661
81662 2005-08-10  Simon Josefsson  <jas@extundo.com>
81663
81664         * lib/strndup.c: Use strnlen.h.
81665
81666         * lib/strnlen.h: New file.
81667
81668 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81669
81670         * README: Typos.
81671
81672 2005-08-02  Simon Josefsson  <jas@extundo.com>
81673
81674         * modules/readline: New file.
81675
81676 2005-08-02  Simon Josefsson  <jas@extundo.com>
81677
81678         * modules/getdelim: New file.
81679
81680         * modules/getline: Rewrite, don't use getndelim2.
81681
81682 2005-08-02  Simon Josefsson  <jas@extundo.com>
81683
81684         * m4/getline.m4: Separate out getdelim stuff into separate module.
81685
81686         * m4/getdelim.m4: New file.
81687
81688 2005-08-02  Simon Josefsson  <jas@extundo.com>
81689
81690         * lib/getline.h, getline.c: Rewrite.
81691
81692         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81693
81694 2005-07-31  Bruno Haible  <bruno@clisp.org>
81695
81696         * lib/lock.h (gl_lock_initializer): New macro.
81697         (gl_lock_define_initialized): Use it.
81698         (gl_rwlock_initializer): New macro.
81699         (gl_rwlock_define_initialized): Use it.
81700         (gl_recursive_lock_initializer): New macro.
81701         (gl_recursive_lock_define_initialized): Use it.
81702
81703 2005-07-30  Karl Berry  <karl@gnu.org>
81704
81705         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81706         Report from Ben Pfaff, regarding getopt.
81707
81708 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81709
81710         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81711         normal way.
81712         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81713         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81714         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81715         (gl_GETOPT): Use the new macros.  Most of the implementation
81716         is moved to the new macros.  This is for programs like Emacs
81717         that don't want all the functionality of gl_GETOPT.
81718
81719 2005-07-26  Bruno Haible  <bruno@clisp.org>
81720
81721         * m4/lock.m4: Update from GNU gettext.
81722
81723 2005-07-26  Bruno Haible  <bruno@clisp.org>
81724
81725         * lib/lock.h: Update from GNU gettext.
81726         * lib/lock.c: Update from GNU gettext.
81727
81728 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81731         obsolescent AC_TRY_RUN.  Include the default includes files, for
81732         'exit'.
81733
81734 2005-07-24  Bruno Haible  <bruno@clisp.org>
81735
81736         * modules/visibility: New file.
81737         * MODULES.html.sh (Misc): Add visibility.
81738
81739 2005-07-24  Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/visibility.m4: New file.
81742
81743 2005-07-24  Bruno Haible  <bruno@clisp.org>
81744
81745         * doc/visibility.texi: New file.
81746
81747 2005-07-22  Bruno Haible  <bruno@clisp.org>
81748
81749         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81750         $(ALLOCA_H), redundant through BUILT_SOURCES.
81751         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81752         redundant through BUILT_SOURCES.
81753         * modules/byteswap (Makefile.am): Remove explicit dependency on
81754         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81755         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81756         $(FNMATCH_H), redundant through BUILT_SOURCES.
81757         * modules/getopt (Makefile.am): Remove explicit dependency on
81758         $(GETOPT_H), redundant through BUILT_SOURCES.
81759         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81760         redundant through BUILT_SOURCES.
81761         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81762         redundant through BUILT_SOURCES.
81763         * modules/stdbool (Makefile.am): Remove explicit dependency on
81764         $(STDBOOL_H), redundant through BUILT_SOURCES.
81765         * modules/stdint (Makefile.am): Remove explicit dependency on
81766         $(STDINT_H), redundant through BUILT_SOURCES.
81767         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81768         Remove explicit dependency on $(SYSEXITS_H).
81769         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81770
81771 2005-07-18  Simon Josefsson  <jas@extundo.com>
81772
81773         * lib/check-version.c (check_version): Accept identical versions too.
81774
81775 2005-07-18  Bruno Haible  <bruno@clisp.org>
81776
81777         * modules/lock: New file.
81778         * MODULES.html.sh (Multithreading): New section.
81779
81780 2005-07-18  Bruno Haible  <bruno@clisp.org>
81781
81782         * m4/lock.m4: New file, from GNU gettext.
81783
81784 2005-07-18  Bruno Haible  <bruno@clisp.org>
81785
81786         * lib/lock.h: New file, from GNU gettext.
81787         * lib/lock.c: New file, from GNU gettext.
81788
81789 2005-07-18  Bruno Haible  <bruno@clisp.org>
81790
81791         * lib/lock.h (gl_once_t): New type.
81792         (gl_once_define, gl_once): New macros.
81793         * lib/lock.c (fresh_once): New variable.
81794         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81795         functions.
81796
81797 2005-07-16  Simon Josefsson  <jas@extundo.com>
81798
81799         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81800         workaround, suggested by Bruno.
81801
81802 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * modules/xalloc (Depends-on): Add xalloc-die.
81805         * modules/xvasprintf (Depends-on): Add xalloc-die.
81806
81807 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81808
81809         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81810         with a minor change.
81811
81812 2005-07-15  Bruno Haible  <bruno@clisp.org>
81813
81814         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81815         When using lib/poll.c, define poll as rpl_poll.
81816
81817 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81818
81819         * modules/argp (Depends-on): Remove unlocked-io.
81820
81821 2005-07-14  Derek Price  <derek@ximbiot.com>
81822
81823         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81824         for glob symlink bug.
81825
81826 2005-07-14  Bruno Haible  <bruno@clisp.org>
81827
81828         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81829         Instead, test for *_unlocked function declarations directly.
81830
81831 2005-07-11  Simon Josefsson  <jas@extundo.com>
81832
81833         * modules/size_max: New file.
81834
81835         * modules/xsize: Depend on size_max module for size_max.m4.
81836
81837 2005-07-11  Simon Josefsson  <jas@extundo.com>
81838
81839         * lib/size_max.h: New file.
81840
81841 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81844         copyright symbol and the year.
81845         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81846         (version_etc_va): Use parameterized copyright notice.
81847         Reword to conform to the current GNU coding standards.
81848
81849 2005-07-11  Karl Berry  <karl@gnu.org>
81850
81851         * doc/gnulib.texi (Quoting): new node.
81852         (Initial import): more info, from Patrice.
81853
81854 2005-07-11  Bruno Haible  <bruno@clisp.org>
81855
81856         * gnulib-tool (func_usage): Document option --avoid.
81857         (Command line options): Handle --avoid.
81858         (func_acceptable): New function.
81859         (func_modules_transitive_closure): Use it.
81860
81861 2005-07-11  Bruno Haible  <bruno@clisp.org>
81862
81863         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81864         Reported by Jim Meyering.
81865
81866 2005-07-10  Bruno Haible  <bruno@clisp.org>
81867
81868         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81869         Needed when size_t is smaller than 'unsigned int'.
81870         Reported by Paul Eggert.
81871
81872 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81873
81874         * modules/argp (Depends-on): Add unlocked-io
81875
81876 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81877
81878         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81879         block of defines.
81880
81881 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81882
81883         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81884         fix now.
81885
81886 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81887         and Paul Eggert  <eggert@cs.ucla.edu>
81888
81889         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81890         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81891
81892 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81893
81894         * modules/regex (Files): Add lib/regex_internal.c,
81895         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81896         (Depends-on): Add extensions.
81897         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81898
81899 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81900
81901         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81902         pathconf.
81903         * m4/same.m4 (gl_SAME): Likewise.
81904         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81905
81906         * m4/regex.m4: Adjust to new libc regex implementation.
81907         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81908         all the .c and .h parts of (the new) regex.
81909         Quote the m4 stuff better.
81910         Check for RE_ICASE bug of old gnulib.
81911         Check for REG_STARTEND of recent libc.
81912         Rename local variables from jm_* to gl_*.
81913         Quote operand of "test -f".
81914         Say "recent enough" version of libc, not "version 2".
81915         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81916         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81917         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81918         Remove check for btowc, isascii.
81919         Require AM_LANGINFO_CODESET.
81920
81921 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         * lib/regex.c, regex.h: Sync from libc.
81924         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81925         * lib/regexec.c:
81926         New files, synced from libc, except that regex_internal.h
81927         currently has a small porting fix.
81928
81929 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81930
81931         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81932         regex_internal.c, regexec.c.
81933         Add regex_internal.h too, but as a comment, since the libc version
81934         is currently broken in gnulib mode.
81935
81936 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81937
81938         Support programs like Emacs that use gnulib but not gettext.
81939         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81940         * modules/gettext-h: New file.
81941         * modules/gettext (Files): Remove lib/gettext.h.
81942         (Depends-on): Add gettext-h.
81943         (Makefile.am): Remove lib_SOURCES.
81944         * modules/argmatch, modules/c-stack, modules/closeout:
81945         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81946         * modules/execute, modules/file-type, modules/getaddrinfo:
81947         * modules/getopt, modules/human, modules/javacomp:
81948         * modules/javaexec, modules/mkdir-p, modules/obstack:
81949         * modules/openat, modules/pagealign_alloc, modules/pipe:
81950         * modules/quotearg, modules/regex, modules/rpmatch:
81951         * modules/unicodeio, modules/userspec, modules/version-etc:
81952         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81953         * modules/xsetenv:
81954         Depend on gettext-h, not gettext.
81955
81956 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81957
81958         * gnulib-tool (func_import): Add support for 'public domain' license.
81959         * modules/alloca, modules/atexit, modules/memmove:
81960         Now public domain, not GPL.
81961         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81962         * modules/realloc, modules/strerror, modules/strtod:
81963         Now LGPL, not GPL.
81964
81965 2005-07-05  Bruno Haible  <bruno@clisp.org>
81966
81967         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81968         autoconf CVS. Needed for mingw.
81969
81970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81971
81972         Remove the dependency of the strftime module on the tzset module.
81973         * modules/strftime (Depends-on): Remove dependency on tzset.
81974
81975 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81976
81977         Remove the dependency of the strftime module on the tzset module.
81978         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81979         gl_FUNC_TZSET_CLOBBER.
81980
81981 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         Remove the dependency of the strftime module on the tzset module.
81984         * lib/strftime.c (my_strftime)
81985         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81986         Copy the input structure, to work around some of the bug with
81987         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81988         Solaris releases, you should also use the tzset module, but we won't
81989         require it as a dependency any more since we don't want LGPLed code
81990         to depend on GPLed code.
81991
81992 2005-07-02  Jim Meyering  <jim@meyering.net>
81993
81994         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81995         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81996         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81997         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81998
81999 2005-07-02  Jim Meyering  <jim@meyering.net>
82000
82001         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82002
82003 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82006         declares only 'struct timespec;' (!).
82007
82008 2005-07-01  Jim Meyering  <jim@meyering.net>
82009
82010         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82011         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82012         * lib/save-cwd.c, tempname.c:
82013         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82014         and don't include <sys/file.h>).
82015
82016 2005-06-29  Jim Meyering  <jim@meyering.net>
82017
82018         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82019         type name.  Use the variable name instead.
82020         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82021         Likewise.
82022
82023 2005-06-28  Simon Josefsson  <jas@extundo.com>
82024
82025         * modules/check-version (Files): Add check-version.m4.
82026
82027 2005-06-28  Simon Josefsson  <jas@extundo.com>
82028
82029         * m4/check-version.m4: New file, suggested by Jim Meyering
82030         <jim@meyering.net>.
82031
82032 2005-06-28  Simon Josefsson  <jas@extundo.com>
82033
82034         * lib/check-version.h, lib/check-version.c: New files.
82035
82036 2005-06-28  Simon Josefsson  <jas@extundo.com>
82037
82038         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82039         collision with global variable.  Better indentation.  Don't
82040         increment buffer pointer beyond buffer end.  Based on comments
82041         from Paul Eggert <eggert@cs.ucla.edu>.
82042
82043         * lib/base64.h: Indent.
82044
82045 2005-06-28  Simon Josefsson  <jas@extundo.com>
82046
82047         * doc/gnulib.texi (Library version handling): New section.
82048
82049 2005-06-28  Jim Meyering  <jim@meyering.net>
82050
82051         * check-module (find_included_lib_files): Hard-code another
82052         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82053         but modules/fts-lgpl (correctly) does not list those files.
82054
82055         * modules/canonicalize (Files): Add lib/pathmax.h.
82056
82057 2005-06-25  Simon Josefsson  <jas@extundo.com>
82058
82059         * modules/check-version: New file.
82060
82061 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82064         initializer of struct addrinfo, as an indication that we don't
82065         care how many members the structure has.
82066
82067 2005-06-24  Derek Price  <derek@ximbiot.com>
82068         and Bruno Haible  <bruno@clisp.org>
82069
82070         Remove stat module & update lstat.
82071         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82072         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82073         * m4/stat.m4: Remove this file.
82074
82075 2005-06-24  Derek Price  <derek@ximbiot.com>
82076         and Bruno Haible  <bruno@clisp.org>
82077
82078         Remove stat module & update lstat.
82079         * lib/stat.c: Remove this file...
82080         (slash_aware_lstat): ...moving this content and its support...
82081         * lib/lstat.c (rpl_lstat): ...into here.
82082         * lib/lstat.h: New file.
82083
82084 2005-06-24  Derek Price  <derek@ximbiot.com>
82085         and Bruno Haible  <bruno@clisp.org>
82086
82087         Remove stat module & update lstat.
82088         * config/srclist.txt (libc sources): Remove stat.
82089
82090 2005-06-24  Derek Price  <derek@ximbiot.com>
82091         and Bruno Haible  <bruno@clisp.org>
82092
82093         Remove stat module & update lstat.
82094         * MODULES.html.sh (stat): Remove.
82095         * MODULES.html: Regenerated.
82096         * modules/lstat (Description): Correct function name.
82097         (Files): Add "lstat.h".
82098         (Depends-on): Remove stat, add xalloc, stat-macros.
82099         * modules/stat: Remove this file.
82100         (Include): Add "lstat.h", remove <sys/stat.h>.
82101
82102 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82103
82104         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82105         (ranged_convert): Don't save conversion in a temporary struct.
82106         This causes a warning with GCC 4.0.0, and anyway in the typical
82107         case it's not worth the extra 100 bytes or so of code.
82108         (ranged_convert, __mktime_internal): When calling a function via a
82109         pointer P, use P () rather than (*P) (), as we now assume C89 or
82110         better.
82111
82112 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82113
82114         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82115         "who -r" failed to give output.  Problem reported by Tim Waugh.
82116
82117         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82118         (xcalloc): Use it to avoid needless tests.
82119         Problem reported by Jim Meyering.
82120
82121 2005-06-20  Derek Price  <derek@ximbiot.com>
82122
82123         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82124         unnecessary for Autoconfs > 2.59c.
82125
82126 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82127
82128         * lib/argp.h (__option_is_short): Check upper limit of
82129         __key. Isprint() requires its argument to have the value
82130         of an unsigned char or EOF.
82131
82132 2005-06-16  Jim Meyering  <jim@meyering.net>
82133
82134         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82135         when either N or S is zero.
82136
82137 2005-06-16  Derek Price  <derek@ximbiot.com>
82138
82139         * m4/bison.m4: Declare YACC & YFLAGS precious.
82140
82141 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82144         multibyte string or pattern, fall back on unibyte matching.
82145         Problem reported by James Youngman.
82146
82147 2005-06-08  Bruno Haible  <bruno@clisp.org>
82148
82149         * modules/csharpcomp: New file.
82150         * MODULES.html.sh (C#): Add csharpcomp.
82151
82152 2005-06-08  Bruno Haible  <bruno@clisp.org>
82153
82154         * m4/csharpcomp.m4: New file, from GNU gettext.
82155
82156 2005-06-08  Bruno Haible  <bruno@clisp.org>
82157
82158         * lib/csharpcomp.h: New file, from GNU gettext.
82159         * lib/csharpcomp.c: New file, from GNU gettext.
82160         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82161
82162 2005-06-08  Bruno Haible  <bruno@clisp.org>
82163
82164         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82165         warning on mingw.
82166
82167 2005-06-07  Derek Price  <derek@ximbiot.com>
82168
82169         Sync from CVS.
82170         * lib/glob_.h: Indent nested #ifdef.
82171
82172 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         Sync from coreutils.
82175         Use "file name" when talking about file names, instead of "filename"
82176         or "path", as per the GNU coding standards.
82177         * lib/mkdir-p.c: Renamed from makepath.c.
82178         (make_dir_parents): Renamed from make_path.  All callers changed.
82179         * lib/mkdir-p.h: Likewise.  All includers changed.
82180         * lib/filenamecat.c: Renamed from path-concat.c.
82181         (file_name_concat): Renamed from path_concat.  All callers changed.
82182         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82183         * lib/filenamecat.h: Likewise.  All includers changed.
82184         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82185         in comments or local variable names.
82186         * lib/basename.c: Likewise.
82187         * lib/canonicalize.c, canonicalize.h: Likewise.
82188         * lib/dirname.c, dirname.h: Likewise.
82189         * lib/euidaccess.c: Likewise.
82190         * lib/exclude.c: Likewise
82191         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82192         * lib/fsusage.c, fsuage.h: Likewise.
82193         * lib/fts.c, fts_.h: Likewise.
82194         * lib/getcwd.c: Likewise.
82195         * lib/getloadavg.c: Likewise.
82196         * lib/mkstemp.c: Likewise.
82197         * lib/mountlist.c, mountlist.h: Likewise.
82198         * lib/openat.c, openat.h: Likewise.
82199         * lib/readlink-stub.c: Likewise.
82200         * lib/readutmp.c, readutmp.h: Likewise.
82201         * lib/rename.c: Likewise.
82202         * lib/rmdir.c: Likewise.
82203         * lib/same.c: Likewise.
82204         * lib/savedir.c: Likewise.
82205         * lib/stripslash.c: Likewise.
82206         * lib/tempname.c: Likewise.
82207         * lib/xreadlink.c: Likewise.
82208         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82209         All uses changed.
82210         * lib/exclude.h: Likewise.
82211
82212         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82213         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82214         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82215         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82216         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82217         files have been getting away with it for years (MORE/BSD 4.3
82218         is extinct now).
82219         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82220         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82221
82222         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82223         Define to 256, not 255, as per modern POSIX.
82224
82225 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82226
82227         Sync from coreutils.
82228         Use "file name" when talking about file names, instead of "filename"
82229         or "path", as per the GNU coding standards.
82230         * MODULES.html.sh: mkdir-p renamed from makepath.
82231         filenamecat renamed from path-concat.
82232         * modules/filenamecat: Renamed from modules/path-concat.
82233         (Files): filenamecat.h and filenamecat.c renamed from
82234         path-concat.h and path-concat.c.
82235         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82236         (Include): filenamecat.h, not path-concat.h.
82237         * modules/mkdir-p: Renamed from modules/makepath.
82238         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82239         makepath.c.
82240         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82241         (Include): mkdir-p.h, not makepath.h.
82242
82243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82244
82245         Sync from coreutils.
82246         * m4/mkdir-p.m4: Renamed from makepath.m4.
82247         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82248         Rename files from makepath.c to mkdir-p.c, and from
82249         makepath.h to mkdir-p.h.
82250         * m4/filenamecat.m4: Renamed from path-concat.m4.
82251         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82252         Rename files from path-concat.c to filenamecat.c,
82253         and from path-concat.h to filenamecat.h.
82254         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82255         "file name" in local variables or comments.
82256         * m4/rename.m4: Likewise.
82257
82258 2005-06-01  Bruno Haible  <bruno@clisp.org>
82259
82260         * modules/csharpexec: New file.
82261         * MODULES.html.sh (C#): New section.
82262
82263 2005-06-01  Bruno Haible  <bruno@clisp.org>
82264
82265         * m4/csharp.m4: New file, from GNU gettext.
82266         * m4/csharpexec.m4: New file, from GNU gettext.
82267
82268 2005-06-01  Bruno Haible  <bruno@clisp.org>
82269
82270         * lib/csharpexec.h: New file, from GNU gettext.
82271         * lib/csharpexec.c: New file, from GNU gettext.
82272         * lib/csharpexec.sh.in: New file, from GNU gettext.
82273
82274 2005-05-31  Derek Price  <derek@ximbiot.com>
82275             Paul Eggert  <eggert@cs.ucla.edu>
82276
82277         Sync from cvs.
82278         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82279
82280 2005-05-31  Derek Price  <derek@ximbiot.com>
82281             Paul Eggert  <eggert@cs.ucla.edu>
82282
82283         Sync from cvs.
82284         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82285
82286 2005-05-29  Derek Price  <derek@ximbiot.com>
82287
82288         * config/srclist.txt (glob_.h, glob.c): Add these files.
82289
82290 2005-05-29  Derek Price  <derek@ximbiot.com>
82291
82292         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82293         * modules/glob: New file.
82294         * modules/getlogin_r: Add link to POSIX spec in description.
82295
82296 2005-05-29  Derek Price  <derek@ximbiot.com>
82297             Paul Eggert  <eggert@cs.ucla.edu>
82298
82299         * m4/glob.m4: New file.
82300
82301 2005-05-29  Derek Price  <derek@ximbiot.com>
82302             Paul Eggert  <eggert@cs.ucla.edu>
82303
82304         * lib/glob_.h, lib/glob.c: New files.
82305
82306 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82307
82308         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82309         * modules/fts-lgpl (Depends-on): Remove gettext.
82310
82311 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82312
82313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82314         and don't require gt_INTTYPES_PRI.
82315
82316 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82319
82320         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82321         the configuration hassle isn't worth it.
82322         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82323         (LONGEST_MODIFIER, PRIuMAX): Remove.
82324
82325 2005-05-27  Bruno Haible  <bruno@clisp.org>
82326
82327         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82328
82329 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82332         _POSIX_PTHREAD_SEMANTICS for Solaris.
82333
82334 2005-05-25  Derek Price  <derek@ximbiot.com>
82335
82336         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82337
82338 2005-05-25  Derek Price  <derek@ximbiot.com>
82339             Paul Eggert  <eggert@cs.ucla.edu>
82340
82341         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82342         * lib/getlogin_r.c, getlogin_r.h: New files.
82343
82344 2005-05-25  Bruno Haible  <bruno@clisp.org>
82345             Derek Price  <derek@ximbiot.com>
82346
82347         * lib/getlogin_r.h: Simplify API documentation.
82348
82349 2005-05-23  Derek Price  <derek@ximbiot.com>
82350
82351         * modules/minmax (Files): Add m4/minmax.m4.
82352         (configure.ac): Add gl_MINMAX.
82353
82354 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82355
82356         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82357         so that unistd-safer.h (GPL'ed code) need not be included.
82358
82359 2005-05-22  Bruno Haible  <bruno@clisp.org>
82360
82361         * m4/minmax.m4: New file.
82362         Based on a patch by Derek Price <derek@ximbiot.com>.
82363
82364 2005-05-22  Bruno Haible  <bruno@clisp.org>
82365
82366         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82367         (INT64_MIN): Fix definition.
82368         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82369
82370         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82371         NEED_SIGNED_INT_TYPES.
82372
82373         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82374         HAVE_SYSTEM_INTTYPES.
82375
82376 2005-05-22  Bruno Haible  <bruno@clisp.org>
82377
82378         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82379         Also include <sys/param.h> if it defines MIN, MAX.
82380         Based on a patch by Derek Price <derek@ximbiot.com>.
82381
82382 2005-05-21  Jim Meyering  <jim@meyering.net>
82383
82384         * modules/fts (Files): Add m4/inttypes-pri.m4.
82385         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82386
82387 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         New fts module.
82390         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82391         (setup_dir, free_dir): New functions.
82392         (enter_dir, leave_dir): Define trivial
82393         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82394         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82395         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82396         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82397         Move to fts-cycle.c.
82398         (fts_open): Use setup_dir.
82399         (fts_close): Use free_dir.
82400         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82401         This adds a label and some gotos, but the alternatives were messier.
82402         Check for memory allocation failure when entering a dir.
82403         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82404         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82405         (FTS): New member fts_cycle, that is a union that contains the
82406         old active_dir_ht and cycle_state.  All uses changed to mention
82407         fts_cycle.ht and fts_cycle.state.
82408         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82409         fts.c, with the following changes:
82410         (setup_dir, free_dir): New functions.
82411         (enter_dir): Now returns bool.  Return true if successful, false
82412         if memory exhausted.  All callers changed.
82413         Do not bother partly cleaning up on
82414         memory allocation failure; that is free_dir's job.
82415         However, free ad if hash_insert fails, to avoid memory leak.
82416         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82417         fts->fts_options to see which union member to use.
82418
82419 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82420
82421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82422         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82423
82424 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82425
82426         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82427
82428 2005-05-20  Jim Meyering  <jim@meyering.net>
82429
82430         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82431         Now a macro, to pacify GCC.
82432
82433 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82434
82435         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82436         of -1.
82437
82438 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82439
82440         * lib/chown.c (rpl_chown): Return -1 on failure.
82441
82442 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82445         Don't check for stddef.h.
82446         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82447         don't use its results.
82448         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82449         since we include them unconditionally.  Don't require
82450         AM_STDBOOL_H, since stdbool is a prerequisite.
82451         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82452         since we assume C89 or better.
82453         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82454         as we don't use their results.
82455         Don't check for fchdir, memmove, memset, strrchr, as we use
82456         them unconditionally.
82457         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82458         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82459
82460 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82461
82462         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82463         Include <stddef.h> unconditionally, since we assume C89 now.
82464         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82465         * lib/fts.c: Include fts_.h first, to check interface.
82466         Do not include intprops.h; no longer needed.
82467         Include cycle-check.h and hash.h, since fts_.h no longer does.
82468         Remove unnecessary casts of closedir to void.
82469         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82470         decide whether to decrement nlinks.
82471         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82472         (FTS): Use struct hash_table * instead of Hash_table, so that
82473         we no longer need to include hash.h here.
82474
82475 2005-05-18  Jim Meyering  <jim@meyering.net>
82476
82477         * modules/dirfd (License): Change to LGPL.  Most of the code
82478         is already in the public domain.
82479
82480 2005-05-18  Jim Meyering  <jim@meyering.net>
82481
82482         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82483         Reported by Yoann Vandoorselaere.
82484
82485 2005-05-17  Jim Meyering  <jim@meyering.net>
82486
82487         * m4/fts.m4: New file, from coreutils.
82488
82489 2005-05-17  Jim Meyering  <jim@meyering.net>
82490
82491         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82492
82493 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         Sync from coreutils.
82496         * m4/unlinkdir.m4: New file.
82497
82498 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         Sync from coreutils.
82501         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82502         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82503         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82504         White space changes only.
82505         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82506         special.
82507         * lib/yesno.c: Include getline.h, not ctype.h.
82508         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82509         Use getline to remove arbitrary restriction on response length.
82510
82511 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82512
82513         * config/srclist-update: Spell out "Street" in FSF postal
82514         mail address; this is the style the FSF seems to prefer.
82515
82516         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82517         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82518         this updates FSF postal mail address.
82519
82520         Sync from coreutils.
82521         * modules/unlinkdir: New file.
82522         * modules/yesno (Depends-on): Add getline.
82523         * MODULES.html.sh (File system functions): Add unlinkdir.
82524
82525 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82526
82527         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82528         lib/strsep.h:
82529         Change the initial comment to refer to GPL, not LGPL.
82530         gnulib-tool will change it to LGPL as needed.
82531
82532         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82533         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82534         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82535         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82536         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82537         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82538         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82539         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82540         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82541         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82542         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82543         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82544         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82545         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82546         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82547         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82548         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82549         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82550         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82551         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82552         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82553         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82554         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82555         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82556         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82557         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82558         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82559         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82560         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82561         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82562         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82563         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82564         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82565         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82566         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82567         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82568         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82569         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82570         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82571         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82572         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82573         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82574         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82575         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82576         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82577         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82578         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82579         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82580         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82581         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82582         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82583         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82584         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82585         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82586         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82587         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82588         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82589         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82590         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82591         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82592         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82593         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82594         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82595         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82596         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82597         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82598         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82599         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82600         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82601         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82602         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82603         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82604         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82605         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82606         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82607         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82608         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82609         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82610         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82611         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82612         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82613         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82614         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82615         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82616         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82617         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82618         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82619         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82620         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82621         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82622         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82623         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82624         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82625         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82626         lib/yesno.c, lib/yesno.h:
82627         Update FSF postal mail address.
82628
82629 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82630
82631         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82632         tests/test-memmem.c, tests/test-stpncpy.c:
82633         Update FSF postal mail address.
82634
82635 2005-05-13  Bruno Haible  <bruno@clisp.org>
82636
82637         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82638         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82639         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82640         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82641         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82642         Add support for 64-bit integers in the MSVC compiler.
82643
82644 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82645
82646         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82647
82648 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82649
82650         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82651
82652 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82653
82654         * doc/getdate.texi (General date syntax): Don't say that date
82655         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82656         Problem reported by Nic Ferrier.
82657
82658 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82659
82660         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82661         specified in ai_socktype. Fix invalid ai_protocol
82662         check. ai_protocol is usually set to 0 or depending on
82663         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82664         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82665         ai_socktype / ai_protocol in the returned addrinfo structure.
82666
82667 2005-05-10  Simon Josefsson  <jas@extundo.com>
82668
82669         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82670         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82671
82672 2005-05-10  Karl Berry  <karl@gnu.org>
82673
82674         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82675         (from http://www.gnu.org/licenses).
82676         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82677         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82678         fdl.texi suffices.
82679
82680 2005-05-10  Karl Berry  <karl@gnu.org>
82681
82682         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82683         (COPYING.DOC): remove.
82684
82685         * config/srclist-update: new FSF address.
82686
82687 2005-05-10  Derek Price  <derek@ximbiot.com>
82688
82689         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82690         possible.
82691
82692 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82693             Bruno Haible  <bruno@clisp.org>
82694
82695         * modules/inet_ntop: New file.
82696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82697         inet_ntop.
82698
82699 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82700             Bruno Haible  <bruno@clisp.org>
82701
82702         * m4/inet_ntop.m4: New file.
82703
82704 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82705             Bruno Haible  <bruno@clisp.org>
82706
82707         * lib/inet_ntop.h: New file.
82708         * lib/inet_ntop.c: New file, from glibc with modifications.
82709
82710 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82711
82712         * modules/time_r (License): Change to LGPL.
82713         * modules/extensions (License): Change to LGPL.  Actually,
82714         the license is more permissive than that, but currently gnulib-tool
82715         doesn't know how to handle more-permissive licenses.
82716
82717         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82718         Problem reported by Dave Love.
82719
82720 2005-05-08  Jim Meyering  <jim@meyering.net>
82721
82722         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82723         blank.
82724
82725 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82726
82727         * modules/argmatch (Depends-on): Add stdbool.
82728         * modules/backupfile (Depends-on): Likewise.
82729         * modules/chdir-long (Depends-on): Likewise.
82730         * modules/closeout (Depends-on): Likewise.
82731         * modules/cycle-check (Depends-on): Likewise.
82732         * modules/dirname (Depends-on): Likewise.
82733         * modules/fnmatch (Depends-on): Likewise.
82734         * modules/fsusage (Depends-on): Likewise.
82735         * modules/fwriteerror (Depends-on): Likewise.
82736         * modules/getcwd (Depends-on): Likewise.
82737         * modules/getloadavg (Depends-on): Likewise.
82738         * modules/hard-locale (Depends-on): Likewise.
82739         * modules/makepath (Depends-on): Likewise.
82740         * modules/mountlist (Depends-on): Likewise.
82741         * modules/nanosleep (Depends-on): Likewise.
82742         * modules/posixtm (Depends-on): Likewise.
82743         * modules/quotearg (Depends-on): Likewise.
82744         * modules/readtokens (Depends-on): Likewise.
82745         * modules/readtokens0 (Depends-on): Likewise.
82746         * modules/readutmp (Depends-on): Likewise.
82747         * modules/save-cwd (Depends-on): Likewise.
82748         * modules/strftime (Depends-on): Likewise.
82749         * modules/userspec (Depends-on): Likewise.
82750         * modules/utimecmp (Depends-on): Likewise.
82751         * modules/xgetcwd (Depends-on): Likewise.
82752         * modules/xnanosleep (Depends-on): Likewise.
82753         * modules/xstrtod (Depends-on): Likewise.
82754         * modules/yesno (Depends-on): Likewise.
82755
82756 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82759         needless checks.
82760
82761 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82762
82763         Merge from coreutils.  Among other things,
82764         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82765         * lib/fd-safer.c: New file.
82766         * lib/fcntl-safer.h, open-safer.c: Remove.
82767         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82768         * lib/dup-safer.c: Include unistd-safer.h first.
82769         Don't include errno.h.
82770         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82771         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82772         * lib/file-type.c: Rely on file-type.h change.
82773         * lib/getloadavg.c: Include unistd-safer.h.
82774         (getloadavg): Use safer open.
82775         * lib/getusershell.c: Include "stdio-safer.h".
82776         (getusershell): Use safer fopen.
82777         * lib/long-options.c (long_options): Use NULL rather than 0.
82778         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82779         'free'.
82780         * lib/modechange.c: Likewise.
82781         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82782         (MODE_DONE): New constant.
82783         (struct mode_change): Remove 'next' member.
82784         (make_node_op_equals): New function; like the old one of the
82785         same name, except it allocates an array.
82786         (mode_compile, mode_create_from_ref): Use it.
82787         (mode_compile): Allocate result as an array, not a linked list.
82788         Parse octal string ourself, so that we catch mistakes like "+0".
82789         (mode_adjust): Arg is an array, not a linked list.
82790         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82791         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82792         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82793         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82794         Remove.  This is now stat-macros.h's job.
82795         (talloc): Remove.  All callers replaced by xalloc, so that
82796         our invokers don't have to worry about reporting memory failures.
82797         (make_node_op_equals): Remove.
82798         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82799         New constants.
82800         (struct mode_change): Moved here from modechange.h.
82801         (mode_append_entry): Remove.
82802         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82803         apps to have incorrect behavior.  Use simpler algorithm for head
82804         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82805         Detect more invalid usages rather than having somewhat-random behavior.
82806         Don't insert an "a=" action, as that leads to incorrect behavior.
82807         (mode_compile, mode_create_from_ref): Return NULL on error instead
82808         of an enum, since now there's only one way to have an error.  All
82809         callers changed.
82810         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82811         at the correct time.  Simplify calculation of "+u" and its ilk.
82812         Don't mishandle "+X".
82813         (mode_free): Remove "register" and localize decls.
82814         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82815         (struct mode_change): Move to modechange.c; callers don't
82816         need to see this stuff.
82817         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82818         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82819         (mode_change, mode_adjust): Reflect the new signatures noted above.
82820         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82821         that might redefine system include files.
82822         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82823         (my_usleep): Use NULL rather than (void *) 0.
82824         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82825         Use siginterrupt to specify that system calls should be interrupted.
82826         (rpl_nanosleep): Move initialization of suspended closer to call of
82827         my_usleep.
82828         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82829         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82830         (desirable_utmp_entry): New function.
82831         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82832         using x2nrealloc, to simplify logic.
82833         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82834         size calculation.  Do not assume utmp file is a regular file.
82835         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82836         (READ_UTMP_CHECK_PIDS): New constant.
82837         * lib/save-cwd.c: Include unistd-safer.h.
82838         (save_cwd): Use fd_safer.
82839         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82840         [!_LIBC] Include "stat-macros.h" instead.
82841         * lib/unistd-safer.h (fd_safer): New decl.
82842
82843 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82844
82845         * modules/getloadavg (Depends-on): Add unistd-safer.
82846         * modules/getusershell (Depends-on): Add stdio-safer.
82847         * modules/lstat (Depends-on): Remove xalloc.
82848         * modules/mkstemp (Depends-on): Add stat-macros.
82849         * modules/modechange (Depends-on): Remove xstrtol.
82850         Add stat-macros, xalloc.
82851         * modules/save-cwd (Depends-on): Add unistd-safer.
82852         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82853         * modules/unistd-safer (Files): Add lib/fd-safer.c
82854         (Makefile.am): Remove lib_SOURCES.
82855
82856         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82857         Remove fcntl-safer; unistd-safer supersedes it.
82858
82859 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82862         AC_HEADER_STAT.
82863         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82864         (gl_PREREQ_CHOWN): Remove.
82865         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82866         it.  Don't require AC_HEADER_STAT.
82867         (gl_PREREQ_LSTAT): Remove.
82868         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82869         Don't require AC_HEADER_STAT.
82870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82871         (gl_PREREQ_RMDIR): Remove.
82872         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82873         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82874         the stat-macros module a prerequisite.
82875         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82876         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82877         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82878         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82879         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82880         variable names.
82881         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82882         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82883         variable prefixes.
82884         * m4/fcntl-safer.m4: Remove.
82885         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82887         Invoke gl_PREREQ_FD_SAFER.
82888         (gl_PREREQ_FD_SAFER): New macro.
82889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82890         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82891         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82892         Remove duplicate call to AC_LIBOBJ(readutmp).
82893         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82894
82895         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82896         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82897
82898 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * MODULES.html.sh (Misc): Add byteswap.
82901
82902 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82903
82904         * modules/getcwd (Depends-on): Add extensions.
82905         * modules/openat (Depends-on): Likewise.
82906
82907 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82908
82909         * modules/byteswap: New file.
82910
82911 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82912
82913         * m4/byteswap.m4: New file.
82914
82915 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82916
82917         * lib/byteswap_.h: New file.
82918
82919 2005-04-25  Karl Berry  <karl@gnu.org>
82920
82921         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82922
82923 2005-04-25  Albert Chin  <china@thewrittenword.com>
82924
82925         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82926         Toolkit C bug.
82927
82928 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82929
82930         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82931         (func_ln_if_changed): Remove forcibly for no error message
82932         in case file does not exist.
82933
82934 2005-04-19  Simon Josefsson  <jas@extundo.com>
82935
82936         * gnulib-tool (Options): Make --symlink mean --symbolic.
82937
82938 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82939
82940         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82941
82942 2005-04-16  Simon Josefsson  <jas@extundo.com>
82943
82944         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82945
82946 2005-04-15  Simon Josefsson  <jas@extundo.com>
82947
82948         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82949
82950 2005-04-15  Simon Josefsson  <jas@extundo.com>
82951
82952         * gnulib-tool: Rename --symlink to --symbolic.
82953
82954 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82955
82956         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82957         symbolic links to files instead of copying/moving.  Add --aux-dir,
82958         specifying directory relative --dir where auxiliary build tools
82959         are placed.
82960
82961 2005-04-14  Bruno Haible  <bruno@clisp.org>
82962
82963         * modules/allocsa (License): Change to LGPL.
82964         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82965
82966 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82967
82968         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82969         that "UTC +1 second" continues to work.  Problem reported
82970         by Dmitry V. Levin.
82971         (relunit_snumber): New rule.
82972         (relunit): Use it.
82973
82974 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * lib/getdate.y (universal_time_zone_table): New constant.
82977         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82978         universal_time_zone_table.
82979         (lookup_zone): Prefer universal_time_zone_table to
82980         local_time_zone_table, so that "GMT" time stamps are allowed in
82981         London during the summer.  Problem reported by Ian Abbott.
82982
82983 2005-04-12  Jim Meyering  <jim@meyering.net>
82984
82985         * lib/human.c (humblock): Set *options even when returning due to
82986         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82987         warning from gcc-4.
82988
82989 2005-04-09  Jim Meyering  <jim@meyering.net>
82990
82991         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82992         -Wuninitialized: initialize tm0.tm_year.
82993
82994 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82995
82996         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82997         count, since there's no maximum.  All uses changed.
82998         Add member dsts_seen.
82999         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83000         not being INT_MAX.
83001         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83002         Use pc_rels_seen to decide whther a date is absolute.
83003
83004         * lib/getdate.y (number): Don't overwrite year.
83005         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83006         check.
83007
83008 2005-04-02  Simon Josefsson  <jas@extundo.com>
83009
83010         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83011         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83012
83013 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83014
83015         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83016         where no absolute path name can be longer than PATH_MAX.
83017
83018 2005-03-27  Jim Meyering  <jim@meyering.net>
83019
83020         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83021
83022 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83023
83024         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83025         "one's complement" -> "ones' complement" in comment, as per Knuth.
83026         "value of type" -> "type or expression" in comment.
83027         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83028
83029 2005-03-26  Jim Meyering  <jim@meyering.net>
83030
83031         Comment nits.
83032         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83033         Correct typos: s/or/of/.
83034
83035 2005-03-26  Jim Meyering  <jim@meyering.net>
83036
83037         * modules/check-include-files: Move to ../ and rename to...
83038         * check-module: ...this.
83039
83040 2005-03-25  Jim Meyering  <jim@meyering.net>
83041
83042         * modules/xvasprintf (Files): Add xalloc.h.
83043
83044 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * modules/gettext (Files): config/config.rpath ->
83047         build-aux/config.rpath
83048         * modules/iconv (Files): Likewise.
83049         Problem reported by Oskar Liljeblad.
83050
83051 2005-03-23  Jim Meyering  <jim@meyering.net>
83052
83053         * modules/check-include-files: New script to check for
83054         missing dependencies, multiple includes, etc.
83055
83056         * modules/c-strtold (Depends-on): Add xalloc.
83057         * modules/c-strtod (Depends-on): Add xalloc.
83058         * modules/hash (Depends-on): Add xalloc.
83059         (Files): Remove lib/xalloc.h.
83060
83061         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83062         * modules/userspec (Files): Add lib/inttostr.h.
83063
83064 2005-03-23  Jim Meyering  <jim@meyering.net>
83065
83066         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83067
83068 2005-03-22  Jim Meyering  <jim@meyering.net>
83069
83070         * modules/stat-macros: New module.
83071         * modules/canonicalize, modules/euidaccess, modules/file-type,
83072         * modules/filemode, modules/lchown, modules/makepath,
83073         * modules/rmdir, modules/stat: Depend on new stat-macros module
83074         rather than listing lib/stat-macros.h manually.
83075         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83076
83077 2005-03-22  Jim Meyering  <jim@meyering.net>
83078
83079         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83080
83081 2005-03-22  Bruno Haible  <bruno@clisp.org>
83082
83083         * config/srclist.txt: Replace target directory 'config' with
83084         'build-aux'.
83085         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83086         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83087         ../build-aux/.
83088
83089 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * modules/chdir-long (Depends-on): Add mempcpy.
83092
83093         * modules/acl, modules/backupfile, modules/c-strtod,
83094         modules/c-strtold, modules/canon-host, modules/canonicalize,
83095         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83096         modules/exclude, modules/exitfail, modules/file-type,
83097         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83098         modules/getdate, modules/getline, modules/getpagesize,
83099         modules/getpass, modules/getugroups, modules/group-member,
83100         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83101         modules/inttostr, modules/long-options, modules/makepath,
83102         modules/md5, modules/memcasecmp, modules/memcoll,
83103         modules/modechange, modules/mountlist, modules/path-concat,
83104         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83105         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83106         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83107         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83108         modules/strftime, modules/strndup, modules/strverscmp,
83109         modules/timespec, modules/unlocked-io, modules/userspec,
83110         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83111         modules/yesno:
83112         Remove lib_SOURCES line from Makefile.am section, as this is now
83113         done automatically by the corresponding Autoconf macro.
83114
83115 2005-03-21  Jim Meyering  <jim@meyering.net>
83116
83117         Changes imported from coreutils.
83118
83119         * lib/cycle-check.c: Don't include xalloc.h.
83120
83121         * lib/path-concat.c: Don't include assert.h.
83122         (path_concat): Remove assertion that would have triggered
83123         for ABASE starting with more than one slash.
83124         Reported by Andreas Schwab.
83125
83126         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83127         properly when ABASE is an absolute file name.
83128         Correct the description of this function.
83129         Include <assert.h>.
83130         Add an assertion and a test driver.
83131         This fixes a bug introduced on 2004-07-02.
83132         Andreas Schwab reported the resulting failure of cp --parents:
83133         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83134
83135 2005-03-21  Jim Meyering  <jim@meyering.net>
83136
83137         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83139
83140 2005-03-21  Jim Meyering  <jim@meyering.net>
83141         and  Paul Eggert  <eggert@cs.ucla.edu>
83142
83143         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83144         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83145         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83146         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83147         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83148         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83149         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83150         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83151         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83152         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83153         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83154         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83155         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83156         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83157         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83158         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83159         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83160         for these modules.
83161
83162 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83163
83164         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83165         (which shouldn't happen), generate nothing instead of returning 0
83166         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83167
83168 2005-03-16  Bruno Haible  <bruno@clisp.org>
83169
83170         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83171         HAVE_LONGLONG_64BIT.
83172
83173 2005-03-16  Bruno Haible  <bruno@clisp.org>
83174
83175         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83176         HAVE_LONGLONG_64BIT.
83177
83178 2005-03-16  Bruno Haible  <bruno@clisp.org>
83179
83180         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83181         HAVE_LONGLONG_64BIT.
83182
83183 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83184
83185         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83186         reliably distinguish strftime failure from empty output on POSIX
83187         hosts.
83188
83189 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83192         (iconv_string): Don't guess a size-zero buffer, as that might cause
83193         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83194         result would be 'too large', where 'too large' is (heuristically)
83195         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83196         overflow concerns.  This will prevent some unwanted malloc failures
83197         when the inputs are very large.
83198
83199 2005-03-15  Karl Berry  <karl@gnu.org>
83200
83201         * config/srclist.txt (config.rpath): from gettext.
83202         * config/config.rpath: update.
83203
83204 2005-03-15  Bruno Haible  <bruno@clisp.org>
83205
83206         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83207         to 'negate'.
83208
83209         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83210         variable.
83211
83212         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83213         results.
83214
83215 2005-03-14  Simon Josefsson  <jas@extundo.com>
83216
83217         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83218         <fx@gnu.org>.
83219
83220 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83223         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83224         intprops.h.
83225         * lib/strtol.c: Likewise.
83226
83227 2005-03-14  Jim Meyering  <jim@meyering.net>
83228
83229         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83230         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83231         to be nonzero so that we (and caller) can detect the difference
83232         between a valid zero-length expansion and an error return, even
83233         when the underlying strftime fails before writing anything into
83234         that location.
83235
83236 2005-03-14  Bruno Haible  <bruno@clisp.org>
83237
83238         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83239         Update from GNU gettext 0.14.3.
83240
83241 2005-03-10  Jim Meyering  <jim@meyering.net>
83242
83243         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83244
83245 2005-03-10  Jim Meyering  <jim@meyering.net>
83246
83247         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83248         so that this module works on systems without fchdir.
83249
83250 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83251
83252         Factor int-properties macros into a single file, except for
83253         glibc-related files.
83254         * lib/intprops.h: New file.
83255         * lib/getloadavg.c: Include it instead of limits.h.
83256         (INT_STRLEN_BOUND): Remove.
83257         * lib/human.c: Include intprops.h.
83258         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83259         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83260         302/1000.
83261         * lib/inttostr.h: Include intprops.h instead of limits.h.
83262         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83263         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83264         for consistency with intprops.h.
83265         (time_t_is_integer, twos_complement_arithmetic): Use them.
83266         * lib/sig2str.h: Include <signal.h>, intprops.h.
83267         (INT_STRLEN_BOUND): Remove.
83268         * lib/strftime.c (TYPE_SIGNED): Remove.
83269         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83270         * lib/strtol.c: Adjust comments to match intprops.h.
83271         * lib/userspec.c: Include intprops.h.
83272         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83273         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83274         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83275         instead of rolling our own expressions.
83276         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83277
83278         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83279         instead of int.
83280         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83281         the right thing even if adding 1900 would overflow.  Similarly
83282         for tm_mon + 1 and tm_yday + 1.
83283         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83284         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83285         (DO_SIGNED_NUMBER): New macro.
83286         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83287
83288 2005-03-07  Bruno Haible  <bruno@clisp.org>
83289
83290         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83291
83292 2005-03-07  Bruno Haible  <bruno@clisp.org>
83293
83294         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83295
83296 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83297
83298         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83299         (func_import): Only replace files via --import when they have actually
83300         changed.
83301
83302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83303
83304         * m4/mmap-anon.m4: New file.
83305         * m4/pagealign_alloc.m4: New file.
83306
83307 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83308             Bruno Haible  <bruno@clisp.org>
83309
83310         * modules/pagealign_alloc: New file.
83311         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83312
83313 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83314             Bruno Haible  <bruno@clisp.org>
83315
83316         * lib/pagealign_alloc.h: New file.
83317         * lib/pagealign_alloc.c: New file.
83318
83319 2005-03-03  Bruno Haible  <bruno@clisp.org>
83320
83321         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83322         Use an all-permissive copyright notice, recommended by RMS.
83323
83324 2005-03-02  Bruno Haible  <bruno@clisp.org>
83325
83326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83327         of AIX, the replacement has to be done only after <string.h> is
83328         included, therefore not in config.h. stpncpy.h does the replacement,
83329         and stpncpy.c uses it.
83330
83331 2005-03-02  Bruno Haible  <bruno@clisp.org>
83332
83333         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83334         stpncpy.c uses it.
83335
83336 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83337
83338         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83339         The workaround isn't strictly needed for POSIX conformance, and
83340         it's too much of a pain to configure and maintain.  We'll ask
83341         people to fix their kernels instead.
83342         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83343         (NANOSLEEP_BUG_WORKAROUND): Remove.
83344         (xnanosleep): Remove the workaround.
83345
83346 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83347
83348         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83349         Reported by Derek Price.
83350         (Include): Add "timespec.h".
83351
83352         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83353
83354 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83355
83356         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83357         to detect nanosleep bug.
83358
83359 2005-03-01  Bruno Haible  <bruno@clisp.org>
83360
83361         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83362
83363 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83364
83365         * modules/gethrxtime: New file.
83366         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83367         (Depends-on): Add gethrxtime.
83368         (configure.ac): Add gl_XNANOSLEEP.
83369         (Makefile.am): Remove lib_SOURCES line.
83370
83371 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83374         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83375
83376 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83377
83378         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83379         * lib/timespec.h (gettime): Return void, since it always
83380         succeeds now.  All uses changed.
83381         * lib/gettime.c (gettime): Likewise.
83382         [HAVE_NANOTIME]: Prefer nanotime.
83383         Assume gettimeofday succeeds, as POSIX requires.
83384         Assime time () succeeds, since other code already does.
83385         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83386         (timespec_subtract): Remove.
83387         (NANOSLEEP_BUG_WORKAROUND): New constant.
83388         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83389         things considerably.  Use it only on GNU/Linux hosts, since the
83390         workaround shouldn't be needed elsewhere.
83391
83392 2005-02-24  Bruno Haible  <bruno@clisp.org>
83393
83394         * modules/gettext (Files): Add m4/glibc2.m4.
83395
83396 2005-02-24  Bruno Haible  <bruno@clisp.org>
83397
83398         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83399         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83400         * m4/progtest.m4:
83401         Update from GNU gettext 0.14.2.
83402         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83403
83404 2005-02-24  Bruno Haible  <bruno@clisp.org>
83405
83406         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83407         * lib/config.charset: Update from GNU gettext 0.14.2.
83408
83409 2005-02-24  Bruno Haible  <bruno@clisp.org>
83410
83411         * lib/gettext.h: Update from GNU gettext 0.14.2.
83412
83413 2005-02-23  Simon Josefsson  <jas@extundo.com>
83414
83415         * m4/iconvme.m4: New file.
83416
83417 2005-02-23  Jim Meyering  <jim@meyering.net>
83418
83419         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83420         change.
83421         Thanks to Bruno Haible for catching it.
83422
83423 2005-02-22  Simon Josefsson  <jas@extundo.com>
83424
83425         * modules/iconvme: New file.
83426
83427         * MODULES.html.sh: Add iconvme.
83428
83429 2005-02-22  Simon Josefsson  <jas@extundo.com>
83430
83431         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83432
83433 2005-02-22  Simon Josefsson  <jas@extundo.com>
83434
83435         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83436
83437 2005-02-22  Jim Meyering  <jim@meyering.net>
83438
83439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83440         s/ifndef/ifdef/.
83441
83442 2005-02-20  Neil Conway  <neilc@samurai.com>
83443
83444         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83445         returned by OSX/Darwin if the specified buffer is not large
83446         enough for the hostname.
83447
83448 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83449
83450         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83451         pass it to _help, otherwise the latter coredumps trying to
83452         dereference state.root_argp.
83453
83454 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         * modules/chdir-long (Depends-on): Add memrchr.
83457         * modules/memrchr (Files): Add lib/memrchr.h.
83458         (Include): "memrchr.h".
83459
83460 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83461
83462         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83463
83464 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * lib/memrchr.h: New file.
83467         * lib/chdir-long.c: Include it.
83468         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83469         Don't bother including stddef.h.
83470
83471 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83472
83473         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83474         inclusion.
83475         Include <sys/types.h>, for dev_t.
83476         (ME_DUMMY, ME_REMOTE): Move from here....
83477         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83478         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83479         Dmitry V. Levin.
83480         Include mountlist.h first, to test the interface.
83481
83482 2005-01-29  Bruno Haible  <bruno@clisp.org>
83483
83484         * lib/progname.c (program_name): Initialize.
83485         Needed when linking statically on MacOS X.
83486
83487 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83488
83489         Sync from coreutils.
83490         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83491         (Depends-on): Add c-strtod.
83492         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83493
83494 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83495
83496         Sync from coreutils.
83497         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83498
83499         Remove files that are specific to coreutils.
83500         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83501
83502 2005-01-28  Bruno Haible  <bruno@clisp.org>
83503
83504         * modules/javacomp: New file.
83505         * MODULES.html.sh (Java): Add javacomp.
83506
83507 2005-01-28  Bruno Haible  <bruno@clisp.org>
83508
83509         * m4/javacomp.m4: New file, from GNU gettext.
83510
83511 2005-01-28  Bruno Haible  <bruno@clisp.org>
83512
83513         * lib/javacomp.sh.in: New file, from GNU gettext.
83514         * lib/javacomp.h: New file, from GNU gettext.
83515         * lib/javacomp.c: New file, from GNU gettext.
83516
83517 2005-01-26  Simon Josefsson  <jas@extundo.com>
83518
83519         * lib/gai_strerror.c: Use GPL in header.
83520
83521 2005-01-26  Bruno Haible  <bruno@clisp.org>
83522
83523         * modules/javaexec: New file.
83524         * MODULES.html.sh (Java): Add javaexec.
83525
83526 2005-01-26  Bruno Haible  <bruno@clisp.org>
83527
83528         * m4/javaexec.m4: New file, from GNU gettext.
83529
83530 2005-01-26  Bruno Haible  <bruno@clisp.org>
83531
83532         * lib/javaexec.sh.in: New file, from GNU gettext.
83533         * lib/javaexec.h: New file, from GNU gettext.
83534         * lib/javaexec.c: New file, from GNU gettext.
83535
83536 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83537
83538         * modules/lchown (Depends-on): Remove lchown.h
83539
83540 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83541
83542         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83543         must be defined if the header file was not found, in order
83544         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83545
83546 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83547
83548         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83549         initializers for struct pentry_state.
83550         (__argp_error): Check return value of __asprintf
83551         (__argp_failure): Translate error message
83552
83553         * lib/argp-parse.c: Removed braces around the expansion of N_()
83554
83555 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83556
83557         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83558         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83559         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83560         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83561         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83562         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83563         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83564         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83565         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83566         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83567         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83568         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83569         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83570         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83571         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83572         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83573         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83574         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83575         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83576         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83577         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83578         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83579         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83580         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83581         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83582         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83583         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83584         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83585         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83586         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83587         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83588         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83589         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83590         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83591         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83592         Use an all-permissive copyright notice, recommended by RMS.
83593
83594 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * modules/chdir-long (Depends-on): Remove mempcpy.
83597
83598 2005-01-21  Jim Meyering  <jim@meyering.net>
83599
83600         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83601         same value as for Solaris 9.
83602
83603         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83604         component length.  This included changing the parameter to be
83605         of type `char *' rather than `char const *'.
83606         * lib/chdir-long.h (chdir_long): Update prototype.
83607
83608         * lib/openat.c (fdopendir, fstatat): New functions.
83609         * lib/openat.h: Include headers required for use of DIR and struct
83610         stat.
83611         [AT_SYMLINK_NOFOLLOW]: Define.
83612         (fdopendir, fstatat): Add prototypes.
83613
83614 2005-01-21  Bruno Haible  <bruno@clisp.org>
83615
83616         * modules/classpath: New file.
83617         * MODULES.html.sh (Java): Add classpath.
83618
83619 2005-01-21  Bruno Haible  <bruno@clisp.org>
83620
83621         * lib/classpath.h: New file, from GNU gettext.
83622         * lib/classpath.c: New file, from GNU gettext.
83623
83624 2005-01-20  Simon Josefsson  <jas@extundo.com>
83625
83626         * modules/version-etc-fsf: New file.
83627
83628 2005-01-20  Simon Josefsson  <jas@extundo.com>
83629
83630         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83631         * lib/version-etc.c: Remove version_etc_copyright.
83632         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83633         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83634
83635 2005-01-20  Simon Josefsson  <jas@extundo.com>
83636
83637         * lib/base64.h (isbase64): Add.
83638
83639         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83640         using a unsigned prototype, don't inline.
83641         (base64_decode): Use it.
83642
83643 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83646         it.
83647
83648 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * lib/save-cwd.c (save_cwd): Remove code to support the case
83651         where fchdir is missing or flaky.
83652
83653 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83656
83657 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83658
83659         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83660         AC_LIBSOURCES now does this.
83661         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83662         with new ullong_max module.
83663
83664 2005-01-19  Bruno Haible  <bruno@clisp.org>
83665
83666         * modules/sh-quote: New file.
83667         * MODULES.html.sh (Executing programs): Add sh-quote.
83668
83669 2005-01-19  Bruno Haible  <bruno@clisp.org>
83670
83671         * lib/sh-quote.h: New file, from GNU gettext.
83672         * lib/sh-quote.c: New file, from GNU gettext.
83673
83674 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83675
83676         Merge from coreutils.
83677         * m4/ullong_max.m4: New file.
83678         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83679         (gl_MACROS): Assume localeconv exists.
83680
83681 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83682
83683         Merge changes from coreutils, as described below in several
83684         changelogs dated today.
83685
83686         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83687         (O_DIRECTORY): Remove; not needed here, since "." must be
83688         a directory.  All uses removed.
83689         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83690         universal on Suns, and we also need to test for IRIX.
83691         Revamp code to use 'if' rather than '#if'.
83692         Avoid unnecessary comparison of cwd->desc to 0.
83693
83694         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83695         for known valid error numbers rather than observed invalid ones.
83696
83697 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * modules/ullong_max: New file.
83700
83701         * modules/chdir-long, modules/openat: New files.
83702         * modules/save-cwd (Depends-on): Depend on chdir-long.
83703         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83704
83705 2005-01-18  Jim Meyering  <jim@meyering.net>
83706
83707         Merge from coreutils.
83708         * m4/chdir-long.m4, m4/openat.m4: New files.
83709         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83710         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83711         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83712         is sane and DOES follow symlinks.  Besides, testing 20 different
83713         systems found no broken chown implementations.
83714         Prompted by a change in rsync's copy of this macro.
83715         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83716
83717         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83718
83719         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83720         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83721         NULL-means-set-to-current-time semantics.
83722         Remove temporary file immediately, rather than waiting
83723         for configure's at-exit trap code to do it.
83724
83725 2005-01-18  Jim Meyering  <jim@meyering.net>
83726
83727         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83728
83729         * lib/utimens.c (futimens): Account for the fact that futimes
83730         can also fail with errno == ENOSYS or errno == ENOENT.
83731         Patch from Dmitry V. Levin.
83732
83733         Change the name of the robust chdir function from chdir to chdir_long.
83734         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83735         (restore_cwd): Use chdir_long, not chdir.
83736         * lib/chdir-long.c: Renamed from chdir.c.
83737         * lib/chdir-long.h: Renamed from chdir.h.
83738         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83739         Hurd.
83740
83741 2005-01-18  Bruno Haible  <bruno@clisp.org>
83742
83743         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83744         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83745         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83746         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83747         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83748         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83749         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83750         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83751         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83752         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83753         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83754         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83755         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83756         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83757         Use an all-permissive copyright notice, recommended by RMS.
83758
83759 2005-01-18  Bob Proulx  <bob@proulx.com>
83760
83761         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83762         simplify offsetof() macro construct to avoid compile failure with
83763         native HP-UX 11.0 ANSI C compiler.
83764
83765 2005-01-17  Bruno Haible  <bruno@clisp.org>
83766
83767         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83768         redundant because stpncpy.m4 takes care of it.
83769
83770 2005-01-17  Bruno Haible  <bruno@clisp.org>
83771
83772         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83773
83774 2005-01-17  Bruno Haible  <bruno@clisp.org>
83775
83776         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83777         used.
83778
83779 2005-01-17  Bruno Haible  <bruno@clisp.org>
83780
83781         * lib/fwriteerror.h (fwriteerror): Change specification to include
83782         fclose.
83783         * lib/fwriteerror.c: Include <stdbool.h>.
83784         (fwriteerror): At the end, close the file stream. Record whether
83785         stdout was already closed.
83786
83787 2005-01-17  Bruno Haible  <bruno@clisp.org>
83788
83789         * lib/execute.c (environ): Declare if needed.
83790         * lib/pipe.c (environ): Likewise.
83791         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83792
83793 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83794
83795         * modules/argp: Depend on vsnprintf
83796
83797 2005-01-10  Jim Meyering  <jim@meyering.net>
83798
83799         * modules/closeout (Depends-on): Add atexit.
83800
83801 2005-01-06  Bruno Haible  <bruno@clisp.org>
83802
83803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83804
83805 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83808         definitions to be after all include files, to avoid collisions.
83809         Problem reported by Bob Proulx.
83810
83811 2005-01-04  Jim Meyering  <jim@meyering.net>
83812
83813         Changes imported from coreutils.
83814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83815         as the mkstemp template, use a temporary directory and an
83816         8.3-friendly template to avoid trouble on systems like DJGPP.
83817         Reported by Juan M. Guerrero via Stepan Kasal.
83818         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83819         close. Remove the temporary directory right away, rather than waiting
83820         for configure's at-exit trap code to do it.
83821         Suggestion from Stepan Kasal.
83822
83823 2005-01-01  Simon Josefsson  <jas@extundo.com>
83824
83825         * gnulib-tool: Print #include directives when --import'ing.
83826
83827 2004-12-28  Simon Josefsson  <jas@extundo.com>
83828
83829         * tests/test-base64.c: Include required header files.  Remove
83830         unused variables.
83831
83832 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         * modules/error (Depends-on): Remove gettext.
83835
83836 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83837
83838         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83839         not needed.  This removes a dependency on the gettext module.
83840         [defined _LIBC]: Do not include <libintl.h>; not needed.
83841
83842 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83843
83844         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83845         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83846
83847 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83848
83849         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83850         HAVE_DECL_STRTOLD.
83851
83852 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83853
83854         * modules/getdate (Depends-on): Remove alloca-opt.
83855
83856 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83857
83858         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83859
83860 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83861
83862         * lib/argp-parse.c: Include <stddef.h>.
83863         (alignof, alignto): New macros.
83864         (parser_init): Don't assume that void * is aligned sufficiently
83865         for struct option.
83866
83867         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83868         need to extend the stack.
83869         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83870         large.
83871
83872 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83873
83874         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83875
83876 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83877
83878         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83879         (2004-10-24) change.  Apparently this was a false alarm.
83880
83881         * modules/getdate: Depend on alloca-opt, not alloca.
83882
83883 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83884
83885         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83886         Remove now-obsolete comment about AIX.
83887         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83888         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83889         (YYMAXDEPTH): New macro.
83890
83891 2004-12-18  Simon Josefsson  <jas@extundo.com>
83892
83893         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83894
83895 2004-12-18  Bruno Haible  <bruno@clisp.org>
83896
83897         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83898
83899 2004-12-18  Bruno Haible  <bruno@clisp.org>
83900
83901         * lib/fatal-signal.c (fatal_signals): Make non-const.
83902         (init_fatal_signals): New function.
83903         (uninstall_handlers, install_handlers): Ignore signals that were set to
83904         SIG_IGN.
83905         (at_fatal_signal): Call init_fatal_signals.
83906         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83907         SIG_IGN.
83908         Reported by Paul Eggert.
83909
83910 2004-12-18  Bruno Haible  <bruno@clisp.org>
83911
83912         * doc/alloca.texi: New file.
83913         * doc/alloca-opt.texi: New file.
83914
83915 2004-12-17  Jim Meyering  <jim@meyering.net>
83916
83917         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83918         Otherwise, install-sh could exit with improper exit status when
83919         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83920
83921 2004-12-16  Simon Josefsson  <jas@extundo.com>
83922
83923         * tests/test-base64.c: Add license.
83924
83925 2004-12-15  Stepan Kasal  <address@hidden>
83926
83927         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83928
83929 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * modules/getcwd (Files): Add m4/d-ino.m4.
83932         Suggested by Mark D. Baushke.
83933
83934 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         * lib/getdate.y (textint): New member "negative".
83937         (time_zone_hhmm): New function.
83938         Expect 14 shift-reduce conflicts, not 13.
83939         (o_colon_minutes): New rule.
83940         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83941         (yylex): Set the "negative" member of signed numbers.
83942
83943 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         * doc/getdate.texi (Time of day items, Time zone items):
83946         Describe new formats +00:00, UTC+00:00.
83947
83948 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83949
83950         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83951         spurious "-l"s.  Problem reported by Stepan Kasal.
83952
83953 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83956         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83957
83958 2004-12-04  Simon Josefsson  <jas@extundo.com>
83959
83960         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83961         Vandoorselaere <yoann@prelude-ids.org>.
83962
83963 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83964
83965         Changes imported from coreutils.
83966         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83967         exist.
83968         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83969
83970 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         Changes imported from coreutils.
83973         * lib/hard-locale.c: Assume <locale.h> exists.
83974         Include "strdup.h".
83975         (GLIBC_VERSION): New macro.
83976         (hard_locale): Assume setlocale exists.
83977         Rewrite to avoid #ifdef.
83978         Use strdup rather than malloc + strcpy.
83979         * lib/human.c: Assume <locale.h> exists.
83980         (human_readable): Assume localeconv exists.
83981
83982 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83983
83984         * modules/hard-locale (Depends-on): Add strdup.
83985
83986 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83987
83988         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83989         convert T2, not T.  (Imported from libc.)
83990
83991 2004-11-30  Simon Josefsson  <jas@extundo.com>
83992
83993         * modules/restrict (License): Change to LGPL.
83994
83995 2004-11-30  Simon Josefsson  <jas@extundo.com>
83996
83997         * m4/restrict.m4: Add copyright and copying conditions.
83998
83999 2004-11-30  Simon Josefsson  <jas@extundo.com>
84000
84001         * m4/base64.m4: New file.
84002
84003 2004-11-30  Simon Josefsson  <jas@extundo.com>
84004
84005         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84006         base64.
84007
84008         * tests/test-base64.c: New file.
84009
84010         * modules/base64: New file.
84011
84012 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84013
84014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84015         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84016
84017         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84018
84019 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84020
84021         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84022         (__getcwd.c): Don't restore errno; glibc doesn't.
84023         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84024         first, falling back to our code only if its results look suspicious.
84025         Ensure that the resulting buffer is only as large as necessary.
84026
84027         * lib/readutmp.c: Include readutmp.h first.
84028         Include <errno.h>, since readutmp.h no longer does that.
84029         * lib/readutmp.h: Don't include <errno.h>,
84030         <sys/param.h>, <time.h>; not needed to establish interface.
84031         (errno): Remove decl.
84032         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84033         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84034         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84035
84036 2004-11-28  Simon Josefsson  <jas@extundo.com>
84037
84038         * lib/base64.h, base64.c: New file.
84039
84040 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84043
84044 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84047         (Depends-on): Remove pathmax, same.  Add mempcpy.
84048         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84049         (Makefile.am): Append getcwd.h to lib_SOURCES.
84050         (Include): Add getcwd.h.
84051         (Maintainer): Change from Jim Meyering to "all, glibc",
84052         since getdate now uses intended-for-glibc code.
84053         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84054         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84055
84056 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84057
84058         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84059         HP's ANSI C compiler.
84060         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84061         Declaring int functions causes warnings on some modern systems and
84062         shouldn't be needed to compile on ancient ones.
84063         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84064         defined.
84065
84066         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84067         with the following changes.
84068         (__set_errno): Parenthesize properly.
84069         Include <stdbool.h>.
84070         (MIN, MAX, MATCHING_INO): New macros.
84071         (__getcwd): Define with prototype, not K&R form.
84072         Use heuristics to allocate default buffer on stack if possible.
84073         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84074         behavior, and to avoid the PATH_MAX limit when computing
84075         ../../../../...
84076         Use MATCHING_INO to compare inode number to file.
84077         Check for arithmetic overflow in size calculations.
84078         Fix bug in reallocation of dot array that caused getcwd to fail
84079         on directories nested deeper than 75.
84080         Be more careful about saving errno on error.
84081         Do not use realloc; use only free+malloc, as this is a bit
84082         more flexible and avoids a needless copy operation.
84083         Do not inspect st_dev and st_ino for symbolic links; POSIX
84084         doesn't specify the latter.
84085         Check for closedir errors.
84086         Avoid needless casts.
84087         Use "#ifdef weak_alias" around weak_alias, to be like other
84088         glibc code.
84089         The following changes to getcwd.c have effect only when used in
84090         gnulib; they have no effect inside glibc proper.
84091         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84092         as alloca isn't used.
84093         (alloca, __alloca): Likewise.
84094         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84095         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84096         unconditionally, as gnulib assumes C89 or better.
84097         Do not include <sys/param.h>.
84098         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84099         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84100         better.
84101         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84102         Include <dirent.h> in a way that is compatible with modern Autoconf.
84103         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84104         New macros, if not already defined.
84105         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84106         Use "_LIBC", not "defined _LIBC", for consistency.
84107         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84108         a mempcpy module.
84109         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84110         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84111         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84112         credit only to Jim Meyering and adjust the copyright dates.
84113         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84114         <stdlib.h>, <unistd.h>, "pathmax.h".
84115         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84116         (INITIAL_BUFFER_SIZE): Remove.
84117         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84118
84119 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84122         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84123         Use the _ONCE methods, for efficiency.
84124         Check for fcntl.h.  In test program, include <errno.h>
84125         and <fcntl.h> if available.  Remove old K&R cruft from
84126         test program.  Check for common errors in GNU/Linux,
84127         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84128         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84129         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84130         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84131         name accordingly.
84132         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84133         accommodate new getcwd.c.
84134         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84135         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84136         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84137         that's all we need now.
84138
84139 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84140
84141         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84142         argp-parse.c depends on getopt internals, that means we should
84143         always use our getopt, to be on the safe side.
84144         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84145         order not to spoil the result of an eventual previous invocation
84146         of gl_GETOPT_SUBSTITUTE.
84147
84148 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84149
84150         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84151         redefinition warnings. To avoid them, include the defines
84152         in `#if !defined __need_getopt ... #endif'. The only place
84153         where __getopt_argv_const is used is in definitions
84154         of getopt_long and getopt_long_only below, which are as well
84155         protected by `#ifndef __need_getopt'.
84156         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84157         __need_getopt after including <stdio.h> and <unistd.h> These
84158         headers might have defined it.
84159
84160 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84161
84162         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84163
84164 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84165
84166         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84167         (futimens): New function, which uses futimes if available.
84168         (futimens, utimens): Support timespec==NULL, with same semantics
84169         as utime and utimens.
84170         * lib/utimens.h (futimens): New decl.
84171
84172 2004-11-23  Jim Meyering  <jim@meyering.net>
84173
84174         * lib/getopt_.h: Remove trailing blanks.
84175
84176 2004-11-23  Jim Meyering  <jim@meyering.net>
84177
84178         * lib/__fpending.c: Add comment.
84179
84180 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84181
84182         * modules/canonicalize (Depends-on): Add xreadlink.
84183         Problem reported by James Youngman.
84184
84185 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84186
84187         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84188         New macros.
84189         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84190         optopt): Use them instead of invoking ## directly; otherwise, the
84191         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84192
84193 2004-11-19  Bruno Haible  <bruno@clisp.org>
84194
84195         * lib/strtok_r.c: Move comments from here...
84196         * lib/strtok_r.h: ... to here.
84197
84198 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84201         implementations that mishandle size_t overflow.
84202
84203 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84206         might fail.  Problem reported by Yoann Vandoorselaere.
84207         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84208         implementations that mishandle size_t overflow.
84209
84210 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84211
84212         * modules/canon-host (Depends-on): Add strdup.
84213
84214 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84217
84218 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84219
84220         * lib/canon-host.c: Include "strdup.h".
84221         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84222         Use strdup instead of malloc/strcpy to duplicate strings.
84223
84224         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84225         (human_space_before_unit): New constant.
84226         * lib/human.c (human_readable): Support it.
84227
84228         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84229         (xgetcwd): Set errno correctly when failing.
84230         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84231         the failure is actually due to a PATH_MAX problem.
84232
84233         Further getopt changes to make it more likely that glibc will
84234         buy the changes back.
84235         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84236         (getopt): Use it, so to preserve glibc semantic
84237         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84238         when compiling for libc.
84239         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84240         (getopt_long, getopt_long_only): Use it.
84241
84242         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84243         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84244         (getopt): Argv is now char * const *, as per standard.
84245         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84246         not char *__getopt_argv_const *.
84247         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84248         _getopt_long_only_r): Likewise.
84249         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84250         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84251         _getopt_long_r, _getopt_long_only_r): Likewise.
84252         * lib/getopt_.h (__getopt_argv_const): Remove.
84253         (getopt): Argv is now char * const *, as per standard.
84254
84255         * lib/getdate.y (tORDINAL): New token.
84256         (day, relunit): Allow it for relative times.
84257         (relative_time_table): Use tORDINAL for ordinals.
84258
84259 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84262         Document that "second" isn't allowed as an ordinal number.
84263
84264 2004-11-16  Jim Meyering  <jim@meyering.net>
84265
84266         * modules/closeout (Depends-on): Add fpending.
84267
84268 2004-11-15  Jim Meyering  <jim@meyering.net>
84269
84270         * lib/closeout.c: Include "__fpending.h" once again.
84271         Include <stdbool.h>.
84272         (close_stdout): Don't fail just because stdout was closed initially,
84273         since some programs don't write to stdout in the normal course of
84274         operation (other than --version and --help), and we don't want this
84275         function to make e.g. `touch file >&-' fail.
84276         But do fail if it was closed and someone has tried to write to it.
84277         E.g., `printf foo >&-' must fail.
84278
84279 2004-11-13  Jim Meyering  <jim@meyering.net>
84280
84281         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84282
84283 2004-11-12  Simon Josefsson  <jas@extundo.com>
84284
84285         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84286         small doc fix is still pending.
84287
84288 2004-11-11  Simon Josefsson  <jas@extundo.com>
84289
84290         * modules/strtok_r: New file.
84291
84292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84293         strtok_r.
84294
84295 2004-11-11  Simon Josefsson  <jas@extundo.com>
84296
84297         * m4/strtok_r.m4: New file.
84298
84299         * m4/getopt.m4: Replace opterr.
84300
84301 2004-11-11  Simon Josefsson  <jas@extundo.com>
84302
84303         * lib/strtok_r.h, strtok_r.c: New file.
84304
84305 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84308         of replacing opterr, getopt, etc.  This should handle the
84309         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84310
84311 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84314         we can stop lying to compilers about the constness of argv when we
84315         are compiled outside glibc.
84316         (getopt, getopt_long, getopt_long_only): Use it.
84317         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84318         _getopt_internal, getopt): Likewise.
84319         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84320         _getopt_long_only_r): Likewise.
84321         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84322         _getopt_long_r, _getopt_long_only_r): Likewise.
84323
84324         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84325         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84326         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84327         the other external symbols.
84328         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84329         declaration, since the above renaming now works around collisions.
84330
84331 2004-11-11  Jim Meyering  <jim@meyering.net>
84332
84333         * lib/linebreak.c: Remove trailing blanks.
84334         * lib/alloca_.h: Likewise.
84335         * lib/acosl.c: Likewise.
84336         * lib/euidaccess.c: Likewise.
84337         * lib/allocsa.h: Likewise.
84338
84339 2004-11-10  Simon Josefsson  <jas@extundo.com>
84340
84341         * m4/getaddrinfo.m4: New file.
84342
84343 2004-11-10  Simon Josefsson  <jas@extundo.com>
84344
84345         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84346
84347 2004-11-10  Simon Josefsson  <jas@extundo.com>
84348
84349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84350         getaddrinfo.
84351
84352         * modules/getaddrinfo: New file.
84353
84354 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84355
84356         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84357
84358 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         * lib/mktime.c (SHR): New macro, which is a portable
84361         substitute for >> that should work even on Crays.
84362         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84363         Problem reported by Mark D. Baushke in
84364         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84365         * lib/getdate.y (SHR): Likewise.
84366         (tm_diff): Use it.
84367         * lib/strftime.c (SHR): Likewise.
84368         (tm_diff): Use it.
84369         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84370         quote_these_too, so that right shifts are well defined.  All uses
84371         changed.
84372
84373 2004-11-10  Jim Meyering  <jim@meyering.net>
84374
84375         Ensure that no close failure goes unreported.
84376         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84377         return early when it seems there's nothing to flush.
84378         Don't include __fpending.h.
84379
84380 2004-11-10  Jim Meyering  <jim@meyering.net>
84381
84382         * modules/closeout (Depends-on): Remove fpending.
84383
84384 2004-11-10  Jim Meyering  <jim@meyering.net>
84385
84386         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84387
84388 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84389
84390         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84391         gl_FUNC_STRFTIME.
84392         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84393         and AC_REQUIRE when possible, to avoid duplicate checks.
84394         Check for <wchar.h>.
84395
84396 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84399
84400 2004-11-09  Bruno Haible  <bruno@clisp.org>
84401
84402         * m4/sockpfaf.m4: New file.
84403
84404 2004-11-05  Bruno Haible  <bruno@clisp.org>
84405
84406         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84407         Reported by Mark D. Baushke <mdb@cvshome.org>.
84408
84409 2004-11-04  Bruno Haible  <bruno@clisp.org>
84410
84411         2004-09-11  Bruno Haible  <bruno@clisp.org>
84412                 * allocsa.valgrind: New file.
84413         2004-02-06  Bruno Haible  <bruno@clisp.org>
84414                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84415                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84416                 Reported by Christopher Seip <chris.seip@hp.com>.
84417
84418 2004-11-04  Bruno Haible  <bruno@clisp.org>
84419
84420         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84421         (Makefile.am): Distribute it.
84422
84423 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84424
84425         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84426         with errno == ERANGE if the buffer is too small.
84427         Problem reported by Mark D. Baushke.
84428
84429 2004-11-03  Albert Chin  <china@thewrittenword.com>
84430             Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84433         equivalent, substitute $ac_type for equivalent type rather than
84434         blindly using uint32_t *always* which won't work if uint32_t is not
84435         available.  Define _UINT32_T to work around typedef of uint32_t if
84436         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84437         2.5.1.
84438
84439 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84440
84441         * m4/jm-macros.m4: Sync from coreutils.
84442         (gl_MACROS): Check for mbrlen, for pathchk.
84443         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84444
84445 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * lib/xreadlink.c (MAXSIZE): New macro.
84448         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84449         size does not exceed MAXSIZE.  Avoid cast.
84450         As suggested by Mark D. Baushke in
84451         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84452         if readlink fails with buffer size just under MAXSIZE, try again
84453         with MAXSIZE.
84454
84455 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84456
84457         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84458
84459 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84460         and  Paul Eggert  <eggert@cs.ucla.edu>
84461
84462         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84463         (get_date): Overparenthesize to avoid GCC warning.
84464
84465 2004-11-02  Bruno Haible  <bruno@clisp.org>
84466
84467         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84468         returns void.
84469
84470 2004-11-02  Bruno Haible  <bruno@clisp.org>
84471
84472         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84473         function returns void.
84474
84475 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84476
84477         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84478         fflush_unlocked, flockfile, funlockfile, funlockfile,
84479         fputs_unlocked, putc_unlocked.
84480
84481 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84484         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84485         already declared.
84486
84487 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84488
84489         * modules/getdate (Files): Add doc/getdate.texi.
84490         (Depends-on): Add setenv, xalloc.
84491
84492 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84493
84494         * lib/getdate.y: Add support for TZ="foo" within a date string.
84495         Fix some bugs near time_t boundaries.  Reject dates with
84496         out-of-range components, e.g., "Sept 31".
84497         Include <stdlib.h>, "setenv.h", "xalloc.h".
84498         (ISDIGIT_LOCALE): Remove; unused.
84499         Note that the TZ and time functions used here are not reentrant.
84500         (mktime_ok, get_tz): New functions.
84501         (TZBUFSIZE): New constant.
84502         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84503         This requires that we sometimes generate our own TZ="XXX..." setting.
84504
84505 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * doc/getdate.texi: New file, from coreutils with modifications for
84508         the new TZ parsing.
84509
84510 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84511
84512         * lib/mktime.c (not_equal_tm): Remove redundant check.
84513
84514 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84515
84516         * modules/regex (lib_SOURCES): Add regex.c.
84517         Reported by James Youngman in
84518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84519
84520 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         * lib/getdate.y: Use Bison 1.875 features, and some minor
84523         code cleanups.  This change does not affect semantics.
84524         Don't include <stdlib.h>; no longer needed.
84525         Don't include unlocked-io.h; only the "#if TEST" code uses
84526         stdio, and performance isn't crucial there.
84527         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84528         Bison 1.875 features as described below.
84529         All uses of "PC." replaced by "pc->".
84530         (YYSTYPE): Add a forward declaration.
84531         (yylex, yyerror): Use full prototypes in forward decls.
84532         Use "%pure-parser" rather than obsolescent "%pure_parser".
84533         Use %parse-param and %lex-param instead of obsolescent
84534         YYPARSE_PARAM and YYLEX_PARAM.
84535         (meridian_table, month_and_day_table, time_units_table,
84536         relative_time_table, time_zone_table, military_table,
84537         lookup_zone, lookup_word, get_date):
84538         Use NULL instead of 0 where appropriate.
84539         (to_hour): Avoid abort (), to avoid a dependency on
84540         stdlib.h.
84541         (yyerror, yylex): Now accepts parser_control * arg.
84542         (main) [TEST]: Use '\0' rather than 0 for char.
84543
84544 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84547
84548 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84549
84550         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84551         It's now the caller's responsibility to handle the case where
84552         !HAVE_GETPAGESIZE && !defined getpagesize.
84553
84554         * lib/mktime.c (leapyear): Arg is long int, not int.
84555
84556 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84559
84560 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84561
84562         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84563         missing.  Problem reported by James Youngman.
84564
84565 2004-10-16  Simon Josefsson  <jas@extundo.com>
84566
84567         * gnulib-tool: Fix comments.  Fix parse problem.
84568         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84569
84570 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84571
84572         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84573         implementation of getopt_long.  Problem reported by Alexander Taler in:
84574         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84575
84576 2004-10-15  Bruno Haible  <bruno@clisp.org>
84577
84578         * gnulib-tool: Untabify. Initialize supplied_libname.
84579         (func_usage): More homogenous output.
84580         (func_modules_transitive_closure, func_modules_to_filelist,
84581         func_emit_lib_Makefile_am): New functions.
84582         (func_import): New function, extracted from big case statement. Use
84583         func_get_license, func_modules_transitive_closure,
84584         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84585         opt_lgpl. Don't use test -a, as it's not portable.
84586         (func_create_testdir): Use func_modules_transitive_closure,
84587         func_modules_to_filelist, func_emit_lib_Makefile_am.
84588
84589 2004-10-15  Bruno Haible  <bruno@clisp.org>
84590
84591         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84592
84593 2004-10-15  Bruno Haible  <bruno@clisp.org>
84594
84595         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84596         the portions belonging to each module.
84597         Suggested by Derek Robert Price <derek@ximbiot.com>.
84598
84599 2004-10-12  Simon Josefsson  <jas@extundo.com>
84600
84601         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84602         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84603         to real functions.
84604
84605 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84606
84607         * modules/vsnprintf: New file.
84608
84609 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84610
84611         * m4/vsnprintf.m4: New file.
84612
84613 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84614
84615         * lib/vsnprintf.h: New file.
84616         * lib/vsnprintf.c: New file.
84617
84618 2004-10-11  Bruno Haible  <bruno@clisp.org>
84619
84620         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84621         vsnprintf.
84622
84623 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84624
84625         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84626
84627 2004-10-07  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84630         fits into the provided buffer.
84631
84632 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84633
84634         * lib/diacrit.c, diacrit.h: Add GPL notice.
84635
84636         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84637         notice.
84638         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84639         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84640         This avoids a potential constant-folding bug.
84641
84642 2004-10-05  Bruno Haible  <bruno@clisp.org>
84643
84644         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84645         for the declaration of strsep.
84646
84647 2004-10-05  Bruno Haible  <bruno@clisp.org>
84648
84649         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84650
84651 2004-10-04  Simon Josefsson  <jas@extundo.com>
84652
84653         * modules/memmem: New file.
84654         * tests/test-memmem.c: New file.
84655         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84656
84657 2004-10-04  Simon Josefsson  <jas@extundo.com>
84658
84659         * m4/memmem.m4: New file.
84660
84661 2004-10-04  Simon Josefsson  <jas@extundo.com>
84662
84663         * lib/memmem.h: New file.
84664         * lib/memmem.c: New file, taken from glibc.
84665
84666 2004-10-04  Simon Josefsson  <jas@extundo.com>
84667
84668         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84669         '#ifdef USE_UNLOCKED_IO'.
84670
84671 2004-10-04  Simon Josefsson  <jas@extundo.com>
84672
84673         * config/srclist.txt: Add memmem from glibc.
84674
84675 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84678
84679         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84680         modules/exclude, modules/getdate, modules/getline,
84681         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84682         modules/getusershell, modules/linebuffer, modules/md5,
84683         modules/mountlist, modules/posixtm, modules/readtokens,
84684         modules/readutmp, modules/regex, modules/sha1,
84685         modules/version-etc, modules/yesno:
84686         Remove dependency on unlocked-io.
84687
84688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84689
84690         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84691
84692         * m4/unlocked-io.m4: Add copyright notice.
84693         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84694
84695 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84698         * lib/xmalloc.c (xmemdup): Likewise.
84699         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84700         XFREE): Remove these long-obsolescent macros.
84701         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84702         * lib/xstrdup.c: Remove.
84703
84704         * lib/regex.c (re_comp): Cast gettext return value to char *,
84705         Problem reported by Martin Neitzel via Mark D. Baushke.
84706
84707 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84708
84709         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84710         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84711         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84712         regex.c, sha1.c, version-etc.c, yesno.c:
84713         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84714         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84715         the includer's responsibility.
84716
84717         Sync from coreutils.
84718
84719         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84720         points to the start of a string, as the C Standard says the
84721         resulting behavior is undefined.
84722
84723         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84724         simple -> simple_backups, numbered_existing ->
84725         numbered_existing_backups, numbered -> numbered_backups
84726         to avoid shadowing problems.  All uses changed.
84727         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84728         * lib/backupfile.c (check_extension, numbered_backup):
84729         Rename locals to avoid shadowing 'basename'.
84730         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84731         once.
84732
84733         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84734         * lib/.cvsignore: Add getopt.h.
84735
84736 2004-10-04  Bruno Haible  <bruno@clisp.org>
84737
84738         * modules/README: New file.
84739         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84740         not a module.
84741
84742 2004-10-02  Jim Meyering  <jim@meyering.net>
84743
84744         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84745
84746 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84747
84748         * modules/strsep: New file.
84749
84750 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84751
84752         * m4/strsep.m4: New file.
84753
84754 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84755
84756         * lib/strsep.h: New file.
84757         * lib/strsep.c: New file.
84758
84759 2004-10-01  Simon Josefsson  <jas@extundo.com>
84760
84761         * lib/snprintf.c (snprintf): Handle size==0.
84762
84763 2004-10-01  Simon Josefsson  <jas@extundo.com>
84764             Bruno Haible  <bruno@clisp.org>
84765
84766         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84767         (snprintf): Declare 'args'.
84768
84769 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         * lib/snprintf.c: Remove comments as to why each header is needed.
84772
84773 2004-10-01  Bruno Haible  <bruno@clisp.org>
84774
84775         * MODULES.html.sh: Add strsep.
84776
84777 2004-09-30  Simon Josefsson  <jas@extundo.com>
84778
84779         * modules/snprintf: New file.
84780
84781 2004-09-30  Simon Josefsson  <jas@extundo.com>
84782
84783         * m4/snprintf.m4: New file.
84784
84785 2004-09-30  Simon Josefsson  <jas@extundo.com>
84786
84787         * lib/snprintf.h, lib/snprintf.c: New files.
84788
84789 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84790
84791         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84792         (hol_entry_help): Never translate an empty string.
84793         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84794         * lib/argp.h (OPTION_NO_TRANS): New option.
84795
84796 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84797
84798         * modules/argp (Maintainer): Replace Simon Josefsson
84799         by Sergey Poznyakoff.
84800
84801 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84804         changes merged back into glibc.
84805
84806 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84807
84808         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84809
84810 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84811
84812         * lib/xvasprintf.c: Include xalloc.h.
84813         (xvasprintf): Use xalloc_die, not xmalloc_die.
84814
84815 2004-09-29  Bruno Haible  <bruno@clisp.org>
84816
84817         * modules/alloca-opt: New file, derived from modules/alloca.
84818         * modules/allocsa: Depend on alloca-opt instead of alloca.
84819         * modules/setenv: Likewise.
84820         * modules/vasnprintf: Likewise.
84821         * MODULES.html.sh: Add alloca-opt.
84822
84823 2004-09-28  Simon Josefsson  <jas@extundo.com>
84824
84825         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84826         LGPL, and to replace license template from GPL to LGPL.
84827
84828 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * modules/dummy: Change license to LGPL.
84831
84832 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84835
84836 2004-09-24  Simon Josefsson  <jas@extundo.com>
84837
84838         * modules/minmax (License): Change from GPL to LGPL.
84839
84840 2004-09-23  Simon Josefsson  <jas@extundo.com>
84841
84842         * gnulib-tool (--import): Typo.
84843
84844 2004-09-23  Simon Josefsson  <jas@extundo.com>
84845
84846         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84847
84848 2004-09-22  Bruno Haible  <bruno@clisp.org>
84849
84850         * modules/*: Add 'License' field.
84851         * gnulib-tool: Accept --extract-license option.
84852         (func_get_license): New function.
84853
84854 2004-09-21  Bruno Haible  <bruno@clisp.org>
84855
84856         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84857         Reported by Simon Josefsson.
84858
84859 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84862         gl_AC_TYPE_LONG_LONG.
84863
84864 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84867
84868 2004-09-18  Simon Josefsson  <jas@extundo.com>
84869         and  Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84872         calls with autoreconf.  Define GL_LIB.
84873
84874 2004-09-14  Karl Berry  <karl@gnu.org>
84875
84876         * config/srclist.txt: unsync setenv.c, sigh.
84877
84878 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84881         Problem reported by Bruno Haible in:
84882         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84883
84884 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84885
84886         * config/srclist.txt: Comment out argp-pvh.c.
84887
84888 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84891         in case some system header has #define'd it.  Problem reported by
84892         Soeren D. Schulze in
84893         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84894
84895 2004-09-09  Karl Berry  <karl@gnu.org>
84896
84897         * regex.[ch]: delete from the root.  These were supposed to be
84898                 synced with emacs cvs, but this has not happened for about
84899                 a year, and anyway nothing else uses emacs regex.[ch].
84900                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84901                 lib/regex[.ch] is untouched.
84902
84903 2004-09-09  Bruno Haible  <bruno@clisp.org>
84904
84905         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84906
84907 2004-09-09  Bruno Haible  <bruno@clisp.org>
84908
84909         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84910         modifications.
84911         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84912
84913 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84914
84915         * modules/xvasprintf: New file.
84916         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84917
84918 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84919
84920         * lib/xvasprintf.h: New file.
84921         * lib/xvasprintf.c: New file.
84922         * lib/xasprintf.c: New file.
84923
84924 2004-09-08  Bruno Haible  <bruno@clisp.org>
84925
84926         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84927
84928 2004-09-08  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84931         length is > INT_MAX.
84932         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84933         more.
84934
84935 2004-09-08  Bruno Haible  <bruno@clisp.org>
84936
84937         * lib/stdint_.h: New file, taken from GNU clisp.
84938
84939 2004-09-08  Bruno Haible  <bruno@clisp.org>
84940             Oskar Liljeblad  <oskar@osk.mine.nu>
84941
84942         * modules/stdint: New file.
84943         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84944
84945 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         Import from coreutils.
84948         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84949         strings on unbounded length.  alloca's performance benefits aren't
84950         that important here.
84951         (V_STRDUP): Remove.
84952         (parse_with_separator): New function, with most of the internals
84953         of the old parse_user_spec.  Allow user to omit both user and group,
84954         for compatibility with FreeBSD.
84955         Clone only the user name, not the entire spec.
84956         Do not set *uid, *gid unless entirely successful.
84957         Avoid memory leak in some failing cases.
84958         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84959         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84960         (parse_user_spec): Rewrite to use parse_with_separator.
84961
84962 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84963
84964         * modules/userspec: Don't depend on alloca.
84965
84966 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84967
84968         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84969
84970 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84973         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84974         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84975
84976 2004-08-16  Simon Josefsson  <jas@extundo.com>
84977
84978         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84979         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84980         Add --dry-run for --import.
84981         Let user provided command line parameters override configure.ac
84982         settings.
84983
84984 2004-08-12  Simon Josefsson  <jas@extundo.com>
84985
84986         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84987         as discussed with Paul Eggert in threads rooted at
84988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84989         and
84990         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84991         Before, the test was empty, and relied on ELIDE_CODE in source
84992         code.)
84993         (gl_PREREQ_GETOPT): New macro.
84994         (gl_GETOPT): Use them.
84995
84996 2004-08-12  Simon Josefsson  <jas@extundo.com>
84997
84998         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84999         * lib/getopt_.h: Renamed from getopt.h.
85000
85001 2004-08-12  Simon Josefsson  <jas@extundo.com>
85002
85003         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85004         Change default library name from libfoo to libgnu.
85005         Now, if you have a configure.ac that says:
85006                 gl_SOURCE_BASE(gl)
85007                 gl_M4_BASE(gl/m4)
85008                 gl_MODULES(error getopt etcetera)
85009                 gl_INIT
85010         you can import all you need by running:
85011                 ../gnulib/gnulib-tool --import
85012
85013         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85014         (Makefile.am): Rewrite, use logic from argz.
85015         (Include): Use <getopt.h> instead of "getopt.h".
85016
85017 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85018
85019         * modules/argp (Files): Add m4/unlocked-io.m4.
85020         (Depends-on): Add extensions.
85021
85022 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85025         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85026         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85027         Check for program_invocation_name, program_invocation_short_name,
85028         flockfile, funlockfile, features.h, _getopt_long_only_r.
85029
85030 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85033         its complicated substitute.
85034         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85035         and program_invocation_name.
85036         (__argp_basename) [!_LIBC]: Remove; the only use was
85037         replaced by its body.
85038         (__argp_short_program_name): Change condition from
85039         !defined __argp_short_program_name to
85040         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85041         to match argp-namefrob.h.
85042         (__argp_failure): Don't assume strerror_r returns char *.
85043         * lib/argp-parse.c (N_): Define unconditionally.
85044         (argp_default_options): Fill out initializers with 0 to avoid
85045         gcc warnings.
85046
85047 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85048
85049         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85050         getopt1.c.
85051
85052 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         Merge from coreutils.
85055
85056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85057
85058         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85059         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85060
85061 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85062
85063         Merge from coreutils.
85064
85065         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85066         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85067         for Reliant Unix 5.43.
85068
85069         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85070         (union fooround): Use uintmax_t, not long int.
85071         The rest is a merge from libc:
85072         [defined _LIBC]: Include <shlib-compat.h>.
85073         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85074
85075         * lib/settime.c (settime): Recode to avoid warning with
85076         Sun Forte C 6U2.
85077
85078         * lib/strverscmp.c: Convert to UTF-8.
85079
85080 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85081
85082         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85083         m4/uintmax_t.m4.
85084
85085 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85086
85087         * modules/xalloc-die: New file.
85088         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85089
85090         * modules/md5 (Files): Add m4/uint32_t.m4.
85091         * modules/sha1: Renamed from modules/sha.
85092         (Files):
85093         Rename lib/sha.h to lib/sha1.h.
85094         Rename lib/sha.c to lib/sha1.c.
85095         Rename m4/sha.m4 to m4/sha1.m4.
85096         (lib_SOURCES): Likewise.
85097         (configure.ac): Rename gl_SHA to gl_SHA1.
85098         (Include): sha.h -> sha1.h.
85099
85100 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85101
85102         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85103         * m4/sha1.m4: Renamed from sha.m4.
85104         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85105
85106 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85107
85108         * lib/obstack.h (obstack_empty_p):
85109         Don't assume that chunk->contents is suitably aligned.
85110         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85111         Likewise. Problem reported by Benno in
85112         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85113
85114         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85115         readable.  This could be improved further but it'd take some work.
85116
85117 2004-08-08  Simon Josefsson  <jas@extundo.com>
85118
85119         * modules/xgethostname (Depends-on): Remove exit and error (not
85120         used).
85121
85122         * modules/getpass-gnu: Add getpass.h.
85123         (Depends-on): Add stdbool.
85124         * modules/getpass: Add getpass.h.
85125
85126 2004-08-08  Simon Josefsson  <jas@extundo.com>
85127
85128         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85129         Check getpass declaration.
85130
85131 2004-08-08  Simon Josefsson  <jas@extundo.com>
85132
85133         * lib/xgethostname.c: Don't include error.h (not used).
85134
85135         * lib/getpass.h: Add.
85136         * lib/getpass.c: Include getpass.h first.
85137
85138 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         * lib/xalloc-die.c: New file.
85141         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85142         All uses removed.
85143         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85144         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85145         xalloc-die.c.
85146         (_, N_, xalloc_die): Move to xalloc-die.c.
85147         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85148         so that we needn't mess with xalloc_msg_memory_exhausted.
85149
85150         * lib/sha1.h: Renamed from sha.h.
85151         (SHA1_H): Renamed from _SHA_H.
85152         (sha1_ctx): Renamed from sha_ctx.
85153         (sha1_init_ctx): Renamed from sha_init_ctx.
85154         (sha1_process_block): Renamed from sha_process_block.
85155         (sha1_process_bytes): Renamed from sha_process_bytes.
85156         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85157         (sha1_read_ctx): Renamed from sha_read_ctx.
85158         (sha1_stream): Renamed from sha_stream.
85159         (sha1_buffer): Renamed from sha_buffer.
85160         * lib/sha1.c: Likewise; renamed from sha.c.
85161         Do not include <sys/types.h>.
85162         Include <stddef.h> rather than <stdlib.h>.
85163
85164 2004-08-08  Bruno Haible  <bruno@clisp.org>
85165
85166         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85167         FILESYSTEM_PREFIX_LEN.
85168         * lib/progreloc.c: Likewise.
85169         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85170
85171 2004-08-06  Simon Josefsson  <jas@extundo.com>
85172
85173         * modules/progname (Depends-on): Don't depend on stdbool.
85174
85175 2004-08-06  Simon Josefsson  <jas@extundo.com>
85176
85177         * modules/getsubopt: New file.
85178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85179         getsubopt.
85180
85181 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85182
85183         More merge from coreutils.
85184
85185         * m4/utimens.m4, m4/utimecmp.m4: New files.
85186         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85187         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85188         prereq.m4, sha.m4: Import changes from coreutils.
85189
85190 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85191
85192         More merge from coreutils.
85193         * modules/raise, modules/readtokens0, modules/utimens:
85194         * modules/utimecmp, module/xnanosleep: New files.
85195         * modules/strftime: Add lib/strftime.h.
85196         Change include from <time.h> to "strftime.h".
85197         * modules/yesno: Add lib/yesno.h.
85198         * modules/backupfile: Remove lib/addext.c.
85199         * modules/euidaccess: Add stat-macros.h.
85200         * modules/canonicalize, modules/euidaccess,
85201         modules/filemode, modules/lchown, modules/makepath,
85202         modules/rmdir, modules/stat: Likewise.
85203
85204 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85205
85206         Merge from tar.
85207         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85208         SIZE_MAX is a valid preprocessor constant.
85209         (__argp_basename): Change from "#ifndef _LIBC"
85210         to "#ifndef __argp_short_program_name", so that
85211         we don't compile these functions for tar.
85212
85213         More merges from coreutils.
85214         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85215         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85216         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85217         * lib/addext.c: Remove; no longer needed.
85218         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85219         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85220         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85221         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85222         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85223         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85224         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85225         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85226         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85228         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85229         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85230         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85231         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85232         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85233         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85234         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85235         Import changes from coreutils.
85236
85237 2004-08-05  Simon Josefsson  <jas@extundo.com>
85238
85239         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85240
85241 2004-08-05  Simon Josefsson  <jas@extundo.com>
85242
85243         * m4/getsubopt.m4: New file.
85244
85245 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85246
85247         Merge from coreutils.
85248
85249         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85250         * m4/getcwd-path-max.m4: New files.
85251
85252         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85253         FILESYSTEM_PREFIX_LEN ->
85254         FILE_SYSTEM_PREFIX_LEN.
85255         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85256         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85257         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85258         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85259
85260         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85261         prerequisite modules now handle the DOS stuff.
85262         Don't check for unistd.h.
85263
85264 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85265
85266         Merge from coreutils.
85267
85268         * lib/.gdb-history: Remove; this doesn't belong here.
85269
85270         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85271         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85272         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85273         * lib/getcwd.c: New files.
85274
85275         * lib/dirname.h: Include <stdbool.h>.
85276         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85277         for consistency with POSIX terminology.  All uses changed.
85278         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85279         (strip_trailing_slashes): Use bool for booleans.
85280         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85281
85282         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85283         sometimes returns a positive errno value even when it succeeds.
85284         (print_errno_message) [!LIBC]: Fall back on strerror if
85285         __strerror_r fails.
85286
85287         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85288         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85289         (longest_relative_suffix): New function.
85290         (path_concat): Use it.  Assume first argument is not NULL.
85291         Port to DOS.  Omit redundant separators.
85292         Report an error instead of returning NULL.
85293         Use mempcpy instead of memcpy.
85294         (xpath_concat): Remove: not declared or used.
85295
85296         * lib/same.h: Include <stdbool.h>
85297         (same_name): Return bool, not int.
85298         * lib/same.c (same_name): Likewise.
85299         (errno): Don't declare; we assume C89 or better now.
85300
85301         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85302         if not already defined.
85303
85304         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85305         * lib/dup-safer.c (errno): Likewise.
85306
85307 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85308
85309         Merge from coreutils.
85310         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85311         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85312         * modules/path-concat: Don't depend on strdup.
85313
85314 2004-08-03  Simon Josefsson  <jas@extundo.com>
85315
85316         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85317         * lib/progname.h: Don't include stdbool.h.
85318
85319 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85322         * MODULES.html.sh (func_all_modules): Remove fatal.
85323
85324 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85327
85328 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85329
85330         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85331         working.
85332
85333 2004-08-02  Simon Josefsson  <jas@extundo.com>
85334
85335         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85336         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85337         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85338
85339 2004-08-01  Simon Josefsson  <jas@extundo.com>
85340
85341         * lib/xgetdomainname.c: Include stdlib.h, for free().
85342
85343 2004-07-19  Bruno Haible  <bruno@clisp.org>
85344
85345         * MODULES.html.sh (func_all_modules): Add dummy.
85346
85347 2004-07-16  Simon Josefsson  <jas@extundo.com>
85348
85349         * modules/dummy: New file.
85350
85351 2004-07-16  Simon Josefsson  <jas@extundo.com>
85352
85353         * lib/dummy.c: New file.
85354
85355 2004-07-16  Bruno Haible  <bruno@clisp.org>
85356
85357         * lib/backupfile.h: Add extern "C" for C++.
85358         * lib/closeout.h: Likewise.
85359         * lib/copy-file.h: Likewise.
85360         * lib/findprog.h: Likewise.
85361         * lib/full-write.h: Likewise.
85362         * lib/pathname.h: Likewise.
85363         * lib/progname.h: Likewise.
85364         * lib/stpcpy.h: Likewise.
85365         * lib/stpncpy.h: Likewise.
85366         * lib/strcase.h: Likewise.
85367         * lib/strstr.h: Likewise.
85368         * lib/xalloc.h: Likewise.
85369
85370         * lib/mbswidth.h: Add extern "C" for C++.
85371         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85372
85373 2004-07-13  Robert Millan  <robertmh@gnu.org>
85374
85375         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85376
85377 2004-07-09  Simon Josefsson  <jas@extundo.com>
85378
85379         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85380         failed without this.)
85381
85382 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         * modules/chown (Files): Add lib/fchown-stub.c, since
85385         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85386
85387 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * lib/fchown-stub.c: New file.
85390
85391 2004-06-24  Jim Meyering  <jim@meyering.net>
85392
85393         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85394
85395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85396
85397         * modules/argz: Omit "#include".
85398
85399         * MODULES.html.sh (func_all_modules): Add calloc, to match
85400         2004-06-01 addition of calloc module.
85401
85402 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         * m4/argz.m4: New file, which is autoupdated from libtool.
85405
85406 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85407
85408         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85409         libtool.
85410
85411 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85412
85413         * config/srclist-update: Don't insist on "USA." before the
85414         close-comment, as libtool omits the period and puts the */ on a
85415         separate line.
85416         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85417         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85418
85419 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85420
85421         * modules/argz: New file.
85422         * MODULES.html.sh (func_all_modules): Add argz.
85423
85424 2004-06-12  Jim Meyering  <jim@meyering.net>
85425         and  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * modules/hash (Files): Add lib/xalloc.h.
85428         * modules/pipe (Depends-on): Add wait-process.
85429         * modules/stat (Depends-on): Add xalloc.
85430         * modules/userspec (Files): Add lib/userspec.h.
85431         * modules/xstrto
85432
85433         Upgrade from gettext-0.13.
85434         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85435         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85436         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85437
85438 2004-06-10  Jim Meyering  <jim@meyering.net>
85439
85440         * lib/calloc.c: New file.
85441
85442 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85443
85444         * lib/getdate.y (yylex): Allow space between sign and number.
85445         Problem reported by Dan Jacobson.
85446
85447 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85448
85449         Merge from coreutils CVS.
85450
85451         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85452         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85453         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85454         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85455         xstrtol.m4: Fix copyright date and/or serial number.
85456
85457         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85458         See if we need an fchown replacement.
85459         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85460         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85461         and use the replacement function if we detect either defect.
85462
85463         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85464         gl_UTIMECMP.
85465
85466 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85467         and  Jim Meyering  <jim@meyering.net>
85468
85469         Merge from coreutils CVS.
85470
85471         * lib/stat-macros.h: New file, with contents from file-type.h
85472         and coreutils' system.h.
85473         * lib/file-type.c: Include "stat-macros.h".
85474         * lib/file-type.h (file_type): Move all macro definitions to new file,
85475         stat-macros.h.
85476
85477         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85478         Wrap old code with this conditional.
85479         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85480         function that does not dereference symlinks.
85481         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85482
85483         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85484         dependency problems.
85485         (xreadlink): Accept new arg SIZE, for efficiency.
85486         All decls and uses changed.
85487         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85488
85489         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85490         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85491
85492         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85493         sysexits.h.
85494
85495 2004-06-01  Jim Meyering  <jim@meyering.net>
85496
85497         * m4/calloc.m4: New file.
85498
85499 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85500
85501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85502         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85503         Also, fix a typo in a diagnostic.
85504
85505 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85506
85507         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85508         or AC_FUNC_REALLOC.
85509
85510 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85511
85512         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85513         macros to be defined.
85514         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85515         the allocator returns NULL because the requested size is zero.
85516
85517 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85520         var.  Add comment explaining why libc still defines it.  This
85521         merges the following patch from glibc:
85522         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85523
85524 2004-05-20  Andreas Schwab  <schwab@suse.de>
85525
85526         * m4/free.m4: Replace free if it not known to work, not the other
85527         way round.
85528
85529 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85532         present in glibc since revision 1.1 of this file.
85533         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85534         obstack_alignment_mask, obstack_alloc, obstack_base,
85535         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85536         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85537         obstack_grow0, obstack_init, obstack_int_grow,
85538         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85539         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85540         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85541         nonexistent functions.
85542
85543 2004-05-18  Karl Berry  <karl@gnu.org>
85544
85545         * config/srclist.txt: break link for vasnprintf.c.
85546
85547 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85548
85549         Port obstack to the AS/400, where pointers are 16 bytes wide and
85550         you cannot cast an integer to a valid pointer.  This patch is
85551         currently waiting to be integrated into glibc; see
85552         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85553
85554         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85555         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85556         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85557         (struct obstack): temp member is now a union of a pointer and
85558         an integer, instead of an integer.  All integer uses changed.
85559         This does not affect the physical layout of struct obstack,
85560         except on hosts (like the AS/400) where the size or alignment of
85561         void * is greater than that of ptrdiff_t.
85562         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85563         __STDC__)]: Store temporary in pointer member of union, not
85564         integer member.
85565         * lib/obstack.c: Include <stddef.h>, for offsetof.
85566         (struct fooalign): Remove; it doesn't need a name.
85567         (union fooround): Change double to long double, and add void *.
85568         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85569         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85570         not a macro.  Hence the values are always int; so remove all
85571         casts-to-int in uses.
85572
85573 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85574
85575         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85576         we can get this patch merged into glibc.
85577
85578 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85579             Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * m4/argp: Depend on alloca.
85582
85583 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85584             Paul Eggert  <eggert@cs.ucla.edu>
85585
85586         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85587         freecoding.
85588
85589 2004-05-17  Bruno Haible  <bruno@clisp.org>
85590
85591         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85592         precision that consists of a '.' followed by an empty digit string.
85593         Patch by Tor Lillqvist <tml@iki.fi>.
85594
85595 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85598         for backward compatibility with older code.  We need our own
85599         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85600         it under some other name, and our alloca.h will define it.
85601
85602 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85603             Derek Price  <derek@ximbiot.com>
85604
85605         * lib/alloca.c: Include <alloca.h>, to get our interface.
85606         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85607         include <alloca.h> first.  Use C89 prototype for alloca; this
85608         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85609         Use #elif for simplicity, since we can assume C89 now.
85610         Don't try to source the system alloca.h since it will not be found
85611         and to prevent recursively including its replacement.
85612         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85613         * lib/regex.c: Likewise.
85614
85615 2004-05-16  Derek Price  <derek@ximbiot.com>
85616             Paul Eggert  <eggert@cs.ucla.edu>
85617
85618         getline cleanup.  This changes the getndelim2 API: both order of
85619         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85620         no delimiter).
85621
85622         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85623         interface does that.
85624         (getline): Always use getdelim, so that we don't have two
85625         copies of this code.
85626         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85627         if available.
85628         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85629         (GETNDELIM2_MAXIMUM): New macro.
85630         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85631         instead of the old practice of delim2==0.  All callers changed.
85632         Return -1 on overflow, instead of returning junk.
85633         Do not set *linesize unless allocation succeeds.
85634         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85635         that we include sys/types.h.
85636         * lib/getnline.h: Likewise.
85637         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85638         (getndelim2): Reorder arguments.
85639         * lib/getnline.c (getnline, getndelim):
85640         Don't discard the NMAX argument.
85641         (getnline): Invoke getndelim, to avoid code duplication.
85642         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85643         of (size_t) -1 by callers of the getnline family.
85644
85645 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85646
85647         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85648         Check for gettimeofday.
85649         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85650         Check for settimeofday, stime.
85651
85652 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85653
85654         * lib/nanosleep.c (suspended): Change its type from int to
85655         sig_atomic_t volatile.
85656         (first_call): Make it private to rpl_nanosleep, and have it
85657         be zero initially as that's a bit faster.
85658         (my_usleep): Round up fractional times instead of truncating them,
85659         as this is the usual meaning for 'sleep'.
85660
85661         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85662         doesn't work.
85663         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85664         (ENOSYS): Define if not defined.
85665         (settime): Fall back on stime if it exists and settimeofday fails.
85666         But don't bother with fallbacks if a method fails with errno == EPERM.
85667
85668 2004-05-11  Jim Meyering  <jim@meyering.net>
85669
85670         Prior to this change, the save_cwd caller required read access to the
85671         current directory on most systems (ones with the fchdir function).
85672
85673         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85674         fails, try write-only, and finally, resort to using xgetcwd.
85675
85676 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85677
85678         * lib/obstack.c, obstack.h: Import changes from libc.
85679
85680 2004-04-28  Bruno Haible  <bruno@clisp.org>
85681
85682         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85683         also implicitly appends .exe to executables.
85684         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85685         accepts Windows pathnames.
85686         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85687         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85688         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85689         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85690         Reported by Derek Robert Price <derek@ximbiot.com>.
85691
85692 2004-04-21  Karl Berry  <karl@gnu.org>
85693
85694         * config/srclist.txt (localcharset.c): break sync.
85695
85696 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85697
85698         * m4/host-os.m4: Add a copyright notice.
85699
85700 2004-04-20  Jim Meyering  <jim@meyering.net>
85701
85702         Change UTILS_ to gl_ in AC_DEFINE'd names.
85703         Change utils_- and jm_-prefixed variables, too.
85704         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85705         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85707
85708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85709         Don't emit trailing blanks.
85710         Also rename jm_-prefixed variables to have gl_ prefix.
85711
85712         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85713         Also rename jm_-prefixed variables to have gl_ prefix.
85714
85715         * m4/jm-macros.m4: Reflect the renamings.
85716         * m4/prereq.m4: Likewise.
85717
85718 2004-04-20  Jim Meyering  <jim@meyering.net>
85719
85720         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85721         memory.
85722
85723 2004-04-20  Jim Meyering  <jim@meyering.net>
85724             Bruno Haible  <bruno@clisp.org>
85725
85726         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85727         memory when realloc fails.
85728
85729 2004-04-19  Jim Meyering  <jim@meyering.net>
85730
85731         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85732         now that readutmp.c may call `free (0)'.
85733
85734 2004-04-19  Bruno Haible  <bruno@clisp.org>
85735
85736         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85737         * m4/inttypes_h.m4: Likewise.
85738         * m4/stdint_h.m4: Likewise.
85739         * m4/intmax_t.m4: Likewise.
85740         * m4/uintmax_t.m4: Likewise.
85741
85742 2004-04-18  Jim Meyering  <jim@meyering.net>
85743
85744         * m4/prereq.m4: Don't forbid jm_ prefix.
85745
85746         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85747         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85748         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85749         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85750         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85751         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85752         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85753         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85754         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85755         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85756         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85757         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85758         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85759         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85760         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85761         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85762         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85763         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85764         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85765
85766 2004-04-18  Jim Meyering  <jim@meyering.net>
85767
85768         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85769         failure, don't leak memory and do call END_UTMP_ENT.
85770
85771 2004-04-16  Jim Meyering  <jim@meyering.net>
85772
85773         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85774         coreutils' stat program.
85775         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85776
85777 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85778
85779         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85780         C89.
85781         (CHAR_BIT): Remove, since we assume C89.
85782         Include <stdint.h> if available, as per current Autoconf CVS advice.
85783
85784 2004-03-31  Jim Meyering  <jim@meyering.net>
85785
85786         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85787         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85788         * m4/xalloc.m4: Likewise.
85789
85790 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85791
85792         Merge from coreutils.
85793
85794         * m4/inttostr.m4: New file.
85795         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85796         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85797         Require gl_CLOCK_TIME.
85798         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85799
85800 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85801
85802         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85803         not bool, to be more consistent with Unix conventions.
85804         Suggested by Bruno Haible.
85805
85806         Merge from coreutils.
85807
85808         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85809         * lib/umaxtostr.c: New files.
85810
85811         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85812         the usual <time.h> dance.
85813         (get_date): Change signature to support fractional time stamps.
85814         All callers changed.
85815         * lib/getdate.y: Include "getdate.h" first, as we can now
85816         assume C89 and don't need to worry about 'const'.
85817         Similarly, include "unlocked-io.h" near start, not in middle.
85818         Include <limits.h>.
85819         (textint.value): Use long int rather than int.
85820         (textint.digits): Use size_t rather than int.
85821         (BILLION, LOG10_BILLION): New constants.
85822         (parser_control): New member rel_ns.  Members day_ordinal,
85823         time_zone, month, day, hour, minutes, rel_year, rel_month,
85824         rel_day, rel_hour, rel_minutes, rel_seconds
85825         are now long int, not int.  Member seconds is now struct timespec,
85826         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85827         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85828         not int.
85829         (%union.intval): Now long int, not int.
85830         New member timespec.
85831         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85832         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85833         (spec): Now is a timespec or an item list.
85834         (timespec, items): New nonterminals.
85835         (time, rel, relunit, number, get_date):
85836         Add support for fractional seconds.
85837         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85838         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85839         (to_hour): First arg is now long int, not int.
85840         (to_year): Returns long int, not int.
85841         Don't treat year -70 like 70.
85842         (tm_diff): Returns long int, not int.
85843         (lookup_word): Use bool instead of int when appropriate.
85844         (yylex): Use size_t for count, not int.
85845         Detect overflow when parsing large integer constants.
85846         Add support for fractions.
85847         (get_date): Make pointers 'const' if possible.
85848         Use more-portable code to detect integer overflow.
85849         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85850         Don't use ctime; it's not reliable if the year has >4 digits.
85851
85852         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85853         This is for compatibility with BSD.
85854
85855         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85856         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85857         From coreutils' system.h.
85858
85859         * lib/userspec.c: Don't include "posixver.h".
85860         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85861         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85862         compatible extension.  Simplify code by removing a boolean int
85863         that was always nonzero if a string was nonnull.
85864
85865 2004-03-30  Jim Meyering  <jim@meyering.net>
85866
85867         Merge from coreutils.
85868
85869         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85870         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85871         on some systems one must include <grp.h> before it.
85872         Reported by Christian Krackowizer.
85873
85874 2004-03-30  Jim Meyering  <jim@meyering.net>
85875
85876         Merge from coreutils.
85877
85878         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85879
85880         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85881         an empty input stream.
85882
85883         * lib/readtokens.c: Include <stdbool.h>.
85884         (readtoken): Use `size_t' rather than int/long.
85885         All callers adjusted.
85886         Use `bool' rather than `int' where appropriate.
85887         Use memset rather than an explicit loop.
85888         Use x2nrealloc rather than xrealloc.
85889         Allow the use of `\0' as a delimiter.
85890         (readtokens): Likewise.
85891         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85892
85893 2004-03-30  Jim Meyering  <jim@meyering.net>
85894
85895         * m4/realloc.m4: Remove file, since now it does no more than
85896         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85897         the `configure.ac' section of module/realloc.
85898         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85899
85900 2004-03-30  Bruno Haible  <bruno@clisp.org>
85901
85902         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85903         nonnull.
85904
85905 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85906
85907         Merge changes to getloadavg.c from coreutils and Emacs.
85908
85909         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85910         Define to an expression, not to the empty string.
85911         Include cloexec.h and xalloc.h.
85912         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85913         Use set_cloexec_flag rather than rolling our own.
85914         * lib/cloexec.c, lib/cloexec.h: New files.
85915
85916 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85917
85918         * m4/cloexec.m4: New file.
85919
85920 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85921
85922         * lib/getopt.h: Sync with libc CVS.
85923
85924 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85925             Bruno Haible  <bruno@clisp.org>
85926
85927         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85928         mbswidth.
85929
85930 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85931             Bruno Haible  <bruno@clisp.org>
85932
85933         * lib/mbswidth.h: Include <wchar.h> only if
85934         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85935         <wchar.h>.
85936         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85937
85938 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85939
85940         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85941         Sync with libc CVS.
85942         * lib/getopt_int.h: New file, also synced from libc.
85943
85944 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85945
85946         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85947         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85948         Bring back getopt.c, getopt.h, getopt1.c.
85949
85950 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85951
85952         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85953         All uses changed.  Check for sa_sigaction member; this fixes
85954         a bug first reported by Jason Andrade in
85955         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85956
85957 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85958
85959         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85960         '#if' expressions.  Unlike the code it replaces, it does not
85961         depend on (defined _SC_PAGESIZE).  However, it does depend on
85962         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85963         first reported by Jason Andrade in
85964         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85965
85966 2004-02-25  Simon Josefsson  <jas@extundo.com>
85967
85968         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85969
85970 2004-02-25  Simon Josefsson  <jas@extundo.com>
85971
85972         * lib/strdup.h: New file.
85973         * lib/strdup.c: Include it.
85974         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85975         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85976
85977 2004-02-23  Karl Berry  <karl@gnu.org>
85978
85979         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85980         (from fencepost.gnu.org:/gd/gnuorg).
85981
85982 2004-02-23  Karl Berry  <karl@gnu.org>
85983
85984         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85985         * config/srclist.txt: add maintain/standards documents.
85986
85987 2004-02-18  Bruno Haible  <bruno@clisp.org>
85988
85989         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85990         Reported by Derek Robert Price <derek@ximbiot.com>.
85991
85992 2004-02-16  Karl Berry  <karl@gnu.org>
85993
85994         * config/mkinstalldirs, install-sh: update from automake.
85995
85996 2004-02-06  Karl Berry  <karl@gnu.org>
85997
85998         * m4/po.m4: update from gettext 0.14.1.
85999
86000 2004-02-06  Karl Berry  <karl@gnu.org>
86001
86002         * lib/config.charset: update from gettext 0.14.1.
86003
86004 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86005
86006         Add comments and code, prompted by suggestions from Bruno Haible
86007         for sh-quote.
86008         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86009         describing the enum quoting_style values.
86010         * lib/quotearg.c (quotearg_alloc): New function.
86011         (quotearg_buffer_restyled): Treat lone { and } as special.
86012         Treat = as special.  Work around bug with older shells
86013         that "see" a '\' that is really the 2nd byte of a multibyte char.
86014         Quote empty string with shell_quoting_style.
86015
86016 2004-02-03  Bruno Haible  <bruno@clisp.org>
86017
86018         * m4/pipe.m4: New file, from GNU gettext.
86019
86020 2004-02-03  Bruno Haible  <bruno@clisp.org>
86021
86022         * lib/pipe.h: New file, from GNU gettext.
86023         * lib/pipe.c: New file, from GNU gettext.
86024
86025 2004-01-27  Bruno Haible  <bruno@clisp.org>
86026
86027         * m4/execute.m4: New file, from GNU gettext.
86028
86029 2004-01-27  Bruno Haible  <bruno@clisp.org>
86030
86031         * lib/execute.h: New file, from GNU gettext.
86032         * lib/execute.c: New file, from GNU gettext.
86033         * lib/w32spawn.h: New file, from GNU gettext.
86034
86035 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86036
86037         Merge from diffutils.
86038
86039         * lib/file-type.c (file_type): Add typed memory objects.
86040         * lib/file-type.h (S_TYPEISTMO): New macro.
86041
86042         * lib/c-stack.h (c_stack_action): Remove argv argument.
86043         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86044         (die): Don't calculate message unless segv_action returns.
86045         (get_stack_location, min_address_from_argv, max_address_from_argv,
86046         volatile stack_base, volatile_stack_size): Remove.
86047         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86048         that every segmentation violation is a stack overflow.  (Ouch!)
86049         See Debian bug 136249 (still outstanding) for more info about why
86050         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86051
86052 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86053
86054         Exit-status fix from coreutils.
86055
86056         Use exit_failure consistently in place of EXIT_FAILURE,
86057         so that program exit statuses are consistent on failure.
86058
86059         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86060         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86061         * lib/argmatch.h: Comment fix to match the above.
86062         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86063         Now a macro referring to exit_failure, instead of a separate
86064         variable.  Include "exitfail.h" to get it.
86065         * lib/xstrtol.h: Include "exitfail.h".
86066         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86067
86068         * lib/long-options.c (parse_long_options): Use prototype
86069         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86070         for clarity.
86071
86072 2004-01-21  Jim Meyering  <jim@meyering.net>
86073
86074         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86075         so as not to conflict with a different-sized __mktime_internal
86076         function in GNU libc.
86077         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86078         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86079
86080 2004-01-20  Karl Berry  <karl@gnu.org>
86081
86082         * config/config.guess: update from config.
86083
86084         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86085
86086 2004-01-20  Bruno Haible  <bruno@clisp.org>
86087
86088         Safer stack allocation.
86089         * lib/setenv.c: Include allocsa.h.
86090         (alloca): Remove fallback definition.
86091         (freea): Remove macro.
86092         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86093         instead of freea.
86094
86095 2004-01-20  Bruno Haible  <bruno@clisp.org>
86096
86097         * m4/eealloc.m4: New file, from GNU gettext.
86098
86099 2004-01-20  Bruno Haible  <bruno@clisp.org>
86100
86101         * m4/allocsa.m4: New file, from GNU gettext.
86102
86103 2004-01-20  Bruno Haible  <bruno@clisp.org>
86104
86105         * lib/xallocsa.h: New file, from GNU gettext.
86106         * lib/xallocsa.c: New file, from GNU gettext.
86107
86108 2004-01-20  Bruno Haible  <bruno@clisp.org>
86109
86110         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86111
86112 2004-01-20  Bruno Haible  <bruno@clisp.org>
86113
86114         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86115         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86116         specially.
86117
86118 2004-01-20  Bruno Haible  <bruno@clisp.org>
86119
86120         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86121         patch.
86122
86123 2004-01-20  Bruno Haible  <bruno@clisp.org>
86124
86125         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86126
86127 2004-01-20  Bruno Haible  <bruno@clisp.org>
86128
86129         * lib/eealloc.h: New file.
86130
86131 2004-01-20  Bruno Haible  <bruno@clisp.org>
86132
86133         * lib/binary-io.h: Avoid warnings on Cygwin.
86134
86135 2004-01-20  Bruno Haible  <bruno@clisp.org>
86136
86137         * lib/allocsa.h: New file, from GNU gettext.
86138         * lib/allocsa.c: New file, from GNU gettext.
86139
86140 2004-01-18  Karl Berry  <karl@gnu.org>
86141
86142         * doc/gpl.texi, doc/lgpl.texi: new files.
86143
86144 2004-01-18  Karl Berry  <karl@gnu.org>
86145
86146         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86147         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86148
86149 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86150
86151         Merge from coreutils.
86152
86153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86154         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86155         (gl_DEFAULT_POSIX2_VERSION): Move
86156         the documentation from 'configure' into 'config.hin',
86157         so that 'configure --help' isn't burdened by it and
86158         we don't have to worry about its formatting there.
86159         Reword the documentation so that it's more succinct
86160         and can be run together into a single paragraph.
86161         * m4/same.m4 (gl_SAME): Check for pathconf.
86162
86163 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86164
86165         Merge from coreutils.
86166
86167         * lib/posixver.c: Include posixver.h.
86168
86169         * lib/same.c: Include <stdbool.h>, <limits.h>.
86170         (_POSIX_NAME_MAX): Define if not defined.
86171         (MIN): New macro.
86172         (same_name): If file names are silently truncated, report
86173         that the file names are the same if they are the same after
86174         the silent truncation.
86175
86176         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86177         conversion function.
86178         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86179         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86180         longer needed.
86181
86182 2004-01-15  Jim Meyering  <jim@meyering.net>
86183
86184         Merge from coreutils.
86185
86186         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86187         if no library is required.
86188         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86189         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86190         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86191         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86192         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86193         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86194         value, $ac_cv_search_crypt, if it's "none required".
86195         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86196         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86197         not gl_FUNC_GETLOADAVG.
86198         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86199         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86200
86201 2004-01-15  Jim Meyering  <jim@meyering.net>
86202
86203         Merge from coreutils.
86204
86205         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86206         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86207         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86208
86209         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86210         optional configure-time default.
86211
86212         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86213
86214         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86215
86216 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86217
86218         Merge from coreutils.
86219
86220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86221         value, $ac_cv_search_nanosleep, if it's "none required".
86222
86223 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86224
86225         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86226         with like-named macro in fnmatch.c.
86227         (EXT): Use an internal constant instead.
86228
86229         Merge fnmatch patches from glibc.
86230         * lib/fnmatch.c (mbsinit): Remove define.
86231         Add libc_hidden_ver (__fnmatch, fnmatch).
86232         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86233         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86234
86235 2004-01-14  Karl Berry  <karl@gnu.org>
86236
86237         * config/install-sh: update from automake.
86238
86239 2004-01-13  Karl Berry  <karl@gnu.org>
86240
86241         * config/install-sh: update from automake.
86242
86243 2004-01-09  Karl Berry  <karl@gnu.org>
86244
86245         * config/install-sh: update from automake.
86246
86247 2004-01-05  Karl Berry  <karl@gnu.org>
86248
86249         * config/config.{sub,guess}: update from config.
86250
86251 2003-12-31  Karl Berry  <karl@gnu.org>
86252
86253         * config/depcomp: update from automake.
86254
86255 2003-12-14  Karl Berry  <karl@gnu.org>
86256
86257         * lib/config.charset: update from gettext-runtime.
86258
86259 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86260
86261         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86262         Bug reported by Alfred M. Szmidt.
86263
86264 2003-12-03  Bruno Haible  <bruno@clisp.org>
86265
86266         * m4/gettext.m4: Upgrade from gettext-0.13.
86267         * m4/po.m4: Upgrade from gettext-0.13.
86268         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86269         * m4/intmax.m4: New file, from gettext-0.13.
86270         * m4/printf-posix.m4: New file, from gettext-0.13.
86271
86272 2003-11-29  Karl Berry  <karl@gnu.org>
86273
86274         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86275
86276 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86277             Bruno Haible  <bruno@clisp.org>
86278
86279         * lib/printf-parse.h: Don't include sys/types.h.
86280         (ARG_NONE): New macro.
86281         (char_directive): Change type of *arg_index fields to size_t.
86282         * lib/printf-parse.c: Don't include sys/types.h.
86283         (SSIZE_MAX): Remove macro.
86284         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86285         Remove unnecessary overflow check.
86286         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86287         fields.
86288
86289 2003-11-25  Bruno Haible  <bruno@clisp.org>
86290
86291         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86292
86293 2003-11-25  Bruno Haible  <bruno@clisp.org>
86294
86295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86296         gt_TYPE_SSIZE_T.
86297
86298 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86299
86300         * modules/alloca: Remove dependency on xalloc.
86301
86302 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86303
86304         * lib/alloca.c: Remove dependency on xalloc module.
86305         (xalloc_die): Remove.
86306         (memory_full) [!defined emacs]: New macro.
86307         [!defined emacs]: Don't include xalloc.h.
86308         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86309         address arithmetic overflows.  Change datatypes a bit to avoid
86310         unnecessary casts.
86311
86312 2003-11-22  Jim Meyering  <jim@meyering.net>
86313
86314         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86315         s/size/size_t/.
86316
86317 2003-11-21  Karl Berry  <karl@gnu.org>
86318
86319         * config/config.{sub,guess}: update from config.
86320
86321 2003-11-18  Karl Berry  <karl@gnu.org>
86322
86323         * config/config.{sub,guess}: update from config.
86324
86325         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86326
86327 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86328
86329         * README: Mention that S+T cannot overflow if S is the size of
86330         an existing object and T is sufficiently small.
86331
86332 2003-11-17  Jim Meyering  <jim@meyering.net>
86333
86334         On systems without utime and without a utimes function capable of
86335         dealing with a NULL struct utimbuf* argument, this utime replacement
86336         could -- in unusual circumstances -- leak a file descriptor.
86337         * lib/utime.c: Include <unistd.h> and <errno.h>.
86338         (utime_null): Be sure to close `fd' and to preserve errno.
86339         Reported by Geoff Collyer via Arnold Robbins.
86340
86341 2003-11-17  Bruno Haible  <bruno@clisp.org>
86342
86343         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86344         (Depends-on): Add xsize.
86345
86346 2003-11-17  Bruno Haible  <bruno@clisp.org>
86347
86348         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86349
86350 2003-11-17  Bruno Haible  <bruno@clisp.org>
86351
86352         * lib/vasnprintf.c (alloca): Remove fallback definition.
86353         (freea): Remove definition.
86354         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86355         Reported by Paul Eggert.
86356
86357 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86358             Bruno Haible  <bruno@clisp.org>
86359
86360         Protect against address arithmetic overflow.
86361         * lib/printf-args.h: Include stddef.h.
86362         (arguments): Change type of field 'count' to size_t.
86363         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86364         'unsigned int' where appropriate.
86365         * lib/printf-parse.h: Include sys/types.h.
86366         (char_directive): Change type of *arg_index fields to ssize_t.
86367         (char_directives): Change type of fields 'count', max_*_length to
86368         size_t.
86369         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86370         (SSIZE_MAX): Define fallback value.
86371         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86372         instead of 'int' where appropriate. Check a_allocated, d_allocated
86373         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86374         * lib/vasnprintf.c: Include xsize.h.
86375         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86376         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86377         overflow. Avoid wraparound when converting a width or precision from
86378         decimal to binary.
86379
86380 2003-11-16  Bruno Haible  <bruno@clisp.org>
86381
86382         Update from GNU gettext.
86383         * lib/printf-parse.c: Generalize to it can be compiled for wide
86384         strings.
86385         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86386         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86387         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86388         SNPRINTF): New macros.
86389         Don't include <alloca.h> if the file is used inside libintl.
86390         (local_wcslen): New function, for Solaris 2.5.1.
86391         (VASNPRINTF): Use it instead of wcslen.
86392
86393 2003-11-16  Bruno Haible  <bruno@clisp.org>
86394
86395         * lib/xsize.h (xmax): New function.
86396         (xsum, xsum3, xsum4): Declare as "pure" functions.
86397
86398 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86399
86400         * modules/xalloc (Files): Undo latest change, since xalloc.h
86401         no longer needs SIZE_MAX or PTRDIFF_MAX.
86402
86403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86404
86405         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86406         gl_PTRDIFF_MAX.
86407
86408 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86409
86410         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86411         "return", to pacify some unknown compiler.  Problem reported
86412         by Joerg Schilling.
86413
86414 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86415
86416         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86417         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86418         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86419         heuristic is just as accurate as far as we know, and it removes a
86420         dependency on size_max.m4 and ptrdiff_max.m4.
86421
86422 2003-11-11  Bruno Haible  <bruno@clisp.org>
86423
86424         * modules/xsize (Files): Add m4/size_max.m4.
86425         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86426
86427 2003-11-11  Bruno Haible  <bruno@clisp.org>
86428
86429         * m4/size_max.m4: New file.
86430         * m4/ptrdiff_max.m4: New file.
86431         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86433         (gl_XALLOC): Invoke it.
86434
86435 2003-11-11  Bruno Haible  <bruno@clisp.org>
86436
86437         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86438         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86439         defined.
86440
86441 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86442
86443         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86444         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86445         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86446         From Bruno Haible.
86447         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86448         not (size_t) -1, since it's defined here.
86449
86450 2003-11-09  Karl Berry  <karl@gnu.org>
86451
86452         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86453
86454 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86455
86456         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86457         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86458         Reject sizes of exactly SIZE_MAX bytes.
86459         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86460         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86461
86462 2003-11-05  Bruno Haible  <bruno@clisp.org>
86463
86464         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86465         SIZE_MAX defined in <limits.h> on Solaris.
86466
86467 2003-11-04  Jim Meyering  <jim@meyering.net>
86468
86469         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86470         variable names, rather than @VAR@.
86471         * modules/poll: Likewise.
86472
86473 2003-11-04  Bruno Haible  <bruno@clisp.org>
86474
86475         * modules/xsize: New file.
86476         * modules/linebreak: Depend on xsize.
86477         * MODULES.html.sh (func_all_modules): Add xsize.
86478
86479 2003-11-04  Bruno Haible  <bruno@clisp.org>
86480
86481         * m4/xsize.m4: New file.
86482
86483 2003-11-04  Bruno Haible  <bruno@clisp.org>
86484
86485         * lib/xsize.h: New file.
86486         * lib/linebreak.c: Include xsize.h.
86487         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86488         argument for overflow.
86489         Suggested by Paul Eggert.
86490
86491 2003-11-03  Karl Berry  <karl@gnu.org>
86492
86493         * config/config.{guess,sub}: update from config.
86494
86495 2003-11-03  Jim Meyering  <jim@meyering.net>
86496
86497         * modules/userspec (lib_SOURCES): Add userspec.h.
86498         (Include): Add "userspec.h".
86499         Improve description.
86500
86501 2003-11-03  Jim Meyering  <jim@meyering.net>
86502
86503         * lib/userspec.c: Include "userspec.h".
86504         * lib/userspec.h: New file.
86505
86506 2003-11-03  Bruno Haible  <bruno@clisp.org>
86507
86508         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86509
86510 2003-11-03  Bruno Haible  <bruno@clisp.org>
86511
86512         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86513         available, to avoid (extremely rare) race condition.
86514         Suggested by Paul Eggert.
86515
86516 2003-11-02  Karl Berry  <karl@gnu.org>
86517
86518         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86519
86520 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86521
86522         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86523         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86524         (read_filesystem_list): Set and use me_type_malloced.
86525         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86526         whatever the type happens to be), for brevity and consistency.
86527         Check for size calculation overflow on Alphas running OSF/1.
86528
86529 2003-10-31  Jim Meyering  <jim@meyering.net>
86530
86531         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86532
86533         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86534
86535 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86536             Bruno Haible  <bruno@clisp.org>
86537
86538         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86539         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86540
86541 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86542
86543         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86544         netbsd*-gnu*.  Suggested by Robert Millan.
86545
86546 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86547
86548         * modules/group-member: Depend on stdbool.
86549
86550 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86551
86552         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86553
86554 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86555
86556         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86557         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86558         after the 'gnu' in these cases.  This fixes some bugs in the
86559         previous change, and is based on suggestions by Robert Millan.
86560
86561 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86562
86563         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86564         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86565         no longer needed.
86566         * lib/quotearg.c (quotearg_n_options): Use it.
86567         * lib/group-member.c: Include <stdbool.h>.
86568         (free_group_info): Arg is now const *; don't free arg.
86569         (get_group_info): Now returns bool and accepts struct group_info *,
86570         rather than returning a malloc'ed struct group_info *.
86571         All uses changed.  Check for overflow in internal size calculation.
86572
86573         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86574         rather than xmalloc/xrealloc.
86575         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86576         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86577         conformance bug: the old code used a pointer after freeing the
86578         storage that it addressed.
86579         * lib/hash.c (hash_initialize): Simplify the code by using
86580         xalloc_oversized rather than doing it by hand.
86581         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86582         the buffer preserved.  Use free and xmalloc instead.
86583         * lib/quotearg.c (quotearg_n_options): Likewise.
86584         Use a simpler test for size overflow.  Don't use xalloc_oversized
86585         because unsigned int might be wider than size_t (!); this suggests
86586         that we should switch from unsigned int to size_t for slot numbers.
86587
86588 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86589
86590         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86591         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86592         NetBSD kernels.  Requested by Richard Stallman.
86593
86594 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86595
86596         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86597         to allocate the returned structure.  Do not allocate a subarray,
86598         as x2nrealloc will do that.
86599         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86600         instead of xnrealloc.
86601         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86602
86603 2003-10-27  Bruno Haible  <bruno@clisp.org>
86604
86605         * lib/stdbool_.h: Better support for BeOS.
86606
86607 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86608
86609         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86610         now uses inline.
86611
86612 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86613
86614         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86615         callers that want to do their own size-overflow checking.  Include
86616         <stdbool.h>, since xalloc_oversized returns bool.
86617         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86618         to use xalloc_oversized.
86619
86620         Add two functions x2realloc, x2nrealloc, for programs that grow
86621         arrays dynamically by doubling their sizes.
86622         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86623         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86624         New functions.
86625
86626         Port to C99 semantics for 'inline' of external functions.
86627         Bug reported by Bruno Haible.
86628         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86629         with the old contents of xnmalloc.
86630         (xnmalloc, xmalloc): Use it.
86631         (xnrealloc_inline): New static inline function,
86632         with the old contents of xnrealloc.
86633         (xnrealloc, xrealloc): Use it.
86634
86635         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86636         that.
86637
86638 2003-10-26  Karl Berry  <karl@gnu.org>
86639
86640         * config/srclist.txt (COPYING.DOC): no longer available from
86641         /gd/gnuorg; don't know where the ultimate source is.
86642
86643 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86644
86645         Fix several address-calculation bugs in the hash modules,
86646         plus some minor code cleanup.
86647
86648         * lib/hash.h: Include <stdbool.h>, for bool.
86649         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86650         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86651         hash_get_n_entries, hash_get_max_bucket_length,
86652         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86653         hash_rehash): Use size_t rather than unsigned.
86654         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86655         hash_get_n_buckets_used, hash_get_n_entries,
86656         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86657         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86658         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86659         Likewise.
86660         (SIZE_MAX): Define if not defined.
86661         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86662         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86663         hash_print):
86664         Use const * when possible.
86665         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86666         (check_tuning): Fix bug: if tuning parameters were very close to
86667         0 or 1, rounding errors could have caused subscript violations.
86668         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86669         (hash_initialize): Add 'fail:' label
86670         to free table and return NULL, and use it to simplify code.
86671         Use calloc rather than clearing the storage ourself.
86672         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86673         buffer size calculations.
86674         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86675         Include <stddef.h>, for size_t.
86676         * lib/hash-pjw.c (hash_pjw): Likewise.
86677         Switch to method described by Bruno Haible.
86678         Include <limits.h>, for CHAR_BIT.
86679         (SIZE_BITS): New macro.
86680
86681 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86682
86683         * m4/getline.m4 (AM_FUNC_GETLINE):
86684         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86685         hosts.  Problem reported by Derek Robert Price in
86686         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86687         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86688         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86689
86690 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86691
86692         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86693         ceiling the allocation at NMAX bytes rather than silently
86694         discarding input bytes before NMAX is reached.  This makes
86695         a difference only if NMAX exceeds SIZE_MAX / 2.
86696
86697         * lib/obstack.c: Merge from glibc.
86698         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86699         Add libc_hidden_def (_obstack_newchunk).
86700         (_obstack_free) [! defined _LIBC]: Remove.
86701         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86702         a clone of the function body.
86703         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86704         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86705
86706         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86707         glibc.
86708         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86709         arg to memcpy.
86710
86711         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86712         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86713         Don't use lvalue casts, as GCC plans to remove support for them
86714         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86715         was also present in the non-GCC version, indicating that this
86716         code had always been buggy and had never been widely used.
86717         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86718         Use the fast variant of each macro, rather than copying the
86719         definiens of the fast variant; that way, we'll be more likely to
86720         catch future bugs in the fast variants.
86721
86722 2003-10-20  Bruno Haible  <bruno@clisp.org>
86723
86724         * modules/wait-process: New file.
86725         * MODULES.html.sh (func_all_modules): Add wait-process.
86726
86727 2003-10-20  Bruno Haible  <bruno@clisp.org>
86728
86729         * m4/wait-process.m4: New file.
86730
86731 2003-10-20  Bruno Haible  <bruno@clisp.org>
86732
86733         * lib/wait-process.h: New file, from GNU gettext.
86734         * lib/wait-process.c: New file, from GNU gettext.
86735
86736 2003-10-19  Jim Meyering  <jim@meyering.net>
86737
86738         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86739         HPUX 10.20.
86740
86741 2003-10-18  Karl Berry  <karl@gnu.org>
86742
86743         * config/config.guess: update from config.
86744
86745 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86746
86747         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86748         (getgroups): First arg is int, not size_t.
86749         Don't let 'free' mangle errno.
86750
86751 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86752
86753         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86754
86755 2003-10-16  Karl Berry  <karl@gnu.org>
86756
86757         * config/config.{guess,sub}: update from config.
86758
86759 2003-10-16  Jim Meyering  <jim@meyering.net>
86760
86761         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86762         memcpy.
86763
86764 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86765
86766         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86767         (SIZE_MAX): Remove.
86768         (new_exclude, add_exclude_file): Initial size no longer needs to
86769         be a power of 2.
86770         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86771         our own address arithmetic overflow checking.
86772
86773         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86774         (fnmatch): Do not alloca more than 2000 wide characters;
86775         instead, use malloc for large buffers.
86776         Check for address arithmetic overflow, and return -1
86777         with errno set to ENOMEM in that case.
86778         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86779         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86780         instead, return -1.  Check for address arithmetic overflow.
86781
86782 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86783
86784         Handle invalid suffixes and overflow independently, so that
86785         callers can treat them independently as needed.  Fix some bugs in
86786         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86787         suffix for a human-readable blocksize.  The major caller-visible
86788         change is the addition of a new
86789         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86790         that both overflow and suffix chars were found.
86791
86792         * lib/human.c (humblock): Don't check separately for invalid suffix
86793         char; that is xstrtoumax's job (now that its bug is fixed).
86794         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86795         INTMAX_MAX]: New macros.
86796         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86797         TYPE_MAXIMUM): New macros.
86798         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86799         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86800         if overflow occurs, as it's what __strtol does and it's more useful
86801         in practice.
86802         (__xstrtol): If __strtol reports some error other than ERANGE,
86803         reflect it to the caller as LONGINT_INVALID.  If it reports
86804         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86805         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86806         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86807         value.
86808         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86809         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86810         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86811         [defined UINTMAX_MAX]: New macros.
86812
86813 2003-10-14  Bruno Haible  <bruno@clisp.org>
86814
86815         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86816
86817 2003-10-14  Bruno Haible  <bruno@clisp.org>
86818
86819         * m4/sig_atomic_t: New file, from GNU gettext.
86820         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86821
86822 2003-10-14  Bruno Haible  <bruno@clisp.org>
86823
86824         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86825         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86826         Also use volatile where needed.
86827
86828 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86829
86830         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86831         Change maintainer from Bruno Haible to 'all'.
86832
86833 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86834
86835         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86836
86837 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86838
86839         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86840         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86841         and define in terms of the other primitives.
86842         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86843         (SIZE_MAX): Define if not already defined.
86844         (array_size_overflow): New function.
86845         (xalloc_die): Abort instead of exiting if 'error' returns.
86846         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86847         (xmalloc, xrealloc): Use them.
86848         (xcalloc): Check for address arithmetic overflow.
86849         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86850         a bit faster than strcpy.
86851
86852 2003-10-10  Simon Josefsson  <jas@extundo.com>
86853
86854         * modules/argp (Depends-on): Add restrict and strcase.
86855
86856 2003-10-10  Simon Josefsson  <jas@extundo.com>
86857
86858         * m4/argp.m4: Add AC_C_INLINE.
86859
86860 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86861
86862         Merge getpass from libc, plus a few fixes.
86863
86864         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86865         Include <stdbool.h>.
86866         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86867         __fsetlocking to empty.
86868         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86869         do include <bits/libc-lock.h>.
86870         Do not include <fcntl.h>; not needed.
86871         [_LIBC]: Include <wchar.h>.
86872         (NOTCANCEL_MODE): New macro.
86873         (flockfile, funlockfile) [_LIBC]: New macros.
86874         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86875         [!_LIBC]: New macros.
86876         (call_fclose): New function.
86877         (getpass): Use it.  Save tty stream separately; this simplifies the
86878         code and makes it more reliable if stdin happens to equal stdout.
86879         Invoke __fsetlocking on tty.
86880         Handle thread cancellation if needed.
86881         Namespace cleanup (use __tcgetattr, __getline).
86882         Use bool for Booleans.
86883         [USE_IN_LIBIO]: Handle wide streams.
86884         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86885         stream might go where.
86886
86887         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86888         doesn't have to include <stdio.h> before us.
86889         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86890         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86891         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86892         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86893         if not declared, so that we can use getpass.c code from libc without
86894         rewriting it.
86895         (flockfile, ftrylockfile, funlockfile): New macros.
86896
86897 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86898
86899         * modules/getpass: Depend on stdbool.
86900
86901 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86902
86903         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86904
86905 2003-10-07  Karl Berry  <karl@gnu.org>
86906
86907         * config/config.{guess,sub}: update from config.
86908
86909 2003-10-06  Jim Meyering  <jim@meyering.net>
86910             Bruno Haible  <bruno@clisp.org>
86911
86912         This lets translators provide better translations for the
86913         "Written by ..." part of --version output.
86914         * lib/version-etc.h: Include stdarg.h.
86915         (version_etc_copyright): Declare as readonly.
86916         (version_etc): Make this function variadic with a NULL-terminated list
86917         of author name strings.
86918         (version_etc_va): New declaration.
86919         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86920         (version_etc_copyright): Declare as readonly.
86921         (version_etc_va): New function. Provide a different translatable string
86922         for each possible number of authors < 10. Abbreviate when there are 10
86923         authors or more.
86924         (version_etc): Make this function variadic. Call version_etc_va.
86925         Suggestion from Gary V. Vaughan.
86926
86927         * lib/long-options.h (parse_long_options): Change prototype: the
86928         authors string is moved to the end and becomes variadic.
86929         * lib/long-options.c: Include stdarg.h.
86930         (parse_long_options): Make this function variadic, too.
86931         Call version_etc_va, not version_etc.
86932
86933 2003-10-06  Bruno Haible  <bruno@clisp.org>
86934
86935         * modules/version-etc-2: Remove file.
86936         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86937
86938 2003-10-06  Bruno Haible  <bruno@clisp.org>
86939
86940         * modules/fatal-signal: New file.
86941         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86942
86943 2003-10-06  Bruno Haible  <bruno@clisp.org>
86944
86945         * m4/fatal-signal.m4: New file.
86946         * m4/signalblocking.m4: New file, from GNU gettext.
86947
86948 2003-10-06  Bruno Haible  <bruno@clisp.org>
86949
86950         * lib/version-etc-2.h: Remove file.
86951         * lib/version-etc-2.c: Remove file.
86952
86953 2003-10-06  Bruno Haible  <bruno@clisp.org>
86954
86955         * lib/fatal-signal.h: New file, from GNU gettext.
86956         * lib/fatal-signal.c: New file, from GNU gettext.
86957
86958 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86959
86960         * README: Rework advice for preventing empty .o files.
86961         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86962         not <sys/types.h>.
86963
86964 2003-10-04  Karl Berry  <karl@gnu.org>
86965
86966         * lib/argp*: update from libc.
86967
86968 2003-10-04  Karl Berry  <karl@gnu.org>
86969
86970         * config/config.{guess,sub}: update from config.
86971
86972 2003-10-02  Bruno Haible  <bruno@clisp.org>
86973
86974         * modules/lchown (Include): Add lchown.h.
86975         * modules/time_r (Include): Use "..." syntax.
86976         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86977
86978 2003-10-01  Simon Josefsson  <jas@extundo.com>
86979
86980         * MODULES.html.sh (func_all_modules): Move gethostname from section
86981         'based on' to section 'lacking' POSIX:2001.
86982
86983 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86984
86985         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86986         to output mode on the same stream.
86987
86988 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86989
86990         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86991         Fix arg typo in previous patch.
86992
86993 2003-09-28  Jim Meyering  <jim@meyering.net>
86994
86995         * lib/error.c: Correct cpp indentation.
86996
86997 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86998
86999         * modules/free: New file.
87000
87001 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87002
87003         * m4/free.m4: New file.
87004
87005 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87006
87007         * lib/minmax.h (MIN, MAX)
87008         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87009         Omit the special code that used __typeof__, since we worry that
87010         it could be more trouble than it's worth.  See:
87011         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87012         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87013
87014         * lib/free.c: New file.
87015
87016 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87017
87018         Trivial fixes to Makefile.am parts of module listings.
87019         * modules/strstr: Append strstr.h to lib_SOURCES.
87020         * modules/strcase: Likewise, for strcase.h.
87021
87022 2003-09-27  Karl Berry  <karl@gnu.org>
87023
87024         * config/mkinstalldirs: update from automake.
87025
87026 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87027
87028         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87029         (error_tail): Do not loop, reallocating temporary buffer, since
87030         the output cannot contain more wide characters than the input
87031         contains bytes, the size must be big enough already.  This avoids
87032         one potential size overflow calculation.  Check for size overflow
87033         when calculating temporary buffer size.  Free temporary buffer
87034         when done, if it was allocated with malloc; this plugs a memory
87035         leak.  Remove casts from void * to pointers, that are no longer
87036         needed now that we're assuming C89 or better.
87037
87038         Merge error changes from glibc.
87039
87040         * lib/error.c, error.h: Update copyright notice header to match glibc.
87041         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87042         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87043         Disable cancellation while printing error.
87044         * lib/error.h: Prepend __ to parameter names.
87045
87046 2003-09-26  Jim Meyering  <jim@meyering.net>
87047
87048         * lib/error.c (error_tail): Move some declarations
87049         into inner scope where the local variables are used.
87050
87051 2003-09-26  Bruno Haible  <bruno@clisp.org>
87052
87053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87054         stpncpy().
87055         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87056
87057 2003-09-26  Bruno Haible  <bruno@clisp.org>
87058
87059         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87060         (stpncpy): Define as alias for gnu_stpncpy.
87061         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87062
87063 2003-09-25  Simon Josefsson  <jas@extundo.com>
87064
87065         * lib/xgetdomainname.h: New file.
87066         * lib/xgetdomainname.c: New file.
87067
87068 2003-09-25  Simon Josefsson  <jas@extundo.com>
87069             Bruno Haible  <bruno@clisp.org>
87070
87071         * modules/getdomainname: New file.
87072         * modules/xgetdomainname: New file.
87073         * MODULES.html.sh (func_all_modules): Add getdomainname,
87074         xgetdomainname.
87075
87076 2003-09-25  Simon Josefsson  <jas@extundo.com>
87077             Bruno Haible  <bruno@clisp.org>
87078
87079         * m4/getdomainname.m4: New file.
87080
87081 2003-09-25  Simon Josefsson  <jas@extundo.com>
87082             Bruno Haible  <bruno@clisp.org>
87083
87084         * lib/getdomainname.h: New file.
87085         * lib/getdomainname.c: New file.
87086
87087 2003-09-25  Karl Berry  <karl@gnu.org>
87088
87089         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87090
87091 2003-09-25  Karl Berry  <karl@gnu.org>
87092
87093         * config/install-sh: update from automake.
87094
87095 2003-09-25  Bruno Haible  <bruno@clisp.org>
87096
87097         * modules/version-etc-2: New file, from modules/version-etc with
87098         modifications.
87099         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87100
87101 2003-09-25  Bruno Haible  <bruno@clisp.org>
87102
87103         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87104         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87105
87106 2003-09-24  Simon Josefsson  <jas@extundo.com>
87107
87108         * modules/xgethostname: Add xgethostname.h.
87109
87110 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87111
87112         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87113         the buffer associated with the argument.  Bug reported by
87114         Simon Josefsson.
87115
87116 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87117
87118         * README: Document assumptions that 'int' is at least 32 bits
87119         wide, that integer arithmetic is 2's complement without overflow,
87120         that there are no holes in integer values, that adding sizes of
87121         two nonoverlapping objects can't overflow, and that all-bits-zero
87122         yields scalar zero.  Fix spelling and capitalization typos.
87123
87124 2003-09-19  Karl Berry  <karl@gnu.org>
87125
87126         * lib/argp.h: update from libc.
87127
87128 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87129
87130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87131         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87132         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87133
87134 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87135
87136         * gnulib-tool: Use "test -h", not "test -L", for portability
87137         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87138         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87139         (sed_extract_prog): Issue s commands one-by-one, rather than
87140         using \| in one s command.
87141
87142 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87143
87144         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87145         input error, instead of returning NULL the next time we are called
87146         (and therefore losing track of errno).
87147
87148 2003-09-16  Bruno Haible  <bruno@clisp.org>
87149
87150         * gnulib-tool (func_create_testdir): Warn about duplicated
87151         dependencies.
87152
87153 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87154
87155         * modules/argmatch, modules/fatal, modules/obstack,
87156         modules/xalloc, modules/xgethostname: Sort dependencies by
87157         importance, not alphabetically.
87158
87159 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87160
87161         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87162         fails, so that the caller gets the proper errno.
87163
87164         * lib/readutmp.c (read_utmp): Likewise.
87165         Check for fstat error.  Close stream and free storage
87166         when failing.
87167
87168 2003-09-14  Karl Berry  <karl@gnu.org>
87169
87170         * config/srclist.txt (strdup.c): disable for c89 changes.
87171
87172 2003-09-14  Jim Meyering  <jim@meyering.net>
87173
87174         * lib/getloadavg.c: Correct cpp indentation.
87175         * lib/strdup.c: Likewise.
87176         * lib/vasnprintf.c: Likewise.
87177
87178 2003-09-14  Bruno Haible  <bruno@clisp.org>
87179
87180         * modules/fwriteerror: New file.
87181         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87182
87183 2003-09-14  Bruno Haible  <bruno@clisp.org>
87184
87185         * lib/fwriteerror.h: New file.
87186         * lib/fwriteerror.c: New file.
87187
87188 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87189
87190         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87191         modules/xgethostname, modules/xalloc: Depend on exit.
87192
87193 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87194
87195         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87196
87197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87198         and AC_MINIX, too, so that their extensions are available.
87199
87200         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87201         This macro has been superseded by gl_BACKUPFILE.
87202
87203         More patches to assume C89 or better.
87204
87205         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87206
87207         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87208         unconditionally.
87209         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87210         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87211         Include <string.h>, <stdlib.h> unconditionally.
87212         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87213         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87214         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87215         headers or for string.h.
87216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87217         or strtoul.
87218
87219         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87220         headers.
87221         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87222         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87223         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87224         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87225         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87226         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87227         memcpy, memset.
87228         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87229         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87230         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87231         strtol.
87232         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87233         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87235         strtoul.
87236
87237 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87238
87239         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87240         * lib/obstack.c [!defined _LIBC]: Likewise.
87241         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87242         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87243         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87244
87245         More changes to assume C89 or better.
87246
87247         * lib/error.c (error_tail): Assume vprintf.
87248
87249         * lib/argmatch.c (getenv): Remove decl.
87250         * lib/progreloc.c (get_full_program_name): Define via prototype.
87251         * lib/setenv.c (clearenv): Likewise.
87252         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87253         needed.
87254         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87255         (malloc, memcpy): Remove decls.
87256         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87257         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87258         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87259         (memcpy): Remove macro.
87260         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87261         (__P): Remove.  All uses removed.
87262         (PTR): Remove.  All uses changed to void *.
87263         (CHAR_BIT, NULL): Remove.
87264         (spaces, zeros, memset_space, memset_zero)
87265         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87266         Remove.
87267         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87268         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87269         Define with prototype.
87270         Remove now-unnecessary prototype decl.
87271         (extra_args_spec): Assume ANSI C.  All uses changed.
87272         (extra_args_spec_iso): Remove.
87273         (my_strftime, emacs_strftimeu): Define via prototype.
87274         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87275         unconditionally.
87276         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87277         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87278         (strtoul, strtol): Remove decls.
87279         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87280         LONG_MAX): Remove.
87281         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87282         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87283         (LOCALE_PARAM_PROTO): New macro.
87284         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87285         (INTERNAL (strtol), strtol): Define with a prototype.
87286         (PARAMS): Remove.  All uses removed.
87287         * lib/tempname.c: Include <string.h> unconditionally.
87288         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87289         * lib/xgethostname.c (main): Define with a prototype.
87290         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87291         Include <stdlib.h> unconditionally.
87292         (calloc, malloc, realloc, free): Remove decls.
87293         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87294         Include <stdlib.h> unconditionally.  Sort include file names.
87295         (strtod): Remove.
87296         (xstrtod): Define with a prototype.
87297         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87298         (strtol, strtoul): Remove decls.
87299
87300 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87301
87302         More patches to assume C89 or better.
87303         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87304         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87305         string.h, memchr, STDC_HEADERS.
87306
87307 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87308
87309         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87310         Include <stdlib.h>, <string.h> unconditionally.
87311         Remove now-unnecessary cast to char *.
87312         * lib/strnlen.c: Include <string.h> unconditionally.
87313         * lib/yesno.c (yesno): Define with a prototype.
87314
87315 2003-09-11  Bruno Haible  <bruno@clisp.org>
87316
87317         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87318
87319 2003-09-10  Jim Meyering  <jim@meyering.net>
87320
87321         * lib/error.c: Correct indentation of cpp directives.
87322
87323 2003-09-10  Bruno Haible  <bruno@clisp.org>
87324
87325         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87326         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87327         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87328         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87329         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87330         <stdlib.h> and <string.h> checks.
87331         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87332         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87333
87334 2003-09-10  Bruno Haible  <bruno@clisp.org>
87335
87336         * lib/strcspn.c: Include <string.h> unconditionally.
87337         * lib/strpbrk.c: Include <string.h> unconditionally.
87338         * lib/strstr.c: Include <string.h> unconditionally.
87339         * lib/unicodeio.c: Include <string.h> unconditionally.
87340         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87341         * lib/unsetenv.c: Likewise.
87342         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87343         * lib/yesno.c: Include <stdlib.h> unconditionally.
87344         (rpmatch): Add prototype.
87345
87346 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87347
87348         More patches to assume C89 or better.
87349         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87350         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87351         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87352         or for string.h.
87353         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87354         stdlib.h.
87355         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87356         C headers.
87357         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87358         string.h.
87359         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87360         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87361         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87362         or for string.h.
87363         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87364         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87365         C headers.
87366         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87367         memcpy.
87368         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87369         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87370         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87371         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87372         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87373         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87374         string.h, free.
87375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87376         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87377         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87378         C headers, or for string.h.
87379         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87380         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87381         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87382         headers, memory.h, stdlib.h, string.h, strings.h.
87383         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87384         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87385         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87386         strchr.
87387         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87388         headers, memory.h, string.h.
87389         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87390         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87391         free.
87392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87393         headers.
87394         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87395         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87396         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87397         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87398         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87399
87400 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87401
87402         More K&R removal.
87403
87404         * lib/acosl.c (main): Use a prototype.
87405         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87406         tanl.c: Likewise.
87407
87408         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87409
87410         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87411         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87412         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87413         with a prototype.
87414         * lib/getopt.c (const): Remove macro.
87415         Include <string.h> unconditionally.
87416         (my_index): Remove; all uses changed to strchr.
87417         (strlen): Remove decl.
87418         (exchange): Remove forward decl; no longer needed.
87419         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87420         Define with prototype.
87421         * lib/getopt1.c (const): Remove macro.
87422         (getopt_long, getopt_long_only, main): Define with prototype.
87423
87424         * lib/getugroups.c: Include <string.h> unconditionally.
87425
87426         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87427         (getusershell, setusershell, endusershell, readname, main):
87428         Define with prototypes.
87429
87430         * lib/group-member.c: Include group-member.h first.
87431         Include <stdlib.h> unconditionally.
87432
87433         * lib/hard-locale.c: Include hard-locale.h first.
87434         Include <stdlib.h>, <string.h> unconditionally.
87435
87436         * lib/hash.c (free, malloc): Remove decls.
87437         Include <stdlib.h> unconditionally.
87438
87439         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87440         (getenv): Do not declare.
87441
87442         * lib/idcache.c: Include <string.h> unconditionally.
87443
87444         * lib/long-options.c: Include long-options.h first, to test interface.
87445         Include <stdlib.h> unconditionally.
87446
87447         * lib/makepath.c: Include makepath.h first, to test interface.
87448         Include <stdlib.h> and <string.h> unconditionally.
87449
87450         * lib/linebuffer.c: Include <stdlib.h>.
87451         (free): Remove decl.
87452
87453         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87454         stddef.h. rpl_malloc returns void *, not char *.
87455         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87456         prototype.
87457
87458         * lib/md5.h: Include <limits.h> unconditionally.
87459         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87460         (__P): Remove; all uses removed.
87461         * lib/md5.c: Include "md5.h" first.
87462         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87463         md5_buffer, md5_process_bytes, md5_process_block):
87464         Define with prototypes.
87465         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87466         * lib/sha.c: Include "sha.h" first.
87467         Include <stdlib.h>, <string.h> unconditionally.
87468
87469         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87470         * lib/memcmp.c (__ptr_t): Likewise.
87471         * lib/memrchr.c (__ptr_t): Likewise.
87472         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87473         Include <string.h> unconditionally.
87474         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87475         * lib/memchr.c: Include <stdlib.h> unconditionally.
87476         * lib/memchr.c (LONG_MAX): Remove.
87477         * lib/memrchr.c (LONG_MAX): Likewise.
87478         * lib/memchr.c (__memchr): Define via a prototype.
87479         * lib/memrchr.c (__memrchr): Likewise.
87480         * lib/memcmp.c (__P): Remove, and remove all uses.
87481         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87482         Remove forward decls; no longer needed.
87483         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87484         Use types required by C89 in prototype.
87485
87486         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87487         * lib/savedir.c: Likewise.
87488         * lib/mkdir.c (free): Remove decl.
87489         * lib/rmdir.c (rmdir): Define with a prototype.
87490         * lib/savedir.c: Include savedir.h first, to test interface.
87491
87492         * lib/mktime.c (STDC_HEADERS): Remove.
87493         Include <stdlib.h>, <string.h> unconditionally.
87494
87495         * lib/modechange.c: Include <stdlib.h> unconditionally.
87496         (malloc): Remove decl.
87497
87498         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87499         (free): Remove decl.
87500
87501         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87502         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87503         (This type really should be intptr_t, but that's a C99ism.)
87504         (_obstack_memcpy): Remove: all uses changed to memcpy.
87505         Include <string.h> unconditionally.
87506         (struct obstack): Assume __STDC__ for types of members
87507         chunkfun, freefun, extra_arg.
87508         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87509         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87510         obstack_begin, obstack_specify_allocation,
87511         obstack_specify_allocation_with_arg, obstack_chunkfun,
87512         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87513         Remove unprototyped decls and the macros that use them.
87514         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87515         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87516         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87517         (defined __STDC__ && __STDC__)]:
87518         Remove nonprototyped code.
87519         Include <stdlib.h> unconditionally.
87520         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87521         _obstack_allocated_p, _obstack_free, obstack_free,
87522         _obstack_memory_used, print_and_abort):
87523         Define using prototypes.
87524         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87525         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87526         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87527         obstack_next_free, obstack_object_size, obstack_room) [0]:
87528         Remove unused, unprototyped code.
87529
87530         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87531
87532         * lib/physmem.c (physmem_total, physmem_available, main): Define
87533         with prototypes.
87534
87535         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87536         (main): Define with a prototype.
87537
87538         * lib/posixver.c (getenv): Remove decl.
87539
87540         * lib/putenv.c (malloc): Returns void *, not char *.
87541         Include <string.h> unconditionally.
87542         (strchr, memcpy, NULL): Do not define.
87543
87544         * lib/readtokens.c: Include readtokens.h first, to test interface.
87545         Include <stdlib.h>, <string.h> unconditionally.
87546         (init_tokenbuffer): Define with a prototype.
87547
87548         * lib/regex.c (PARAMS): Remove.  All uses removed.
87549         All uses of _RE_ARGS removed, too.
87550         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87551         unconditionally.
87552         (bzero): Assume memset exists.
87553         (memcmp, memcpy, NULL): Remove.
87554         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87555         char, or assignments to local vars of type signed char.
87556         (init_syntax_once, PREFIX(extract_number_and_incr),
87557         PREFIX(print_partial_compiled_pattern),
87558         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87559         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87560         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87561         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87562         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87563         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87564         wcs_compile_range, byte_compile_range, truncate_wchar,
87565         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87566         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87567         count_mbs_length, wcs_re_match_2_internal,
87568         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87569         PREFIX(alt_match_null_string_p),
87570         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87571         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87572         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87573         now-unnecessary declaration, if any.
87574         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87575         regcomp, regexec):
87576         Remove now-unnecessary casts among pointer types.
87577         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87578
87579         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87580         (free): Remove decl.
87581
87582         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87583
87584         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87585         (free): Remove decl.
87586
87587         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87588         * lib/xgetcwd.c: Likewise.
87589
87590         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87591         (free): Remove decl.
87592
87593         * lib/strchrnul.c (strchrnul): Define with a prototype.
87594         Fix bug: c_in was not converted to char before searching.
87595
87596         The following changes are not K&R related:
87597
87598         * lib/group-member.h: Include <sys/types.h>, so that this file is
87599         self-contained.
87600         * lib/makepath.h: Likewise.
87601
87602         * lib/getusershell.c (readname, default_index, line_size, readname):
87603         Use size_t, not int, for sizes.
87604         (readname): If the size overflows, report an error instead of
87605         looping forever.
87606
87607 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87608
87609         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87610         libc.
87611
87612 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87613
87614         * README: New section: portability guidelines.
87615
87616 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87617
87618         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87619         C89 spec.
87620
87621 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87622
87623         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87624
87625 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87626
87627         Assume C89 or better; remove K&R cruft.
87628         A few of these changes were first proposed by Derek Robert Price
87629         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87630
87631         * lib/addext.c: Include <string.h> unconditionally.
87632         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87633         Don't declare getenv or malloc.
87634
87635         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87636         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87637         (NULL): Remove.
87638         (find_stack_direction, alloca): Use prototypes.
87639
87640         * lib/atexit.c (atexit): Define using a prototype.
87641
87642         * lib/basename.c, dirname.c, stripslash.c:
87643         Include <string.h> unconditionally.
87644
87645         * lib/bcopy.c: Include <stddef.h>.
87646         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87647
87648         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87649
87650         * lib/error.h (error, error_at_line, error_print_progname)
87651         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87652         * lib/error.c: Include error.h first, to check interface.
87653         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87654         (VA_START): Remove; all uses changeed to va_start.
87655         (exit, strerror): Remove decls.
87656         (error_print_progname): Prototype uncondionally.
87657         Don't include <errno.h>; no longer needed.
87658         (private_strerror): Remove.
87659         (error_tail): Always define.
87660         (error, error_at_line): Assume C89 or better; always use prototypes.
87661         * lib/fatal.c: Include "fatal.h" first, to test interface.
87662         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87663         (VA_START): Remove; all uses changed to va_start.
87664         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87665         this case.
87666         (exit): Remove decl.
87667         (fatal): Prototype unconditionally.  Assume va_start works.
87668         Abort at end, to pacify gcc.
87669
87670         * lib/euidaccess.c (main): Define with a prototype.
87671
87672         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87673
87674         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87675
87676         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87677         prototypes.
87678         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87679         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87680         (getenv): Remove decl.
87681         (fnmatch): Define using a prototype.
87682         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87683         (FCT): Define using a prototype.
87684
87685         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87686
87687         * lib/gethostname.c: Include <stddef.h>.
87688         (gethostname): Define with prototype.  Length is size_t, not int.
87689
87690 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87691
87692         Assume C89 or better; remove K&R cruft.
87693         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87694         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87695         string.h, getenv, malloc.
87696         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87697         headers.
87698         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87699         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87700         do not check for strerror.
87701         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87702         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87703         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87704         do not check for doprnt or vprintf.
87705         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87706         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87707
87708 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87709
87710         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87711         getversion.c should have been removed then, but was accidentally
87712         preserved.
87713
87714         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87715         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87716
87717 2003-09-08  Karl Berry  <karl@gnu.org>
87718
87719         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87720                 config, forget about prep.
87721
87722         * config/depcomp, missing: update from automake.
87723
87724 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87725
87726         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87728
87729 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87730
87731         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87732         copy_tm_result.  Bug reported by Simon Josefsson in
87733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87734
87735 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87736
87737         * m4/time_r.m4: New file.
87738         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87739         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87740         is. Check for timegm declaration.
87741         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87742         Do not check for gmtime_r.
87743         Replace mktime if __mktime_internal does not exist and if mktime
87744         hasn't been replaced already.
87745
87746 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87747
87748         * lib/time_r.c, lib/time_r.h: New files.
87749
87750         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87751         __localtime_r.
87752         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87753         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87754
87755         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87756         __gmtime_r.
87757         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87758         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87759         Include <time_r.h>.
87760
87761         * lib/timegm.c: Switch to glibc implementation, with the following
87762         changes:
87763         [defined HAVE_CONFIG_H]: Include <config.h>.
87764         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87765         (__mktime_internal) [!defined _LIBC]: New decl.
87766         (__gmtime_r) [!defined _LIBC]: New macro and function.
87767         (timegm): Use a prototype, since gnulib assumes C89.
87768         Do not bother declaring tmp to be const, as it's not really usefu.
87769         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87770         (timegm): Declare only if HAVE_DECL_TIMEGM.
87771
87772 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87773
87774         * MODULES.html.sh (func_all_modules): Add time_r.
87775         * modules/time_r: New file.
87776         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87777         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87778
87779 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87780
87781         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87782         Bug reported by Lute Kamstra in
87783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87784
87785         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87786         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87787         course with correspondingly smaller numbers for tomorrow and
87788         yesterday.  From Tadayoshi Funaba.  Originally installed into
87789         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87790         coreutils merge?).
87791
87792 2003-08-31  Simon Josefsson  <jas@extundo.com>
87793
87794         * modules/timegm: New file.
87795         * MODULES.html.sh (func_all_modules): Add timegm.
87796
87797 2003-08-31  Simon Josefsson  <jas@extundo.com>
87798
87799         * m4/timegm.m4: New file.
87800
87801 2003-08-31  Simon Josefsson  <jas@extundo.com>
87802
87803         * lib/timegm.h: New file.
87804         * lib/timegm.c: New file.  Based on
87805         wget-1.8.2/src/http.c:mktime_from_utc.
87806
87807 2003-08-31  Karl Berry  <karl@gnu.org>
87808
87809         * lib/argp.h: update from libc.
87810
87811 2003-08-28  Bruno Haible  <bruno@clisp.org>
87812
87813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87814         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87815         followed by '#define fnmatch fnmatch_posix' gives an error.
87816
87817 2003-08-28  Bruno Haible  <bruno@clisp.org>
87818
87819         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87820         warning on QNX, which defines O_BINARY to 000000.
87821
87822 2003-08-27  Jim Meyering  <jim@meyering.net>
87823
87824         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87825         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87826         would fail after 32.  Reported by Danny Levinson.  Details here:
87827         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87828
87829 2003-08-24  Bruno Haible  <bruno@clisp.org>
87830
87831         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87832         MSVC7 <stdio.h> is included later.
87833
87834 2003-08-22  Simon Josefsson  <jas@extundo.com>
87835
87836         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87837
87838 2003-08-20  Karl Berry  <karl@gnu.org>
87839
87840         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87841
87842 2003-08-20  Bruno Haible  <bruno@clisp.org>
87843
87844         * modules/progname: New file.
87845         * MODULES.html.sh (func_all_modules): Add progname.
87846
87847 2003-08-20  Bruno Haible  <bruno@clisp.org>
87848
87849         * lib/progname.h: New file, from GNU gettext.
87850         * lib/progname.c: New file, from GNU gettext.
87851         * lib/progreloc.c: New file, from GNU gettext.
87852
87853 2003-08-19  Jim Meyering  <jim@meyering.net>
87854
87855         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87856         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87857
87858 2003-08-19  Bruno Haible  <bruno@clisp.org>
87859
87860         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87861         more.
87862
87863 2003-08-19  Bruno Haible  <bruno@clisp.org>
87864
87865         * lib/xstrdup.c: Assume <string.h> exists.
87866
87867 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87868
87869         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87870         in makefile rules.
87871
87872 2003-08-18  Jim Meyering  <jim@meyering.net>
87873
87874         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87875         * m4/lib-ld.m4: Likewise.
87876
87877 2003-08-18  Jim Meyering  <jim@meyering.net>
87878
87879         * lib/setenv.h: Indent nested cpp directive.
87880         * lib/vasnprintf.c: Remove trailing blanks.
87881
87882 2003-08-17  Simon Josefsson  <jas@extundo.com>
87883
87884         * modules/xstrndup: New file.
87885         * MODULES.html.sh (func_all_modules): Add xstrndup.
87886
87887 2003-08-17  Simon Josefsson  <jas@extundo.com>
87888
87889         * modules/argp: Fix autoconf macro name. Add more dependencies.
87890
87891 2003-08-17  Simon Josefsson  <jas@extundo.com>
87892
87893         * m4/xstrndup.m4: New file.
87894
87895 2003-08-17  Simon Josefsson  <jas@extundo.com>
87896
87897         * m4/argp.m4: New file.
87898
87899 2003-08-17  Simon Josefsson  <jas@extundo.com>
87900             Bruno Haible  <bruno@clisp.org>
87901
87902         * lib/xstrndup.h: New file.
87903         * lib/xstrndup.c: New file.
87904
87905 2003-08-17  Bruno Haible  <bruno@clisp.org>
87906
87907         * modules/strndup (Files, Include): Add lib/strndup.h.
87908
87909 2003-08-17  Bruno Haible  <bruno@clisp.org>
87910
87911         * modules/euidaccess (Files): Add lib/euidaccess.h.
87912
87913 2003-08-17  Bruno Haible  <bruno@clisp.org>
87914
87915         * lib/strndup.h: New file.
87916
87917 2003-08-17  Bruno Haible  <bruno@clisp.org>
87918
87919         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87920         like AC_GNU_SOURCE.
87921         * modules/extensions (configure.ac): Comment out the invocation of
87922         gl_USE_SYSTEM_EXTENSIONS.
87923
87924 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87925
87926         Merges from coreutils, etc.
87927         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87928         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87929         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87930         fixing a typo.
87931         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87932         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87933
87934 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87935
87936         Document merge from coreutils.
87937         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87938         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87939         * modules/utime: Add m4/utimes-null.m4.
87940
87941 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87942
87943         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87944         space, undoing this 2003-08-12 change:
87945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87946
87947 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87948
87949         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87950         strtoul.c from libc, undoing this 2003-08-12 change:
87951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87952
87953 2003-08-16  Jim Meyering  <jim@meyering.net>
87954
87955         Merges from coreutils.
87956         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87957         prefix.  Adjust cache variables similarly.  Create 500 rather than
87958         just 300 files, to exercise bug on Darwin6.5, too.
87959         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87960         $missing_dir.
87961         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87962         AM_SYS_POSIX_TERMIOS.
87963         Reported by mkc@mathdogs.com.
87964         Also change use of $am_cv_sys_posix_termios
87965         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87966         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87967         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87968         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87969         in /proc/mounts until it finds one with matching device number.  This
87970         is unnecessary when the FILE argument *is* a mount point.  No stat call
87971         is necessary in that case.  So, disable the statvfs-testing code on
87972         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87973         as RedHat bug# 84846.
87974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87975         to 1MB, so as not to render systems with no stack size limit (e.g.,
87976         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87977         Include <unistd.h>.  On some systems,
87978         it is required for the definition of _SC_PAGESIZE.
87979
87980 2003-08-16  Jim Meyering  <jim@meyering.net>
87981
87982         Merge from coreutils.
87983         * lib/xstrtoimax.c: #else #if -> #elif.
87984         * lib/xstrtoumax.c: Likewise.
87985
87986 2003-08-16  Jim Meyering  <jim@meyering.net>
87987
87988         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87989         * m4/utimes.m4: Removed.
87990         * m4/utimes-null.m4: Renamed from utimes.m4.
87991
87992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87993         to 1MB, so as not to render systems with no stack size limit (e.g.,
87994         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87995         Include <unistd.h>.  On some systems,
87996         it is required for the definition of _SC_PAGESIZE.
87997
87998 2003-08-16  Jim Meyering  <jim@meyering.net>
87999         and Paul Eggert  <eggert@cs.ucla.edu>
88000
88001         Merges from coreutils, etc.
88002
88003         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88004         using the latest version from cvs.  This avoids problems with #line
88005         directives using a vendor (Sun) compiler.
88006         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88007         Don't set GETGROUPS_LIB here; now it's
88008         done via getgroups.m4's wrapper function.
88009         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88010         rather than just in sh-util/configure.in, so that the
88011         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88012         same.
88013         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88014         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88015         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88016         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88017         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88018         Remove code that is now done by the newly-required macros.
88019         Append $(EXEEXT) to DF_PROG.
88020         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88021         Do not invoke or require the following here,
88022         since prereq.m4 or some gnulib .m4 now does this for us:
88023         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88024         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88025         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88026         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88027         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88028         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88029         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88030         AC_FUNC_OBSTACK.
88031         Do not replace the following functions, as this is now the job
88032         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88033         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88034         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88035         atexit getpass, strdup, getpagesize.
88036         Replace 'raise'.
88037         Do not check for the following functions, as this is now the job
88038         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88039         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88040         setregid.
88041         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88042         Check for sys/sysctl.h.
88043         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88044         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88045         of checking for ssize_t ourselves.
88046
88047         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88048         Require every macro that gnulib/modules/* suggests for us.
88049         (jm_PREREQ_ADDEXT): New macro.
88050         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88051         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88052
88053         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88054         (gl_PHYSMEM): Use it.
88055         Also check for `table' function.
88056         Check for new headers and functions.
88057         Add check for sys/sysmp.h.
88058         With suggestions from Kaveh Ghazi.
88059         Ignore headers that are present but cannot be compiled.  This
88060         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88061         C 5.4.
88062
88063 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88064
88065         Document merge from coreutils.
88066         * modules/userspec: Depend on posixver.
88067         * modules/strftime: Depend on tzset.
88068
88069 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88070
88071         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88072         rather than tab, after '#' in shell-script copyright notices.
88073         Suggested by Bruno Haible.
88074
88075 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88076
88077         * config/srclist-update: Use three spaces, rather than tab, after '#'
88078         in shell-script copyright notices.  Suggested by Bruno Haible.
88079         Remove unnecessary parenthesization in regular expression.
88080
88081 2003-08-15  Jim Meyering  <jim@meyering.net>
88082
88083         Merge from coreutils.
88084         * lib/xgethostname.c: Include <stdlib.h>.
88085         (xghostname): Don't exit for anything other than memory-related
88086         failure; just return NULL.
88087         * lib/userspec.c: Include "posixver.h".
88088         (parse_user_spec): Accept `.' as a separator only
88089         in pre-POSIX-200112 mode.
88090         * lib/strtoimax.c: Use #elif rather than #else #if.
88091         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88092         Remove function, now that we can rely on a working tzset function.
88093         [!_LIBC]: Ensure that the required autoconf test has been run.
88094         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88095         Use underlying_strftime for %r.
88096         * lib/sha.c: Merge in some clean-up and optimization changes from
88097         glibc.
88098         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88099         Ensure that it is a multiple of 64.
88100         Rearrange loop exit tests so as to avoid performing an
88101         additional fread after encountering an error or EOF.
88102         * lib/realloc.c: Update copyright date.
88103
88104 2003-08-15  Jim Meyering  <jim@meyering.net>
88105         and Paul Eggert  <eggert@twinsun.com>
88106
88107         Merge from coreutils.
88108         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88109         member but strut utmpx does not.  Needed for AIX 4.3.3.
88110         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88111
88112 2003-08-15  Jim Meyering  <jim@meyering.net>
88113         and Paul Eggert  <eggert@cs.ucla.edu>
88114
88115         Merges from coreutils, etc.
88116         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88117         Require gl_FUNC_TZSET_CLOBBER.
88118         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88119         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88120         members.
88121
88122 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88123
88124         Help the merge from coreutils.
88125         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88126         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88127         * m4/tzset.m4: Use it too.
88128
88129 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88130
88131         * modules/tzset: New file.
88132
88133 2003-08-14  Jim Meyering  <jim@meyering.net>
88134
88135         Merges from coreutils.
88136         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88137         variable names, rather than @FNMATCH_H@.
88138         * modules/alloca: Likewise for $(ALLOCA_H).
88139
88140         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88141         the three copies of the literal target, `fnmatch.h'.
88142         * modules/alloca (alloca.h): Likewise.
88143
88144 2003-08-14  Jim Meyering  <jim@meyering.net>
88145
88146         Merge from coreutils.
88147         * m4/tzset.m4: New file.
88148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88149         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88150         otherwise, AIX 5.1 systems would end up using the latter.
88151         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88152         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88153         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88154         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88155
88156 2003-08-14  Jim Meyering  <jim@meyering.net>
88157
88158         Merge from coreutils.
88159         * lib/obstack.h: Whitespace changes.
88160         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88161         and xcalloc return values.
88162         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88163         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88164         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88165         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88166         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88167         error from mntctl.
88168         Use mntctl's return value to drive the entry-processing loop, since
88169         we can't rely on the value of the vmt_length member in the last
88170         entry.  On some systems doing so could result in exhausting
88171         virtual memory.  Based in part on a patch from Mike Jetzer.
88172
88173 2003-08-14  Jim Meyering  <jim@meyering.net>
88174         and Paul Eggert  <eggert@twinsun.com>
88175
88176         Merges from coreutils, plus other fixes.
88177         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88178         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88179         for credits and details.  Thanks to Kaveh Ghazi for helping
88180         to keep these files in sync.
88181         (ARRAY_SIZE): Define it.
88182         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88183         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88184         (memcasecmp): Don't assume size_t fits in unsigned int.
88185         Remove casts and duplicate code.
88186         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88187         (memcpy): Remove definition.
88188         Merge in some clean-up and optimization changes from glibc.
88189         [BLOCKSIZE]: Move definition to top of file.
88190         Ensure that it is a multiple of 64.
88191         Rearrange loop exit tests so as to avoid performing an
88192         additional fread after encountering an error or EOF.
88193         * lib/md5.h (md5_uintptr): Define.
88194         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88195         return to the initial working directory.  Preserve errno
88196         for caller.
88197         * lib/idcache.c: Include "xalloc.h".
88198         (xmalloc, xrealloc): Remove decls.
88199         (getuser): Remove casts no longer required in C89.
88200         * lib/human.c: Include stdio.h, for sprintf.
88201         * lib/group-member.c: Include "xalloc.h".
88202         (xmalloc, xrealloc): Remove decls.
88203         (get_group_info): Remove casts no longer required in C89.
88204         * lib/getusershell.c (readname): Remove casts no longer required in
88205         C89.
88206         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88207         * lib/getline.c: Whitespace fix, from coreutils.
88208
88209 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88210
88211         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88212         Check for isascii.
88213
88214         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88215         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88216         Undo previous (whitespace-only) change.
88217
88218 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88219
88220         * lib/exclude.c: Include <ctype.h>
88221         (IN_CTYPE_DOMAIN): New macro.
88222         (is_space): New fn.
88223         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88224         and empty lines.
88225
88226         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88227         Undo previous (whitespace-only) change.
88228
88229 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88230
88231         * config/srclist-update: Change update back to the old behavior,
88232         leaving whitespace alone.  Use one 'sed' command rather than a
88233         pipeline.
88234         (fixlicense): Now a variable, not a function.
88235         (remove_trailing_blanks): Remove.
88236         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88237         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88238         Undo previous (whitespace-only) change.
88239
88240 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88241
88242         Merge from coreutils.
88243         * modules/euidaccess: Add lib_SOURCES, include for new
88244         file euidaccess.h
88245
88246 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88247
88248         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88249         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88250         Normalize leading white space and remove trailing white space.
88251
88252         Merge from coreutils
88253         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88254
88255         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88256         0.12.1.  These files are now being upgraded automatically by
88257         ../config/srclist-update.
88258
88259 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88260
88261         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88262         Normalize leading white space and remove trailing white space.
88263         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88264         notice, as per ../config/srclist-update.
88265
88266         Merge from coreutils.
88267         * lib/euidaccess.h: New file.
88268         * lib/euidaccess.c: Include it.
88269         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88270         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88271         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88272
88273 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88274
88275         * config/srclist-update: Add copyright notice.
88276         (remove_id_lines, remove_trailing_blanks): New constants.
88277         (fixfile): Use them to normalize spacing a bit in copied files.
88278         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88279         Normalize leading white space and remove trailing white space.
88280
88281         * config/texinfo.tex: Sync with texinfo.
88282
88283         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88284         strtoul.c from libc, to merge coreutils whitespace changes.
88285
88286         * config/srclist.txt: Get the following m4 files from gettext:
88287         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88288         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88289         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88290         wint_t.m4.
88291
88292 2003-08-12  Karl Berry  <karl@gnu.org>
88293
88294         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88295         been made.
88296
88297 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88298
88299         * modules/gnu-source, m4/gnu-source.m4:
88300         Remove; we're assuming Autoconf 2.54 or later now.
88301         Suggested by Bruno Haible.
88302         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88303
88304 2003-08-11  Bruno Haible  <bruno@clisp.org>
88305
88306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88307
88308 2003-08-11  Bruno Haible  <bruno@clisp.org>
88309
88310         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88311         (vasnprintf): Use it instead of wcslen.
88312
88313 2003-08-11  Bruno Haible  <bruno@clisp.org>
88314
88315         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88316         value to ensure that _Bool promotes to int. Use #define for _Bool when
88317         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88318
88319 2003-08-10  Karl Berry  <karl@gnu.org>
88320
88321         * lib/regex.h: update from libc (whitespace fix).
88322
88323 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88324
88325         Merge some files from coreutils.  These changes were
88326         originally made by Jim Meyering.
88327         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88328         many older Unixes require this.
88329         * lib/alloca.c (alloca): Remove cast to argument of free;
88330         no longer needed in C89.
88331         * lib/alloca_.h, regex.h: Fix white space to match
88332         what GNU indent does.
88333
88334 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88335
88336         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88337         apparently Emacs's Unicode mode got confused before my 2003-08-05
88338         checkin.
88339
88340 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88341
88342         * m4/extensions.m4: New file.
88343         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88344         Require gl_USE_SYSTEM_EXTENSIONS.
88345         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88346         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88347
88348 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88349
88350         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88351         * modules/extensions, modules/gnu-source: New files.
88352         * modules/timespec, modules/unlocked-io: Depend on extensions.
88353
88354 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88355
88356         * modules/restrict: New file.
88357         * MODULES.html.sh (func_all_modules): Add restrict.
88358         * modules/regex: Depend on restrict.
88359
88360 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88361
88362         * m4/restrict.m4: New file.
88363         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88364
88365 2003-08-07  Bruno Haible  <bruno@clisp.org>
88366
88367         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88368         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88369
88370 2003-08-07  Bruno Haible  <bruno@clisp.org>
88371
88372         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88373         makes the module 'getndelim2' compatible with the module 'getline'.
88374
88375 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88376
88377         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88378         byte with "\201" to avoid glitches when editing that source file
88379         with multi-gnome-terminal.
88380
88381 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88382
88383         * lib/bumpalloc.h: Remove.
88384
88385 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88386
88387         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88388         * modules/bumpalloc: Remove.
88389
88390 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88391
88392         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88393         GNU coding style.
88394
88395         Merge from coreutils.
88396         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88397         1. From glibc.
88398         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88399         from Karl Berry, implemented by Jim Meyering.
88400         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88401         from Dmitry V. Levin.
88402         Remove anachronistic cast of xrealloc.
88403         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88404         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88405         type. Otherwise, it wouldn't compile with at least /bin/cc on
88406         ymp-cray-unicos9.0.2.X.
88407         Combine two mostly-identical uses of alloca into one.
88408         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88409
88410 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88411
88412         [From Emacs.]
88413
88414         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88415         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88416         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88417         obsolete NLIST_NAME_UNION.
88418         [__GNU__]: Undef BSD and FSCALE.
88419         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88420
88421 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88422
88423         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88424         an enum type, so that it's guaranteed to promote to int.  See:
88425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88426
88427 2003-08-03  Karl Berry  <karl@gnu.org>
88428
88429         * config/depcomp: update from automake.
88430
88431 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88432
88433         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88434         (strerror): Don't assume that a printable int fits in 14 bytes.
88435
88436 2003-07-31  Bruno Haible  <bruno@clisp.org>
88437
88438         * modules/getpass-gnu: New file.
88439         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88440
88441 2003-07-31  Bruno Haible  <bruno@clisp.org>
88442
88443         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88444
88445 2003-07-24  Karl Berry  <karl@gnu.org>
88446
88447         * config/missing: update from automake.
88448
88449 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88450             Bruno Haible  <bruno@clisp.org>
88451
88452         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88453         * lib/getline.c (getline, getdelim): Likewise.
88454         Remove _GNU_SOURCE define; now it's defined in config.h through
88455         m4/getline.m4.
88456
88457 2003-07-23  Karl Berry  <karl@gnu.org>
88458
88459         * config/config.sub: update from prep.
88460
88461 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88462
88463         * modules/xalloc (Depends-on): Add exitfail.
88464         * modules/xmemcoll: Likewise.
88465
88466 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88467
88468         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88469         over-parenthesization in macros.
88470
88471         Sync with coreutils.
88472
88473         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88474         required by C99.
88475
88476         Use `exit_failure' for xalloc and xmemcoll instead of their own
88477         private exit-failure variables.
88478         * lib/xalloc.h (xalloc_exit_failure): Remove.
88479         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88480         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88481         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88482         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88483         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88484
88485 2003-07-20  Jim Meyering  <jim@meyering.net>
88486
88487         * modules/closeout (Depends-on): Add exitfail.
88488         Suggestion from Bruno Haible.
88489
88490 2003-07-19  Karl Berry  <karl@gnu.org>
88491
88492         * config/config.sub: update from prep.
88493
88494 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88495
88496         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88497         Remove.
88498         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88499         to test that it can stand by itself.  Include "exitfail.h".
88500         Clients should set exit_failure instead.
88501         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88502
88503 2003-07-18  Bruno Haible  <bruno@clisp.org>
88504
88505         * modules/getndelim2: New file.
88506         * modules/getline: Share files with module getndelim2.
88507         * modules/getnline: Depend on getndelim2 instead of sharing files with
88508         it. Add getnline.c to lib_SOURCES.
88509         * MODULES.html.sh (func_all_modules): Add getndelim2.
88510
88511 2003-07-18  Bruno Haible  <bruno@clisp.org>
88512
88513         * m4/getndelim2.m4: New file.
88514         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88515         invoke gl_PREREQ_GETNDELIM2.
88516         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88517         gl_PREREQ_GETNDELIM2.
88518         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88519         gl_GETNDELIM2.
88520
88521 2003-07-18  Bruno Haible  <bruno@clisp.org>
88522
88523         * lib/getndelim2.h: New file.
88524         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88525         getndelim2.h.
88526         (getndelim2): Make non-static. Change return type to ssize_t.
88527         * lib/getline.h: Change argument names.
88528         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88529         * lib/getnline.c: Include getndelim2.h.
88530
88531 2003-07-18  Andreas Schwab  <schwab@suse.de>
88532
88533         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88534
88535 2003-07-17  Karl Berry  <karl@gnu.org>
88536
88537         * config/config.sub: update from prep.
88538
88539 2003-07-17  Bruno Haible  <bruno@clisp.org>
88540
88541         * modules/getnline: New file.
88542         * modules/getline: Add lib/getndelim2.c to source file list.
88543         * MODULES.html.sh (func_all_modules): Add getnline.
88544
88545 2003-07-17  Bruno Haible  <bruno@clisp.org>
88546
88547         * m4/getnline.m4: New file.
88548
88549 2003-07-17  Bruno Haible  <bruno@clisp.org>
88550
88551         * m4/Makefile.am.in: Remove file.
88552         * m4/Makefile.am: Remove file.
88553         * m4/Makefile.in: Remove file.
88554
88555 2003-07-17  Bruno Haible  <bruno@clisp.org>
88556
88557         * lib/getnline.h: New file.
88558         * lib/getnline.c: New file.
88559         * lib/getndelim2.c: New file, extracted from getline.c.
88560         (getndelim2): Renamed from getdelim2, with added nmax argument.
88561         * lib/getline.c: Include getndelim2.c.
88562         (getdelim2): Moved out to getndelim2.c.
88563         (getline, getdelim): Update.
88564
88565 2003-07-17  Bruno Haible  <bruno@clisp.org>
88566
88567         * lib/Makefile.am: Remove file.
88568         * lib/Makefile.in: Remove file.
88569
88570 2003-07-17  Bruno Haible  <bruno@clisp.org>
88571
88572         * configure.in: Remove file.
88573         * Makefile.in: Remove file.
88574
88575 2003-07-17  Bruno Haible  <bruno@clisp.org>
88576
88577         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88578
88579 2003-07-16  Karl Berry  <karl@gnu.org>
88580
88581         * config/srclist-update: was running fixlicense twice, which caused
88582                 texinfo.tex to be nullified for some reason.  Simplify,
88583                 $gplsrc is no longer needed as far as I can see?
88584
88585 2003-07-16  Jim Meyering  <jim@meyering.net>
88586
88587         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88588
88589 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88590
88591         * config/srclist.txt: Get the following files from gettext-runtime/intl
88592         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88593         ref-del.sin.  From Bruno Haible.
88594         * config/srclist-update (fixfile): Change grep pattern again, since the
88595         previous fix didn't work (there was another trailing $).  Use
88596         '[$]' to escape the $s.
88597
88598 2003-07-15  Karl Berry  <karl@gnu.org>
88599
88600         * lib/vasnprintf.c: update from gettext.
88601
88602 2003-07-15  Karl Berry  <karl@gnu.org>
88603
88604         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88605         gets expanded when surrounded by '$'.
88606
88607 2003-07-15  Jim Meyering  <jim@meyering.net>
88608
88609         * modules/save-cwd: Don't depend on error.  From Derek Price.
88610
88611 2003-07-15  Jim Meyering  <jim@meyering.net>
88612
88613         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88614
88615 2003-07-14  Simon Josefsson  <jas@extundo.com>
88616
88617         * modules/mempcpy: New file.
88618         * MODULES.html.sh (func_all_modules): Add mempcpy.
88619
88620 2003-07-14  Simon Josefsson  <jas@extundo.com>
88621
88622         * m4/mempcpy.m4: New file.
88623
88624 2003-07-14  Simon Josefsson  <jas@extundo.com>
88625
88626         * lib/mempcpy.h: New file.
88627         * lib/mempcpy.c: New file.
88628
88629 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88630
88631         * modules/getdate, modules/posixtm: Depend on mktime.
88632
88633 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88634
88635         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88636         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88637         unicodeio.c, unicodeio.h, unlocked-io.h:
88638         Switch from LGPL to GPL.
88639
88640 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88641
88642         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88643         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88644         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88645         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88646         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88647         updated automatically by ../config/srclist-update.  This changes
88648         their license from LPGL to GPL.
88649
88650 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88651
88652         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88653         assumed to refer to the root of the most recent stable gettext version.
88654         * config/srclistvars.sh: Add defaults for eggert.
88655         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88656         Match "This program" as well as "The program".  This is needed
88657         for gettext.
88658
88659 2003-07-14  Jim Meyering  <jim@meyering.net>
88660
88661         Don't emit diagnostics.  Let callers do that.
88662         * lib/save-cwd.c: Don't include "error.h".
88663         (save_cwd): Don't call error.  Ensure that errno is valid
88664         when returning nonzero.
88665
88666         * lib/save-cwd.h (restore_cwd): Update prototype.
88667         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88668         Simplify.  Don't call error upon failure.  Let callers do that.
88669         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88670         when auditing is enabled.  But don't bother updating the #if.
88671
88672 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88673
88674         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88675         it breaks C++ compilation.
88676         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88677
88678 2003-07-10  Simon Josefsson  <jas@extundo.com>
88679
88680         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88681
88682 2003-07-10  Jim Meyering  <jim@meyering.net>
88683
88684         * m4/clock_time.m4: Remove trailing blank.
88685         * m4/intmax_t.m4: Likewise.
88686
88687 2003-07-10  Jim Meyering  <jim@meyering.net>
88688
88689         * lib/vasnprintf.c: Remove trailing blanks.
88690         Make cpp indentation consistent.
88691
88692 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88693
88694         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88695         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88696         Switch from LGPL to GPL.
88697
88698 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88699
88700         * config/srclist.txt: Sort sublists.  Add
88701         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88702         that differ from gnulib for one reason or another; we'd like this list
88703         to be smaller but for now let's document what we have.
88704
88705 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88706
88707         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88708         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88709         and sweeter "eval x=$x".
88710         * config/srclist.txt: Get lib/argp* from glibc.
88711
88712 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88713
88714         * lib/mktime.c: Fix some boundary cases and remove need for floating
88715         point.
88716
88717         Issue a compile-time diagnostic if time_t is floating point, or if
88718         two's complement arithmetic is not in effect, or if arithmetic
88719         right shift does not propagate the sign.  These assumptions were
88720         all in the original code but they weren't checked.
88721
88722         (TIME_T_MIDPOINT, verify): New macros.
88723         (__isleap): Remove; it has integer overflow problems.
88724         (leapyear): New function, without those problems.
88725         (ydhms_tm_diff): Remove; splitting into two parts.
88726         (ydhms_diff): New function, containing the arithmetic part of
88727         the old ydhms_tm_diff function.  Issue a compile-time
88728         diagnostic if we are not using C99 integer division.
88729         Avoid casts when possible.
88730         (guess_time_tm): New function, containing the checking part of
88731         the old ydhms_tm_diff function.  Return the new value, rather than
88732         the difference between it and the old.  Accept a new argument T
88733         so that *T specifies the old value.  Check for overflow in the result.
88734
88735         (__mktime_internal): Use a time_t offset, not a long int offset.
88736         This undoes the 2003-06-04 change, which is no longer needed now
88737         that we have better overflow checking.
88738         (localtime_offset): Likewise.
88739
88740         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88741         and long are 64-bit but int is only 32-bit.
88742         (ydhms_diff): Use long int to store year1 and yday1.
88743         Issue a compile-time diagnostic if long int is not wide enough.
88744
88745         (__mktime_internal): Use long int to store adjusted year and yday.
88746         Use plain C rather than preprocessor commands, if that doesn't
88747         affect efficiency.
88748         Check for overflow (and try to repair) after each probe
88749         rather than checking only at the very end.  This avoids some bugs
88750         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88751         does not equal GMT offset at maximum time).
88752         Use integer to check for overflow rather than floating point; this
88753         is more portable to non-IEEE hosts, and is a tad faster.
88754         When we detect that we are oscillating between two values,
88755         don't check whether tm_isdst has the requested value, since
88756         we already know the answer.  When tm_isdst has the wrong value,
88757         use a different heuristic to find the right one, based on the
88758         extreme values actually observed in practice in tz2003a,
88759         rather than the (overly optimistic) "previous 3 calendar quarters".
88760
88761         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88762         "T const" to accommodate glibc style.
88763         (check_result): Use less-confusing report format.  "long" -> "long int.
88764         (main): Likewise.
88765         Don't loop if the iteration overflows time_t.
88766         Allow a negative step in the iteration.
88767
88768 2003-07-06  Karl Berry  <karl@gnu.org>
88769
88770         * config/depcomp: update from automake.
88771         * config/config.sub: update from prep.
88772
88773 2003-07-03  Karl Berry  <karl@gnu.org>
88774
88775         * config/config.guess: update from prep.
88776
88777 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88778
88779         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88780         xreadlink.c now includes it unconditionally.
88781
88782 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88783
88784         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88785         having it depend on HAVE_SYS_TYPES_H.
88786
88787 2003-07-01  Bruno Haible  <bruno@clisp.org>
88788
88789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88790         <sys/types.h> should be sufficient.
88791         Reported by Paul Eggert.
88792
88793 2003-06-26  Karl Berry  <karl@gnu.org>
88794
88795         * config/depcomp: update from automake.
88796
88797 2003-06-26  Bruno Haible  <bruno@clisp.org>
88798
88799         * modules/human: Depend on module stdbool.
88800
88801 2003-06-25  Bruno Haible  <bruno@clisp.org>
88802
88803         * modules/readlink: New file.
88804         * modules/xreadlink: Depend on it.
88805         * MODULES.html.sh (func_all_modules): Add readlink.
88806
88807 2003-06-25  Bruno Haible  <bruno@clisp.org>
88808
88809         * m4/readlink.m4: New file.
88810
88811 2003-06-25  Bruno Haible  <bruno@clisp.org>
88812
88813         * lib/readlink.c: New file.
88814
88815 2003-06-22  Karl Berry  <karl@gnu.org>
88816
88817         * config/srclist.txt: update mkinstalldirs from automake.
88818         * config/mkinstalldirs: update.
88819
88820 2003-06-22  Bruno Haible  <bruno@clisp.org>
88821
88822         Portability to mingw32.
88823         * m4/ssize_t.m4: New file, from GNU gettext.
88824         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88825         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88826
88827 2003-06-22  Bruno Haible  <bruno@clisp.org>
88828
88829         * modules/safe-read: Add m4/ssize_t.m4.
88830         * modules/xreadlink: Add m4/ssize_t.m4.
88831
88832 2003-06-20  Bruno Haible  <bruno@clisp.org>
88833
88834         Assume C89, so PARAMS isn't needed.
88835         * lib/unicodeio.h (PARAMS): Remove.
88836         * lib/unicodeio.c: Don't use PARAMS.
88837
88838 2003-06-18  Karl Berry  <karl@gnu.org>
88839
88840         * config/config.{guess,sub}: update from prep.
88841
88842 2003-06-18  Jim Meyering  <jim@meyering.net>
88843
88844         Merge changes from coreutils.
88845         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88846         Remove explicit declarations of xmalloc and realloc.
88847         Include xalloc.h.
88848         (read_utmp): Remove anachronistic cast of xmalloc.
88849
88850 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88851
88852         Assume C89, so PARAMS isn't needed.
88853         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88854         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88855         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88856         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88857         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88858         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88859         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88860         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88861         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88862         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88863         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88864         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88865         no longer needed. Anyway, config.h should always be included before any
88866         other file.
88867
88868 2003-06-11  Simon Josefsson  <jas@extundo.com>
88869
88870         * modules/sysexits: New file.
88871         * MODULES.html.sh (func_all_modules): Add sysexits.
88872
88873 2003-06-11  Simon Josefsson  <jas@extundo.com>
88874
88875         * lib/sysexit_.h: New file.
88876
88877 2003-06-11  Derek Price  <derek@ximbiot.com>
88878
88879         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88880         necessary.
88881
88882 2003-06-11  Bruno Haible  <bruno@clisp.org>
88883
88884         * m4/sysexits.m4: New file.
88885
88886 2003-06-10  Simon Josefsson  <jas@extundo.com>
88887
88888         * lib/argp.h: New file, from glibc.
88889         * lib/argp-ba.c: New file, from glibc.
88890         * lib/argp-eexst.c: New file, from glibc.
88891         * lib/argp-fmtstream.c: New file, from glibc.
88892         * lib/argp-fmtstream.h: New file, from glibc.
88893         * lib/argp-fs-xinl.c: New file, from glibc.
88894         * lib/argp-help.c: New file, from glibc.
88895         * lib/argp-namefrob.h: New file, from glibc.
88896         * lib/argp-parse.c: New file, from glibc.
88897         * lib/argp-pv.c: New file, from glibc.
88898         * lib/argp-pvh.c: New file, from glibc.
88899         * lib/argp-xinl.c: New file, from glibc.
88900
88901 2003-06-10  Simon Josefsson  <jas@extundo.com>
88902
88903         * modules/strchrnul: New file.
88904
88905 2003-06-10  Simon Josefsson  <jas@extundo.com>
88906
88907         * modules/argp: New file.
88908
88909 2003-06-10  Simon Josefsson  <jas@extundo.com>
88910
88911         * m4/strchrnul.m4: New file.
88912
88913 2003-06-10  Simon Josefsson  <jas@extundo.com>
88914
88915         * lib/strchrnul.h: New file.
88916         * lib/strchrnul.c: New file.
88917
88918 2003-06-10  Bruno Haible  <bruno@clisp.org>
88919
88920         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88921
88922 2003-06-07  Karl Berry  <karl@gnu.org>
88923
88924         * config/config.{guess,sub}: update from prep.
88925
88926 2003-06-07  Jim Meyering  <jim@meyering.net>
88927
88928         * modules/strtod: Use $(...) notation, not @...@ for
88929         AC_REPLACE'd variables.
88930         * modules/localcharset: Likewise.
88931
88932 2003-06-07  Jim Meyering  <jim@meyering.net>
88933
88934         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88935         in place of my name in the copyright comment.
88936         Remove definition and uses of __P.
88937
88938         From coreutils.
88939         * lib/stat.c: Don't declare xmalloc explicitly.
88940         Instead, include "xalloc.h".
88941         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88942         xrealloc, and xcalloc return values.
88943         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88944         Improve comment.
88945         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88946
88947 2003-06-07  Bruno Haible  <bruno@clisp.org>
88948
88949         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88950         avoid AC_CONFIG_LINKS.
88951         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88952         fnmatch.h, to avoid AC_CONFIG_LINKS.
88953         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88954
88955 2003-06-07  Bruno Haible  <bruno@clisp.org>
88956
88957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88958         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88959         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88960         directory.
88961         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88962         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88963         directory.
88964
88965 2003-06-06  Jim Meyering  <jim@meyering.net>
88966
88967         Merge from coreutils.
88968         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88969         Consolidate declarations and initializations of *_base* locals.
88970
88971         Merge from coreutils.
88972         This avoids a core dump on systems without GNU putenv,
88973         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88974         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88975         (unsetenv): New static function, from GNU libc.
88976         (rpl_putenv): Use it.
88977
88978         * lib/modechange.c: Remove trailing blanks.
88979
88980         Merge from coreutils.
88981         * lib/fsusage.c: Remove declaration of statfs.
88982         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88983
88984         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88985
88986 2003-06-06  Jim Meyering  <jim@meyering.net>
88987
88988         * lib/stdbool_.h: Renamed from stdbool.h.in.
88989
88990 2003-06-06  Jim Meyering  <jim@meyering.net>
88991             Bruno Haible  <bruno@clisp.org>
88992
88993         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88994         Adjust Makefile.am snippet not to redirect directly to target.
88995         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88996
88997 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88998
88999         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89000         mismatch, look in future quarters as well as past.  This fixes a
89001         bug when processing fall-backwards gaps immediately after a long
89002         period of daylight-saving time.
89003
89004         * lib/mktime.c: Assume freestanding C89 or better.
89005         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89006         (__P): Remove; not used.
89007         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89008         (mktime, not_equal_tm, print_tm, check_result,
89009         main): Use prototypes.  Use const * where appropriate.
89010         (main): Fix typo in testing code that uncovered by above changes.
89011         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89012
89013 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89014
89015         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89016         locale.h, localeconv.  This merges changes from coreutils.
89017
89018         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89019         It can be removed after the next Autoconf is released.
89020         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89021         needed.
89022
89023 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89024
89025         * lib/mktime.c: Fix Debian bug 177940
89026         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89027         (localtime_offset): Now long int, not time_t, because we want it
89028         to be guaranteed to be signed.  All uses changed.
89029         (__mktime_internal): If overflow would occur when adding offset,
89030         don't add it.
89031
89032         Merge 'human' changes from coreutils.  Rewrite to support
89033         locale-specific notations like thousands separators.
89034         * lib/human.c: Simplify authorship notice.
89035         Include human.h immediately after config.h.
89036         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89037         <limits.h>: Do not include, since human.h does.
89038         (SIZE_MAX, UINTMAX_MAX): New macros.
89039         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89040         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89041         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89042         (power_letter): Renamed from suffixes.
89043         (generate_suffix_backwards): Remove.
89044         (adjust_value): Now takes int style (because of human.h changes)
89045         and long double value (for greater precision on some platforms).
89046         (group_number): New function.
89047         (human_readable): Use it.  Use integer options, not enum.
89048         Put the options before the sizes in the arg list.
89049         Support all the new options.
89050         The old human_readable function has been removed;
89051         use inttostr.h instead.
89052         (human_readable, default_block_size, humblock):
89053         Use uintmax_t, not int, for block sizes.
89054         (human_readable_inexact, block_size_types): Remove.
89055         (block_size_opts): New constant.
89056         (human_options): Renamed from human_block_size, with new signature
89057         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89058         * lib/human.h: Add copyright and authorship notice.
89059         Include <limits.h> and <stdbool.h> unconditionally.
89060         (PARAMS): Remove.  All uses removed.
89061         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89062         (enum human_inexact_style): Remove tag; now a nameless enum.
89063         (human_floor, human_ceiling, human_round_to_even): Now have
89064         values 2, 0, 1 rather than -1, 1, 0.
89065         (human_group_digits, human_suppress_point_zero, human_autoscale,
89066         human_base_1024, human_SI, human_B): New constants.
89067         (human_readable_inexact, human_block_size): Remove.
89068         (human_readable): Size args are now uintmax_t, not int.
89069         (human_options): New decl.
89070
89071         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89072         unnecessary now that we assume C89 or better.  This change
89073         imported from coreutils.
89074
89075         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89076         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89077         in the 2003-05-30 sync from glibc.
89078
89079         .h files should stand alone, but we shouldn't include <sys/types.h>
89080         if we can get away with just <stddef.h>.
89081
89082         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89083         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89084         rather than <sys/types.h>, as we merely need size_t.
89085         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89086         to get size_t.
89087         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89088         Include <stdio.h>, to get FILE.
89089         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89090         memcasecmp.h has included <stddef.h> and all we need is size_t.
89091         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89092         our interface, instead of including <sys/types.h>
89093
89094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89095
89096         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89097         now, as glibc mktime is buggy on non-glibc systems.
89098
89099 2003-06-03  Karl Berry  <karl@gnu.org>
89100
89101         * config/config.sub: update from prep.
89102
89103 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89104
89105         [from coreutils]
89106         Fix some minor time-related bugs with POSIX time arguments.
89107         Some valid time stamps were being rejected (notably -1, and
89108         time stamps before 1900 on 64-bit hosts).  And some invalid
89109         time stamps were being accepted, e.g. September 31.
89110
89111         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89112         that we can return (time_t) -1 successfully.
89113         * lib/posixtm.c: Likewise.
89114         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89115         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89116         (t): Remove static var.
89117         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89118         of static var.  All uses changed.
89119         (year): Do not reject years before 1900; they can occur with
89120         64-bit time_t.
89121         (posix_time_parse): Do not check for out-of-range components;
89122         that is now the caller's responsibility, since our checks were
89123         only approximations.
89124         (posixtime): Use mktime to check for out-of-range components,
89125         since it knows them exactly.
89126         If mktime returns (time_t) -1, check whether an error actually occurred
89127         by invoking localtime on -1.
89128         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89129         posixtime failures better.
89130         Improve the test data (in comments only).
89131
89132 2003-06-02  Karl Berry  <karl@gnu.org>
89133
89134         * config/mkinstalldirs (version): new variable.
89135         (--version): new option.
89136         (usage): improve message.
89137
89138 2003-05-30  Karl Berry  <karl@gnu.org>
89139
89140         * lib/mktime.c: update from libc.
89141
89142 2003-05-30  Bruno Haible  <bruno@clisp.org>
89143
89144         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89145         * config/config.rpath: Upgrade to gettext-0.12.1.
89146
89147 2003-05-30  Bruno Haible  <bruno@clisp.org>
89148
89149         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89150         * m4/nls.m4: New file, from gettext-0.12.1.
89151         * m4/po.m4: New file, from gettext-0.12.1.
89152         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89153
89154 2003-05-30  Bruno Haible  <bruno@clisp.org>
89155
89156         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89157         * lib/localcharset.h: Likewise.
89158         * lib/localcharset.c: Likewise.
89159
89160 2003-05-29  Karl Berry  <karl@gnu.org>
89161
89162         * config/config.rpath: update from gettext.
89163
89164 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89165
89166         Assume the headers required for C89 freestanding compilers.
89167         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89168         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89169         * m4/human.m4 (gl_HUMAN): Likewise.
89170         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89171         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89172         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89173         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89174         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89175         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89176
89177 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89178
89179         Assume the headers required for C89 freestanding compilers.
89180         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89181         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89182         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89183         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89184         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89185         define, since <limits.h> is guaranteed to do that.
89186         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89187         * lib/exclude.c: Include <stdbool.h> unconditionally.
89188         * lib/tempname.c: Include <stddef.h> unconditionally.
89189         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89190         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89191         <stddef.h> does that.
89192         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89193         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89194         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89195         needed.
89196         * lib/xstrtol.c: Likewise.
89197         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89198         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89199
89200         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89201         warnings on some platforms.
89202
89203         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89204         arbitrarily.
89205
89206 2003-05-26  Jim Meyering  <jim@meyering.net>
89207
89208         Merge in a change from coreutils:
89209         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89210         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89211         that condition, rather than `-1' which is slightly misleading.
89212         Change the name of the cache variable to have the gl_ prefix.
89213         Prompted by a patch from Richard Dawe for DJGPP.
89214
89215 2003-05-24  Karl Berry  <karl@gnu.org>
89216
89217         * config/config.guess: update from prep.
89218
89219 2003-05-22  Karl Berry  <karl@gnu.org>
89220
89221         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89222
89223 2003-05-20  Karl Berry  <karl@gnu.org>
89224
89225         * config/config.guess: update from prep.
89226
89227 2003-05-18  Karl Berry  <karl@gnu.org>
89228
89229         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89230         might actually be set by the user.
89231
89232         * config/depcomp, install-sh, mdate-sh: update from automake.
89233
89234 2003-05-17  Bruno Haible  <bruno@clisp.org>
89235
89236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89237         invalid expansion for AC_EGREP_CPP.
89238         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89239         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89240         Suggested by Akim Demaille <akim@epita.fr> in
89241         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89242
89243 2003-05-12  Jim Meyering  <jim@meyering.net>
89244
89245         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89246         the space-padded-by-default conversion specifiers, %e, %k, %l.
89247
89248 2003-05-12  Bruno Haible  <bruno@clisp.org>
89249
89250         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89251         the string is longer than 4 KB.
89252
89253 2003-05-11  Karl Berry  <karl@gnu.org>
89254
89255         * config/config.{guess,sub}: update from prep.
89256
89257 2003-05-09  Bruno Haible  <bruno@clisp.org>
89258
89259         * modules/error: Add m4/strerror_r.m4 to file list.
89260
89261 2003-05-03  Bruno Haible  <bruno@clisp.org>
89262
89263         Upgrade to Unicode-4.0.
89264         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89265         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89266         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89267         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89268         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89269         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89270         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89271         Change width of U+E0100..U+E01EF from 1 to 0.
89272
89273 2003-04-25  Jim Meyering  <jim@meyering.net>
89274
89275         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89276         of type size_t, not int.
89277
89278 2003-04-25  Bruno Haible  <bruno@clisp.org>
89279
89280         * lib/copy-file.c: Include <stddef.h>, for size_t.
89281
89282 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89283
89284         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89285         code which expansion is under static control.  Patch imported from
89286         Akim Demaille's patch to Bison; see
89287         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89288
89289 2003-04-14  Bruno Haible  <bruno@clisp.org>
89290
89291         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89292
89293 2003-04-11  Jim Meyering  <jim@meyering.net>
89294
89295         Merge changes from Coreutils.
89296
89297         2003-03-22  Jim Meyering  <jim@meyering.net>
89298
89299         * lib/strftime.c (widen): Cast alloca return value to proper type.
89300
89301         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89302
89303         From GNU libc.
89304         * lib/strftime.c (my_strftime): Handle very large width
89305         specifications for numeric values correctly.  Improve checks for
89306         overflow.
89307
89308         2003-01-19  Jim Meyering  <jim@meyering.net>
89309
89310         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89311         definitions.
89312         (nl_get_alt_digit) [! defined my_strftime]: Define.
89313         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89314         _nl_get_alt_digit and _nl_get_walt_digit.
89315
89316         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89317         libc. These changes have no effect outside of _LIBC.
89318
89319 2003-04-10  Bruno Haible  <bruno@clisp.org>
89320
89321         * modules/findprog: New file.
89322         * MODULES.html.sh (func_all_modules): Add it.
89323
89324 2003-04-10  Bruno Haible  <bruno@clisp.org>
89325
89326         * m4/findprog.m4: New file.
89327         * m4/eaccess.m4: New file.
89328
89329 2003-04-10  Bruno Haible  <bruno@clisp.org>
89330
89331         * lib/findprog.h: New file, from GNU gettext.
89332         * lib/findprog.c: New file, from GNU gettext.
89333
89334 2003-04-05  Jim Meyering  <jim@meyering.net>
89335
89336         Merge changes from Coreutils.
89337
89338         * lib/exclude.h (PARAMS): Remove definition and uses.
89339         * lib/exclude.c: Remove uses of `PARAMS'.
89340
89341         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89342         Add test-cases for DOS filenames. Declare program_name.
89343         (main): Set up program_name.  Patch by Rich Dawe.
89344
89345         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89346         error from mntctl.
89347         Use mntctl's return value to drive the entry-processing loop, since
89348         we can't rely on the value of the vmt_length member in the last
89349         entry.  On some systems doing so could result in exhausting
89350         virtual memory.  Based in part on a patch from Mike Jetzer.
89351
89352 2003-04-04  Bruno Haible  <bruno@clisp.org>
89353
89354         * modules/linebreak: New file.
89355         * MODULES.html.sh (func_all_modules): Add it.
89356
89357 2003-04-04  Bruno Haible  <bruno@clisp.org>
89358
89359         * m4/linebreak.m4: New file.
89360
89361 2003-04-04  Bruno Haible  <bruno@clisp.org>
89362
89363         * lib/linebreak.h: New file, from GNU gettext.
89364         * lib/linebreak.c: New file, from GNU gettext with slight
89365         modifications.
89366         * lib/lbrkprop.h: New file, from GNU gettext.
89367
89368 2003-04-03  Bruno Haible  <bruno@clisp.org>
89369
89370         * modules/utf8-ucs4: New file.
89371         * modules/utf16-ucs4: New file.
89372         * modules/ucs4-utf8: New file.
89373         * modules/ucs4-utf16: New file.
89374         * MODULES.html.sh (func_all_modules): Add them.
89375
89376 2003-04-03  Bruno Haible  <bruno@clisp.org>
89377
89378         * m4/utf-ucs4.m4: New file.
89379         * m4/ucs4-utf.m4: New file.
89380
89381 2003-04-03  Bruno Haible  <bruno@clisp.org>
89382
89383         * lib/utf8-ucs4.h: New file, from GNU gettext.
89384         * lib/utf16-ucs4.h: New file, from GNU gettext.
89385         * lib/ucs4-utf8.h: New file, from GNU gettext.
89386         * lib/ucs4-utf16.h: New file, from GNU gettext.
89387
89388 2003-04-02  Bruno Haible  <bruno@clisp.org>
89389
89390         * modules/binary-io: New file.
89391         * MODULES.html.sh (func_all_modules): Add it.
89392
89393 2003-04-02  Bruno Haible  <bruno@clisp.org>
89394
89395         * lib/binary-io.h: New file, from GNU gettext.
89396
89397 2003-04-01  Bruno Haible  <bruno@clisp.org>
89398
89399         * modules/pathname: New file.
89400         * MODULES.html.sh (func_all_modules): Add it.
89401
89402 2003-04-01  Bruno Haible  <bruno@clisp.org>
89403
89404         * lib/pathname.h: New file, from GNU gettext.
89405         * lib/concatpath.c: New file, from GNU gettext.
89406
89407 2003-03-30  Bruno Haible  <bruno@clisp.org>
89408
89409         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89410
89411 2003-03-30  Bruno Haible  <bruno@clisp.org>
89412
89413         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89414         function chown() doesn't exist.
89415
89416 2003-03-28  Bruno Haible  <bruno@clisp.org>
89417
89418         * modules/copy-file: New file.
89419         * MODULES.html.sh (func_all_modules): Add it.
89420
89421 2003-03-28  Bruno Haible  <bruno@clisp.org>
89422
89423         * m4/copy-file.m4: New file.
89424
89425 2003-03-28  Bruno Haible  <bruno@clisp.org>
89426
89427         * lib/copy-file.h: New file, from GNU gettext.
89428         * lib/copy-file.c: New file, from GNU gettext.
89429
89430 2003-03-18  Jim Meyering  <jim@meyering.net>
89431
89432         * lib/quote.c (quote_n): Fix typo in comment.
89433
89434 2003-03-18  Bruno Haible  <bruno@clisp.org>
89435
89436         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89437         checking.
89438         * m4/onceonly_2_57.m4: Likewise.
89439
89440 2003-03-17  Bruno Haible  <bruno@clisp.org>
89441
89442         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89443         (m4_quote): Remove macro.
89444         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89445
89446 2003-03-14  Jim Meyering  <jim@meyering.net>
89447
89448         Merge changes from Coreutils.
89449         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89450         to be const, in order to avoid warnings.
89451         (obstack_room): Likewise.
89452         (obstack_empty_p): Likewise.
89453
89454 2003-03-14  Bruno Haible  <bruno@clisp.org>
89455
89456         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89457         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89458
89459 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89460
89461         Merge changes from Bison.
89462         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89463         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89464         when compiling Bison 1.875's `bitset bset = obstack_alloc
89465         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89466         * lib/hash.c: Include <stdbool.h> unconditionally.
89467
89468 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89469
89470         * m4/onceonly.m4 (m4_quote): New macro.
89471         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89472         Quote AC_FOREACH variable-expansions properly.
89473
89474 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89475
89476         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89477
89478 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89479
89480         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89481         Reported by Bruce Becker; see:
89482         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89483
89484 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89485             Bruno Haible  <bruno@clisp.org>
89486
89487         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89488         Reported by John Hughes, see
89489         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89490
89491 2003-02-20  Bruno Haible  <bruno@clisp.org>
89492
89493         * MODULES.html.sh (func_all_modules): Add poll.
89494
89495 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89496
89497         * modules/poll: New file.
89498
89499 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89500
89501         * lib/poll_.h: New file.
89502         * lib/poll.c: New file.
89503
89504 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89505
89506         * m4/poll.m4: New file.
89507
89508 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89509
89510         * modules/mathl: New file.
89511
89512 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89513
89514         * lib/mathl.h: New file.
89515         * lib/acosl.c: New file.
89516         * lib/asinl.c: New file.
89517         * lib/atanl.c: New file.
89518         * lib/ceill.c: New file.
89519         * lib/cosl.c: New file.
89520         * lib/expl.c: New file.
89521         * lib/floorl.c: New file.
89522         * lib/frexpl.c: New file.
89523         * lib/ldexpl.c: New file.
89524         * lib/logl.c: New file.
89525         * lib/sincosl.c: New file.
89526         * lib/sinl.c: New file.
89527         * lib/sqrtl.c: New file.
89528         * lib/tanl.c: New file.
89529         * lib/trigl.c: New file.
89530         * lib/trigl.h: New file.
89531
89532 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89533
89534         * m4/mathl.m4: New file.
89535
89536 2003-02-18  Bruno Haible  <bruno@clisp.org>
89537
89538         * MODULES.html.sh (func_all_modules): Add mathl.
89539
89540 2003-02-17  Bruno Haible  <bruno@clisp.org>
89541
89542         * modules/mkdtemp: New module.
89543         * MODULES.html.sh (func_all_modules): Add it.
89544
89545 2003-02-17  Bruno Haible  <bruno@clisp.org>
89546
89547         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89548
89549 2003-02-17  Bruno Haible  <bruno@clisp.org>
89550
89551         * lib/mkdtemp.h: New file, from GNU gettext.
89552         * lib/mkdtemp.c: New file, from GNU gettext.
89553
89554 2003-02-02  Jim Meyering  <jim@meyering.net>
89555
89556         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89557         e.g. glibc-2.2.93.
89558
89559 2003-01-31  Bruno Haible  <bruno@clisp.org>
89560
89561         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89562         'rpl_rename'.
89563         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89564         'rpl_strnlen'.
89565         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89566         'rpl_strtod'.
89567         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89568         'rpl_utime'.
89569
89570 2003-01-31  Bruno Haible  <bruno@clisp.org>
89571
89572         * lib/rename.c: #undef rename before defining rpl_rename.
89573         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89574
89575 2003-01-30  Bruno Haible  <bruno@clisp.org>
89576
89577         * modules/vasnprintf, modules/vasprintf: New modules.
89578         * MODULES.html.sh (func_all_modules): Add them.
89579
89580 2003-01-30  Bruno Haible  <bruno@clisp.org>
89581
89582         * m4/signed.m4: New file, from GNU gettext.
89583         * m4/longdouble.m4: New file, from GNU gettext.
89584         * m4/wchar_t.m4: New file, from GNU gettext.
89585         * m4/wint_t.m4: New file, from GNU gettext.
89586         * m4/vasnprintf.m4: New file.
89587         * m4/vasprintf.m4: New file.
89588
89589 2003-01-30  Bruno Haible  <bruno@clisp.org>
89590
89591         * lib/printf-args.h: New file, from GNU gettext.
89592         * lib/printf-args.c: New file, from GNU gettext.
89593         * lib/printf-parse.h: New file, from GNU gettext.
89594         * lib/printf-parse.c: New file, from GNU gettext.
89595         * lib/vasnprintf.h: New file, from GNU gettext.
89596         * lib/vasnprintf.c: New file, from GNU gettext.
89597         * lib/asnprintf.c: New file, from GNU gettext.
89598         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89599         * lib/vasprintf.c: New file, from GNU gettext.
89600         * lib/asprintf.c: New file, from GNU gettext.
89601
89602 2003-01-29  Bruno Haible  <bruno@clisp.org>
89603
89604         * modules/stpncpy: New module.
89605         * MODULES.html.sh (func_all_modules): Add it.
89606
89607 2003-01-29  Bruno Haible  <bruno@clisp.org>
89608
89609         * m4/stpncpy.m4: New file.
89610
89611 2003-01-29  Bruno Haible  <bruno@clisp.org>
89612
89613         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89614         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89615
89616 2003-01-28  Bruno Haible  <bruno@clisp.org>
89617
89618         * modules/c-ctype: New module.
89619         * MODULES.html.sh (func_all_modules): Add it.
89620
89621 2003-01-28  Bruno Haible  <bruno@clisp.org>
89622
89623         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89624         Paul Eggert.
89625         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89626         Paul Eggert.
89627
89628 2003-01-27  Bruno Haible  <bruno@clisp.org>
89629
89630         * modules/xsetenv: New module.
89631         * MODULES.html.sh (func_all_modules): Add it.
89632
89633 2003-01-27  Bruno Haible  <bruno@clisp.org>
89634
89635         * lib/xsetenv.h: New file, from GNU gettext.
89636         * lib/xsetenv.c: New file, from GNU gettext.
89637
89638 2003-01-23  Jim Meyering  <jim@meyering.net>
89639
89640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89641         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89642
89643 2003-01-23  Bruno Haible  <bruno@clisp.org>
89644
89645         * modules/minmax: New module.
89646         * MODULES.html.sh (func_all_modules): Add it.
89647
89648 2003-01-23  Bruno Haible  <bruno@clisp.org>
89649
89650         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89651         Eggert.
89652
89653 2003-01-22  Bruno Haible  <bruno@clisp.org>
89654
89655         * modules/exit: New module.
89656         * MODULES.html.sh (func_all_modules): Add it.
89657
89658 2003-01-22  Bruno Haible  <bruno@clisp.org>
89659
89660         * lib/exit.h: New file, from GNU gettext.
89661
89662 2003-01-19  Bruno Haible  <bruno@clisp.org>
89663
89664         * gnulib-tool: Recognize option --extract-maintainer.
89665         (func_get_maintainer): New function.
89666         * modules/*: Add Maintainer entry.
89667
89668 2003-01-16  Jim Meyering  <jim@meyering.net>
89669
89670         * m4/regex.m4: The `regex' struct is both input and output.
89671         Initialize it before each use.  Patch by Tim Waugh.
89672
89673 2003-01-16  Bruno Haible  <bruno@clisp.org>
89674
89675         * MODULES.html.sh: Add a table of contents. Add the module name as
89676         leftmost column. Add hyperlinks.
89677
89678 2003-01-15  Bruno Haible  <bruno@clisp.org>
89679
89680         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89681
89682 2003-01-15  Bruno Haible  <bruno@clisp.org>
89683
89684         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89685         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89686         suffix.
89687
89688 2003-01-15  Bruno Haible  <bruno@clisp.org>
89689
89690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89691
89692 2003-01-15  Bruno Haible  <bruno@clisp.org>
89693
89694         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89695         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89696
89697 2003-01-14  Jim Meyering  <jim@meyering.net>
89698
89699         * lib/same.c (same_name): Tweak a comment.
89700
89701 2003-01-14  Bruno Haible  <bruno@clisp.org>
89702
89703         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89704         when a string comparison is sufficient.
89705
89706 2003-01-14  Bruno Haible  <bruno@clisp.org>
89707
89708         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89709         'unsigned int'.
89710
89711 2003-01-14  Bruno Haible  <bruno@clisp.org>
89712
89713         * lib/hash-pjw.c: Add comment about low quality of this function.
89714
89715 2003-01-13  Bruno Haible  <bruno@clisp.org>
89716
89717         * modules/stpcpy: Distribute lib/stpcpy.h.
89718         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89719
89720 2003-01-13  Bruno Haible  <bruno@clisp.org>
89721
89722         * modules/*: Add a description.
89723         * modules/strpbrk: Fix Makefile.am snippet.
89724         * modules/strtoimax: Fix dependencies.
89725         * modules/strtoumax: Likewise.
89726
89727 2003-01-13  Bruno Haible  <bruno@clisp.org>
89728
89729         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89730         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89731         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89732
89733 2003-01-13  Bruno Haible  <bruno@clisp.org>
89734
89735         * gnulib-tool (func_create_testdir): Store config/* files in the main
89736         directory.
89737         * config.rpath: Move to ...
89738         * config/config.rpath: ... here.
89739         * modules/gettext: Contains config/config.rpath, not config.rpath.
89740         * modules/iconv: Likewise.
89741
89742 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89743
89744         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89745         to avoid collisions with libcurses and libreadline.
89746
89747         * m4/getstr.m4: Remove.
89748         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89749
89750 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89751
89752         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89753         to avoid collisions with libcurses and libreadline.
89754
89755         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89756         * lib/getstr.h, getstr.c: Remove.
89757         * lib/getline.c: Include "getline.h", to check interface.
89758         Move body of old getstr.c here: this defines MIN_CHUNK and
89759         declares getdelim2, which is renamed from getstr.
89760         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89761
89762         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89763         All uses changed.
89764         * lib/linebuffer.h: Likewise.
89765         (readline): Remove backward-compatibility macro.
89766
89767 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89768
89769         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89770         to avoid collisions with libcurses and libreadline.
89771         * getstr: Remove.
89772         * MODULES.html.sh: Remove getstr.
89773         * modules/getline: Depend on unlocked-io, not getstr.
89774
89775 2003-01-12  Jim Meyering  <jim@meyering.net>
89776
89777         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89778
89779 2003-01-10  Bruno Haible  <bruno@clisp.org>
89780
89781         * modules/alloca: Change Makefile.am requirements. Simplify Include
89782         requirements. Add lib/alloca_.h to file list.
89783
89784 2003-01-10  Bruno Haible  <bruno@clisp.org>
89785
89786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89787
89788 2003-01-10  Bruno Haible  <bruno@clisp.org>
89789
89790         * lib/alloca_.h: New file.
89791         * lib/getdate.y: Unconditionally include alloca.h.
89792         * lib/makepath.c: Likewise.
89793         * lib/setenv.c: Likewise.
89794         * lib/userspec.c: Likewise.
89795
89796 2003-01-09  Karl Berry  <karl@gnu.org>
89797
89798         * MODULES.html.sh: include `dirname $0` in PATH, to find
89799         gnulib-tool.
89800
89801 2003-01-09  Bruno Haible  <bruno@clisp.org>
89802
89803         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89804         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89805
89806 2003-01-09  Bruno Haible  <bruno@clisp.org>
89807
89808         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89809
89810 2003-01-09  Bruno Haible  <bruno@clisp.org>
89811
89812         * lib/stdbool.h.in: New file.
89813
89814 2003-01-09  Bruno Haible  <bruno@clisp.org>
89815
89816         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89817         * MODULES.html.sh: Likewise.
89818
89819 2003-01-08  Jim Meyering  <jim@meyering.net>
89820
89821         * lib/full-write.c: Undefine and define-away `const' after inclusion
89822         of errno.h, not before.  Suggestion from Bruno Haible.
89823
89824 2003-01-08  Bruno Haible  <bruno@clisp.org>
89825
89826         * modules/full-read: Depend on full-write.
89827
89828 2003-01-08  Bruno Haible  <bruno@clisp.org>
89829
89830         * lib/safe-read.c: Include specification header first, to ensure its
89831         selfcontainedness.
89832         * lib/full-write.c: Likewise.
89833
89834 2003-01-07  Jim Meyering  <jim@meyering.net>
89835
89836         * lib/full-write.c: Rework so that it may serve to define full_read,
89837         too.
89838         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89839
89840 2003-01-07  Bruno Haible  <bruno@clisp.org>
89841
89842         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89843         <inttypes.h>.
89844         * lib/xstrtol.h: Likewise.
89845         * lib/xstrtoimax.c: Likewise.
89846         * lib/xstrtoumax.c: Likewise.
89847         * lib/human.h: Likewise.
89848
89849         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89850         on systems that have <inttypes.h> but not <stdint.h>.
89851
89852 2003-01-07  Bruno Haible  <bruno@clisp.org>
89853
89854         * MODULES.html.sh: Add copyright notice.
89855         (missed_files): Omit CVS directory entries.
89856         (func_module): Make it work with sed-3.02.
89857         * MODULES.txt: Remove file.
89858
89859 2003-01-06  Jim Meyering  <jim@meyering.net>
89860
89861         * lib/version-etc.c: Update year in translatable copyright string.
89862
89863 2003-01-03  Karl Berry  <karl@gnu.org>
89864
89865         * config/config.{guess,sub}: update from prep.
89866
89867 2003-01-02  Karl Berry  <karl@gnu.org>
89868
89869         * doc/COPYING.DOC: belatedly updated to 1.2.
89870
89871 2003-01-01  Karl Berry  <karl@gnu.org>
89872
89873         * gnulib-tool (func_verify_module): report module name $module in
89874         error message, not $1.
89875         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89876         be created, only if it doesn't exist.
89877         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89878
89879 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89880
89881         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89882
89883 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89884
89885         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89886         memcmp if strcoll doesn't work.
89887
89888 2002-12-31  Bruno Haible  <bruno@clisp.org>
89889
89890         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89891         nonempty.
89892
89893 2002-12-31  Bruno Haible  <bruno@clisp.org>
89894
89895         * lib/memcoll.c (STRCOLL): New macro.
89896         (memcoll): Use it.
89897
89898 2002-12-31  Bruno Haible  <bruno@clisp.org>
89899
89900         * lib/localcharset.h: New file.
89901         * lib/localcharset.c: Include it.
89902         * lib/unicodeio.c: Likewise.
89903
89904 2002-12-31  Bruno Haible  <bruno@clisp.org>
89905
89906         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89907         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89908
89909 2002-12-31  Bruno Haible  <bruno@clisp.org>
89910
89911         * lib/getline.h: Include <stddef.h>, for size_t.
89912
89913         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89914         * lib/unicodeio.c: Don't include <stddef.h>.
89915
89916 2002-12-31  Bruno Haible  <bruno@clisp.org>
89917
89918         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89919         HAVE_TM_ZONE.
89920
89921 2002-12-24  Karl Berry  <karl@gnu.org>
89922
89923         * config/config.guess: update from prep.
89924
89925 2002-12-24  Bruno Haible  <bruno@clisp.org>
89926
89927         General infrasructure.
89928         * m4/README: Rewritten.
89929         * m4/onceonly.m4: New file.
89930         * m4/onceonly_2_57.m4: New file.
89931
89932         Module atexit.
89933         * m4/atexit.m4: New file.
89934
89935         Module strtod.
89936         * m4/strtod.m4: New file.
89937
89938         Module strtol.
89939         * m4/strtol.m4: New file.
89940
89941         Module strtoul.
89942         * m4/strtoul.m4: New file.
89943
89944         Module memchr.
89945         * m4/memchr.m4: New file.
89946
89947         Module memcmp.
89948         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89949         (jm_FUNC_MEMCMP): Invoke it.
89950
89951         Module memcpy.
89952         * m4/memcpy.m4: New file.
89953
89954         Module memmove.
89955         * m4/memmove.m4: New file.
89956
89957         Module memset.
89958         * m4/memset.m4: New file.
89959
89960         Module strcspn.
89961         * m4/strcspn.m4: New file.
89962
89963         Module strpbrk.
89964         * m4/strpbrk.m4: New file.
89965
89966         Module strstr.
89967         * m4/strstr.m4: New file.
89968
89969         Module strerror.
89970         * m4/strerror.m4: New file.
89971
89972         Module mktime.
89973         * m4/mktime.m4: Renamed from jm-mktime.m4.
89974         (gl_PREREQ_MKTIME): New macro.
89975         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89976
89977         Module malloc.
89978         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89979         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89980         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89981
89982         Module realloc.
89983         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89984         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89985         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89986
89987         Module strftime.
89988         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89990         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89991         gl_TM_GMTOFF.
89992         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89993
89994         Module xalloc.
89995         * m4/xalloc.m4: New file.
89996
89997         Module alloca.
89998         * m4/alloca.m4: New file.
89999
90000         Module putenv.
90001         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90002         (jm_FUNC_PUTENV): Invoke it.
90003
90004         Module setenv.
90005         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90006         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90007         when invoked twice.
90008         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90009         gt_FUNC_SETENV.
90010
90011         Module memrchr.
90012         * m4/memrchr.m4: New file.
90013
90014         Module stpcpy.
90015         * m4/stpcpy.m4: New file.
90016
90017         Module strcase.
90018         * m4/strcase.m4: New file.
90019
90020         Module strdup.
90021         * m4/strdup.m4: New file.
90022
90023         Module strnlen.
90024         * m4/strnlen.m4: New file.
90025
90026         Module strndup.
90027         * m4/strndup.m4: New file.
90028
90029         Module xstrtod.
90030         * m4/xstrtod.m4: New file.
90031
90032         Module xstrtol.
90033         * m4/xstrtol.m4: New file.
90034
90035         Module getdate.
90036         * m4/getdate.m4: New file.
90037
90038         Module unlocked-io.
90039         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90040         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90041         * m4/jm-glibc-io.m4n: Remove file.
90042
90043         Module long-options.
90044         * m4/long-options.m4: New file.
90045
90046         Module md5.
90047         * m4/md5.m4: New file.
90048
90049         Module sha.
90050         * m4/sha.m4: New file.
90051
90052         Module getstr.
90053         * m4/getstr.m4: New file.
90054
90055         Module getline.
90056         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90057         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90058         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90059         simply getline. Infoke gl_PREREQ_GETLINE.
90060
90061         Module obstack.
90062         * m4/obstack.m4: New file.
90063
90064         Module hash.
90065         * m4/hash.m4: New file.
90066
90067         Module readtokens.
90068         * m4/readtokens.m4: New file.
90069
90070         Module strverscmp.
90071         * m4/strverscmp.m4: New file.
90072
90073         Module stdbool.
90074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90075         OSF/1.
90076
90077         Module strtoll.
90078         * m4/strtoll.m4: New file.
90079
90080         Module strtoull.
90081         * m4/strtoull.m4: New file.
90082
90083         Module strtoimax.
90084         * m4/strtoimax.m4: New file.
90085
90086         Module strtoumax.
90087         * m4/strtoumax.m4: New file.
90088
90089         Module xstrtoimax.
90090         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90091         jm_AC_PREREQ_XSTRTOIMAX.
90092         Moved the strtol prerequisites to strtol.m4.
90093         Moved the strtoll prerequisites to strtoll.m4.
90094         Moved the strtoimax prerequisites to strtoimax.m4.
90095
90096         Module xstrtoumax.
90097         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90098         jm_AC_PREREQ_XSTRTOUMAX.
90099         Moved the strtoul prerequisites to strtoul.m4.
90100         Moved the strtoull prerequisites to strtoull.m4.
90101         Moved the strtoumax prerequisites to strtoumax.m4.
90102
90103         Module chown.
90104         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90105         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90106
90107         Module dup2.
90108         * m4/dup2.m4: New file.
90109
90110         Module ftruncate.
90111         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90112         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90113
90114         Module getgroups.
90115         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90116         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90117
90118         Module gettimeofday.
90119         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90120         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90121         gl_PREREQ_GETTIMEOFDAY.
90122
90123         Module mkdir.
90124         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90125         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90126
90127         Module mkstemp.
90128         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90129         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90130         jm_AC_TYPE_UINTMAX_T.
90131         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90132
90133         Module stat.
90134         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90135         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90136
90137         Module lstat.
90138         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90139         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90140
90141         Module timespec.
90142         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90143         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90144         * m4/st_mtim.m4: Indentation.
90145
90146         Module nanosleep.
90147         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90148         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90149         gl_PREREQ_NANOSLEEP.
90150
90151         Module regex.
90152         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90153         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90154         (gl_REGEX): New macro.
90155
90156         Module rename.
90157         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90158         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90159
90160         Module rmdir.
90161         * m4/rmdir.m4: New file.
90162
90163         Module utime.
90164         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90165         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90166         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90167
90168         Module dirname.
90169         * m4/dirname.m4: New file.
90170
90171         Module getopt.
90172         * m4/getopt.m4: New file.
90173
90174         Module unistd-safer.
90175         * m4/unistd-safer.m4: New file.
90176
90177         Module fnmatch.
90178         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90179         declaration.
90180         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90181         (gl_FUNC_FNMATCH_POSIX): New macro.
90182         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90183         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90184         simply fnmatch.
90185
90186         Module exclude.
90187         * m4/exclude.m4: New file.
90188
90189         Module human.
90190         * m4/human.m4: New file.
90191
90192         Module acl.
90193         * m4/acl.m4: Nop.
90194
90195         Module backupfile.
90196         * m4/backupfile.m4: New file.
90197         * m4/d-ino.m4: Indentation.
90198
90199         Module fsusage.
90200         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90201         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90202         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90203
90204         Module dirfd.
90205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90206         requirements.
90207
90208         Module euidaccess.
90209         * m4/euidaccess.m4: New file.
90210
90211         Module file-type.
90212         * m4/file-type.m4: New file.
90213
90214         Module fileblocks.
90215         * m4/fileblocks.m4: New file.
90216
90217         Module filemode.
90218         * m4/filemode.m4: New file.
90219
90220         Module isdir.
90221         * m4/isdir.m4: New file.
90222
90223         Module lchown.
90224         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90225         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90226
90227         Module makepath.
90228         * m4/makepath.m4: New file.
90229
90230         Module modechange.
90231         * m4/modechange.m4: New file.
90232
90233         Module mountlist.
90234         * m4/mountlist.m4: New file.
90235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90236         Indentation.
90237
90238         Module path-concat.
90239         * m4/path-concat.m4: New file.
90240
90241         Module pathmax.
90242         * m4/pathmax.m4: New file.
90243
90244         Module same.
90245         * m4/same.m4: New file.
90246
90247         Module save-cwd.
90248         * m4/save-cwd.m4: New file.
90249
90250         Module savedir.
90251         * m4/savedir.m4: New file.
90252
90253         Module xgetcwd.
90254         * m4/xgetcwd.m4: New file.
90255         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90256
90257         Module xreadlink.
90258         * m4/xreadlink.m4: New file.
90259
90260         Module safe-read.
90261         * m4/safe-read.m4: New file.
90262
90263         Module safe-write.
90264         * m4/safe-write.m4: New file.
90265
90266         Module closeout.
90267         * m4/closeout.m4: New file.
90268
90269         Module stdio-safer.
90270         * m4/stdio-safer.m4: New file.
90271
90272         Module getpass.
90273         * m4/getpass.m4: New file.
90274
90275         Module getugroups.
90276         * m4/getugroups.m4: New file.
90277
90278         Module group-member.
90279         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90280         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90281
90282         Module idcache.
90283         * m4/idcache.m4: New file.
90284
90285         Module userspec.
90286         * m4/userspec.m4: New file.
90287
90288         Module gettime.
90289         * m4/clock_time.m4: New file.
90290         * m4/gettime.m4: New file.
90291
90292         Module settime.
90293         * m4/settime.m4: New file.
90294
90295         Module posixtm.
90296         * m4/posixtm.m4: New file.
90297
90298         Module gethostname.
90299         * m4/gethostname.m4: New file.
90300
90301         Module canon-host.
90302         * m4/canon-host.m4: New file.
90303
90304         Module gettext.
90305         * m4/codeset.m4: New file, from gettext-0.11.5.
90306         * m4/gettext.m4: New file, from gettext-0.11.5.
90307         * m4/glibc21.m4: New file, from gettext-0.11.5.
90308         * m4/iconv.m4: New file, from gettext-0.11.5.
90309         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90310         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90311         * m4/inttypes.m4: New file, from gettext-0.11.5.
90312         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90313         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90314         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90315         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90316         * m4/lib-link.m4: New file, from gettext-0.11.5.
90317         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90318         * m4/progtest.m4: New file, from gettext-0.11.5.
90319         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90320         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90321         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90322
90323         Module localcharset.
90324         * m4/localcharset.m4: New file.
90325
90326         Module hard-locale.
90327         * m4/hard-locale.m4: New file.
90328
90329         Module mbswidth.
90330         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90331         onceonly macros.
90332         * m4/mbrtowc.m4: Add comment.
90333
90334         Module memcasecmp.
90335         * m4/memcasecmp.m4: New file.
90336
90337         Module memcoll.
90338         * m4/memcoll.m4: New file.
90339
90340         Module unicodeio.
90341         * m4/unicodeio.m4: New file.
90342
90343         Module rpmatch.
90344         * m4/rpmatch.m4: New file.
90345
90346         Module yesno.
90347         * m4/yesno.m4: New file.
90348
90349         Module exitfail.
90350         * m4/exitfail.m4: New file.
90351
90352         Module c-stack.
90353         * m4/c-stack.m4 (gl_C_STACK): New macro.
90354         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90355
90356         Module error.
90357         * m4/error.m4 (gl_ERROR): New macro.
90358         (jm_PREREQ_ERROR): Use onceonly macros.
90359
90360         Module fatal.
90361         * m4/fatal.m4: New file.
90362
90363         Module getloadavg.
90364         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90365         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90366
90367         Module getpagesize.
90368         * m4/getpagesize.m4: New file.
90369
90370         Module getusershell.
90371         * m4/getusershell.m4: New file.
90372
90373         Module physmem.
90374         * m4/physmem.m4: New file.
90375
90376         Module posixver.
90377         * m4/posixver.m4: New file.
90378
90379         Module quotearg.
90380         * m4/quotearg.m4: New file.
90381
90382         Module quote.
90383         * m4/quote.m4: New file.
90384
90385         Module readutmp.
90386         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90387
90388         Module sig2str.
90389         * m4/sig2str.m4: New file.
90390
90391         Other.
90392         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90393         ulonglong.m4.
90394         * m4/intmax_t.m4: New file.
90395         * m4/d-type.m4: Indentation.
90396         * m4/jm-macros.m4: Update.
90397         * m4/prereq.m4 (jm_PREREQ): Update.
90398         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90399         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90400         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90401         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90402         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90403         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90404         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90405         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90406         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90407         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90408         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90409         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90410         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90411         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90412         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90413         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90414         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90415         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90416         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90417
90418 2002-12-24  Bruno Haible  <bruno@clisp.org>
90419
90420         * MODULES.txt: Update according to m4/ changes.
90421
90422         Module gettext.
90423         * config.rpath: New file, from gettext-0.11.5.
90424
90425         * modules/*: New module descriptions.
90426         * gnulib-tool: New file.
90427         * MODULES.html.sh: New file.
90428
90429 2002-12-21  Karl Berry  <karl@gnu.org>
90430
90431         * doc/fdl.texi: update to version 1.2.
90432
90433 2002-12-19  Karl Berry  <karl@gnu.org>
90434
90435         * config/config.guess: update from prep.
90436
90437 2002-12-18  Bruno Haible  <bruno@clisp.org>
90438
90439         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90440         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90441
90442 2002-12-17  Bruno Haible  <bruno@clisp.org>
90443
90444         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90445         stdlib.h, string.h.
90446
90447 2002-12-17  Bruno Haible  <bruno@clisp.org>
90448
90449         * lib/canon-host.c (strdup): Remove unused declaration.
90450
90451         * lib/fsusage.c: Include full_read.h.
90452         (get_fs_usage): Use full_read instead of safe_read.
90453
90454         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90455
90456 2002-12-12  Karl Berry  <karl@gnu.org>
90457
90458         * config/config.guess: update from prep.
90459
90460 2002-12-11  Bruno Haible  <bruno@clisp.org>
90461
90462         * m4/setenv.m4: New file, from gettext-0.11.5.
90463
90464 2002-12-11  Bruno Haible  <bruno@clisp.org>
90465
90466         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90467         not unsetenv().
90468         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90469         modifications:
90470
90471         2002-12-11  Bruno Haible  <bruno@clisp.org>
90472
90473                 * setenv.c (alloca): Fall back to malloc.
90474                 (freea): New macro.
90475                 (setenv): Use freea() to free memory allocated with alloca().
90476
90477         2002-11-13  Bruno Haible  <bruno@clisp.org>
90478
90479                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90480                 function declarations.
90481                 * unsetenv.c (unsetenv): Likewise.
90482
90483         2002-03-04  Bruno Haible  <bruno@clisp.org>
90484
90485                 Portability to AIX 4.3.3.
90486                 * unsetenv.c: New file, extracted from setenv.c.
90487                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90488
90489         2001-12-20  Bruno Haible  <bruno@clisp.org>
90490
90491                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90492                 use malloc instead. For SunOS 4.
90493
90494         2001-12-11  Bruno Haible  <bruno@clisp.org>
90495
90496                 * setenv.c: Declare alloca.
90497                 (compar_fn_t): New typedef.
90498                 (KNOWN_VALUE, STORE_VALUE): Use it.
90499
90500         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90501         setenv.h.
90502
90503 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90504
90505         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90506         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90507         Choose values that are less likely to collide with system fnmatch
90508         options.
90509         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90510         defined (e.g., a pure POSIX system).
90511         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90512         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90513
90514 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90515
90516         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90517         a pain in practice to deal with generated m4 files.  This change
90518         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90519
90520         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90521         and jm-glibc-io.m4, as they are no longer a special case.
90522         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90523         kludge and the auto-generation stuff.  Check only whether the
90524         functions are declared, not whether they exist, since older hosts
90525         that don't declare the functions can't use the optimization anyway.
90526
90527 2002-12-06  Jim Meyering  <jim@meyering.net>
90528
90529         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90530
90531         Merge in changes from libc's misc/error.c, in preparation
90532         for the merge of gnulib's changes back into libc.
90533
90534         * lib/error.c (_): Define only if not already defined.
90535         Move definition to follow all #include directives.
90536         Include unlocked-io.h only if !_LIBC.
90537         [_LIBC]: Include <libio/libioP.h>.
90538         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90539         (fflush): Tweak definition to use INTUSE.
90540         (putc): Define.
90541
90542 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90543
90544         * lib/alloca.c [defined emacs]: Include "lisp.h".
90545         (xalloc_die) [defined emacs]: New macro.
90546         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90547         [! defined emacs]: Include <xalloc.h>.
90548         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90549         (pointer): Typedef to POINTER_TYPE *.
90550         (malloc): Remove decl; we now always use xmalloc.
90551         (alloca): Use old-style definition, since Emacs needs this.
90552         Check for arithmetic overflow when computing combined size.
90553
90554 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90555
90556         Do not generate unlocked-io.h automatically, since it's easier to
90557         maintain it by hand.
90558
90559         * lib/unlocked-io.h: New file, from GNU diffutils,
90560         but with proper copyright notice and attribution.
90561         * lib/gen-uio: Remove.
90562         * lib/Makefile.am: Add copyright notice.
90563         (libfetish_a_SOURCES): Add unlocked-io.h.
90564         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90565         (DISTCLEANFILES, io_functions): Remove macros.
90566         (EXTRA_DIST): Remove gen_uio.
90567         (unlocked-io.h): Remove rule.
90568
90569 2002-12-04  Jim Meyering  <jim@meyering.net>
90570
90571         Reflect the fact that stat.c and lstat.c are no longer generated.
90572         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90573         (DISTCLEANFILES): Likewise.
90574         (EXTRA_DIST): Likewise.
90575         (all_local): Don't depend on stat.c or lstat.c.
90576         (stat.c, lstat.c): Remove rules.
90577         (EXTRA_DIST): Remove xstat.in.
90578
90579         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90580         * lib/stat.c: New file.  Contents mostly from xstat.in.
90581         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90582         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90583
90584         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90585         too.
90586         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90587
90588 2002-12-03  Jim Meyering  <jim@meyering.net>
90589
90590         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90591         but not semantics, to minimize the differences between these two files.
90592         (safe_read): Change comment to mention SAFE_READ_ERROR.
90593
90594         * lib/safe-read.c (IS_EINTR): Define.
90595         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90596
90597 2002-12-02  Jim Meyering  <jim@meyering.net>
90598
90599         * lib/safe-read.c (EINTR): Define.
90600         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90601         (INT_MAX): Provide fallback.
90602         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90603
90604         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90605
90606 2002-12-02  Bruno Haible  <bruno@clisp.org>
90607
90608         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90609         Define, taken from safe-read.c.
90610         (INT_MAX): Provide fallback.
90611         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90612         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90613
90614         * lib/safe-read.c (EINTR): Remove definition.
90615         (safe_read): Don't use EINTR if it is absent.
90616
90617 2002-12-01  Jim Meyering  <jim@meyering.net>
90618
90619         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90620         zero.
90621         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90622
90623 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90624
90625         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90626         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90627         with `if (! (value < limit)) abort ();', for readability.
90628
90629 2002-11-26  Karl Berry  <karl@gnu.org>
90630
90631         * lib/strdup.c: copy from libc again, with jim's ok.
90632         * lib/.cppi-disable: re-add strdup.c
90633
90634 2002-11-25  Karl Berry  <karl@gnu.org>
90635
90636         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90637         instead of "strtol.c".
90638
90639 2002-11-25  Karl Berry  <karl@gnu.org>
90640
90641         * config/install-sh: update from automake for variable quoting, $0 in
90642         error msgs, etc.
90643
90644         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90645         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90646         entry.
90647
90648 2002-11-25  Jim Meyering  <jim@meyering.net>
90649
90650         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90651
90652 2002-11-24  Karl Berry  <karl@gnu.org>
90653
90654         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90655         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90656
90657 2002-11-24  Jim Meyering  <jim@meyering.net>
90658
90659         Update from coreutils:
90660
90661         * lib/mktime.c: Merge in changes from libc.
90662
90663         Avoid a link-time failure on some Linux systems.
90664         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90665         (otherwise).
90666         (__mon_yday): Declare with the STATIC attribute.
90667         (__mktime_internal): Likewise.
90668         Based on a report from Greg Schafer.
90669
90670 2002-11-23  Jim Meyering  <jim@meyering.net>
90671
90672         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90673         Use `unsigned', not `int', as type of index.
90674
90675         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90676
90677         * lib/fsusage.c: Remove unneeded parentheses around operands of
90678         `defined'.
90679
90680 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90681
90682         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90683         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90684         so that we can be included first.
90685         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90686         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90687         No need to include stddef.h or sys/types.h any more.
90688         Surround local include files with "", not "<>".
90689         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90690         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90691         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90692         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90693         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90694         (ISPRINT): Remove; no longer needed now that we assume C89.
90695
90696         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90697         Preserve errno.
90698
90699         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90700         quotearg_char): Use SIZE_MAX rather than
90701         (size_t) -1 when we are talking about "infinity".
90702
90703         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90704
90705 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90706
90707         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90708         hint that one should use `if (! x) abort ();' rather than `assert
90709         (x);', and anyway it's one less thing to worry about configuring.
90710         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90711         hash_rehash, hash_insert): Use abort rather than assert.
90712
90713 2002-11-22  Bruno Haible  <bruno@clisp.org>
90714
90715         * lib/safe-read.h: Assume C89. Add comments.
90716         (safe_read): Change return type to size_t.
90717         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90718         byte counts > SSIZE_MAX correctly.
90719         * lib/safe-write.h: New file.
90720         * lib/safe-write.c: New file.
90721         * lib/full-read.h: New file.
90722         * lib/full-read.c: New file.
90723         * lib/full-write.h: Assume C89. Add comments.
90724         * lib/full-write.c: Include safe-write.h.
90725         (full_write): Rewritten to use safe_write.
90726         Suggested by Jim Meyering and Paul Eggert.
90727
90728 2002-11-21  Jim Meyering  <jim@meyering.net>
90729
90730         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90731
90732         Merge in changes from the coreutils.
90733
90734         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90735         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90736         <stdint.h>.
90737         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90738         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90739         int.  Work more efficiently if X is the same width as uintmax_t.
90740         Do not compare X to -1, to avoid bogus compiler warning.
90741         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90742         Don't assume that f_frsize and f_bsize are the same type.
90743
90744         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90745         warning on FreeBSD.
90746
90747         * lib/makepath.c (make_path): Restore umask *before* creating the final
90748         component.
90749         (make_path): Minor reformatting.
90750
90751         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90752         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90753         HAVE_MALLOC/HAVE_REALLOC.
90754
90755         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90756         dummy ones.  At least on GNU/Linux systems, `auto' means something
90757         else.
90758         From Michael Stone.
90759
90760 2002-11-21  Bruno Haible  <bruno@clisp.org>
90761
90762         Remove case insensitive option matching.
90763         * lib/argmatch.h (argcasematch): Remove declaration.
90764         (ARGCASEMATCH): Remove macro.
90765         (__xargmatch_internal): Remove case_sensitive argument.
90766         (XARGMATCH): Update.
90767         (XARGCASEMATCH): Remove macro.
90768         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90769         case_sensitive argument.
90770         (argcasematch): Remove function.
90771         (__xargmatch_internal): Remove case_sensitive argument.
90772         (main): Use XARGMATCH instead of XARGCASEMATCH.
90773
90774         * lib/xmalloc.c: Change compile-time error message. Add comment about
90775         required autoconf version.
90776
90777 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90778
90779         Merge argmatch cleanups from Bison.  Assume C89.
90780
90781         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90782         Include stdlib.h, for EXIT_FAILURE.
90783         Always include <string.h>, since we assume C89.
90784         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90785         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90786         Include <stddef.h> instead, since it's all we need for size_t.
90787         (PARAMS): Remove.  All uses removed.
90788         (ARRAY_CARDINALITY): Do not bother to #undef.
90789         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90790         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90791         Remove unnecessary parentheses.
90792         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90793         Insert necessary parentheses.
90794         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90795         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90796
90797 2002-11-19  Bruno Haible  <bruno@clisp.org>
90798
90799         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90800         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90801
90802         * lib/mbswidth.h (PARAMS): Remove macro.
90803         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90804         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90805
90806         * lib/gcd.h (PARAMS): Remove macro.
90807         (gcd): Use ANSI C function declarations.
90808         * lib/gcd.c (gcd): Likewise.
90809
90810 2002-11-15  Bruno Haible  <bruno@clisp.org>
90811
90812         * lib/strcspn.c: Include <stddef.h>.
90813         (strcspn): Use ANSI C function declaration. Change return type to
90814         size_t. Use NULL.
90815         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90816         (strpbrk): Use NULL.
90817         * lib/strpbrk.h (PARAMS): Remove macro.
90818         (strpbrk): Use ANSI C function declaration.
90819         * lib/strstr.c: Don't include <sys/types.h>.
90820         * lib/strstr.h (PARAMS): Remove macro.
90821         (strstr): Use ANSI C function declarations.
90822
90823 2002-11-14  Karl Berry  <karl@gnu.org>
90824
90825         * config/mkinstalldirs: `do' on separate line, instead of
90826         `for var; do'.
90827
90828 2002-11-06  Bruno Haible  <bruno@clisp.org>
90829
90830         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90831         * lib/gcd.c (gcd): Likewise.
90832
90833 2002-11-05  Bruno Haible  <bruno@clisp.org>
90834
90835         * lib/gcd.h: New file, from gettext-0.11.5.
90836         * lib/gcd.c: New file, from gettext-0.11.5.
90837
90838 2002-11-05  Bruno Haible  <bruno@clisp.org>
90839
90840         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90841         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90842         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90843         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90844
90845         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90846         <libintl.h>.
90847         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90848         <libintl.h>.
90849
90850         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90851         * lib/human.c: Include gettext.h instead of <libintl.h>.
90852         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90853         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90854         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90855         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90856         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90857         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90858         (textdomain): Remove definition.
90859         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90860
90861         * lib/long-options.c: Remove include of <libintl.h> and definition of
90862         _.
90863         * lib/same.c: Remove include of <libintl.h> and definition of _.
90864
90865 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90866
90867         * lib/config.charset: A few additions for Solaris.
90868
90869 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90870
90871         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90872         * lib/localcharset.c (locale_charset): Declare as extern "C".
90873
90874 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90875
90876         * lib/config.charset: msdos in uk_UA uses CP1125.
90877
90878 2002-11-04  Bruno Haible  <bruno@clisp.org>
90879
90880         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90881         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90882         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90883         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90884         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90885
90886 2002-11-04  Bruno Haible  <bruno@clisp.org>
90887
90888         * lib/localcharset.c (locale_charset): Don't return an empty string.
90889
90890 2002-11-04  Bruno Haible  <bruno@clisp.org>
90891
90892         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90893         aliases.
90894
90895 2002-11-04  Bruno Haible  <bruno@clisp.org>
90896
90897         * lib/config.charset: Update for newest glibc. Add canonical names
90898         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90899
90900 2002-11-04  Bruno Haible  <bruno@clisp.org>
90901
90902         * lib/config.charset: Add support for NetBSD.
90903
90904 2002-11-04  Bruno Haible  <bruno@clisp.org>
90905
90906         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90907
90908 2002-11-01  Bruno Haible  <bruno@clisp.org>
90909
90910         * configure.in: Add AC_CONFIG_AUX_DIR call.
90911         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90912         test/Makefile.
90913         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90914
90915 2002-09-28  Karl Berry  <karl@gnu.org>
90916
90917         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90918         installed automake until the next release, since changes have been
90919         made.
90920
90921 2002-09-25  Karl Berry  <karl@gnu.org>
90922
90923         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90924         * lib/getopt*: copy from libc/posix.
90925         * lib/gettext.h: copy from gettext.
90926         * lib/.cppi-disable: add strdup.c, gettext.h.
90927
90928 2002-09-25  Karl Berry  <karl@gnu.org>
90929
90930         * config/srclist.txt: enable gettext.h check.
90931         * config/config.{guess,sub}: update from prep.
90932         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90933                 from automake 1.6.3.
90934         See srclist*.
90935
90936 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90937
90938         * regex.c (PATFETCH): Remove the translating fetch.
90939         (PATFETCH_RAW): Rename to PATFETCH.
90940         (set_image_of_range): New fun.
90941         (SET_RANGE_TABLE_WORK_AREA): Use it.
90942         (regex_compile): Don't translate the pattern chars so eagerly.
90943         Only do it when inserting an `exactn' bytecode or when handling
90944         a char-range.
90945         (mutually_exclusive_p): Avoid empty statement.
90946
90947 2002-07-06  Jim Meyering  <meyering@lucent.com>
90948
90949         * m4/README: Don't mention Makefile.am.in.
90950         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90951
90952 2002-07-01  Jim Meyering  <meyering@lucent.com>
90953
90954         * lib/c-stack.c: Include sys/time.h.
90955         From Volker Borchert.
90956
90957 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90958
90959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90960
90961 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90962
90963         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90964         New macro.  Use it uniformly instead of
90965         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90966         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90967         reported by Vin Shelton.
90968
90969 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90970
90971         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90972         Do not assume SA_SIGINFO behavior.
90973         Bug reported by Jim Meyering on NetBSD 1.5.2.
90974
90975 2002-06-22  Jim Meyering  <meyering@lucent.com>
90976
90977         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90979
90980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90981         now that configure.ac uses AC_GNU_SOURCE.
90982         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90983         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90984
90985         Update to latest tools.  Suggestions from Paul Eggert.
90986         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90987         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90988         * m4/fnmatch.m4: Likewise.
90989         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90990         to AC_HEADER_STDBOOL
90991
90992 2002-06-22  Jim Meyering  <meyering@lucent.com>
90993
90994         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90995         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90996
90997 2002-06-22  Jim Meyering  <meyering@lucent.com>
90998
90999         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91000
91001         * lib/exitfail.c, exitfail.h: Likewise.
91002         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91003
91004         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91005         of fnmatch.h.
91006         (EXTRA_DIST): Add fnmatch_loop.c.
91007         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91008
91009         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91010         * lib/fnmatch.c: Update from diffutils-2.8.2.
91011         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91012         * lib/fnmatch.h: Remove file.
91013
91014 2002-06-21  Jim Meyering  <meyering@lucent.com>
91015
91016         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91017         * m4/mbrtowc.m4: Likewise.
91018
91019         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91020         * m4/mbswidth.m4: Reflect name change:
91021         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91022         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91023
91024         * m4/lib-link.m4: Update from gettext-0.11.2.
91025         * m4/gettext.m4: Likewise.
91026
91027         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91028         From Alfred M. Szmidt.
91029
91030 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91031
91032         * lib/file-type.h: Report an error if neither S_ISREG nor
91033         S_IFREG is defined, instead of using a test specific to glibc
91034         2.2.  This should be safe, since POSIX requires S_ISREG and
91035         Unix Version 7 had S_IFREG.  We don't need to check for
91036         <sys/types.h> since we don't use any symbols that it defines.
91037
91038 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91039
91040         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91041         $@-t, so that each temporary file name is unique and valid in the first
91042         8 characters, for operation under DOS.
91043
91044 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91045
91046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91047
91048 2002-06-15  Jim Meyering  <meyering@lucent.com>
91049
91050         Work even with DJGPP 2.03, which lacks support for symlinks.
91051         From Richard Dawe.
91052         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91053         is defined.
91054         * lib/lchown.c (S_ISLNK): Likewise.
91055
91056 2002-06-15  Jim Meyering  <meyering@lucent.com>
91057
91058         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91059         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91060         have been included before this file.
91061
91062 2002-06-14  Jim Meyering  <meyering@lucent.com>
91063
91064         * lib/file-type.h: Use the version from diffutils-2.8.2.
91065         * lib/file-type.c: Likewise.
91066
91067 2002-06-07  Jim Meyering  <meyering@lucent.com>
91068
91069         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91070         They're needed at least for NetBSD 1.5.2.
91071         ($statxfs_includes): Include those same headers.
91072         ($statxfs_includes): Include sys/vfs.h if available.
91073         ($statxfs_includes): Likewise for sys/statvfs.h.
91074         Check for the following members in both structs statfs and statvfs:
91075         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91076
91077 2002-06-01  Jim Meyering  <meyering@lucent.com>
91078
91079         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91080         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91081
91082 2002-05-28  Jim Meyering  <meyering@lucent.com>
91083
91084         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91085         Reported by Volker Borchert.
91086
91087 2002-05-27  Jim Meyering  <meyering@lucent.com>
91088
91089         Fix a problem seen only on nonconforming systems whereby ls.c's
91090         use of localtime, and then of gettimeofday would cause trouble:
91091         the localtime call used to initialize rpl_gettimeofday's save
91092         mechanism would clobber ls's current local time information so
91093         that in any long listing the first file would always be listed
91094         with date 1970-01-01.  Analysis by Volker Borchert.
91095
91096         * lib/gettimeofday.c (localtime): Undefine.
91097         (rpl_localtime): New function.
91098
91099 2002-05-27  Jim Meyering  <meyering@lucent.com>
91100
91101         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91102         localtime.
91103
91104         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91105         use the replacement function; it wouldn't resolve at link time.
91106         Reported by Volker Borchert.
91107
91108 2002-05-22  Jim Meyering  <meyering@lucent.com>
91109
91110         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91111         file-type.h.
91112         * lib/file-type.h: New file.
91113         * lib/file-type.c (file_type): New file/function.  Extracted from
91114         diffutils.
91115
91116 2002-04-30  Jim Meyering  <meyering@lucent.com>
91117
91118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91119
91120 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91121
91122         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91123
91124 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91125
91126         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91127         Do not check for alloca.h (no longer used) or stdbool.h (was never
91128         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91129
91130 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91131
91132         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91133
91134 2002-04-29  Jim Meyering  <meyering@lucent.com>
91135
91136         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91137         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91138         Use AC_FUNC_STRNLEN here instead.
91139
91140         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91141         With autoconf-2.53a, it's part of AC_PROG_CC.
91142
91143 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91144
91145         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91147
91148 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91149
91150         * lib/sig2str.h, lib/sig2str.c: New files.
91151         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91152
91153 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91154
91155         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91156         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91157         of 127, since 64 is the largest conceivable number for ancient
91158         nonstandard hosts.
91159         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91160
91161 2002-04-28  Jim Meyering  <meyering@lucent.com>
91162
91163         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91164
91165 2002-04-24  Jim Meyering  <meyering@lucent.com>
91166
91167         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91168         (jm_PREREQ): Use it.
91169
91170         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91171         mach/mach.h fcntl.h.
91172         Check for this function: setlocale.
91173
91174 2002-04-24  Jim Meyering  <meyering@lucent.com>
91175
91176         * lib/gettext.h: New file, from Gettext.
91177         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91178         (libfetish_a_SOURCES): Add gettext.h.
91179
91180 2002-04-16  Jim Meyering  <meyering@lucent.com>
91181
91182         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91183         ut_pid, ut_id, ut_exit.
91184
91185 2002-04-16  Jim Meyering  <meyering@lucent.com>
91186
91187         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91188         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91189         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91190
91191 2002-04-12  Jim Meyering  <meyering@lucent.com>
91192
91193         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91194         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91195         existence of the getmntinfo function.  Needed for Darwin 5.3.
91196
91197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91198         This is necessary at least on Darwin 5.3.
91199
91200         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91201         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91202         strnlen.o in the library, and that makes some versions of ranlib
91203         object.
91204
91205 2002-04-12  Jim Meyering  <meyering@lucent.com>
91206
91207         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91208
91209 2002-04-09  Jim Meyering  <meyering@lucent.com>
91210
91211         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91212         to be more precise.  Rather than saying we're checking whether the
91213         function `works', say what we're testing.
91214         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91215         Reported by Bruno Haible.
91216
91217 2002-03-10  Jim Meyering  <meyering@lucent.com>
91218
91219         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91220         Suggestion from Santiago Vila.
91221
91222 2002-03-08  Jim Meyering  <meyering@lucent.com>
91223
91224         * lib/rename.c: Mention that this wrapper is needed also on
91225         mips-dec-ultrix4.4 systems.
91226
91227 2002-03-02  Jim Meyering  <meyering@lucent.com>
91228
91229         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91230         not HAVE_CLOCK_SETTIME.
91231
91232 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91233
91234         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91235         Check for clock_settime.
91236
91237 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91238
91239         * lib/nanosleep.h: Rename to....
91240         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91241
91242         * lib/gettime.c: New file.
91243         * lib/settime.c: New file.
91244         * lib/stime.c: Remove.
91245
91246         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91247         timespec.h.  Remove nanosleep.h.
91248
91249 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91250
91251         * m4/acl.m4: New file.
91252         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91253         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91254
91255 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91256
91257         * lib/acl.c, lib/acl.h: New files.
91258         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91259
91260 2002-02-24  Jim Meyering  <meyering@lucent.com>
91261
91262         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91263         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91264         cause trouble.  Reported by Nelson Beebe.
91265
91266 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91267
91268         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91269         compilers that don't know that xalloc_die never returns.
91270
91271 2002-02-20  Jim Meyering  <meyering@lucent.com>
91272
91273         * lib/getdate.c: Regenerate using bison-1.33.
91274
91275 2002-02-17  Jim Meyering  <meyering@lucent.com>
91276
91277         * config/config.guess (main): Don't use `head -1'; it's no longer
91278         portable. Use `sed 1q' instead.
91279
91280 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91281
91282         * m4/codeset.m4: Upgrade to gettext-0.11.
91283         * m4/gettext.m4: Upgrade to gettext-0.11.
91284         * m4/glibc21.m4: Upgrade to gettext-0.11.
91285         * m4/iconv.m4: Upgrade to gettext-0.11.
91286         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91287         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91288         * m4/lib-ld.m4: New file, from gettext-0.11.
91289         * m4/lib-link.m4: New file, from gettext-0.11.
91290         * m4/lib-prefix.m4: New file, from gettext-0.11.
91291         * m4/progtest.m4: Upgrade to gettext-0.11.
91292
91293 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91294
91295         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91296         (jm_PREREQ): Use it.
91297
91298 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91299
91300         * lib/posixver.c, lib/posixver.h: New files.
91301         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91302
91303 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91304             Bruno Haible  <bruno@clisp.org>
91305
91306         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91307         (fwrite_success_callback): New declaration.
91308         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91309         print_unicode_char. Call failure callback instead of error.
91310         (fwrite_success_callback): New function.
91311         (exit_failure_callback): New function.
91312         (fallback_failure_callback): New function.
91313         (print_unicode_char): Call unicode_to_mb.
91314
91315 2002-01-26  Jim Meyering  <meyering@lucent.com>
91316
91317         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91318         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91319
91320 2002-01-26  Jim Meyering  <meyering@lucent.com>
91321
91322         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91323
91324 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91325
91326         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91327
91328 2002-01-22  Jim Meyering  <meyering@lucent.com>
91329
91330         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91331         Otherwise, some versions of automake would omit the rule that makes
91332         Makefile from Makefile.in.
91333
91334 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91335
91336         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91337         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91338         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91339         (memcoll): Set errno to zero if there is no error.
91340
91341         * lib/quotearg.c (quotearg_buffer_restyled):
91342         Fix bug with quoting buffers containing NUL when backslashing escapes.
91343         This bug was exposed by the other changes in this patch.
91344         (quotearg_n_options): New arg ARGSIZE.
91345         All callers changed.
91346         (quoting_options_from_style): New function.
91347         (quotearg_n_style): Use it.
91348         (quotearg_n_style_mem): New function.
91349
91350         * lib/quotearg.h (quotearg_n_style_mem): New function.
91351
91352 2002-01-19  Jim Meyering  <meyering@lucent.com>
91353
91354         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91355         Remove useless quotes: DF_PROG="df".
91356         * m4/strnlen.m4: New file.
91357
91358 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91359
91360         * lib/backupfile.c (ISDIGIT): Comment fix.
91361         * lib/getdate.y (ISDIGIT): Likewise.
91362         * lib/posixtm.c (ISDIGIT, year): Likewise.
91363         * lib/strverscmp.c (ISDIGIT): Likewise.
91364         * lib/userspec.c (ISDIGIT): Likewise.
91365
91366 2002-01-16  Jim Meyering  <meyering@lucent.com>
91367
91368         * lib/getdate.y: Add three semicolons, each just before a closing
91369         brace. Bison (as of version 1.31) no longer papers over that mistake.
91370
91371 2002-01-05  Jim Meyering  <meyering@lucent.com>
91372
91373         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91374
91375 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91376
91377         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91378         not silently exit merely because the output buffer happens to
91379         have nothing pending.
91380
91381 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91382
91383         See the big note in ../ChangeLog.
91384         * lib/human.c (suffixes): Prefer K to k for 1024.
91385         (generate_suffix_backwards): New function.
91386         (human_readable_inexact): Use it.
91387         * lib/xstrtol.c (__xstrtol): If there is no number but there
91388         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91389         Accept 'K' as well as 'k'.
91390
91391 2001-12-15  Jim Meyering  <meyering@lucent.com>
91392
91393         * lib/regex.h (__restrict_arr): Update from libc.
91394
91395         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91396         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91397         (STREQ): Define.
91398
91399 2001-12-14  Jim Meyering  <meyering@lucent.com>
91400
91401         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91402         Suggestion from Bruno Haible.
91403
91404 2001-12-10  Jim Meyering  <meyering@lucent.com>
91405
91406         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91407         xrealloc, Instead, include "xalloc.h".
91408         (initbuffer): Don't cast xmalloc return value to char*.
91409         (readline): Reword comment.
91410         Don't cast xrealloc return value to char*
91411         Return NULL, not 0.
91412
91413 2001-12-09  Jim Meyering  <meyering@lucent.com>
91414
91415         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91416         about `signed and unsigned type in conditional expression'.
91417         * lib/posixtm.c (posix_time_parse): Likewise.
91418
91419         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91420
91421         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91422         to avoid a pedantic warning.
91423
91424         * lib/getstr.c: Don't include assert.h.
91425         (getstr): Remove warning-evoking assertions.
91426         Return -1 if offset parameter is out of bounds.
91427         Change the type of a local from int to size_t.
91428
91429         * lib/strftime.c (my_strftime_localtime_r): Include this function
91430         definition in the `#if ! HAVE_TM_GMTOFF' block.
91431
91432         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91433         Include xalloc.h instead.
91434
91435 2001-12-02  Jim Meyering  <meyering@lucent.com>
91436
91437         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91438         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91439         included.
91440
91441         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91442         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91443
91444 2001-11-30  Akim Demaille  <akim@epita.fr>
91445
91446         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91447         before being defined.
91448
91449 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91450
91451         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91452         First arg is int, not unsigned.
91453         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91454         (SIZE_MAX, UINT_MAX): New macros.
91455         (quotearg_n_options): Abort if N is negative.
91456         Avoid overflow check on hosts where size_t is 64 bits and int
91457         is 32 bits, as overflow is impossible there.
91458         Fix off-by-one typo that caused unnecessary reallocation.
91459
91460 2001-11-27  Jim Meyering  <meyering@lucent.com>
91461
91462         * lib/tempname.c: Merge with version from libc.
91463         * lib/regex.c: Likewise.
91464
91465         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91466         systems for which STDC_HEADERS is 0, it was not included, resulting in
91467         a warning about an integer-to-pointer conversion problem with getenv.
91468         Reported by Volker Borchert.
91469
91470 2001-11-26  Jim Meyering  <meyering@lucent.com>
91471
91472         * lib/gtod.h: Remove file.
91473         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91474         * lib/gettimeofday.c: Don't include gtod.h.
91475         (GTOD_init): Remove function.
91476         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91477         Suggestion from Volker Borchert.
91478
91479 2001-11-23  Jim Meyering  <meyering@lucent.com>
91480
91481         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91482         it.
91483         * lib/hash.c (struct hash_table): Define it here instead.
91484
91485 2001-11-22  Jim Meyering  <meyering@lucent.com>
91486
91487         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91488
91489 2001-11-20  Jim Meyering  <meyering@lucent.com>
91490
91491         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91492         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91493
91494 2001-11-19  Jim Meyering  <meyering@lucent.com>
91495
91496         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91497         directory.  Use "conftestXXXXXX" as the template.
91498         Suggestion from Paul Eggert.
91499
91500         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91501         immediately, so the test doesn't mistakenly hit the max-open-files
91502         limit.
91503
91504 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91505
91506         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91507         (TEMPORARIES): New macro.
91508         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91509         removes an artificial limitation (e.g. HP-UX 10.20, where
91510         TMP_MAX is 17576).
91511
91512 2001-11-18  Jim Meyering  <meyering@lucent.com>
91513
91514         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91515
91516 2001-11-18  Jim Meyering  <meyering@lucent.com>
91517
91518         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91519         on SunOS 4.
91520
91521         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91522         files will be created before anything else.
91523
91524 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91525
91526         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91527         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91528
91529 2001-11-17  Jim Meyering  <meyering@lucent.com>
91530
91531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91532         Prompted by a report from Bob Proulx.
91533
91534         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91535         Instead, require UTILS_FUNC_MKSTEMP.
91536
91537 2001-11-17  Jim Meyering  <meyering@lucent.com>
91538
91539         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91540         Now, that's done as part of AC_FUNC_STRTOD.
91541
91542 2001-11-17  Jim Meyering  <meyering@lucent.com>
91543
91544         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91545         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91546         rather than group writable.  Patch by Juan F. Codagnone.
91547
91548         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91549         xrealloc, Instead, include "xalloc.h".
91550
91551         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91552         Remove explicit declarations of xmalloc, xrealloc,
91553         and xstrdup.  Instead, include "xalloc.h".
91554
91555         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91556         unlocked-io.h.
91557         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91558         Likewise.
91559         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91560
91561         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91562         Reported by Padraig Brady.
91563
91564         * lib/mkstemp.c: #undef mkstemp.
91565         Include config.h.
91566         (rpl_mkstemp): Rename from mkstemp.
91567         Protoize.
91568
91569 2001-11-16  Jim Meyering  <meyering@lucent.com>
91570
91571         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91572         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91573         determine the amount of total physical memory, use pstat_getstatic.
91574         HPUX-11 doesn't define _SC_PHYS_PAGES.
91575         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91576         If sysconf couldn't be used to determine the amount of available
91577         physical memory, use both pstat_getstatic and pstat_getdynamic.
91578         Based on a patch from Bob Proulx.
91579
91580 2001-11-10  Jim Meyering  <meyering@lucent.com>
91581
91582         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91583         (jm_PREREQ): Use it.
91584
91585 2001-11-09  Jim Meyering  <meyering@lucent.com>
91586
91587         * m4/jm-macros.m4: Require autoconf-2.52f.
91588         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91589         Use these AC_-prefixed names, not the AM_-prefixed ones.
91590
91591         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91592
91593 2001-11-05  Jim Meyering  <meyering@lucent.com>
91594
91595         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91596
91597 2001-11-04  Jim Meyering  <meyering@lucent.com>
91598
91599         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91600         $DEFS.
91601
91602 2001-11-03  Jim Meyering  <meyering@lucent.com>
91603
91604         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91605         of AC_DEFUN.
91606
91607         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91608         know the name of the variable in the macro definition.
91609
91610 2001-11-03  Jim Meyering  <meyering@lucent.com>
91611
91612         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91613         in argmatch_to_argument call.
91614
91615         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91616         argument.
91617
91618         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91619         e.g., a fault due to an attempt to free a NULL pointer.
91620
91621 2001-11-01  Jim Meyering  <meyering@lucent.com>
91622
91623         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91624         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91625
91626 2001-11-01  Jim Meyering  <meyering@lucent.com>
91627
91628         * lib/dirfd.c, lib/dirfd.h: New files.
91629         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91630
91631         * lib/hash.c (hash_print) [TESTING]: Clean up.
91632
91633 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91634
91635         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91636         to avoid a warning if -Wall.
91637
91638 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91639
91640         * README: New file
91641         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91642         (per RMS's instructions, this is now the canonical source)
91643         * lgpl/, gpl/: New directories.
91644
91645 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91646
91647         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91648
91649 2001-10-21  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91652         this code would end up calling gettext even in packages built
91653         with --disable-nls.
91654         * lib/getopt.c (_): Likewise.
91655         * lib/regex.c (_): Likewise.
91656
91657 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91658
91659         * m4/error.m4 (jm_PREREQ_ERROR):
91660         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91661         AC_FUNC_STRERROR_R does that.
91662         Check for strerror declaration.
91663
91664         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91665         are supposed to have them these days.
91666         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91667         Merge changes from latest Autoconf CVS.
91668         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91669         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91670         POSIX decided to standardize on the int flavor of strerror_r.
91671
91672 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91673
91674         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91675         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91676         Use strerror_r that is only a macro, even if it is not a function.
91677         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91678         (private_strerror): Use prototypes, not old-style function definition.
91679         (print_errno_message): New function.
91680         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91681         char*-flavored one.
91682         (error_tail, error, error_at_line): Use it.
91683
91684 2001-10-11  Jim Meyering  <meyering@lucent.com>
91685
91686         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91687         and quote_n (1, ... to avoid clobbering a buffer.
91688
91689 2001-10-05  Jim Meyering  <meyering@lucent.com>
91690
91691         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91692         hash-pjw.h.
91693         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91694         * lib/hash-pjw.h: New file.
91695
91696 2001-09-30  Jim Meyering  <meyering@lucent.com>
91697
91698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91699         `struct fsstat' has the `f_fstypename' member.
91700         Use that to define FS_TYPE, which is now used to make
91701         the getfsstat link test tighter.
91702
91703 2001-09-30  Jim Meyering  <meyering@lucent.com>
91704
91705         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91706         Include <sys/ucred.h>, for Apple Darwin.
91707         Include sys/mount.h and sys/fs_types.h only if available.
91708         (FS_TYPE): Define.
91709         (read_filesystem_list): Use FS_TYPE.
91710
91711 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91714         a boolean context.
91715
91716 2001-09-29  Jim Meyering  <meyering@lucent.com>
91717
91718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91719         [one-argument getmntent function]): Include stdio.h before mntent.h.
91720         SunOS 4.1.x needs it for the declaration of `FILE'.
91721         Patch by Volker Borchert.
91722
91723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91724         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91725         sys/fs_types.h, and make the link-test for getfsstat guard #include
91726         directives with appropriate #if HAVE_*_H tests so that we can
91727         detect getfsstat on Apple Darwin1.3.7 systems.
91728         Reported by Nelson Beebe.
91729         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91730
91731 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91732
91733         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91734         #defines strtoimax.  Also treat the other strto* functions
91735         like strtoimax.
91736
91737         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91738         Check for strtoul and strtoumax,
91739         as those declarations are made even in the signed case.
91740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91741         Likewise, for strtol and strtoimax.
91742
91743 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91744
91745         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91746         #defines strtoimax.  Also treat the other strto* functions
91747         like strtoimax.
91748
91749         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91750         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91751         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91752
91753 2001-09-26  Jim Meyering  <meyering@lucent.com>
91754
91755         Most macros in unlocked-io.h had the wrong number of arguments.
91756         * lib/gen-uio: New script.
91757         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91758         * lib/unlocked-io.hin: Remove file.
91759         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91760         rather than trying to embed it here.
91761         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91762         Reported by Padraig Brady.
91763
91764 2001-09-25  Volker Borchert  <bt@teknon.de>
91765
91766         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91767         `result'.
91768
91769 2001-09-24  Jim Meyering  <meyering@lucent.com>
91770
91771         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91772
91773 2001-09-23  Jim Meyering  <meyering@lucent.com>
91774
91775         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91776         instead of the mere test for existence of mntent.h.  The latter
91777         would get a false-positive on AIX 3.4 systems.
91778         In the outer getmntent if-block, don't die if neither of the getmntent
91779         tests succeeds.  Instead, just fall through and continue with the
91780         remaining tests.
91781
91782 2001-09-23  Jim Meyering  <meyering@lucent.com>
91783
91784         * lib/mountlist.c: Remove useless parentheses in #if directives.
91785         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91786         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91787
91788 2001-09-22  Jim Meyering  <meyering@lucent.com>
91789
91790         * m4/gettext.m4: New file.  From gettext.
91791         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91792         * m4/progtest.m4: Likewise
91793         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91794         * m4/glibc21.m4: Likewise.
91795
91796         * m4/libintl.m4: Remove.  No longer used.
91797
91798 2001-09-22  Jim Meyering  <meyering@lucent.com>
91799
91800         * lib/localcharset.c: Update from latest gettext.
91801         * lib/config.charset: Likewise.
91802
91803 2001-09-20  Jim Meyering  <meyering@lucent.com>
91804
91805         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91806         strtoimax.
91807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91808         strtoumax.
91809
91810 2001-09-20  Jim Meyering  <meyering@lucent.com>
91811
91812         * lib/xstrtol.c (strtoimax): Guard declaration with
91813         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91814         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91815         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91816         (strtoumax): Likewise, for completeness (it wasn't necessary).
91817
91818 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91819
91820         * lib/strtoimax.c (HAVE_LONG_LONG):
91821         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91822         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91823         to work around bug in IBM C compiler.
91824
91825 2001-09-17  Jim Meyering  <meyering@lucent.com>
91826
91827         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91828         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91829         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91830         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91831         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91832         whenever the right hand side need not be expanded by the shell.
91833
91834 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91835
91836         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91837         library.  It's not correct, as some older glibcs are buggy.
91838         fnmatch wasn't fixed until glibc 2.2.
91839
91840         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91841         special shell magic here.
91842
91843 2001-09-16  Jim Meyering  <meyering@lucent.com>
91844
91845         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91846         * m4/jm-macros.m4: Require it.
91847
91848 2001-09-16  Jim Meyering  <meyering@lucent.com>
91849
91850         * lib/mkdir.c: New file.
91851
91852 2001-09-15  Jim Meyering  <meyering@lucent.com>
91853
91854         * m4/jm-macros.m4: Check for help2man.
91855
91856 2001-09-11  Jim Meyering  <meyering@lucent.com>
91857
91858         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91859         The body, by Paul Eggert, was moved here from configure.in.
91860         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91861
91862 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91863
91864         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91865         (jm_PREREQ): Use it.
91866
91867 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91868
91869         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91870         Use ssize_t, not int, to store result of readlink.
91871         Check for ssize_t overflow as well as size_t overflow,
91872         as POSIX says the result of readlink is implementation-defined
91873         when ssize_t overflows.
91874         Remove unnecessary cast to char*.
91875         Use free+malloc instead of realloc, as the storage doesn't need
91876         to be preserved and it's clearer and can be more efficient that way.
91877         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91878         * lib/xreadlink.h (xreadlink): Update prototype.
91879
91880 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91881
91882         * lib/xgetcwd.c: Revert some of the previous change; intead,
91883         fix the HAVE_GETCWD_NULL code to behave more like the
91884         !HAVE_GETCWD_NULL code used to.
91885
91886         Include "xalloc.h".
91887         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91888         invoke xalloc_die.
91889
91890 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91891
91892         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91893         sys/param.h, as pathmax.h includes them.
91894
91895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91896
91897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91898         (jm_PREREQ_XGETCWD): New macro.
91899
91900         * m4/getcwd.m4: New file.
91901
91902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91903
91904         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91905         like the HAVE_GETCWD_NULL code.
91906         Include pathmax.h if not HAVE_GETCWD.
91907         Do not include xalloc.h.
91908         (INITIAL_BUFFER_SIZE): New symbol.
91909         Do not use xmalloc / xrealloc, since the caller is responsible for
91910         handling errors.  Preserve errno around `free' during failure.
91911         Do not overrun buffer when using getwd.
91912
91913 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91914
91915         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91916         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91917         getcwd (NULL, 0).
91918
91919 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91920
91921         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91922         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91923         spotted by Jim Meyering.
91924
91925 2001-09-03  Jim Meyering  <meyering@lucent.com>
91926
91927         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91928         failure.
91929
91930 2001-09-02  Jim Meyering  <meyering@lucent.com>
91931
91932         * lib/error.c: Update from GNU libc.
91933
91934 2001-09-01  Jim Meyering  <meyering@lucent.com>
91935
91936         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91937         Used by df.
91938
91939 2001-09-01  Jim Meyering  <meyering@lucent.com>
91940
91941         * lib/xreadlink.c: New file.
91942         * lib/xreadlink.h: New file.
91943         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91944         xreadlink.h.
91945
91946         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91947         doesn't conflict with sparc Solaris 7's definition in
91948         /usr/include/sys/int_types.h.
91949
91950         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91951         files.
91952         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91953         and strncasecmp as r-values.  Unixware didn't have declarations.
91954
91955 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91956
91957         * lib/xstrtol.h: Add copyright notice.
91958         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91959         LONGINT_INVALID_SUFFIX_CHAR.
91960
91961 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91962
91963         * lib/xstrtol.c (strtoimax): New decl.
91964
91965 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91966
91967         * lib/xgetcwd.c: Don't include pathmax.h.
91968         Include stdlib.h and unistd.h if available.
91969         Include xalloc.h.
91970         (xmalloc, xstrdup, free): Remove decls.
91971         (xgetcwd): Don't assume sizes fit in unsigned.
91972         Check for overflow when computing sizes.
91973         Simplify reallocation code.
91974
91975 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91976
91977         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91978         a directory's st_size can have an arbitrary value, so the old
91979         usage could waste an arbitrary amount of memory.  All uses
91980         changed.
91981         * lib/savedir.h: Update prototype.
91982
91983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91984
91985         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91986
91987         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91988         old strtoimax.c.
91989
91990         Also, make the following further changes to make this file's
91991         configuration more similar to that of strtol.c:
91992         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91993         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91994         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91995         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91996         changed to signed values.
91997
91998         And make the following changes as well:
91999         Fix copyright notice, as 1999 was missing.
92000         (verify): New macro.
92001         (strtoimax): Check sizes at compile-time, not run-time.
92002         Prefer strtol to strtoll if both work.
92003         (main): Remove; it was not that useful and was a pain to maintain.
92004
92005         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92006
92007 2001-08-31  Jim Meyering  <meyering@lucent.com>
92008
92009         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92010         Use an initial, malloc'd, buffer of length 128 rather than
92011         a statically allocated one of length 1024.
92012
92013 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92014
92015         Simplify code, partly by assuming autoconf 2.52 semantics.
92016
92017         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92018
92019         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92020         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92021         All uses removed.
92022         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92023         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92024         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92025         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92026         jm_AC_HEADER_INTTYPES_H.
92027         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92028
92029         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92030
92031         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92032         Quote first arg of AC_DEFUN.
92033         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92034         since they are needed to parse the include file even if we need
92035         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92037         but with opposite signedness.
92038
92039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92040
92041         Merge 'exclude' changes from tar 1.13.22.
92042         This fixes one or two unlikely storage allocation overflow bugs,
92043         but doesn't change user-visible behavior otherwise.
92044
92045 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92046
92047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92048         (jm_PREREQ_EXCLUDE): New macro.
92049
92050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92051
92052         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92053         tm to be declared.
92054
92055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92056
92057         * lib/hash.c: Remove '2001' from copyright notice.
92058
92059 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92060
92061         * lib/full-write.h: New file.
92062         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92063         * lib/full-write.c: Correct credits, as cccp.c no longer
92064         exists and anyway it was so heavily changed from the old cccp
92065         code as to be unrecognizable.  Include full-write.h.
92066         (full_write): Return size_t, with short writes meaning failure.
92067         All callers changed.  This fixes a bug with large buffers
92068         on 64-bit hosts.
92069         * lib/utime.c: Include full-write.h.
92070
92071 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92072
92073         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92074         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92075         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92076         Include if available.
92077         (<xalloc.h>): Include
92078         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92079         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92080         collide with FNM macros.
92081         (struct patopts): New struct.
92082         (struct exclude): Use it, as exclude patterns now come with options.
92083         (new_exclude): Support above changes.
92084         (new_exclude, add_exclude_file):
92085         Initial size must now be a power of two to simplify overflow checking.
92086         (free_exclude, fnmatch_no_wildcards): New function.
92087         (excluded_filename): No longer requires options arg, as the options
92088         are determined by add_exclude.  Now returns bool, not int.
92089         (excluded_filename, add_exclude):
92090         Add support for the fancy new exclusion options.
92091         (add_exclude, add_exclude_file): Now takes int options arg.
92092         Check for arithmetic overflow when computing sizes.
92093         (add_exclude_file): xrealloc might modify errno, so don't
92094         realloc until after errno might be used.
92095
92096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92097         New macros.
92098         (free_exclude): New decl.
92099         (add_exclude, add_exclude_file): Now takes int options arg.
92100         (excluded_filename): No longer requires options arg, as the options
92101         are determined by add_exclude.  Now returns bool, not int.
92102
92103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92104
92105         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92106
92107 2001-08-27  Jim Meyering  <meyering@lucent.com>
92108
92109         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92110
92111         * lib/version-etc.c (N_): Remove definition.
92112         Revert most of last change.
92113         Instead, simply don't mark the `Copyright...' string for translation.
92114         Based on advice from Paul Eggert.
92115
92116         * lib/strtoxmax.c: Tweak comment.
92117
92118 2001-08-26  Jim Meyering  <meyering@lucent.com>
92119
92120         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92121
92122         * m4/xstrtoimax.m4: New file.
92123         * m4/xstrtoumax.m4: Add comments explaining why we
92124         AC_REPLACE_FUNCS(strtol).
92125
92126 2001-08-26  Jim Meyering  <meyering@lucent.com>
92127
92128         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92129         of copyright with `%s' so translators don't get an untranslated
92130         message in 2002.
92131         (COPYRIGHT_YEAR): Define.
92132         (version_etc): Use fprintf rather than fputs.
92133         Suggestion from Ulrich Drepper.
92134
92135         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92136
92137         * lib/strtoll.c: New file, from GNU libc.
92138         * lib/xstrtoimax.c: New file.
92139
92140         * lib/xstrtol.h: Add xstrtoimax.
92141         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92142         * lib/strtoimax.c: New file.  Likewise, but first define
92143         STRTOUXMAX_SIGNED.
92144
92145         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92146         ...
92147         * lib/strtoxmax.c: ... then renamed to this.
92148
92149 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92150
92151         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92152         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92153         (jm_AC_TYPE_INTMAX_T): New macro.
92154         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92155
92156         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92157
92158         * m4/longlong.m4: Renamed from ulonglong.m4.
92159         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92160         * m4/uintmax_t.m4: Removed.
92161
92162 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92163
92164         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92165         Port to Solaris 8, where 'sed' requires a space after the 'r'
92166         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92167         Redirect output to $tmp just once.
92168
92169 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92170
92171         * lib/addext.c (<errno.h>): Include.
92172         (errno): Declare if not defined.
92173         (addext): Work correctly when pathconf returns -1 and leaves
92174         errno alone because there is no limit.  Also, work even if
92175         pathconf returns a value greater than SIZE_MAX.
92176
92177 2001-08-12  Jim Meyering  <meyering@lucent.com>
92178
92179         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92180         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92181         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92182         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92183         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92184         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92185         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92186         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92187         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92188         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92189         utime.m4, utimes.m4, xstrtoumax.m4:
92190         Quote the first argument in each use of AC_DEFUN.
92191
92192 2001-08-12  Jim Meyering  <meyering@lucent.com>
92193
92194         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92195         Simply `return getcwd (NULL, 0);'.
92196         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92197         Use 1300 as initial value for length, not PATH_MAX.
92198
92199         * lib/pathmax.h: Clean up cpp syntax.
92200
92201 2001-08-12  Jim Meyering  <meyering@lucent.com>
92202
92203         * lib/gettimeofday.c: New file.
92204         * lib/gtod.h: New file.
92205         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92206
92207 2001-08-05  Jim Meyering  <meyering@lucent.com>
92208
92209         * m4/jm-macros.m4: Require autoconf-2.52.
92210
92211 2001-08-04  Jim Meyering  <meyering@lucent.com>
92212
92213         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92214         stmt, to get in sync with glibc.
92215
92216 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92217
92218         The following changes are from gettext 0.10.39 as maintained by
92219         Bruno Haible.
92220
92221         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92222         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92223         with inverted sense.  All uses changed.
92224
92225         * lib/mbswidth.c: Don't include <limits.h>.
92226         Include <stdlib.h> and <string.h> unconditionally.
92227         (iswcntrl, mbsinit, ISCNTRL): New macros.
92228         (mbsnwidth): Use K&R style function declarations.
92229         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92230         can optimize it when MB_CUR_MAX == 1.
92231         The width of control characters is zero, not 1.
92232
92233 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92234
92235         The following changes are from gettext 0.10.39 as maintained by
92236         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92237
92238         * m4/codeset.m4: Upgrade to serial AM1.
92239         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92240         all uses changed.  Quote first arg of AC_DEFUN.
92241         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92242
92243         * m4/iconv.m4: Upgrade to serial AM2.
92244         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92245         Add --with-libconv-prefix.
92246         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92247         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92248         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92249         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92250         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92251
92252         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92253         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92254         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92255         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92256         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92257         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92258         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92259         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92260         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92261
92262         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92263         string.h any more.
92264
92265         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92266         not the default value.
92267
92268         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92269         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92270         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92271         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92272         Also check for iswcntrl, used for wcwidth fallback.
92273         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92274         to Autoconf 2.13.
92275
92276 2001-08-03  Jim Meyering  <meyering@lucent.com>
92277
92278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92279         as it was in the original.  Reported by Paul Eggert.
92280
92281 2001-07-16  Jim Meyering  <meyering@lucent.com>
92282
92283         * m4/gettimeofday.m4: New file.
92284         Prompted by a report from Bernhard Baehr.
92285
92286 2001-07-15  Jim Meyering  <meyering@lucent.com>
92287
92288         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92289         stuff. Now it's in ../Makefile.cfg.
92290
92291 2001-07-15  Jim Meyering  <meyering@lucent.com>
92292
92293         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92294         (BUILT_SOURCES): Add unlocked-io.h.
92295         (io_functions): Define.
92296         (unlocked-io.h): New rule.
92297         (DISTCLEANFILES): Add unlocked-io.h.
92298         (all-local): Depend on unlocked-io.h, to ensure it is created.
92299
92300         * lib/unlocked-io.hin: New file
92301
92302         * lib/regex.c: Update from glibc.
92303
92304 2001-07-05  Jim Meyering  <meyering@lucent.com>
92305
92306         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92307         recommendation.
92308         (libfetish_a_SOURCES): Put all .h files here instead.
92309         Remove a thus-exposed (better checks in automake) duplicate and
92310         two unnecessary .h files.
92311
92312 2001-07-04  Jim Meyering  <meyering@lucent.com>
92313
92314         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92315         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92316         distcheck failure.
92317
92318 2001-07-02  Jim Meyering  <meyering@lucent.com>
92319
92320         The following changes were prompted by suggestions from Bruno Haible.
92321
92322         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92323         is now generated.
92324         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92325         definition of EXTRA_DIST.
92326         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92327         ensure that the generated file is created/updated whenever the list
92328         of $(unlocked_functions) is changed.
92329         (jm-glibc-io.m4): New rule.
92330         (unlocked-io.h): New rule -- currently unused.
92331
92332 2001-06-24  Jim Meyering  <meyering@lucent.com>
92333
92334         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92335         unmatched right bracket, rather than kludging it with an extra,
92336         falsely-matching quote in a comment.  Patch by Akim Demaille.
92337
92338 2001-06-11  Jim Meyering  <meyering@lucent.com>
92339
92340         * lib/regex.c: Update from GNU libc.
92341
92342 2001-05-27  Jim Meyering  <meyering@lucent.com>
92343
92344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92345         Check for ut_type in struct utmp.
92346
92347 2001-05-27  Jim Meyering  <meyering@lucent.com>
92348
92349         * lib/readutmp.h (UT_TYPE): Define.
92350
92351 2001-05-24  Jim Meyering  <meyering@lucent.com>
92352
92353         * lib/argmatch.c: Include "quote.h".
92354         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92355         quote function.  Reported by Göran Uddeborg.
92356
92357 2001-05-22  Jim Meyering  <meyering@lucent.com>
92358
92359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92360         now that we use the package-supplied version unconditionally.
92361         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92362
92363 2001-05-21  Jim Meyering  <meyering@lucent.com>
92364
92365         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92366         shell syntax errors.
92367
92368 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92369
92370         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92371
92372 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92373
92374         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92375         Don't bother to check library strftime, since
92376         we'll be using our own my_strftime function anyway.
92377         Define my_strftime instead of strftime.
92378
92379 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92380
92381         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92382         which is not yet declared.
92383
92384 2001-05-15  Jim Meyering  <meyering@lucent.com>
92385
92386         * m4/regex.m4: Use proper quoting so brackets appear in the test
92387         program.
92388         Reported by, and with help from, Bruno Haible.
92389
92390 2001-05-13  Jim Meyering  <meyering@lucent.com>
92391
92392         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92393         undefined.
92394
92395 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92396
92397         dirname code cleanup.  base_name now behaves more compatibly
92398         with POSIX basename when given file names that have trailing
92399         slashes, and similarly for dir_name.  Add new primitives
92400         base_len and dir_len.  Put the directory-name-related decls
92401         into dirname.h.
92402
92403         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92404         * lib/backupfile.c (base_name): Likewise.
92405         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92406         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92407         * lib/makepath.c (strip_trailing_slashes): Likewise.
92408         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92409         ISSLASH): Likewise.
92410         * lib/rename.c (strip_trailing_slashes): Likewise.
92411         * lib/same.c (base_name): Likewise.
92412         * lib/stripslash.c (ISSLASH): Likewise.
92413
92414         * lib/addext.c: Include <dirname.h> after size_t is defined.
92415         * lib/backupfile.c: Likewise.
92416
92417         * lib/addext.c (addext): Use base_len to trim redundant
92418         trailing slashes instead of doing it ourselves.
92419         But do not trim the last slash if it is not redundant.
92420
92421         * lib/backupfile.c (find_backup_file_name,
92422         max_backup_version): Use base_len instead of rolling it ourselves.
92423         Handle the case of "" and (on DOS) "C:" correctly.
92424
92425         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92426         needed. Include <string.h>, <dirname.h>.
92427         (base_name): Allow file names ending in slashes, other than names
92428         that are all slashes.  In this case, return the basename followed
92429         by the slashes.  This is more general, and can be used in places
92430         where the original base_name purposely had an assertion failure.
92431         (base_len): New function.
92432
92433         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92434         Do not include <assert.h>; no longer needed.
92435         Include xalloc.h.
92436         (memrchr): Remove decl.
92437         (dir_name_r): Remove.
92438         (dir_len): Renamed from dirlen.  All callers changed.
92439         Rewrite in terms of base_name, for simplicity and consistency.
92440         (dir_name): Never return NULL.  All callers changed.
92441         Do not include <stdlib.h> in test program; no longer needed.
92442         return 0; is fine for test program.
92443
92444         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92445         New macros.
92446         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92447
92448         * lib/path-concat.c (path_concat): Use base_len to compute
92449         base length, not strlen; this means we cannot rely on memcpy
92450         to null-terminate.
92451
92452         * lib/same.c (STREQ): Remove.
92453         (same_name): Handle the case where the basename ends in trailing '/'.
92454
92455         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92456         a slash was stripped.  Do not strip the last slash after a
92457         file system prefix.
92458
92459 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92460
92461         * lib/Makefile.am (libfetish_a_SOURCES):
92462         Add strftime.c, since we now compile it on all hosts.
92463
92464         * lib/strftime.c (my_strftime):
92465         Define to nstrftime if emacs, but only if my_strftime is not defined.
92466         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92467         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92468         Add one more extra argument: a nanoseconds value.
92469         All uses changed.
92470         (ns): New macro.
92471         (my_strftime function): Add %N format.
92472         (emacs_strftimeu): Renamed from emacs_strftime,
92473         with extra ut argument.
92474
92475 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92476
92477         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92478
92479 2001-04-21  Jim Meyering  <meyering@lucent.com>
92480
92481         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92482         doesn't interfere.
92483
92484 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92485
92486         * m4/ftruncate.m4: Check for chsize.
92487         Link with ftruncate.o unconditionally if ftruncate is missing.
92488         This was required when cross-compiling to i586-mingw32msvc.
92489
92490 2001-04-08  Jim Meyering  <meyering@lucent.com>
92491
92492         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92493         recomputed; that's necessary when the offset spans a DST transition.
92494         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92495
92496 2001-04-02  Jim Meyering  <meyering@lucent.com>
92497
92498         * lib/regex.h, regex.c: Update from GNU libc.
92499
92500 2001-03-24  Jim Meyering  <meyering@lucent.com>
92501
92502         * m4/jm-macros.m4: Require autoconf-2.49d.
92503
92504 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92505
92506         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92507
92508 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92509
92510         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92511
92512 2001-03-17  Jim Meyering  <meyering@lucent.com>
92513
92514         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92515         now that the version in autoconf is equivalent.
92516         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92517
92518         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92519         Suggestion from Akim Demaille.
92520
92521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92522         (jm_PREREQ_TEMPNAME): New function.
92523
92524 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92525
92526         * lib/tempname.c (uint64_t): Define to uintmax_t if
92527         not defined, and if UINT64_MAX is not defined.
92528         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92529         Reported by John David Anglin.
92530
92531 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92532
92533         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92534         resolve alias if codeset is empty.
92535         * lib/config.charset (BeOS): Use wildcard syntax.
92536
92537 2001-03-13  Jim Meyering  <meyering@lucent.com>
92538
92539         * lib/path-concat.c (path_concat)
92540         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92541         concatenating e.g., `C:' and `foo'.
92542         From Bruno Haible.
92543
92544 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92545
92546         * lib/localcharset.c (locale_charset): Don't use
92547         setlocale(LC_CTYPE,NULL). Don't return NULL.
92548         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92549
92550 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92551
92552         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92553         support for DOS/DJGPP.
92554
92555 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92556
92557         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92558         lacks mkstemp.  Compile our own tempname.c if we compile our own
92559         mkstemp.c, as mkstemp relies on tempname.
92560
92561 2001-03-01  Jim Meyering  <meyering@lucent.com>
92562
92563         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92564         AH_VERBATIM really does output its argument verbatim.
92565
92566 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92567
92568         * lib/Makefile.am (libfetish_a_SOURCES):
92569         Add dup-safer.c, fopen-safer.c.
92570         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92571
92572         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92573         * lib/unistd-safer.h: New files.
92574
92575 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92576
92577         The mkstemp replacement is taken from glibc 2.2.2, with some
92578         portability fixes for use outside glibc, as follows:
92579
92580         * lib/tempname.c (struct_stat64): New macro.
92581         (direxists, __gen_tempname): Use it.
92582         This avoids a portability problem with Solaris 8.
92583
92584         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92585         (<stddef.h>, <stdint.h>, <string.h>):
92586         Include only if STDC_HEADERS || _LIBC.
92587         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92588         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92589         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92590         (__set_errno): Define this macro if <errno.h> doesn't.
92591         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92592         Define these macros if <stdio.h> doesn't.
92593         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92594         Define these macros if <sys/stat.h>
92595         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92596         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92597         __xstat64): Define if not _LIBC.
92598         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92599         (__gen_tempname): Invoke gettimeofday only if
92600         HAVE_GETTIMEOFDAY || _LIBC;
92601         otherwise, fall back on plain "time".
92602         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92603
92604         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92605
92606         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92607
92608 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92609
92610         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92611
92612 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92613
92614         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92615         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92616         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92617         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92618
92619 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92620
92621         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92622         Remove workaround macros for hosts that have mbrtowc but not
92623         mbstate_t, as we now insist on proper declarations for both
92624         before using mbrtowc.
92625
92626 2001-02-17  Jim Meyering  <meyering@lucent.com>
92627
92628         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92629         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92630         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92631         UnixWare 7.1.1.
92632
92633         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92634         rather than AC_CACHE_VAL.
92635
92636 2001-02-17  Jim Meyering  <meyering@lucent.com>
92637
92638         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92639         around included file name.
92640
92641         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92642
92643         * lib/strftime.c: Update from GNU libc (the only changes were to
92644         comments).
92645
92646 2001-02-17  Jim Meyering  <meyering@lucent.com>
92647
92648         * lib/regex.c: Update from libc.
92649
92650 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92651
92652         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92653         clash.
92654
92655 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92656
92657         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92658         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92659         Reported by Mark Hounschell via Paul Eggert.
92660
92661 2001-02-07  Jim Meyering  <meyering@lucent.com>
92662
92663         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92664
92665 2001-02-05  Jim Meyering  <meyering@lucent.com>
92666
92667         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92668         it includes the patch required for `large file' support with at least
92669         HP-UX's 10.20 /bin/cc.
92670
92671 2001-02-03  Jim Meyering  <meyering@lucent.com>
92672
92673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92674         AS_IF, now that it works once again (mysteriously).
92675         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92676
92677 2001-01-30  Jim Meyering  <meyering@lucent.com>
92678
92679         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92680         * m4/chown.m4: Rename conftestchown to conftest.chown.
92681         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92682         s/conftestdir2/conftest.d2/.
92683         * m4/utimes.m4: s/conftestdata/conftest.data/
92684         Inspired by Pavel Roskin's change in autoconf.
92685
92686 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92687
92688         * lib/config.charset: Update for FreeBSD 4.2.
92689
92690 2001-01-27  Jim Meyering  <meyering@lucent.com>
92691
92692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92693         a use of AS_IF.
92694         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92695
92696 2001-01-26  Jim Meyering  <meyering@lucent.com>
92697
92698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92699         quotearg.c includes it.
92700
92701 2001-01-26  Jim Meyering  <meyering@lucent.com>
92702
92703         * lib/quotearg.c: Include stddef.h.
92704         * lib/quote.c: Include stddef.h.
92705         Reported by Axel Kittenberger.
92706
92707         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92708         line in double quotes so that it evokes a better diagnostic.
92709         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92710         Reported by Axel Kittenberger.
92711
92712 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92713
92714         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92715         as if it was a `charset'.
92716
92717 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92718
92719         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92720         has const.
92721
92722 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92723
92724         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92725         to avoid a warning.  Add back 'const' to inptr.
92726
92727 2001-01-20  Jim Meyering  <meyering@lucent.com>
92728
92729         Be sure that headers are checked before used in code compiled
92730         for the type checks.
92731         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92732         In place of that, invoke jm_CHECK_ALL_TYPES.
92733         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92734         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92735         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92736         The check for ssize_t was mistakenly run before the test for unistd.h.
92737
92738         The configure-time check for stdbool.h was missing.
92739         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92740         (jm_PREREQ_HASH): New function.
92741
92742 2001-01-17  Jim Meyering  <meyering@lucent.com>
92743
92744         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92745         for autoconf-2.49c.
92746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92747
92748 2001-01-16  Jim Meyering  <meyering@lucent.com>
92749
92750         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92751         From Bruno Haible.
92752
92753 2001-01-14  Jim Meyering  <meyering@lucent.com>
92754
92755         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92756         foo and bar.  Create conftestdir/ in the script, not in the C code.
92757         Remove directories in the script, not in the C code.
92758         Remove conftestdir{,2} before trying to create the directory.
92759         Make the entire configure script fail if the mkdir fails.
92760
92761 2001-01-14  Jim Meyering  <meyering@lucent.com>
92762
92763         * lib/rename.c: New file.  From Volker Borchert.
92764         Include stdlib.h, string.h or strings.h, and xalloc.h.
92765         Use strip_trailing_slashes rather than open-coding it.
92766
92767 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92768
92769         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92770
92771 2001-01-03  Jim Meyering  <meyering@lucent.com>
92772
92773         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92774         of local `inptr' to avoid warning with some system declarations of
92775         iconv.
92776
92777 2001-01-02  Volker Borchert  <bt@teknon.de>
92778
92779         * m4/rename.m4: New file.
92780         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92781
92782 2001-01-01  Jim Meyering  <meyering@lucent.com>
92783
92784         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92785         even on systems with utmpx.h.  It's necessary for the declaration of
92786         utmp's ut_user member.  Reported by Andreas Jaeger.
92787
92788         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92789         available. They are required for the declarations of getgrgid and
92790         getpwuid resp.
92791         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92792         Reported by Andreas Jaeger.
92793
92794 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92795
92796         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92797         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92798         so `make install' also works in VPATH builds.
92799
92800 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92801
92802         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92803         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92804         can be used in subdirectories.
92805
92806 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92807
92808         * lib/modechange.c: Do not assume that mode_t uses the
92809         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92810         the other-execute bit of FOO even if S_IXOTH != 1.
92811
92812         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92813         WOTH, XOTH, ALLM): New macros.
92814         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92815          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92816         Use them.
92817         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92818         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92819         (mode_compile):
92820         No need to use uintmax_t; unsigned long is long enough.
92821         Don't bother to get suffix since we don't use it.
92822
92823 2000-12-26  Jim Meyering  <meyering@lucent.com>
92824
92825         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92826         better with autoheader.
92827
92828 2000-12-24  Jim Meyering  <meyering@lucent.com>
92829
92830         * lib/hash.c (is_prime): Return explicit boolean values.
92831         (hash_get_first): Return NULL to appease Irix5.6's 89.
92832         Reported by Nelson Beebe.
92833
92834 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92835
92836         * lib/localcharset.c (locale_charset): Add support for Win32.
92837
92838 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92839
92840         * lib/physmem.h, lib/physmem.c: New files.
92841
92842         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92843         (noinst_HEADERS): Add physmem.h.
92844
92845         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92846         't' for compatibility with Solaris 8 sort.
92847
92848 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92849
92850         * lib/config.charset: Add support for BeOS.
92851
92852 2000-12-17  Jim Meyering  <meyering@lucent.com>
92853
92854         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92855         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92856
92857 2000-12-16  Jim Meyering  <meyering@lucent.com>
92858
92859         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92860         N and M) would have treated it like `chown N:N FILE'.
92861
92862         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92863
92864 2000-12-16  Jim Meyering  <meyering@lucent.com>
92865
92866         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92867         SHELLS_FILE to a file name that's useful on djgpp systems.
92868         Include stdlib.h.
92869         (ADDITIONAL_DEFAULT_SHELLS): Define.
92870         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92871         Based mostly on a patch from Prashant TR.
92872
92873 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92874
92875         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92876         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92877         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92878
92879 2000-12-08  Andreas Schwab  <schwab@suse.de>
92880
92881         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92882         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92883
92884 2000-12-07  Jim Meyering  <meyering@lucent.com>
92885
92886         * lib/stripslash.c (ISSLASH): Define.
92887         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92888         `/'.
92889         From Prashant TR.
92890
92891         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92892         (dir_name_r): Declare this function as static.
92893         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92894         manifest itself on a name containing a mix of slashes and
92895         backslashes.
92896         Make this function work with names starting with a DOS-style
92897         drive letter and colon prefix.
92898         (dir_name): Append `.' if necessary.
92899         Based mostly on patches from Prashant TR and Eli Zaretskii.
92900
92901         * lib/dirname.h (dir_name_r): Remove prototype.
92902
92903 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92904
92905         * m4/off_t-format.m4: Remove this file.
92906         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92907
92908 2000-12-06  Jim Meyering  <meyering@lucent.com>
92909
92910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92911         replacement strtoull, we may well need the replacement strtoul, too.
92912         Check for declarations of strtoul and strtoull.
92913         Check for strtol.  Mainly as a cue to cause automake to include
92914         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92915         Check for limits.h -- strtol.c needs it.
92916
92917 2000-12-05  Jim Meyering  <meyering@lucent.com>
92918
92919         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92920
92921 2000-12-04  Jim Meyering  <meyering@lucent.com>
92922
92923         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92924         Also include memory.h, stdlib.h, unistd.h if appropriate.
92925         Reported by Andreas Jaeger (conflicting declaration of malloc).
92926
92927 2000-12-02  Jim Meyering  <meyering@lucent.com>
92928
92929         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92930         * m4/jm-macros.m4 (jm_MACROS): require it.
92931
92932 2000-12-02  Jim Meyering  <meyering@lucent.com>
92933
92934         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92935
92936 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92937
92938         * lib/memrchr.c: Include <config.h> before any system include file.
92939
92940 2000-11-30  Jim Meyering  <meyering@lucent.com>
92941
92942         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92943
92944 2000-11-30  Jim Meyering  <meyering@lucent.com>
92945
92946         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92947
92948 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92949
92950         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92951
92952 2000-11-26  Jim Meyering  <meyering@lucent.com>
92953
92954         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92955
92956 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92957
92958         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92959         size of (size_t) -1; it's not portable.
92960
92961 2000-11-17  Jim Meyering  <meyering@lucent.com>
92962
92963         * lib/strstr.c: Update from GNU libc.
92964
92965 2000-11-17  Akim Demaille  <akim@epita.fr>
92966
92967         * lib/obstack.h: Formatting changes.
92968         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92969         prevent type checking.
92970         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92971         cast the value to (void *): assigning a `foo *' to a `void *'
92972         variable is valid.
92973         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92974
92975 2000-11-16  Jim Meyering  <meyering@lucent.com>
92976
92977         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92978
92979 2000-11-11  Jim Meyering  <meyering@lucent.com>
92980
92981         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92982
92983 2000-11-10  Jim Meyering  <meyering@lucent.com>
92984
92985         * lib/obstack.h: Update from GNU libc.
92986         * lib/obstack.c: Likewise.
92987
92988 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92989
92990         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92991
92992 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92993
92994         * lib/getusershell.c (setusershell): Use rewind rather than
92995         fseek/fseeko, to avoid configuration hassles with fseeko.
92996         Don't bother opening SHELLS_FILE if shellstream is NULL;
92997         it's not necessary.
92998
92999 2000-11-05  Jim Meyering  <meyering@lucent.com>
93000
93001         * lib/makepath.h (make_dir): Declare.
93002         * lib/makepath.c (make_dir): Remove `static' attribute.
93003         Tweak a comment.
93004
93005 2000-11-04  Jim Meyering  <meyering@lucent.com>
93006
93007         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93008
93009 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93010
93011         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93012         last one in a bucket, advance to the next bucket.
93013
93014 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93015
93016         * lib/fnmatch.c: Do not comment out all the code if we are using
93017         the GNU C library, because in some cases we are replacing buggy
93018         code in the GNU C library itself.
93019
93020 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93021
93022         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93023         (regex_compile): Catch bogus \(\1\).
93024
93025 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93026
93027         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93028         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93029         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93030
93031 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/error.h, getline.h, modechange.h:
93034         Remove "2000" from Copyright line, as the file hasn't been
93035         changed this year other than in the copyright notice.
93036
93037         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93038         was changed this year.
93039
93040 2000-10-29  Jim Meyering  <meyering@lucent.com>
93041
93042         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93043         renaming.
93044         * m4/ls-mntd-fs.m4: Likewise
93045
93046 2000-10-29  Jim Meyering  <meyering@lucent.com>
93047
93048         * lib/xstat.in: Fix grammar in comment.
93049
93050 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93051
93052         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93053         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93054         doesn't define __restrict_arr.
93055
93056 2000-10-28  Jim Meyering  <meyering@lucent.com>
93057
93058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93059         (jm_PREREQ_MEMCHR): New function.
93060
93061 2000-10-28  Jim Meyering  <meyering@lucent.com>
93062
93063         * lib/memchr.c: Update from libc.
93064         Adjust for portability:
93065         [HAVE_STDLIB_H]: Include stdlib.h.
93066         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93067         Undef __memchr, too.
93068         [!weak_alias]: Define __memchr to memchr.
93069
93070         * lib/regex.c: Update from libc.
93071         * lib/regex.h: Likewise.
93072         * lib/getopt1.c: Likewise.
93073         * lib/memcmp.c: Likewise.
93074
93075         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93076         Avoid using fseek, when possible -- it's broken by design.
93077         Patch by Ulrich Drepper.
93078
93079 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93080
93081         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93082         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93083         Giving in to popular pressure to shut up the compiler with casts.
93084
93085 2000-10-26  Jim Meyering  <meyering@lucent.com>
93086
93087         * lib/strftime.c: Update from libc.
93088
93089 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93090
93091         * regex.c: More `unsigned char' -> `re_char' changes.
93092         Also change several `int' into `re_wchar_t'.
93093         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93094         (PUSH_FAILURE_POINTER): Don't cast any more.
93095         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93096         We want GCC to complain, since this piece of code makes
93097         re_match non-reentrant, which *should* be fixed.
93098         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93099         (EXTEND_BUFFER): Use RETALLOC.
93100         (SET_LIST_BIT): Don't cast.
93101         (re_wchar_t): New type.
93102         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93103         that those two functions will always properly return.
93104         (IMMEDIATE_QUIT_CHECK): Cast to void.
93105         (analyse_first): Use recursion rather than an explicit stack.
93106         (re_compile_fastmap): Can't fail anymore.
93107         (re_search_2): Don't check re_compile_fastmap for failure.
93108         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93109         Now also sets the new value (passed in a new argument).
93110         (re_match_2_internal): Use it.
93111         Also, use a new var `reg' of type size_t when looping through regs
93112         rather than reuse the inappropriate `mcnt'.
93113
93114 2000-10-25  Jim Meyering  <meyering@lucent.com>
93115
93116         * lib/obstack.c: Update from libc.
93117
93118 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93119
93120         * regex.c (regex_compile): Change the way of handling a range from
93121         a char less than 256 to a char not less than 256.
93122
93123 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93124
93125         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93126         NT-Emacs only.
93127         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93128         so that re_search functions only quit when callers expect them to.
93129
93130 2000-10-23  Jim Meyering  <meyering@lucent.com>
93131
93132         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93133         wrong.  That set_locale call must not have any side effects.
93134         From Paul Eggert.
93135
93136 2000-10-22  Jim Meyering  <meyering@lucent.com>
93137
93138         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93139         [CYCLIC]: Remove now-unused definition.
93140
93141         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93142         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93143         Suggestion from Ulrich Drepper.
93144
93145 2000-10-21  Jim Meyering  <meyering@lucent.com>
93146
93147         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93148         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93149         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93150
93151 2000-10-21  Jim Meyering  <meyering@lucent.com>
93152
93153         * lib/dirname.c (memrchr): Declare if necessary.
93154         (dir_name): Remove the restriction that there be no
93155         trailing slashes.  Now, this code skips past them, effectively
93156         ignoring them.
93157         [TEST_DIRNAME] (main): New unit tests.
93158
93159         * lib/memrchr.c: New file from GNU libc.
93160         Undef __memrchr, too.
93161         [!weak_alias]: Define __memrchr to memrchr.
93162         Guard weak_alias use with `#ifdef weak_alias'.
93163
93164 2000-10-21  Jim Meyering  <meyering@lucent.com>
93165
93166         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93167         (dir_name): Use dir_name_r.
93168         * lib/dirname.h (dir_name_r): Declare it.
93169
93170 2000-10-17  Jim Meyering  <meyering@lucent.com>
93171
93172         * lib/quote.h (PARAMS): Define and use.
93173         Reported by Akim Demaille.
93174
93175         * lib/getopt.c: Update from libc.
93176
93177 2000-10-16  Jim Meyering  <meyering@lucent.com>
93178
93179         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93180         setlocale.
93181         From Jan Fedak.
93182
93183 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93184
93185         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93186
93187 2000-09-25  Jim Meyering  <meyering@lucent.com>
93188
93189         * lib/md5.h (rol): Define (from GnuPG).
93190
93191         * lib/sha.c: Give credit (GnuPG) where due.
93192         (M): Use rol rather than open-coding it.
93193         Add a FIXME comment.
93194
93195 2000-09-21  Jim Meyering  <meyering@lucent.com>
93196
93197         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93198         Reported by Michael Stone.
93199
93200 2000-09-20  Jim Meyering  <meyering@lucent.com>
93201
93202         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93203         (noinst_HEADERS): Add sha.h.
93204         Based on code from Scott G. Miller and from GnuPG.
93205
93206 2000-09-18  Jim Meyering  <meyering@lucent.com>
93207
93208         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93209         LIBS. Otherwise, everyone ends up linking with -lelf for some
93210         configurations.
93211         Reported by Mike Stone.
93212
93213 2000-09-15  Jim Meyering  <meyering@lucent.com>
93214
93215         * lib/regex.c: Update from libc.
93216
93217 2000-09-10  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/getopt.c (_getopt_internal): Update from glibc.
93220
93221 2000-09-09  Jim Meyering  <meyering@lucent.com>
93222
93223         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93224         think it should be used as a general replacement for isascii.
93225         * lib/fnmatch.c: Likewise.
93226         * lib/mbswidth.c: Likewise
93227         * lib/regex.c: Likewise.
93228
93229         Don't use atoi.
93230         * lib/userspec.c: Include sys/param.h and limits.h.
93231         Include xstrtol.h.
93232         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93233         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93234         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93235         UID, GID.  Check range.
93236
93237 2000-09-06  Jim Meyering  <meyering@lucent.com>
93238
93239         * lib/getopt.c (_getopt_internal): Update from glibc.
93240
93241 2000-08-30  Jim Meyering  <meyering@lucent.com>
93242
93243         * lib/strftime.c: Merge in changes from GNU libc.
93244
93245 2000-08-26  Jim Meyering  <meyering@lucent.com>
93246
93247         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93248         * m4/fpending.m4: New file.
93249
93250 2000-08-26  Jim Meyering  <meyering@lucent.com>
93251
93252         * lib/closeout.c: Include "__fpending.h".
93253         (close_stdout_status): Return right away if there's nothing to flush.
93254
93255         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93256         * lib/__fpending.c: New file.
93257         * lib/__fpending.h: New file.
93258
93259 2000-08-20  Jim Meyering  <meyering@lucent.com>
93260
93261         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93262         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93263         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93264
93265 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93266
93267         Improve fileutils installation on systems where running
93268         programs (like install) can't be unlinked.
93269         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93270         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93271
93272 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93273
93274         Standardize on "memory exhausted" instead of "Memory exhausted"
93275         or "virtual memory exhausted".
93276         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93277         "virtual memory exhausted".
93278         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93279         our own message.
93280         * lib/userspec.c (parse_user_spec): Likewise.
93281         * lib/bumpalloc.h: comment fix
93282         * lib/same.c, userspec.c: Include xalloc.h.
93283
93284         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93285         not char *const and pointing to a constant array.
93286         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93287         (xrealloc): Comment fix.
93288
93289         * lib/userspec.c (parse_user_spec):
93290         Don't translate a message until just before returning,
93291         to avoid unnecessary translation.
93292
93293 2000-08-07  Jim Meyering  <meyering@lucent.com>
93294
93295         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93296         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93297         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93298         getgroups.c, gethostname.c, getopt.h, group-member.c,
93299         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93300         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93301         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93302         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93303         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93304         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93305         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93306         yesno.c: Back out Copyright date changes for each file with no change
93307         this year.  This eases coordination with other programs using the same
93308         source code modules.  From Paul Eggert.
93309
93310 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93311
93312         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93313         not char, for compatibility with glibc 2.1.3 strftime.c.
93314
93315 2000-08-03  Greg McGary  <greg@mcgary.org>
93316
93317         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93318         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93319         (EXTEND_BUFFER): Use them.
93320
93321 2000-08-01  Jim Meyering  <meyering@lucent.com>
93322
93323         * lib/dirname.c (ISSLASH): Define.
93324         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93325         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93326         both `\' and `/' may be use as path separators.
93327         Based on a patch from Prashant TR.
93328
93329 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93330
93331         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93332         slot vector a constant, since it might get modified.
93333
93334 2000-07-31  Jim Meyering  <meyering@lucent.com>
93335
93336         * lib/xmalloc.c: Use `virtual memory exhausted', not
93337         `Memory exhausted'.
93338         * lib/obstack.c (print_and_abort): Likewise.
93339
93340 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93341
93342         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93343         buffer, so that the caller can always quote one small
93344         component of a "memory exhausted" message in slot 0.
93345         From a suggestion by Jim Meyering.
93346
93347 2000-07-30  Jim Meyering  <meyering@lucent.com>
93348
93349         * lib/makepath.c (make_path): Quote the other instance, too.
93350
93351         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93352         (STATIC_BUF_SIZE): Define.
93353         (quotearg_n_options): Use only statically allocated storage when
93354         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93355         than STATIC_BUF_SIZE.
93356
93357 2000-07-29  Jim Meyering  <meyering@lucent.com>
93358
93359         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93360         * lib/dirname.c (dir_name): Likewise.
93361
93362         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93363         `/'.
93364
93365         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93366         (dir_name): Assert that there are no trailing slashes.
93367
93368 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93369
93370         * lib/mbswidth.h (mbswidth): Add a flags argument.
93371         (mbswidth): New declaration.
93372         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93373         * lib/mbswidth.c (mbswidth): Add a flags argument.
93374         (mbsnwidth): New function.
93375
93376 2000-07-24  Jim Meyering  <meyering@lucent.com>
93377
93378         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93379
93380 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93381
93382         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93383
93384 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93385
93386         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93387         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93388         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93389         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93390         invoke multibyte primitives.
93391
93392 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93393
93394         * lib/quotearg.c:
93395         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93396         so that mbstate_t is always defined.
93397
93398         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93399         be 1 in at least one GCC installation, and this configuration
93400         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93401         performance on hosts that have mbrtowc but have only unibyte
93402         locales, but I assume these hosts are rare.
93403
93404 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93405
93406         * lib/mbswidth.c (_XOPEN_SOURCE):
93407         Don't define; this causes problems on Solaris 7.
93408         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93409
93410 2000-07-23  Jim Meyering  <meyering@lucent.com>
93411
93412         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93413         too: getgrgid, getpwuid, getuid.
93414
93415 2000-07-23  Jim Meyering  <meyering@lucent.com>
93416
93417         * lib/basename.c (base_name): Add an assertion.
93418
93419 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93420
93421         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93422         shadow its mbsinit function.
93423
93424 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93425
93426         * lib/mbswidth.h: New file.
93427         * lib/mbswidth.c: New file.
93428         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93429         (noinst_HEADERS): Add mbswidth.h.
93430
93431 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93432
93433         * lib/config.charset: Add support for FreeBSD. Improve support for
93434         HP-UX and IRIX 6.
93435
93436 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93437
93438         * m4/mbswidth.m4: New file.
93439         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93440
93441 2000-07-15  Jim Meyering  <meyering@lucent.com>
93442
93443         * lib/makepath.c: Include quote.h.
93444         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93445         corresponding argument in a `quote (...)' call.
93446         Give better diagnostics.
93447
93448         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93449         (noinst_HEADERS): Add quote.h.
93450
93451         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93452         from tar's src/misc.c.
93453         * lib/quote.h: New file.  Prototypes for same.
93454
93455 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93456
93457         From a suggestion by Bruno Haible.
93458         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93459         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93460         to decide whether to define the BeOS workaround macro;
93461         this adjusts to the change to AC_MBSTATE_T.
93462
93463 2000-07-14  Jim Meyering  <meyering@lucent.com>
93464
93465         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93466         jm_AC_TYPE_UINTMAX_T.
93467
93468 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93469
93470         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93471
93472         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93473         quotearg_buffer_restyled): Add support for
93474         clocale_quoting_style.  Undo previous change to
93475         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93476         and "{RIGHT QUOTATION MARK}" msgids.
93477
93478 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93479
93480         From a suggestion by Bruno Haible.
93481         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93482         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93483         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93484         and mbstate_t, to a single-part test that simply defines mbstate_t.
93485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93486         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93487
93488 2000-07-10  Jim Meyering  <meyering@lucent.com>
93489
93490         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93491
93492         * m4/gnu-source.m4: Output to confdefs.h directly.
93493         Suggestion from Akim Demaille.
93494
93495 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93496
93497         The old behavior of quoting `like this' doesn't look good with
93498         newer, ISO-style fonts.  See:
93499         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93500
93501         Instead, quote "like this" by default.  Let the translator
93502         tailor the locale-specific quoting behavior by providing
93503         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93504
93505         * lib/quotearg.c (N_): New macro.
93506         (gettext_default): New function.
93507         (quotearg_buffer_restyled): Use
93508         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93509         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93510
93511 2000-07-09  Jim Meyering  <meyering@lucent.com>
93512
93513         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93514         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93515
93516         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93518
93519 2000-07-09  Jim Meyering  <meyering@lucent.com>
93520
93521         * lib/Most files: Update copyright dates to include 2000.
93522
93523 2000-07-08  Jim Meyering  <meyering@lucent.com>
93524
93525         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93526         if not defined.
93527         (xgethostname): Remove now-unnecessary #ifdef.
93528         Move declaration of `err' into loop where it's used.
93529
93530 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93531         and Bruno Haible  <haible@clisp.cons.org>
93532
93533         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93534         only if the test for an object-type mbstate_t fails.  This
93535         prevents us from mistakenly reporting that mbstate_t is a
93536         system object type after we "#define mbstate_t int" to work
93537         around its lack.
93538
93539 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93540         and Bruno Haible  <haible@clisp.cons.org>
93541
93542         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93543
93544 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93545
93546         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93547         to strerror_r.
93548         Include <ctype.h> for use of isalpha.
93549
93550 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93551
93552         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93553         by allocating a larger buffer. Test the gethostname return value for
93554         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93555         returns an error and ENAMETOOLONG isn't defined.
93556
93557 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93558
93559         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93560         dimension.
93561
93562 2000-07-04  Jim Meyering  <meyering@lucent.com>
93563
93564         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93565         of the deprecated AC_CHECKING.
93566
93567 2000-07-04  Jim Meyering  <meyering@lucent.com>
93568
93569         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93570         Reported by Bruno Haible.
93571
93572 2000-07-04  Jim Meyering  <meyering@lucent.com>
93573
93574         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93575         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93576         lacks mbrtowc.
93577
93578 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93579
93580         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93581         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93582
93583 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93584         and Bruno Haible  <haible@clisp.cons.org>
93585
93586         * lib/quotearg.c (mbrtowc):
93587         Assign to *pwc, and return 1 only if result is nonzero.
93588         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93589
93590 2000-07-03  Jim Meyering  <meyering@lucent.com>
93591
93592         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93593
93594 2000-07-03  Jim Meyering  <meyering@lucent.com>
93595
93596         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93597         This is necessary to get a definition of e.g., UTMP_FILE on
93598         HP-UX 10.20.
93599         From Bob Proulx.
93600
93601 2000-07-02  Jim Meyering  <meyering@lucent.com>
93602
93603         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93604
93605         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93606         AC_LIBOBJ(function_name).
93607         * m4/chown.m4: Likewise.
93608         * m4/fnmatch.m4: Likewise.
93609         * m4/ftruncate.m4: Likewise.
93610         * m4/getgroups.m4: Likewise.
93611         * m4/getline.m4: Likewise.
93612         * m4/group-member.m4: Likewise.
93613         * m4/jm-macros.m4: Likewise.
93614         * m4/lstat.m4: Likewise.
93615         * m4/malloc.m4: Likewise.
93616         * m4/memcmp.m4: Likewise.
93617         * m4/nanosleep.m4: Likewise.
93618         * m4/putenv.m4: Likewise.
93619         * m4/realloc.m4: Likewise.
93620         * m4/regex.m4: Likewise.
93621         * m4/stat.m4: Likewise.
93622         * m4/strftime.m4: Likewise.
93623
93624 2000-07-02  Jim Meyering  <meyering@lucent.com>
93625
93626         * lib/quotearg.c (mbstate_t): Don't define here.
93627
93628 2000-07-02  Jim Meyering  <meyering@lucent.com>
93629
93630         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93631
93632 2000-07-01  Jim Meyering  <meyering@lucent.com>
93633
93634         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93635
93636 2000-07-01  Jim Meyering  <meyering@lucent.com>
93637
93638         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93639         problem.
93640
93641 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93642
93643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93644         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93645
93646 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93647
93648         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93649         per change in ../m4/ls-mntd-fs.m4.
93650         (read_filesystem_list): Ignore symbolic links.
93651
93652 2000-06-29  Jim Meyering  <meyering@lucent.com>
93653
93654         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93655         for declaration of strcmp.
93656
93657         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93658
93659         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93660         Avoid warning by casting result to `char *' to remove `const'.
93661
93662 2000-06-28  Jim Meyering  <meyering@lucent.com>
93663
93664         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93665         included by quotearg.c, for which we perform this test.  From
93666         Bruno Haible.
93667
93668 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93669
93670         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93671         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93672         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93673
93674 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93675
93676         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93677
93678 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93679
93680         savedir now sets errno on failure and invokes xmalloc to get memory.
93681         Fix a couple of other minor bugs while we're at it.
93682
93683         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93684         (NAMLEN): Remove macro.
93685         (malloc, realloc): Remove decls.
93686         (stpcpy): Likewise.
93687         ("xalloc.h"): Include.
93688         (NAME_SIZE_DEFAULT): New macro.
93689         (savedir): Use xmalloc / xrealloc to allocate memory.
93690         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93691         Skip "" directory entries.
93692         Use strlen to calculate directory entry length, since the old method
93693         is rarely used these days and isn't worth supporting.
93694         Don't use a pointer after freeing it.
93695         Check for integer overflow when calculating allocation size.
93696         Use memcpy to copy entries, instead of stpcpy.
93697         Set errno properly when returning NULL.
93698         Check for readdir error.
93699
93700 2000-06-26  Jim Meyering  <meyering@lucent.com>
93701
93702         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93703
93704 2000-06-25  Jim Meyering  <meyering@lucent.com>
93705
93706         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93707         Linux header bug when _XOPEN_SOURCE is defined to 500.
93708
93709 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93710
93711         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93712         deficiency.
93713
93714 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93715
93716         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93717         Include xalloc.h.
93718         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93719
93720 2000-06-24  Jim Meyering  <meyering@lucent.com>
93721
93722         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93723         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93724         for which strerror does return char*, but which lacks a conveniently
93725         accessible declaration of the function.  If the compile-test says
93726         strerror_r doesn't work, then resort to a `run'-test that works on
93727         BeOS and segfaults on DEC Unix.
93728
93729 2000-06-24  Jim Meyering  <meyering@lucent.com>
93730
93731         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93732
93733 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93734
93735         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93736         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93737
93738 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93739
93740         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93741         (mbrtowc, mbstate_t): Define substitutes if
93742         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93743         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93744         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93745
93746 2000-06-23  Jim Meyering  <meyering@lucent.com>
93747
93748         * m4/afs.m4: Add missing AC_MSG_RESULT.
93749         Reported by Bruno Haible.
93750
93751         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93752         Suggestion from Bruno Haible.
93753
93754 2000-06-23  Jim Meyering  <meyering@lucent.com>
93755
93756         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93757
93758 2000-06-21  Jim Meyering  <meyering@lucent.com>
93759
93760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93761
93762 2000-06-21  Jim Meyering  <meyering@lucent.com>
93763
93764         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93765         (noinst_HEADERS): Add getstr.h.
93766
93767         * lib/getline.c (getstr): Move into a separate file.
93768         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93769         the following changes: new parameter, delim2; both delim[12]
93770         parameters have type `int', not `char'.  The latter would lose
93771         with 8-bit delimiters.
93772         * lib/getstr.h: New file.
93773
93774 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93775
93776         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93777         than 1024, return a memory chunk of least possible size, instead
93778         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93779         Use free/xmalloc instead of xrealloc to avoid copying for very long
93780         paths.
93781
93782 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93783
93784         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93785         the empty string.
93786
93787 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93788
93789         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93790         address, not strdup.  Include <stdlib.h> and don't declare free().
93791
93792 2000-06-19  Jim Meyering  <meyering@lucent.com>
93793
93794         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93795
93796 2000-06-18  Jim Meyering  <meyering@lucent.com>
93797
93798         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93799
93800         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93801         `checking whether...' message to be consistent with that of the
93802         lstat test.
93803
93804 2000-06-18  Jim Meyering  <meyering@lucent.com>
93805
93806         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93807         Besides, these days every porting target provides a mkdir function.
93808
93809         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93810         needed. (this snippet comes from src/system.h).
93811
93812 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93813
93814         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93815
93816 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93817
93818         * lib/human.c (adjust_value): New function.
93819         (human_readable_inexact): Apply rounding style even when
93820         printing approximate values.
93821
93822 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93823
93824         * lib/human.c (human_readable_inexact): Allow an input block
93825         size that is not a multiple of the output block size, and vice versa.
93826         Reported by Piergiorgio Sartor.
93827
93828 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93829
93830         * lib/getdate.y (get_date): Apply relative times after time
93831         zone indicator, not before.  Reported by Todd A. Jacobs.
93832
93833 2000-06-13  Jim Meyering  <meyering@lucent.com>
93834
93835         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93836
93837         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93838
93839 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93840
93841         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93842
93843 2000-06-12  Jim Meyering  <meyering@lucent.com>
93844
93845         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93846         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93847         optional argument.
93848         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93849         the optional argument, `lib'.
93850
93851 2000-06-08  Jim Meyering  <meyering@lucent.com>
93852
93853         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93854
93855 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93856
93857         Rewrite largefile configuration so that we don't need to run
93858         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93859         AC_CANONICAL_HOST in configure.in -- jmm]
93860
93861         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93862         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93863         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93864         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93865         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93866         All uses changed.
93867         Instead of inspecting the output of getconf, try to compile the
93868         test program without and with the macro definition.
93869         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93870         for getconf.  Instead, check for the needed flags by compiling
93871         test programs.
93872
93873 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93874
93875         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93876
93877 2000-06-04  Jim Meyering  <meyering@lucent.com>
93878
93879         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93880         SunOS 4.1.4 for which gid_t is an unsigned type.
93881
93882 2000-06-03  Jim Meyering  <meyering@lucent.com>
93883
93884         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93885         now that autoconf requires that.
93886
93887         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93888         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93889         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93890
93891 2000-06-03  Jim Meyering  <meyering@lucent.com>
93892
93893         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93894
93895 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93896
93897         * m4/glibc21.m4: New file.
93898         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93899
93900 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93901
93902         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93903         newer, don't install charset.alias.
93904         * lib/config.charset: Change the Linux/glibc rules so they become empty
93905         on glibc-2.1 or newer.
93906
93907 2000-06-02  Jim Meyering  <meyering@lucent.com>
93908
93909         * lib/mountlist.c: Back out last change.  Instead, do this...
93910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93911         me_dummy member using the same `ignore'-testing code.
93912         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93913         fs_type strings.
93914         From Mark D. Roth.
93915
93916 2000-05-29  Jim Meyering  <meyering@lucent.com>
93917
93918         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93919         mounts with the `ignore' attribute.  Based on a patch from
93920         Mark D. Roth.
93921
93922 2000-05-28  Jim Meyering  <meyering@lucent.com>
93923
93924         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93925         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93926         * m4/stat.m4: Likewise.
93927         * m4/lstat.m4: Likewise.
93928         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93929
93930         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93931         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93932
93933 2000-05-26  Jim Meyering  <meyering@lucent.com>
93934
93935         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93936
93937 2000-05-24  Jim Meyering  <meyering@lucent.com>
93938
93939         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93940         autoconf requires that.
93941         * m4/lib-check.m4: Likewise.
93942         * m4/jm-macros.m4: Likewise.
93943         * m4/strftime.m4: Likewise.
93944
93945         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93946         AC_CHECK_DECLS, now that autoconf requires that.
93947
93948 2000-05-22  Jim Meyering  <meyering@lucent.com>
93949
93950         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93951         * m4/lstat.m4: Likewise.
93952
93953 2000-05-22  Jim Meyering  <meyering@lucent.com>
93954
93955         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93956
93957 2000-05-20  Jim Meyering  <meyering@lucent.com>
93958
93959         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93960         (jm_PREREQ): Use it.
93961
93962 2000-05-18  Jim Meyering  <meyering@lucent.com>
93963
93964         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93965         back, too, since it may have been modified by allocate_entry.
93966         (hash_delete): Rewrite to use neither the assignment operator
93967         nor the comma operator in an if-expression.
93968
93969 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93970
93971         * lib/closeout.c:
93972         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93973         Remove; no longer needed.
93974         "quotearg.h": Add include.
93975         (file_name): Do not bother to explicitly initialize to NULL; it's less
93976         efficient on some hosts.
93977         (close_stdout_status): Remove test as to whether stdout was already
93978         closed; it breaks for the case "echo x | sort >&-".
93979         Quote file name colons.
93980         Do not assume that _("write error") lacks format strings.
93981
93982 2000-05-15  Jim Meyering  <meyering@lucent.com>
93983
93984         * lib/version-etc.c (version_etc_copyright): Update the copyright
93985         string used in all --version output.
93986
93987 2000-05-14  Jim Meyering  <meyering@lucent.com>
93988
93989         * lib/closeout.c (close_stdout_set_file_name): New function.
93990         (close_stdout_status): Use new file-scoped global.
93991         Return right away if fstat says the stdout file descriptor is invalid.
93992         * lib/closeout.h (close_stdout_set_file_name): Declare.
93993
93994 2000-05-10  Jim Meyering  <meyering@lucent.com>
93995
93996         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93997         (close_stdout_set_status): New function.
93998         * lib/closeout.h (close_stdout_set_status): Declare.
93999
94000 2000-05-09  Jim Meyering  <meyering@lucent.com>
94001
94002         * m4/gettext.m4: Rename this...
94003         * m4/libintl.m4: ...to this.
94004
94005 2000-05-08  Jim Meyering  <meyering@lucent.com>
94006
94007         * lib/long-options.c: Don't include closeout.h.
94008         (parse_long_options): Don't call close_stdout for --version.
94009
94010 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94011
94012         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94013         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94014         2.1.3 bug.  This avoids a clash when files like regex.c define
94015         _GNU_SOURCE.
94016
94017 2000-05-06  Jim Meyering  <meyering@lucent.com>
94018
94019         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94020         (AC_REPLACE_FUNCS): Add strnlen.
94021
94022         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94023         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94024
94025         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94026         AC_SEARCH_LIBS call for nanosleep.
94027         (LIB_NANOSLEEP): Set and AC_SUBST.
94028
94029 2000-05-06  Jim Meyering  <meyering@lucent.com>
94030
94031         * lib/strnlen.c: Undefine __strnlen and strnlen.
94032         [!weak_alias]: Define __strnlen to strnlen.
94033
94034         * lib/atexit.c: New file, from libiberty.
94035
94036 2000-05-06  Jim Meyering  <meyering@lucent.com>
94037
94038         * lib/closeout.c (close_stdout_status): Also check for errors on the
94039         stderr stream.
94040
94041 2000-05-05  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94044         AC_SEARCH_LIBS call for clock_gettime.
94045         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94046
94047         * m4/search-libs.m4: Update from autoconf.
94048
94049         su doesn't work on Solaris 2.6.
94050         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94051         <shadow.h>.  Reported by Dragos Harabor.
94052
94053 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94054
94055         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94056         memcpy instead of xmalloc, xrealloc, path_concat.
94057         (locale_charset): Treat empty environment variables as absent.
94058         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94059
94060 2000-05-04  Jim Meyering  <meyering@lucent.com>
94061
94062         * lib/getopt.c: Update from glibc.
94063         * lib/obstack.c: Likewise.
94064         * lib/obstack.h: Likewise.
94065         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94066         file
94067
94068         * lib/regex.h: Likewise.
94069         * lib/strndup.c: Likewise.
94070         * lib/strnlen.c: New file, from glibc.
94071
94072 2000-05-03  Jim Meyering  <meyering@lucent.com>
94073
94074         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94075
94076 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94077
94078         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94079         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94080         compile-time test, rather than inspecting host and OS, to
94081         decide whether to define _LARGEFILE_SOURCE.
94082
94083 2000-05-01  Jim Meyering  <meyering@lucent.com>
94084
94085         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94086
94087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94088         Based on a patch from Bruno Haible.
94089
94090 2000-05-01  Jim Meyering  <meyering@lucent.com>
94091
94092         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94093
94094 2000-04-29  Jim Meyering  <meyering@lucent.com>
94095
94096         * lib/path-concat.c: Declare strdup only if it's not defined.
94097         * lib/canon-host.c: Likewise.
94098
94099 2000-04-28  Jim Meyering  <meyering@lucent.com>
94100
94101         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94102         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94103         is included first, then limits.h is included by locale.h by libintl.h.
94104         From John David Anglin.
94105
94106 2000-04-25  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/makepath.c (S_IRWXUGO): Define.
94109         (make_path): Always perform explicit chmod if MODE specifies any
94110         of the `special' permission bits.  Prompted by a bug report against
94111         install from Mate Wierdl and Joost van Baal.
94112
94113 2000-04-18  Jim Meyering  <meyering@lucent.com>
94114
94115         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94116         (jm_PREREQ): Use it.
94117
94118 2000-04-18  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/README: New file.
94121
94122         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94123         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94124
94125 2000-04-17  Jim Meyering  <meyering@lucent.com>
94126
94127         Get it right :-)
94128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94129         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94130         Suggestion from Akim Demaille.
94131
94132 2000-04-17  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94135         the definition of it to rpl_strftime also defined-away the system's
94136         declaration.
94137
94138 2000-04-15  Jim Meyering  <meyering@lucent.com>
94139
94140         Use `C' to denote so-called `contiguous' files, the same way
94141         that tar does.
94142         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94143         (ftypelet): Use S_ISCTG.
94144         From Michael Deutschmann.
94145
94146 2000-04-14  Jim Meyering  <meyering@lucent.com>
94147
94148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94149         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94150         clobbered.
94151
94152 2000-04-14  Jim Meyering  <meyering@lucent.com>
94153
94154         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94155
94156 2000-04-13  Jim Meyering  <meyering@lucent.com>
94157
94158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94159         AH_VERBATIM to insert required #ifndef into config.h.in.
94160         Suggestion from Akim Demaille.
94161
94162 2000-04-12  Jim Meyering  <meyering@lucent.com>
94163
94164         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94165         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94166         Christian Krackowizer.
94167
94168         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94169         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94170         (AC_SYS_LARGEFILE): Require.
94171         (AM_C_PROTOTYPES): Require.
94172
94173 2000-04-08  Jim Meyering  <meyering@lucent.com>
94174
94175         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94176         names don't conflict.  Reported by Eli Zaretskii.
94177
94178 2000-04-07  Jim Meyering  <meyering@lucent.com>
94179
94180         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94181         sys/types.h, to work around system header problems on AIX 3.2.5.
94182         From Bruno Haible.
94183
94184 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94185
94186         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94187         bug.  Deal with the different error behavior of Irix iconv.
94188
94189 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94190
94191         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94192         IRIX if the installer said otherwise.
94193
94194 2000-04-05  Jim Meyering  <meyering@lucent.com>
94195
94196         Portability tweaks required for ultrix4.3.
94197         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94198         (jm_CHECK_DECLS): Add getutent to the list of functions.
94199         (_jm_DECL_HEADERS): Add utmpx.h.
94200         From John David Anglin.
94201
94202         * m4/strftime.m4: Back out the 2000-04-02 change.
94203         Instead of that change, simply undefine putenv in the test program.
94204
94205 2000-04-05  Jim Meyering  <meyering@lucent.com>
94206
94207         Portability tweaks required for ultrix4.3.
94208         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94209         getutent.
94210         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94211         * lib/canon-host.c: Declare strdup.
94212         * lib/path-concat.c: Likewise.
94213         From John David Anglin.
94214
94215 2000-04-04  Jim Meyering  <meyering@lucent.com>
94216
94217         Be more DOS 8.3-friendly.
94218         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94219         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94220         * lib/Makefile.am: Reflect renaming.
94221         Reported by Eli Zaretskii.
94222
94223         Use a temporary file name that won't clash with `charset.alias'
94224         in the DOS 8.3 name space.
94225         * lib/Makefile.am (charset_tmp): Define.
94226         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94227         (uninstall-local): Likewise.
94228         Reported by Eli Zaretskii.
94229
94230 2000-04-03  Jim Meyering  <meyering@lucent.com>
94231
94232         * m4/gettext.m4: Fix typo in comment.
94233
94234         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94235         textutils/configure.in).  Suggestion from Paul Eggert.
94236         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94237
94238 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94239
94240         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94241         variable in the shell rather than using putenv, which isn't
94242         portable.  This avoids the configure-time inter-test dependency
94243         on the potentially-renamed putenv function.
94244
94245 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94246
94247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94248         before checking struct stat.st_blksize, so that
94249         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94250
94251 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94252
94253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94254         since strftime.c uses HAVE_STRFTIME to decide whether to use
94255         the underlying strftime.
94256
94257 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94258
94259         * lib/time/strftime.c (my_strftime): Make sure we call the system
94260         strftime, not ourselves, when invoking the underlying strftime.
94261
94262 2000-03-24  Jim Meyering  <meyering@lucent.com>
94263
94264         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94265         (charset_alias): Define.
94266         (install-exec-local): Factor out common code.
94267         (uninstall-local): Split lines longer than 80.
94268         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94269         (SUFFIXES): Define.
94270         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94271         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94272
94273 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94274
94275         * lib/config.charset: Output a line containing "Packages using this
94276         file".
94277         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94278         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94279         ref-del.sed): New rules.
94280
94281 2000-03-17  Jim Meyering  <meyering@lucent.com>
94282
94283         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94284         Otherwise, include <strings.h>
94285
94286 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94287
94288         * lib/unicodeio.c (utf8_wctomb): New function.
94289         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94290         format instead of in UCS-4 with platform dependent endianness.
94291
94292 2000-03-10  Jim Meyering  <meyering@lucent.com>
94293
94294         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94295         From Marco Franzen.
94296
94297 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94298
94299         * lib/savedir.c (savedir): Work even if directory size is
94300         negative; this can happen with some screwy NFS configurations.
94301
94302 2000-03-06  Jim Meyering  <meyering@lucent.com>
94303
94304         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94305         if it's NULL (because we ran out of memory).  From Bruno Haible.
94306
94307 2000-03-05  Jim Meyering  <meyering@lucent.com>
94308
94309         * lib/localcharset.c ("path-concat.h"): Include.
94310         (get_charset_aliases): Use path_concat instead of ANSI string
94311         concatenation.
94312
94313         * lib/unicodeio.h (PARAMS): Define.
94314         Use it to guard prototype.
94315
94316 2000-03-04  Jim Meyering  <meyering@lucent.com>
94317
94318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94319         for lib/localcharset.c.
94320
94321 2000-03-04  Jim Meyering  <meyering@lucent.com>
94322
94323         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94324         installing into it.
94325         (uninstall-local): Uncomment this rule so `make distcheck' works
94326         once again.
94327
94328         * lib/unicodeio.c (<errno.h>): Include it.
94329         (errno): Declare if not defined.
94330
94331         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94332
94333         * lib/config.charset: New version, incorporating remarks from a linux
94334         i18n mailing list.  From Bruno Haible.
94335
94336 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94337
94338         * m4/codeset.m4: New file.
94339         * m4/iconv.m4: New file.
94340         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94341
94342 2000-03-03  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94345
94346 2000-03-02  Jim Meyering  <meyering@lucent.com>
94347
94348         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94349         the messages come out on separate lines.
94350
94351         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94352         rather than jm_CHECK_DECLARATIONS.
94353         * m4/decl.m4: Remove now-unused file.
94354
94355         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94356         geteuid.
94357
94358 2000-03-02  Jim Meyering  <meyering@lucent.com>
94359
94360         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94361
94362 2000-03-01  Jim Meyering  <meyering@lucent.com>
94363
94364         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94365         * lib/unicodeio.c: Likewise.
94366
94367 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94368
94369         * lib/config.charset: New file.
94370         * lib/localcharset.c: New file.
94371         * lib/unicodeio.h, lib/unicodeio.c: New files.
94372         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94373         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94374         (noinst_HEADERS): Add unicodeio.h.
94375         (all-local, install-exec-local, charset.alias): New targets.
94376
94377 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94378
94379         * lib/quotearg.c (ALERT_CHAR): New macro.
94380         (quotearg_buffer_restyled): Use it.
94381
94382 2000-02-27  Jim Meyering  <meyering@lucent.com>
94383
94384         * m4/check-decl.m4: Add getenv to the list.
94385
94386 2000-02-27  Jim Meyering  <meyering@lucent.com>
94387
94388         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94389         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94390
94391         * lib/backupfile.c: Guard inclusion of stdlib.h with
94392         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94393         Declare malloc if needed.
94394
94395         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94396         `#ifndef HAVE_DECL..'
94397         now that autoconf always defines the HAVE_DECL_ symbols.
94398         * lib/human.c: Likewise.
94399         * lib/same.c: Likewise.
94400         * lib/strtoumax.c: Likewise.
94401
94402         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94403         declaration check was not run.
94404         * lib/hash.c: Likewise.
94405         * lib/human.c: Likewise.
94406         * lib/same.c: Likewise.
94407         * lib/strtoumax.c: Likewise.
94408
94409         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94410         `.', then first look up the entire `.'-containing string as a login
94411         name.
94412
94413 2000-02-23  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94416         in place of my hack.
94417
94418 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94419
94420         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94421         (textint): New typedef.
94422         (parser_control): Member year changed from int to textint.
94423         All uses changed.
94424         (YYSTYPE): Removed; replaced by %union with int and textint members.
94425         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94426         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94427         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94428         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94429         (date, number, to_year): Use width of number in digits, not its value,
94430         to determine whether it's a 2-digit year, or a 2-digit time.
94431         (yylex): Store number of digits of numeric tokens.
94432         Reported by John Kendall.
94433
94434         (parser_control): Changed from struct parser_control to typedef (for
94435         consistency).  All uses changed.
94436
94437         (tID): Removed; not used.
94438         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94439
94440 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94441
94442         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94443         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94444
94445 2000-02-12  Jim Meyering  <meyering@lucent.com>
94446
94447         * lib/userspec.c (ISDIGIT): Define it.
94448         (isdigit): Remove definition.
94449         (is_number): Use ISDIGIT, not isdigit.
94450         <libintl.h>: Include.
94451         (_ and N_): Define.
94452         (parse_user_spec): Mark translatable strings.
94453
94454 2000-02-10  Jim Meyering  <meyering@lucent.com>
94455
94456         With these changes, nanosleep.[ch] are finally enough like the other
94457         lib/* replacement files to compile on a few more losing systems.
94458
94459         * lib/nanosleep.h: Don't include config.h.
94460         Remove prototype from declaration of nanosleep.
94461         (PARAMS): Remove now-unneeded definition.
94462         * lib/nanosleep.c: #undef nanosleep.
94463         (rpl_nanosleep): Rename from nanosleep.
94464
94465 2000-02-10  Jim Meyering  <meyering@lucent.com>
94466
94467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94468         gnu_nanosleep to rpl_nanosleep.
94469
94470 2000-02-09  Jim Meyering  <meyering@lucent.com>
94471
94472         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94473         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94474
94475 2000-02-08  Akim Demaille  <akim@epita.fr>
94476
94477         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94478         `[' and `]' and remove uses of `changequote'.
94479         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94480         (AC_SYS_LARGEFILE): Likewise.
94481         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94482         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94483         of changequote.
94484         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94485         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94486         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94487         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94488
94489 2000-02-05  Jim Meyering  <meyering@lucent.com>
94490
94491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94492         Remove explicit use of AC_HEADER_TIME.  It is required by
94493         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94494         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94495         in autoconf whereby the expansion of the latter ended up preceding
94496         the expansion of its prerequisite, AC_HEADER_TIME.
94497         Reported by Volker Borchert.
94498
94499 2000-02-03  Jim Meyering  <meyering@lucent.com>
94500
94501         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94502
94503 2000-02-03  Jim Meyering  <meyering@lucent.com>
94504
94505         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94506         rather than with `#if HAVE_UTMPNAME'.
94507
94508 2000-02-02  Jim Meyering  <meyering@lucent.com>
94509
94510         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94511         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94512         Reported by Eli Zaretskii.
94513
94514 2000-02-01  Jim Meyering  <meyering@lucent.com>
94515
94516         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94517
94518 2000-01-31  Jim Meyering  <meyering@lucent.com>
94519
94520         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94521         functions.  Add the time.h and sys/time.h headers along with the
94522         AC_REQUIRE'ment of AC_HEADER_TIME.
94523
94524 2000-01-31  Jim Meyering  <meyering@lucent.com>
94525
94526         * lib/nanosleep.h (nanosleep): Guard declaration with
94527         `#if ! HAVE_DECL_NANOSLEEP'.
94528         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94529         the declaration in that vendor's sys/timers.h.
94530         Reported by Christian Krackowizer.
94531
94532         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94533         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94534         (ISPRINT): Likewise.
94535         Reported by Tom Tromey.
94536
94537 2000-01-30  Jim Meyering  <meyering@lucent.com>
94538
94539         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94540
94541         * m4/prereq.m4 (utmp_includes): Define.
94542         Check for ut_user and ut_name members in both struct utmpx
94543         and struct utmp.
94544
94545 2000-01-30  Jim Meyering  <meyering@lucent.com>
94546
94547         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94548         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94549         header files where only utmpx.ut_user is declared.
94550
94551         * lib/readutmp.h (UT_USER): Define.
94552
94553 2000-01-29  Jim Meyering  <meyering@lucent.com>
94554
94555         * m4/lib-check.m4: New file containing library-related checks from
94556         fileutils and sh-utils (textutils had none).
94557
94558 2000-01-28  Jim Meyering  <meyering@lucent.com>
94559
94560         * m4/perl.m4: Change format of warning message to look more like that
94561         from the missing script.  Suggestion from François Pinard.
94562
94563 2000-01-25  Jim Meyering  <meyering@lucent.com>
94564
94565         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94566         well as time.h in the compile check.
94567         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94568         Fix typo in cross-compiling case: s/yes/no/.
94569
94570 2000-01-23  Jim Meyering  <meyering@lucent.com>
94571
94572         * m4/jm-macros.m4: Move df-related tests here from
94573         fileutils/configure.in
94574
94575         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94576         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94577
94578         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94579         s/space/ac_fsusage_space/.
94580         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94581
94582         * m4/ftruncate.m4: New file (derived from part of
94583         fileutils/configure.in).
94584         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94585         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94586
94587         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94588         AC_SUBST these here, rather than just in sh-util/configure.in, so
94589         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94590         all the same.
94591         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94592         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94593         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94594         (AC_SUBST(POW_LIBM)): Likewise.
94595         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94596
94597 2000-01-23  Jim Meyering  <meyering@lucent.com>
94598
94599         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94600         obstack.c.
94601
94602 2000-01-22  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94605
94606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94607
94608         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94609         configure.in
94610         (AC_CHECK_HEADERS): Likewise for sh-utils.
94611         (AC_CHECK_HEADERS): Likewise for textutils.
94612         Merge the three lists of headers.
94613
94614         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94615         from fileutils' configure.in.
94616
94617         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94618         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94619         check-decl.m4.
94620
94621         * m4/check-decl.m4: Use #if rather than #ifdef.
94622         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94623         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94624         (_jm_DECL_HEADERS): Define new function.
94625         (jm_CHECK_DECLARATIONS): Require it.
94626
94627 2000-01-22  Jim Meyering  <meyering@lucent.com>
94628
94629         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94630         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94631         Required for some AIX systems.  Reported by Christian Krackowizer.
94632         [TESTING] (main): New function.
94633
94634         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94635         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94636         letters.
94637
94638         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94639         iswprint.
94640
94641         * lib/strverscmp.c (ISDIGIT): Define.
94642         (strverscmp): Use ISDIGIT, not isdigit.
94643
94644 2000-01-19  Jim Meyering  <meyering@lucent.com>
94645
94646         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94647         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94648         defines `struct timespec' in <sys/time.h>
94649
94650         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94651         Thanks to Akim for explaining.
94652
94653 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94654
94655         * lib/nanosleep.c (nanosleep):
94656         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94657         POSIX.1 doesn't require SA_INTERRUPT and some systems
94658         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94659         it's been part of POSIX.1 since day 1 (in 1988).
94660
94661 2000-01-17  Jim Meyering  <meyering@lucent.com>
94662
94663         * lib/interlock: Remove unused file.  Reported by François Pinard.
94664
94665 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94666
94667         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94668         alert, backslash, formfeed, and vertical tab unnecessarily in
94669         shell quoting style.
94670
94671 2000-01-16  Jim Meyering  <meyering@lucent.com>
94672
94673         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94674         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94675         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94676         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94677
94678 2000-01-16  Jim Meyering  <meyering@lucent.com>
94679
94680         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94681         because the latter didn't work.
94682
94683 2000-01-15  Jim Meyering  <meyering@lucent.com>
94684
94685         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94686         (AC_REPLACE_FUNCS): Add memcpy and memset.
94687         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94688         Add strpbrk.
94689         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94690
94691 2000-01-12  Jim Meyering  <meyering@lucent.com>
94692
94693         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94694         (jm_PREREQ): Use it.
94695         (jm_PREREQ_READUTMP): New macro.
94696         (jm_PREREQ): Use it.
94697
94698 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94699
94700         Quote multibyte characters correctly.
94701         * m4/c-bs-a.m4: New file.
94702         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94703         (jm_PREREQ): Use it.
94704
94705 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94706
94707         * m4/uintmax_t.m4: Port to autoconf 2.13.
94708
94709 2000-01-08  Jim Meyering  <meyering@ascend.com>
94710
94711         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94712         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94713
94714 2000-01-04  Jim Meyering  <meyering@ascend.com>
94715
94716         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94717         jm_STRUCT_DIRENT_D_TYPE.
94718         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94719         jm_STRUCT_DIRENT_D_INO.
94720         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94721         jm_STRUCT_UTIMBUF.
94722         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94723         renamings.
94724         * m4/utime.m4: Likewise.
94725
94726         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94727         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94728
94729 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94730
94731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94732         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94733
94734 2000-01-02  Jim Meyering  <meyering@ascend.com>
94735
94736         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94737         remember if this is necessary.
94738
94739 1999-12-26  Jim Meyering  <meyering@ascend.com>
94740
94741         * m4/jm-macros.m4: Use it here.
94742         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94743
94744 1999-12-23  Jim Meyering  <meyering@ascend.com>
94745
94746         * m4/jm-macros.m4: Check for clock_gettime (moved from
94747         fileutils/configure.in)
94748         Check for gettimeofday.
94749
94750 1999-12-20  Jim Meyering  <meyering@ascend.com>
94751
94752         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94753         autoconf-2.14a-1999-12-20.
94754
94755 1999-12-19  Jim Meyering  <meyering@ascend.com>
94756
94757         * m4/lstat-slash.m4: New file.
94758         * m4/jm-macros.m4: Use the new macro:
94759         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94760
94761 1999-12-07  Jim Meyering  <meyering@ascend.com>
94762
94763         * m4/perl.m4: Require that File::Compare be available, too.
94764         Too many systems seem to lack it.
94765
94766         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94767         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94768
94769 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94770
94771         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94772         problem with the QNX 4.25 shell, which doesn't propagate exit
94773         status of failed commands inside shell assignments.
94774
94775 1999-11-17  Jim Meyering  <meyering@ascend.com>
94776
94777         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94778
94779 1999-11-07  Jim Meyering  <meyering@ascend.com>
94780
94781         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94782
94783 1999-11-06  Jim Meyering  <meyering@ascend.com>
94784
94785         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94786         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94787
94788 1999-11-05  Jim Meyering  <meyering@ascend.com>
94789
94790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94791         configure.in of textutils, fileutils, and sh-utils into this one
94792         (shared between those packages) file.
94793         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94794         AC_STRUCT_ST_BLKSIZE.
94795
94796 1999-11-03  Jim Meyering  <meyering@ascend.com>
94797
94798         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94799         of AC_CHECK_TYPE checks includes unistd.h.
94800         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94801         Suggestion from Akim Demaille.
94802
94803 1999-10-30  Jim Meyering  <meyering@ascend.com>
94804
94805         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94806         m4-quoted string.
94807         * m4/ls-mntd-fs.m4: Likewise.
94808         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94809         * m4/jm-winsz1.m4: Likewise.
94810
94811         * m4/const.m4: Remove file, since the fix made it into the experimental
94812         version of autoconf.
94813         * m4/mktime.m4: Likewise.
94814
94815         * m4/check-type.m4: Remove file, now that the latest version of
94816         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94817
94818         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94819         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94820         AC_CHECK_TYPE.
94821
94822 1999-10-04  Jim Meyering  <meyering@ascend.com>
94823
94824         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94825
94826 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94827
94828         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94829         2.95.1 bug with HP-UX 10.20.
94830
94831 1999-09-17  Jim Meyering  <meyering@ascend.com>
94832
94833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94834         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94835         due to missing strdup (against sh-utils-2.0).
94836
94837 1999-08-29  Jim Meyering  <meyering@ascend.com>
94838
94839         * m4/jm-macros.m4: Require jm_BISON.
94840         * m4/bison.m4: New file.
94841
94842 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94843
94844         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94845         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94846
94847 1999-08-05  Jim Meyering  <meyering@ascend.com>
94848
94849         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94850         to avoid conflicts with `conftest' on 8+3 filesystems.
94851         Suggestion from Eli Zaretskii.
94852
94853 1999-08-04  Jim Meyering  <meyering@ascend.com>
94854
94855         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94856         fileutils and sh-utils (textutils's getline test was inadequate).
94857         (AM_FUNC_GETLINE): Run this test.
94858         (AC_CHECK_FUNCS): Check for getdelim.
94859         Reported by Bob Proulx.
94860
94861 1999-08-02  Jim Meyering  <meyering@ascend.com>
94862
94863         * m4/jm-macros.m4: Add a comment.
94864
94865 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94866
94867         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94868         <inttypes.h> defines strtoumax as a macro (and not as a
94869         function).
94870
94871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94872
94873         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94874         that we can shift, multiply and divide unsigned long long
94875         values; Ultrix cc can't do it.
94876
94877 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94878
94879         * m4/mktime.m4: New file, which is a preview of what should appear
94880         in the next public autoconf release.
94881
94882 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94883
94884         * m4/lfs.m4: Remove this file.
94885         * m4/largefile.m4: New file.  It contains the old contents of
94886         lfs.m4, except that all names with prefix AC_LFS have been
94887         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94888         compatible with future autoconf versions.  Also, some minor m4
94889         quoting problems have been fixed.
94890
94891 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94892
94893         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94894         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94895         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94896         and simplify the shell code.
94897
94898 1999-08-01  Jim Meyering  <meyering@ascend.com>
94899
94900         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94901         m4.
94902
94903 1999-07-20  Jim Meyering  <meyering@ascend.com>
94904
94905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94906
94907 1999-07-15  Jim Meyering  <meyering@ascend.com>
94908
94909         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94910
94911 1999-05-22  Jim Meyering  <meyering@ascend.com>
94912
94913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94914
94915 1999-05-20  Jim Meyering  <meyering@ascend.com>
94916
94917         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94918         Add a colon after each `then' in case $4 is empty.
94919
94920 1999-05-16  Jim Meyering  <meyering@ascend.com>
94921
94922         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94923
94924 1999-05-10  Jim Meyering  <meyering@ascend.com>
94925
94926         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94927
94928         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94929         AC_FUNC_MKTIME.
94930
94931 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94932
94933         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94934
94935 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94936
94937         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94938         not CPPFLAGS, so that linking works correctly in IRIX.
94939
94940 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94941
94942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94943
94944 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94945
94946         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94947         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94949         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94950         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94951
94952         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94953
94954 1999-04-20  Jim Meyering  <meyering@ascend.com>
94955
94956         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94957         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94958         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94959
94960 1999-04-18  Jim Meyering  <meyering@ascend.com>
94961
94962         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94963         * m4/jm-macros.m4: Use it.
94964
94965 1999-04-06  Jim Meyering  <meyering@ascend.com>
94966
94967         * m4/strftime.m4: Remove test for %f.
94968
94969 1999-03-29  Jim Meyering  <meyering@ascend.com>
94970
94971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94972         superset of the AC_TYPE_* checks in the textutils, fileutils,
94973         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94974         AC_TYPE_PID_T.
94975
94976 1999-03-28  Jim Meyering  <meyering@ascend.com>
94977
94978         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94979         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94980         replaced e.g., in the *.sh files of the sh-utils.
94981
94982 1999-03-20  Jim Meyering  <meyering@ascend.com>
94983
94984         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94985         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94986         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94987
94988 1999-03-19  Jim Meyering  <meyering@ascend.com>
94989
94990         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94991
94992 1999-03-12  Jim Meyering  <meyering@ascend.com>
94993
94994         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94995
94996 1999-03-07  Jim Meyering  <meyering@ascend.com>
94997
94998         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94999         declared.
95000
95001 1999-02-17  Jim Meyering  <meyering@ascend.com>
95002
95003         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95004         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95005
95006 1999-02-07  Jim Meyering  <meyering@ascend.com>
95007
95008         * m4/group-member.m4: New file -- extracted from sh-utils'
95009         configure.in.
95010
95011         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95012         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95013
95014 1999-02-06  Jim Meyering  <meyering@ascend.com>
95015
95016         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95017         * m4/fnmatch.m4: Likewise.
95018         * m4/getgroups.m4: Likewise.
95019         * m4/lstat.m4: Likewise.
95020         * m4/malloc.m4: Likewise.
95021         * m4/putenv.m4: Likewise.
95022         * m4/realloc.m4: Likewise.
95023         * m4/regex.m4: Likewise.
95024         * m4/stat.m4: Likewise.
95025         * m4/strftime.m4: Likewise.
95026         Suggestion from Alain Magloire.
95027
95028         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95029         * m4/fnmatch.m4: Likewise.
95030         * m4/getgroups.m4: Likewise.
95031         * m4/getline.m4: Likewise.
95032         * m4/lstat.m4: Likewise.
95033         * m4/malloc.m4: Likewise.
95034         * m4/memcmp.m4: Likewise.
95035         * m4/putenv.m4: Likewise.
95036         * m4/realloc.m4: Likewise.
95037         * m4/regex.m4: Likewise.
95038         * m4/stat.m4: Likewise.
95039         * m4/strftime.m4: Likewise.
95040         Suggestion from Alain Magloire.
95041
95042         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95043         an argument.
95044
95045         * m4/regex.m4: Add a run-time Test for proper operation of
95046         re_compile_pattern.
95047
95048 1999-01-31  Jim Meyering  <meyering@ascend.com>
95049
95050         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95051
95052 1999-01-30  Jim Meyering  <meyering@ascend.com>
95053
95054         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95055
95056         * m4/jm-mktime.m4: Make this a wrapper around the official
95057         AM_FUNC_MKTIME rather than my private copy, now that the official one
95058         is up to date.
95059         * m4/mktime.m4: Remove file.
95060
95061         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95062         * m4/uptime.m4: Likewise.
95063         * m4/uintmax_t.m4: Likewise.
95064
95065 1999-01-28  Jim Meyering  <meyering@ascend.com>
95066
95067         * m4/jm-macros.m4: Use jm_AFS.
95068         * m4/afs.m4: New file (from fileutils' configure.in).
95069
95070         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95071         * m4/chown.m4: Likewise.
95072         * m4/d-ino.m4: Likewise.
95073         * m4/d-type.m4: Likewise.
95074         * m4/fnmatch.m4: Likewise.
95075         * m4/getgroups.m4: Likewise.
95076         * m4/gettext.m4: Likewise.
95077         * m4/jm-mktime.m4: Likewise.
95078         * m4/jm-winsz2.m4: Likewise.
95079         * m4/lcmessage.m4: Likewise.
95080         * m4/ls-mntd-fs.m4: Likewise.
95081         * m4/malloc.m4: Likewise.
95082         * m4/memcmp.m4: Likewise.
95083         * m4/putenv.m4: Likewise.
95084         * m4/realloc.m4: Likewise.
95085         * m4/st_mtim.m4: Likewise.
95086         * m4/strftime.m4: Likewise.
95087
95088 1999-01-16  Jim Meyering  <meyering@ascend.com>
95089
95090         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95091         (ARGMATCH_DIE_DECL): Define.
95092
95093 1999-01-12  Jim Meyering  <meyering@ascend.com>
95094
95095         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95096         Reported by Lars Hecking.
95097
95098 1999-01-10  Jim Meyering  <meyering@ascend.com>
95099
95100         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95101         gross kludge.
95102         * m4/inttypes_h.m4: Likewise.
95103         * m4/lstat.m4: Likewise.
95104         * m4/malloc.m4: Likewise.
95105         * m4/readdir.m4: Likewise.
95106         * m4/realloc.m4: Likewise.
95107         * m4/st_dm_mode.m4: Likewise.
95108         * m4/stat.m4: Likewise.
95109         * m4/utimbuf.m4: Likewise.
95110         * m4/utimes.m4: Likewise.
95111
95112         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95113         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95114         comments in config.h.in are meaningful.
95115
95116         * m4/jm-macros.m4: Require autoconf-2.13 here.
95117
95118         * m4/regex.m4: By default, don't use the included regex.c on systems
95119         with glibc 2.  Suggestion from Uli Drepper.
95120
95121 1999-01-02  Jim Meyering  <meyering@ascend.com>
95122
95123         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95124
95125 1998-12-18  Jim Meyering  <meyering@ascend.com>
95126
95127         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95128         Based on a suggestion from Lars Hecking.
95129
95130 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95131
95132         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95133
95134 1998-11-16  Jim Meyering  <meyering@ascend.com>
95135
95136         * m4/lfs.m4: Double-quote the `uname...` expression.
95137
95138 1998-11-14  Jim Meyering  <meyering@ascend.com>
95139
95140         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95141         * m4/stat.m4: Likewise.
95142
95143 1998-11-03  Jim Meyering  <meyering@ascend.com>
95144
95145         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95146         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95147
95148 1998-10-18  Jim Meyering  <meyering@ascend.com>
95149
95150         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95151
95152 1998-10-17  Jim Meyering  <meyering@ascend.com>
95153
95154         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95155         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95156         calls for those previously hard-coded headers.  Instead, take a new
95157         parameter.
95158         (jm_CHECK_DECLARATIONS): Reflect interface change.
95159         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95160         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95161
95162         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95163
95164 1998-10-14  Jim Meyering  <meyering@ascend.com>
95165
95166         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95167         instead of "TZ=America/Vancouver".  From Paul Eggert.
95168
95169 1998-10-11  Jim Meyering  <meyering@ascend.com>
95170
95171         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95172         This adds a test for a recently added compatibility fix for mktime.c.
95173         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95174
95175 1998-09-27  Jim Meyering  <meyering@ascend.com>
95176
95177         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95178
95179         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95180         ../configure.in, including a change from Gordon Matzigkeit to allow
95181         cross-compiling for the Hurd.
95182
95183         * m4/glibc.m4: New file/macro to test for the GNU C Library
95184         versions 1 and 2.  From Gordon Matzigkeit.
95185         Indent.
95186
95187 1998-09-21  Jim Meyering  <meyering@ascend.com>
95188
95189         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95190
95191 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95192
95193         Port nanosecond-resolution times to UnixWare 2.1.2 and
95194         pedantic Solaris 2.6.
95195
95196         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95197         AC_STRUCT_ST_MTIM.
95198         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95199         Generate name of ns member, instead of just 1 or undef.
95200         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95201
95202 1998-08-15  Jim Meyering  <meyering@ascend.com>
95203
95204         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95205         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95206         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95207         instead of jm_TYPE_SSIZE_T.
95208
95209 1998-08-12  Jim Meyering  <meyering@ascend.com>
95210
95211         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95212
95213 1998-08-02  Jim Meyering  <meyering@ascend.com>
95214
95215         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95216         in acconfig.h manually.
95217
95218 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95219
95220         * m4/st_mtim.m4: New file.
95221
95222 1998-07-28  Jim Meyering  <meyering@ascend.com>
95223
95224         * m4/utimes.m4: Undef stat.
95225
95226 1998-07-25  Jim Meyering  <meyering@ascend.com>
95227
95228         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95229         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95230
95231 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95232
95233         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95234         uid and gid actually remain unchanged.
95235
95236 1998-07-07  Jim Meyering  <meyering@ascend.com>
95237
95238         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95239
95240 1998-07-04  Jim Meyering  <meyering@ascend.com>
95241
95242         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95243         to prove that this macro can be used in packages without regex.c.
95244
95245 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95246
95247         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95248         is to be used.
95249
95250 1998-07-03  Jim Meyering  <meyering@ascend.com>
95251
95252         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95253
95254         * m4/gettext.m4: New file -- from gettext-0.10.35.
95255         * m4/lcmessage.m4: Likewise.
95256         * m4/progtest.m4: Likewise.
95257
95258         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95259         * m4/jm-macros.m4: Require the new macro.
95260
95261 1998-06-29  Jim Meyering  <meyering@ascend.com>
95262
95263         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95264         for the definition of NGROUPS (used in a system header included
95265         by sys/mount.h).
95266
95267 1998-06-28  Jim Meyering  <meyering@ascend.com>
95268
95269         * m4/ls-mntd-fs.m4: New file.
95270         * m4/fstypename.m4: New file.
95271
95272         * m4/jm-macros.m4: Require the new macro.
95273         * m4/jm-glibc-io.m4: New file.
95274
95275 1998-05-19  Jim Meyering  <meyering@ascend.com>
95276
95277         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95278         * m4/lchown.m4: New file.
95279
95280         * m4/Makefile.am.in: New file.
95281         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95282
95283 1998-05-14  Jim Meyering  <meyering@ascend.com>
95284
95285         * m4/Makefile.am (EXTRA_DIST): Add them.
95286         * m4/jm-macros.m4: New file.
95287         * m4/utimbuf.m4: New file.
95288
95289 1998-05-12  Jim Meyering  <meyering@ascend.com>
95290
95291         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95292
95293 1998-05-11  Jim Meyering  <meyering@ascend.com>
95294
95295         * m4/isc-posix.m4: New file.
95296
95297 1998-05-10  Jim Meyering  <meyering@ascend.com>
95298
95299         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95300
95301 1998-05-09  Jim Meyering  <meyering@ascend.com>
95302
95303         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95304         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95305         with automake.
95306
95307         * m4/ssize_t.m4: New file.
95308         * m4/mktime.m4: Remove file -- the new automake has this now.
95309
95310 1998-04-26  Jim Meyering  <meyering@ascend.com>
95311
95312         * m4/assert.m4: New file.
95313         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95314
95315 1998-04-05  Jim Meyering  <meyering@ascend.com>
95316
95317         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95318         (jm_PREREQ): Use it here.
95319
95320 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95321
95322         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95323         in acconfig.h.
95324
95325 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95326
95327         * m4/prereq.m4: New file.
95328         * m4/error.m4: New file.
95329         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95330
95331 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95332
95333         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95334         cache-check for the same variable -- that defeated the purpose of
95335         the test; the test program was never run.  This was a problem only
95336         on systems with losing getline functions -- HP-UX 10.20 is one.
95337         Reported by Bjorn Helgaas.
95338
95339 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95340
95341         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95342
95343 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95344
95345         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95346
95347         * m4/const.m4: New file.  Use an initializer in this declaration
95348         typedef int charset[2]; const charset x;
95349         Reported by Bob Glickstein.
95350
95351 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95352
95353         * m4/chown.m4: Fix reversed types on -1 args to chown.
95354         From Kaveh Ghazi.
95355
95356 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95357
95358         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95359         Add lseek and memchr.
95360
95361         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95362         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95363         have a 20-character limit on names.
95364
95365 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95366
95367         * m4/inttypes_h.m4: New file.
95368         * m4/uintmax_t.m4: New file.
95369         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95370
95371
95372         -----
95373
95374         Local Variables:
95375         coding: utf-8
95376         End:
95377
95378         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95379
95380         Copying and distribution of this file, with or without
95381         modification, are permitted provided the copyright notice
95382         and this notice are preserved.