bootstrap: accommodate older libtool
[gnulib.git] / ChangeLog
1 2012-04-19  Eric Blake  <eblake@redhat.com>
2
3         bootstrap: accommodate older libtool
4         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5         Reported by Daniel P. Berrange.
6
7 2012-04-19  Jim Meyering  <meyering@redhat.com>
8
9         announce-gen: avoid failure due to lack of Digest::SHA1
10         Even with the preferred Digest::SHA available, this script
11         would fail when the backup module, Digest::SHA1, was not installed.
12         * build-aux/announce-gen: Quote the conditional use of "use".
13         Reported by Reuben Thomas in:
14         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
15
16         bootstrap: don't let a user's CDPATH setting affect this script
17         When CDPATH is set, cd will sometimes generate output.
18         When "cd" is run in a subshell whose output matters, that
19         surprising-to-some output can cause malfunction.
20         Unsetting CDPATH turns off this shell "feature."
21         * build-aux/bootstrap (CDPATH): Unset.
22         Reported by Reuben Thomas in:
23         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
24         and inspired by his patch here:
25         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
26
27 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
28         and Jim Meyering  <meyering@redhat.com>
29
30         maint.mk: catch "see @xref{}" and similar
31         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
32         prohibit "See also @xref{", "Also see @pxref{", and similar.
33
34 2012-04-16  Jim Meyering  <meyering@redhat.com>
35
36         bootstrap: really use gnulib's po/Makefile.in.in
37         * build-aux/bootstrap: Correct the source file name in previous change.
38         Reported by Akim Demaille.
39
40         configmake: correct minor inconsistency in Makefile rule
41         * modules/configmake (Makefile.am): All other rules like this one
42         run the final "mv -f ..." in the same backslash-continued command
43         as the one that does everything else.  This one put the mv -f ...
44         command on a separate, non-backslash-continued line.
45         Make it like the others.
46
47         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
48         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
49         the one from gettext.  Reported by Akim Demaille.
50
51 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
52
53         Fix recursion of install-* into po directories.
54         Bison's install-pdf bug reported by Hans Aberg at
55         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
56         * build-aux/po/Makefile.in.in (install-dvi, install-html)
57         (install-info, install-pdf, install-ps): New targets.
58
59 2012-04-16  Jim Meyering  <meyering@redhat.com>
60
61         maint: avoid spurious "make sc_maint" failure
62         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
63         exempt all *.class file names, for lib/javaversion.class.
64
65 2012-04-15  Bruno Haible  <bruno@clisp.org>
66
67         lseek: Make configure test independent of environment.
68         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
69         Windows, we know that lseek() on pipes is broken; skip the runtime
70         test.
71
72 2012-04-14  Bruno Haible  <bruno@clisp.org>
73
74         stat: Bypass buggy override in mingw64.
75         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
76         * lib/stat.c (stat) [mingw64]: Define to _stat.
77         * doc/posix-functions/stat.texi: Mention mingw64 bug.
78
79 2012-04-14  Bruno Haible  <bruno@clisp.org>
80
81         pathmax: Fix compilation error on MSVC 9.
82         * modules/pathmax (Depends-on): Add unistd.
83
84 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85
86         README: document pointer comparison assumption
87         * README (Portability guidelines): Document assumption about
88         pointer comparisons, in response to a recent bug-gnulib comment by
89         Jeffrey Kegler.
90
91 2012-04-12  Bruno Haible  <bruno@clisp.org>
92
93         Tests for module 'getrusage'.
94         * modules/getrusage-tests: New file.
95         * tests/test-getrusage.c: New file.
96
97         New module 'getrusage'.
98         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
99         warn-on-use.h.
100         (getrusage): New declaration.
101         * lib/getrusage.c: New file.
102         * m4/getrusage.m4: New file.
103         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
104         is declared.
105         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
106         HAVE_GETRUSAGE.
107         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
108         snippet/c++defs, snippet/warn-on-use.
109         (Makefile.am): Update generation of sys/resource.h. Substitute
110         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
111         * modules/getrusage: New file.
112         * doc/posix-functions/getrusage.texi: Mention the new module.
113
114 2012-04-12  Bruno Haible  <bruno@clisp.org>
115
116         Tests for module 'sys_resource'.
117         * modules/sys_resource-tests: New file.
118         * tests/test-sys_resource.c: New file.
119
120         New module 'sys_resource'.
121         * lib/sys_resource.in.h: New file.
122         * m4/sys_resource_h.m4: New file.
123         * modules/sys_resource: New file.
124         * doc/posix-headers/sys_resource.texi: Mention the new module.
125
126 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
127
128         ioctl: Fix compilation error on mingw.
129         * lib/ioctl.c: Include <windows.h>.
130         Also reported by Ray Satiro <raysatiro@yahoo.com>.
131
132 2012-04-04  Jim Meyering  <meyering@redhat.com>
133
134         regex: correct #pragma guard expression
135         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
136         not 4.3.  Correct its cpp guard expression.
137
138 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
139
140         regex: remove unnecessary type punning
141         Problem reported by Vladimir Serbinenko in
142         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
143         * lib/regex.h (struct re_pattern_buffer): Change the type of
144         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
145         Fix comment to match code.
146         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
147         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
148         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
149         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
150         (set_regs):
151         Omit no-longer-necessary casts.
152
153 2012-04-03  Bruno Haible  <bruno@clisp.org>
154
155         Tests for module 'ilogbl'.
156         * modules/ilogbl-tests: New file.
157         * tests/test-ilogbl.c: New file.
158
159         New module 'ilogbl'.
160         * lib/math.in.h (ilogbl): New declaration.
161         * lib/ilogbl.c: New file.
162         * m4/ilogbl.m4: New file.
163         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
165         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
166         Split sed invocation, to avoid the limit of 100 substitutions of
167         HP-UX 'sed'.
168         * modules/ilogbl: New file.
169         * tests/test-math-c++.cc: Check the declaration of ilogbl.
170         * doc/posix-functions/ilogbl.texi: Mention the new module.
171
172 2012-04-03  Bruno Haible  <bruno@clisp.org>
173
174         Tests for module 'ilogbf'.
175         * modules/ilogbf-tests: New file.
176         * tests/test-ilogbf.c: New file.
177
178         New module 'ilogbf'.
179         * lib/math.in.h (ilogbf): New declaration.
180         * lib/ilogbf.c: New file.
181         * m4/ilogbf.m4: New file.
182         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
184         REPLACE_ILOGBF.
185         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
186         REPLACE_ILOGBF.
187         * modules/ilogbf: New file.
188         * tests/test-math-c++.cc: Check the declaration of ilogbf.
189         * doc/posix-functions/ilogbf.texi: Mention the new module.
190
191 2012-04-03  Bruno Haible  <bruno@clisp.org>
192
193         Tests for module 'ilogb'.
194         * modules/ilogb-tests: New file.
195         * tests/test-ilogb.c: New file.
196         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
197         tests/test-logb-ieee.h.
198
199         New module 'ilogb'.
200         * lib/math.in.h (ilogb): New declaration.
201         * lib/ilogb.c: New file.
202         * m4/ilogb.m4: New file.
203         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
205         REPLACE_ILOGB.
206         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
207         REPLACE_ILOGB.
208         * modules/ilogb: New file.
209         * tests/test-math-c++.cc: Check the declaration of ilogb.
210         * doc/posix-functions/ilogb.texi: Mention the new module.
211
212 2012-04-03  Bruno Haible  <bruno@clisp.org>
213
214         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
215         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
216         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
217         (main): Check their values.
218         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
219         problem.
220
221 2012-04-03  Bruno Haible  <bruno@clisp.org>
222
223         Tests for module 'logbl-ieee'.
224         * modules/logbl-ieee-tests: New file.
225         * tests/test-logbl-ieee.c: New file.
226
227         New module 'logbl-ieee'.
228         * modules/logbl-ieee: New file.
229
230         Tests for module 'logb-ieee'.
231         * modules/logb-ieee-tests: New file.
232         * tests/test-logb-ieee.c: New file.
233
234         New module 'logb-ieee'.
235         * modules/logb-ieee: New file.
236
237         Tests for module 'logbf-ieee'.
238         * modules/logbf-ieee-tests: New file.
239         * tests/test-logbf-ieee.c: New file.
240         * tests/test-logb-ieee.h: New file.
241
242         New module 'logbf-ieee'.
243         * modules/logbf-ieee: New file.
244
245 2012-04-03  Bruno Haible  <bruno@clisp.org>
246
247         Tests for module 'logbl'.
248         * modules/logbl-tests: New file.
249         * tests/test-logbl.c: New file.
250
251         New module 'logbl'.
252         * lib/math.in.h (logbl): New declaration.
253         * lib/logbl.c: New file.
254         * m4/logbl.m4: New file.
255         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
257         REPLACE_LOGBL.
258         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
259         REPLACE_LOGBL.
260         * modules/logbl: New file.
261         * tests/test-math-c++.cc: Check the declaration of logbl.
262         * doc/posix-functions/logbl.texi: Mention the new module.
263
264 2012-04-02  Bruno Haible  <bruno@clisp.org>
265
266         Tests for module 'logbf'.
267         * modules/logbf-tests: New file.
268         * tests/test-logbf.c: New file.
269
270         New module 'logbf'.
271         * lib/math.in.h (logbf): New declaration.
272         * lib/logbf.c: New file.
273         * m4/logbf.m4: New file.
274         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
276         REPLACE_LOGBF.
277         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
278         REPLACE_LOGBF.
279         * modules/logbf: New file.
280         * tests/test-math-c++.cc: Check the declaration of logbf.
281         * doc/posix-functions/logbf.texi: Mention the new module.
282
283 2012-04-02  Bruno Haible  <bruno@clisp.org>
284
285         logb tests: More tests.
286         * tests/test-logb.h: New file, based on tests/test-logb.c and
287         tests/test-frexp.h.
288         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
289         (main): Just invoke test_function.
290         * modules/logb-tests (Files): Add tests/test-logb.h,
291         tests/minus-zero.h, tests/randomd.c.
292         (Makefile.am): Add randomd.c to test_logb_SOURCES.
293
294         logb: Provide replacement and workarounds.
295         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
296         is 1.
297         * lib/logb.c: New file.
298         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
299         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
301         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
302         * modules/logb (Files): Add lib/logb.c.
303         (Depends-on): Add isfinite, frexp, isnand.
304         (configure.ac): Compile the replacement code logb.c if needed.
305         * tests/test-math-c++.cc: Check the declaration of logb.
306         * doc/posix-functions/logb.texi: Mention the replacement and the bug
307         with subnormal numbers.
308
309 2012-04-02  Bruno Haible  <bruno@clisp.org>
310
311         log10* tests: Speed up.
312         * tests/test-log10.h (test_function): Reduce amount of random numbers
313         to test.
314
315 2012-04-01  Bruno Haible  <bruno@clisp.org>
316
317         logf-ieee: Fix test whether logf works.
318         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
319
320 2012-04-01  Bruno Haible  <bruno@clisp.org>
321
322         log10l: Work around log10l-ieee test failure on IRIX 6.5.
323         * lib/log10l.c: Include <float.h>
324         (log10l): On IRIX, normalize the +Infinity value.
325         * modules/log10l (Depends-on): Add 'float'.
326         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
327         +Infinity.
328
329         log10f-ieee: Work around test failure on NetBSD 5.1.
330         * m4/log10f-ieee.m4: New file.
331         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
332         test whether log10f works with a negative argument. Replace it if not.
333         * lib/log10f.c (log10f): For negative arguments, return NaN.
334         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
335         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
336         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
337
338         log10f-ieee: Work around test failure on Solaris 9.
339         * modules/log10f-ieee (Depends-on): Add log10-ieee.
340         (configure.ac): Require gl_FUNC_LOG10F.
341
342         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
343         * m4/log10-ieee.m4: New file.
344         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
345         whether log10 works with a negative argument. Replace it if not.
346         * lib/log10.c (log10): For negative arguments, return NaN.
347         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
348         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
349         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
350
351         Tests for module 'log10l-ieee'.
352         * modules/log10l-ieee-tests: New file.
353         * tests/test-log10l-ieee.c: New file.
354
355         New module 'log10l-ieee'.
356         * modules/log10l-ieee: New file.
357
358         Tests for module 'log10-ieee'.
359         * modules/log10-ieee-tests: New file.
360         * tests/test-log10-ieee.c: New file.
361
362         New module 'log10-ieee'.
363         * modules/log10-ieee: New file.
364
365         Tests for module 'log10f-ieee'.
366         * modules/log10f-ieee-tests: New file.
367         * tests/test-log10f-ieee.c: New file.
368         * tests/test-log10-ieee.h: New file.
369
370         New module 'log10f-ieee'.
371         * modules/log10f-ieee: New file.
372
373 2012-04-01  Bruno Haible  <bruno@clisp.org>
374
375         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
376         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
377         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
378         workaround.
379         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
380         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
382         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
383         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
384         (Depends-on): Update conditions.
385         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
386         IRIX 6.5, OSF/1 5.1 problems.
387
388 2012-04-01  Bruno Haible  <bruno@clisp.org>
389
390         log10f: Work around OSF/1 5.1 bug.
391         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
392         * lib/log10f.c (log10f): If logf exists, use it and provide just the
393         workaround.
394         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
395         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
397         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
398         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
399         (Depends-on): Update conditions.
400         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
401
402 2012-04-01  Bruno Haible  <bruno@clisp.org>
403
404         log10: Work around OSF/1 5.1 bug.
405         * lib/math.in.h (log10): New declaration.
406         * lib/log10.c: New file.
407         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
408         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
409         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
411         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
412         * modules/log10 (Files): Add lib/log10.c.
413         (Depends-on): Add math.
414         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
415         * tests/test-math-c++.cc: Check the declaration of log10.
416         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
417
418 2012-03-31  Bruno Haible  <bruno@clisp.org>
419
420         log10l tests: More tests.
421         * modules/log10l-tests (Files): Add tests/test-log10l.h,
422         tests/minus-zero.h, tests/randoml.c.
423         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
424         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
425         (main): Invoke test_function.
426
427         log10f tests: More tests.
428         * modules/log10f-tests (Files): Add tests/test-log10.h,
429         tests/minus-zero.h, tests/randomf.c.
430         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
431         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
432         (main): Invoke test_function.
433
434         log10 tests: More tests.
435         * tests/test-log10.h: New file.
436         * modules/log10-tests (Files): Add tests/test-log10.h,
437         tests/minus-zero.h, tests/randomd.c.
438         (Makefile.am): Add randomd.c to test_log10_SOURCES.
439         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
440         (main): Invoke test_function.
441
442 2012-03-31  Simon Josefsson  <simon@josefsson.org>
443
444         fflush: Fix syntax error.
445         * lib/fflush.c: Include unused-parameter.h, needed for
446         _GL_UNUSED_PARAMETER.
447         * modules/fflush (Depends-on): Add snippet/unused-parameter.
448
449 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
450
451         regex: pacify GCC when compiling GRUB
452         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
453         a diagnostic.  Reported by Vladimir Serbinenko in
454         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
455
456 2012-03-29  Eric Blake  <eblake@redhat.com>
457
458         stdio: don't assume gets any more
459         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
460         support.
461         * modules/stdio (Makefile.am): Likewise.
462         * lib/stdio-read.c (gets): Likewise.
463         * tests/test-stdio-c++.cc: Likewise.
464         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
465         * lib/stdio.in.h (gets): Make warning occur in more places.
466         * doc/posix-functions/gets.texi (gets): Update documentation.
467         Reported by Christer Solskogen.
468
469         maint.mk: fix syntax checks without exclusions
470         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
471         Reported by Daniel P. Berrange.
472
473         strerror_r: avoid compiler warning
474         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
475         level.
476
477         fflush: avoid compiler warning
478         * lib/fflush.c (update_fpos_cache): Mark variables that are
479         potentially unused.
480
481 2012-03-25  Bruno Haible  <bruno@clisp.org>
482
483         Tests for module 'localeconv'.
484         * modules/localeconv-tests: New file.
485         * tests/test-localeconv.c: New file.
486
487         New module 'localeconv'.
488         * lib/locale.in.h (localeconv): New declaration.
489         * lib/localeconv.c: New file.
490         * m4/localeconv.m4: New file.
491         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
492         REPLACE_LOCALECONV.
493         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
494         REPLACE_LOCALECONV.
495         * modules/localeconv: New file.
496         * modules/nl_langinfo (Depends-on): Add localeconv.
497         * modules/human (Depends-on): Likewise.
498         * doc/posix-functions/localeconv.texi: Mention the new module.
499
500 2012-03-25  Bruno Haible  <bruno@clisp.org>
501
502         locale: Provide a complete 'struct lconv'.
503         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
504         'struct lconv' does not contain int_p_cs_precedes.
505         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
506         * doc/posix-headers/locale.texi: Update.
507
508         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
509         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
510         * doc/posix-headers/locale.texi: Update.
511
512         locale: Provide a working 'struct lconv'.
513         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
514         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
515         'struct lconv' does not even contain decimal_point.
516         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
517         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
518         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
519         * doc/posix-headers/locale.texi: Mention the problems with
520         'struct lconv'.
521         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
522
523 2012-03-24  Bruno Haible  <bruno@clisp.org>
524
525         Enable common subexpression optimization in GCC.
526         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
527         macros.
528         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
529         GCC attribute 'const'.
530         (uc_locale_language): Declare with GCC attribute 'pure'.
531         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
532         with GCC attribute 'const'.
533         * lib/unictype.in.h (uc_is_general_category_withtable,
534         uc_combining_class, uc_combining_class_name,
535         uc_combining_class_long_name, uc_bidi_class_name,
536         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
537         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
538         uc_decimal_value, uc_digit_value, uc_numeric_value,
539         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
540         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
541         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
542         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
543         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
544         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
545         Declare with GCC attribute 'const'.
546         (uc_general_category_name, uc_general_category_long_name,
547         uc_general_category_byname, uc_general_category,
548         uc_is_general_category, uc_combining_class_byname,
549         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
550         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
551         Declare with GCC attribute 'pure'.
552         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
553         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
554         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
555         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
556         with GCC attribute 'pure'.
557         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
558         'const'.
559         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
560         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
561         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
562         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
563         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
564         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
565         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
566         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
567         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
568         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
569         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
570         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
571         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
572         GCC attribute 'pure'.
573         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
574         'const'.
575         * lib/uniwidth.in.h (uc_width): Simplify declaration.
576         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
577         u32_strwidth): Declare with GCC attribute 'pure'.
578
579         Enable common subexpression optimization in GCC.
580         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
581         (alphasort): Declare with GCC attribute 'pure'.
582         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
583         (atoll): Declare with GCC attribute 'pure'.
584         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
585         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
586         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
587         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
588         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
589         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
590         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
591
592 2012-03-24  Bruno Haible  <bruno@clisp.org>
593
594         gnulib-tool: Avoid unintended error output from 'cmp'.
595         * gnulib-tool (func_add_file, func_update_file, func_import): Use
596         "cmp -s", not "cmp > /dev/null".
597
598 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
599
600         gnulib-tool: fix imprecise comments w.r.t. an automake bug
601
602         It's not just Automake versions < 1.9b that creates an empty
603         pkgdatadir at installation time if pkgdata_DATA is specified
604         to empty; modern automake versions do this as well, at least
605         until automake 1.11.4 (not yet released at the moment of writing,
606         but soon to appear).  That behaviour was generally considered a
607         feature rather than a bug, at least until this discussion:
608         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
609
610         See also automake bugs #10997 and #11030.
611
612         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
613         reference to relevant automake bug numbers.
614         (func_emit_tests_Makefile_am): Likewise.
615
616 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
617
618         announce-gen: use Digest::SHA when possible
619         * build-aux/announce-gen: Use Digest::SHA when possible, falling
620         back to Digest::SHA1 if necessary.
621
622 2012-03-20  Jim Meyering  <meyering@redhat.com>
623
624         tests: avoid gcc warnings about argv vs. const initializers
625         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
626         warnings about discarding 'const' qualifier from pointer target type.
627         * tests/test-posix_spawn2.c (main): Likewise.
628
629 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
630
631         README-release: simplify slightly
632         * top/README-release: Run "git checkout master" only once.
633
634 2012-03-15  Mark Wielaard  <mark@klomp.org>
635
636         git-merge-changelog: add specific example on how to use with hg.
637         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
638
639 2012-03-18  Mark Wielaard  <mark@klomp.org>
640
641         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
642
643 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
644
645         git-version-gen: don't let "prefix" envvar cause trouble
646         * build-aux/git-version-gen (prefix): Initialize properly,
647         so as not to use a value specified via the environment.
648         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
649
650 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
651
652         regex: diagnose too-large repeat counts in EREs
653         Previously, the code did not diagnose the too-large repeat count
654         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
655         as if it were 'b\{1000000000}', which is unexpected.
656         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
657         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
658         is a reasonable one for this problem.  Another option would be to
659         create a new REG_OVERFLOW error for repeat counts that are too large.
660         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
661         count is too large, so that the caller can distinguish the two cases.
662         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
663         "Too large" return code, and that repeat counts are one example of this.
664
665 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
666
667         doc: some glibc x32 integer width issues
668         * doc/posix-headers/sys_types.texi (sys/types.h):
669         * doc/posix-headers/time.texi (time.h):
670         Mention that glibc x32 does not conform to POSIX in a couple of
671         areas related to integer widths.
672
673 2012-03-15  Bruno Haible  <bruno@clisp.org>
674
675         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
676         * lib/fma.c (VOLATILE): New macro.
677         (FUNC): Use it to work around a GCC compiler bug.
678
679 2012-03-13  Bruno Haible  <bruno@clisp.org>
680
681         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
682         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
683         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
684         REPLACE_HYPOTL to 1.
685         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
686
687 2012-03-13  Bruno Haible  <bruno@clisp.org>
688
689         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
690         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
691         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
692         REPLACE_REMAINDERL to 1.
693         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
694         bug.
695
696 2012-03-13  Bruno Haible  <bruno@clisp.org>
697
698         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
699         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
700         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
701         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
702         too big rounding errors.
703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
704         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
705         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
706         (Depends-on): Update conditions.
707         * tests/test-sqrtl.c (my_ldexpl): New function.
708         (main): Add test of a particular value.
709         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
710
711 2012-03-13  Pádraig Brady  <P@draigBrady.com>
712
713         doc: Update timer_* platform portability notes.
714         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
715         that always return ENOSYS.
716         * doc/posix-functions/timer_delete.texi: Likewise.
717         * doc/posix-functions/timer_gettime.texi: Likewise.
718         * doc/posix-functions/timer_settime.texi: Likewise.
719
720 2012-03-13  Bruno Haible  <bruno@clisp.org>
721
722         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
723         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
724         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
725         REPLACE_CBRTL to 1.
726         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
727
728 2012-03-13  Bruno Haible  <bruno@clisp.org>
729
730         remainderl: Avoid compilation error on AIX >= 5.2.
731         * lib/math.in.h (remainderl): Undefine macro from the system header.
732
733 2012-03-13  Bruno Haible  <bruno@clisp.org>
734
735         Avoid compilation errors with MSVC option -fp:strict.
736         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
737         * lib/cbrtf.c: Likewise.
738         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
739
740 2012-03-12  Bruno Haible  <bruno@clisp.org>
741
742         uninorm: Don't crash in out-of-memory conditions.
743         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
744         gracefully.
745         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
746         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
747
748 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
749
750         quote: fix syntax-check
751         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
752         also exports quote_quoting_options.
753
754 2012-03-12  Simon Josefsson  <simon@josefsson.org>
755
756         Collapse list of copyright years to ranges.  See
757         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
758         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
759         build-aux/csharpexec.sh.in, build-aux/gnupload,
760         build-aux/install-reloc, build-aux/javacomp.sh.in,
761         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
762         build-aux/move-if-change, build-aux/reloc-ldflags,
763         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
764
765 2012-03-11  Bruno Haible  <bruno@clisp.org>
766
767         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
768         * m4/log2f-ieee.m4: New file.
769         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
770         whether log2f works with a minus zero argument. Replace it if not.
771         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
772         (Depends-on): Add log2-ieee.
773         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
774         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
775
776         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
777         * m4/log2-ieee.m4: New file.
778         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
779         whether log2 works with a minus zero argument. Replace it if not.
780         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
781         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
782         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
783
784         Tests for module 'log2l-ieee'.
785         * modules/log2l-ieee-tests: New file.
786         * tests/test-log2l-ieee.c: New file.
787
788         New module 'log2l-ieee'.
789         * modules/log2l-ieee: New file.
790
791         Tests for module 'log2-ieee'.
792         * modules/log2-ieee-tests: New file.
793         * tests/test-log2-ieee.c: New file.
794
795         New module 'log2-ieee'.
796         * modules/log2-ieee: New file.
797
798         Tests for module 'log2f-ieee'.
799         * modules/log2f-ieee-tests: New file.
800         * tests/test-log2f-ieee.c: New file.
801         * tests/test-log2-ieee.h: New file.
802
803         New module 'log2f-ieee'.
804         * modules/log2f-ieee: New file.
805
806 2012-03-11  Bruno Haible  <bruno@clisp.org>
807
808         Tests for module 'log2l'.
809         * modules/log2l-tests: New file.
810         * tests/test-log2l.c: New file.
811
812         New module 'log2l'.
813         * lib/math.in.h (log2l): New declaration.
814         * lib/log2l.c: New file.
815         * m4/log2l.m4: New file.
816         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
818         REPLACE_LOG2L.
819         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
820         REPLACE_LOG2L.
821         * modules/log2l: New file.
822         * tests/test-math-c++.cc: Check the declaration of log2l.
823         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
824         and OSF/1 problems.
825
826 2012-03-11  Bruno Haible  <bruno@clisp.org>
827
828         Tests for module 'log2f'.
829         * modules/log2f-tests: New file.
830         * tests/test-log2f.c: New file.
831
832         New module 'log2f'.
833         * lib/math.in.h (log2f): New declaration.
834         * lib/log2f.c: New file.
835         * m4/log2f.m4: New file.
836         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
838         REPLACE_LOG2F.
839         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
840         REPLACE_LOG2F.
841         * modules/log2f: New file.
842         * tests/test-math-c++.cc: Check the declaration of log2f.
843         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
844         and OSF/1 and Cygwin problems.
845
846 2012-03-11  Bruno Haible  <bruno@clisp.org>
847
848         Tests for module 'log2'.
849         * modules/log2-tests: New file.
850         * tests/test-log2.c: New file.
851         * tests/test-log2.h: New file.
852
853         New module 'log2'.
854         * lib/math.in.h (log2): New declaration.
855         * lib/log2.c: New file.
856         * m4/log2.m4: New file.
857         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
859         REPLACE_LOG2.
860         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
861         REPLACE_LOG2.
862         * modules/log2: New file.
863         * tests/test-math-c++.cc: Check the declaration of log2.
864         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
865         and OSF/1 and Cygwin problems.
866
867 2012-03-11  Bruno Haible  <bruno@clisp.org>
868
869         exp2* tests: More tests.
870         * tests/test-exp2.h (test_function): Test all integral arguments that
871         don't need to overflow or denormalized numbers.
872         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
873         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
874         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
875
876 2012-03-10  Bruno Haible  <bruno@clisp.org>
877
878         log1pl-ieee: Work around test failure on AIX 7.1.
879         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
880
881         log1pl-ieee: Work around test failure on IRIX 6.5.
882         * m4/log1pl-ieee.m4: New file.
883         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
884         test whether log1pl works with a minus zero argument. Replace it if
885         not.
886         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
888         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
889         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
890         (Depends-on): Update conditions.
891         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
892         m4/signbit.m4.
893         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
894         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
895
896         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
897         * m4/log1pf-ieee.m4: New file.
898         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
899         test whether log1pf works with a minus zero argument. Replace it if
900         not.
901         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
902         m4/signbit.m4.
903         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
904         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
905
906         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
907         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
908         (configure.ac): Require gl_FUNC_LOG1PF.
909
910         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
911         * m4/log1p-ieee.m4: New file.
912         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
913         whether log1p works with a minus zero argument. Replace it if not.
914         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
916         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
917         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
918         (Depends-on): Update conditions.
919         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
920         m4/signbit.m4.
921         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
922         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
923
924         Tests for module 'log1pl-ieee'.
925         * modules/log1pl-ieee-tests: New file.
926         * tests/test-log1pl-ieee.c: New file.
927
928         New module 'log1pl-ieee'.
929         * modules/log1pl-ieee: New file.
930
931         Tests for module 'log1p-ieee'.
932         * modules/log1p-ieee-tests: New file.
933         * tests/test-log1p-ieee.c: New file.
934
935         New module 'log1p-ieee'.
936         * modules/log1p-ieee: New file.
937
938         Tests for module 'log1pf-ieee'.
939         * modules/log1pf-ieee-tests: New file.
940         * tests/test-log1pf-ieee.c: New file.
941         * tests/test-log1p-ieee.h: New file.
942
943         New module 'log1pf-ieee'.
944         * modules/log1pf-ieee: New file.
945
946 2012-03-10  Bruno Haible  <bruno@clisp.org>
947
948         Tests for module 'log1pl'.
949         * modules/log1pl-tests: New file.
950         * tests/test-log1pl.c: New file.
951
952         New module 'log1pl'.
953         * lib/math.in.h (log1pl): New declaration.
954         * lib/log1pl.c: New file.
955         * m4/log1pl.m4: New file.
956         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
958         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
959         * modules/log1pl: New file.
960         * tests/test-math-c++.cc: Check the declaration of log1pl.
961         * doc/posix-functions/log1pl.texi: Mention the new module.
962
963 2012-03-10  Bruno Haible  <bruno@clisp.org>
964
965         Tests for module 'log1pf'.
966         * modules/log1pf-tests: New file.
967         * tests/test-log1pf.c: New file.
968
969         New module 'log1pf'.
970         * lib/math.in.h (log1pf): New declaration.
971         * lib/log1pf.c: New file.
972         * m4/log1pf.m4: New file.
973         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
975         REPLACE_LOG1PF.
976         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
977         REPLACE_LOG1PF.
978         * modules/log1pf: New file.
979         * tests/test-math-c++.cc: Check the declaration of log1pf.
980         * doc/posix-functions/log1pf.texi: Mention the new module.
981
982 2012-03-10  Bruno Haible  <bruno@clisp.org>
983
984         log1p tests: More tests.
985         * tests/test-log1p.h: New file.
986         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
987         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
988         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
989         (main): Invoke test_function.
990
991         log1p: Provide replacement for Minix and MSVC.
992         * lib/math.in.h (log1p): New declaration.
993         * lib/log1p.c: New file.
994         * m4/log1p.m4: New file.
995         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
997         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
998         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
999         (Depends-on): Add math, isnand, log, round.
1000         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1001         HAVE_LOG1P is 0.
1002         * tests/test-math-c++.cc: Check the declaration of log1p.
1003         * doc/posix-functions/log1p.texi: Mention the replacement.
1004
1005 2012-03-10  Bruno Haible  <bruno@clisp.org>
1006
1007         math tests: Small simplification.
1008         * tests/test-exp.h (test_function): Use the same err_bound for
1009         'double' on platforms with sizeof (long double) == sizeof (double)
1010         than on platforms with sizeof (long double) > sizeof (double).
1011         * tests/test-exp2.h (test_function): Likewise.
1012         * tests/test-expm1.h (test_function): Likewise.
1013         * tests/test-log.h (test_function): Likewise.
1014
1015 2012-03-10  Bruno Haible  <bruno@clisp.org>
1016
1017         Fix some comments.
1018         * lib/expl.c: Fix an ambiguous comment.
1019         * lib/expm1.c: Likewise.
1020         * lib/expm1l.c: Likewise.
1021         * lib/exp2.c: Likewise.
1022         * lib/exp2l.c: Likewise.
1023
1024 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         regex: allow inclusion of <regex.h> before <limits.h>
1027         Without this patch, portable programs had to include <limits.h> before
1028         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1029         I ran into this problem with a test version of GNU grep on Solaris 8.
1030         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1031         This is done conditionally so that this change can be merged
1032         back to glibc.
1033         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1034         using the included regex.
1035
1036         fts: depend on fdopendir
1037         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1038         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1039         problem was introduced when fdopendir was split out.
1040
1041 2012-03-10  Bruno Haible  <bruno@clisp.org>
1042
1043         Remove unused variables.
1044         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1045         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1046
1047 2012-03-10  Bruno Haible  <bruno@clisp.org>
1048
1049         isnanf-nolibm: Fix last commit.
1050         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1051
1052         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1053         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1054
1055 2012-03-10  Bruno Haible  <bruno@clisp.org>
1056
1057         logf-ieee: Work around test failure on NetBSD 5.1.
1058         * m4/logf-ieee.m4: New file.
1059         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1060         whether logf works with a negative argument. Replace it if not.
1061         * lib/logf.c (logf): For negative arguments, return NaN.
1062         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1063         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1064         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1065
1066         logf-ieee: Work around test failure on Solaris 9.
1067         * modules/logf-ieee (Depends-on): Add log-ieee.
1068         (configure.ac): Require gl_FUNC_LOGF.
1069
1070         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1071         * m4/log-ieee.m4: New file.
1072         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1073         log works with a negative argument. Replace it if not.
1074         * lib/log.c (log): For negative arguments, return NaN.
1075         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1076         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1077         * doc/posix-functions/log.texi: Mention the log-ieee module.
1078
1079         Tests for module 'logl-ieee'.
1080         * modules/logl-ieee-tests: New file.
1081         * tests/test-logl-ieee.c: New file.
1082
1083         New module 'logl-ieee'.
1084         * modules/logl-ieee: New file.
1085
1086         Tests for module 'log-ieee'.
1087         * modules/log-ieee-tests: New file.
1088         * tests/test-log-ieee.c: New file.
1089
1090         New module 'log-ieee'.
1091         * modules/log-ieee: New file.
1092
1093         Tests for module 'logf-ieee'.
1094         * modules/logf-ieee-tests: New file.
1095         * tests/test-logf-ieee.c: New file.
1096         * tests/test-log-ieee.h: New file.
1097
1098         New module 'logf-ieee'.
1099         * modules/logf-ieee: New file.
1100
1101 2012-03-10  Bruno Haible  <bruno@clisp.org>
1102
1103         log: Fix bug introduced on 2012-03-09.
1104         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1105
1106 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1107
1108         timer-time: link explicitly with pthreads on glibc
1109         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1110         to support static linking, when newer glibc is
1111         detected, as that contains pthread emulation of
1112         POSIX timer functions where required.
1113         * modules/timer-time: Depend on threadlib to
1114         pull in the appropriate library to link.
1115
1116 2012-03-10  Bruno Haible  <bruno@clisp.org>
1117
1118         log* tests: More tests.
1119         * tests/test-log.h: New file.
1120         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1121         (main): Invoke test_function.
1122         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1123         (main): Invoke test_function.
1124         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1125         (main): Invoke test_function.
1126         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1127         tests/randomd.c.
1128         (Makefile.am): Add randomd.c to test_log_SOURCES.
1129         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1130         tests/randomf.c.
1131         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1132         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1133         tests/randoml.c.
1134         (Depends-on): Add 'float'.
1135         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1136
1137 2012-03-09  Bruno Haible  <bruno@clisp.org>
1138
1139         logl: Work around OSF/1 5.1 bug.
1140         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1141         * lib/logl.c (logl): If logl exists, use it and provide just the
1142         workaround.
1143         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1144         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1146         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1147         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1148         (Depends-on): Update conditions.
1149         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1150
1151 2012-03-09  Bruno Haible  <bruno@clisp.org>
1152
1153         logf: Work around OSF/1 5.1 bug.
1154         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1155         * lib/logf.c (logf): If logf exists, use it and provide just the
1156         workaround.
1157         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1158         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1160         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1161         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1162         (Depends-on): Update conditions.
1163         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1164
1165 2012-03-09  Bruno Haible  <bruno@clisp.org>
1166
1167         log: Work around OSF/1 5.1 bug.
1168         * lib/math.in.h (log): New declaration.
1169         * lib/log.c: New file.
1170         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1171         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1172         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1174         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1175         * modules/log (Files): Add lib/log.c.
1176         (Depends-on): Add math.
1177         (configure.ac): If REPLACE_LOG is 1, compile an override.
1178         * tests/test-math-c++.cc: Check the declaration of log.
1179         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1180
1181 2012-03-09  Jim Meyering  <meyering@redhat.com>
1182
1183         readtokens.c: adjust wording in a comment
1184         * lib/readtokens.c: Insert omitted "that" in a comment.
1185
1186 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         modechange: add notations +40, 00440, etc.
1189         * lib/modechange.c (mode_compile): Support new notations
1190         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1191
1192 2012-03-08  Bruno Haible  <bruno@clisp.org>
1193
1194         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1195         * m4/exp2l-ieee.m4: New file.
1196         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1197         test whether exp2l works with a NaN argument and with a negative
1198         infinity argument. Replace it if not.
1199         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1201         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1202         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1203         (Depends-on): Update conditions.
1204         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1205         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1206         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1207
1208         Tests for module 'exp2l-ieee'.
1209         * modules/exp2l-ieee-tests: New file.
1210         * tests/test-exp2l-ieee.c: New file.
1211
1212         New module 'exp2l-ieee'.
1213         * modules/exp2l-ieee: New file.
1214
1215         Tests for module 'exp2-ieee'.
1216         * modules/exp2-ieee-tests: New file.
1217         * tests/test-exp2-ieee.c: New file.
1218
1219         New module 'exp2-ieee'.
1220         * modules/exp2-ieee: New file.
1221
1222         Tests for module 'exp2f-ieee'.
1223         * modules/exp2f-ieee-tests: New file.
1224         * tests/test-exp2f-ieee.c: New file.
1225         * tests/test-exp2-ieee.h: New file.
1226
1227         New module 'exp2f-ieee'.
1228         * modules/exp2f-ieee: New file.
1229
1230 2012-03-08  Bruno Haible  <bruno@clisp.org>
1231
1232         Tests for module 'exp2l'.
1233         * modules/exp2l-tests: New file.
1234         * tests/test-exp2l.c: New file.
1235
1236         New module 'exp2l'.
1237         * lib/math.in.h (exp2l): New declaration.
1238         * lib/exp2l.c: New file.
1239         * lib/expl-table.c: New file, extracted from lib/expl.c.
1240         * lib/expl.c (gl_expl_table): New declaration.
1241         (expl): Remove expl_table. Update reference.
1242         * m4/exp2l.m4: New file.
1243         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1245         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1246         * modules/exp2l: New file.
1247         * modules/expl (Files): Add lib/expl-table.c.
1248         (configure.ac): Compile also expl-table.c.
1249         * tests/test-math-c++.cc: Check the declaration of exp2l.
1250         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1251         problem.
1252
1253 2012-03-08  Bruno Haible  <bruno@clisp.org>
1254
1255         Tests for module 'exp2f'.
1256         * modules/exp2f-tests: New file.
1257         * tests/test-exp2f.c: New file.
1258
1259         New module 'exp2f'.
1260         * lib/math.in.h (exp2f): New declaration.
1261         * lib/exp2f.c: New file.
1262         * m4/exp2f.m4: New file.
1263         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1265         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1266         * modules/exp2f: New file.
1267         * tests/test-math-c++.cc: Check the declaration of exp2f.
1268         * doc/posix-functions/exp2f.texi: Mention the new module and the
1269         IRIX problem.
1270
1271 2012-03-08  Bruno Haible  <bruno@clisp.org>
1272
1273         Tests for module 'exp2'.
1274         * modules/exp2-tests: New file.
1275         * tests/test-exp2.c: New file.
1276         * tests/test-exp2.h: New file.
1277
1278         New module 'exp2'.
1279         * lib/math.in.h (exp2): New declaration.
1280         * lib/exp2.c: New file.
1281         * m4/exp2.m4: New file.
1282         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1284         REPLACE_EXP2.
1285         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1286         REPLACE_EXP2.
1287         * modules/exp2: New file.
1288         * tests/test-math-c++.cc: Check the declaration of exp2.
1289         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1290         and OpenBSD problems.
1291
1292 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1293
1294         savedir: fix comment typo
1295         * lib/savedir.c (savedirstream): Fix typo in comment.
1296
1297 2012-03-08  Bruno Haible  <bruno@clisp.org>
1298
1299         test-readtokens.c: use const; remove unwarranted cast
1300         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1301
1302 2012-03-08  Bruno Haible  <bruno@clisp.org>
1303
1304         fmal: Avoid compilation error on AIX.
1305         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1306         AIX 5.2..7.1.
1307
1308 2012-03-08  Bruno Haible  <bruno@clisp.org>
1309
1310         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1311         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1312         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1313         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1314         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1315         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1316         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1317
1318 2012-03-08  Bruno Haible  <bruno@clisp.org>
1319
1320         remainderf: Override buggy system function on IRIX 6.5.
1321         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1322         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1323         when it exists.
1324         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1325
1326 2012-03-08  Jim Meyering  <meyering@redhat.com>
1327
1328         test-readtokens.c: avoid const-related compilation warnings
1329         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1330
1331 2012-03-07  Jim Meyering  <meyering@redhat.com>
1332             Bruno Haible  <bruno@clisp.org>
1333
1334         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1335         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1336         tests/randomd.c.
1337         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1338         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1339         tests/randoml.c.
1340         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1341
1342 2012-03-07  Bruno Haible  <bruno@clisp.org>
1343
1344         expm1l: Avoid compilation error on AIX.
1345         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1346         AIX 5.2..7.1.
1347
1348 2012-03-07  Bruno Haible  <bruno@clisp.org>
1349
1350         expm1l: Don't override undeclared system function on IRIX 6.5.
1351         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1352         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1353         it exists. Set HAVE_DECL_EXPM1L.
1354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1355         HAVE_EXPM1L.
1356         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1357         HAVE_EXPM1L.
1358         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1359
1360 2012-03-07  Bruno Haible  <bruno@clisp.org>
1361
1362         remainderl: Don't override undeclared system function on IRIX 6.5.
1363         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1364         HAVE_REMAINDERL.
1365         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1366         declared when it exists. Set HAVE_DECL_REMAINDERL.
1367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1368         not HAVE_REMAINDERL.
1369         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1370         HAVE_REMAINDERL.
1371         * doc/posix-functions/remainderl.texi: Mention missing declaration
1372         problem.
1373
1374 2012-03-07  Bruno Haible  <bruno@clisp.org>
1375
1376         rintf: Don't override undeclared system function on IRIX 6.5.
1377         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1378         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1379         exists. Set HAVE_DECL_RINTF.
1380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1381         HAVE_RINTF.
1382         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1383         HAVE_RINTF.
1384         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1385
1386 2012-03-07  Bruno Haible  <bruno@clisp.org>
1387
1388         roundl: Avoid compilation error on AIX.
1389         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1390         AIX 5.2..7.1.
1391
1392 2012-03-07  Bruno Haible  <bruno@clisp.org>
1393
1394         roundl: Don't override undeclared system function on IRIX 6.5.
1395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1396         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1397         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1398         * modules/roundl (configure.ac): For replacement code, test
1399         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1400         (Depends-on): Update conditions.
1401         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1402
1403 2012-03-07  Bruno Haible  <bruno@clisp.org>
1404
1405         roundf: Don't override undeclared system function on IRIX 6.5.
1406         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1407         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1408         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1409         * modules/roundf (configure.ac): For replacement code, test
1410         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1411         (Depends-on): Update conditions.
1412         * modules/roundf-ieee (Depends-on): Update conditions.
1413         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1414
1415 2012-03-07  Bruno Haible  <bruno@clisp.org>
1416
1417         round: Don't override undeclared system function on IRIX 6.5.
1418         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1419         argument.
1420         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1421         also when it is not declared. Set HAVE_ROUND. For replacement code,
1422         test HAVE_ROUND, not HAVE_DECL_ROUND.
1423         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1424         not HAVE_DECL_ROUND.
1425         (Depends-on): Update conditions.
1426         * modules/round-ieee (Depends-on): Update conditions.
1427         * doc/posix-functions/round.texi: Mention the IRIX problem.
1428
1429 2012-03-07  Bruno Haible  <bruno@clisp.org>
1430
1431         copysignf: Don't override undeclared system function on IRIX 6.5.
1432         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1433         HAVE_COPYSIGNF.
1434         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1435         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1437         not HAVE_COPYSIGNF.
1438         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1439         HAVE_COPYSIGNF.
1440         * doc/posix-functions/copysignf.texi: Mention missing declaration
1441         problem.
1442
1443 2012-03-07  Jim Meyering  <meyering@redhat.com>
1444
1445         readtokens: add tests
1446         * modules/readtokens-tests: New file.
1447         * tests/test-readtokens.c: New file.
1448
1449 2012-03-07  Jim Meyering  <meyering@redhat.com>
1450
1451         quotearg: the module must now include quote.h
1452         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1453         So must the module.
1454         * modules/quotearg (Files): Add quote.h.
1455
1456 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1457
1458         readtokens: avoid core dumps with unusual calling patterns
1459         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1460         * lib/readtokens.c: Include limits.h.
1461         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1462         (readtoken): Don't cache the delimiters; the cache code was buggy
1463         if !delim && saved_delim, or if the new n_delim differs from the old.
1464         Also, it wasn't thread-safe.
1465
1466 2012-03-07  Bruno Haible  <bruno@clisp.org>
1467
1468         quote: Adhere to common module description layout.
1469         * modules/quote (Makefile.am): Add back empty section.
1470
1471 2012-03-06  Akim Demaille  <demaille@gostai.com>
1472
1473         quote: fuse into quotearg
1474         This patch is made for the benefit of Bison.
1475         quote does not leave the choice of the quoting style to the user.
1476         quoting_style provides poor customizability, yet quoting_options,
1477         which is very rich, is hidden inside quotearg.c.  So in order to
1478         allow quote customization, move its implementation to quotearg.c.
1479         * lib/quote.c: Remove.
1480         * modules/quote: Adjust.
1481         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1482         warning: provide all the members of literal structs.
1483         (quote_quoting_options): New.
1484         (quote, quote_n): Import implementation from quote.c.
1485         * lib/quote.h: Import the comments from quote.c.
1486         (quote_quoting_options): New.
1487
1488 2012-03-06  Bruno Haible  <bruno@clisp.org>
1489
1490         Tests for module 'expm1l-ieee'.
1491         * modules/expm1l-ieee-tests: New file.
1492         * tests/test-expm1l-ieee.c: New file.
1493
1494         New module 'expm1l-ieee'.
1495         * modules/expm1l-ieee: New file.
1496
1497         Tests for module 'expm1f-ieee'.
1498         * modules/expm1f-ieee-tests: New file.
1499         * tests/test-expm1f-ieee.c: New file.
1500
1501         New module 'expm1f-ieee'.
1502         * modules/expm1f-ieee: New file.
1503
1504         Tests for module 'expm1-ieee'.
1505         * modules/expm1-ieee-tests: New file.
1506         * tests/test-expm1-ieee.c: New file.
1507         * tests/test-expm1-ieee.h: New file.
1508
1509         New module 'expm1-ieee'.
1510         * modules/expm1-ieee: New file.
1511         * m4/expm1-ieee.m4: New file.
1512         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1513         whether expm1 works with a minus zero argument. Replace it if not.
1514         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1516         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1517         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1518         (Depends-on): Update conditions.
1519         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1520         AIX problem.
1521
1522 2012-03-06  Bruno Haible  <bruno@clisp.org>
1523
1524         Work around expm1f bug on IRIX 6.5.
1525         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1526         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1527         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1528         not work.
1529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1530         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1531         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1532         (Depends-on): Update conditions.
1533         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1534
1535 2012-03-06  Bruno Haible  <bruno@clisp.org>
1536
1537         Tests for module 'expm1l'.
1538         * modules/expm1l-tests: New file.
1539         * tests/test-expm1l.c: New file.
1540
1541         New module 'expm1l'.
1542         * lib/math.in.h (expm1l): New declaration.
1543         * lib/expm1l.c: New file.
1544         * m4/expm1l.m4: New file.
1545         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1547         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1548         * modules/expm1l: New file.
1549         * tests/test-math-c++.cc: Check the declaration of expm1l.
1550         * doc/posix-functions/expm1l.texi: Mention the new module.
1551
1552 2012-03-06  Bruno Haible  <bruno@clisp.org>
1553
1554         Tests for module 'expm1f'.
1555         * modules/expm1f-tests: New file.
1556         * tests/test-expm1f.c: New file.
1557
1558         New module 'expm1f'.
1559         * lib/math.in.h (expm1f): New declaration.
1560         * lib/expm1f.c: New file.
1561         * m4/expm1f.m4: New file.
1562         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1564         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1565         * modules/expm1f: New file.
1566         * tests/test-math-c++.cc: Check the declaration of expm1f.
1567         * doc/posix-functions/expm1f.texi: Mention the new module.
1568
1569 2012-03-06  Bruno Haible  <bruno@clisp.org>
1570
1571         Tests for module 'expm1'.
1572         * modules/expm1-tests: New file.
1573         * tests/test-expm1.c: New file.
1574         * tests/test-expm1.h: New file.
1575
1576         New module 'expm1'.
1577         * lib/math.in.h (expm1): New declaration.
1578         * lib/expm1.c: New file.
1579         * m4/expm1.m4: New file.
1580         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1582         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1583         * modules/expm1: New file.
1584         * tests/test-math-c++.cc: Check the declaration of expm1.
1585         * doc/posix-functions/expm1.texi: Mention the new module.
1586
1587 2012-03-06  Bruno Haible  <bruno@clisp.org>
1588
1589         math: Ensure declarations of math functions.
1590         * modules/acosf (Depends-on): Add 'extensions'.
1591         * modules/asinf (Depends-on): Likewise.
1592         * modules/atan2f (Depends-on): Likewise.
1593         * modules/atanf (Depends-on): Likewise.
1594         * modules/cbrt (Depends-on): Likewise.
1595         * modules/cbrtf (Depends-on): Likewise.
1596         * modules/cbrtl (Depends-on): Likewise.
1597         * modules/copysignf (Depends-on): Likewise.
1598         * modules/copysignl (Depends-on): Likewise.
1599         * modules/cosf (Depends-on): Likewise.
1600         * modules/coshf (Depends-on): Likewise.
1601         * modules/expf (Depends-on): Likewise.
1602         * modules/fabsf (Depends-on): Likewise.
1603         * modules/fabsl (Depends-on): Likewise.
1604         * modules/fmaf (Depends-on): Likewise.
1605         * modules/fmal (Depends-on): Likewise.
1606         * modules/fmodf (Depends-on): Likewise.
1607         * modules/fmodl (Depends-on): Likewise.
1608         * modules/frexpf (Depends-on): Likewise.
1609         * modules/frexpl (Depends-on): Likewise.
1610         * modules/hypot (Depends-on): Likewise.
1611         * modules/hypotf (Depends-on): Likewise.
1612         * modules/hypotl (Depends-on): Likewise.
1613         * modules/ldexpf (Depends-on): Likewise.
1614         * modules/ldexpl (Depends-on): Likewise.
1615         * modules/log10f (Depends-on): Likewise.
1616         * modules/log10l (Depends-on): Likewise.
1617         * modules/log1p (Depends-on): Likewise.
1618         * modules/logb (Depends-on): Likewise.
1619         * modules/logf (Depends-on): Likewise.
1620         * modules/modff (Depends-on): Likewise.
1621         * modules/modfl (Depends-on): Likewise.
1622         * modules/powf (Depends-on): Likewise.
1623         * modules/remainderf (Depends-on): Likewise.
1624         * modules/remainderl (Depends-on): Likewise.
1625         * modules/rintf (Depends-on): Likewise.
1626         * modules/rintl (Depends-on): Likewise.
1627         * modules/sinf (Depends-on): Likewise.
1628         * modules/sinhf (Depends-on): Likewise.
1629         * modules/sqrtf (Depends-on): Likewise.
1630         * modules/tanf (Depends-on): Likewise.
1631         * modules/tanhf (Depends-on): Likewise.
1632         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1633         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1634         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1635         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1636         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1637         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1638         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1639         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1640         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1641         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1642         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1643         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1644         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1645         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1646         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1647         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1648         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1649         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1650         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1651         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1652         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1653         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1654         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1655         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1656         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1657         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1658         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1659         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1660         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1661         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1662         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1663         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1664         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1665         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1666         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1667         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1668         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1669         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1670         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1671         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1672         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1673
1674 2012-03-06  Bruno Haible  <bruno@clisp.org>
1675
1676         math: Update module names in warnings.
1677         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1678         tanl): Use specific module name in warn-on-use warning.
1679
1680 2012-03-06  Bruno Haible  <bruno@clisp.org>
1681
1682         expl: Simplify computation.
1683         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1684
1685 2012-03-05  Bruno Haible  <bruno@clisp.org>
1686
1687         exp* tests: More tests.
1688         * tests/test-exp.h: New file.
1689         * tests/test-exp.c: Include <float.h> and test-exp.h.
1690         (main): Invoke test_function.
1691         * tests/test-expf.c: Include <float.h> and test-exp.h.
1692         (main): Invoke test_function.
1693         * tests/test-expl.c: Include <float.h> and test-exp.h.
1694         (main): Invoke test_function.
1695         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1696         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1697         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1698         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1699         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1700         (Depends-on): Add 'float'.
1701         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1702
1703         expl: Fix precision of computed result.
1704         * lib/expl.c: Completely rewritten.
1705         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1706         (Maintainer): Add me.
1707         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1708
1709 2012-03-05  Bruno Haible  <bruno@clisp.org>
1710
1711         cbrt* tests: More tests.
1712         * tests/test-cbrt.h: New file.
1713         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1714         (main): Invoke test_function.
1715         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1716         (main): Invoke test_function.
1717         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1718         (main): Invoke test_function.
1719         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1720         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1721         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1722         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1723         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1724         (Depends-on): Add 'float'.
1725         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1726
1727 2012-03-05  Bruno Haible  <bruno@clisp.org>
1728
1729         hypot* tests: More tests.
1730         * tests/test-hypot.h: New file, partially extracted from
1731         tests/test-hypotl.c.
1732         * tests/test-hypot.c: Include test-hypot.h.
1733         (main): Invoke test_function.
1734         * tests/test-hypotf.c: Include test-hypot.h.
1735         (main): Invoke test_function.
1736         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1737         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1738         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1739         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1740         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1741         tests/randomf.c.
1742         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1743         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1744         tests/randoml.c.
1745         (Depends-on): Add 'fpucw', 'float'.
1746         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1747
1748 2012-03-05  Bruno Haible  <bruno@clisp.org>
1749
1750         fpucw: Doc about FreeBSD.
1751         * lib/fpucw.h: Mention FreeBSD in comments.
1752
1753 2012-03-04  Bruno Haible  <bruno@clisp.org>
1754
1755         sqrt* tests: More tests.
1756         * tests/test-sqrt.h: New file.
1757         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1758         (main): Invoke test_function.
1759         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1760         (main): Invoke test_function.
1761         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1762         (main): Invoke test_function.
1763         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1764         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1765         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1766         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1767         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1768         (Depends-on): Add 'float'.
1769         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1770
1771 2012-03-04  Bruno Haible  <bruno@clisp.org>
1772
1773         remainder* tests: More tests.
1774         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1775         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1776         (main): Invoke test_function.
1777         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1778         (main): Invoke test_function.
1779         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1780         (main): Invoke test_function.
1781         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1782         tests/randomd.c.
1783         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1784         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1785         tests/randomf.c.
1786         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1787         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1788         tests/randoml.c.
1789         (Depends-on): Add 'float'.
1790         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1791
1792 2012-03-04  Bruno Haible  <bruno@clisp.org>
1793
1794         remainder, remainderf, remainderl: Fix computation for large quotients.
1795         * lib/remainder.c: Completely rewritten.
1796         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1797         USE_FLOAT.
1798         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1799         USE_LONG_DOUBLE.
1800         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1801         isnand, isinf. Remove round, fma.
1802         * modules/remainderf (Files): Add lib/remainder.c.
1803         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1804         Remove roundf, fmaf.
1805         * modules/remainderl (Files): Add lib/remainder.c.
1806         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1807         isinf. Remove roundl, fmal.
1808         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1809         REMAINDER_LIBM.
1810         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1811         REMAINDERF_LIBM.
1812         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1813         REMAINDERL_LIBM.
1814
1815 2012-03-04  Bruno Haible  <bruno@clisp.org>
1816
1817         fmod* tests: More tests.
1818         * tests/test-fmod.h (my_ldexp): New function.
1819         (test_function): Reduce amount of random numbers to test. Add tests
1820         of very large quotients x / y.
1821         * tests/test-fmod.c (MAX_EXP): New macro.
1822         * tests/test-fmodf.c (MAX_EXP): Likewise.
1823         * tests/test-fmodl.c (MAX_EXP): Likewise.
1824
1825 2012-03-04  Bruno Haible  <bruno@clisp.org>
1826
1827         fmod, fmodl: Fix computation for large quotients x / y.
1828         * lib/fmod.c: Completely rewritten.
1829         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1830         USE_LONG_DOUBLE.
1831         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1832         isnand. Remove fma.
1833         * modules/fmodl (Files): Add lib/fmod.c.
1834         (Depends-on): Add float, isfinite, signbit, fabsl,
1835         frexpl, ldexpl, isnanl. Remove fma.
1836         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1837         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1838
1839 2012-03-03  Bruno Haible  <bruno@clisp.org>
1840
1841         fmod* tests: More tests.
1842         * tests/test-fmod.h: New file.
1843         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1844         (main): Invoke test_function.
1845         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1846         (main): Invoke test_function.
1847         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1848         (main): Invoke test_function.
1849         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1850         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1851         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1852         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1853         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1854         (Depends-on): Add 'float'.
1855         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1856
1857 2012-03-03  Bruno Haible  <bruno@clisp.org>
1858
1859         rint* tests: More tests.
1860         * tests/test-rint.h: New file, partially extracted from
1861         tests/test-rintl.c.
1862         * tests/test-rint.c: Include test-rint.h.
1863         (main): Invoke test_function.
1864         * tests/test-rintf.c: Include test-rint.h.
1865         (main): Invoke test_function.
1866         * tests/test-rintl.c: Include test-rint.h.
1867         (main): Invoke test_function.
1868         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1869         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1870         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1871         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1872         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1873         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1874
1875 2012-03-03  Bruno Haible  <bruno@clisp.org>
1876
1877         modf* tests: More tests.
1878         * tests/test-modf.h: New file.
1879         * tests/test-modf.c: Include <float.h> and test-modf.h.
1880         (main): Invoke test_function.
1881         * tests/test-modff.c: Include <float.h> and test-modf.h.
1882         (main): Invoke test_function.
1883         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1884         (main): Invoke test_function.
1885         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1886         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1887         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1888         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1889         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1890         (Depends-on): Add 'float'.
1891         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1892
1893 2012-03-03  Bruno Haible  <bruno@clisp.org>
1894
1895         fabs* tests: More tests.
1896         * tests/test-fabs.h: New file, partially extracted from
1897         tests/test-fabsl.c.
1898         * tests/test-fabs.c (RANDOM): New macro.
1899         * tests/test-fabsf.c (RANDOM): New macro.
1900         * tests/test-fabsl.c (RANDOM): New macro.
1901         * modules/fabs-tests (Files): Add tests/randomd.c.
1902         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1903         * modules/fabsf-tests (Files): Add tests/randomf.c.
1904         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1905         * modules/fabsl-tests (Files): Add tests/randoml.c.
1906         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1907
1908 2012-03-03  Bruno Haible  <bruno@clisp.org>
1909
1910         ldexp* tests: More tests.
1911         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1912         * tests/test-ldexp.c (RANDOM): New macro.
1913         * tests/test-ldexpf.c (RANDOM): New macro.
1914         * tests/test-ldexpl.c (RANDOM): New macro.
1915         * modules/ldexp-tests (Files): Add tests/randomd.c.
1916         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1917         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1918         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1919         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1920         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1921
1922 2012-03-03  Bruno Haible  <bruno@clisp.org>
1923
1924         frexp* tests: More tests.
1925         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1926         * tests/test-frexp.c (RANDOM): New macro.
1927         * tests/test-frexpf.c (RANDOM): New macro.
1928         * tests/test-frexpl.c (RANDOM): New macro.
1929         * modules/frexp-tests (Files): Add tests/randomd.c.
1930         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1931         * modules/frexpf-tests (Files): Add tests/randomf.c.
1932         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1933         * modules/frexpl-tests (Files): Add tests/randoml.c.
1934         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1935
1936 2012-03-03  Bruno Haible  <bruno@clisp.org>
1937
1938         Support for pseudo-random numbers in tests.
1939         * tests/randomf.c: New file.
1940         * tests/randomd.c: New file.
1941         * tests/randoml.c: New file.
1942         * tests/macros.h (randomf, randomd, randoml): New declarations.
1943
1944 2012-03-03  Bruno Haible  <bruno@clisp.org>
1945
1946         frexp* tests: Refactor.
1947         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1948         * tests/test-frexp.c: Include and use it.
1949         * tests/test-frexpf.c: Likewise.
1950         * tests/test-frexpl.c: Likewise.
1951         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1952         * modules/frexpf-tests (Files): Likewise.
1953         * modules/frexpl-tests (Files): Likewise.
1954
1955 2012-03-02  Jim Meyering  <meyering@redhat.com>
1956
1957         maint: don't specify XZ_OPT=-9ev in dist-related rule
1958         Using xz's -9 option is warranted only if you have a very large
1959         tarball (see xz's documentation for the sizes vs. presets), and
1960         requires 64MiB of memory at decompression time.
1961         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1962         Automake's default of just "-e" is fine.  Override on a
1963         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1964
1965 2012-03-01  Eric Blake  <eblake@redhat.com>
1966
1967         maint.mk: allow announcement for non-gnulib project
1968         * maint.mk (announcement): Skip gnulib version if not used.
1969
1970 2012-03-01  Jim Meyering  <meyering@redhat.com>
1971
1972         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1973         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1974         envvar settings cannot interfere.  Otherwise, setting envvars like
1975         prohibit=foo require=bar, etc. would cause spurious test failures.
1976
1977 2012-03-01  Eric Blake  <eblake@redhat.com>
1978
1979         maint.mk: add per-line exclusions to prohibitions
1980         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1981         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1982         (sc_const_long_option): Use it.
1983
1984 2012-03-01  Bruno Haible  <bruno@clisp.org>
1985
1986         Tests for module 'expl-ieee'.
1987         * modules/expl-ieee-tests: New file.
1988         * tests/test-expl-ieee.c: New file.
1989
1990         New module 'expl-ieee'.
1991         * modules/expl-ieee: New file.
1992
1993         Tests for module 'exp-ieee'.
1994         * modules/exp-ieee-tests: New file.
1995         * tests/test-exp-ieee.c: New file.
1996
1997         New module 'exp-ieee'.
1998         * modules/exp-ieee: New file.
1999
2000         Tests for module 'expf-ieee'.
2001         * modules/expf-ieee-tests: New file.
2002         * tests/test-expf-ieee.c: New file.
2003         * tests/test-exp-ieee.h: New file.
2004
2005         New module 'expf-ieee'.
2006         * modules/expf-ieee: New file.
2007
2008 2012-02-29  Bruno Haible  <bruno@clisp.org>
2009
2010         cbrtl-ieee: Work around test failure on IRIX 6.5.
2011         * m4/cbrtl-ieee.m4: New file.
2012         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2013         test whether cbrtl works with a minus zero argument. Replace it if not.
2014         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2016         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2017         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2018         (Depends-on): Update conditions.
2019         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2020         m4/signbit.m4.
2021         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2022         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2023         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2024
2025         Tests for module 'cbrtl-ieee'.
2026         * modules/cbrtl-ieee-tests: New file.
2027         * tests/test-cbrtl-ieee.c: New file.
2028
2029         New module 'cbrtl-ieee'.
2030         * modules/cbrtl-ieee: New file.
2031
2032         Tests for module 'cbrt-ieee'.
2033         * modules/cbrt-ieee-tests: New file.
2034         * tests/test-cbrt-ieee.c: New file.
2035
2036         New module 'cbrt-ieee'.
2037         * modules/cbrt-ieee: New file.
2038
2039         Tests for module 'cbrtf-ieee'.
2040         * modules/cbrtf-ieee-tests: New file.
2041         * tests/test-cbrtf-ieee.c: New file.
2042         * tests/test-cbrt-ieee.h: New file.
2043
2044         New module 'cbrtf-ieee'.
2045         * modules/cbrtf-ieee: New file.
2046
2047 2012-02-29  Bruno Haible  <bruno@clisp.org>
2048
2049         cbrtf: Work around bug in IRIX 6.5 system function.
2050         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2051         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2052         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2053         work.
2054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2055         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2056         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2057         (Depends-on): Update conditions.
2058         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2059
2060 2012-02-29  Bruno Haible  <bruno@clisp.org>
2061
2062         Tests for module 'cbrtl'.
2063         * modules/cbrtl-tests: New file.
2064         * tests/test-cbrtl.c: New file.
2065
2066         New module 'cbrtl'.
2067         * lib/math.in.h (cbrtl): New declaration.
2068         * lib/cbrtl.c: New file.
2069         * m4/cbrtl.m4: New file.
2070         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2072         HAVE_DECL_CBRTL.
2073         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2074         HAVE_DECL_CBRTL.
2075         * modules/cbrtl: New file.
2076         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2077         * doc/posix-functions/cbrtl.texi: Mention the new module.
2078
2079 2012-02-29  Bruno Haible  <bruno@clisp.org>
2080
2081         Tests for module 'cbrtf'.
2082         * modules/cbrtf-tests: New file.
2083         * tests/test-cbrtf.c: New file.
2084
2085         New module 'cbrtf'.
2086         * lib/math.in.h (cbrtf): New declaration.
2087         * lib/cbrtf.c: New file.
2088         * m4/cbrtf.m4: New file.
2089         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2091         HAVE_DECL_CBRTF.
2092         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2093         HAVE_DECL_CBRTF.
2094         * modules/cbrtf: New file.
2095         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2096         * doc/posix-functions/cbrtf.texi: Mention the new module.
2097
2098 2012-02-29  Bruno Haible  <bruno@clisp.org>
2099
2100         cbrt: Provide replacement on MSVC and Minix.
2101         * lib/math.in.h (cbrt): New declaration.
2102         * lib/cbrt.c: New file.
2103         * m4/cbrt.m4: New file.
2104         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2106         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2107         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2108         (Depends-on): Add dependencies.
2109         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2110         * tests/test-math-c++.cc: Check the declaration of cbrt.
2111         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2112         replacement.
2113
2114 2012-02-29  Bruno Haible  <bruno@clisp.org>
2115
2116         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2117         * m4/hypotl-ieee.m4: New file.
2118         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2119         test whether hypotl works with mixed NaN and Infinity arguments.
2120         Replace it if not.
2121         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2123         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2124         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2125         (Depends-on): Update conditions.
2126         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2127         (Depends-on): Add hypot-ieee.
2128         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2129         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2130
2131         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2132         * m4/hypotf-ieee.m4: New file.
2133         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2134         test whether hypotf works with mixed NaN and Infinity arguments.
2135         Replace it if not.
2136         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2137         (Depends-on): Add hypot-ieee.
2138         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2139         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2140
2141         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2142         * lib/math.in.h (hypot): New declaration.
2143         * lib/hypot.c: New file.
2144         * m4/hypot-ieee.m4: New file.
2145         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2146         whether hypot works with mixed NaN and Infinity arguments. Replace it
2147         if not.
2148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2149         REPLACE_HYPOT.
2150         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2151         * modules/hypot (Files): Add lib/hypot.c.
2152         (Depends-on): Add dependencies.
2153         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2154         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2155         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2156         * tests/test-math-c++.cc: Check the declaration of hypot.
2157         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2158
2159         Tests for module 'hypotl-ieee'.
2160         * modules/hypotl-ieee-tests: New file.
2161         * tests/test-hypotl-ieee.c: New file.
2162
2163         New module 'hypotl-ieee'.
2164         * modules/hypotl-ieee: New file.
2165
2166         Tests for module 'hypot-ieee'.
2167         * modules/hypot-ieee-tests: New file.
2168         * tests/test-hypot-ieee.c: New file.
2169
2170         New module 'hypot-ieee'.
2171         * modules/hypot-ieee: New file.
2172
2173         Tests for module 'hypotf-ieee'.
2174         * modules/hypotf-ieee-tests: New file.
2175         * tests/test-hypotf-ieee.c: New file.
2176         * tests/test-hypot-ieee.h: New file.
2177
2178         New module 'hypotf-ieee'.
2179         * modules/hypotf-ieee: New file.
2180
2181 2012-02-29  Bruno Haible  <bruno@clisp.org>
2182
2183         Remove unused variables.
2184         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2185         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2186         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2187         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2188
2189 2012-02-29  Eric Blake  <eblake@redhat.com>
2190
2191         termios: fix pid_t always, not just for tcgetsid
2192         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2193         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2194         just when building tcgetsid.
2195
2196 2012-02-29  Bruno Haible  <bruno@clisp.org>
2197
2198         Tests for module 'hypotl'.
2199         * modules/hypotl-tests: New file.
2200         * tests/test-hypotl.c: New file.
2201
2202         New module 'hypotl'.
2203         * lib/math.in.h (hypotl): New declaration.
2204         * lib/hypotl.c: New file.
2205         * m4/hypotl.m4: New file.
2206         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2208         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2209         * modules/hypotl: New file.
2210         * tests/test-math-c++.cc: Check the hypotl declaration.
2211         * doc/posix-functions/hypotl.texi: Mention the new module.
2212
2213 2012-02-29  Eric Blake  <eblake@redhat.com>
2214
2215         tcgetsid: fix cygwin header bug
2216         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2217
2218         docs: update cygwin progress
2219         * doc/posix-functions/llround.texi (llround): Added in cygwin
2220         1.7.8.
2221         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2222         * doc/glibc-functions/program_invocation_name.texi
2223         (program_invocation_name): Likewise.
2224         * doc/glibc-functions/program_invocation_short_name.texi
2225         (program_invocation_short_name): Likewise.
2226         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2227         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2228         Likewise.
2229         * doc/posix-functions/pthread_spin_destroy.texi
2230         (pthread_spin_destroy): Added in cygwin 1.7.10.
2231         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2232         Likewise.
2233         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2234         Likewise.
2235         * doc/posix-functions/pthread_spin_trylock.texi
2236         (pthread_spin_trylock): Likewise.
2237         * doc/posix-functions/pthread_spin_unlock.texi
2238         (pthread_spin_unlock): Likewise.
2239         * doc/posix-functions/pthread_setschedprio.texi
2240         (pthread_setschedprio): Likewise.
2241         * doc/posix-functions/pthread_attr_getstack.texi
2242         (pthread_attr_getstack): Likewise.
2243         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2244         (pthread_attr_getstackaddr): Likewise.
2245         * doc/glibc-functions/pthread_getattr_np.texi
2246         (pthread_getattr_np): Likewise.
2247         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2248         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2249         * doc/posix-functions/clock_settime.texi (clock_settime):
2250         Likewise.
2251         * doc/posix-functions/pthread_attr_getguardsize.texi
2252         (pthread_attr_getguardsize): Likewise.
2253         * doc/posix-functions/pthread_attr_setguardsize.texi
2254         (pthread_attr_setguardsize): Likewise.
2255         * doc/posix-functions/pthread_attr_setstack.texi
2256         (pthread_attr_setstack): Likewise.
2257         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2258         (pthread_attr_setstackaddr): Likewise.
2259         * doc/posix-functions/clock_getcpuclockid.texi
2260         (clock_getcpuclockid): Likewise.
2261         * doc/posix-functions/pthread_getcpuclockid.texi
2262         (pthread_getcpuclockid): Likewise.
2263         * doc/glibc-functions/error.texi (error): Likewise.
2264         * doc/glibc-functions/error_at_line.texi (error_at_line):
2265         Likewise.
2266         * doc/glibc-functions/error_message_count.texi
2267         (error_message_count): Likewise.
2268         * doc/glibc-functions/error_one_per_line.texi
2269         (error_one_per_line): Likewise.
2270         * doc/glibc-functions/error_print_progname.texi
2271         (error_print_progname): Likewise.
2272         * doc/posix-functions/pthread_condattr_getclock.texi
2273         (pthread_condattr_getclock): Likewise.
2274         * doc/posix-functions/pthread_condattr_setclock.texi
2275         (pthread_condattr_setclock): Likewise.
2276         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2277         Likewise.
2278         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2279         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2280         * doc/glibc-functions/get_current_dir_name.texi
2281         (get_current_dir_name): Likewise.
2282         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2283         Likewise.
2284         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2285         wrong return type.
2286         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2287         1.7.11.
2288
2289 2012-02-29  Bruno Haible  <bruno@clisp.org>
2290
2291         Tests for module 'hypotf'.
2292         * modules/hypotf-tests: New file.
2293         * tests/test-hypotf.c: New file.
2294
2295         New module 'hypotf'.
2296         * lib/math.in.h (hypotf): New declaration.
2297         * lib/hypotf.c: New file.
2298         * m4/hypotf.m4: New file.
2299         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2301         REPLACE_HYPOTF.
2302         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2303         REPLACE_HYPOTF.
2304         * modules/hypotf: New file.
2305         * tests/test-math-c++.cc: Check the hypotf declaration.
2306         * doc/posix-functions/hypotf.texi: Mention the new module.
2307
2308         hypot: Prepare for hypotf module.
2309         * m4/hypot.m4: New file.
2310         * modules/hypot (Files): Add m4/hypot.m4.
2311         (configure.ac): Invoke gl_FUNC_HYPOT.
2312
2313 2012-02-29  Bruno Haible  <bruno@clisp.org>
2314
2315         hypot tests: More tests.
2316         * tests/test-hypot.c: Include <float.h>.
2317         (main): Add tests about overflow and underflow.
2318
2319 2012-02-29  Bruno Haible  <bruno@clisp.org>
2320
2321         math code: Add comments.
2322         * lib/acosl.c: Add comment about related glibc source files.
2323         * lib/asinl.c: Likewise.
2324         * lib/atanl.c: Likewise.
2325         * lib/expl.c: Likewise.
2326         * lib/logl.c: Likewise.
2327         * lib/sincosl.c: Likewise.
2328         * lib/sinl.c: Likewise.
2329         * lib/tanl.c: Likewise.
2330         * lib/trigl.c: Likewise.
2331         * lib/cosl.c: Likewise. Fix comments.
2332
2333 2012-02-28  Bruno Haible  <bruno@clisp.org>
2334
2335         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2336         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2337         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2338         HUGE_VALL are defined.
2339         (numeric_equald): Renamed from numeric_equal.
2340         (numeric_equalf, numeric_equall): New functions.
2341         (main): Check also HUGE_VALF, HUGE_VALL.
2342         * modules/math-tests (Files): Add tests/macros.h.
2343         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2344         HUGE_VALL.
2345
2346 2012-02-28  Bruno Haible  <bruno@clisp.org>
2347
2348         doc: Move ISO C11 feature notes into POSIX chapters.
2349         * doc/posix-functions/aligned_alloc.texi: Renamed from
2350         doc/glibc-functions/aligned_alloc.texi.
2351         * doc/posix-functions/quick_exit.texi: Renamed from
2352         doc/glibc-functions/quick_exit.texi.
2353         * doc/posix-headers/uchar.texi: Renamed from
2354         doc/glibc-headers/uchar.texi.
2355         * doc/posix-functions/c16rtomb.texi: Renamed from
2356         doc/glibc-functions/c16rtomb.texi.
2357         * doc/posix-functions/c32rtomb.texi: Renamed from
2358         doc/glibc-functions/c32rtomb.texi.
2359         * doc/posix-functions/mbrtoc16.texi: Renamed from
2360         doc/glibc-functions/mbrtoc16.texi.
2361         * doc/posix-functions/mbrtoc32.texi: Renamed from
2362         doc/glibc-functions/mbrtoc32.texi.
2363         * doc/gnulib.texi: Update.
2364         (Glibc uchar.h): Remove section.
2365         Suggested by Eric Blake.
2366
2367 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2368
2369         stdnoreturn: port to MSVC better
2370         MSVC standard headers use __declspec(noreturn), so #define noreturn
2371         to empty on that platform.  Reported by Bruno Haible in
2372         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2373         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2374         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2375
2376 2012-02-28  Bruno Haible  <bruno@clisp.org>
2377
2378         doc: Mention new glibc headers and functions.
2379         * doc/glibc-headers/uchar.texi: New file.
2380         * doc/glibc-functions/aligned_alloc.texi: New file.
2381         * doc/glibc-functions/c16rtomb.texi: New file.
2382         * doc/glibc-functions/c32rtomb.texi: New file.
2383         * doc/glibc-functions/clock_adjtime.texi: New file.
2384         * doc/glibc-functions/fanotify_init.texi: New file.
2385         * doc/glibc-functions/fanotify_mark.texi: New file.
2386         * doc/glibc-functions/inet6_opt_append.texi: New file.
2387         * doc/glibc-functions/inet6_opt_find.texi: New file.
2388         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2389         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2390         * doc/glibc-functions/inet6_opt_init.texi: New file.
2391         * doc/glibc-functions/inet6_opt_next.texi: New file.
2392         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2393         * doc/glibc-functions/inet6_rth_add.texi: New file.
2394         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2395         * doc/glibc-functions/inet6_rth_init.texi: New file.
2396         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2397         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2398         * doc/glibc-functions/inet6_rth_space.texi: New file.
2399         * doc/glibc-functions/login.texi: New file.
2400         * doc/glibc-functions/mbrtoc16.texi: New file.
2401         * doc/glibc-functions/mbrtoc32.texi: New file.
2402         * doc/glibc-functions/name_to_handle_at.texi: New file.
2403         * doc/glibc-functions/ntp_gettimex.texi: New file.
2404         * doc/glibc-functions/open_by_handle_at.texi: New file.
2405         * doc/glibc-functions/prlimit.texi: New file.
2406         * doc/glibc-functions/process_vm_readv.texi: New file.
2407         * doc/glibc-functions/process_vm_writev.texi: New file.
2408         * doc/glibc-functions/recvmmsg.texi: New file.
2409         * doc/glibc-functions/scandirat.texi: New file.
2410         * doc/glibc-functions/sendmmsg.texi: New file.
2411         * doc/glibc-functions/setns.texi: New file.
2412         * doc/glibc-functions/timespec_get.texi: New file.
2413         * doc/gnulib.texi: Include them.
2414         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2415         sections.
2416         Reported by Eric Blake.
2417
2418 2012-02-28  Bruno Haible  <bruno@clisp.org>
2419
2420         Avoid compilation errors with MSVC option -fp:strict.
2421         * lib/floor.c: Use MSVC specific pragma fenv_access.
2422         * lib/ceil.c: Likewise.
2423         * lib/trunc.c: Likewise.
2424         * lib/round.c: Likewise.
2425         * lib/rint.c: Likewise.
2426         * lib/fma.c: Likewise.
2427         * lib/integer_length.c: Likewise.
2428         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2429         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2430         * tests/test-floor2.c: Likewise.
2431         * tests/test-floorf2.c: Likewise.
2432         * tests/test-ceil2.c: Likewise.
2433         * tests/test-ceilf2.c: Likewise.
2434         * tests/test-trunc2.c: Likewise.
2435         * tests/test-truncf2.c: Likewise.
2436         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2437
2438 2012-02-27  Bruno Haible  <bruno@clisp.org>
2439
2440         Tests for module 'sqrtl-ieee'.
2441         * modules/sqrtl-ieee-tests: New file.
2442         * tests/test-sqrtl-ieee.c: New file.
2443
2444         New module 'sqrtl-ieee'.
2445         * modules/sqrtl-ieee: New file.
2446
2447         Tests for module 'sqrt-ieee'.
2448         * modules/sqrt-ieee-tests: New file.
2449         * tests/test-sqrt-ieee.c: New file.
2450
2451         New module 'sqrt-ieee'.
2452         * modules/sqrt-ieee: New file.
2453
2454         Tests for module 'sqrtf-ieee'.
2455         * modules/sqrtf-ieee-tests: New file.
2456         * tests/test-sqrtf-ieee.c: New file.
2457         * tests/test-sqrt-ieee.h: New file.
2458
2459         New module 'sqrtf-ieee'.
2460         * modules/sqrtf-ieee: New file.
2461
2462 2012-02-27  Bruno Haible  <bruno@clisp.org>
2463
2464         remainderl-ieee: Work around test failure on OSF/1.
2465         * m4/remainderl-ieee.m4: New file.
2466         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2467         present, test whether remainderl works with a zero second argument.
2468         Replace it if not.
2469         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2471         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2472         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2473         (Depends-on): Update conditions.
2474         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2475         (Depends-on): Add remainder-ieee.
2476         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2477         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2478         module.
2479
2480         remainderf-ieee: Work around test failure on OSF/1.
2481         * m4/remainderf-ieee.m4: New file.
2482         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2483         present, test whether remainderf works with a zero second argument.
2484         Replace it if not.
2485         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2487         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2488         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2489         (Depends-on): Update conditions.
2490         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2491         (Depends-on): Add remainder-ieee.
2492         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2493         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2494         module.
2495
2496         remainder-ieee: Work around test failure on OSF/1.
2497         * m4/remainder-ieee.m4: New file.
2498         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2499         present, test whether remainder works with a zero second argument.
2500         Replace it if not.
2501         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2503         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2504         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2505         (Depends-on): Update dependencies.
2506         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2507         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2508         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2509
2510         Tests for module 'remainderl-ieee'.
2511         * modules/remainderl-ieee-tests: New file.
2512         * tests/test-remainderl-ieee.c: New file.
2513
2514         New module 'remainderl-ieee'.
2515         * modules/remainderl-ieee: New file.
2516
2517         Tests for module 'remainder-ieee'.
2518         * modules/remainder-ieee-tests: New file.
2519         * tests/test-remainder-ieee.c: New file.
2520
2521         New module 'remainder-ieee'.
2522         * modules/remainder-ieee: New file.
2523
2524         Tests for module 'remainderf-ieee'.
2525         * modules/remainderf-ieee-tests: New file.
2526         * tests/test-remainderf-ieee.c: New file.
2527         * tests/test-remainder-ieee.h: New file.
2528
2529         New module 'remainderf-ieee'.
2530         * modules/remainderf-ieee: New file.
2531
2532 2012-02-27  Bruno Haible  <bruno@clisp.org>
2533
2534         modff, modfl: Fix configure syntax error.
2535         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2536         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2537
2538 2012-02-27  Bruno Haible  <bruno@clisp.org>
2539
2540         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2541         * m4/fmodl-ieee.m4: New file.
2542         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2543         whether fmodl works with zero arguments. Replace it if not.
2544         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2545         (Depends-on): Add fmod-ieee.
2546         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2547         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2548
2549         fmodf-ieee: Work around test failure on OSF/1.
2550         * m4/fmodf-ieee.m4: New file.
2551         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2552         whether fmodf works with zero arguments. Replace it if not.
2553         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2555         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2556         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2557         (Depends-on): Update dependencies.
2558         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2559         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2560         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2561
2562         fmodf-ieee: Work around test failure on MSVC 9.
2563         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2564         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2565
2566         fmod-ieee: Work around test failures on OSF/1, mingw.
2567         * m4/fmod-ieee.m4: New file.
2568         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2569         whether fmod works with zero arguments. Replace it if not.
2570         * lib/math.in.h (fmod): New declaration.
2571         * lib/fmod.c: New file.
2572         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2574         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2575         * modules/fmod (Files): Add lib/fmod.c.
2576         (Depends-on): Add math, isinf, trunc, fma.
2577         (configure.ac): Arrange to compile lib/fmod.c if needed.
2578         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2579         m4/signbit.m4.
2580         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2581         * tests/test-math-c++.cc: Check the declaration of fmod.
2582         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2583
2584         fmodl-ieee: Fix test failures.
2585         * lib/fmodl.c (fmodl): Treat Inf specially.
2586         * modules/fmodl (Depends-on): Add isinf.
2587
2588         Tests for module 'fmodl-ieee'.
2589         * modules/fmodl-ieee-tests: New file.
2590         * tests/test-fmodl-ieee.c: New file.
2591
2592         New module 'fmodl-ieee'.
2593         * modules/fmodl-ieee: New file.
2594
2595         Tests for module 'fmod-ieee'.
2596         * modules/fmod-ieee-tests: New file.
2597         * tests/test-fmod-ieee.c: New file.
2598
2599         New module 'fmod-ieee'.
2600         * modules/fmod-ieee: New file.
2601
2602         Tests for module 'fmodf-ieee'.
2603         * modules/fmodf-ieee-tests: New file.
2604         * tests/test-fmodf-ieee.c: New file.
2605         * tests/test-fmod-ieee.h: New file.
2606
2607         New module 'fmodf-ieee'.
2608         * modules/fmodf-ieee: New file.
2609
2610 2012-02-27  Bruno Haible  <bruno@clisp.org>
2611
2612         Tests for module 'rintl-ieee'.
2613         * modules/rintl-ieee-tests: New file.
2614         * tests/test-rintl-ieee.c: New file.
2615
2616         New module 'rintl-ieee'.
2617         * modules/rintl-ieee: New file.
2618
2619         Tests for module 'rint-ieee'.
2620         * modules/rint-ieee-tests: New file.
2621         * tests/test-rint-ieee.c: New file.
2622
2623         New module 'rint-ieee'.
2624         * modules/rint-ieee: New file.
2625
2626         Tests for module 'rintf-ieee'.
2627         * modules/rintf-ieee-tests: New file.
2628         * tests/test-rintf-ieee.c: New file.
2629         * tests/test-rint-ieee.h: New file.
2630
2631         New module 'rintf-ieee'.
2632         * modules/rintf-ieee: New file.
2633
2634 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2635
2636         regex: re_search etc. should return -2 when memory exhausted
2637         This bug was uncovered when testing 'grep'.  Without the fix,
2638         re_search and friends return -1 when memory is exhausted, but -1
2639         means no match, and this causes grep to falsely report no-match
2640         instead of memory-exhaustion.  See
2641         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2642         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2643         trouble; this can occur if re_search_internal ran out of memory.
2644
2645 2012-02-26  Bruno Haible  <bruno@clisp.org>
2646
2647         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2648         * m4/modfl-ieee.m4: New file.
2649         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2650         whether modfl works with Inf. Replace it if not.
2651         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2653         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2654         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2655         (Depends-on): Update dependencies.
2656         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2657         m4/signbit.m4.
2658         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2659         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2660
2661         modfl-ieee: Fix dependencies.
2662         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2663
2664         modfl-ieee: Fix test failures.
2665         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2666         * modules/modfl (Depends-on): Add isfinite, isinf.
2667
2668         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2669         * m4/modff-ieee.m4: New file.
2670         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2671         whether modff works with NaN and Inf. Replace it if not.
2672         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2674         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2675         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2676         (Depends-on): Update dependencies.
2677         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2678         m4/signbit.m4.
2679         (Depends-on): Add modf-ieee.
2680         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2681         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2682
2683         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2684         * m4/modf-ieee.m4: New file.
2685         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2686         whether modf works with NaN and Inf. Replace it if not.
2687         * lib/math.in.h (modf): New declaration.
2688         * lib/modf.c: New file.
2689         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2690         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2691         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2692         * modules/modf (Files): Add lib/modf.c.
2693         (Depends-on): Add math, isfinite, trunc, isinf.
2694         (configure.ac): Addrange to compile lib/modf.c if needed.
2695         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2696         m4/signbit.m4.
2697         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2698         * tests/test-math-c++.cc: Check the declaration of modf.
2699         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2700
2701         Tests for module 'modfl-ieee'.
2702         * modules/modfl-ieee-tests: New file.
2703         * tests/test-modfl-ieee.c: New file.
2704
2705         New module 'modfl-ieee'.
2706         * modules/modfl-ieee: New file.
2707
2708         Tests for module 'modf-ieee'.
2709         * modules/modf-ieee-tests: New file.
2710         * tests/test-modf-ieee.c: New file.
2711
2712         New module 'modf-ieee'.
2713         * modules/modf-ieee: New file.
2714
2715         Tests for module 'modff-ieee'.
2716         * modules/modff-ieee-tests: New file.
2717         * tests/test-modff-ieee.c: New file.
2718         * tests/test-modf-ieee.h: New file.
2719
2720         New module 'modff-ieee'.
2721         * modules/modff-ieee: New file.
2722
2723 2012-02-26  Bruno Haible  <bruno@clisp.org>
2724
2725         Tests for module 'fabsl-ieee'.
2726         * modules/fabsl-ieee-tests: New file.
2727         * tests/test-fabsl-ieee.c: New file.
2728
2729         New module 'fabsl-ieee'.
2730         * modules/fabsl-ieee: New file.
2731
2732         Tests for module 'fabs-ieee'.
2733         * modules/fabs-ieee-tests: New file.
2734         * tests/test-fabs-ieee.c: New file.
2735
2736         New module 'fabs-ieee'.
2737         * modules/fabs-ieee: New file.
2738
2739         Tests for module 'fabsf-ieee'.
2740         * modules/fabsf-ieee-tests: New file.
2741         * tests/test-fabsf-ieee.c: New file.
2742         * tests/test-fabs-ieee.h: New file.
2743
2744         New module 'fabsf-ieee'.
2745         * modules/fabsf-ieee: New file.
2746
2747 2012-02-26  Bruno Haible  <bruno@clisp.org>
2748
2749         Tests for module 'fmal-ieee'.
2750         * modules/fmal-ieee-tests: New file.
2751         * tests/test-fmal-ieee.c: New file.
2752
2753         New module 'fmal-ieee'.
2754         * modules/fmal-ieee: New file.
2755
2756         Tests for module 'fma-ieee'.
2757         * modules/fma-ieee-tests: New file.
2758         * tests/test-fma-ieee.c: New file.
2759
2760         New module 'fma-ieee'.
2761         * modules/fma-ieee: New file.
2762
2763         Tests for module 'fmaf-ieee'.
2764         * modules/fmaf-ieee-tests: New file.
2765         * tests/test-fmaf-ieee.c: New file.
2766         * tests/test-fma-ieee.h: New file.
2767
2768         New module 'fmaf-ieee'.
2769         * modules/fmaf-ieee: New file.
2770
2771 2012-02-26  Bruno Haible  <bruno@clisp.org>
2772
2773         Tests for module 'ldexpl-ieee'.
2774         * modules/ldexpl-ieee-tests: New file.
2775         * tests/test-ldexpl-ieee.c: New file.
2776
2777         New module 'ldexpl-ieee'.
2778         * modules/ldexpl-ieee: New file.
2779
2780         Tests for module 'ldexp-ieee'.
2781         * modules/ldexp-ieee-tests: New file.
2782         * tests/test-ldexp-ieee.c: New file.
2783
2784         New module 'ldexp-ieee'.
2785         * modules/ldexp-ieee: New file.
2786
2787         Tests for module 'ldexpf-ieee'.
2788         * modules/ldexpf-ieee-tests: New file.
2789         * tests/test-ldexpf-ieee.c: New file.
2790         * tests/test-ldexp-ieee.h: New file.
2791
2792         New module 'ldexpf-ieee'.
2793         * modules/ldexpf-ieee: New file.
2794
2795 2012-02-26  Bruno Haible  <bruno@clisp.org>
2796
2797         Refactor frexp*-ieee tests.
2798         * tests/test-frexp-ieee.h: New file.
2799         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2800         (main): Just call test_function.
2801         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2802         (main): Just call test_function.
2803         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2804         (main): Just call test_function.
2805         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2806         * modules/frexp-ieee-tests (Files): Likewise.
2807         * modules/frexpl-ieee-tests (Files): Likewise.
2808
2809         Tests for module 'frexpl-ieee'.
2810         * modules/frexpl-ieee-tests: New file.
2811         * tests/test-frexpl-ieee.c: New file.
2812
2813         New module 'frexpl-ieee'.
2814         * modules/frexpl-ieee: New file.
2815
2816         Tests for module 'frexp-ieee'.
2817         * modules/frexp-ieee-tests: New file.
2818         * tests/test-frexp-ieee.c: New file.
2819
2820         New module 'frexp-ieee'.
2821         * modules/frexp-ieee: New file.
2822
2823         Tests for module 'frexpf-ieee'.
2824         * modules/frexpf-ieee-tests: New file.
2825         * tests/test-frexpf-ieee.c: New file.
2826
2827         New module 'frexpf-ieee'.
2828         * modules/frexpf-ieee: New file.
2829
2830 2012-02-26  Bruno Haible  <bruno@clisp.org>
2831
2832         roundl-ieee tests: More tests.
2833         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2834         (main): Add tests for [MX] shaded specification in POSIX.
2835         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2836         (Depends-on): Add isnanl-nolibm.
2837
2838         round-ieee tests: More tests.
2839         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2840         (main): Add tests for [MX] shaded specification in POSIX.
2841         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2842         (Depends-on): Add isnand-nolibm.
2843
2844         roundf-ieee tests: More tests.
2845         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2846         (main): Add tests for [MX] shaded specification in POSIX.
2847         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2848         (Depends-on): Add isnanf-nolibm.
2849
2850         truncl-ieee tests: More tests.
2851         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2852         (main): Add tests for [MX] shaded specification in POSIX.
2853         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2854         (Depends-on): Add isnanl-nolibm.
2855
2856         trunc-ieee tests: More tests.
2857         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2858         (main): Add tests for [MX] shaded specification in POSIX.
2859         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2860         (Depends-on): Add isnand-nolibm.
2861
2862         truncf-ieee tests: More tests.
2863         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2864         (main): Add tests for [MX] shaded specification in POSIX.
2865         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2866         (Depends-on): Add isnanf-nolibm.
2867
2868         ceill-ieee tests: More tests.
2869         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2870         (main): Add tests for [MX] shaded specification in POSIX.
2871         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2872         (Depends-on): Add isnanl-nolibm.
2873
2874         ceil-ieee tests: More tests.
2875         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2876         (main): Add tests for [MX] shaded specification in POSIX.
2877         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2878         (Depends-on): Add isnand-nolibm.
2879
2880         ceilf-ieee tests: More tests.
2881         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2882         (main): Add tests for [MX] shaded specification in POSIX.
2883         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2884         (Depends-on): Add isnanf-nolibm.
2885
2886         floorl-ieee tests: More tests.
2887         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2888         (main): Add tests for [MX] shaded specification in POSIX.
2889         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2890         (Depends-on): Add isnanl-nolibm.
2891
2892         floor-ieee tests: More tests.
2893         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2894         (main): Add tests for [MX] shaded specification in POSIX.
2895         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2896         (Depends-on): Add isnand-nolibm.
2897
2898         floorf-ieee tests: More tests.
2899         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2900         (main): Add tests for [MX] shaded specification in POSIX.
2901         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2902         (Depends-on): Add isnanf-nolibm.
2903
2904 2012-02-26  Bruno Haible  <bruno@clisp.org>
2905
2906         fpieee: More comments.
2907         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2908
2909 2012-02-25  Bruno Haible  <bruno@clisp.org>
2910
2911         Tests for module 'log10l'.
2912         * modules/log10l-tests: New file.
2913         * tests/test-log10l.c: New file.
2914         * tests/test-math-c++.cc: Check the declaration of log10l.
2915
2916         New module 'log10l'.
2917         * lib/math.in.h (log10l): New declaration.
2918         * lib/log10l.c: New file.
2919         * m4/log10l.m4: New file.
2920         * modules/log10l: New file.
2921         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2923         HAVE_DECL_LOG10L.
2924         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2925         HAVE_DECL_LOG10L.
2926         * doc/posix-functions/log10l.texi: Mention the new module.
2927
2928 2012-02-25  Bruno Haible  <bruno@clisp.org>
2929
2930         fmodl, remainder*: Avoid wrong results due to rounding errors.
2931         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2932         expected bounds.
2933         * lib/remainderf.c (remainderf): Likewise.
2934         * lib/remainder.c (remainder): Likewise.
2935         * lib/remainderl.c (remainderl): Likewise.
2936
2937 2012-02-25  Bruno Haible  <bruno@clisp.org>
2938
2939         Tests for module 'remainderl'.
2940         * modules/remainderl-tests: New file.
2941         * tests/test-remainderl.c: New file.
2942         * tests/test-math-c++.cc: Check the declaration of remainderl.
2943
2944         New module 'remainderl'.
2945         * lib/math.in.h (remainderl): New declaration.
2946         * lib/remainderl.c: New file.
2947         * m4/remainderl.m4: New file.
2948         * modules/remainderl: New file.
2949         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2951         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2952         HAVE_REMAINDERL.
2953         * doc/posix-functions/remainderl.texi: Mention the new module.
2954
2955 2012-02-25  Bruno Haible  <bruno@clisp.org>
2956
2957         Tests for module 'remainderf'.
2958         * modules/remainderf-tests: New file.
2959         * tests/test-remainderf.c: New file.
2960         * tests/test-math-c++.cc: Check the declaration of remainderf.
2961
2962         New module 'remainderf'.
2963         * lib/math.in.h (remainderf): New declaration.
2964         * lib/remainderf.c: New file.
2965         * m4/remainderf.m4: New file.
2966         * modules/remainderf: New file.
2967         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2969         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2970         HAVE_REMAINDERF.
2971         * doc/posix-functions/remainderf.texi: Mention the new module.
2972
2973 2012-02-25  Bruno Haible  <bruno@clisp.org>
2974
2975         remainder: Support for MSVC.
2976         * lib/math.in.h (remainder): New declaration.
2977         * lib/remainder.c: New file.
2978         * m4/remainder.m4: New file.
2979         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2980         (Depends-on): Add math, round, fma.
2981         (configure.ac): Use results of gl_FUNC_REMAINDER.
2982         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2984         HAVE_DECL_REMAINDER.
2985         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2986         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2987         * tests/test-math-c++.cc: Check the declaration of remainder.
2988         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2989         problems are fixed.
2990
2991 2012-02-25  Bruno Haible  <bruno@clisp.org>
2992
2993         Tests for module 'fmodl'.
2994         * modules/fmodl-tests: New file.
2995         * tests/test-fmodl.c: New file.
2996         * tests/test-math-c++.cc: Check the declaration of fmodl.
2997
2998         New module 'fmodl'.
2999         * lib/math.in.h (fmodl): New declaration.
3000         * lib/fmodl.c: New file.
3001         * m4/fmodl.m4: New file.
3002         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3004         REPLACE_FMODL.
3005         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3006         REPLACE_FMODL.
3007         * modules/fmodl: New file.
3008         * doc/posix-functions/fmodl.texi: Mention the new module.
3009
3010 2012-02-25  Bruno Haible  <bruno@clisp.org>
3011
3012         Tests for module 'modfl'.
3013         * modules/modfl-tests: New file.
3014         * tests/test-modfl.c: New file.
3015         * tests/test-math-c++.cc: Check the declaration of modfl.
3016
3017         New module 'modfl'.
3018         * lib/math.in.h (modfl): New declaration.
3019         * lib/modfl.c: New file.
3020         * m4/modfl.m4: New file.
3021         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3023         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3024         * modules/modfl: New file.
3025         * doc/posix-functions/modfl.texi: Mention the new module.
3026
3027 2012-02-25  Bruno Haible  <bruno@clisp.org>
3028
3029         Tests for module 'fabsl'.
3030         * modules/fabsl-tests: New file.
3031         * tests/test-fabsl.c: New file.
3032         * tests/test-math-c++.cc: Check the declaration of fabsl.
3033
3034         New module 'fabsl'.
3035         * lib/math.in.h (fabsl): New declaration.
3036         * lib/fabsl.c: New file.
3037         * m4/fabsl.m4: New file.
3038         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3040         REPLACE_FABSL.
3041         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3042         REPLACE_FABSL.
3043         * modules/fabsl: New file.
3044         * doc/posix-functions/fabsl.texi: Mention the new module.
3045
3046 2012-02-25  Bruno Haible  <bruno@clisp.org>
3047
3048         fabs tests: More tests.
3049         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3050         (zero): New variable.
3051         (main): Add tests for signed zero.
3052         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3053
3054         fabsf tests: More tests.
3055         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3056         (zero): New variable.
3057         (main): Add tests for signed zero.
3058         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3059
3060 2012-02-24  Bruno Haible  <bruno@clisp.org>
3061
3062         atanl: Provide function definition on MSVC.
3063         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3064         function pointer.
3065         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3066
3067 2012-02-24  Bruno Haible  <bruno@clisp.org>
3068
3069         acosl: Provide function definition on MSVC.
3070         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3071         function pointer.
3072         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3073
3074 2012-02-24  Bruno Haible  <bruno@clisp.org>
3075
3076         asinl: Provide function definition on MSVC.
3077         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3078         function pointer.
3079         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3080
3081 2012-02-24  Bruno Haible  <bruno@clisp.org>
3082
3083         tanl: Provide function definition on MSVC.
3084         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3085         function pointer.
3086         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3087
3088 2012-02-24  Bruno Haible  <bruno@clisp.org>
3089
3090         cosl: Provide function definition on MSVC.
3091         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3092         function pointer.
3093         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3094
3095 2012-02-24  Bruno Haible  <bruno@clisp.org>
3096
3097         sinl: Provide function definition on MSVC.
3098         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3099         function pointer.
3100         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3101
3102 2012-02-24  Bruno Haible  <bruno@clisp.org>
3103
3104         logl: Provide function definition on MSVC.
3105         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3106         function pointer.
3107         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3108
3109 2012-02-24  Bruno Haible  <bruno@clisp.org>
3110
3111         expl: Provide function definition on MSVC.
3112         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3113         function pointer.
3114         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3115
3116 2012-02-24  Bruno Haible  <bruno@clisp.org>
3117
3118         sqrtl: Provide function definition on MSVC.
3119         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3120         a function pointer.
3121         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3122
3123 2012-02-24  Bruno Haible  <bruno@clisp.org>
3124
3125         ceill: Provide function definition on MSVC.
3126         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3127         used as a function pointer.
3128         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3129
3130 2012-02-24  Bruno Haible  <bruno@clisp.org>
3131
3132         floorl: Provide function definition on MSVC.
3133         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3134         used as a function pointer.
3135         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3136
3137 2012-02-24  Bruno Haible  <bruno@clisp.org>
3138
3139         ceilf: Provide function definition on MSVC.
3140         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3141         used as a function pointer.
3142         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3143
3144 2012-02-24  Bruno Haible  <bruno@clisp.org>
3145
3146         floorf: Provide function definition on MSVC.
3147         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3148         used as a function pointer.
3149         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3150
3151 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3152
3153         stdnoreturn: new module
3154         This implements a replacement for C11's <stdnoreturn.h>.
3155         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3156         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3157         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3158         * tests/test-stdnoreturn.c: New files.
3159
3160 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3161
3162         regex: fix false multibyte matches in some regular expressions
3163         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3164         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3165         * lib/regex_internal.c (re_string_skip_chars):
3166         Fix miscomputation of remain_len that may cause incomplete
3167         multi-byte character and false match.
3168
3169 2012-02-24  Jim Meyering  <meyering@redhat.com>
3170
3171         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3172         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3173         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3174         Remove now-unnecessary str''cmp obfuscation.
3175         Suggested by Akim Demaille.
3176
3177 2012-02-24  Bruno Haible  <bruno@clisp.org>
3178
3179         streq: Rename macro.
3180         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3181         * NEWS: Mention the change.
3182         * lib/mbrtowc.c (mbrtowc): Update.
3183         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3184         * lib/wcwidth.c (wcwidth): Update.
3185         Suggested by Akim Demaille and Jim Meyering.
3186
3187 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3188
3189         regex: fix typo in definition of MIN
3190         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3191         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3192
3193 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3194             Bruno Haible  <bruno@clisp.org>
3195
3196         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3197         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3198         entries into a stack-allocated buffer directly.
3199         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3200
3201 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3202             Bruno Haible  <bruno@clisp.org>
3203
3204         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3205
3206          - There were several instances of this pattern:
3207
3208              for (;;) {
3209                n = acl (f, GETACLCNT, 0, NULL);
3210                [ allocate an array A of size N ]
3211                if (acl (f, GETACL, n, a) == n)
3212                  break;
3213              }
3214
3215            This loop might never terminate if some other process is constantly
3216            manipulating the file's ACL.  The loop should be rewritten to
3217            terminate.
3218
3219          - The acl (... GETACLNT ...) call is merely an optimization; its value
3220            is merely a hint as to how big to make the array.  A better
3221            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3222            and just guess a reasonably-big size, growing the size and trying
3223            again if it's not large enough.  This guarantees termination, and
3224            saves a system call.
3225
3226         * lib/acl-internal.h: Include <limits.h>.
3227         (MIN, SIZE_MAX): New macros.
3228         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3229         a stack-allocated buffer, and use malloc if it does not fit. Don't
3230         use GETACLCNT.
3231         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3232
3233 2012-02-19  Bruno Haible  <bruno@clisp.org>
3234
3235         acl: Fix endless loop on Solaris with vxfs.
3236         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3237         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3238         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3239         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3240         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3241         Reported by Bill Jones in
3242         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3243
3244 2012-02-19  Bruno Haible  <bruno@clisp.org>
3245
3246         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3247         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3248         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3249         that this function returns 0 in some more cases.
3250
3251 2012-02-19  Bruno Haible  <bruno@clisp.org>
3252
3253         acl: Update doc references.
3254         * doc/acl-resources.txt: Update links to Solaris documentation.
3255
3256 2012-02-19  Bruno Haible  <bruno@clisp.org>
3257
3258         Fix test failure in many locales on Solaris 11.
3259         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3260         'tr' arguments.
3261         * tests/test-pipe-filter-ii1.c (main): Likewise.
3262         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3263         expressions in the C locale.
3264         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3265         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3266
3267 2012-02-19  Bruno Haible  <bruno@clisp.org>
3268
3269         gnulib-tool: Improve usage message.
3270         * gnulib-tool (func_usage): Move doc of --help and --version to the
3271         section "Operation modes".
3272
3273 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3274
3275         README-release: make it easier to execute commands
3276         * top/README-release: break commands out on to separate lines.
3277
3278 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3279
3280         GNUmakefile: simplify detection of unconfigured trees
3281         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3282         whether the tree make is being run from is already configured or
3283         not.  Related simplifications.
3284
3285 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3286
3287         * gnulib-tool (func_usage): Document --help and --version.
3288
3289 2012-02-11  Jim Meyering  <meyering@redhat.com>
3290
3291         bootstrap: don't exit 0 upon gnulib-tool failure
3292         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3293         its exit status, not 0.
3294
3295 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3296
3297         README-release: various improvements
3298         * top/README-release: Give a command to push changes for the
3299         release.  Add "distcheck" to list of other pre-release checks.
3300         Fix instance of "make stable" which should be "make TYPE".
3301
3302 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3303
3304         maint: replace FSF snail-mail addresses with URLs
3305         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3306         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3307         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3308         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3309         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3310         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3311         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3312         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3313         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3314         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3315         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3316         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3317         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3318         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3319         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3320         * lib/glthread/thread.c, lib/glthread/thread.h:
3321         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3322         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3323         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3324         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3325         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3326         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3327         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3328         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3329         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3330         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3331         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3332         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3333         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3334         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3335         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3336         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3337         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3338         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3339         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3340         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3341         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3342         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3343         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3344         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3345         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3346         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3347         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3348         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3349         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3350         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3351         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3352         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3353         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3354         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3355         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3356         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3357         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3358         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3359         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3360         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3361         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3362         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3363         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3364         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3365         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3366         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3367         * tests/test-poll.c, tests/test-quotearg-simple.c:
3368         * tests/test-quotearg.c, tests/test-quotearg.h:
3369         * tests/test-round-ieee.c, tests/test-round1.c:
3370         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3371         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3372         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3373         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3374         * tests/test-strerror.c, tests/test-strerror_r.c:
3375         * tests/test-strsignal.c, tests/test-strverscmp.c:
3376         * tests/test-xmemdup0.c:
3377         Replace FSF snail mail addresses with URLs, as per GNU coding
3378         standards.  See glibc bug
3379         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3380
3381 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3382
3383         README-release: capitalize a word and split a line
3384         * top/README-release: Fix punctuation and spacing.
3385
3386 2012-02-08  Akim Demaille  <demaille@gostai.com>
3387
3388         fatal-signal: use C prototypes (with explicit void).
3389         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3390         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3391
3392 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3393
3394         regex: spelling fix
3395         * lib/regexec.c: spelling fix
3396
3397         regex: rely on stdint.h for SIZE_MAX
3398         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3399
3400 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3401
3402         regex: merge glibc changes
3403
3404         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3405         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3406         (init_word_char): Work even if bitset words are not exactly 32 or
3407         64 bits wide.  Don't assume there are no padding bits.
3408         * lib/regex.c [_LIBC]: Do not include <config.h>.
3409         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3410         and -Wtype-limits.
3411         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3412         needless disagreement with glibc.  All uses changed.  Define it to
3413         1 only if _GNU_SOURCE, to match glibc.
3414         (_REG_RM_NAME): Remove; no longer needed, since the names in
3415         question are now all protected by __USE_GNU.
3416         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3417         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3418         * lib/regex_internal.h (MIN): New macro.
3419
3420         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3421         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3422
3423         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3424         * lib/regex_internal.c (re_string_fetch_byte_case):
3425         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3426         is miscompiled, and it turns out it is because of an incorrect
3427         attribute on re_string_fetch_byte_case.  Unlike
3428         re_string_peek_byte_case, this one is really not pure, it modifies
3429         memory (increments pstr->cur_idx), and with the pure attribute GCC
3430         assumed it doesn't and it cached the presumed value of
3431         regexp->cur_idx in a variable across the
3432          for (;; ++i)
3433            {
3434              if (i >= BRACKET_NAME_BUF_SIZE)
3435                return REG_EBRACK;
3436              if (token->type == OP_OPEN_CHAR_CLASS)
3437                ch = re_string_fetch_byte_case (regexp);
3438              else
3439                ch = re_string_fetch_byte (regexp);
3440              if (re_string_eoi(regexp))
3441                return REG_EBRACK;
3442              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3443                break;
3444              elem->opr.name[i] = ch;
3445            }
3446
3447         2011-11-29 Andreas Schwab <schwab@redhat.com>
3448         * lib/regcomp.c (build_equiv_class):
3449         Fix access after end of search string in regex matcher.
3450
3451         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3452         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3453
3454         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3455         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3456
3457         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3458         * lib/regcomp.c (parse_branch, parse_sub_exp):
3459         More regex memory leak fixes and tests.
3460         (parse_sub_exp, parse_bracket_exp):
3461         Fix memory leak for some invalid regular expressions.
3462
3463         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3464         * lib/regex_internal.c, lib/regexec.c:
3465         Fix unnecessary overallocation due to incomplete character.  When
3466         incomplete characters are found at the end of a string the code
3467         ran amok and allocated lots of memory.  Stricter limits are now in
3468         place.
3469
3470         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3471         * lib/regex.h: Update documentation.
3472
3473         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3474         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3475
3476         2010-05-05 Andreas Schwab <schwab@redhat.com>
3477         * lib/regexec.c (find_collation_sequence_value):
3478         Fix lookup of collation sequence value during regexp matching.
3479
3480         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3481         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3482
3483         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3484         * lib/regex.h: Cleanup namespace.
3485
3486         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3487         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3488
3489         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3490         * lib/regex_internal.h: Prevent some declarations and definitions
3491         to be seen when used in tests.
3492
3493         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3494         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3495         __libc_lock_* macros if not _LIBC.
3496         (struct re_dfa_t): Add lock.
3497
3498 2012-02-07  Eric Blake  <eblake@redhat.com>
3499
3500         maint.mk: also prohibit lower-case @var@
3501         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3502         lower case, like @top_srcdir@.
3503
3504 2012-02-04  Eric Blake  <eblake@redhat.com>
3505
3506         canonicalize: avoid uninitialized memory use
3507         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3508         random '/' left in dest.
3509         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3510
3511 2012-02-04  Bruno Haible  <bruno@clisp.org>
3512
3513         isatty: Fix test failure of ptsname_r on native Windows.
3514         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3515         and don't set errno.
3516         (isatty): Test first whether fd is valid. Set errno when returning 0.
3517
3518 2012-02-04  Bruno Haible  <bruno@clisp.org>
3519
3520         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3521         * tests/test-spawn-pipe-main.c: Include progname.h.
3522         (main): Invoke set_program_name.
3523         * modules/spawn-pipe-tests (Depends-on): Add progname.
3524
3525         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3526         * tests/test-nonblocking-socket-main.c: Include progname.h.
3527         (main): Invoke set_program_name.
3528         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3529
3530         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3531         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3532         (main): Invoke set_program_name.
3533         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3534
3535 2012-02-04  Eric Blake  <eblake@redhat.com>
3536
3537         canonicalize-lgpl: fix // handling
3538         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3539
3540         canonicalize: fix // handling
3541         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3542         /// to //, since only // is special.
3543
3544 2012-02-04  Bruno Haible  <bruno@clisp.org>
3545
3546         ioctl: Fix test failure on native Windows.
3547         * lib/ioctl.c: Include msvc-nothrow.h.
3548         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3549
3550 2012-02-04  Bruno Haible  <bruno@clisp.org>
3551
3552         fsync: Avoid test failure on native Windows.
3553         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3554         read-only.
3555
3556 2012-02-04  Bruno Haible  <bruno@clisp.org>
3557
3558         sys_select: Avoid syntax error on OpenBSD 5.0.
3559         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3560         currently being included, just include the system's <sys/select.h>.
3561
3562 2012-02-04  Bruno Haible  <bruno@clisp.org>
3563
3564         sys_select: Avoid syntax error on OpenBSD 5.0.
3565         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3566         <sys/select.h>, not before.
3567         Reported by Jiri B <jirib@devio.us>.
3568
3569 2012-02-04  Bruno Haible  <bruno@clisp.org>
3570
3571         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3572         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3573         global variables.
3574         * tests/test-get-rusage-data.c (main): Likewise.
3575         Reported by Jim Meyering.
3576
3577 2012-02-04  Bruno Haible  <bruno@clisp.org>
3578
3579         stdioext: Fix last commit.
3580         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3581
3582 2012-02-03  Bruno Haible  <bruno@clisp.org>
3583
3584         stdioext: Add tentative support for Plan9.
3585         * lib/stdio-impl.h: Include <errno.h>.
3586         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3587         * lib/freadable.c (freadable): Likewise.
3588         * lib/fwritable.c (fwritable): Likewise.
3589         * lib/fbufmode.c (fbufmode): Likewise.
3590         * lib/freading.c (freading): Likewise.
3591         * lib/fwriting.c (fwriting): Likewise.
3592         * lib/freadptr.c (freadptr): Likewise.
3593         * lib/freadseek.c (freadptrinc): Likewise.
3594         * lib/freadahead.c (freadahead): Likewise.
3595         * lib/fpurge.c (fpurge): Likewise.
3596         * lib/fseeko.c (rpl_fseeko): Likewise.
3597         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3598         Reported by Jens Staal <staal1978@gmail.com>.
3599
3600 2012-02-02  Jim Meyering  <meyering@redhat.com>
3601
3602         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3603         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3604         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3605         not even to try to add the attribute.  Instead, add a pragma to suppress
3606         the suggestion/warning.
3607
3608 2012-01-31  Karl Berry  <karl@gnu.org>
3609
3610         setstate doc: typo.
3611         * doc/posix-functions/setstate.texi (setstate): { not (.
3612
3613 2012-01-31  Bruno Haible  <bruno@clisp.org>
3614
3615         popen: Make more robust on Windows.
3616         * lib/popen.c: On native Windows, use the _popen based code even if
3617         HAVE_POPEN is set.
3618         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3619         environment variable on native Windows.
3620
3621 2012-01-30  Bruno Haible  <bruno@clisp.org>
3622
3623         pclose: Fix typo.
3624         * lib/stdio.in.h (pclose): Fix typo in warning message.
3625
3626 2012-01-30  Bruno Haible  <bruno@clisp.org>
3627
3628         doc about getlogin_r, setstate.
3629         * doc/posix-functions/getlogin_r.texi: List the incompatible
3630         declaration problem under "not fixed by gnulib".
3631         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3632         problem on Solaris 11 and other platforms.
3633
3634 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3635             Bruno Haible  <bruno@clisp.org>
3636
3637         poll tests: Make test more robust.
3638         * tests/test-poll.c: Include macros.h.
3639         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3640         return value of various I/O operations.
3641         * modules/poll-tests (Files): Add tests/macros.h.
3642
3643 2012-01-30  Bruno Haible  <bruno@clisp.org>
3644
3645         sys_stat: Fix support for mingw64 and MSVC.
3646         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3647         header files already do it.
3648         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3649         stat itself.
3650         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3651
3652 2012-01-30  Bruno Haible  <bruno@clisp.org>
3653
3654         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3656         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3657
3658 2012-01-29  Bruno Haible  <bruno@clisp.org>
3659
3660         quotearg: Fix test failure on MacOS X 10.5.
3661         * tests/test-quotearg-simple.c: Include localcharset.h.
3662         (main): If the locale encoding is not ASCII, bypass the tests of
3663         locale_quoting_style and clocale_quoting_style.
3664         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3665
3666 2012-01-29  Jim Meyering  <meyering@redhat.com>
3667
3668         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3669         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3670         detect uses of canonicalize_file_name.
3671
3672 2012-01-28  Bruno Haible  <bruno@clisp.org>
3673
3674         test-framework-sh: Fix test failure with AIX 7.1 diff.
3675         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3676         in column 1, like 'diff -c' does.
3677         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3678         whether 'diff -u' is used. Instead, test whether the output contains
3679         some '@' character.
3680
3681 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3682
3683         strtoimax: eliminate need for stdint.h, inttypes.h checks
3684         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3685         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3686         the prerequisites for a recently-introduced strtoimax test.
3687         I guess this might cause strtoimax to be replaced when not
3688         strictly necessary on older hosts, but this shouldn't introduce
3689         any bugs and it should make Emacs 'configure' faster on typical
3690         modern hosts.  Problem discovered when importing the latest gnulib
3691         to an Emacs test version.
3692         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3693
3694 2012-01-28  Bruno Haible  <bruno@clisp.org>
3695
3696         sys_time: Override 'struct timeval' on some native Windows platforms.
3697         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3698         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3699         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3700         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3701         needs to be overridden.
3702         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3703         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3704         * tests/test-sys_select.c: Check that the tv_sec member has the same
3705         size as a 'time_t'.
3706         * tests/test-sys_time.c: Likewise.
3707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3708         is set, set also REPLACE_GETTIMEOFDAY.
3709         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3710         convert the resulting 'struct timeval' before returning.
3711         * lib/select.c: Include <sys/time.h>.
3712         (select, timeval): Undefine at the right place.
3713         * modules/select (Depends-on): Add sys_time.
3714         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3715         some Windows platforms.
3716         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3717
3718 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3719
3720         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3721         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3722         an integer.
3723         * lib/fcntl.c (dupfd): Likewise.
3724         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3725
3726 2012-01-28  Bruno Haible  <bruno@clisp.org>
3727
3728         fcntl: Avoid compilation error on native Windows.
3729         * modules/fcntl (Depends-on): Add 'close'.
3730
3731 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3732
3733         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3734         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3735         pointer to an integer.
3736         * lib/poll.c (IsConsoleHandle): Likewise.
3737         * lib/isatty.c (IsConsoleHandle): Likewise.
3738
3739 2012-01-28  Jim Meyering  <meyering@redhat.com>
3740
3741         doc: clarify README-release
3742         * top/README-release: Clarify: you should make a point to have
3743         the latest stable versions of build tools in your PATH, and the
3744         reference to buildreq is solely for its list of tool names, not
3745         for its minimal-functional version numbers.
3746         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3747
3748         maint.mk: use more readable (yet functionally equivalent) quoting
3749         It is common to quote a single quote in a single quoted string like
3750         this:  '...'\''...'.  Unless you know the idiom, that looks like
3751         gibberish, so prefer to double-quote the string when possible.
3752         Then you can use a more readable, lone single quote: "...'..."
3753         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3754         "don't" is more readable than the equivalent 'don'\''t'.
3755         (sc_cast_of_x_alloc_return_value): Likewise.
3756         (sc_cast_of_alloca_return_value): Likewise.
3757         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3758         rather than '\'':'\''.
3759
3760 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3761
3762         stdalign: relax _Alignof and tighten _Alignas test
3763         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3764         as it was too strict: alignof must divide offsetof, but it need
3765         not equal offsetof.  Inspired by Joseph S. Myers's comment
3766         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3767         Conversely, tighten the _Alignas test a bit, as the resulting
3768         alignment must be exactly 8.
3769
3770 2012-01-27  Bruno Haible  <bruno@clisp.org>
3771
3772         stdalign: Document the last change.
3773         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3774
3775 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3776
3777         stdalign: check that alignof and offsetof are consistent
3778         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3779         Problem reported for gnulib by Richard W.M. Jones in
3780         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3781
3782 2012-01-27  Jim Meyering  <meyering@redhat.com>
3783
3784         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3785         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3786         convert a sequence with gaps to the minimal containing range.
3787         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3788         * tests/test-update-copyright.sh: Test for this.
3789         The FSF confirmed it is ok to do this, assuming there is at
3790         least one significant change per year in the affected range:
3791         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3792
3793 2012-01-26  Bruno Haible  <bruno@clisp.org>
3794
3795         pipe2: refine doc about thread-safety
3796         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3797         multithread-safety problem.
3798         * doc/glibc-functions/accept4.texi: Likewise.
3799
3800 2012-01-26  Bruno Haible  <bruno@clisp.org>
3801
3802         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3803         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3804         In the test program, include <fcntl.h>, for O_RDONLY.
3805
3806 2012-01-26  Eric Blake  <eblake@redhat.com>
3807
3808         pipe2: document lack of thread-safety in replacement
3809         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3810         issue in replacement.
3811         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3812         Based on a report by Eric Wong.
3813
3814 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3815             Bruno Haible  <bruno@clisp.org>
3816
3817         malloca: Avoid warnings on x86_64 mingw64.
3818         * lib/malloca.c: Include <stdint.h>.
3819         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3820         * modules/malloca (Depends-on): Add stdint.
3821         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3822
3823 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3824
3825         obstack: remove __STDC__ conditionals
3826         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3827         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3828         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3829         m4/include_next.m4 as the only gnulib-maintained places that still
3830         refer to __STDC__.
3831
3832 2012-01-24  Bruno Haible  <bruno@clisp.org>
3833
3834         havelib: Modern quoting.
3835         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3836         the recent change to the GNU coding standards.
3837
3838 2012-01-24  Bruno Haible  <bruno@clisp.org>
3839
3840         stdint: Improve support for Android.
3841         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3842         Reported by Simon Josefsson <simon@josefsson.org>.
3843
3844 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3845
3846         doc: omit trailing empty lines from INSTALL etc.
3847         * doc/Makefile (INSTALL): Omit trailing empty lines.
3848         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3849         omit trailing empty lines.  This simplifies the build procedure.
3850
3851 2012-01-23  Jim Meyering  <meyering@redhat.com>
3852
3853         tests: avoid spurious warnings about gl_sockets_startup
3854         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3855         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3856         reporting a "statement with no effect".
3857         * tests/test-accept.c (main): Mark as "(void)".
3858         * tests/test-accept4.c (main): Likewise.
3859         * tests/test-bind.c (main): Likewise.
3860         * tests/test-connect.c (main): Likewise.
3861         * tests/test-getpeername.c (main): Likewise.
3862         * tests/test-getsockname.c (main): Likewise.
3863         * tests/test-getsockopt.c (main): Likewise.
3864         * tests/test-listen.c (main): Likewise.
3865         * tests/test-recv.c (main): Likewise.
3866         * tests/test-recvfrom.c (main): Likewise.
3867         * tests/test-send.c (main): Likewise.
3868         * tests/test-sendto.c (main): Likewise.
3869         * tests/test-setsockopt.c (main): Likewise.
3870         * tests/test-shutdown.c (main): Likewise.
3871
3872 2012-01-21  Bruno Haible  <bruno@clisp.org>
3873
3874         locale-fr.m4: Fix for Android.
3875         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3876         failure of the test program on Bionic libc.
3877
3878 2012-01-21  Jim Meyering  <meyering@redhat.com>
3879
3880         bootstrap: fail when bootstrap_post_import_hook fails
3881         Otherwise, it's far too easy to miss diagnostics emitted
3882         between gnulib-tool's output and that of running configure.
3883         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3884
3885 2012-01-17  Jim Meyering  <meyering@redhat.com>
3886
3887         maint: enable sc_trailing_blank
3888         * build-aux/pmccabe.css: Remove trailing blanks.
3889         * doc/acl-cygwin.txt: Likewise.
3890         * doc/gnu-oids.texi: Likewise
3891         * cfg.mk: Enable sc_trailing_blank.
3892         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3893
3894 2012-01-17  Jim Meyering  <meyering@redhat.com>
3895
3896         maint: enable sc_prohibit_openat_without_use
3897         * cfg.mk: Enable sc_prohibit_openat_without_use.
3898         Exempt lib/selinux-at.c.
3899
3900 2012-01-17  Jim Meyering  <meyering@redhat.com>
3901
3902         maint: enable sc_prohibit_cloexec_without_use
3903         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3904         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3905
3906 2012-01-17  Jim Meyering  <meyering@redhat.com>
3907
3908         maint: enable sc_prohibit_intprops_without_use
3909         * cfg.mk: Enable sc_prohibit_intprops_without_use
3910         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3911
3912 2012-01-17  Jim Meyering  <meyering@redhat.com>
3913
3914         maint: enable sc_prohibit_hash_pjw_without_use
3915         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3916         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3917         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3918         following " (".
3919
3920 2012-01-17  Jim Meyering  <meyering@redhat.com>
3921
3922         maint: enable double-word-prohibiting rule
3923         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3924         Exempt three files.
3925
3926 2012-01-17  Jim Meyering  <meyering@redhat.com>
3927
3928         maint: remove empty lines at EOF, but excluding modules/*
3929         Apply syntax rules at home as well as abroad.  Most changes
3930         were induced by running this:
3931           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3932             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3933             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3934         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3935         Exempt modules/* and two binary files.
3936         Also exempt doc/INSTALL*, per request from Bruno Haible.
3937         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3938         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3939         * doc/Copyright/request-assign.future: Likewise.
3940         * doc/Copyright/request-disclaim.changes: Likewise.
3941         * doc/INSTALL: Likewise.
3942         * doc/INSTALL.ISO: Likewise.
3943         * doc/INSTALL.UTF-8: Likewise.
3944         * doc/acl-cygwin.txt: Likewise.
3945         * doc/acl-resources.txt: Likewise.
3946         * doc/fdl-1.2.texi: Likewise.
3947         * doc/fdl-1.3.texi: Likewise.
3948         * doc/fdl.texi: Likewise.
3949         * lib/argp-pin.c: Likewise.
3950         * lib/round.c: Likewise.
3951         * lib/unicase/u16-totitle.c: Likewise.
3952         * lib/unictype/block_test.c: Likewise.
3953         * lib/uninorm/canonical-decomposition.c: Likewise.
3954         * m4/README: Likewise.
3955         * m4/relocatable-lib.m4: Likewise.
3956         * tests/test-isnand-nolibm.c: Likewise.
3957         * tests/test-isnand.c: Likewise.
3958         * tests/uninorm/NormalizationTest.txt: Likewise.
3959
3960 2012-01-17  Jim Meyering  <meyering@redhat.com>
3961
3962         maint: add framework to run syntax-check rules against gnulib sources
3963         * cfg.mk: New file, to disable all currently-failing tests.
3964         We'll enable them one by one, as they are made to pass.
3965         * Makefile (sc_maint): New rule.
3966
3967 2012-01-21  Bruno Haible  <bruno@clisp.org>
3968
3969         stdint: Add support for Android.
3970         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3971         include the system's <stdint.h>.
3972         Reported by Simon Josefsson <simon@josefsson.org>.
3973
3974 2012-01-19  Jim Meyering  <meyering@redhat.com>
3975
3976         bootstrap: add bootstrap_post_import_hook
3977         Bison does still need something like the gnulib_mk_hook whose
3978         invocation I had to remove along with slurp in commit 767ccd40.
3979         Technically, we could get along without it, but doing so would
3980         have required living with a warning and a mandatory post-bootstrap
3981         automake rerun.
3982         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3983         (bootstrap_post_import_hook): New function.
3984         Invoke it after gnulib-tool --import and before autoreconf.
3985
3986 2012-01-18  Jim Meyering  <meyering@redhat.com>
3987
3988         gitlog-to-changelog: don't use "no_"-prefixed variable name
3989         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3990         to enable both --cluster and --no-cluster.  Change variable name,
3991         s/\$no_cluster/$cluster/, and reverse usage to match.
3992
3993         gitlog-to-changelog: use "||", not "or" in expressions
3994         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3995         expressions.
3996
3997 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3998
3999         gitlog-to-changelog: new option --no-cluster
4000         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4001         clustering of adjacent commit messages.
4002
4003 2012-01-17  Jim Meyering  <meyering@redhat.com>
4004
4005         maint: spell file systems with two words, not one
4006         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4007         two words, not one.
4008
4009 2012-01-16  Jim Meyering  <meyering@redhat.com>
4010
4011         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4012         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4013
4014 2012-01-16  Eric Blake  <eblake@redhat.com>
4015
4016         bootstrap: cater to autoconf 2.59
4017         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4018         is not available.
4019
4020         bootstrap: properly check for libtool
4021         * build-aux/bootstrap (libtoolize): Also run libtool when older
4022         usage is detected.
4023
4024 2012-01-15  Bruno Haible  <bruno@clisp.org>
4025
4026         Improve support for MSVC 9.
4027         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4028         clashes on MSVC.
4029         * lib/fcntl.in.h: Likewise.
4030         * lib/stdlib.in.h: Likewise.
4031         * lib/sys_stat.in.h: Likewise.
4032
4033 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4034
4035         gnupload: we hold the master copy of this script now
4036         For motivation and more information, see:
4037         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4038         * build-aux/gnupload: Make it clear in the heading comments that the
4039         master copy of this file is maintained by gnulib.  Since we are at
4040         it, bump its copyright year and ...
4041         ($scriptversion): ... the date in its version.
4042         ($usage): Patches and bug reports should be sent to the gnulib list,
4043         not the automake one.
4044         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4045         anymore.
4046
4047 2012-01-15  Bruno Haible  <bruno@clisp.org>
4048
4049         Fix module 'random'.
4050         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4051         initstate, setstate are declared.
4052
4053 2012-01-14  Bruno Haible  <bruno@clisp.org>
4054
4055         Tests for module 'random'.
4056         * modules/random-tests: New file.
4057         * tests/test-random.c: New file, based on tests/test-random_r.c.
4058
4059         New module 'random'.
4060         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4061         declarations.
4062         * lib/random.c: New file, based on glibc/stdlib/random.c.
4063         * m4/random.m4: New file.
4064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4065         HAVE_RANDOM.
4066         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4067         * modules/random: New file.
4068         * config/srclist.txt: Add an entry for random.c.
4069         * doc/posix-functions/random.texi: Mention the 'random' module.
4070         * doc/posix-functions/initstate.texi: Likewise.
4071         * doc/posix-functions/setstate.texi: Likewise.
4072         * doc/posix-functions/srandom.texi: Likewise.
4073
4074 2012-01-12  Bruno Haible  <bruno@clisp.org>
4075
4076         random_r: Use common idioms.
4077         * lib/random_r.c: Include <stdlib.h> first.
4078
4079         random_r: Override incompatible API on AIX, OSF/1.
4080         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4081         Override the system function if REPLACE_RANDOM_R is 1.
4082         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4083         and OSF/1, set REPLACE_RANDOM_R.
4084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4085         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4086         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4087         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4088         * doc/glibc-functions/random_r.texi: Likewise.
4089         * doc/glibc-functions/setstate_r.texi: Likewise.
4090
4091         random_r: Support for MSVC 9.
4092         * lib/random_r.c: Include stdint.h, not inttypes.h.
4093
4094 2012-01-12  Eric Blake  <eblake@redhat.com>
4095
4096         inet_ntop: guard extra work by IF_LINT
4097         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4098         better code generation when not checking for warnings.
4099         Suggested by Paul Eggert and Jim Meyering.
4100
4101         strptime: fix regression on mingw
4102         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4103         Fix regression.  Reported by Bruno Haible.
4104
4105 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4106             Bruno Haible  <bruno@clisp.org>
4107
4108         copy-file: add error-code-returning variant.
4109         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4110         (qcopy_file_preserving): New declaration.
4111         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4112         copy_file_preserving. Change return type to 'int'. Don't emit an error
4113         message here.
4114         (copy_file_preserving): New function.
4115         * tests/test-copy-file.c: Include <stdlib.h>.
4116         (main): Test qcopy_file_preserving if the environment variable
4117         NO_STDERR_OUTPUT is set.
4118         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4119         with NO_STDERR_OUTPUT
4120         * tests/test-copy-file-2.sh: Likewise.
4121
4122 2012-01-10  Bruno Haible  <bruno@clisp.org>
4123
4124         copy-file: Use 'quote' module consistently.
4125         * lib/copy-file.c (copy_file_preserving): Use quote().
4126
4127         copy-file: Refactor.
4128         * lib/copy-file.c: Include quote.h.
4129         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4130         message here.
4131         * modules/copy-file (Depends-on): Add quote.
4132
4133         acl: Export qcopy_acl.
4134         * lib/acl.h (qcopy_acl): New declaration.
4135         * lib/copy-acl.c (qcopy_acl): Make non-static.
4136
4137         acl: Rename a local variable.
4138         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4139
4140         acl: Align return values of copy_acl and qcopy_acl.
4141         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4142         maybe < -1.
4143
4144 2012-01-11  Eric Blake  <eblake@redhat.com>
4145
4146         strptime: silence gcc warnings
4147         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4148         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4149         Reported by Daniel P. Berrange.
4150
4151         inet_ntop: silence gcc warning
4152         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4153         Reported by Daniel P. Berrange.
4154
4155 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4156
4157         getloadavg test: skip the test on GNU/Linux without /proc mounted
4158         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4159         file.  When /proc is not mounted, it always fails with ENOENT.
4160         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4161         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4162
4163 2012-01-10  Bruno Haible  <bruno@clisp.org>
4164
4165         regex: Avoid link error on MSVC 9.
4166         * modules/regex (Depends-on): Add wctype.
4167
4168 2012-01-10  Bruno Haible  <bruno@clisp.org>
4169
4170         doc: Mention --with-tests option.
4171         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4172         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4173         --with-tests.
4174         Reported by Reuben Thomas.
4175
4176 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4177
4178         users.txt: order package names lexicographically.
4179         * users.txt: Order package names lexicographically.
4180
4181 2012-01-10  Jim Meyering  <meyering@redhat.com>
4182
4183         maint.mk: fix description in comment
4184         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4185
4186         ignore-value: remove deprecated ignore_ptr function
4187         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4188         * NEWS: Note this.
4189
4190 2012-01-09  Jim Meyering  <meyering@redhat.com>
4191
4192         test-init.sh: avoid a subshell
4193         * tests/test-init.sh: Remove protective subshell.
4194         Suggested by Bernhard Voelker.  While a subshell is normally
4195         required to protect against older shells (Solaris, FreeBSD) that
4196         warn about a missing program before performing redirection, the
4197         shell-selection tests performed by init.sh probably exclude any
4198         offending shell.
4199
4200 2012-01-08  Bruno Haible  <bruno@clisp.org>
4201
4202         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4203         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4204         variable.
4205
4206 2012-01-08  Bruno Haible  <bruno@clisp.org>
4207
4208         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4209         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4210         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4211         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4212         macro.
4213         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4214         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4215         * lib/spawn_faction_addopen.c: Add workaround implementation if
4216         HAVE_WORKING_POSIX_SPAWN.
4217         * modules/spawn (Makefile): Substitute
4218         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4219         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4220         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4221         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4222         (Depends-on): Update conditions.
4223         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4224         the Solaris 11 bug.
4225
4226 2012-01-08  Bruno Haible  <bruno@clisp.org>
4227
4228         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4229         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4230         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4231         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4232         macro.
4233         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4234         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4235         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4236         HAVE_WORKING_POSIX_SPAWN.
4237         * modules/spawn (Makefile): Substitute
4238         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4239         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4240         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4241         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4242         (Depends-on): Update conditions.
4243         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4244         the Solaris 11 bug.
4245
4246 2012-01-08  Bruno Haible  <bruno@clisp.org>
4247
4248         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4249         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4250         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4251         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4252         HAVE_WORKING_POSIX_SPAWN.
4253         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4254         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4255         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4256         * lib/spawn_faction_addclose.c: Add workaround implementation if
4257         HAVE_WORKING_POSIX_SPAWN.
4258         * modules/spawn (Makefile): Substitute
4259         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4260         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4261         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4262         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4263         (Depends-on): Update conditions.
4264         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4265         the Solaris 11 bug.
4266
4267 2012-01-08  Bruno Haible  <bruno@clisp.org>
4268
4269         doc: Update for Solaris 11 2011-11.
4270         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4271         * m4/printf.m4: Update comments.
4272
4273 2012-01-08  Bruno Haible  <bruno@clisp.org>
4274
4275         mktime: Avoid compilation error on Solaris 11.
4276         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4277
4278 2012-01-08  Bruno Haible  <bruno@clisp.org>
4279
4280         doc: Small fix.
4281         * doc/posix-headers/nl_types.texi: Correct platforms list.
4282
4283 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4284
4285         Add lgpl-3.0 module.
4286         * MODULES.html.sh (Support for building documentation): Add
4287         lgpl-3.0.
4288         * modules/lgpl-3.0: New file.
4289
4290 2012-01-08  Jim Meyering  <meyering@redhat.com>
4291
4292         select.c: indent with spaces, not TABs
4293         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4294
4295 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4296
4297         quotearg: do not use grave accent for left quote
4298         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4299         locale_quoting_style.
4300         (quotearg_buffer_restyled): Fix example.
4301         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4302
4303 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4304
4305         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4306         Most programs do not have translation catalogs for English and much
4307         less separate catalogs for British and American English.  Drop the
4308         suggestion to translators about these two, and provide it
4309         automatically for Unicode locales.  Like most programs, even those
4310         using American English, we use single quotation marks.  This conflicts
4311         with the American typographic convention, but works better when you
4312         cite the entire error message within double quotes.  It also tries not
4313         to clash with established practice and with what non-gnulib programs
4314         will usually do.
4315         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4316         using an UTF-8 or GB-18030 locale.  The list of other locales with
4317         quotes was provided by Bruno Haible.
4318         (quotearg_buffer_restyled): Adjust instructions to translators.
4319         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4320         text, since this would be wrong when using Unicode.
4321         * modules/quotearg: Depend on c-strcaseeq.
4322
4323 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4324
4325         quotearg: fix Wikipedia link
4326         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4327
4328 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4329
4330         Fix for mingw with MSVC9.
4331         * m4/ld-version-script.m4: Check that compiler rejects version
4332         scripts with syntax errors.  Reported by Bruno Haible
4333         <bruno@clisp.org>.
4334
4335 2012-01-06  Bruno Haible  <bruno@clisp.org>
4336
4337         Talk about "native Windows API", not "Woe32".
4338         * lib/accept4.c: Update comments to mention native Windows.
4339         * lib/execute.c: Likewise.
4340         * lib/fatal-signal.c: Likewise.
4341         * lib/localcharset.c: Likewise.
4342         * lib/nanosleep.c: Likewise.
4343         * lib/nl_langinfo.c: Likewise.
4344         * lib/pclose.c: Likewise.
4345         * lib/pipe-filter-gi.c: Likewise.
4346         * lib/pipe-filter-ii.c: Likewise.
4347         * lib/pipe.c: Likewise.
4348         * lib/pipe2.c: Likewise.
4349         * lib/popen.c: Likewise.
4350         * lib/progreloc.c: Likewise.
4351         * lib/relocatable.c: Likewise.
4352         * lib/sigaction.c: Likewise.
4353         * lib/sigprocmask.c: Likewise.
4354         * lib/spawn-pipe.h: Likewise.
4355         * lib/spawn-pipe.c: Likewise.
4356         * lib/spawni.c: Likewise.
4357         * lib/stat-time.h: Likewise.
4358         * lib/w32spawn.h: Likewise.
4359         * tests/test-isatty.c: Likewise.
4360         * lib/config.charset: More comments.
4361         * doc/gnulib-intro.texi: Mention native Windows.
4362         * doc/posix-functions/_Exit_C99.texi: Likewise.
4363         * doc/posix-headers/fcntl.texi: Likewise.
4364
4365 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4366
4367         argp: Avoid crash if translator uses % characters in a translation.
4368         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4369         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4370
4371 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4372
4373         doc: C11 and C++11 are now official
4374         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4375         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4376         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4377         * modules/stdalign:
4378         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4379
4380 2012-01-06  Bruno Haible  <bruno@clisp.org>
4381
4382         uc-is-grapheme-break tests: Tweak.
4383         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4384         message.
4385
4386 2012-01-06  Bruno Haible  <bruno@clisp.org>
4387
4388         test-init.sh: correct the test for diff -u
4389         * tests/test-init.sh: Also redirect stdout to /dev/null.
4390
4391 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4392
4393         Use ', not `, for quoting output.
4394         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4395         (print_changelog_deltas, get_tool_versions, main program):
4396         * build-aux/git-version-gen:
4397         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4398         * build-aux/move-if-change (help):
4399         * build-aux/useless-if-before-free (usage, main program):
4400         * check-module (parse_module_file, usage)
4401         (find_included_lib_files, check_module):
4402         * lib/argmatch.c (main) [TEST]:
4403         * lib/argp-help.c (_help):
4404         * lib/getopt1.c (main) [TEST]:
4405         * lib/git-merge-changelog.c (usage):
4406         * lib/xstrtol-error.c (xstrtol_error):
4407         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4408         * m4/argz.m4 (gl_FUNC_ARGZ):
4409         * m4/bison.m4 (gl_BISON):
4410         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4411         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4412         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4413         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4414         * m4/gc-random.m4 (gl_GC_RANDOM):
4415         * m4/intl.m4 (gt_CHECK_DECL):
4416         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4417         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4418         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4420         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4421         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4422         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4423         * tests/test-dirname.c (main):
4424         * tests/test-getpass.c (main):
4425         * tests/test-iconvme.c (main):
4426         * tests/test-parse-datetime.c (LOG):
4427         * tests/test-xstrtoimax.sh:
4428         * tests/test-xstrtol.sh:
4429         * tests/test-xstrtoll.sh:
4430         * tests/test-xstrtoumax.sh:
4431         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4432         * top/GNUmakefile (abort-due-to-no-makefile):
4433         Quote 'like this', not `like this', as per the recent change to
4434         the GNU coding standards.
4435
4436 2012-01-05  Bruno Haible  <bruno@clisp.org>
4437
4438         strtoimax: Don't force a replacement on systems where intmax_t is int.
4439         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4440         'intmax_t' is not larger than 'int'.
4441         Reported by Pádraig Brady <P@draigBrady.com>.
4442
4443 2012-01-05  Bruno Haible  <bruno@clisp.org>
4444
4445         doc: Mention NetBSD bugs.
4446         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4447         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4448
4449 2012-01-05  Bruno Haible  <bruno@clisp.org>
4450
4451         strtoumax tests: Enhance tests.
4452         * tests/test-strtoumax.c (main): Add tests for large values.
4453
4454 2012-01-05  Bruno Haible  <bruno@clisp.org>
4455
4456         strtoimax: Work around AIX 5.1 bug.
4457         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4458         definition.
4459         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4460         Set HAVE_STRTOIMAX.
4461         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4462         REPLACE_STRTOIMAX.
4463         * modules/inttypes-incomplete (Makefile.am): Substitute
4464         REPLACE_STRTOIMAX.
4465         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4466         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4467         (Depends-on): Update conditions.
4468         * tests/test-strtoimax.c (main): Add tests for large values.
4469         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4470
4471 2012-01-05  Bruno Haible  <bruno@clisp.org>
4472
4473         inttypes: Modernize.
4474         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4475         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4476         (Makefile.am): Update inttypes.h rule.
4477
4478 2012-01-05  Jim Meyering  <meyering@redhat.com>
4479
4480         init.sh: don't waste a subshell just to redirect stderr
4481         * tests/init.sh: In testing for diff -u and diff -c, use a
4482         stderr-redirecting exec inside `...` rather than a subshell.
4483
4484         test-init.sh: avoid failure on HP-UX 11.00
4485         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4486         resolves to diff -c or cmp.  Reported by Bruno Haible.
4487
4488 2012-01-05  Bruno Haible  <bruno@clisp.org>
4489
4490         Tests for module 'strtoull'.
4491         * modules/strtoull-tests: New file.
4492         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4493
4494 2012-01-05  Bruno Haible  <bruno@clisp.org>
4495
4496         Tests for module 'strtoll'.
4497         * modules/strtoll-tests: New file.
4498         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4499
4500 2012-01-05  Bruno Haible  <bruno@clisp.org>
4501
4502         Tests for module 'strtoul'.
4503         * modules/strtoul-tests: New file.
4504         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4505
4506 2012-01-05  Bruno Haible  <bruno@clisp.org>
4507
4508         Tests for module 'strtol'.
4509         * modules/strtol-tests: New file.
4510         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4511
4512 2012-01-04  Jim Meyering  <meyering@redhat.com>
4513
4514         test-init.sh: accommodate Solaris 5.10's different diff -u output
4515         * tests/test-init.sh: Also exempt @@ lines from the comparison
4516         of diff output, since Solaris 5.10 and GNU diff formats differ.
4517         Reported by Stefano Lattarini.
4518
4519 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4520
4521         test-posixtm: don't assume signed integer wraparound
4522         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4523         after signed integer overflow.  Inspired by (though it may not
4524         fix) Bruno Haible's bug report in
4525         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4526
4527         Spell out "Windows 9x" and "Windows XP".
4528         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4529         "Windows 9x" and "WinXP" with "Windows XP".
4530
4531 2012-01-04  Jim Meyering  <meyering@redhat.com>
4532
4533         test-vc-list-files-cvs.sh: remove obsolete comment
4534         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4535         double exit.  Now that's all encapsulated via skip_ and Exit.
4536
4537 2012-01-04  Bruno Haible  <bruno@clisp.org>
4538
4539         Talk about "native Windows API", not "Win32".
4540         * lib/classpath.c: Update comments to mention native Windows.
4541         * lib/csharpexec.c: Likewise.
4542         * lib/dup2.c: Likewise.
4543         * lib/error.c: Likewise.
4544         * lib/fcntl.c: Likewise.
4545         * lib/filename.h: Likewise.
4546         * lib/findprog.c: Likewise.
4547         * lib/get-rusage-as.c: Likewise.
4548         * lib/get-rusage-data.c: Likewise.
4549         * lib/getpagesize.c: Likewise.
4550         * lib/javaexec.c: Likewise.
4551         * lib/msvc-inval.c: Likewise.
4552         * lib/msvc-nothrow.c: Likewise.
4553         * lib/nanosleep.c: Likewise.
4554         * lib/nonblocking.c: Likewise.
4555         * lib/printf-parse.c: Likewise.
4556         * lib/setlocale.c: Likewise.
4557         * lib/sigaction.c: Likewise.
4558         * lib/strerror_r.c: Likewise.
4559         * lib/tmpdir.c: Likewise.
4560         * lib/vasnprintf.c: Likewise.
4561         * lib/w32spawn.h: Likewise.
4562         * lib/waitpid.c: Likewise.
4563         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4564         * m4/locale-ar.m4: Likewise.
4565         * m4/locale-fr.m4: Likewise.
4566         * m4/locale-ja.m4: Likewise.
4567         * m4/locale-tr.m4: Likewise.
4568         * m4/locale-zh.m4: Likewise.
4569         * m4/printf.m4: Likewise.
4570         * tests/test-cloexec.c: Likewise.
4571         * tests/test-copy-acl.sh: Likewise.
4572         * tests/test-copy-file.sh: Likewise.
4573         * tests/test-file-has-acl.sh: Likewise.
4574         * tests/test-set-mode-acl.sh: Likewise.
4575         * tests/test-dup-safer.c: Likewise.
4576         * tests/test-dup2.c: Likewise.
4577         * tests/test-dup3.c: Likewise.
4578         * tests/test-fcntl.c: Likewise.
4579         * tests/test-nonblocking-pipe.h: Likewise.
4580         * tests/test-nonblocking-socket.h: Likewise.
4581         * tests/test-pipe.c: Likewise.
4582         * tests/test-pipe2.c: Likewise.
4583         * tests/test-spawn-pipe-child.c: Likewise.
4584         * doc/acl-resources.txt: Likewise.
4585         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4586         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4587         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4588         * lib/localcharset.c: Update comments to mention native Windows.
4589         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4590         * lib/localename.c: Likewise.
4591         * lib/progreloc.c: Likewise.
4592         * lib/relocatable.c: Likewise.
4593         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4594         (windows_compute_revents): Renamed from win32_compute_revents.
4595         (windows_compute_revents_socket): Renamed from
4596         win32_compute_revents_socket.
4597         * lib/select.c: Update comments to mention native Windows.
4598         (windows_poll_handle): Renamed from win32_poll_handle.
4599         * m4/threadlib.m4: Update comments to mention native Windows.
4600         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4601         --enable-threads=windows instead of --enable-threads=win32. Set
4602         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4603         * lib/glthread/lock.h: Update comments to mention native Windows.
4604         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4605         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4606         USE_WIN32_THREADS.
4607         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4608         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4609         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4610         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4611         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4612         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4613         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4614         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4615         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4616         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4617         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4618         * tests/test-tls.c: Likewise.
4619         Rationale:
4620         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4621         on both 32-bit and 64-bit Windows systems.
4622         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4623         line of distinction is between "native Windows" on one side and Unix/
4624         POSIX systems on the other side. More details in
4625         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4626         Suggested by Paul Eggert.
4627
4628 2012-01-03  Bruno Haible  <bruno@clisp.org>
4629
4630         isatty: Support for MSVC 9.
4631         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4632         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4633         (_isatty_nothrow): New function.
4634         (isatty): Use it instead of _isatty.
4635         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4636         * lib/poll.c (IsConsoleHandle): Likewise.
4637         * lib/select.c (IsConsoleHandle): Likewise.
4638         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4639         (gl_PREREQ_ISATTY): New macro.
4640         * modules/isatty (Depends-on): Add msvc-inval.
4641         (configure.ac): Invoke gl_PREREQ_ISATTY.
4642
4643 2012-01-03  Jim Meyering  <meyering@redhat.com>
4644
4645         maint.mk: remove temporary transition aid from over 1.5 years ago
4646         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4647         purpose was to aid in the transition (avoiding silent malfunction)
4648         from that old name to the new _sc_search_regexp.  This shim was
4649         added by commit 219c504b.
4650
4651         init.sh: do not try to accommodate compare arguments starting with "-"
4652         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4653         compare arguments that start with "-".  Besides, we do not worry
4654         about this when invoking diff or cmp; why start now with sed?
4655         Using "--" to separate options from argument would trigger sed
4656         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4657         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4658
4659 2012-01-02  Bruno Haible  <bruno@clisp.org>
4660
4661         Enhance tests for module 'isatty'.
4662         * modules/isatty-tests (Depends-on): Add pipe-posix.
4663         * tests/test-isatty.c: Include <fcntl.h>.
4664         (DEV_NULL): New macro.
4665         (main): Test the resut of isatty() also on regular files, pipes, and
4666         /dev/null.
4667
4668         New module 'isatty'.
4669         * lib/unistd.in.h (isatty): New declaration.
4670         * lib/isatty.c: New file, based on an idea of
4671         Bastien Roucariès <roucaries.bastien@gmail.com>.
4672         * m4/isatty.m4: New file.
4673         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4674         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4675         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4676         REPLACE_ISATTY.
4677         * modules/isatty: New file.
4678         * doc/posix-functions/isatty.texi: Mention the new module.
4679         Suggested by Paolo Bonzini.
4680
4681 2012-01-02  Bruno Haible  <bruno@clisp.org>
4682
4683         canonicalize: Tweak 2011-12-29 commit.
4684         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4685         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4686
4687 2012-01-02  Jim Meyering  <meyering@redhat.com>
4688
4689         gitlog-to-changelog: describe input syntax in --help output
4690         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4691
4692         gitlog-to-changelog: fix typo in --help: show backslash before email @
4693         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4694         in sources, but not in actual output.
4695
4696 2011-12-30  Jim Meyering  <meyering@redhat.com>
4697
4698         gitlog-to-changelog: don't malfunction when name contains %-directive
4699         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4700         in a name string cause trouble.  E.g., with a user name of "%s",
4701         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4702
4703 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4704
4705         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4706         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4707         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4708         the "  (tiny change)" notation that is appended to the standard
4709         ChangeLog "date  name  email" header line.
4710
4711 2012-01-01  Jim Meyering  <meyering@redhat.com>
4712
4713         test-framework-sh: init.sh: fix "make dist" failure
4714         When using gnulib-tool's --with-tests option and any module that
4715         depends on test-framework-sh, "make dist" would fail due to the
4716         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4717         in the gltests directory, and not in the gllib/ directory.
4718         One way to work around that is to move the EXTRA_DIST += init.sh
4719         from the primary module to the -tests one:
4720         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4721         * modules/test-framework-sh (Makefile.am): ...not here.
4722         Reported by Tom G. Christensen in
4723         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4724
4725         version-etc: update copyright year reported by --version
4726         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4727
4728 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4729
4730         canonicalize: only stat() if required
4731         * lib/canonicalize.c (canonicalize_filename_mode):
4732         Avoid calling l?stat() when both CAN_MISSING,
4733         and CAN_NOLINKS are set, as we neither need
4734         to resolve symlinks or test component existence.
4735
4736 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4737
4738         doc: cover st_ino issues once; add OpenVMS etc.
4739         * doc/posix-functions/stat.texi (stat):
4740         * doc/posix-functions/lstat.texi (lstat):
4741         * doc/posix-functions/fstatat.texi (fstatat):
4742         * doc/posix-functions/fstat.texi (fstat):
4743         Move general 'struct stat' stuff to sys_stat.texi,
4744         leaving behind a pointer.
4745         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4746         Merge duplicate info about 'struct stat' problems into here.
4747         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4748         and suggest partial workarounds.
4749
4750         same-inode: port to OpenVMS
4751         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4752         three st_ino values.
4753
4754 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4755
4756         canonicalize: fix references to stat() and lstat()
4757         * lib/canonicalize.c (canonicalize_filename_mode):
4758         Ensure references always resolve to a replacement
4759         function if required (even via a macro).
4760
4761 2011-12-30  Jim Meyering  <meyering@redhat.com>
4762
4763         gitlog-to-changelog: remove a little duplication
4764         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4765         rather than twice.
4766
4767 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4768
4769         canonicalize: add support for not resolving symlinks
4770         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4771         indicate we don't want to follow symlinks.  Also
4772         provide CAN_MODE_MASK to aid setting these existing
4773         mutually exclusive values.
4774         * lib/canonicalize.c (canonicalize_filename_mode):
4775         Extract the flags from can_mode parameter, which
4776         are currently just used to select between stat()
4777         and lstat().  Also ensure that mutually exclusive
4778         values are flagged immediately as invalid.
4779         * tests/test-canonicalize.c: Verify symlinks are
4780         not followed, and that invalid flag combinations
4781         are diagnosed.
4782
4783 2011-12-25  Jim Meyering  <meyering@redhat.com>
4784
4785         gitlog-to-changelog: do not clump multi-paragraph entries
4786         Identical header lines (date,name,email+coauthors) are suppressed,
4787         thus putting all entries with those same characteristics under
4788         a single header.  However, when a log entry consists of two or
4789         more paragraphs, it may not be clear where it starts and ends.
4790         This change makes it so that such an entry is always separated
4791         from others by a header line, even when that header would
4792         otherwise be suppressed.
4793         * build-aux/gitlog-to-changelog: Implement the above.
4794         Inspired by a related request from Stefano Lattarini in
4795         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4796
4797 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         announce-gen: fix `cmd' typo in diagnostic
4800         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4801         diagnostic: a missing '$' meant that the command was not output.
4802
4803 2011-12-23  Jim Meyering  <meyering@redhat.com>
4804
4805         test-framework-sh: distribute init.sh
4806         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4807         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4808         fail due to the lack of init.sh.
4809
4810         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4811         * modules/atexit-tests: Rather than listing tests/init.sh,
4812         now that there's a module for it, simply depend on that new module.
4813         * modules/closein-tests: Likewise.
4814         * modules/exclude-tests: Likewise.
4815         * modules/getcwd-tests: Likewise.
4816         * modules/perror-tests: Likewise.
4817         * modules/pread-tests: Likewise.
4818         * modules/pwrite-tests: Likewise.
4819         * modules/vc-list-files-tests: Likewise.
4820         * modules/verify-tests: Likewise.
4821         * modules/xalloc-die-tests: Likewise.
4822         * modules/xstrtoimax-tests: Likewise.
4823         * modules/xstrtol-tests: Likewise.
4824         * modules/xstrtoll-tests: Likewise.
4825         * modules/xstrtoumax-tests: Likewise.
4826         * modules/yesno-tests: Likewise.
4827
4828 2011-12-22  Jim Meyering  <meyering@redhat.com>
4829
4830         test-framework-sh: add minimal tests of init.sh's compare function
4831         * modules/test-framework-sh-tests: New file.
4832         * tests/test-init.sh: New file.
4833
4834         test-framework-sh: new module
4835         * modules/test-framework-sh: New file.
4836         * MODULES.html.sh (Support for maintaining and releasing projects):
4837         List it.
4838
4839         init.sh: do not emit simulated diff output to stderr
4840         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4841
4842 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4843
4844         .gitignore: ignore gnulib.dvi and regex.info
4845         * doc/.gitignore:add gnulib.dvi and regex.info
4846
4847 2011-12-22  Jim Meyering  <meyering@redhat.com>
4848
4849         init.sh: correct previous change
4850         * tests/init.sh (compare): My previous change was wrong.
4851         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4852
4853         init.sh: avoid unwarranted test failure when using "set -e"
4854         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4855         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4856         a use like "compare exp out" would get evoke an unconditional failure.
4857
4858 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4859
4860         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4861         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4862         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4863         autoreconf that did not.
4864         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4865         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4866
4867 2011-12-17  Jim Meyering  <meyering@redhat.com>
4868
4869         bootstrap: remove some now-unneeded code
4870         This script arose back when gnulib-tool was young.
4871         Since then, it has seen improvements that render much of this
4872         script unnecessary.  In particular, it can now make symlinks
4873         to the files it uses.  Also, I no longer see as much value in
4874         marking files as read-only via comments.
4875         If you relied on the symlink-creation feature of the preceding
4876         version of this script, you can get most of that functionality
4877         by adding the --symlink option to the definition of
4878         gnulib_tool_option_extras in your bootstrap.conf file.
4879         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4880         Run autopoint and libtoolize *before* gnulib-tool.
4881         After it, run an abbreviated autoreconf, rather than a loop around
4882         all tools.
4883         (slirp, bt_mark_as_generated): Remove functions.
4884
4885 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4886
4887         ftoastr: fix typo
4888         * lib/ftoastr.h: Fix misspelling in comment.
4889
4890 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4891
4892         * top/README-release: fix punctuation.
4893
4894 2011-12-17  Jim Meyering  <meyering@redhat.com>
4895
4896         bootstrap: correct the recent buildreq change
4897         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4898         had no effect.
4899         * build-aux/bootstrap (buildreq): Bracket each search term with
4900         "*...*", so that the shell "case" statement works as intended.
4901         Add comments.
4902
4903 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4904
4905         build: let bootstrap resort to wget when downloading .po files
4906         * build-aux/bootstrap (download_po_files): Fallback to wget when
4907         downloading the .po files via rsync fails.  This is necessary to
4908         bootstrap from behind a strict firewall.
4909
4910 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4911
4912         stdint: don't assume C++11 when compiling with g++
4913         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4915         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4916         work also in C++ before C++11, as that improperly inhibits
4917         generating a substitute stdint.h for that case.
4918
4919 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4920
4921         alloca: protect comment from gnulib-tool
4922         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4923         that gnulib-tool doesn't think it's a license, and munge it to
4924         say "GCC version 3".
4925
4926 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4927
4928         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4929         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4930         $(abs_top_builddir) instead of $(top_builddir).
4931
4932 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4933
4934         strftime-tests: also test nanoseconds
4935         * tests/test-strftime.c (T): Add a test of %N.
4936
4937 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4938
4939         inttypes, stdint: add C++11 support
4940         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4941         when including inttypes.h and stdint.h.  Support this change to
4942         the standard.
4943         * doc/posix-headers/inttypes.texi (inttypes.h):
4944         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4945         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4946         Define if not defined already, for the benefit of pre-C++11 hosts.
4947         Define the standard format macros (e.g., PRId8) always.
4948         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4949         Likewise, if __cpluspus.  Define the standard constant and limit
4950         macros (e.g., INT8_C, INT8_MAX) always.
4951         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4952         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4953         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4954         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4955         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4956         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4957         Likewise.
4958
4959 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4960
4961         nonblocking tests: Fix test failure on Linux/PPC.
4962         Suggested by Prerna Saxena in
4963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4964         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4965         Set to 1100000.
4966
4967 2011-12-12  Jim Meyering  <meyering@redhat.com>
4968
4969         argmatch: don't hard-code `' when listing valid option arguments
4970         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4971         use the quote function to add quotes.  Use fputs rather than
4972         fprintf for the format string with no format directive.
4973
4974 2011-12-07  Eric Blake  <eblake@redhat.com>
4975
4976         bootstrap: detect tools required by gnulib-tool
4977         * build-aux/bootstrap (buildreq): Provide minimum implicit
4978         dependencies.
4979         * DEPENDENCIES: Mention patch as a prereq.
4980
4981 2011-12-04  Bruno Haible  <bruno@clisp.org>
4982
4983         sethostname: Port to Windows platforms.
4984         * lib/sethostname.c: Provide an alternate implementation for Windows
4985         platforms.
4986         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4987         (main): Skip the test if sethostname() fails with EPERM. On Windows
4988         platforms, don't check the result of gethostname().
4989
4990 2011-12-04  Bruno Haible  <bruno@clisp.org>
4991             Jim Meyering  <meyering@redhat.com>
4992
4993         tests: Avoid spurious error message on platforms without mktemp program.
4994         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4995
4996 2011-12-04  Bruno Haible  <bruno@clisp.org>
4997
4998         sethostname: Fix documentation.
4999         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5000         "not fixed" section.
5001
5002 2011-12-03  Bruno Haible  <bruno@clisp.org>
5003
5004         gnulib-tool: Verify that the License field is present and non-empty.
5005         * gnulib-tool (func_get_license_raw): New function, extracted from
5006         func_get_license.
5007         (func_get_license): Use it. Warn if the module is not a test module and
5008         has no license.
5009         Suggested by Jim Meyering.
5010
5011 2011-12-03  Bruno Haible  <bruno@clisp.org>
5012
5013         sethostname tests: Fix link error on mingw.
5014         * tests/test-sethostname1.c: New file, extracted from
5015         tests/test-sethostname.c.
5016         * tests/test-sethostname2.c: New file, extracted from
5017         tests/test-sethostname.c.
5018         * tests/test-sethostname.c: Remove file.
5019         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5020         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5021         (Depends-on): Add gethostname.
5022         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5023         Link the latter with $(GETHOSTNAME_LIB).
5024
5025         sethostname tests: Fix compilation error on mingw.
5026         * tests/test-sethostname.c: Don't include <sys/types.h>.
5027         (geteuid): Use a dummy value without uid_t.
5028         * modules/sethostname-tests (Depends-on): Remove sys_types.
5029
5030         sethostname tests: Avoid a gcc warning.
5031         * tests/test-sethostname.c (main): Remove an unused variable.
5032
5033         Tweak last commit.
5034         * modules/sethostname-tests (Files): Sort by decreasing importance.
5035         (configure.ac): Check for geteuid.
5036         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5037         the test when there's nothing to test. Drop an unnecessary cast.
5038         Improve an error message. Verify that the final sethostname() call
5039         succeeds.
5040
5041 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5042
5043         Add a test suite for the sethostname module.
5044         * modules/sethostname-tests: New file.  A test program
5045         for the sethostname module.
5046         * tests/test-sethostname.c: Likewise.
5047
5048 2011-12-03  Bruno Haible  <bruno@clisp.org>
5049
5050         Tweak last commit.
5051         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5052         Fix preprocessor directives indentation. Fix typos.
5053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5054         * modules/unistd (Makefile): Likewise.
5055
5056 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5057
5058         Integrate the sethostname module into unistd.
5059         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5060         into the unistd.h header.
5061         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5062         preprocessor directives.
5063         * modules/unistd: Setup the Makefile substitutions of the
5064         SETHOSTNAME preprocessor directives.
5065
5066 2011-12-03  Bruno Haible  <bruno@clisp.org>
5067
5068         Tweak last commit.
5069         * lib/sethostname.c: Don't include <string.h>.
5070         (sethostname): No need to copy the argument string to the stack. Don't
5071         call clearerr. Preserve errno when fprintf failed.
5072         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5073         Don't invoke AC_REPLACE_FUNCS.
5074         * modules/sethostname (Link): Remove empty section.
5075         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5076         failure problem.
5077
5078 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5079
5080         New module 'sethostname'.
5081         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5082         for systems that lack it.
5083         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5084         sethostname declaration and function.
5085         * modules/sethostname: New file.  Define the sethostname module.
5086
5087 2011-12-03  Bruno Haible  <bruno@clisp.org>
5088
5089         Tweak last commit.
5090         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5091
5092 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5093
5094         Split the HOST_NAME_MAX detection into a separate m4 macro.
5095         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5096         macro so it can be used by the pending sethostname module.
5097
5098 2011-12-03  Bruno Haible  <bruno@clisp.org>
5099
5100         Fix module descriptions syntax.
5101         * modules/argv-iter (License): Fix syntax.
5102         * modules/di-set (License): Likewise.
5103         * modules/ino-map (License): Likewise.
5104         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5105
5106 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         stdalign: port to Clang 3.0
5109         Problem reported by Simon Josefsson in
5110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5111         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5112         which has <stdalign.h> but which does not define alignof.
5113         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5114
5115 2011-12-01  Eric Blake  <eblake@redhat.com>
5116
5117         mktempd: silence dd usage
5118         * build-aux/mktempd (rand_bytes): Silence dd.
5119
5120 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5121
5122         manywarnings: Don't mention gcc version in docstring.
5123         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5124         Jim Meyering <meyering@redhat.com>.
5125
5126 2011-11-30  Jim Meyering  <meyering@redhat.com>
5127
5128         hash: mark a few floating point constants with "f" suffix
5129         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5130         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5131         floating point constants with "f", since they're destined to be
5132         saved/used as "float"s.
5133
5134 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5135
5136         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5137         * tests/test-float.c (test_long_double): Correct and re-enable the
5138         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5139
5140 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5141
5142         Avoid subtracting two pointers that don't point into the same block.
5143         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5144         only pointers into the same memory block are subtracted. We cannot
5145         assume that sizeof (ptrdiff_t) == sizeof (void *).
5146
5147 2011-11-29  Eric Blake  <eblake@redhat.com>
5148
5149         maint.mk: add syntax check for use of compare from init.sh
5150         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5151         moved here from coreutils.
5152
5153         manywarnings: drop -Wunsuffixed-float-constants
5154         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5155         '1.0D', which is the only way to silence this warning for 'double'.
5156
5157 2011-11-29  Jim Meyering  <meyering@redhat.com>
5158
5159         hash: mark compute_bucket_size with the pure attribute
5160         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5161
5162         quotearg, propername: correct pragma guard expression
5163         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5164         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5165
5166 2011-11-28  Jim Meyering  <meyering@redhat.com>
5167
5168         propername: do not mark proper_name with the const attribute
5169         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5170         since it examines data pointed to by its parameter.
5171         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5172         the suggestion from -Wsuggest-attribute=const.
5173
5174         propername: mark one more function as const
5175         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5176
5177 2011-11-27  Jim Meyering  <meyering@redhat.com>
5178
5179         mark functions with const and pure attributes
5180
5181         Mark functions per suggestions from gcc-4.6 when using these options:
5182         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5183         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5184         Follow these guidelines: when possible, apply the attribute to
5185         an extern declaration, not to its definition.  Apply it to the
5186         definition only when the definition is static.
5187         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5188         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5189         * lib/base64.h (isbase64): Likewise.
5190         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5191         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5192         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5193         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5194         (c_tolower, c_toupper): Likewise.
5195         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5196         * lib/chdir-long.c (find_non_slash): Likewise.
5197         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5198         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5199         * lib/file-type.h (file_type): Likewise.
5200         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5201         * lib/filevercmp.c (verrevcmp): Likewise.
5202         * lib/freadahead.h (freadahead): Likewise.
5203         * lib/fts.c (fts_maxarglen): Likewise.
5204         * lib/hash-pjw.h (hash_pjw): Likewise.
5205         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5206         * lib/hash.c (is_prime, next_prime): Likewise.
5207         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5208         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5209         (hash_table_ok, hash_get_first, hash_string): Likewise.
5210         (compute_bucket_size): Likewise.
5211         * lib/i-ring.h (i_ring_empty): Likewise.
5212         * lib/isnan.c (isnanl): Likewise.
5213         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5214         * lib/memcasecmp.h (memcasecmp): Likewise.
5215         * lib/memchr2.h (memchr2): Likewise.
5216         * lib/memcmp2.h (memcmp2): Likewise.
5217         * lib/parse-datetime.y (lookup_zone): Likewise.
5218         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5219         [!WINDOWS_SOCKETS]: Likewise.
5220         * lib/strnlen1.h (strnlen1): Likewise.
5221         * lib/uniwidth.in.h (uc_width): Likewise.
5222         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5223         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5224         (quoting_options_from_style): Add a comment.
5225         * lib/propername.h (proper_name): Add a comment.
5226
5227 2011-11-27  Bruno Haible  <bruno@clisp.org>
5228
5229         Remove unused macros from !_LIBC code in glibc-borrowed files.
5230         * lib/fnmatch.c (STRCOLL): Remove macro.
5231         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5232         * lib/glob.c (__stat, __readdir64): Remove macros.
5233         * lib/tempname.c (__open64, __xstat64): Remove macros.
5234         Suggested by Paul Eggert.
5235
5236 2011-11-27  Bruno Haible  <bruno@clisp.org>
5237
5238         getcwd: Fix link error on MSVC 9.
5239         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5240
5241 2011-11-27  Bruno Haible  <bruno@clisp.org>
5242
5243         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5244         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5245         HAVE_OPENDIR is 0.
5246         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5247         HAVE_CLOSEDIR is 0.
5248         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5249         is 0.
5250         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5251
5252 2011-11-27  Bruno Haible  <bruno@clisp.org>
5253
5254         getcwd: Fix bug from 2011-08-17.
5255         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5256         platforms that need it.
5257         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5258         code of 4 to be a failure, not a success. This ensures that
5259         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5260
5261 2011-11-27  Bruno Haible  <bruno@clisp.org>
5262
5263         binary-io tests: Avoid test failure on mingw when libtool is used.
5264         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5265         Don't verify the size of t-bin-out1.tmp here.
5266         * tests/test-binary-io.sh: Verify it here.
5267         Reported by Simon Josefsson.
5268
5269 2011-11-26  Bruno Haible  <bruno@clisp.org>
5270
5271         Fix conflict between two instantiations of module 'unistd'.
5272         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5273         ${include_guard_prefix} also in the autoconf snippet.
5274         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5276         GNULIB_UNISTD_H_GETOPT.
5277         * modules/getopt-posix (configure.ac): Set the
5278         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5279         * modules/getopt-gnu (configure.ac): Likewise.
5280         * modules/unistd (Makefile.am): Change the substitution value of
5281         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5282         Reported by Simon Josefsson.
5283
5284 2011-11-25  Bruno Haible  <bruno@clisp.org>
5285
5286         pagealign_alloc: Doc and comments.
5287         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5288         module.
5289         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5290
5291 2011-11-25  Jim Meyering  <meyering@redhat.com>
5292
5293         test-update-copyright.sh: avoid false-positive failure
5294         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5295         around false positive failure on Cygwin/Windows.  The latter was
5296         matching erroneously-created files with names like
5297         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5298
5299 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5300
5301         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5302         * m4/valgrind-tests.m4: Check that the parameters that will be
5303         used works, not just a subset of them.  Reported by Bruno Haible
5304         <bruno@clisp.org>.
5305
5306 2011-11-24  Jim Meyering  <meyering@redhat.com>
5307
5308         test-stdalign.c: comment out long double tests
5309         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5310         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5311         error: '_Alignas' specifiers cannot reduce alignment of \
5312         'static_longdouble_alignas'.
5313
5314 2011-11-22  Jim Meyering  <meyering@redhat.com>
5315
5316         init.sh: make "compare /dev/null FILE" output more readable
5317         * tests/init.sh (compare_): Document the preferred order of arguments.
5318         (emit_diff_u_header_): New function.
5319         (compare_dev_null_): Emit a simulated diff, rather than just the
5320         contents of the unexpected file.  Suggestion from Bruno Haible.
5321
5322 2011-11-21  Jim Meyering  <meyering@redhat.com>
5323             Eric Blake  <eblake@redhat.com>
5324
5325         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5326         * tests/init.sh: Make our compare function slightly more portable.
5327         Reported by Bruno Haible in
5328         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5329
5330 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5331
5332         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5333         before using it, in code that ends up in config.h.
5334
5335 2011-11-20  Bruno Haible  <bruno@clisp.org>
5336
5337         getcwd: Work around getcwd bug on AIX 5..7.
5338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5339         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5340         Use a different value for gl_cv_func_getcwd_path_max. Move the
5341         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5342         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5343         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5344         Define HAVE_MINIMALLY_WORKING_GETCWD.
5345         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5346         where it is not even minimally working, that is, on AIX.
5347         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5348         m4/getcwd-path-max.m4.
5349         (main): Update exit code computation.
5350         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5351         getcwd does not handle long file names.
5352
5353 2011-11-20  Bruno Haible  <bruno@clisp.org>
5354
5355         getcwd: Fix bug from 2009-09-10.
5356         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5357         like "no".
5358
5359 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5360
5361         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5362
5363 2011-11-20  Bruno Haible  <bruno@clisp.org>
5364
5365         fma tests: Avoid shadowing local variables.
5366         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5367         expected.
5368
5369 2011-11-20  Bruno Haible  <bruno@clisp.org>
5370
5371         copysignf tests: Fix.
5372         * tests/test-copysignf.c: Fix signature check.
5373
5374 2011-11-20  Bruno Haible  <bruno@clisp.org>
5375
5376         fma: Remove unused code.
5377         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5378         unused macros.
5379
5380 2011-11-20  Bruno Haible  <bruno@clisp.org>
5381
5382         sethostname: Fix doc about AIX.
5383         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5384         sethostname; it has it.
5385
5386         sethostname: Mention more portability problems.
5387         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5388         problem.
5389         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5390
5391 2011-11-19  Bruno Haible  <bruno@clisp.org>
5392
5393         Depend on module fcntl-h when AT_FDCWD is used.
5394         * modules/utimens (Depends-on): Add fcntl-h.
5395         * modules/areadlinkat (Depends-on): Likewise.
5396         * modules/areadlinkat-with-size (Depends-on): Likewise.
5397         * modules/faccessat (Depends-on): Likewise.
5398         * modules/fchmodat (Depends-on): Likewise.
5399         * modules/fchownat (Depends-on): Likewise.
5400         * modules/getcwd (Depends-on): Likewise.
5401         * modules/mkdirat (Depends-on): Likewise.
5402         * modules/mkfifoat (Depends-on): Likewise.
5403         * modules/readlinkat (Depends-on): Likewise.
5404         * modules/symlinkat (Depends-on): Likewise.
5405         * modules/dup2-tests (Depends-on): Likewise.
5406         * modules/fdutimensat-tests (Depends-on): Likewise.
5407         * modules/futimens-tests (Depends-on): Likewise.
5408
5409 2011-11-19  Bruno Haible  <bruno@clisp.org>
5410
5411         euidaccess: Update a comment.
5412         * lib/euidaccess.c: Update comment about platforms with faccessat.
5413
5414 2011-11-19  Bruno Haible  <bruno@clisp.org>
5415
5416         openat: Fix file list.
5417         * modules/openat (Files): Remove lib/at-func.c.
5418
5419 2011-11-19  Bruno Haible  <bruno@clisp.org>
5420
5421         fstatat: Simplify.
5422         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5423         gnulib should define rpl_fstatat, there is a
5424         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5425
5426 2011-11-19  Bruno Haible  <bruno@clisp.org>
5427
5428         Ensure 'inline' can be used in tests/test-utimens-common.h.
5429         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5430         * modules/futimens-tests (configure.ac): Likewise.
5431         * modules/utimens-tests (configure.ac): Likewise.
5432         * modules/utimensat-tests (configure.ac): Likewise.
5433
5434 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5435
5436         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5437         not hash_insert0.
5438         (hash_insert_if_absent): Doc fix.
5439
5440 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5441
5442         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5443
5444 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5445
5446         test-getcwd: disambiguate exit status
5447         * tests/test-getcwd.c (test_long_name): Return 0..7.
5448         (main): Exit with an unambiguous exit status.  The old
5449         code yielded a mysterious mixture of two failure codes.
5450
5451         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5452         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5453         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5454         rpl_fstatat or fstatat.  This should fix the other problem
5455         reported by Kai Habel in
5456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5457         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5459         and I reproduced it on a Solaris 8 host we still have in production.
5460
5461 2011-11-18  Jim Meyering  <meyering@redhat.com>
5462
5463         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5464         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5465         Add a sentence to the comment.
5466         (hash_insert0): New function that simply calls hash_insert_if_absent.
5467         * lib/hash.h (hash_insert_if_absent): Declare it.
5468         (hash_insert0): Add deprecation attribute.
5469         (_GL_ATTRIBUTE_DEPRECATED): Define.
5470         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5471         not hash_insert0.
5472         * NEWS: Mention it, even though it's not really an incompatible change.
5473
5474 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5475
5476         openat: avoid compilation failure due to lack of <errno.h> inclusion
5477         * lib/openat.c: Include <errno.h>.
5478
5479 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5480
5481         * modules/getcwd (Depends-on): Add fdopendir.
5482         This fixes one of the two problems reported by Kai Habel in
5483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5484
5485         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5486         stdalign problem reported by Ian Beckwith in
5487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5488         * modules/crypto/gc-arcfour (Depends-on):
5489         Depend conditionally on crypto/arcfour.
5490         * modules/crypto/gc-arctwo (Depends-on):
5491         Depend conditionally on crypto/arctwo.
5492         * modules/crypto/gc-des (Depends-on):
5493         Depend conditionally on crypto/des.
5494         * modules/crypto/gc-hmac-md5 (Depends-on):
5495         Depend conditionally on crypto/hmac-md5.
5496         * modules/crypto/gc-hmac-sha1 (Depends-on):
5497         Depend conditionally on crypto/hmac-sha1.
5498         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5499         * modules/crypto/gc-md4 (Depends-on):
5500         Depend conditionally on crypto/md4.
5501         * modules/crypto/gc-md5 (Depends-on):
5502         Depend conditionally on crypto/md5.
5503         * modules/crypto/gc-rijndael (Depends-on):
5504         Depend conditionally on crypto/rijndael.
5505         * modules/crypto/gc-sha1 (Depends-on):
5506         Depend conditionally on crypto/sha1.
5507         * modules/crypto/gc-arcfour:
5508         * modules/crypto/gc-arctwo:
5509         * modules/crypto/gc-des:
5510         * modules/crypto/gc-hmac-md5:
5511         * modules/crypto/gc-hmac-sha1:
5512         * modules/crypto/gc-md2:
5513         * modules/crypto/gc-md4:
5514         * modules/crypto/gc-md5:
5515         * modules/crypto/gc-rijndael:
5516         * modules/crypto/gc-sha1:
5517         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5518         now that the conditional dependencies do the work for us.
5519
5520 2011-11-17  Jim Meyering  <meyering@redhat.com>
5521
5522         tests: factor st_ctime-comparison out of two headers
5523         * tests/test-utimens-common.h (ctime_compare): Define.
5524         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5525         * tests/test-lutimens.h (test_lutimens): Likewise.
5526         * tests/test-utimens.h (test_utimens): Likewise.
5527
5528         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5529         Invoke the test program via an init.sh-using wrapper.
5530         * tests/test-getcwd.sh: New file.
5531         * modules/getcwd-tests (Files): Add it.
5532         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5533
5534 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5535
5536         gitlog-to-changelog: support multi-author commits.
5537         The FSF cares about keeping track of all authors of patches to its
5538         projects, but Git doesn't provide obvious support for multi-author
5539         changesets. Consensus seems to be forming around the use of extra
5540         Signed-off-by inspired lines in the log message formatted as
5541         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5542         multi-author commits between version control systems.
5543         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5544         log message and output in standard ChangeLog multi-author format.
5545         Reported by Peter Rosin <peda@lysator.liu.se>
5546
5547 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5548             Bruno Haible  <bruno@clisp.org>
5549
5550         Fix some modules' file list.
5551         * modules/fstatat (Files): Add m4/lstat.m4.
5552         * modules/openat (Files): Likewise.
5553         * modules/unlinkat (Files): Likewise.
5554
5555 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5556
5557         maint.mk: fix tight-scope.mk generation in VPATH builds.
5558         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5559         reference with $(srcdir) so that the file is found correctly even
5560         when running `make syntax-check' in a VPATH build.
5561
5562 2011-11-13  Bruno Haible  <bruno@clisp.org>
5563             Jim Meyering  <meyering@redhat.com>
5564
5565         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5566         * tests/init.sh (compare): Remove "No differences encountered" or
5567         synonymous output from the 'diff' program.
5568
5569 2011-11-13  Bruno Haible  <bruno@clisp.org>
5570
5571         Makefile: Tweak indentation.
5572         * Makefile: Use tab as first character in every line that contains rule
5573         commands.
5574
5575 2011-11-13  Bruno Haible  <bruno@clisp.org>
5576
5577         Syntax check for copyright statements.
5578         * check-copyright: New file.
5579         * Makefile (sc_check_copyright): New rule.
5580
5581 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5582
5583         * build-aux/git-version-gen: Add --prefix to configure the tag
5584         match string.
5585
5586 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5587
5588         * build-aux/git-version-gen: Add --help and --version.
5589
5590 2011-11-12  Jim Meyering  <meyering@redhat.com>
5591
5592         revamp the other test-exclude?.sh scripts to use init.sh, too
5593         * tests/test-exclude1.sh: Use init.sh.
5594         * tests/test-exclude2.sh: Likewise.
5595         * tests/test-exclude3.sh: Likewise.
5596         * tests/test-exclude4.sh: Likewise.
5597         * tests/test-exclude5.sh: Likewise.
5598         * tests/test-exclude6.sh: Likewise.
5599         * tests/test-exclude7.sh: Likewise.
5600         * tests/test-exclude8.sh: Likewise.
5601         * modules/exclude-tests (Files): List init.sh.
5602
5603         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5604         These shell scripts ignored failure of the binary test-exclude,
5605         so making the latter return 77 didn't cause them to be skipped.
5606         * tests/test-exclude5.sh: Exit with test-exclude's error status
5607         when that program fails.  Revamp to use init.sh.
5608         * tests/test-exclude2.sh: Likewise.
5609
5610         test-exclude: fix a typo
5611         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5612
5613 2011-11-11  Bruno Haible  <bruno@clisp.org>
5614
5615         obstack: Fix compilation error on MSVC 9.
5616         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5617
5618 2011-11-11  Jim Meyering  <meyering@redhat.com>
5619
5620         test-exclude: skip tests rather than failing on deficient systems
5621         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5622         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5623         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5624         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5625
5626 2011-11-10  Bruno Haible  <bruno@clisp.org>
5627
5628         ptsname_r test: Avoid gcc warning on glibc systems.
5629         * tests/test-ptsname_r.c (null_ptr): New function.
5630         (test_errors): Use it.
5631
5632 2011-11-10  Bruno Haible  <bruno@clisp.org>
5633
5634         ptsname_r: Avoid compilation error on OSF/1 5.1.
5635         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5637         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5638         function is not declared or incompatibly declared.
5639         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5640         * modules/ptsname_r (Depends-on, configure.ac): Update.
5641         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5642
5643 2011-11-10  Bruno Haible  <bruno@clisp.org>
5644
5645         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5646         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5647         When cross-compiling, guess yes on all platforms except AIX.
5648         Reported by Ludovic Courtès <ludo@gnu.org>.
5649
5650 2011-11-09  Bruno Haible  <bruno@clisp.org>
5651
5652         ptsname_r tests: Fix bugs.
5653         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5654         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5655
5656 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5657
5658         fstatat: work with cross-compilation
5659         Problem reported by Ludovic Courtès in
5660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5661         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5662         "cross-compiling" and assume the bug is present.  Replace
5663         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5664         an inverted sense, to be more conservative about our assumptions.
5665         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5666
5667 2011-11-09  Bruno Haible  <bruno@clisp.org>
5668
5669         Improve MODULES.html output.
5670         * modules/mkfifoat (Description): Use the word "function".
5671         * modules/readlinkat (Description): Likewise.
5672         * modules/symlinkat (Description): Likewise.
5673
5674 2011-11-09  Eric Blake  <eblake@redhat.com>
5675
5676         ptsname_r-tests: new test module
5677         * modules/ptsname_r-tests: New module.
5678         * tests/test-ptsname_r.c: New file.
5679
5680         ptsname_r: new module
5681         * modules/ptsname_r: New module.
5682         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5683         * lib/ptsname.c (__ptsname_r): Split...
5684         * lib/ptsname_r.c: ...into new file.
5685         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5686         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5687         * modules/stdlib (Makefile.am): Substitute witnesses.
5688         * lib/stdlib.in.h (ptsname_r): Declare it.
5689         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5690         * MODULES.html.sh (Misc): Likewise.
5691         * modules/ptsname (Depends-on): Alter dependency.
5692         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5693
5694 2011-11-09  Jim Meyering  <meyering@redhat.com>
5695
5696         announce-gen: be more concise when there's only one URL+tarball
5697         * build-aux/announce-gen (get_tool_versions): When you distribute
5698         only one type of tarball, combine the first two "Here are..."
5699         sections and make the key-checking grammar independent of
5700         how many tarballs there are.
5701
5702 2011-11-09  Eric Blake  <eblake@redhat.com>
5703
5704         openpty: provide a stub on mingw
5705         * lib/pty.in.h (includes): Provide forward declarations.
5706         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5707
5708         raise: fix mingw handling of SIGPIPE
5709         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5710
5711 2011-11-08  Bruno Haible  <bruno@clisp.org>
5712
5713         More conditional dependencies.
5714         * modules/faccessat (Depends-on): Add conditions.
5715         * modules/fchmodat (Depends-on): Likewise.
5716         * modules/fchownat (Depends-on): Likewise.
5717         * modules/fstatat (Depends-on): Likewise.
5718         * modules/mkfifoat (Depends-on): Likewise.
5719         * modules/readlinkat (Depends-on): Likewise.
5720         * modules/symlinkat (Depends-on): Likewise.
5721         * modules/unlinkat (Depends-on): Likewise.
5722         * modules/utimensat (Depends-on): Likewise.
5723         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5724         * modules/linkat (Depends-on): Refine the conditions.
5725         * modules/renameat (Depends-on): Likewise.
5726
5727 2011-11-08  Bruno Haible  <bruno@clisp.org>
5728
5729         faccessat: Move AC_LIBOBJ invocation to module description.
5730         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5731         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5732         invocation from here...
5733         * modules/faccessat (configure.ac): ... to here. Invoke
5734         gl_PREREQ_FACCESSAT.
5735
5736 2011-11-08  Bruno Haible  <bruno@clisp.org>
5737
5738         faccessat: Simplify autoconf macro.
5739         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5740         gl_FUNC_EUIDACCESS.
5741
5742 2011-11-08  Bruno Haible  <bruno@clisp.org>
5743
5744         renameat: Fix dependencies.
5745         * modules/renameat (Depends-on): Add stdbool.
5746
5747 2011-11-08  Bruno Haible  <bruno@clisp.org>
5748
5749         mkfifoat: Fix module description.
5750         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5751         not gl_UNISTD_MODULE_INDICATOR.
5752
5753 2011-11-08  Bruno Haible  <bruno@clisp.org>
5754
5755         fstatat: Remove unused dependency.
5756         * modules/fstatat (Depends-on): Remove fstat.
5757
5758 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5759
5760         GNUmakefile: behave when Makefile is missing.
5761         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5762
5763 2011-11-08  Bruno Haible  <bruno@clisp.org>
5764
5765         openat: Conditionalize dependencies.
5766         * lib/openat.c: Reduce the scope of some #includes.
5767         * modules/openat (Depends-on): Add conditions.
5768
5769 2011-11-07  Jim Meyering  <meyering@redhat.com>
5770
5771         maint.mk: extract GPG key ID without using a temporary file
5772         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5773         without using a temporary file.  Based on a suggestion from Werner Koch
5774         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5775
5776 2011-11-07  Eric Blake  <eblake@redhat.com>
5777
5778         grantpt: fix typo
5779         * lib/stdlib.in.h (grantpt): Check correct function.
5780
5781         maint.mk: silence new syntax check
5782         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5783
5784 2011-11-06  Bruno Haible  <bruno@clisp.org>
5785
5786         Doc about floating-point and math API.
5787         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5788         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5789
5790 2011-11-06  Bruno Haible  <bruno@clisp.org>
5791
5792         stdalign tests: Skip the test when compiled by Sun C.
5793         * tests/test-stdalign.c (main): Skip the test on Sun C.
5794
5795 2011-11-06  Bruno Haible  <bruno@clisp.org>
5796
5797         ansi-c++-opt: Complete the 2011-06-05 change.
5798         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5799         does not support namespaces, set the variable to "no", not to ":".
5800
5801 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5804
5805 2011-11-06  Bruno Haible  <bruno@clisp.org>
5806
5807         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5808         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5809         (minus_zerol) [HP-UX]: New macro.
5810         (unary_minus) [HP-UX]: New function.
5811         (copysignl) [HP-UX]: Use unary_minus function.
5812
5813 2011-11-06  Bruno Haible  <bruno@clisp.org>
5814
5815         ldexp, ldexpf, ldexpl: Enhance tests.
5816         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5817         and tests/test-ldexpl.c.
5818         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5819         LDEXP, MIN_EXP, MAX_EXP): New macros.
5820         Include test-ldexp.h.
5821         (main): Just call test_function.
5822         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5823         infinity.h, nan.h.
5824         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5825         MAX_EXP): New macros.
5826         Include test-ldexp.h.
5827         (x, y): Remove variables.
5828         (main): Just call test_function.
5829         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5830         infinity.h, nan.h.
5831         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5832         MAX_EXP): New macros.
5833         Include test-ldexp.h.
5834         (x, y): Remove variables.
5835         (main): Just call test_function.
5836         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5837         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5838         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5839         (Depends-on): Add isnand-nolibm, signbit, float.
5840         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5841         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5842         (Depends-on): Add isnanf-nolibm, signbit, float.
5843
5844 2011-11-06  Bruno Haible  <bruno@clisp.org>
5845
5846         math tests: Cosmetics.
5847         * tests/test-math-c++.cc: Reorder declarations.
5848
5849 2011-11-05  Bruno Haible  <bruno@clisp.org>
5850
5851         fma*: Simplify test.
5852         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5853         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5854
5855         Tests for module 'fmal'.
5856         * modules/fmal-tests: New file.
5857         * tests/test-fmal1.c: New file.
5858         * tests/test-fmal2.c: New file.
5859
5860         New module 'fmal'.
5861         * lib/math.in.h (fmal): New declaration.
5862         * lib/fmal.c: New file.
5863         * m4/fmal.m4: New file.
5864         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5866         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5867         REPLACE_FMAL.
5868         * modules/fmal: New file.
5869         * doc/posix-functions/fmal.texi: Mention the new module and the various
5870         bugs.
5871
5872         Tests for module 'fmaf'.
5873         * modules/fmaf-tests: New file.
5874         * tests/test-fmaf1.c: New file.
5875         * tests/test-fmaf2.c: New file.
5876
5877         New module 'fmaf'.
5878         * lib/math.in.h (fmaf): New declaration.
5879         * lib/fmaf.c: New file.
5880         * m4/fmaf.m4: New file.
5881         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5883         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5884         REPLACE_FMAF.
5885         * modules/fmaf: New file.
5886         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5887         bugs.
5888
5889         Tests for module 'fma'.
5890         * modules/fma-tests: New file.
5891         * tests/test-fma1.c: New file.
5892         * tests/test-fma1.h: New file.
5893         * tests/test-fma2.c: New file.
5894         * tests/test-fma2.h: New file.
5895
5896         New module 'fma'.
5897         * lib/math.in.h (fma): New declaration.
5898         * lib/fma.c: New file.
5899         * m4/fma.m4: New file.
5900         * m4/fegetround.m4: New file.
5901         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5903         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5904         REPLACE_FMA.
5905         * modules/fma: New file.
5906         * doc/posix-functions/fma.texi: Mention the new module and the various
5907         bugs.
5908
5909         Extend gl_MATHFUNC.
5910         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5911         Support 'void' as argument type.
5912         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5913
5914 2011-11-05  Jim Meyering  <meyering@redhat.com>
5915
5916         maint.mk: also prohibit inclusion of dirent.h without use
5917         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5918
5919 2011-11-05  Bruno Haible  <bruno@clisp.org>
5920
5921         ldexpl tests: Avoid test failure on MSVC 9.
5922         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5923         value. Needed in order to enforce the conversion from a value greater
5924         than LDBL_MAX to Infinity.
5925
5926 2011-11-05  Bruno Haible  <bruno@clisp.org>
5927
5928         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5929         * modules/at-internal: New file, extracted from modules/openat.
5930         * modules/openat-h: New file.
5931         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5932         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5933         * modules/openat (Description): Add reference to POSIX function.
5934         (Files): Remove lib/openat.h, lib/openat-proc.c.
5935         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5936         intprops, unistd.
5937         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5938         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5939         gl_FCNTL_MODULE_INDICATOR.
5940         (Include): Remove unistd.h, openat.h.
5941         * modules/areadlinkat (Files): Add lib/at-func.c.
5942         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5943         openat-die, openat-h, save-cwd.
5944         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5945         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5946         openat-die, openat-h, save-cwd, unistd.
5947         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5948         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5949         openat-h, save-cwd. Remove fcntl-h, openat.
5950         * modules/fchmodat (Files): Remove lib/openat.h.
5951         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5952         openat, stdbool, unistd.
5953         * modules/fchownat (Files): Remove lib/openat.h.
5954         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5955         openat, stdbool, sys_stat.
5956         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5957         lib/openat-proc.c.
5958         (Depends-on): Add at-internal.
5959         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5960         * modules/fstatat (Files): Remove lib/openat.h.
5961         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5962         stdbool, unistd.
5963         * modules/fts (Depends-on): Add openat-h.
5964         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5965         openat.
5966         * modules/mkdirat (Files): Remove lib/openat.h.
5967         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5968         openat, stdbool, sys_stat.
5969         * modules/mkfifoat (Files): Add lib/at-func.c.
5970         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5971         openat-h, save-cwd. Remove fcntl-h, openat.
5972         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5973         * modules/readlinkat (Files): Add lib/at-func.c.
5974         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5975         openat-h, save-cwd. Remove fcntl-h, openat.
5976         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5977         openat.
5978         * modules/selinux-at (Files): Add lib/at-func.c.
5979         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5980         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5981         * modules/symlinkat (Files): Add lib/at-func.c.
5982         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5983         openat-h, save-cwd. Remove fcntl-h, openat.
5984         * modules/unlinkat (Files): Remove lib/openat.h.
5985         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5986         stdbool.
5987         * modules/utimensat (Files): Add lib/at-func.c.
5988         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5989         openat-die, openat-h, save-cwd.
5990         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5991         * modules/fdutimensat-tests (Depends-on): Add openat.
5992         * modules/fstatat-tests (Depends-on): Add openat-h.
5993         * modules/readlinkat-tests (Depends-on): Add openat.
5994         * modules/symlinkat-tests (Depends-on): Add openat.
5995
5996 2011-11-05  Bruno Haible  <bruno@clisp.org>
5997
5998         openat: Include <stdbool.h>.
5999         * lib/openat.c: Include <stdbool.h>.
6000
6001 2011-11-04  Bruno Haible  <bruno@clisp.org>
6002
6003         fchownat, renameat, unlinkat: Fix dependencies.
6004         * modules/fchownat (Depends-on): Add fstatat.
6005         * modules/renameat (Depends-on): Likewise.
6006         * modules/unlinkat (Depends-on): Likewise.
6007
6008 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         openat: remove direct dependency on dirent
6011         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6012         and hasn't been needed ever since fdopendir was split into its own
6013         module on 2009-08-31.
6014         * modules/openat (Depends-on): Remove dirent.
6015
6016 2011-11-04  Bruno Haible  <bruno@clisp.org>
6017
6018         renameat: Optimize code size.
6019         * modules/renameat (configure.ac): Don't compile at-func2.c if
6020         REPLACE_RENAMEAT is 1.
6021
6022 2011-11-04  Bruno Haible  <bruno@clisp.org>
6023
6024         openat tests: Fix file list.
6025         * modules/openat-tests (Files): Add tests/test-open.h.
6026
6027 2011-11-04  Bruno Haible  <bruno@clisp.org>
6028
6029         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6030         * modules/fchmodat (Depends-on): Add openat-die.
6031         * modules/fchownat (Depends-on): Likewise.
6032         * modules/linkat (Depends-on): Likewise.
6033         * modules/renameat (Depends-on): Likewise.
6034         * modules/openat (Depends-on): Add dirent.
6035
6036 2011-11-04  Jim Meyering  <meyering@redhat.com>
6037
6038         at-func*.c: fix comments
6039         * lib/at-func2.c: Correct/improve first-line comment.
6040         * lib/at-func.c: Correct grammar in first-line comment.
6041
6042 2011-11-04  Bruno Haible  <bruno@clisp.org>
6043
6044         New module 'mkdirat', split off from module 'openat'.
6045         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6047         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6048         * modules/mkdirat: New file, extracted from modules/openat.
6049         * modules/openat (Files): Remove lib/mkdirat.c.
6050         (Depends-on): Remove mkdir.
6051         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6052         (Include): Remove <sys/stat.h>.
6053         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6054         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6055         tests/test-mkdir.h.
6056         (Depends-on): Remove ignore-value.
6057         (Makefile.am): Remove rules for test-mkdirat.
6058         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6059         of module 'openat'.
6060         * NEWS: Mention the change.
6061
6062 2011-11-04  Bruno Haible  <bruno@clisp.org>
6063
6064         closedir: Avoid warning on mingw.
6065         * lib/closedir.c: Include <unistd.h>.
6066
6067 2011-11-04  Bruno Haible  <bruno@clisp.org>
6068
6069         New module 'fstatat', split off from module 'openat'.
6070         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6071         defined.
6072         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6073         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6074         gl_FUNC_FSTATAT.
6075         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6076         * modules/fstatat: New file, extracted from modules/openat.
6077         * modules/openat (Files): Remove lib/fstatat.c.
6078         (Depends-on): Remove lstat.
6079         (configure.ac): Remove AC_LIBOBJ of fstatat.
6080         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6081         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6082         tests/test-lstat.h, tests/test-stat.h.
6083         (Depends-on): Remove getcwd-lgpl.
6084         (Makefile.am): Remove rules for test-fstatat.
6085         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6086         of module 'openat'.
6087         * NEWS: Mention the change.
6088         * modules/getcwd (Depends-on): Add fstatat.
6089         * modules/linkat (Depends-on): Likewise.
6090         * modules/mkfifoat-tests (Depends-on): Likewise.
6091         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6092
6093 2011-11-03  Bruno Haible  <bruno@clisp.org>
6094
6095         New module 'unlinkat', split off from module 'openat'.
6096         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6097         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6098         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6099         * modules/unlinkat: New file, extracted from modules/openat. Correct
6100         the dependency conditions.
6101         * modules/openat (Files): Remove lib/unlinkat.c.
6102         (Depends-on): Remove rmdir, unlink.
6103         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6104         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6105         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6106         tests/test-rmdir.h, tests/test-unlink.h.
6107         (Depends-on): Remove unlinkdir.
6108         (Makefile.am): Remove rules for test-unlinkat.
6109         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6110         of module 'openat'.
6111         * NEWS: Mention the change.
6112         * modules/linkat-tests (Depends-on): Add unlinkat.
6113         * modules/mkfifoat-tests (Depends-on): Likewise.
6114         * modules/readlinkat-tests (Depends-on): Likewise.
6115
6116 2011-11-02  Bruno Haible  <bruno@clisp.org>
6117
6118         New module 'fchmodat', split off from module 'openat'.
6119         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6120         defined.
6121         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6122         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6123         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6124         * modules/fchmodat: New file, extracted from modules/openat.
6125         * modules/openat (Files): Remove lib/fchmodat.c.
6126         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6127         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6128         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6129         (Makefile.am): Remove rules for test-fchmodat.
6130         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6131         of module 'openat'.
6132         * NEWS: Mention the change.
6133
6134 2011-11-02  Jim Meyering  <meyering@redhat.com>
6135
6136         putenv: indent #definition of "environ" to placate cppi
6137         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6138
6139         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6140         Git logs are often treated as immutable, because editing them
6141         changes the SHA1 checksums of all descendants.  Thus, errors in
6142         git logs tend to stay there forever.  However, when we generate
6143         a ChangeLog file -- typically for distribution -- from that git log,
6144         we can actually make corrections in the generated file.  The key
6145         lies in recording in machine-readable/applicable form the desired
6146         corrections.  See --help for description and an example.
6147         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6148         (usage): Describe it; alphabetize option descriptions.
6149         (main): Honor the new option, carefully.
6150
6151 2011-11-01  Jim Meyering  <meyering@redhat.com>
6152
6153         gitlog-to-changelog: avoid an infloop
6154         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6155         that ends up being empty.
6156
6157 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6158
6159         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6160         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6161         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6162         contains (possibly-quoted) backslashes.  This should avoid
6163         all-too-common shell bugs if COMPLICATED contains backslashes in
6164         the "wrong" places.  Reported by David Evans in
6165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6166         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6167         because we want ASCII ranges.  Is there some reason we don't use
6168         the C locale everywhere in this script?
6169         (func_module, top level): Avoid unwanted pathname expansion when
6170         $repo_url_prefix or $repo_url_suffix_repl contain shell
6171         metacharacters like '?' and '*'.
6172
6173 2011-11-01  Bruno Haible  <bruno@clisp.org>
6174
6175         fchownat: Improve description.
6176         * modules/fchownat (Description): Add link to function.
6177
6178 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6179
6180         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6181         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6183         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6184
6185 2011-11-01  Bruno Haible  <bruno@clisp.org>
6186
6187         alignof: Avoid collision with stdalign module.
6188         * lib/alignof.h (alignof): Remove macro.
6189         * NEWS: Mention the change.
6190         Reported by Paul Eggert.
6191
6192 2011-11-01  Bruno Haible  <bruno@clisp.org>
6193
6194         New module 'fchownat', split off from module 'openat'.
6195         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6196         defined.
6197         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6198         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6199         invoke gl_FUNC_FCHOWNAT.
6200         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6201         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6202         * modules/fchownat: New file, extracted from modules/openat.
6203         * modules/openat (Files): Remove lib/fchownat.c.
6204         (Depends-on): Remove lchown.
6205         (configure.ac): Remove AC_LIBOBJ of fchownat.
6206         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6207         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6208         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6209         (Depends-on): Remove mgetgroups, usleep, stat-time.
6210         (configure.ac): Remove test for getegid.
6211         (Makefile.am): Remove rules for test-fchownat.
6212         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6213         of module 'openat'.
6214         * NEWS: Mention the change.
6215
6216 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         stdalign: port better to MSVC and to Sun C 5.11
6219         This fixes some of the problems reported by Bruno Haible in
6220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6221         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6222         shortcomings of MSVC and of Sun C 5.11.
6223         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6224         around __declspec arg.
6225         * modules/stdalign-tests (Files): Add tests/macros.h.
6226         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6227         Include macros.h, for ASSERT.
6228         (DECLARE_ALIGNED): Remove.
6229         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6230         to catch bug), and to 1 if not (simplifies the rest of the code).
6231         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6232         (CHECK_AUTO): Remove.
6233         (CHECK_ALIGNED): Check only the alignment of the static vars,
6234         since auto var alignment isn't supported by Sun C 5.11.
6235         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6236         ASSERT failures are easier to diagnose.
6237
6238 2011-10-31  Bruno Haible  <bruno@clisp.org>
6239
6240         doc about some IRIX 5.3 problems.
6241         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6242         on IRIX 5.3.
6243         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6244         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6245         5.3.
6246         * doc/posix-functions/grantpt.texi: Likewise.
6247         * doc/posix-functions/unlockpt.texi: Likewise.
6248         * doc/posix-functions/lgamma.texi: Likewise.
6249         * doc/posix-functions/nextafter.texi: Likewise.
6250         * doc/posix-functions/remainder.texi: Likewise.
6251         * doc/posix-functions/select.texi: Mention misplaced declaration on
6252         IRIX 5.3.
6253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6254
6255 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6256
6257         gitlog-to-changelog: fix git-log invocation.
6258         git-log mishandles date strings before 1970-01-01 UTC, and there is
6259         no use to specify --since=1970-01-01 by default anyway.
6260         * build-aux/gitlog-to-changelog: By default, when no --since option
6261         was given, do not specify explicit --since option to git-log.
6262
6263 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6264
6265         gitlog-to-changelog: new option --append-dot.
6266         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6267         first non-blank line of each commit message terminated with a dot.
6268
6269 2011-10-30  Bruno Haible  <bruno@clisp.org>
6270
6271         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6272         * lib/ffsl.h: Include <config.h>.
6273         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6274
6275 2011-10-30  Jim Meyering  <meyering@redhat.com>
6276
6277         GNUmakefile: reenable "make syntax-check" for most projects
6278         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6279         build-aux variable", "syntax-check" would do nothing but succeed with
6280         the "No version control files detected..." diagnostic (unless you
6281         happened to override _build-aux via cfg.mk).
6282         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6283         to precede inclusion of maint.mk.  Otherwise, these variables would
6284         be used undefined in any project that does not override the default.
6285
6286 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6287
6288         gitlog-to-changelog: treat a message with only blank lines as empty.
6289         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6290         trailing blank lines before the code that issues a warning about an
6291         empty commit message.
6292
6293 2011-10-30  Jim Meyering  <meyering@redhat.com>
6294
6295         test-parse-datetime.c: avoid new DST-related false positive test failure
6296         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6297         based on the time/date we'll convert, not the current time.
6298         Otherwise, the moment we cross a DST boundary like today's in
6299         Europe, (CEST to CET), that offset ends up being one hour off.
6300
6301 2011-10-27  Bruno Haible  <bruno@clisp.org>
6302
6303         fstat: Tweak documentation.
6304         * modules/fstat (Description): More precise description.
6305
6306 2011-10-27  Bruno Haible  <bruno@clisp.org>
6307
6308         Update documentation regarding 'largefile' module.
6309         * doc/posix-functions/fstat.texi: Tweak wording.
6310         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6311         problems with huge directories and/or small ino_t types.
6312         * doc/posix-functions/readdir.texi: Likewise.
6313         * doc/posix-functions/rewinddir.texi: Likewise.
6314
6315 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6316
6317         maint.mk: don't maintain a second build-aux variable.
6318         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6319         depends on GNUmakefile, which already maintains a cfg.mk
6320         overridable $(_build-aux) for projects with a non-standard
6321         build-aux directory location, although without the $(srcdir)
6322         prefix.  Use that variable consistently instead of introducing a
6323         second one.  Adjust all call sites.
6324
6325 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6326
6327         Add stdalign module and use it in other modules.
6328         This is based on a previous proposal by Bruno Haible
6329         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6330
6331         stdalign: new module
6332         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6333         * modules/stdalign: New files.
6334         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6335         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6336
6337         stdalign-tests: new module
6338         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6339
6340         argp: use stdalign
6341         * lib/argp-parse.c: Include <stdalign.h>.
6342         (alignof): Remove.
6343         * modules/argp (Depends-on): Add stdalign.
6344
6345         crypto libraries: use stdalign
6346         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6347         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6348         Do not include <stdlib.h> twice, in md4.c.
6349         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6350         because we are accessing a pointer's bit-pattern, not a size.
6351         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6352         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6353         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6354         * modules/crypto/sha512: Likewise.
6355
6356         sys_socket: use stdalign, not alignof
6357         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6358         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6359
6360 2011-10-27  Bruno Haible  <bruno@clisp.org>
6361
6362         raise test: Avoid a test failure on Linux/MIPS.
6363         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6364         because 99 is a valid signal on Linux/MIPS.
6365
6366 2011-10-27  Bruno Haible  <bruno@clisp.org>
6367
6368         nonblocking tests: Fix test failure on Linux/MIPS.
6369         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6370         Set to 270000.
6371
6372 2011-10-27  Bruno Haible  <bruno@clisp.org>
6373
6374         utimensat: Work around problem on Linux/hppa.
6375         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6376         values.
6377         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6378
6379 2011-10-25  Jim Meyering  <meyering@redhat.com>
6380
6381         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6382         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6383         after symbols like NULL, size_t, etc.
6384         Reported by Alfred M. Szmidt.
6385
6386         maint.mk: exempt ENODATA from a syntax-check rule
6387         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6388         from the sc_prohibit_always-defined_macros syntax-check rule.
6389         Add a comment.  See this for more details:
6390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6391
6392 2011-10-23  Jim Meyering  <meyering@redhat.com>
6393
6394         fts: close parent dir FD before returning from post-traversal fts_read
6395         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6396         unlink A, even though an FD open on A remained.  This is suboptimal
6397         (holding a file descriptor open longer than needed), but otherwise not
6398         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6399         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6400         that represents a real problem: it causes the removal of A to fail
6401         with e.g., "rm: cannot remove `A': Device or resource busy"
6402
6403         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6404         directory file descriptors.  After completing the final, FTS_DP,
6405         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6406         cache, but then proceeded to add a new FD to it via the subsequent
6407         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6408         final file descriptor would be closed only via fts_close's call to
6409         fd_ring_clear.  Now, it is usually closed earlier, via the final
6410         FTS_DP-returning fts_read call.
6411         * lib/fts.c (restore_initial_cwd): New function, converted from
6412         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6413         Update callers.
6414         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6415         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6416
6417 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6418             Bruno Haible  <bruno@clisp.org>
6419             Jim Meyering  <jim@meyering.net>
6420
6421         readme-release: improve safety of release prep instructions.
6422         * README-release: Don't git pull all branches when only master
6423         is needed for the release process.
6424         Run make maintainer-clean before changing trees and merging.
6425         Don't try to run ./configure right after git pull in case files
6426         that influence the bootstrap process have changed, move the
6427         ./configure step to after running ./bootstrap.
6428         Don't bootstrap "one last time"... it's the first time!
6429
6430 2011-10-22  Bruno Haible  <bruno@clisp.org>
6431
6432         errno, strerror-override: Support for MSVC 10.
6433         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6434         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6435         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6436         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6437         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6438         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6439         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6440         Assign values compatible with MSVC 10.
6441         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6442         New macros.
6443         (GNULIB_defined_EWINSOCK): New macro.
6444         * lib/strerror-override.c (strerror_override): Update accordingly.
6445         * lib/strerror-override.h: Likewise.
6446         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6447         longer equal to the corresponding errno value.
6448         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6449
6450 2011-10-22  Bruno Haible  <bruno@clisp.org>
6451
6452         perror: Recognize when test program crashes.
6453         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6454         strerror, set gl_cv_func_perror_works to no.
6455         Reported by Daniel Richard G. <skunk@iskunk.org>.
6456
6457         perror: Fix indentation.
6458         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6459
6460 2011-10-22  Bruno Haible  <bruno@clisp.org>
6461
6462         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6463         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6464         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6465         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6466         functions, not as a macro.
6467         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6468         macros.
6469         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6470         absence of macro.
6471         Suggested by Eric Blake.
6472         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6473
6474 2011-10-21  Bruno Haible  <bruno@clisp.org>
6475
6476         relocatable-prog-wrapper: Don't leave object files behind.
6477         * build-aux/install-reloc: Re-synchronize list of .o files to be
6478         removed with list of compilation units.
6479
6480 2011-10-20  Bruno Haible  <bruno@clisp.org>
6481
6482         openpty, posix_openpt: Remove code duplication.
6483         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6484         * lib/openpty.c: Include <stdlib.h>.
6485         (openpty): Use posix_openpt on all platforms except IRIX.
6486         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6487
6488 2011-10-20  Bruno Haible  <bruno@clisp.org>
6489
6490         unlockpt: Detect invalid argument.
6491         * lib/unlockpt.c: Include <fcntl.h>.
6492         (unlockpt): Check whether fd is valid, using fcntl().
6493         * modules/unlockpt (Depends-on): Add fcntl-h.
6494
6495 2011-10-20  Bruno Haible  <bruno@clisp.org>
6496
6497         openpty: Avoid compilation error on AIX 6.1.
6498         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6499
6500 2011-10-20  Bruno Haible  <bruno@clisp.org>
6501
6502         posix_openpt: Support for OpenBSD.
6503         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6504         (posix_openpt) [OpenBSD]: New code.
6505         * lib/grantpt.c: Include <fcntl.h>.
6506         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6507         * modules/grantpt (Depends-on): Add fcntl-h.
6508
6509 2011-10-20  Bruno Haible  <bruno@clisp.org>
6510
6511         posix_openpt test: Coding style.
6512         * tests/test-posix_openpt.c: Use GNU coding style.
6513
6514 2011-10-20  Bruno Haible  <bruno@clisp.org>
6515
6516         grantpt: Support --avoid=pt_chown.
6517         * modules/grantpt (Files): Add lib/pty-private.h.
6518
6519 2011-10-20  Bruno Haible  <bruno@clisp.org>
6520
6521         posix_openpt: Fix autoconf macro.
6522         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6523         unneeded check for _getpty.
6524
6525 2011-10-20  Bruno Haible  <bruno@clisp.org>
6526
6527         openpty: Update comments.
6528         * lib/openpty.c: Add comments about Minix.
6529
6530 2011-10-19  Eric Blake  <eblake@redhat.com>
6531
6532         openpty: relax license
6533         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6534
6535         pt_chown: use configmake to simplify build
6536         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6537
6538         ptsname and others: relax license
6539         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6540         * modules/unlockpt (License): Likewise.
6541         * modules/pt_chown (License): Likewise.
6542         * modules/ptsname (License): Likewise.
6543         * modules/ttyname_r (License): Likewise.
6544
6545 2011-10-19  Jim Meyering  <meyering@redhat.com>
6546
6547         posix_openpt: remove spurious #endif
6548         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6549
6550 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6551
6552         maint.mk: Respect $(build_aux) in web-manual rule.
6553         * top/maint.mk (web-manual): Find gen-announce script in user's
6554         $(build_aux) directory instead of hard-coding 'build-aux'.
6555
6556 2011-10-19  Bruno Haible  <bruno@clisp.org>
6557
6558         posix_openpt: Fix compilation error.
6559         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6560         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6561         Mention the openpty module as an alternative.
6562
6563 2011-10-19  Bruno Haible  <bruno@clisp.org>
6564
6565         Support for old NeXTstep 3.3 frexp().
6566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6567         execution time of the test to 5 seconds.
6568         Reported by Daniel Richard G. <skunk@iskunk.org>.
6569
6570 2011-10-19  Bruno Haible  <bruno@clisp.org>
6571
6572         Support for old NeXTstep 3.3 sed.
6573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6574         part, use /.../, not \|...|. Escape periods in the header file name.
6575         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6576         Reported by Daniel Richard G. <skunk@iskunk.org>.
6577
6578 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6579
6580         Support for old NeXTstep 3.3 gcc.
6581         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6582         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6583         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6584         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6585         * lib/regex.h (_Restrict_arr_): Likewise.
6586         * lib/regex_internal.h (re_token_t): Likewise.
6587         * lib/regexec.c (check_node_accept_bytes): Likewise.
6588         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6589
6590 2011-10-18  Eric Blake  <eblake@redhat.com>
6591
6592         posix_openpt: new module
6593         * modules/posix_openpt: New module.
6594         * m4/posix_openpt.m4: New file.
6595         * lib/posix_openpt.c: Likewise.
6596         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6597         (gl_STDLIB_H_DEFAULTS): Set defaults.
6598         * modules/stdlib (Makefile.am): Substitute macros.
6599         * lib/stdlib.in.h (posix_openpt): Declare.
6600         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6601         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6602         * modules/posix_openpt-tests: New test module.
6603         * tests/test-posix_openpt.c: New test.
6604
6605 2011-10-15  Bruno Haible  <bruno@clisp.org>
6606
6607         xstrtoll: Fix compilation failure.
6608         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6609         from lib/strtol.c.
6610         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6611         some platforms.
6612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6613
6614 2011-10-15  Bruno Haible  <bruno@clisp.org>
6615
6616         vasnprintf: Optimize bit search operation.
6617         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6619         gl_DOUBLE_EXPONENT_LOCATION.
6620         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6621         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6622         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6623         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6624         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6625         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6626         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6627         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6628         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6629
6630 2011-10-15  Bruno Haible  <bruno@clisp.org>
6631
6632         vasnprintf: Fix comments.
6633         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6634
6635 2011-10-14  Bruno Haible  <bruno@clisp.org>
6636
6637         Tests for module 'integer_length_ll'.
6638         * modules/integer_length_ll-tests: New file.
6639         * tests/test-integer_length_ll.c: New file.
6640
6641         New module 'integer_length_ll'.
6642         * lib/integer_length_ll.c: New file.
6643         * modules/integer_length_ll: New file.
6644
6645 2011-10-14  Bruno Haible  <bruno@clisp.org>
6646
6647         Tests for module 'integer_length_l'.
6648         * modules/integer_length_l-tests: New file.
6649         * tests/test-integer_length_l.c: New file.
6650
6651         New module 'integer_length_l'.
6652         * lib/integer_length_l.c: New file.
6653         * modules/integer_length_l: New file.
6654
6655 2011-10-14  Bruno Haible  <bruno@clisp.org>
6656
6657         Tests for module 'integer_length'.
6658         * modules/integer_length-tests: New file.
6659         * tests/test-integer_length.c: New file.
6660
6661         New module 'integer_length'.
6662         * lib/integer_length.h: New file.
6663         * lib/integer_length.c: New file.
6664         * modules/integer_length: New file.
6665
6666 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6667
6668         popen: Fix dependency conditions.
6669         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6670
6671 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6672
6673         perror: Fix autoconf test.
6674         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6675         <stdlib.h> and <string.h>.
6676
6677 2011-10-14  Bruno Haible  <bruno@clisp.org>
6678
6679         ffsl: Optimize on 64-bit platforms.
6680         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6681         unrolling.
6682
6683 2011-10-13  Bruno Haible  <bruno@clisp.org>
6684
6685         ffsl: Optimize on 32-bit platforms.
6686         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6687         use ffs() without a loop.
6688
6689         ffsl, ffsll: Optimize for GCC.
6690         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6691         * lib/ffsl.c (GCC_BUILTIN): New macro.
6692         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6693
6694 2011-10-13  Bruno Haible  <bruno@clisp.org>
6695
6696         ffs, bcopy, memset: Support symbol renaming via config.h.
6697         * lib/ffs.c: Include <config.h>.
6698         * lib/bcopy.c: Likewise.
6699         * lib/memset.c: Likewise.
6700
6701 2011-10-10  Bruno Haible  <bruno@clisp.org>
6702
6703         atanl: Simplify for platforms where 'long double' == 'double'.
6704         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6705         alternative implementation.
6706         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6707         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6708         * modules/atanl (Depends-on): Add atan. Update conditions.
6709
6710 2011-10-10  Bruno Haible  <bruno@clisp.org>
6711
6712         acosl: Simplify for platforms where 'long double' == 'double'.
6713         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6714         alternative implementation.
6715         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6716         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6717         * modules/acosl (Depends-on): Add acos. Update conditions.
6718
6719 2011-10-10  Bruno Haible  <bruno@clisp.org>
6720
6721         asinl: Simplify for platforms where 'long double' == 'double'.
6722         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6723         alternative implementation.
6724         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6725         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6726         * modules/asinl (Depends-on): Add asin. Update conditions.
6727
6728 2011-10-10  Bruno Haible  <bruno@clisp.org>
6729
6730         tanl: Simplify for platforms where 'long double' == 'double'.
6731         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6732         implementation.
6733         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6734         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6735         * modules/tanl (Depends-on): Add tan. Update conditions.
6736         (configure.ac): Don't compile trigl.c if
6737         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6738
6739 2011-10-10  Bruno Haible  <bruno@clisp.org>
6740
6741         cosl: Simplify for platforms where 'long double' == 'double'.
6742         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6743         implementation.
6744         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6745         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6746         * modules/cosl (Depends-on): Add cos. Update conditions.
6747         (configure.ac): Don't compile sincosl.c and trigl.c if
6748         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6749
6750 2011-10-10  Bruno Haible  <bruno@clisp.org>
6751
6752         sinl: Simplify for platforms where 'long double' == 'double'.
6753         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6754         implementation.
6755         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6756         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6757         * modules/sinl (Depends-on): Add sin. Update conditions.
6758         (configure.ac): Don't compile sincosl.c and trigl.c if
6759         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6760
6761 2011-10-10  Bruno Haible  <bruno@clisp.org>
6762
6763         logl: Simplify for platforms where 'long double' == 'double'.
6764         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6765         implementation.
6766         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6767         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6768         * modules/logl (Depends-on): Add log. Update conditions.
6769
6770 2011-10-10  Bruno Haible  <bruno@clisp.org>
6771
6772         expl: Simplify for platforms where 'long double' == 'double'.
6773         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6774         implementation.
6775         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6776         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6777         * modules/expl (Depends-on): Add exp. Update conditions.
6778
6779 2011-10-10  Bruno Haible  <bruno@clisp.org>
6780
6781         sqrtl: Simplify for platforms where 'long double' == 'double'.
6782         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6783         alternative implementation.
6784         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6785         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6786         * modules/sqrtl (Depends-on): Update conditions.
6787
6788 2011-10-10  Bruno Haible  <bruno@clisp.org>
6789
6790         ldexpl: Simplify for platforms where 'long double' == 'double'.
6791         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6792         alternative implementation.
6793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6794         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6795         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6796
6797 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6798
6799         ffsll: set correct witness
6800         * modules/ffsll (configure.ac): Fix typo.
6801
6802 2011-10-10  Bruno Haible  <bruno@clisp.org>
6803
6804         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6805         * lib/printf-frexpl.c: Include <config.h>.
6806         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6807         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6808         second time.
6809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6810         gl_LONG_DOUBLE_VS_DOUBLE.
6811         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6812         conditions.
6813
6814 2011-10-10  Bruno Haible  <bruno@clisp.org>
6815
6816         frexpl: Simplify for platforms where 'long double' == 'double'.
6817         * lib/frexpl.c: Include <config.h>.
6818         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6819         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6820         time.
6821         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6822         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6823         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6824         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6825         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6826         conditions.
6827
6828 2011-10-10  Jim Meyering  <meyering@redhat.com>
6829
6830         test-renameat: don't leave behind a temporary file
6831         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6832           ERROR: files left in build directory after distclean:
6833           ./gltests/test-renameat.too
6834           make[1]: *** [distcleancheck] Error 1
6835         Reported by Tom G. Christensen.
6836
6837 2011-10-09  Bruno Haible  <bruno@clisp.org>
6838
6839         rint: Determine RINT_LIBM correctly on AIX 7.
6840         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6841         directly, not only through a function pointer. Also accept an optional
6842         4th argument with extra code.
6843         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6844         rintf() call by gcc when optimizing.
6845
6846         mathfunc.m4: Refactor.
6847         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6848         m4 variable.
6849
6850 2011-10-09  Bruno Haible  <bruno@clisp.org>
6851
6852         rintl: Simplify for platforms where 'long double' == 'double'.
6853         * lib/rintl.c: Include <config.h>.
6854         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6855         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6856         time.
6857         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6858         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6859         * modules/rintl (Depends-on): Add rint. Update conditions.
6860
6861 2011-10-09  Bruno Haible  <bruno@clisp.org>
6862
6863         roundl: Simplify for platforms where 'long double' == 'double'.
6864         * lib/roundl.c: Include <config.h>.
6865         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6866         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6867         time.
6868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6869         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6870         * modules/roundl (Depends-on): Add round. Update conditions.
6871
6872 2011-10-09  Bruno Haible  <bruno@clisp.org>
6873
6874         truncl: Simplify for platforms where 'long double' == 'double'.
6875         * lib/truncl.c: Include <config.h>.
6876         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6877         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6878         time.
6879         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6880         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6881         * modules/truncl (Depends-on): Add trunc. Update conditions.
6882
6883 2011-10-09  Bruno Haible  <bruno@clisp.org>
6884
6885         ceill: Simplify for platforms where 'long double' == 'double'.
6886         * lib/ceill.c: Include <config.h>.
6887         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6888         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6889         time.
6890         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6891         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6892         * modules/ceill (Depends-on): Add ceil. Update conditions.
6893
6894 2011-10-09  Bruno Haible  <bruno@clisp.org>
6895
6896         floorl: Simplify for platforms where 'long double' == 'double'.
6897         * lib/floorl.c: Include <config.h>.
6898         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6899         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6900         time.
6901         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6902         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6903         * modules/floorl (Depends-on): Add floor. Update conditions.
6904
6905 2011-10-09  Bruno Haible  <bruno@clisp.org>
6906
6907         rint: Fix ordering constraints.
6908         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6909         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6910         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6911
6912 2011-10-09  Bruno Haible  <bruno@clisp.org>
6913
6914         copysignl: Simplify for platforms where 'long double' == 'double'.
6915         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6916         alternative.
6917         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6918         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6919         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6920
6921 2011-10-09  Bruno Haible  <bruno@clisp.org>
6922
6923         Tests for module 'rintl'.
6924         * modules/rintl-tests: New file.
6925         * tests/test-rintl.c: New file.
6926
6927         New module 'rintl'.
6928         * lib/math.in.h (rintl): New declaration.
6929         * lib/rintl.c: New file.
6930         * m4/rintl.m4: New file.
6931         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6933         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6934         * modules/rintl: New file.
6935         * tests/test-math-c++.cc: Check the declaration of rintl.
6936         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6937         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6938         * doc/posix-functions/rintl.texi: Mention the new module.
6939
6940 2011-10-09  Bruno Haible  <bruno@clisp.org>
6941
6942         Tests for module 'rintf'.
6943         * modules/rintf-tests: New file.
6944         * tests/test-rintf.c: New file.
6945
6946         New module 'rintf'.
6947         * lib/math.in.h (rintf): New declaration.
6948         * lib/rintf.c: New file.
6949         * m4/rintf.m4: New file.
6950         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6952         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6953         * modules/rintf: New file.
6954         * tests/test-math-c++.cc: Check the declaration of rintf.
6955         * doc/posix-functions/rintf.texi: Mention the new module.
6956
6957 2011-10-09  Bruno Haible  <bruno@clisp.org>
6958
6959         rint: Support for MSVC.
6960         * lib/math.in.h (rint): New declaration.
6961         * lib/rint.c: New file.
6962         * m4/rint.m4: New file.
6963         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6965         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6966         * modules/rint (Description): Fix.
6967         (Files): Add lib/rint.c, m4/rint.m4.
6968         (Depends-on): Add math.
6969         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6970         gl_MATH_MODULE_INDICATOR.
6971         * tests/test-math-c++.cc: Check the declaration of rint.
6972         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6973         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6974         * doc/posix-functions/rint.texi: Mention the replacement provided by
6975         the module.
6976
6977         rint tests: More tests.
6978         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6979         minus-zero.h, infinity.h, nan.h.
6980         (main): Skip the test if the current rounding mode is not standard. Add
6981         tests for negative numbers, minus zero, infinity, NaN.
6982         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6983         tests/nan.h.
6984         (Depends-on): Add isnand-nolibm.
6985
6986 2011-10-09  Bruno Haible  <bruno@clisp.org>
6987
6988         Tests for module 'copysignl'.
6989         * modules/copysignl-tests: New file.
6990         * tests/test-copysignl.c: New file.
6991
6992         New module 'copysignl'.
6993         * lib/math.in.h (copysignl): New declaration.
6994         * lib/copysignl.c: New file.
6995         * m4/copysignl.m4: New file.
6996         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6998         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6999         HAVE_COPYSIGNL.
7000         * modules/copysignl: New file.
7001         * tests/test-math-c++.cc: Check the declaration of copysignl.
7002         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7003         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7004         * doc/posix-functions/copysignl.texi: Mention the new module.
7005
7006 2011-10-09  Bruno Haible  <bruno@clisp.org>
7007
7008         Tests for module 'copysignf'.
7009         * modules/copysignf-tests: New file.
7010         * tests/test-copysignf.c: New file.
7011
7012         New module 'copysignf'.
7013         * lib/math.in.h (copysignf): New declaration.
7014         * lib/copysignf.c: New file.
7015         * m4/copysignf.m4: New file.
7016         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7018         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7019         HAVE_COPYSIGNF.
7020         * modules/copysignf: New file.
7021         * tests/test-math-c++.cc: Check the declaration of copysignf.
7022         * doc/posix-functions/copysignf.texi: Mention the new module.
7023
7024 2011-10-09  Bruno Haible  <bruno@clisp.org>
7025
7026         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7027         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7028         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7029         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7030         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7031         gl_SIGNAL_H_DEFAULTS.
7032
7033 2011-10-09  Bruno Haible  <bruno@clisp.org>
7034
7035         poll: Make macro safer.
7036         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7037         ac_cv_header_poll_h is not set.
7038
7039 2011-10-09  Bruno Haible  <bruno@clisp.org>
7040
7041         copysign: Provide replacement.
7042         * lib/math.in.h (copysign): New declaration.
7043         * lib/copysign.c: New file.
7044         * m4/copysign.m4: New file.
7045         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7047         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7048         HAVE_COPYSIGN.
7049         * modules/copysign (Description): Clarify.
7050         (Files): Add lib/copysign.c, m4/copysign.m4.
7051         (Depends-on): Add math, signbit.
7052         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7053         gl_MATH_MODULE_INDICATOR.
7054         * tests/test-math-c++.cc: Check the declaration of copysign.
7055         * doc/posix-functions/copysign.texi: Mention the effects of the module
7056         on Minix and MSVC.
7057
7058 2011-10-09  Bruno Haible  <bruno@clisp.org>
7059
7060         isinf: Ensure macro on AIX 5.1.
7061         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7062         macro.
7063         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7064
7065 2011-10-09  Bruno Haible  <bruno@clisp.org>
7066
7067         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7068         * modules/snprintf-posix-tests (configure.ac): Require
7069         gl_LONG_DOUBLE_VS_DOUBLE.
7070         * modules/sprintf-posix-tests (configure.ac): Likewise.
7071         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7072         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7073         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7074         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7075         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7076         tests on platforms where 'long double' is the same as 'double'.
7077         * tests/test-sprintf-posix.h (test_function): Likewise.
7078         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7079         * tests/test-vasprintf-posix.c (test_function): Likewise.
7080
7081         *printf: Fix for platforms where 'long double' == 'double'.
7082         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7083         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7084         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7085         * modules/fprintf-posix (Files): Likewise.
7086         * modules/obstack-printf-posix (Files): Likewise.
7087         * modules/snprintf-posix (Files): Likewise.
7088         * modules/sprintf-posix (Files): Likewise.
7089         * modules/vasnprintf (Files): Likewise.
7090         * modules/vasnprintf-posix (Files): Likewise.
7091         * modules/vasprintf-posix (Files): Likewise.
7092         * modules/vdprintf-posix (Files): Likewise.
7093         * modules/vfprintf-posix (Files): Likewise.
7094         * modules/vsnprintf-posix (Files): Likewise.
7095         * modules/vsprintf-posix (Files): Likewise.
7096         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7097         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7098         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7099         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7100         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7101         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7102         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7103
7104         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7105         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7106         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7107         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7108         'long double'.
7109         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7110
7111         isinf: Fix for platforms where 'long double' == 'double'.
7112         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7113         Don't blindly assume 80-bit 'long double'.
7114
7115         isfinite: Fix for platforms where 'long double' == 'double'.
7116         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7117         Don't blindly assume 80-bit 'long double'.
7118
7119         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7120         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7121         * modules/isfinite-tests (configure.ac): Require
7122         gl_LONG_DOUBLE_VS_DOUBLE.
7123         * modules/isinf-tests (configure.ac): Likewise.
7124         * modules/isnan-tests (configure.ac): Likewise.
7125         * modules/isnanl-tests (configure.ac): Likewise.
7126         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7127         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7128         tests on platforms where 'long double' is the same as 'double'.
7129         * tests/test-isinf.c (test_isinfl): Likewise.
7130         * tests/test-isnan.c (test_long_double): Likewise.
7131         * tests/test-isnanl.h (main): Likewise.
7132
7133 2011-10-08  Bruno Haible  <bruno@clisp.org>
7134
7135         Tests for module 'tanhf'.
7136         * modules/tanhf-tests: New file.
7137         * tests/test-tanhf.c: New file.
7138
7139         New module 'tanhf'.
7140         * lib/math.in.h (tanhf): New declaration.
7141         * lib/tanhf.c: New file.
7142         * m4/tanhf.m4: New file.
7143         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7145         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7146         * modules/tanhf: New file.
7147         * tests/test-math-c++.cc: Check the declaration of tanhf.
7148         * doc/posix-functions/tanhf.texi: Mention the new module.
7149
7150         tanh: Use a .m4 file.
7151         * m4/tanh.m4: New file.
7152         * modules/tanh (Files): Add it.
7153         (configure.ac): Just invoke gl_FUNC_TANH.
7154
7155 2011-10-08  Bruno Haible  <bruno@clisp.org>
7156
7157         Tests for module 'coshf'.
7158         * modules/coshf-tests: New file.
7159         * tests/test-coshf.c: New file.
7160
7161         New module 'coshf'.
7162         * lib/math.in.h (coshf): New declaration.
7163         * lib/coshf.c: New file.
7164         * m4/coshf.m4: New file.
7165         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7167         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7168         * modules/coshf: New file.
7169         * tests/test-math-c++.cc: Check the declaration of coshf.
7170         * doc/posix-functions/coshf.texi: Mention the new module.
7171
7172         cosh: Use a .m4 file.
7173         * m4/cosh.m4: New file.
7174         * modules/cosh (Files): Add it.
7175         (configure.ac): Just invoke gl_FUNC_COSH.
7176
7177 2011-10-08  Bruno Haible  <bruno@clisp.org>
7178
7179         Tests for module 'sinhf'.
7180         * modules/sinhf-tests: New file.
7181         * tests/test-sinhf.c: New file.
7182
7183         New module 'sinhf'.
7184         * lib/math.in.h (sinhf): New declaration.
7185         * lib/sinhf.c: New file.
7186         * m4/sinhf.m4: New file.
7187         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7189         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7190         * modules/sinhf: New file.
7191         * tests/test-math-c++.cc: Check the declaration of sinhf.
7192         * doc/posix-functions/sinhf.texi: Mention the new module.
7193
7194         sinh: Use a .m4 file.
7195         * m4/sinh.m4: New file.
7196         * modules/sinh (Files): Add it.
7197         (configure.ac): Just invoke gl_FUNC_SINH.
7198
7199 2011-10-08  Bruno Haible  <bruno@clisp.org>
7200
7201         Tests for module 'atan2f'.
7202         * modules/atan2f-tests: New file.
7203         * tests/test-atan2f.c: New file.
7204
7205         New module 'atan2f'.
7206         * lib/math.in.h (atan2f): New declaration.
7207         * lib/atan2f.c: New file.
7208         * m4/atan2f.m4: New file.
7209         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7211         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7212         * modules/atan2f: New file.
7213         * tests/test-math-c++.cc: Check the declaration of atan2f.
7214         * doc/posix-functions/atan2f.texi: Mention the new module.
7215
7216         atan2: Use a .m4 file.
7217         * m4/atan2.m4: New file.
7218         * modules/atan2 (Files): Add it.
7219         (configure.ac): Just invoke gl_FUNC_ATAN2.
7220
7221 2011-10-08  Bruno Haible  <bruno@clisp.org>
7222
7223         Tests for module 'atanf'.
7224         * modules/atanf-tests: New file.
7225         * tests/test-atanf.c: New file.
7226
7227         New module 'atanf'.
7228         * lib/math.in.h (atanf): New declaration.
7229         * lib/atanf.c: New file.
7230         * m4/atanf.m4: New file.
7231         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7233         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7234         * modules/atanf: New file.
7235         * tests/test-math-c++.cc: Check the declaration of atanf.
7236         * doc/posix-functions/atanf.texi: Mention the new module.
7237
7238         atan: Use a .m4 file.
7239         * m4/atan.m4: New file.
7240         * modules/atan (Files): Add it.
7241         (configure.ac): Just invoke gl_FUNC_ATAN.
7242
7243 2011-10-08  Bruno Haible  <bruno@clisp.org>
7244
7245         Tests for module 'acosf'.
7246         * modules/acosf-tests: New file.
7247         * tests/test-acosf.c: New file.
7248
7249         New module 'acosf'.
7250         * lib/math.in.h (acosf): New declaration.
7251         * lib/acosf.c: New file.
7252         * m4/acosf.m4: New file.
7253         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7254         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7255         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7256         * modules/acosf: New file.
7257         * tests/test-math-c++.cc: Check the declaration of acosf.
7258         * doc/posix-functions/acosf.texi: Mention the new module.
7259
7260         acos: Use a .m4 file.
7261         * m4/acos.m4: New file.
7262         * modules/acos (Files): Add it.
7263         (configure.ac): Just invoke gl_FUNC_ACOS.
7264
7265 2011-10-08  Bruno Haible  <bruno@clisp.org>
7266
7267         Tests for module 'asinf'.
7268         * modules/asinf-tests: New file.
7269         * tests/test-asinf.c: New file.
7270
7271         New module 'asinf'.
7272         * lib/math.in.h (asinf): New declaration.
7273         * lib/asinf.c: New file.
7274         * m4/asinf.m4: New file.
7275         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7277         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7278         * modules/asinf: New file.
7279         * tests/test-math-c++.cc: Check the declaration of asinf.
7280         * doc/posix-functions/asinf.texi: Mention the new module.
7281
7282         asin: Use a .m4 file.
7283         * m4/asin.m4: New file.
7284         * modules/asin (Files): Add it.
7285         (configure.ac): Just invoke gl_FUNC_ASIN.
7286
7287 2011-10-08  Bruno Haible  <bruno@clisp.org>
7288
7289         Tests for module 'tanf'.
7290         * modules/tanf-tests: New file.
7291         * tests/test-tanf.c: New file.
7292
7293         New module 'tanf'.
7294         * lib/math.in.h (tanf): New declaration.
7295         * lib/tanf.c: New file.
7296         * m4/tanf.m4: New file.
7297         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7299         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7300         * modules/tanf: New file.
7301         * tests/test-math-c++.cc: Check the declaration of tanf.
7302         * doc/posix-functions/tanf.texi: Mention the new module.
7303
7304         tan: Use a .m4 file.
7305         * m4/tan.m4: New file.
7306         * modules/tan (Files): Add it.
7307         (configure.ac): Just invoke gl_FUNC_TAN.
7308
7309 2011-10-08  Bruno Haible  <bruno@clisp.org>
7310
7311         Tests for module 'cosf'.
7312         * modules/cosf-tests: New file.
7313         * tests/test-cosf.c: New file.
7314
7315         New module 'cosf'.
7316         * lib/math.in.h (cosf): New declaration.
7317         * lib/cosf.c: New file.
7318         * m4/cosf.m4: New file.
7319         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7321         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7322         * modules/cosf: New file.
7323         * tests/test-math-c++.cc: Check the declaration of cosf.
7324         * doc/posix-functions/cosf.texi: Mention the new module.
7325
7326         cos: Use a .m4 file.
7327         * m4/cos.m4: New file.
7328         * modules/cos (Files): Add it.
7329         (configure.ac): Just invoke gl_FUNC_COS.
7330
7331 2011-10-08  Bruno Haible  <bruno@clisp.org>
7332
7333         Tests for module 'sinf'.
7334         * modules/sinf-tests: New file.
7335         * tests/test-sinf.c: New file.
7336
7337         New module 'sinf'.
7338         * lib/math.in.h (sinf): New declaration.
7339         * lib/sinf.c: New file.
7340         * m4/sinf.m4: New file.
7341         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7343         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7344         * modules/sinf: New file.
7345         * tests/test-math-c++.cc: Check the declaration of sinf.
7346         * doc/posix-functions/sinf.texi: Mention the new module.
7347
7348         sin: Use a .m4 file.
7349         * m4/sin.m4: New file.
7350         * modules/sin (Files): Add it.
7351         (configure.ac): Just invoke gl_FUNC_SIN.
7352
7353 2011-10-08  Bruno Haible  <bruno@clisp.org>
7354
7355         Tests for module 'powf'.
7356         * modules/powf-tests: New file.
7357         * tests/test-powf.c: New file.
7358
7359         New module 'powf'.
7360         * lib/math.in.h (powf): New declaration.
7361         * lib/powf.c: New file.
7362         * m4/powf.m4: New file.
7363         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7365         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7366         * modules/powf: New file.
7367         * tests/test-math-c++.cc: Check the declaration of powf.
7368         * doc/posix-functions/powf.texi: Mention the new module.
7369
7370         pow: Use a .m4 file.
7371         * m4/pow.m4: New file.
7372         * modules/pow (Files): Add it.
7373         (configure.ac): Just invoke gl_FUNC_POW.
7374
7375 2011-10-08  Bruno Haible  <bruno@clisp.org>
7376
7377         Tests for module 'log10f'.
7378         * modules/log10f-tests: New file.
7379         * tests/test-log10f.c: New file.
7380
7381         New module 'log10f'.
7382         * lib/math.in.h (log10f): New declaration.
7383         * lib/log10f.c: New file.
7384         * m4/log10f.m4: New file.
7385         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7387         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7388         * modules/log10f: New file.
7389         * tests/test-math-c++.cc: Check the declaration of log10f.
7390         * doc/posix-functions/log10f.texi: Mention the new module.
7391
7392         log10: Use a .m4 file.
7393         * m4/log10.m4: New file.
7394         * modules/log10 (Files): Add it.
7395         (configure.ac): Just invoke gl_FUNC_LOG10.
7396
7397 2011-10-08  Bruno Haible  <bruno@clisp.org>
7398
7399         Tests for module 'logf'.
7400         * modules/logf-tests: New file.
7401         * tests/test-logf.c: New file.
7402
7403         New module 'logf'.
7404         * lib/math.in.h (logf): New declaration.
7405         * lib/logf.c: New file.
7406         * m4/logf.m4: New file.
7407         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7409         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7410         * modules/logf: New file.
7411         * tests/test-math-c++.cc: Check the declaration of logf.
7412         * doc/posix-functions/logf.texi: Mention the new module.
7413
7414         log: Use a .m4 file.
7415         * m4/log.m4: New file.
7416         * modules/log (Files): Add it.
7417         (configure.ac): Just invoke gl_FUNC_LOG.
7418
7419 2011-10-08  Bruno Haible  <bruno@clisp.org>
7420
7421         Tests for module 'expf'.
7422         * modules/expf-tests: New file.
7423         * tests/test-expf.c: New file.
7424
7425         New module 'expf'.
7426         * lib/math.in.h (expf): New declaration.
7427         * lib/expf.c: New file.
7428         * m4/expf.m4: New file.
7429         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7431         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7432         * modules/expf: New file.
7433         * tests/test-math-c++.cc: Check the declaration of expf.
7434         * doc/posix-functions/expf.texi: Mention the new module.
7435
7436         exp: Use a .m4 file.
7437         * m4/exp.m4: New file.
7438         * modules/exp (Files): Add it.
7439         (configure.ac): Just invoke gl_FUNC_EXP.
7440
7441 2011-10-08  Bruno Haible  <bruno@clisp.org>
7442
7443         Tests for module 'sqrtf'.
7444         * modules/sqrtf-tests: New file.
7445         * tests/test-sqrtf.c: New file.
7446
7447         New module 'sqrtf'.
7448         * lib/math.in.h (sqrtf): New declaration.
7449         * lib/sqrtf.c: New file.
7450         * m4/sqrtf.m4: New file.
7451         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7453         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7454         * modules/sqrtf: New file.
7455         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7456         * doc/posix-functions/sqrtf.texi: Mention the new module.
7457
7458 2011-10-08  Bruno Haible  <bruno@clisp.org>
7459
7460         Tests: Avoid link failures w.r.t. libintl.
7461         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7462         $(LIBINTL).
7463         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7464         $(LIBINTL).
7465         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7466         against $(LIBINTL).
7467         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7468         $(LIBINTL).
7469         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7470         $(LIBINTL).
7471         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7472
7473 2011-10-08  Bruno Haible  <bruno@clisp.org>
7474
7475         pow tests: Defeat compiler optimizations.
7476         * tests/test-pow.c (main): Assign arguments to x and y before use.
7477
7478 2011-10-08  Bruno Haible  <bruno@clisp.org>
7479
7480         gnulib-tool: Improve last commit.
7481         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7482         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7483         ignore dependencies that are not among the modules list.
7484
7485 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7486
7487         gnulib-tool: don't follow dependencies to avoided modules
7488         This fixes a bug that is related to the previous one.
7489         * gnulib-tool (func_modules_transitive_closure)
7490         (func_emit_autoconf_snippets):
7491         Check whether a dependency is acceptable before using it.
7492         (--extract-dependencies): Report an error if --avoid is also used,
7493         since this combination of options is not yet supported.
7494
7495         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7496         Problem reported by Peter Dyballa in
7497         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7498         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7499         when echoing "$condition".
7500
7501 2011-10-07  Bruno Haible  <bruno@clisp.org>
7502
7503         Fix documentation about math functions on MacOS X.
7504         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7505         MacOS X 10.5.
7506         * doc/posix-functions/fdim.texi: Likewise.
7507         * doc/posix-functions/feclearexcept.texi: Likewise.
7508         * doc/posix-functions/fegetenv.texi: Likewise.
7509         * doc/posix-functions/fegetround.texi: Likewise.
7510         * doc/posix-functions/feholdexcept.texi: Likewise.
7511         * doc/posix-functions/feraiseexcept.texi: Likewise.
7512         * doc/posix-functions/fesetenv.texi: Likewise.
7513         * doc/posix-functions/fesetround.texi: Likewise.
7514         * doc/posix-functions/fetestexcept.texi: Likewise.
7515         * doc/posix-functions/feupdateenv.texi: Likewise.
7516         * doc/posix-functions/fmax.texi: Likewise.
7517         * doc/posix-functions/fmin.texi: Likewise.
7518         * doc/posix-functions/log2.texi: Likewise.
7519         * doc/posix-functions/modff.texi: Likewise.
7520         * doc/posix-functions/nan.texi: Likewise.
7521         * doc/posix-functions/nanf.texi: Likewise.
7522         * doc/posix-functions/nextafterf.texi: Likewise.
7523         * doc/posix-functions/remquo.texi: Likewise.
7524
7525 2011-10-07  Bruno Haible  <bruno@clisp.org>
7526
7527         modff: Drop assumption about library that defines modff.
7528         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7529         AC_CHECK_FUNCS.
7530         * modules/modff (Files): Add m4/mathfunc.m4.
7531
7532 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7533
7534         raise tests: Avoid a GCC warning.
7535         * tests/test-raise.c (handler): Use _Noreturn.
7536
7537 2011-10-07  Bruno Haible  <bruno@clisp.org>
7538
7539         Tests for module 'ldexpf'.
7540         * modules/ldexpf-tests: New file.
7541         * tests/test-ldexpf.c: New file.
7542
7543         New module 'ldexpf'.
7544         * lib/math.in.h (ldexpf): New declaration.
7545         * lib/ldexpf.c: New file.
7546         * m4/ldexpf.m4: New file.
7547         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7549         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7550         * modules/ldexpf: New file.
7551         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7552         * doc/posix-functions/ldexpf.texi: Mention the new module.
7553
7554 2011-10-06  Bruno Haible  <bruno@clisp.org>
7555
7556         frexpf: Work around problems on IRIX and mingw.
7557         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7559         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7560         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7561         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7562         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7563         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7564
7565 2011-10-06  Bruno Haible  <bruno@clisp.org>
7566
7567         fabsf: Drop assumption about library that defines fabsf.
7568         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7569         AC_CHECK_FUNCS.
7570         * modules/fabsf (Files): Add m4/mathfunc.m4.
7571
7572 2011-10-06  Bruno Haible  <bruno@clisp.org>
7573
7574         frexpf: Drop assumption about library that defines frexpf.
7575         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7576         'int *', 'float *', 'long double *', 'float', 'long double'.
7577         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7578         AC_CHECK_FUNCS.
7579         * modules/frexpf (Files): Add m4/mathfunc.m4.
7580
7581         Tests for module 'frexpf'.
7582         * modules/frexpf-tests: New file.
7583         * tests/test-frexpf.c: New file.
7584
7585         New module 'frexpf'.
7586         * lib/math.in.h (frexpf): New declaration.
7587         * lib/frexpf.c: New file.
7588         * m4/frexpf.m4: New file.
7589         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7591         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7592         * modules/frexpf: New file.
7593         * tests/test-math-c++.cc: Check the declaration of frexpf.
7594         * doc/posix-functions/frexpf.texi: Mention the new module.
7595
7596 2011-10-06  Bruno Haible  <bruno@clisp.org>
7597
7598         math: Sort function declarations of math.in.h.
7599         * lib/math.in.h (frexp, logb): Move declarations.
7600
7601 2011-10-05  Bruno Haible  <bruno@clisp.org>
7602
7603         Tests for module 'modff'.
7604         * modules/modff-tests: New file.
7605         * tests/test-modff.c: New file.
7606
7607         New module 'modff'.
7608         * lib/math.in.h (modff): New declaration.
7609         * lib/modff.c: New file.
7610         * m4/modff.m4: New file.
7611         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7613         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7614         * modules/modff: New file.
7615         * tests/test-math-c++.cc: Check the declaration of modff.
7616         * doc/posix-functions/modff.texi: Mention the new module.
7617
7618         modf tests: Make test sharper.
7619         * tests/test-modf.c (main): Strengthen upper bound.
7620
7621         modf: Use a .m4 file.
7622         * m4/modf.m4: New file.
7623         * modules/modf (Files): Add it.
7624         (configure.ac): Just invoke gl_FUNC_MODF.
7625
7626 2011-10-05  Bruno Haible  <bruno@clisp.org>
7627
7628         Tests for module 'fmodf'.
7629         * modules/fmodf-tests: New file.
7630         * tests/test-fmodf.c: New file.
7631
7632         New module 'fmodf'.
7633         * lib/math.in.h (fmodf): New declaration.
7634         * lib/fmodf.c: New file.
7635         * m4/fmodf.m4: New file.
7636         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7638         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7639         * modules/fmodf: New file.
7640         * tests/test-math-c++.cc: Check the declaration of fmodf.
7641         * doc/posix-functions/fmodf.texi: Mention the new module.
7642
7643         fmod: Use a .m4 file.
7644         * m4/fmod.m4: New file.
7645         * modules/fmod (Files): Add it.
7646         (configure.ac): Just invoke gl_FUNC_FMOD.
7647
7648 2011-10-05  Bruno Haible  <bruno@clisp.org>
7649
7650         Tests for module 'fabsf'.
7651         * modules/fabsf-tests: New file.
7652         * tests/test-fabsf.c: New file.
7653
7654         New module 'fabsf'.
7655         * lib/math.in.h (fabsf): New declaration.
7656         * lib/fabsf.c: New file.
7657         * m4/fabsf.m4: New file.
7658         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7660         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7661         * modules/fabsf: New file.
7662         * tests/test-math-c++.cc: Check the declaration of fabsf.
7663         * doc/posix-functions/fabsf.texi: Mention the new module.
7664
7665         fabs: Use a .m4 file.
7666         * m4/fabs.m4: New file.
7667         * modules/fabs (Files): Add it.
7668         (configure.ac): Just invoke gl_FUNC_FABS.
7669
7670 2011-10-05  Jim Meyering  <meyering@redhat.com>
7671
7672         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7673         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7674         ls -lL regression introduced in coreutils-8.12, it does so at the
7675         cost of an additional stat call in the common case.  Besides, now
7676         that the kernel change that prompted commit 95f7c57f has been reverted
7677         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7678         we have no use for commit 95f7c57f, "file-has-acl: use
7679         acl_extended_file_nofollow if available".
7680
7681 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7682
7683         file-has-acl: revert unintended change in behavior of ls -L
7684         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7685         derived from...
7686         (file_has_acl): ...code here.  Call it.
7687         This problem was introduced with 2011-07-22 commit 95f7c57f,
7688         "file-has-acl: use acl_extended_file_nofollow if available".
7689         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7690
7691 2011-10-03  Bruno Haible  <bruno@clisp.org>
7692
7693         poll: Avoid link errors on MSVC.
7694         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7695         * modules/poll (Depends-on): Add sockets.
7696         (Link): New section.
7697         * NEWS: Mention the change.
7698         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7699         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7700         $(LIB_POLL) instead of $(LIBSOCKET).
7701
7702 2011-10-03  Bruno Haible  <bruno@clisp.org>
7703
7704         sys_select tests: Fix link error on MSVC 9.
7705         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7706         with $(LIB_SELECT) instead of $(LIBSOCKET).
7707
7708 2011-10-03  Bruno Haible  <bruno@clisp.org>
7709
7710         sys_select: Fix compilation error on mingw.
7711         * lib/sys_select.in.h: On native Windows, include <io.h>.
7712
7713 2011-10-03  Bruno Haible  <bruno@clisp.org>
7714
7715         wmemset: Support for MSVC.
7716         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7717         whether wmemset() exists.
7718
7719 2011-10-03  Bruno Haible  <bruno@clisp.org>
7720
7721         wmemmove: Support for MSVC.
7722         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7723         whether wmemmove() exists.
7724
7725 2011-10-03  Bruno Haible  <bruno@clisp.org>
7726
7727         wmemcpy: Support for MSVC.
7728         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7729         whether wmemcpy() exists.
7730
7731 2011-10-03  Bruno Haible  <bruno@clisp.org>
7732
7733         wmemcmp: Support for MSVC.
7734         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7735         whether wmemcmp() exists.
7736
7737 2011-10-03  Bruno Haible  <bruno@clisp.org>
7738
7739         wmemchr: Support for MSVC.
7740         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7741         whether wmemchr() exists.
7742
7743 2011-10-03  Bruno Haible  <bruno@clisp.org>
7744
7745         glthread/*, strsignal: Support for MSVC.
7746         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7747         including <winsock.h> on MSVC 9.
7748         * lib/glthread/lock.h: Likewise.
7749         * lib/glthread/thread.h: Likewise.
7750         * lib/glthread/tls.h: Likewise.
7751         * lib/glthread/yield.h: Likewise.
7752         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7753         if HAVE_UNISTD_H is false.
7754         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7755
7756 2011-10-03  Bruno Haible  <bruno@clisp.org>
7757
7758         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7759         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7760         Set to 100000.
7761
7762 2011-10-03  Bruno Haible  <bruno@clisp.org>
7763
7764         acl: Fix specification.
7765         * lib/file-has-acl.c (file_has_acl): Fix specification.
7766
7767 2011-10-03  Bruno Haible  <bruno@clisp.org>
7768
7769         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7770         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7771         (compute_curr_prefix, shared_library_fullname,
7772         find_shared_library_fullname, get_shared_library_fullname, relocate):
7773         Use it together with PIC && INSTALLDIR.
7774         Reported by <jojelino@gmail.com>
7775         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7776
7777 2011-10-01  Jim Meyering  <meyering@redhat.com>
7778
7779         maint.mk: adjust a release-related rule not to require use of gzip
7780         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7781         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7782         projects that build only .tar.xz files.  Also fix an erroneous test.
7783
7784         test-linkat: don't leave behind a temporary file
7785         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7786         Otherwise, coreutils' "make distcheck" would fail with this:
7787           Only in /c/cu/tests/torture/coreutils/test/\
7788             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7789           make[2]: *** [my-distcheck] Error 1
7790
7791         float, math: add omitted file
7792         * lib/itold.c: Add file, required for yesterday's float change.
7793
7794 2011-10-01  Bruno Haible  <bruno@clisp.org>
7795
7796         isinf: Fix for OpenBSD/x86.
7797         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7798         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7799         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7800
7801 2011-10-01  Bruno Haible  <bruno@clisp.org>
7802
7803         isfinite: Fix syntax error in configure test.
7804         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7805
7806         isfinite: Fix typo.
7807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7808         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7809
7810 2011-10-01  Bruno Haible  <bruno@clisp.org>
7811
7812         nonblocking tests: Fix test failure on Linux/IA-64.
7813         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7814         Set to 270000.
7815
7816 2011-10-01  Bruno Haible  <bruno@clisp.org>
7817
7818         mkfifoat tests: Fix a test failure on mingw.
7819         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7820         with error ENOSYS.
7821
7822 2011-09-30  Bruno Haible  <bruno@clisp.org>
7823
7824         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7825         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7826         'long double'. Set REPLACE_ITOLD.
7827         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7828         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7829         * lib/itold.c: New file.
7830         * modules/float (Files): Add lib/itold.c.
7831         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7832         (Makefile.am): Substitute REPLACE_ITOLD.
7833         * modules/math (Depends-on): Add float.
7834         (Makefile.am): Substitute REPLACE_ITOLD.
7835         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7836         * doc/posix-headers/math.texi: Likewise.
7837         * doc/posix-functions/logl.texi: Likewise.
7838
7839 2011-09-30  Bruno Haible  <bruno@clisp.org>
7840
7841         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7842         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7843         Set to 140000.
7844
7845 2011-09-30  Bruno Haible  <bruno@clisp.org>
7846
7847         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7848         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7849         invocation, say "right after AC_PROG_CC_STDC", not "right after
7850         AC_PROG_CC".
7851         Reported by Gary V. Vaughan <gary@gnu.org>.
7852
7853 2011-09-30  Bruno Haible  <bruno@clisp.org>
7854
7855         Centralize C99 requirement.
7856         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7857         * modules/stdarg (configure.ac-early): Invoke it instead of
7858         AC_PROG_CC_STDC.
7859         Reported by Gary V. Vaughan and Paul Eggert.
7860
7861 2011-09-29  Bruno Haible  <bruno@clisp.org>
7862
7863         float: Fix LDBL_MAX value on Linux/PowerPC.
7864         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7865         on Linux/PowerPC.
7866         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7867         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7868         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7869         platform.
7870         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7871
7872 2011-09-29  Bruno Haible  <bruno@clisp.org>
7873
7874         doc: Improve doc about gl_EARLY.
7875         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7876         AC_PROG_CC_STDC invocation.
7877         Reported by Gary V. Vaughan <gary@gnu.org>.
7878
7879 2011-09-28  Bruno Haible  <bruno@clisp.org>
7880
7881         fgetc, fputc, fread, fwrite tests: Fix link error.
7882         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7883         on non-MSVC platforms.
7884         * tests/test-fputc.c (main): Likewise.
7885         * tests/test-fread.c (main): Likewise.
7886         * tests/test-fwrite.c (main): Likewise.
7887         Reported by Jim Meyering.
7888
7889 2011-09-27  Bruno Haible  <bruno@clisp.org>
7890
7891         fputc, fwrite tests: Avoid test failure on MSVC.
7892         * tests/test-fgetc.c: Include msvc-inval.h.
7893         (main): Invoke gl_msvc_inval_ensure_handler.
7894         * tests/test-fputc.c: Include msvc-inval.h.
7895         (main): Invoke gl_msvc_inval_ensure_handler.
7896         * tests/test-fread.c: Include msvc-inval.h.
7897         (main): Invoke gl_msvc_inval_ensure_handler.
7898         * tests/test-fwrite.c: Include msvc-inval.h.
7899         (main): Invoke gl_msvc_inval_ensure_handler.
7900         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7901         * modules/fputc-tests (Depends-on): Likewise.
7902         * modules/fread-tests (Depends-on): Likewise.
7903         * modules/fwrite-tests (Depends-on): Likewise.
7904
7905 2011-09-27  Bruno Haible  <bruno@clisp.org>
7906
7907         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7908         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7909         (raise): Remove older, duplicated declaration.
7910         (_gl_raise_SIGPIPE): New declaration.
7911         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7912         (rpl_raise): Remove function.
7913         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7914         a gnulib-defined SIGPIPE here.
7915         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7916         'sigprocmask' has detected missing signal-blocking and the module
7917         'sigpipe' is enabled.
7918         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7919
7920 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7921
7922         base64-tests: avoid memory leak
7923         * tests/test-base64.c (main): Plug memory leak.
7924
7925         base32: new module
7926         * modules/base32: New module.
7927         * lib/base32.c: New file.
7928         * lib/base32.h: Likewise.
7929         * m4/base32.m4: Likewise.
7930         * modules/base32-tests: New test.
7931         * tests/test-base32.c: Likewise.
7932         * MODULES.html.sh (Misc): Mention it.
7933
7934 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7935
7936         gnulib: use more-standard license notice wording
7937         * gnulib-tool (func_emit_copyright_notice): When emitting a
7938         license notice into a file, use the standard wording as suggested
7939         by the current information for GNU maintainers, except say "file"
7940         rather than "program".  The new wording gives a license version
7941         number, which addresses an issue raised by Glenn Morris in
7942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7943         * m4/onceonly.m4: Use that same wording here, too.
7944
7945         dup2: minor simplification
7946         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7947         as lib/dup2.c no longer uses 'inline'.
7948
7949 2011-09-25  Bruno Haible  <bruno@clisp.org>
7950
7951         strings: Fix compilation error on MSVC.
7952         * lib/strings.in.h: Include <stddef.h> for size_t.
7953
7954 2011-09-25  Bruno Haible  <bruno@clisp.org>
7955
7956         fflush et al.: Document limitation on MSVC.
7957         * doc/posix-functions/fflush.texi: Document possible crash in handling
7958         mode other than DEFAULT_HANDLING.
7959         * doc/posix-functions/fgetc.texi: Likewise.
7960         * doc/posix-functions/fputc.texi: Likewise.
7961         * doc/posix-functions/fread.texi: Likewise.
7962         * doc/posix-functions/fwrite.texi: Likewise.
7963
7964 2011-09-25  Bruno Haible  <bruno@clisp.org>
7965
7966         msvc-inval: Allow three invalid parameter handling modes.
7967         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7968         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7969         macros.
7970         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7971         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7972         SANE_LIBRARY_HANDLING as a no-op.
7973         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7974         <stdlib.h>.
7975         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7976
7977 2011-09-25  Bruno Haible  <bruno@clisp.org>
7978
7979         msvc-inval: Make handler multithread-safe.
7980         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7981         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7982         declarations.
7983         (gl_msvc_inval_current): New declaration.
7984         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7985         Operate on the structure returned by gl_msvc_inval_current().
7986         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7987         Remove varaiables.
7988         (tls_index, tls_initialized): New variables.
7989         (not_per_thread): New variable.
7990         (gl_msvc_inval_current): New function.
7991         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7992         returned by gl_msvc_inval_current().
7993
7994 2011-09-25  Bruno Haible  <bruno@clisp.org>
7995
7996         msvc-inval: Install handler globally.
7997         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7998         !_MSC_VER.
7999         (gl_msvc_invalid_parameter_handler): Remove declaration.
8000         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8001         declarations.
8002         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8003         Install the handler globally, don't uninstall it.
8004         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8005         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8006         currently valid, call RaiseException instead.
8007         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8008         for !_MSC_VER.
8009
8010 2011-09-25  Bruno Haible  <bruno@clisp.org>
8011
8012         strerror_r-posix: Fix for MSVC 9.
8013         * lib/strerror_r.c (local_snprintf): New function.
8014         (snprintf): Define to local_snprintf, not to _snprintf.
8015
8016 2011-09-25  Bruno Haible  <bruno@clisp.org>
8017
8018         ftruncate: Support for MSVC 9.
8019         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8020         (chsize_nothrow): New function.
8021         (chsize): Redefine as a macro.
8022         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8023         * modules/ftruncate (Depends-on): Add msvc-inval.
8024
8025 2011-09-25  Bruno Haible  <bruno@clisp.org>
8026
8027         New module 'fstat'.
8028         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8029         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8030         * lib/fchdir.c (rpl_fstat): Remove function.
8031         * m4/fstat.m4: New file.
8032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8033         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8034         declared.
8035         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8036         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8037         * modules/fstat: New file.
8038         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8039         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8040         is set.
8041         * doc/posix-functions/fstat.texi: Mention the new module and the
8042         problem on MSVC.
8043         * NEWS: Mention the change.
8044         * modules/acl (Depends-on): Add fstat.
8045         * modules/chdir-safer (Depends-on): Likewise.
8046         * modules/chown (Depends-on): Likewise.
8047         * modules/copy-file (Depends-on): Likewise.
8048         * modules/fchdir (Depends-on): Likewise.
8049         * modules/fdopendir (Depends-on): Likewise.
8050         * modules/fopen (Depends-on): Likewise.
8051         * modules/fts (Depends-on): Likewise.
8052         * modules/getcwd (Depends-on): Likewise.
8053         * modules/isapipe (Depends-on): Likewise.
8054         * modules/linkat (Depends-on): Likewise.
8055         * modules/lseek (Depends-on): Likewise.
8056         * modules/mkdir-p (Depends-on): Likewise.
8057         * modules/open (Depends-on): Likewise.
8058         * modules/openat (Depends-on): Likewise.
8059         * modules/read-file (Depends-on): Likewise.
8060         * modules/renameat (Depends-on): Likewise.
8061         * modules/utimens (Depends-on): Likewise.
8062
8063 2011-09-25  Bruno Haible  <bruno@clisp.org>
8064
8065         linkat: Fix compilation on MSVC 9.
8066         * lib/linkat.c: Don't include <stdint.h>.
8067
8068 2011-09-25  Bruno Haible  <bruno@clisp.org>
8069
8070         fclose: Support for MSVC 9.
8071         * lib/fclose.c: Include msvc-inval.h.
8072         (fclose_nothrow): New function.
8073         (rpl_fclose): Use it.
8074         * modules/fclose (Depends-on): Add msvc-inval.
8075         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8076
8077 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8078
8079         dup2: minor simplifications
8080         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8081         that it's a performance win.
8082         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8083         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8084
8085 2011-09-24  Jim Meyering  <meyering@redhat.com>
8086
8087         test-futimens: avoid a warning from gcc -Wshadow
8088         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8089         to avoid a shadowing warning.
8090
8091 2011-09-24  Bruno Haible  <bruno@clisp.org>
8092
8093         fdopen: Support for MSVC 9.
8094         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8095         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8096         * lib/fdopen.c: Include msvc-inval.h.
8097         (fdopen_nothrow): New function.
8098         (rpl_fdopen): Use it.
8099         * modules/fdopen (Depends-on): Add msvc-inval.
8100         * modules/fclose-tests (Depends-on): Add fdopen.
8101         * modules/fflush-tests (Depends-on): Likewise.
8102         * modules/fgetc-tests (Depends-on): Likewise.
8103         * modules/fputc-tests (Depends-on): Likewise.
8104         * modules/fread-tests (Depends-on): Likewise.
8105         * modules/freopen-tests (Depends-on): Likewise.
8106         * modules/fseeko-tests (Depends-on): Likewise.
8107         * modules/ftello-tests (Depends-on): Likewise.
8108         * modules/fwrite-tests  (Depends-on): Likewise.
8109         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8110
8111 2011-09-24  Bruno Haible  <bruno@clisp.org>
8112
8113         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8114         * modules/fgetc-tests (Depends-on): Add unistd.
8115         * modules/fputc-tests (Depends-on): Likewise.
8116         * modules/fread-tests (Depends-on): Likewise.
8117         * modules/fwrite-tests (Depends-on): Likewise.
8118
8119 2011-09-24  Bruno Haible  <bruno@clisp.org>
8120
8121         dup: Simplify autoconf test.
8122         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8123         on gl_MSVC_INVAL's result.
8124
8125 2011-09-24  Bruno Haible  <bruno@clisp.org>
8126
8127         Tests for function fwrite().
8128         * modules/fwrite-tests: New file.
8129         * tests/test-fwrite.c: New file.
8130         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8131
8132         Tests for function fread().
8133         * modules/fread-tests: New file.
8134         * tests/test-fread.c: New file.
8135         * modules/stdio-tests (Depends-on): Add fread-tests.
8136
8137         Activate fputc tests.
8138         * modules/stdio-tests (Depends-on): Add fputc-tests.
8139
8140         Enhance fgetc, fputc tests.
8141         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8142         * tests/test-fputc.c (main): Likewise.
8143
8144 2011-09-24  Bruno Haible  <bruno@clisp.org>
8145
8146         write: Support for MSVC 9.
8147         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8148         is not 1.
8149         * lib/write.c (write_nothrow): New function.
8150         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8151         not 1. Use write_nothrow.
8152         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8153         invalid parameter handler.
8154         (gl_PREREQ_WRITE): New macro.
8155         * modules/write (Depends-on): Add msvc-inval.
8156         (configure.ac): Invoke gl_PREREQ_WRITE.
8157         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8158
8159 2011-09-24  Bruno Haible  <bruno@clisp.org>
8160
8161         read: Fix last commit.
8162         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8163
8164 2011-09-24  Bruno Haible  <bruno@clisp.org>
8165
8166         dup2: Fix last commit.
8167         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8168         (rpl_dup2): Disable fcntl workaround on native Windows.
8169
8170         sigprocmask: Make code safer.
8171         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8172         section that changes macro definitions for this compilation unit.
8173
8174 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         dup2: clarify by coalescing Windows-specific material
8177         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8178         "msvc-nothrow.h"' to the Windows-specific section, so that the
8179         Emacs source need not contain these include files.
8180         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8181         Windows-specific fixes into this function rather than just the
8182         nothrow fix, as this shortens and clarifies the code.  Always
8183         define as a function, as that's a bit cleaner than having it be
8184         sometimes a function and sometimes a macro.
8185         (rpl_dup2): Move the Windows-specific stuff out of here and into
8186         ms_windows_dup2.  Don't protect the Haiku-related fix with
8187         "#if !defined __linux__", as the same code also works around
8188         a Linux kernel bug, and it doesn't add any system calls on any
8189         platform.  Add comment about FreeBSD 6.1.
8190
8191         sigprocmask: move #include directive
8192         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8193         Windows-specific section, so that the Emacs source need not
8194         contain msvc-inval.h.
8195
8196 2011-09-23  Bruno Haible  <bruno@clisp.org>
8197
8198         read: Support for MSVC 9.
8199         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8200         is not 1.
8201         * lib/read.c (read_nothrow): New function.
8202         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8203         read_nothrow.
8204         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8205         invalid parameter handler.
8206         (gl_PREREQ_READ): New macro.
8207         * modules/read (Depends-on): Add msvc-inval.
8208         (configure.ac): Invoke gl_PREREQ_READ.
8209         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8210
8211 2011-09-23  Bruno Haible  <bruno@clisp.org>
8212
8213         close: Support for MSVC 9.
8214         * lib/close.c: Include <errno.h>, msvc-inval.h.
8215         (close_nothrow): New function.
8216         (rpl_close): Use it.
8217         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8218         invalid parameter handler.
8219         * modules/close (Depends-on): Add msvc-inval.
8220         * modules/dup2-tests (Depends-on): Add close.
8221         * modules/dup3-tests (Depends-on): Likewise.
8222         * modules/fcntl-tests (Depends-on): Likewise.
8223         * modules/spawn-pipe-tests (Depends-on): Likewise.
8224         * modules/unistd-safer-tests (Depends-on): Likewise.
8225         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8226
8227 2011-09-23  Bruno Haible  <bruno@clisp.org>
8228
8229         New module 'dup'.
8230         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8231         Allow replacement.
8232         * lib/dup.c: New file.
8233         * lib/fchdir.c (rpl_dup): Remove function.
8234         * m4/dup.m4: New file.
8235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8236         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8237         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8238         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8239         * modules/dup: New file.
8240         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8241         'dup' module is in use.
8242         * modules/fdopendir (Depends-on): Add dup.
8243         * modules/fdutimensat-tests (Depends-on): Likewise.
8244         * modules/fts (Depends-on): Likewise.
8245         * modules/futimens-tests (Depends-on): Likewise.
8246         * modules/posix_spawnp-tests (Depends-on): Likewise.
8247         * modules/unistd-safer-tests (Depends-on): Likewise.
8248         * modules/utimens-tests (Depends-on): Likewise.
8249         * doc/posix-functions/dup.texi: Mention the new module and the problem
8250         on MSVC.
8251
8252 2011-09-23  Bruno Haible  <bruno@clisp.org>
8253
8254         getdtablesize: Support for MSVC 9.
8255         * lib/getdtablesize.c: Include msvc-inval.h.
8256         (_setmaxstdio_nothrow): New function.
8257         (_setmaxstdio): Redefine it.
8258         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8259         * modules/getdtablesize (Depends-on): Add msvc-inval.
8260         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8261
8262 2011-09-23  Bruno Haible  <bruno@clisp.org>
8263
8264         signal-h: Rename from signal.
8265         * modules/signal-h: Renamed from modules/signal.
8266         * modules/pthread_sigmask (Depends-on): Update.
8267         * modules/raise (Depends-on): Likewise.
8268         * modules/sigaction (Depends-on): Likewise.
8269         * modules/sigpipe (Depends-on): Likewise.
8270         * modules/sigprocmask (Depends-on): Likewise.
8271         * modules/sys_select (Depends-on): Likewise.
8272         * modules/signal-h-tests: Renamed from modules/signal-tests.
8273         (Files, Depends-on, Makefile.am): Update.
8274         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8275         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8276         (Files, Makefile.am): Update.
8277         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8278         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8279         * modules/signal: New placeholder file.
8280         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8281         * doc/posix-headers/signal.texi: Update.
8282         * NEWS: Mention the change.
8283
8284 2011-09-23  Bruno Haible  <bruno@clisp.org>
8285
8286         sigprocmask: Avoid crashes through signal() on MSVC 9.
8287         * lib/sigprocmask.c: Include msvc-inval.h.
8288         (signal_nothrow): New function.
8289         (signal): Redefine it.
8290         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8291         * modules/sigprocmask (Depends-on): Add msvc-inval.
8292         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8293
8294 2011-09-23  Bruno Haible  <bruno@clisp.org>
8295
8296         Tests for module 'raise'.
8297         * modules/raise-tests: New file.
8298         * tests/test-raise.c: New file.
8299
8300         raise: Support for MSVC.
8301         * lib/signal.in.h (raise): New declaration.
8302         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8303         for native Windows platforms.
8304         * m4/raise.m4: New file.
8305         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8306         HAVE_RAISE, REPLACE_RAISE.
8307         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8308         REPLACE_RAISE.
8309         * modules/raise (Status, Notice): Remove fields.
8310         (Files): Add m4/raise.m4.
8311         (Depends-on): Add signal, msvc-inval.
8312         (configure.ac): Use the common idioms.
8313         (Maintainer): Add me.
8314         * tests/test-signal-c++.cc: Check the signature of raise.
8315         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8316
8317 2011-09-23  Bruno Haible  <bruno@clisp.org>
8318
8319         pipe2: Fix compilation on pre-C99 compilers.
8320         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8321
8322 2011-09-23  Bruno Haible  <bruno@clisp.org>
8323
8324         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8325         * lib/msvc-nothrow.h: New file.
8326         * lib/msvc-nothrow.c: New file.
8327         * m4/msvc-nothrow.m4: New file.
8328         * modules/msvc-nothrow: New file.
8329         * lib/dup2.c: Include msvc-nothrow.h.
8330         (rpl_dup2): No need to protect _get_osfhandle call here.
8331         * lib/accept4.c: Include msvc-nothrow.h.
8332         * lib/error.c: Likewise.
8333         * lib/fcntl.c: Likewise.
8334         * lib/lseek.c: Likewise.
8335         * lib/nonblocking.c: Likewise.
8336         * lib/poll.c: Likewise.
8337         * lib/read.c: Likewise.
8338         * lib/select.c: Likewise.
8339         * lib/sockets.h: Likewise.
8340         * lib/sockets.c: Likewise.
8341         * lib/stdio-read.c: Likewise.
8342         * lib/stdio-write.c: Likewise.
8343         * lib/write.c: Likewise.
8344         * lib/w32sock.h: Likewise.
8345         * lib/w32spawn.h: Likewise.
8346         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8347         * lib/fsync.c: Likewise.
8348         * lib/isapipe.c: Likewise.
8349         * modules/dup2 (Depends-on): Add msvc-nothrow.
8350         * modules/accept4 (Depends-on): Likewise.
8351         * modules/error (Depends-on): Likewise.
8352         * modules/fcntl (Depends-on): Likewise.
8353         * modules/lseek (Depends-on): Likewise.
8354         * modules/nonblocking (Depends-on): Likewise.
8355         * modules/poll (Depends-on): Likewise.
8356         * modules/read (Depends-on): Likewise.
8357         * modules/select (Depends-on): Likewise.
8358         * modules/sockets (Depends-on): Likewise.
8359         * modules/sigpipe (Depends-on): Likewise.
8360         * modules/write (Depends-on): Likewise.
8361         * modules/accept (Depends-on): Likewise.
8362         * modules/bind (Depends-on): Likewise.
8363         * modules/connect (Depends-on): Likewise.
8364         * modules/gethostname (Depends-on): Likewise.
8365         * modules/getpeername (Depends-on): Likewise.
8366         * modules/getsockname (Depends-on): Likewise.
8367         * modules/getsockopt (Depends-on): Likewise.
8368         * modules/ioctl (Depends-on): Likewise.
8369         * modules/listen (Depends-on): Likewise.
8370         * modules/recv (Depends-on): Likewise.
8371         * modules/recvfrom (Depends-on): Likewise.
8372         * modules/send (Depends-on): Likewise.
8373         * modules/sendto (Depends-on): Likewise.
8374         * modules/setsockopt (Depends-on): Likewise.
8375         * modules/shutdown (Depends-on): Likewise.
8376         * modules/socket (Depends-on): Likewise.
8377         * modules/execute (Depends-on): Likewise.
8378         * modules/spawn-pipe (Depends-on): Likewise.
8379         * modules/flock (Depends-on): Likewise.
8380         * modules/fsync (Depends-on): Likewise.
8381         * modules/isapipe (Depends-on): Likewise.
8382         * tests/test-cloexec.c: Include msvc-nothrow.h.
8383         * tests/test-dup-safer.c: Likewise.
8384         * tests/test-dup2.c: Likewise.
8385         * tests/test-dup3.c: Likewise.
8386         * tests/test-fcntl.c: Likewise.
8387         * tests/test-pipe.c: Likewise.
8388         * tests/test-pipe2.c: Likewise.
8389         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8390         * modules/unistd-safer-tests (Depends-on): Likewise.
8391         * modules/dup2-tests (Depends-on): Likewise.
8392         * modules/dup3-tests (Depends-on): Likewise.
8393         * modules/fcntl-tests (Depends-on): Likewise.
8394         * modules/pipe-posix-tests (Depends-on): Likewise.
8395         * modules/pipe2-tests (Depends-on): Likewise.
8396
8397 2011-09-23  Bruno Haible  <bruno@clisp.org>
8398
8399         dup2: Make code more maintainable.
8400         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8401         (rpl_dup2): Use it.
8402         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8403         * modules/dup2 (configure.ac): Invoke it.
8404         Reported by Paul Eggert.
8405
8406 2011-09-23  Bruno Haible  <bruno@clisp.org>
8407
8408         msvc-inval: Fix compilation error.
8409         * lib/msvc-inval.h: Include <excpt.h>.
8410
8411 2011-09-23  Bruno Haible  <bruno@clisp.org>
8412
8413         mkdir: Tweak for MSVC 9.
8414         * lib/sys_stat.in.h: Update comments.
8415         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8416
8417         Tests for module 'chdir'.
8418         * modules/chdir-tests: New file.
8419         * tests/test-chdir.c: New file.
8420
8421         New module 'chdir'.
8422         * modules/chdir: New file.
8423         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8424         (chdir): New declaration.
8425         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8426         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8427         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8428         * tests/test-unistd-c++.cc: Check signature of chdir.
8429         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8430         * modules/chdir-long (Depends-on): Add chdir.
8431         * modules/fchdir (Depends-on): Likewise.
8432         * modules/rename (Depends-on): Likewise.
8433         * modules/savewd (Depends-on): Likewise.
8434
8435         rmdir: Support for mingw, MSVC 9.
8436         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8437         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8438
8439         getcwd: Tweak for MSVC 9.
8440         * lib/unistd.in.h: Update comments.
8441         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8442
8443 2011-09-22  Bruno Haible  <bruno@clisp.org>
8444
8445         strerror_r-posix: Avoid a link error on MSVC.
8446         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8447         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8448
8449 2011-09-22  Bruno Haible  <bruno@clisp.org>
8450
8451         select: Avoid link errors on MSVC.
8452         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8453         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8454         * modules/pselect (Link): Likewise.
8455         * NEWS: Mention the change.
8456         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8457         test-select-stdin against $(LIB_SELECT).
8458         * modules/pselect-tests (Makefile.am): Link test-pselect against
8459         $(LIB_SELECT).
8460
8461 2011-09-22  Bruno Haible  <bruno@clisp.org>
8462
8463         select: Avoid compilation error on MSVC.
8464         * lib/select.c: Don't include <stdbool.h>.
8465
8466 2011-09-21  Bruno Haible  <bruno@clisp.org>
8467
8468         Consolidate all uses of PATH_MAX in *.m4 files.
8469         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8470         macros.
8471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8472         and gl_PATHMAX_SNIPPET.
8473         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8474         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8475         * modules/chdir-long (Files): Add m4/pathmax.m4.
8476         * modules/getcwd (Files): Likewise.
8477
8478 2011-09-21  Bruno Haible  <bruno@clisp.org>
8479
8480         ftruncate: Un-deprecate, concentrate on Win32 support.
8481         * modules/ftruncate (Status, Notice): Remove sections.
8482         (Depends-on): Add largefile.
8483         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8484         non-mingw platforms.
8485         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8486         include <io.h>.
8487         * modules/perror-tests (Depends-on): Add ftruncate.
8488         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8489         'ftruncate' module.
8490
8491 2011-09-21  Bruno Haible  <bruno@clisp.org>
8492
8493         Add dependencies to new dirent related modules.
8494         * modules/opendir (Depends-on): Add closedir.
8495         * modules/getcwd (Depends-on): Add opendir, closedir.
8496         * modules/dirent-safer-tests (Depends-on): Likewise.
8497         * modules/fdopendir-tests (Depends-on): Likewise.
8498         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8499         * modules/renameat-tests (Depends-on): Likewise.
8500
8501 2011-09-21  Bruno Haible  <bruno@clisp.org>
8502
8503         opendir: Avoid compilation error on mingw.
8504         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8505         * modules/opendir (Depends-on): Add unistd.
8506
8507 2011-09-21  Bruno Haible  <bruno@clisp.org>
8508
8509         ftruncate tests: Avoid a test failure on mingw.
8510         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8511
8512 2011-09-21  Bruno Haible  <bruno@clisp.org>
8513
8514         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8515         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8516         native Windows.
8517
8518 2011-09-21  Bruno Haible  <bruno@clisp.org>
8519
8520         New module 'fdopen'.
8521         * lib/stdio.in.h (fdopen): New declaration.
8522         * lib/fdopen.c: New file.
8523         * m4/fdopen.m4: New file.
8524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8525         REPLACE_FDOPEN.
8526         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8527         REPLACE_FDOPEN.
8528         * modules/fdopen: New file.
8529         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8530         * tests/test-stdio-c++.cc: Check signature of fdopen.
8531         * doc/posix-functions/fdopen.texi: Mention the new module.
8532
8533 2011-09-21  Bruno Haible  <bruno@clisp.org>
8534
8535         unlockpt tests: Avoid test failure on NetBSD 5.1.
8536         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8537         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8538
8539 2011-09-21  Bruno Haible  <bruno@clisp.org>
8540
8541         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8542         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8543         * tests/test-getlogin_r.c (main): Likewise.
8544
8545 2011-09-20  Bruno Haible  <bruno@clisp.org>
8546
8547         time tests: Don't require pid_t.
8548         * doc/posix-headers/time.texi: Revert last change.
8549         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8550         * tests/test-time.c: Comment out the check for pid_t.
8551
8552 2011-09-20  Bruno Haible  <bruno@clisp.org>
8553
8554         fsync tests: Avoid a test failure on mingw.
8555         * tests/test-fsync.c (main): Allow a failure with EIO.
8556
8557 2011-09-20  Bruno Haible  <bruno@clisp.org>
8558
8559         euidaccess: Update comments.
8560         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8561
8562 2011-09-20  Bruno Haible  <bruno@clisp.org>
8563
8564         Ensure EBADF returns for socket functions on mingw.
8565         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8566         descriptor is invalid.
8567         * lib/bind.c (rpl_bind): Likewise.
8568         * lib/connect.c (rpl_connect): Likewise.
8569         * lib/getpeername.c (rpl_getpeername): Likewise.
8570         * lib/getsockname.c (rpl_getsockname): Likewise.
8571         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8572         * lib/listen.c (rpl_listen): Likewise.
8573         * lib/recv.c (rpl_recv): Likewise.
8574         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8575         * lib/send.c (rpl_send): Likewise.
8576         * lib/sendto.c (rpl_sendto): Likewise.
8577         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8578         * lib/shutdown.c (rpl_shutdown): Likewise.
8579
8580 2011-09-20  Bruno Haible  <bruno@clisp.org>
8581
8582         select tests: EBADF tests.
8583         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8584         test_bad_fd): New functions.
8585         (test_function): Invoke also test_bad_fd.
8586
8587 2011-09-20  Bruno Haible  <bruno@clisp.org>
8588
8589         Tests for module 'posix_spawn_file_actions_addopen.
8590         * modules/posix_spawn_file_actions_addopen-tests: New file.
8591         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8592
8593         Tests for module 'posix_spawn_file_actions_adddup2'.
8594         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8595         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8596
8597         Tests for module 'posix_spawn_file_actions_addclose'.
8598         * modules/posix_spawn_file_actions_addclose-tests: New file.
8599         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8600
8601 2011-09-20  Bruno Haible  <bruno@clisp.org>
8602
8603         Tests for module 'unlockpt'.
8604         * modules/unlockpt-tests: New file.
8605         * tests/test-unlockpt.c: New file.
8606         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8607
8608         Tests for module 'grantpt'.
8609         * modules/grantpt-tests: New file.
8610         * tests/test-grantpt.c: New file.
8611         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8612
8613 2011-09-20  Bruno Haible  <bruno@clisp.org>
8614
8615         freopen tests: EBADF tests.
8616         * tests/test-freopen.c: Include errno.h, unistd.h.
8617         (main): Add tests for EBADF, commented out for the moment.
8618
8619         fclose tests: EBADF tests.
8620         * tests/test-fclose.c (main): Add tests for EBADF.
8621
8622         fflush tests: EBADF tests.
8623         * tests/test-fflush.c: Include errno.h, macros.h.
8624         (main): Add tests for EBADF.
8625
8626         ftello tests: EBADF tests.
8627         * tests/test-ftello4.sh: New file.
8628         * tests/test-ftello4.c: New file.
8629         * modules/ftello-tests (Files): Add them.
8630         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8631
8632         fseeko tests: EBADF tests.
8633         * tests/test-fseeko4.sh: New file.
8634         * tests/test-fseeko4.c: New file.
8635         * modules/fseeko-tests (Files): Add them.
8636         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8637
8638         Tests for function fputc().
8639         * modules/fputc-tests: New file.
8640         * tests/test-fputc.c: New file.
8641         * modules/stdio-tests (Depends-on): Add fputc-tests.
8642
8643         Tests for function fgetc().
8644         * modules/fgetc-tests: New file.
8645         * tests/test-fgetc.c: New file.
8646         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8647
8648         Tests for function fdopen().
8649         * modules/fdopen-tests: New file.
8650         * tests/test-fdopen.c: New file.
8651         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8652
8653         Tests for module 'vdprintf'.
8654         * modules/vdprintf-tests: New file.
8655         * tests/test-vdprintf.c: New file.
8656
8657         Tests for module 'dprintf'.
8658         * modules/dprintf-tests: New file.
8659         * tests/test-dprintf.c: New file.
8660
8661 2011-09-20  Bruno Haible  <bruno@clisp.org>
8662
8663         Tests for module 'ioctl'.
8664         * modules/ioctl-tests: New file.
8665         * tests/test-ioctl.c: New file.
8666
8667 2011-09-20  Bruno Haible  <bruno@clisp.org>
8668
8669         fcntl tests: EBADF tests.
8670         * tests/test-fcntl.c (main): Add more tests for EBADF.
8671
8672 2011-09-20  Bruno Haible  <bruno@clisp.org>
8673
8674         utimensat tests: EBADF tests.
8675         * tests/test-utimensat.c (main): Add tests for EBADF.
8676
8677         renameat tests: EBADF tests.
8678         * tests/test-renameat.c (main): Add tests for EBADF.
8679
8680         mkfifoat tests: EBADF tests.
8681         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8682
8683         readlinkat tests: EBADF tests.
8684         * tests/test-readlinkat.c (main): Add tests for EBADF.
8685
8686         symlinkat tests: EBADF tests.
8687         * tests/test-symlinkat.c (main): Add tests for EBADF.
8688
8689         linkat tests: EBADF tests.
8690         * tests/test-linkat.c (main): Add tests for EBADF.
8691
8692         Tests for module 'faccessat'.
8693         * modules/faccessat-tests: New file.
8694         * tests/test-faccessat.c: New file.
8695
8696         fdopendir tests: EBADF tests.
8697         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8698
8699         openat tests: EBADF tests.
8700         * tests/test-fchownat.c (main): Add tests for EBADF.
8701         * tests/test-fstatat.c (main): Likewise.
8702         * tests/test-mkdirat.c (main): Likewise.
8703         * tests/test-openat.c (main): Likewise.
8704         * tests/test-unlinkat.c (main): Likewise.
8705         * tests/test-fchmodat.c: New file.
8706         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8707         (Makefile.am): Also run 'test-fchmodat'.
8708
8709 2011-09-20  Bruno Haible  <bruno@clisp.org>
8710
8711         utimens, futimens, fdutimensat tests: EBADF tests.
8712         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8713
8714         Tests for function fstat().
8715         * modules/fstat-tests: New file.
8716         * tests/test-fstat.c: New file.
8717         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8718
8719 2011-09-20  Bruno Haible  <bruno@clisp.org>
8720
8721         test-ttyname_r tests: EBADF tests.
8722         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8723
8724         Tests for module 'isatty'.
8725         * modules/isatty-tests: New file.
8726         * tests/test-isatty.c: New file.
8727
8728         Tests for module 'write'.
8729         * modules/write-tests: New file.
8730         * tests/test-write.c: New file.
8731
8732         Tests for module 'read'.
8733         * modules/read-tests: New file.
8734         * tests/test-read.c: New file.
8735
8736         pwrite tests: EBADF tests.
8737         * tests/test-pwrite.c (main): Add tests for EBADF.
8738
8739         pread tests: EBADF tests.
8740         * tests/test-pread.c (main): Add tests for EBADF.
8741
8742         lseek tests: EBADF tests.
8743         * tests/test-lseek.c (main): Add more tests for EBADF.
8744
8745         Tests for module 'ftruncate'.
8746         * modules/ftruncate-tests: New file.
8747         * tests/test-ftruncate.sh: New file.
8748         * tests/test-ftruncate.c: New file.
8749
8750         fsync tests: EBADF tests.
8751         * tests/test-fsync.c (main): Add more tests for EBADF.
8752
8753         fdatasync tests: EBADF tests.
8754         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8755
8756         Tests for module 'fchown'.
8757         * modules/fchown-tests: New file.
8758         * tests/test-fchown.c: New file.
8759
8760         Tests for module 'fchmod'.
8761         * modules/fchmod-tests: New file.
8762         * tests/test-fchmod.c: New file.
8763
8764         fchdir tests: EBADF tests.
8765         * tests/test-fchdir.c (main): Add more tests for EBADF.
8766
8767         dup2 tests: EBADF tests.
8768         * tests/test-dup2.c (main): Add more tests for EBADF.
8769
8770         Tests for module 'dup'.
8771         * modules/dup-tests: New file.
8772         * tests/test-dup.c: New file.
8773
8774         Tests for module 'close'.
8775         * modules/close-tests: New file.
8776         * tests/test-close.c: New file.
8777
8778 2011-09-20  Bruno Haible  <bruno@clisp.org>
8779
8780         Tests for module 'shutdown'.
8781         * modules/shutdown-tests: New file.
8782         * tests/test-shutdown.c: New file.
8783
8784         Tests for module 'setsockopt'.
8785         * modules/setsockopt-tests: New file.
8786         * tests/test-setsockopt.c: New file.
8787
8788         Tests for module 'sendto'.
8789         * modules/sendto-tests: New file.
8790         * tests/test-sendto.c: New file.
8791
8792         Tests for module 'send'.
8793         * modules/send-tests: New file.
8794         * tests/test-send.c: New file.
8795
8796         Tests for module 'recvfrom'.
8797         * modules/recvfrom-tests: New file.
8798         * tests/test-recvfrom.c: New file.
8799
8800         Tests for module 'recv'.
8801         * modules/recv-tests: New file.
8802         * tests/test-recv.c: New file.
8803
8804         Tests for module 'listen'.
8805         * modules/listen-tests: New file.
8806         * tests/test-listen.c: New file.
8807
8808         Tests for module 'getsockopt'.
8809         * modules/getsockopt-tests: New file.
8810         * tests/test-getsockopt.c: New file.
8811
8812         Tests for module 'getsockname'.
8813         * modules/getsockname-tests: New file.
8814         * tests/test-getsockname.c: New file.
8815
8816         Tests for module 'getpeername'.
8817         * modules/getpeername-tests: New file.
8818         * tests/test-getpeername.c: New file.
8819
8820         Tests for module 'connect'.
8821         * modules/connect-tests: New file.
8822         * tests/test-connect.c: New file.
8823
8824         Tests for module 'bind'.
8825         * modules/bind-tests: New file.
8826         * tests/test-bind.c: New file.
8827
8828         accept4 tests: Fix for native Windows.
8829         * tests/test-accept4.c: Include sockets.h.
8830         (main): Invoke gl_sockets_startup.
8831         * modules/accept4-tests (Depends-on): Add sockets.
8832
8833         accept tests: Fix for native Windows.
8834         * tests/test-accept.c: Include sockets.h.
8835         (main): Invoke gl_sockets_startup.
8836         * modules/accept-tests (Depends-on): Add sockets.
8837
8838 2011-09-19  Bruno Haible  <bruno@clisp.org>
8839
8840         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8841         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8842         do...while(0).
8843         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8844         Suggested by Paul Eggert.
8845
8846 2011-09-19  Bruno Haible  <bruno@clisp.org>
8847
8848         sched: Ensure pid_t is defined.
8849         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8850         not define pid_t.
8851         * lib/sched.in.h: Include <sys/types.h>.
8852         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8854
8855 2011-09-19  Bruno Haible  <bruno@clisp.org>
8856
8857         msvc-inval: Ensure the entire expansion is a single statement.
8858         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8859         of braces.
8860
8861 2011-09-19  Jim Meyering  <meyering@redhat.com>
8862
8863         tests: use printf, not echo in init.sh's warn_ function
8864         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8865         misbehave when given strings containing a backslash or starting
8866         with e.g., -n.  James Youngman suggested setting IFS.
8867
8868 2011-09-19  Eric Blake  <eblake@redhat.com>
8869
8870         futimens: enhance test
8871         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8872         closed non-negative fd.
8873
8874         date: accept 'hence' as opposite of 'ago'
8875         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8876         * tests/test-parse-datetime.c (main): Enhance test.
8877         Suggested by Jesse Wilson.
8878
8879 2011-09-19  Jim Meyering  <meyering@redhat.com>
8880
8881         getcwd: don't fail in a deep directory on a system without openat
8882         Before this change, getcwd would fail when called from a directory
8883         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8884         the non-openat implementation used "..", "../..", "../../..", etc.
8885         to access ancestor directories.  With too many, that string would
8886         be longer than PATH_MAX.
8887         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8888         using gnulib's openat replacement.
8889         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8890         we're using the replacement function.
8891
8892 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8893
8894         maint.mk: avoid warnings from perl about missing files
8895         * top/maint.mk (def_sym_regex): Ignore files listed in
8896         $(gl_other_headers_) that do not exist, say because a project
8897         does not use a corresponding module.
8898
8899 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8900
8901         stat: use pathmax.h only if needed
8902         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8903         This is better for Emacs, which does not have a mingw port and
8904         therefore can avoid the pathmax module.
8905
8906         utimens: remove dependency on dup2
8907         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8908         to work around the Linux kernel bug.
8909         * modules/utimens (Depends-on): Remove dup2.
8910
8911 2011-09-18  Bruno Haible  <bruno@clisp.org>
8912
8913         inet_ntop, inet_pton: Look for it also in libresolv.
8914         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8915         libnsl, search for it in libresolv.
8916         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8917         Needed on Solaris 7.
8918
8919 2011-09-18  Bruno Haible  <bruno@clisp.org>
8920
8921         accept, accept4 tests: Avoid link error on Solaris.
8922         * modules/accept-tests (Makefile.am): Link test-accept against
8923         $(LIBSOCKET).
8924         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8925         $(LIBSOCKET).
8926
8927         accept4: Avoid link error on Solaris.
8928         * modules/accept4 (Link): New section.
8929
8930         socket functions: Avoid link errors on Solaris.
8931         * modules/accept (Depends-on): Add socketlib.
8932         (Link): New section.
8933         * modules/bind (Depends-on): Add socketlib.
8934         (Link): New section.
8935         * modules/connect (Depends-on): Add socketlib.
8936         (Link): New section.
8937         * modules/getpeername (Depends-on): Add socketlib.
8938         (Link): New section.
8939         * modules/getsockname (Depends-on): Add socketlib.
8940         (Link): New section.
8941         * modules/getsockopt (Depends-on): Add socketlib.
8942         (Link): New section.
8943         * modules/listen (Depends-on): Add socketlib.
8944         (Link): New section.
8945         * modules/recv (Depends-on): Add socketlib.
8946         (Link): New section.
8947         * modules/recvfrom (Depends-on): Add socketlib.
8948         (Link): New section.
8949         * modules/send (Depends-on): Add socketlib.
8950         (Link): New section.
8951         * modules/sendto (Depends-on): Add socketlib.
8952         (Link): New section.
8953         * modules/setsockopt (Depends-on): Add socketlib.
8954         (Link): New section.
8955         * modules/shutdown (Depends-on): Add socketlib.
8956         (Link): New section.
8957         * modules/socket (Depends-on): Add socketlib.
8958         (Link): New section.
8959
8960 2011-09-18  Bruno Haible  <bruno@clisp.org>
8961
8962         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8963         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8964         than 5 seconds.
8965         * modules/ptsname-tests (configure.ac): Test for alarm.
8966
8967 2011-09-18  Bruno Haible  <bruno@clisp.org>
8968
8969         posix_spawn_file_actions_add*: Fix module dependencies.
8970         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8971         posix_spawn_file_actions_init.
8972         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8973         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8974
8975 2011-09-18  Bruno Haible  <bruno@clisp.org>
8976
8977         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8978         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8979         * tests/test-renameat.c (main): Likewise.
8980
8981 2011-09-18  Bruno Haible  <bruno@clisp.org>
8982
8983         Tests for module 'accept4'.
8984         * modules/accept4-tests: New file.
8985         * tests/test-accept4.c: New file.
8986
8987 2011-09-18  Bruno Haible  <bruno@clisp.org>
8988
8989         Tests for module 'accept'.
8990         * modules/accept-tests: New file.
8991         * tests/test-accept.c: New file.
8992
8993 2011-09-18  Bruno Haible  <bruno@clisp.org>
8994
8995         dup2: Support for MSVC.
8996         * lib/dup2.c: Include msvc-inval.h.
8997         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8998         _get_osfhandle calls.
8999         * modules/dup2 (Depends-on): Add msvc-inval.
9000         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9001
9002         New module 'msvc-inval'.
9003         * lib/msvc-inval.h: New file.
9004         * lib/msvc-inval.c: New file.
9005         * m4/msvc-inval.m4: New file.
9006         * modules/msvc-inval: New file.
9007
9008 2011-09-17  Bruno Haible  <bruno@clisp.org>
9009
9010         Tests for module 'pclose'.
9011         * modules/pclose-tests: New file.
9012
9013         New module 'pclose'.
9014         * lib/stdio.in.h (pclose): New declaration.
9015         * lib/pclose.c: New file.
9016         * m4/pclose.m4: New file.
9017         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9018         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9019         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9020         * modules/pclose: New file.
9021         * modules/popen-tests (Depends-on): Add pclose.
9022         * modules/popen-safer-tests (Depends-on): Likewise.
9023         * doc/posix-functions/pclose.texi: Mention the new module.
9024
9025 2011-09-17  Bruno Haible  <bruno@clisp.org>
9026
9027         popen: Support for MSVC.
9028         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9029         * lib/popen.c (popen): Provide alternate definition for native Windows.
9030         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9032         * modules/popen (Depends-on, configure.ac): Update condition.
9033         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9034         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9035         fixed.
9036
9037 2011-09-17  Bruno Haible  <bruno@clisp.org>
9038
9039         isnanl, isnand, isnanf: Work around MSVC bug.
9040         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9041
9042 2011-09-17  Bruno Haible  <bruno@clisp.org>
9043
9044         sys_socket tests: Fix recent mistake.
9045         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9046
9047 2011-09-17  Bruno Haible  <bruno@clisp.org>
9048
9049         putenv: Support for MSVC.
9050         * modules/putenv (Depends-on): Add environ.
9051         * lib/putenv.c (environ): Disable declaration.
9052         * lib/unistd.in.h: Update comment.
9053
9054 2011-09-17  Bruno Haible  <bruno@clisp.org>
9055
9056         math: Avoid macro redefinition warnings on MSVC.
9057         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9058         Undefine before redefining.
9059
9060 2011-09-17  Bruno Haible  <bruno@clisp.org>
9061
9062         doc: Mention functions which are declared as macros.
9063         * doc/posix-functions/*[fl].texi: Mention that some functions are
9064         defined as macros with arguments only.
9065
9066 2011-09-17  Bruno Haible  <bruno@clisp.org>
9067
9068         Add dependencies to new dirent related modules.
9069         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9070         * modules/fts (Depends-on): Likewise.
9071         * modules/glob (Depends-on): Likewise.
9072         * modules/savedir (Depends-on): Likewise.
9073         * modules/scandir (Depends-on): Likewise.
9074         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9075         * modules/fdopendir (Depends-on): Add opendir.
9076
9077 2011-09-17  Bruno Haible  <bruno@clisp.org>
9078
9079         inet_pton: Support for MSVC on Windows Vista or newer.
9080         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9081         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9082         HAVE_DECL_INET_PTON is defined.
9083         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9084         On platforms with <winsock2.h>, test whether inet_pton is declared in
9085         <ws2tcpip.h>. If so, arrange to replace it.
9086         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9087         REPLACE_INET_PTON.
9088         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9089         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9090         (Depends-on, configure.ac): Update condition.
9091         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9092
9093 2011-09-17  Bruno Haible  <bruno@clisp.org>
9094
9095         inet_ntop: Support for MSVC on Windows Vista or newer.
9096         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9097         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9098         HAVE_DECL_INET_NTOP is defined.
9099         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9100         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9101         <ws2tcpip.h>. If so, arrange to replace it.
9102         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9103         REPLACE_INET_NTOP.
9104         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9105         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9106         (Depends-on, configure.ac): Update condition.
9107         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9108
9109 2011-09-16  Eric Blake  <eblake@redhat.com>
9110
9111         test-fsync: yet another enhancement
9112         * tests/test-fsync.c (main): Also test behavior on read-only text
9113         file.
9114
9115 2011-09-16  Bruno Haible  <bruno@clisp.org>
9116
9117         Enhance fsync, fdatasync tests.
9118         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9119         * tests/test-fdatasync.c (main): Likewise.
9120
9121 2011-09-16  Bruno Haible  <bruno@clisp.org>
9122
9123         Support for MSVC compiler: Ensure mode_t gets defined.
9124         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9125         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9126         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9127         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9128         * tests/test-fcntl-h.c: Check that mode_t is defined.
9129         * tests/test-sys_stat.c: Likewise.
9130         * tests/test-sys_types.c: Likewise.
9131         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9132         * doc/posix-headers/sys_stat.texi: Likewise.
9133         * doc/posix-headers/sys_types.texi: Likewise.
9134
9135 2011-09-16  Bruno Haible  <bruno@clisp.org>
9136
9137         sys_stat: Support for MSVC.
9138         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9139         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9140         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9141         MSVC.
9142
9143 2011-09-16  Bruno Haible  <bruno@clisp.org>
9144
9145         Support for MSVC compiler: Ensure off_t gets defined.
9146         * lib/unistd.in.h: Include <sys/types.h>.
9147         * tests/test-fcntl-h.c: Check that off_t is defined.
9148         * tests/test-sys_stat.c: Likewise.
9149         * tests/test-sys_types.c: Likewise.
9150
9151 2011-09-16  Eric Blake  <eblake@redhat.com>
9152
9153         fdatasync: port to Solaris
9154         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9155         * modules/fdatasync (Link): Document it.
9156         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9157
9158         fdatasync: port to MacOS X 10.7
9159         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9160         declared.
9161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9162         * modules/unistd (Makefile.am): Substitute it.
9163         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9164         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9165
9166         fdatasync: minor improvements
9167         * modules/fdatasync (Depends-on): Add condition for fsync.
9168         * lib/fdatasync.c (fdatasync): Add comment.
9169         * tests/test-unistd-c++.cc: Test fdatasync.
9170
9171         unistd: update refs to newer POSIX
9172         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9173         Suggested by Bruno Haible.
9174
9175         fdatasync: new module
9176         * modules/fsync (Description): Document difference to fdatasync.
9177         * modules/fdatasync: New module.
9178         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9179         * lib/fdatasync.c (fdatasync): Likewise.
9180         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9181         defaults.
9182         * modules/unistd (Makefile.am): Set witnesses.
9183         * lib/unistd.in.h (fdatasync): Declare.
9184         * MODULES.html.sh: Document it.
9185         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9186         * modules/fdatasync-tests: New test.
9187         * tests/test-fdatasync.c: Likewise.
9188
9189 2011-09-16  Eric Blake  <eblake@redhat.com>
9190
9191         test-fsync: enhance tests
9192         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9193         * tests/test-fsync.c (main): Enhance test.
9194
9195 2011-09-15  Bruno Haible  <bruno@clisp.org>
9196
9197         Support for MSVC compiler: Ensure ssize_t gets defined.
9198         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9199         * doc/posix-headers/stdio.texi: Likewise.
9200         * modules/stdio (Depends-on): Add ssize_t.
9201         * modules/sys_socket (Depends-on): Likewise.
9202         * modules/sys_types (Depends-on): Likewise.
9203         * modules/sys_uio (Depends-on): Likewise.
9204         * modules/unistd (Depends-on): Likewise.
9205         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9206         * tests/test-sys_types.c: Check that ssize_t is defined.
9207
9208 2011-09-14  Bruno Haible  <bruno@clisp.org>
9209
9210         Avoid using #, the m4 comment starter character, near brackets.
9211         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9212         delimiter character in sed expressions.
9213         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9214         Suggested by Eric Blake.
9215
9216         Properly quote AC_CHECK_DECLS' 4th argument.
9217         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9218         argument.
9219         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9220         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9221         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9222         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9223         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9224         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9225         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9226         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9227         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9228         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9229         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9230         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9231         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9232         * m4/isinf.m4 (gl_ISINF): Likewise.
9233         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9234         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9235         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9236         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9239         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9240         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9241         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9242         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9243         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9244         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9246         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9247         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9248         Reported by Eric Blake.
9249
9250         Properly quote AC_CHECK_DECL's 4th argument.
9251         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9252         argument.
9253         * m4/argp.m4 (gl_ARGP): Likewise.
9254         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9255         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9256         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9257         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9258         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9259         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9260         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9261         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9262         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9263         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9264         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9265         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9266         Reported by Eric Blake.
9267
9268 2011-09-14  Eric Blake  <eblake@redhat.com>
9269
9270         opendir: avoid compile warning
9271         * lib/opendir.c (includes): Always include errno.h.
9272         Reported by Tatsuro MATSUOKA.
9273
9274 2011-09-14  Jim Meyering  <meyering@redhat.com>
9275
9276         maint.mk: sc_tight_scope: propagate failure from sub-make
9277         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9278         Reported by Martin von Gagern.
9279
9280 2011-09-13  Bruno Haible  <bruno@clisp.org>
9281
9282         tempname: Support for MSVC.
9283         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9284         MSVC.
9285         * modules/tempname (Depends-on): Add fcntl-h.
9286
9287 2011-09-13  Bruno Haible  <bruno@clisp.org>
9288
9289         sys_time: Support for MSVC.
9290         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9291         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9292         include <winsock2.h>.
9293         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9294         function declarations that collide with POSIX.
9295         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9296         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9297
9298 2011-09-13  Bruno Haible  <bruno@clisp.org>
9299
9300         stat: Support for MSVC.
9301         * lib/stat.c: Include pathmax.h.
9302         * modules/stat (Depends-on): Add pathmax.
9303
9304         pathmax: Support for native Windows.
9305         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9306
9307 2011-09-12  Bruno Haible  <bruno@clisp.org>
9308
9309         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9310         * lib/dirent.in.h (struct dirent): New type.
9311         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9312         DT_WHT): New macros.
9313         (DIR): New type.
9314         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9315         (readdir, rewinddir): New declarations.
9316         * lib/dirent-private.h: New file.
9317         * lib/opendir.c: New file.
9318         * lib/readdir.c: New file.
9319         * lib/rewinddir.c: New file.
9320         * lib/closedir.c: New file.
9321         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9322         * m4/opendir.m4: New file.
9323         * m4/readdir.m4: New file.
9324         * m4/rewinddir.m4: New file.
9325         * m4/closedir.m4: New file.
9326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9327         REPLACE_CLOSEDIR here.
9328         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9329         readdir, rewinddir are declared.
9330         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9331         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9332         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9333         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9334         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9335         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9336         * modules/opendir: New file.
9337         * modules/readdir: New file.
9338         * modules/rewinddir: New file.
9339         * modules/closedir: New file.
9340         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9341         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9342         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9343         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9344         * NEWS: Mention the 'fchdir' change.
9345
9346 2011-09-11  Bruno Haible  <bruno@clisp.org>
9347
9348         asm-underscore.m4: Support for MSVC.
9349         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9350         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9351
9352 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9353
9354         Doc about crypt functions.
9355         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9356         needing for _GNU_SOURCE to get crypt.
9357         * doc/posix-functions/encrypt.texi: Likewise.
9358         * doc/posix-functions/setkey.texi: Likewise.
9359
9360 2011-09-11  Bruno Haible  <bruno@clisp.org>
9361
9362         doc: Update regarding MSVC 9.
9363         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9364         tested".
9365         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9366         * doc/posix-headers/*.texi: Likewise.
9367         * doc/pastposix-functions/*.texi: Likewise.
9368         * doc/glibc-functions/*.texi: Likewise.
9369         * doc/glibc-headers/*.texi: Likewise.
9370
9371 2011-09-11  Bruno Haible  <bruno@clisp.org>
9372
9373         unistd et al.: Don't assume <unistd.h> exists.
9374         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9375         does not exist.
9376         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9377         exist. But include <stdlib.h>.
9378         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9379         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9380         symlink() does not exist.
9381         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9382         include <io.h> instead.
9383         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9384         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9385         include <direct.h> instead.
9386         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9387         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9388         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9389         <io.h> instead.
9390         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9391         correctly if the system does not have hard links.
9392         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9393         <direct.h> instead.
9394         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9395         it when looking for function declarations.
9396         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9397         <direct.h> and <io.h> instead.
9398         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9399
9400 2011-09-11  Bruno Haible  <bruno@clisp.org>
9401
9402         strcase: Support for MSVC.
9403         * modules/strcase (Status, Notice): Remove obsoletion mark.
9404         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9405         * doc/posix-functions/strncasecmp.texi: Likewise.
9406
9407         strings: Don't assume <strings.h> exists.
9408         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9409         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9410         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9411         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9412
9413 2011-09-11  Bruno Haible  <bruno@clisp.org>
9414
9415         dirent: Don't assume <dirent.h> exists.
9416         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9417         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9418         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9419         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9420
9421 2011-09-11  Bruno Haible  <bruno@clisp.org>
9422
9423         Fix wint_t on MSVC.
9424         * lib/wchar.in.h (wint_t): On MSVC, override it.
9425         * lib/wctype.in.h (wint_t): Likewise.
9426         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9427         MSVC.
9428         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9429         * doc/posix-headers/wctype.texi: Likewise.
9430
9431 2011-09-11  Bruno Haible  <bruno@clisp.org>
9432
9433         sys_types: Fix typo.
9434         * lib/sys_types.in.h: Fix typo in comment.
9435         Reported by Paul Eggert.
9436
9437         Support for MSVC compiler: Ensure size_t gets defined.
9438         * modules/strings (Depends-on): Add 'sys_types'.
9439         * modules/sys_uio (Depends-on): Likewise.
9440         * lib/sys_uio.in.h: Update comment.
9441
9442         C++ tests for module 'sys_types'.
9443         * modules/sys_types-c++-tests: New file.
9444         * tests/test-sys_types-c++.cc: New file.
9445
9446         Tests for module 'sys_types'.
9447         * modules/sys_types-tests: New file.
9448         * tests/test-sys_types.c: New file.
9449
9450         New module 'sys_types'.
9451         * lib/sys_types.in.h: New file.
9452         * m4/sys_types_h.m4: New file.
9453         * modules/sys_types: New file.
9454         * doc/posix-headers/sys_types.texi: Mention the new module and the
9455         size_t problem on MSVC 9.
9456
9457 2011-09-11  Bruno Haible  <bruno@clisp.org>
9458
9459         Support for MSVC compiler: Avoid division by a literal 0.
9460         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9461         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9462         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9463         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9464         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9465         * tests/infinity.h: New file.
9466         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9467         on MSVC.
9468         * tests/test-ceilf1.c: Include infinity.h.
9469         (main): Use Infinityf.
9470         * tests/test-ceil1.c: Include infinity.h.
9471         (main): Use Infinityd.
9472         * tests/test-ceill.c: Include infinity.h.
9473         (main): Use Infinityl.
9474         * tests/test-dprintf-posix.c: Include infinity.h.
9475         (test_function): Use Infinityd.
9476         * tests/test-floorf1.c: Include infinity.h.
9477         (main): Use Infinityf.
9478         * tests/test-floor1.c: Include infinity.h.
9479         (main): Use Infinityd.
9480         * tests/test-floorl.c: Include infinity.h.
9481         (main): Use Infinityl.
9482         * tests/test-fprintf-posix.c: Include infinity.h.
9483         (test_function): Use Infinityd.
9484         * tests/test-frexp.c: Include infinity.h.
9485         (main): Use Infinityd.
9486         * tests/test-frexpl.c: Include infinity.h.
9487         (main): Use Infinityl.
9488         * tests/test-isfinite.c: Include infinity.h.
9489         (test_isfinitef): Use Infinityf.
9490         (test_isfinited): Use Infinityd.
9491         (test_isfinitel): Use Infinityl.
9492         * tests/test-isinf.c: Include infinity.h.
9493         (test_isinff): Use Infinityf.
9494         (test_isinfd): Use Infinityd.
9495         (test_isinfl): Use Infinityl.
9496         * tests/test-isnan.c: Include infinity.h.
9497         (test_float): Use Infinityf.
9498         (test_double): Use Infinityd.
9499         (test_long_double): Use Infinityl.
9500         * tests/test-isnanf.h: Include infinity.h.
9501         (main): Use Infinityf.
9502         * tests/test-isnand.h: Include infinity.h.
9503         (main): Use Infinityd.
9504         * tests/test-isnanl.h: Include infinity.h.
9505         (main): Use Infinityl.
9506         * tests/test-ldexpl.c: Include infinity.h.
9507         (main): Use Infinityl.
9508         * tests/test-printf-posix.h: Include infinity.h.
9509         (test_function): Use Infinityd.
9510         * tests/test-roundf1.c: Include infinity.h.
9511         (main): Use Infinityf.
9512         * tests/test-round1.c: Include infinity.h.
9513         (main): Use Infinityd.
9514         * tests/test-roundl.c: Include infinity.h.
9515         (main): Use Infinityl.
9516         * tests/test-signbit.c: Include infinity.h.
9517         (test_signbitf): Use Infinityf.
9518         (test_signbitd): Use Infinityd.
9519         (test_signbitl): Use Infinityl.
9520         * tests/test-snprintf-posix.h: Include infinity.h.
9521         (test_function): Use Infinityd, Infinityl.
9522         * tests/test-sprintf-posix.h: Include infinity.h.
9523         (test_function): Use Infinityd, Infinityl.
9524         * tests/test-truncf1.c: Include infinity.h.
9525         (main): Use Infinityf.
9526         * tests/test-trunc1.c: Include infinity.h.
9527         (main): Use Infinityd.
9528         * tests/test-truncl.c: Include infinity.h.
9529         (main): Use Infinityl.
9530         * tests/test-vasnprintf-posix.c: Include infinity.h.
9531         (test_function): Use Infinityd, Infinityl.
9532         * tests/test-vasprintf-posix.c: Include infinity.h.
9533         (test_function): Use Infinityd, Infinityl.
9534         * modules/ceilf-tests (Files): Add tests/infinity.h.
9535         * modules/ceil-tests (Files): Likewise.
9536         * modules/ceill-tests (Files): Likewise.
9537         * modules/dprintf-posix-tests (Files): Likewise.
9538         * modules/floorf-tests (Files): Likewise.
9539         * modules/floor-tests (Files): Likewise.
9540         * modules/floorl-tests (Files): Likewise.
9541         * modules/fprintf-posix-tests (Files): Likewise.
9542         * modules/frexp-tests (Files): Likewise.
9543         * modules/frexp-nolibm-tests (Files): Likewise.
9544         * modules/frexpl-tests (Files): Likewise.
9545         * modules/frexpl-nolibm-tests (Files): Likewise.
9546         * modules/isfinite-tests (Files): Likewise.
9547         * modules/isinf-tests (Files): Likewise.
9548         * modules/isnan-tests (Files): Likewise.
9549         * modules/isnanf-tests (Files): Likewise.
9550         * modules/isnanf-nolibm-tests (Files): Likewise.
9551         * modules/isnand-tests (Files): Likewise.
9552         * modules/isnand-nolibm-tests (Files): Likewise.
9553         * modules/isnanl-tests (Files): Likewise.
9554         * modules/isnanl-nolibm-tests (Files): Likewise.
9555         * modules/ldexpl-tests (Files): Likewise.
9556         * modules/printf-posix-tests (Files): Likewise.
9557         * modules/roundf-tests (Files): Likewise.
9558         * modules/round-tests (Files): Likewise.
9559         * modules/roundl-tests (Files): Likewise.
9560         * modules/signbit-tests (Files): Likewise.
9561         * modules/snprintf-posix-tests (Files): Likewise.
9562         * modules/sprintf-posix-tests (Files): Likewise.
9563         * modules/truncf-tests (Files): Likewise.
9564         * modules/trunc-tests (Files): Likewise.
9565         * modules/truncl-tests (Files): Likewise.
9566         * modules/vasnprintf-posix-tests (Files): Likewise.
9567         * modules/vasprintf-posix-tests (Files): Likewise.
9568         * modules/vdprintf-posix-tests (Files): Likewise.
9569         * modules/vfprintf-posix-tests (Files): Likewise.
9570         * modules/vprintf-posix-tests (Files): Likewise.
9571         * modules/vsnprintf-posix-tests (Files): Likewise.
9572         * modules/vsprintf-posix-tests (Files): Likewise.
9573         * modules/xprintf-posix-tests (Files): Likewise.
9574
9575 2011-09-11  Bruno Haible  <bruno@clisp.org>
9576
9577         Ensure pid_t gets defined.
9578         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9579         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9580         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9581         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9582         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9583         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9584         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9585         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9586         * tests/test-fcntl-h.c: Check that pid_t is defined.
9587         * tests/test-sched.c: Likewise.
9588         * tests/test-termios.c: Likewise.
9589         * tests/test-time.c: Likewise.
9590         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9591         * doc/posix-headers/signal.texi: Likewise.
9592         * doc/posix-headers/sys_types.texi: Likewise.
9593         * doc/posix-headers/time.texi: Likewise.
9594
9595 2011-09-11  Bruno Haible  <bruno@clisp.org>
9596
9597         acl: Fix compilation on Solaris 10 (older version).
9598         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9599         of ACE_EVERYONE.
9600         * lib/set-mode-acl.c (qset_acl): Likewise.
9601         Reported by Christian Jullien <eligis@orange.fr>.
9602
9603 2011-09-10  Bruno Haible  <bruno@clisp.org>
9604
9605         iconv, unsetenv: Add support for MSVC compiler.
9606         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9607         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9608
9609 2011-09-10  Bruno Haible  <bruno@clisp.org>
9610
9611         *printf: Add support for MSVC compiler.
9612         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9613         handles the exception caused by the %n directive. When cross-compiling,
9614         guess no on native Windows.
9615         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9616         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9617         emulate it through vsnprintf.
9618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9619         * doc/posix-functions/dprintf.texi: Update documentation regarding
9620         MSVC 9.
9621         * doc/posix-functions/fprintf.texi: Likewise.
9622         * doc/posix-functions/printf.texi: Likewise.
9623         * doc/posix-functions/snprintf.texi: Likewise.
9624         * doc/posix-functions/sprintf.texi: Likewise.
9625         * doc/posix-functions/swprintf.texi: Likewise.
9626         * doc/posix-functions/vdprintf.texi: Likewise.
9627         * doc/posix-functions/vfprintf.texi: Likewise.
9628         * doc/posix-functions/vprintf.texi: Likewise.
9629         * doc/posix-functions/vsnprintf.texi: Likewise.
9630         * doc/posix-functions/vsprintf.texi: Likewise.
9631         * doc/glibc-functions/asprintf.texi: Likewise.
9632         * doc/glibc-functions/obstack_printf.texi: Likewise.
9633         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9634         * doc/glibc-functions/vasprintf.texi: Likewise.
9635
9636 2011-09-10  Bruno Haible  <bruno@clisp.org>
9637
9638         nocrash: Add support for native Windows.
9639         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9640
9641 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9642             Bruno Haible  <bruno@clisp.org>
9643
9644         absolute-header, include-next: Add support for MSVC compiler.
9645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9646         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9647         directory separator in #line directives.
9648         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9649         recognize also backslash as directory separator in #line directives.
9650
9651 2011-09-08  Jim Meyering  <meyering@redhat.com>
9652
9653         maint.mk: mark the post-release commit log with "maint: " prefix
9654         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9655         one-line commit-log summary.
9656
9657 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9658             Bruno Haible  <bruno@clisp.org>
9659
9660         Doc about crypt functions.
9661         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9662         systems.
9663         * doc/posix-functions/encrypt.texi: Likewise.
9664         * doc/posix-functions/setkey.texi: Likewise.
9665
9666 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9667
9668         * lib/gc.h: Fix copyright header.
9669
9670 2011-09-07  Bruno Haible  <bruno@clisp.org>
9671
9672         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9673         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9674         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9675
9676 2011-09-07  Bruno Haible  <bruno@clisp.org>
9677
9678         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9679         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9680         * lib/freopen.c: Likewise.
9681         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9682         * lib/lstat.c: Likewise.
9683         * lib/stat.c: Likewise.
9684         * lib/open.c: Use different syntax for include of <fcntl.h>.
9685         * lib/openat.c: Include fcntl.h again, explicitly.
9686
9687 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9688
9689         parse-datetime: document the newly accepted format
9690         * doc/parse-datetime.texi (Combined date and time of day items):
9691         New section.
9692
9693 2011-09-06  Bruno Haible  <bruno@clisp.org>
9694
9695         acl: Fix a test failure on newer Solaris 10 with ZFS.
9696         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9697         ENOSYS as no ACL.
9698         Reported by Jim Meyering.
9699
9700 2011-09-06  Bruno Haible  <bruno@clisp.org>
9701
9702         acl: Update for AIX >= 5.3 with NFS.
9703         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9704         ENOSYS as no ACL.
9705
9706         acl: Fix a test failure on AIX >= 5.3 with NFS.
9707         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9708         as no ACL.
9709
9710 2011-09-06  Bruno Haible  <bruno@clisp.org>
9711
9712         acl: Fix a test failure on IRIX 6.5 with NFS.
9713         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9714         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9715         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9716         * lib/copy-acl.c (qcopy_acl): Likewise.
9717
9718 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9719
9720         openat: port to AIX 7.1 with large files
9721         AIX 7.1 does a "#define openat open64at" if large files are in use,
9722         so we can't simply #undef openat.  Use the orig_openat trick (similar
9723         to orig_open in lib/open.c) to work around the problem.  Problem
9724         reported by Kevin Brott for GNU tar, in the thread containing
9725         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9726         * lib/openat.c (__need_system_fcntl_h): Define first.
9727         Include <fcntl.h> and <sys/types.h> before undefining.
9728         (orig_openat) [HAVE_OPENAT]: New inline function.
9729         (openat) [HAVE_OPENAT]: Do not undef.
9730         (rpl_openat): Use orig_openat, not openat.
9731
9732 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9733             Bruno Haible  <bruno@clisp.org>
9734
9735         acl: Avoid errors on NonStop Kernel.
9736         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9737         ENOTSUP errors.
9738
9739 2011-09-05  Bruno Haible  <bruno@clisp.org>
9740
9741         acl: Clean up Solaris code.
9742         * lib/acl-internal.h: Remove no-op #if.
9743         * lib/file-has-acl.c: Likewise.
9744         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9745         * lib/copy-acl.c (qcopy_acl): Likewise.
9746
9747 2011-09-05  Bruno Haible  <bruno@clisp.org>
9748
9749         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9750         binaries built on the original Solaris 10.
9751         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9752         trivial.
9753
9754 2011-09-05  Bruno Haible  <bruno@clisp.org>
9755
9756         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9757         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9758         10.
9759         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9760         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9761         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9762         instead of acl_get, facl_get, acl_set, facl_set.
9763
9764 2011-09-05  Bruno Haible  <bruno@clisp.org>
9765
9766         copy-file: Try unit tests on more file systems.
9767         * tests/test-copy-file-1.sh: New file.
9768         * tests/test-copy-file-2.sh: New file.
9769         * modules/copy-file-tests (Files): Add them.
9770         (Makefile.am): Add them to TESTS.
9771
9772         acl: Try unit tests on more file systems.
9773         * tests/test-file-has-acl-1.sh: New file.
9774         * tests/test-file-has-acl-2.sh: New file.
9775         * tests/test-set-mode-acl-1.sh: New file.
9776         * tests/test-set-mode-acl-2.sh: New file.
9777         * tests/test-copy-acl-1.sh: New file.
9778         * tests/test-copy-acl-2.sh: New file.
9779         * modules/acl-tests (Files): Add them.
9780         (Makefile.am): Add them to TESTS.
9781
9782 2011-09-04  Bruno Haible  <bruno@clisp.org>
9783
9784         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9785         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9786         10.
9787         (OLD_ALLOW, OLD_DENY): New macros.
9788         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9789         ACE_ACCESS_ALLOWED_ACE_TYPE.
9790         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9791         ACE_ACCESS_DENIED_ACE_TYPE.
9792         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9793         (NEW_ACE_EXECUTE): Fix value.
9794         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9795         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9796         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9797         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9798         NEW_ACE_SYNCHRONIZE): New macros.
9799         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9800         instead of acl_fromtext, acl_set, facl_set.
9801         Fixes a coreutils/tests/cp/perm failure.
9802
9803 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9804
9805         openat: test for fstatat (..., 0) bug
9806         Further testing with tar suggests that fstatat (..., 0)
9807         does not work in general, on AIX 7.1; see
9808         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9809         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9810         replacement fstatat (which is what older AIX releases were using
9811         anyway).
9812         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9813         use is now changed to orig_fstatat.  This was probably the right
9814         thing to do anyway.
9815         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9816         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9817         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9818         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9819         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9820         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9821         if the bug is found.
9822
9823         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9824         This tests for another fstatat bug on AIX 7.1:
9825         fstatat (AT_FDCWD, ..., 0) does not work.  See
9826         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9827         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9828         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9829         (rpl_fstatat): Adjust so that it works around either (or both)
9830         bugs if present.
9831         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9832
9833 2011-09-03  Karl Berry  <karl@gnu.org>
9834
9835         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9836         in index entries.
9837
9838 2011-09-02  Bruno Haible  <bruno@clisp.org>
9839
9840         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9841         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9842         values of AR, ARFLAGS, RANLIB.
9843         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9844
9845 2011-09-02  Bruno Haible  <bruno@clisp.org>
9846
9847         Find 'ar' program that fits with --host argument.
9848         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9849
9850 2011-09-02  Bruno Haible  <bruno@clisp.org>
9851
9852         tests: init.sh: Support any non-GNU diff.
9853         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9854         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9855         Solaris 8.
9856
9857 2011-09-02  Bruno Haible  <bruno@clisp.org>
9858
9859         tests: init.sh: work also with any non-GNU diff that supports -u
9860         * tests/init.sh: Relax check for diff -u support.
9861         Rather than checking for GNU diff via --version, simply check
9862         for support for -u itself.  Useful at least on OpenBSD 4.9,
9863         AIX 7.1, IRIX 6.5, and Solaris 10.
9864
9865 2011-09-01  Bruno Haible  <bruno@clisp.org>
9866
9867         strtoimax, strtoumax: Document problem on HP-UX 11.
9868         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9869         * doc/posix-functions/strtoumax.texi: Likewise.
9870
9871 2011-09-01  Bruno Haible  <bruno@clisp.org>
9872
9873         strtoumax: Avoid link error on OSF/1 with DTK cc.
9874         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9875         defined as a function.
9876         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9877         strtoumax is defined, not whether it is declared.
9878
9879 2011-09-01  Bruno Haible  <bruno@clisp.org>
9880
9881         strtoimax: Avoid link error on OSF/1 with DTK cc.
9882         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9883         defined as a function.
9884         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9885         strtoimax is defined, not whether it is declared.
9886
9887 2011-09-01  Bruno Haible  <bruno@clisp.org>
9888
9889         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9890         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9891         as a function.
9892         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9893         whether it is declared.
9894
9895 2011-09-01  Bruno Haible  <bruno@clisp.org>
9896
9897         imaxabs: Avoid link error on OSF/1 with DTK cc.
9898         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9899         as a function.
9900         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9901         whether it is declared.
9902
9903 2011-09-01  Bruno Haible  <bruno@clisp.org>
9904
9905         Tests for module 'strtoumax'.
9906         * modules/strtoumax-tests: New file.
9907         * tests/test-strtoumax.c: New file.
9908
9909         Tests for module 'strtoimax'.
9910         * modules/strtoimax-tests: New file.
9911         * tests/test-strtoimax.c: New file.
9912
9913         Tests for module 'imaxdiv'.
9914         * modules/imaxdiv-tests: New file.
9915         * tests/test-imaxdiv.c: New file.
9916
9917         Tests for module 'imaxabs'.
9918         * modules/imaxabs-tests: New file.
9919         * tests/test-imaxabs.c: New file.
9920
9921 2011-09-01  Bruno Haible  <bruno@clisp.org>
9922
9923         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9924         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9925         pthread_create.
9926
9927 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         openat: work around AIX 7.1 fstatat issue
9930         This should fix the problem that was not properly fixed
9931         in the previous change, dated 2011-08-30.
9932         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9933         __need_system_stat_h defined.
9934         (orig_fstatat) [HAVE_FSTATAT]: New function.
9935         (rpl_fstatat): Go back to the old way of doing things,
9936         except call orig_fstatat instead of fstatat.
9937         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9938         Remove unnecessary check whether fstatat fills in st_size etc.
9939
9940 2011-09-01  Bruno Haible  <bruno@clisp.org>
9941
9942         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9943         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9944         just include the system's header.
9945
9946 2011-08-31  Jim Meyering  <meyering@redhat.com>
9947
9948         tests: avoid spurious assertion failure in test-float.c on ppc64
9949         * tests/test-float.c (test_long_double): Comment out an assertion,
9950         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9951         with gcc-4.4.4.
9952
9953         maint: indent with spaces, not TABs
9954         I need to get in the habit of running gnulib's "make check".
9955         Both of these would have been caught.
9956         * m4/largefile.m4: Indent with spaces, not TABs.
9957         * lib/parse-datetime.y (iso_8601_time): Likewise.
9958         Spotted by Pádraig Brady.
9959
9960         test-parse-datetime.c: accommodate a relatively strict gcc warning
9961         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9962         to avoid a warning from gcc's -Werror=missing-declarations.
9963         Insert a few spaces-before-funcall-parenthesis.
9964
9965 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9966
9967         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9968         The parser now accepts ISO 8601 date-time strings with "T" as the
9969         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9970         with a space between the date and time strings.  Now it also parses
9971         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9972         variants like "2004-02-29T16:21:42.333-07:00"
9973         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9974         of day representation using the 'T' separator character.
9975         * doc/parse-datetime.texi (General date syntax): replace use of
9976         deprecated --iso-8601 option with --rfc-3339 in example of date
9977         command output formats that can be parsed.
9978         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9979         lib/parse-datetime.y.
9980         (gmt_offset): New function.
9981         (main): Add additional test cases to validate ISO8601 extended
9982         date and time of day parsing.
9983
9984 2011-08-31  Bruno Haible  <bruno@clisp.org>
9985
9986         freopen: Documentation.
9987         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9988         name.
9989         Reported by Claudio Bley <claudio.bley@gmail.com>.
9990
9991 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9992
9993         freopen: Don't crash if the filename argument is NULL.
9994         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9995         NULL.
9996
9997 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9998
9999         openat: work around AIX 7.1 fstatat bug
10000         Problem reported by Kevin Brott for GNU tar, in the thread containing
10001         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10002         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10003         FSTATAT_ST_SIZE_ETC_BROKEN.
10004         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10005         rpl_fstatat.
10006         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10007         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10008         AC_CHECK_FUNCS_ONCE for fstatat.
10009         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10010         fchmodat, mkdirat, openat and unlinkat.
10011
10012 2011-08-30  Bruno Haible  <bruno@clisp.org>
10013
10014         Avoid endless recursions if config.h includes some header files.
10015         * lib/fopen.c (__need_FILE): Define already before including config.h.
10016         * lib/freopen.c (__need_FILE): Likewise.
10017         * lib/open.c (__need_system_fcntl_h): Likewise.
10018         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10019         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10020         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10021
10022 2011-08-25  Karl Berry  <karl@gnu.org>
10023
10024         * config/srclist.txt (ylwrap): new try.
10025         * build-aux/ylwrap: new file.
10026
10027 2011-08-23  Bruno Haible  <bruno@clisp.org>
10028
10029         tmpdir: Use a good default directory on native Windows.
10030         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10031         (P_tmpdir): Default to _P_tmpdir on native Windows.
10032         (path_search): On native Windows, try the value returned by GetTempPath
10033         before trying P_tmpdir.
10034         * modules/tmpdir (Depends-on): Add pathmax.
10035         Suggested by John Darrington <john@darrington.wattle.id.au>.
10036
10037 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10038
10039         doc: fix typo in README-release
10040         * top/README-release: Capitalize first word of a sentence.
10041
10042 2011-08-19  Jim Meyering  <meyering@redhat.com>
10043
10044         fts: do not exhaust memory when processing million-entry directories
10045         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10046         directory would require about 256*N bytes of memory.  Thus, it was
10047         easy to construct a directory too large to be processed by any of
10048         those tools.  With this change, fts' maximum memory utilization is
10049         now limited to around 30MB.
10050         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10051         (fts_read): When we've processed the final entry (i.e., when
10052         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10053         using the parent entry to read any remaining entries.  Dispatch
10054         depending on what fts_build returns:
10055         - NULL+stop, aka failure: stop
10056         - NULL otherwise: move up in the dir hierarchy
10057         - non-NULL: handle this new entry
10058         (fts_build): Declare and use new local, continue_readdir.
10059         Prepare to be called from fts_read, when the entries
10060         from a partially-read directory have just been exhausted.
10061         In that case, we'll skip the opendir and instead use the parent's
10062         fts_dirp and derive dir_fd from that.
10063         Finally, in the readdir loop, if we read max_entries entries,
10064         exit the loop ensuring *not* to call closedir.  This is required
10065         so that fts_dirp can be reused on a subsequent call.
10066         Prompted by Ben England's report of memory exhaustion in find
10067         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10068
10069         maint: fts: move decl of `dp' down into while loop; split a long line
10070         * lib/fts.c (fts_build): No semantic change.
10071
10072         fts: add/use new struct member, fts_dirp
10073         We are about to use this to manage any directory with
10074         too many entries to read all of them into memory at once.
10075         To do that, we'll need to save the DIR* pointer in each
10076         affected FTSENT struct.
10077         * lib/fts_.h: Include <dirent.h>.
10078         (struct FTSENT) [fts_dirp]: New member.
10079         * lib/fts.c (closedir_and_clear): Define.
10080         Use it in place of closedir so that we are sure to
10081         clear the new fts_dirp member when done with it.
10082         (fts_alloc): Initialize the new member.
10083         (fts_lfree): Free, if needed.
10084
10085         maint: fts: give __opendir2 a new parameter and rename
10086         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10087         than surreptitiously using sole caller's "dir_fd".
10088         (fts_opendir): Rename from __opendir2.
10089
10090         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10091         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10092
10093         maint: fts.c: correct off-by-one indentation
10094         * lib/fts.c (fts_build): Correct indentation, change style
10095         of a couple of block comments, and bracing style.
10096
10097         maint: fts.c: move __opendir2 #define "up" out of function body
10098         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10099
10100         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10101         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10102         out for a long time and besides was useful only on BSD systems.
10103
10104 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10105
10106         regex: port to Stratus OpenVOS
10107         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10108         define to empty, rather than attempting nonportable optimizations.
10109         Problem reported by Paul Green in:
10110         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10111         and fix suggested by Eric Blake in:
10112         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10113
10114 2011-08-17  Eric Blake  <eblake@redhat.com>
10115
10116         getcwd: fix test failures on mingw
10117         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10118         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10119         test if long directory cannot be created, and allow mingw errno.
10120
10121         getcwd-lgpl: fix m4 to match relaxed test for BSD
10122         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10123         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10124         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10125         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10126         signature problem.
10127
10128         getcwd: fix compilation on mingw64
10129         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10130         getcwd.
10131         Reported by Marc-André Lureau.
10132
10133         pipe2: silence compiler warning
10134         * lib/pipe2.c (pipe2): Hide label if it is not used.
10135
10136 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10137
10138         relocatable-prog: fix link error
10139         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10140         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10141         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10142         into modules/relocatable-lib without noticing that
10143         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10144         also needs to build relocatable.c.
10145
10146 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10147
10148         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10150         shell code: it contained a 'break' that was not in a loop.
10151         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10152         via a shell-language loop; this may have been true in old Autoconf
10153         versions, but it's not true in Autoconf 2.68.  I found this bug
10154         when testing coreutils git on Solaris 8, whose shell complains
10155         about the syntax error.
10156
10157 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10158
10159         * lib/base64.c: Fix comment to reference RFC 4648.
10160         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10161         <gvtulder@gmail.com>.
10162
10163 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10164
10165         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10166
10167         po/Makefile.in.in: fix make -q problem
10168         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10169         rule, since there's no file named 'check-macro-version' and its
10170         use as a file breaks make -q.
10171         (all): Don't depend on check-macro-version.
10172         (CHECK_MACRO_VERSION): New macro.
10173         (stamp-po): Use it.
10174
10175         configmake: fix make -q problem
10176         * modules/configmake (configmake.h): Update configmake.h's time stamp
10177         even if the file does not change.  Otherwise, 'make -q' fails.
10178         Problem reported by Simon Josefsson in
10179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10180
10181 2011-08-11  Jim Meyering  <meyering@redhat.com>
10182
10183         git-version-gen: correct the advice in a comment
10184         * build-aux/git-version-gen: Correct comment.
10185         Don't recommend to list .tarball-version in .gitignore.
10186
10187 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10188
10189         base64: fix off-by-one buffer size bug
10190         Problem and (trivial) fix reported by Gijs van Tulder in
10191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10192         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10193         * tests/test-base64.c (main): Catch the bug.
10194
10195 2011-08-10  Eric Blake  <eblake@redhat.com>
10196
10197         closein: correct comments
10198         * lib/closein.c (close_stdin): Improve comments.
10199
10200 2011-08-09  Bruno Haible  <bruno@clisp.org>
10201
10202         More tests for 'fseeko'.
10203         * tests/test-fseeko3.c: New file, from Eric Blake.
10204         * tests/test-fseeko3.sh: New file.
10205         * modules/fseeko-tests (Files): Add them.
10206         (TESTS): Add test-fseeko3.sh.
10207         (check_PROGRAMS): Add test-fseeko3.
10208
10209 2011-08-09  Eric Blake  <eblake@redhat.com>
10210
10211         fseeko: remove unneeded hack
10212         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10213
10214         fseeko: fix bug on glibc
10215         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10216         Reported by John W. Eaton.
10217
10218 2011-08-08  Bruno Haible  <bruno@clisp.org>
10219
10220         unictype/base: Fix interoperability with preinstalled libunistring.
10221         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10222         Reported by Simon Josefsson.
10223
10224 2011-08-08  Bruno Haible  <bruno@clisp.org>
10225
10226         iswblank: Detect declaration correctly.
10227         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10228         AC_CHECK_DECLS invocation.
10229
10230 2011-08-08  Bruno Haible  <bruno@clisp.org>
10231
10232         tcgetsid: Detect declaration correctly.
10233         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10234         AC_CHECK_DECLS invocation.
10235         Reported by Simon Josefsson.
10236
10237 2011-08-08  Eric Blake  <eblake@redhat.com>
10238
10239         largefile: fix typo that regressed large file support
10240         * modules/largefile (configure.ac-early): Fix section name.
10241
10242 2011-08-06  Karl Berry  <karl@gnu.org>
10243
10244         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10245         a separate module.
10246
10247 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10248
10249         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10250         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10251         get prototype for free.
10252
10253 2011-08-04  Bruno Haible  <bruno@clisp.org>
10254
10255         Tests for module 'pathmax'.
10256         * modules/pathmax-tests: New file.
10257         * tests/test-pathmax.c: New file.
10258
10259         canonicalize-lgpl: Support larger filenames on the Hurd.
10260         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10261         Reported by Paul Eggert.
10262
10263         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10264         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10265         * lib/chdir-long.h: Include pathmax.h.
10266         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10267         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10268         (PATH_MAX): Remove code that is done by pathmax.h.
10269         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10270         * lib/tmpfile.c: Add a comment.
10271         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10272         * modules/chdir-long (Depends-on): Add pathmax.
10273         * modules/getcwd (Depends-on): Add pathmax.
10274         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10275         is not defined.
10276         * doc/posix-headers/limits.texi: Mention the pathmax module.
10277         * NEWS: Mention the change.
10278
10279 2011-08-02  Bruno Haible  <bruno@clisp.org>
10280
10281         pthread_sigmask: Actually use results of gl_THREADLIB.
10282         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10283         gl_THREADLIB, not gl_[]THREADLIB.
10284         Reported by Eric Blake.
10285
10286 2011-08-02  Jim Meyering  <meyering@redhat.com>
10287
10288         maint.mk: relax the default _gl_TS_function_match regexp
10289         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10290         space between function name and "(" in an "extern" declaration.
10291         That would fail to match a decl with no space there: extern void foo();
10292
10293 2011-07-31  Iain Nicol  <iain@thenicols.net>
10294
10295         git-version-gen: document that EXTRA_DIST must include .version
10296         * build-aux/git-version-gen: In the how-to-use comment, document
10297         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10298         will fail when run from an unpacked distribution tarball.
10299
10300 2011-08-01  Bruno Haible  <bruno@clisp.org>
10301
10302         wctype-h: Fix last change.
10303         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10304         REPLACE_TOWLOWER to 0.
10305         Reported by Sam Steingold <sds@gnu.org>.
10306
10307 2011-07-31  Bruno Haible  <bruno@clisp.org>
10308
10309         frexpl: Update autoconf test.
10310         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10311         according to changes of 2011-06-20.
10312
10313 2011-07-31  Bruno Haible  <bruno@clisp.org>
10314
10315         sys_utsname: Add support for Minix.
10316         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10317         <sys/utsname.h>.
10318         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10319         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10320
10321 2011-07-31  Bruno Haible  <bruno@clisp.org>
10322
10323         strings: Add support for Minix.
10324         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10325         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10326         * doc/posix-headers/strings.texi: Document the Minix problem.
10327
10328 2011-07-31  Bruno Haible  <bruno@clisp.org>
10329
10330         wctype-h: Add support for Minix.
10331         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10332         REPLACE_TOWLOWER.
10333         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10334         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10335         REPLACE_ISWCNTRL.
10336
10337 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10338
10339         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10340         This is a performance improvement for 64-bit hosts: it causes the
10341         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10342
10343 2011-07-31  Bruno Haible  <bruno@clisp.org>
10344
10345         stdioext: Add support for Minix.
10346         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10347         * lib/fpurge.c (fpurge): Likewise.
10348         * lib/freadahead.c (freadahead): Likewise.
10349         * lib/freadable.c (freadable): Likewise.
10350         * lib/freading.c (freading): Likewise.
10351         * lib/freadptr.c (freadptr): Likewise.
10352         * lib/freadseek.c (freadptrinc): Likewise.
10353         * lib/fseeko.c (rpl_fseeko): Likewise.
10354         * lib/fseterr.c (fseterr): Likewise.
10355         * lib/fwritable.c (fwritable): Likewise.
10356         * lib/fwriting.c (fwriting): Likewise.
10357         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10358         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10359
10360 2011-07-31  Bruno Haible  <bruno@clisp.org>
10361
10362         errno: Port to Minix.
10363         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10364         ECONNABORTED are defined.
10365         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10366         GNULIB_defined_ECONNABORTED): New macros.
10367         * lib/strerror-override.h (strerror_override): Test also
10368         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10369         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10370         ECONNABORTED.
10371         * doc/posix-headers/errno.texi: Mention the Minix problem.
10372
10373 2011-07-31  Bruno Haible  <bruno@clisp.org>
10374
10375         Work around declaration collisions on Minix.
10376         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10377         defined, set REPLACE_MBSINIT.
10378         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10379         defined, set REPLACE_MBRTOWC.
10380         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10381         set REPLACE_MBRLEN.
10382         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10383         defined, set REPLACE_MBSRTOWCS.
10384         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10385         defined, set REPLACE_WCRTOMB.
10386         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10387         defined, set REPLACE_WCSRTOMBS.
10388
10389 2011-07-31  Bruno Haible  <bruno@clisp.org>
10390
10391         Add support for Minix with ACK compiler.
10392         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10393         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10394         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10395
10396 2011-07-31  Bruno Haible  <bruno@clisp.org>
10397
10398         Documentation about Minix.
10399         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10400         * doc/glibc-headers/*.texi: Likewise.
10401         * doc/posix-functions/*.texi: Likewise.
10402         * doc/glibc-functions/*.texi: Likewise.
10403
10404 2011-07-31  Bruno Haible  <bruno@clisp.org>
10405
10406         snippet/warn-on-use: Fix indentation.
10407         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10408
10409 2011-07-25  Jim Meyering  <meyering@redhat.com>
10410
10411         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10412         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10413         commands.
10414
10415 2011-07-27  Jim Meyering  <meyering@redhat.com>
10416
10417         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10418         * top/maint.mk (gl_extract_significant_defines_): Now that
10419         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10420         gnulib/lib/signal.in.h, and now that we recommend to
10421         define-if-undefined those two symbols in application code,
10422         we must filter them out of the "significant" list.
10423         This avoids a "make syntax-check" failure in coreutils.
10424
10425 2011-07-26  Eric Blake  <eblake@redhat.com>
10426
10427         warnings: add comments about previous patch
10428         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10429         * m4/include_next.m4: Likewise.
10430         * m4/warn-on-use.m4: Likewise.
10431         * m4/warnings.m4: Likewise, and simplify use.
10432         Suggested by Stefano Lattarini.
10433
10434         include-next, warnings: support older autoconf
10435         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10436         AS_VAR_PUSHDEF in a way that works with older autoconf.
10437         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10438         Reported by Daniel P. Berrange.
10439
10440 2011-07-25  Bruno Haible  <bruno@clisp.org>
10441
10442         fseek, ftell: Fix doc.
10443         * doc/posix-functions/fseek.texi: Reword statement about
10444         AC_SYS_LARGEFILE.
10445         * doc/posix-functions/ftell.texi: Likewise.
10446
10447 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10448             Bruno Haible  <bruno@clisp.org>
10449
10450         Add dependencies to the 'largefile' module.
10451         * modules/fopen (Depends-on): Add 'largefile'.
10452         * modules/freopen (Depends-on): Likewise.
10453         * modules/fseeko (Depends-on): Likewise.
10454         * modules/ftello (Depends-on): Likewise.
10455         * modules/glob (Depends-on): Likewise.
10456         * modules/lseek (Depends-on): Likewise.
10457         * modules/lstat (Depends-on): Likewise.
10458         * modules/mkostemp (Depends-on): Likewise.
10459         * modules/mkostemps (Depends-on): Likewise.
10460         * modules/mkstemp (Depends-on): Likewise.
10461         * modules/mkstemps (Depends-on): Likewise.
10462         * modules/open (Depends-on): Likewise.
10463         * modules/openat (Depends-on): Likewise.
10464         * modules/pread (Depends-on): Likewise.
10465         * modules/pwrite (Depends-on): Likewise.
10466         * modules/scandir (Depends-on): Likewise.
10467         * modules/stat (Depends-on): Likewise.
10468         * modules/tmpfile (Depends-on): Likewise.
10469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10470         since the containing module now depends on the largefile module.
10471         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10472         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10473         off_t is fixed by gnulib.
10474         * doc/posix-functions/freopen.texi: Likewise.
10475         * doc/posix-functions/fseeko.texi: Likewise.
10476         * doc/posix-functions/fstatat.texi: Likewise.
10477         * doc/posix-functions/ftello.texi: Likewise.
10478         * doc/posix-functions/glob.texi: Likewise.
10479         * doc/posix-functions/lseek.texi: Likewise.
10480         * doc/posix-functions/lstat.texi: Likewise.
10481         * doc/posix-functions/mkstemp.texi: Likewise.
10482         * doc/posix-functions/open.texi: Likewise.
10483         * doc/posix-functions/openat.texi: Likewise.
10484         * doc/posix-functions/pread.texi: Likewise.
10485         * doc/posix-functions/pwrite.texi: Likewise.
10486         * doc/posix-functions/scandir.texi: Likewise.
10487         * doc/posix-functions/stat.texi: Likewise.
10488         * doc/posix-functions/tmpfile.texi: Likewise.
10489         * doc/glibc-functions/mkostemp.texi: Likewise.
10490         * doc/glibc-functions/mkostemps.texi: Likewise.
10491         * doc/glibc-functions/mkstemps.texi: Likewise.
10492
10493 2011-07-25  Bruno Haible  <bruno@clisp.org>
10494
10495         fcntl: Move AC_LIBOBJ invocation to module description.
10496         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10497         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10498
10499         fcntl: Remove call-in from fchdir.m4.
10500         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10502
10503         dup3: Remove potential call-in from fchdir.m4.
10504         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10506
10507         dup2: Move AC_LIBOBJ invocation to module description.
10508         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10509         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10510         Don't invoke AC_LIBOBJ.
10511         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10512
10513         dup2: Remove call-in from fchdir.m4.
10514         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10516
10517         fclose: Move AC_LIBOBJ invocation to module description.
10518         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10519         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10520         to 1.
10521         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10522
10523         fclose: Remove call-in from close.m4.
10524         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10525         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10526
10527         close: Move AC_LIBOBJ invocation to module description.
10528         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10529         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10530         1.
10531         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10532
10533         close: Remove call-in from fchdir.m4.
10534         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10536
10537         open: Move AC_LIBOBJ invocation to module description.
10538         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10539         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10540         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10541
10542         open: Remove call-in from fchdir.m4.
10543         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10545
10546         fchdir: Start to remove gl_REPLACE_* idiom.
10547         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10548         (gl_FUNC_FCHDIR): Invoke it.
10549
10550 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10551
10552         * lib/ftell.c (ftell): Comment out cast.
10553
10554         close: use gl_REPLACE_FCLOSE only if defined
10555         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10556         is defined.  The close module doesn't depend on the fclose module
10557         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10559         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10560
10561 2011-07-24  Jim Meyering  <meyering@redhat.com>
10562
10563         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10564         * tests/test-select.h (test_function): Declare as "static".
10565
10566 2011-07-24  Bruno Haible  <bruno@clisp.org>
10567
10568         doc: Mention the effects of AC_SYS_LARGEFILE.
10569         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10570         on this function.
10571         * doc/posix-functions/aio_error.texi: Likewise.
10572         * doc/posix-functions/aio_fsync.texi: Likewise.
10573         * doc/posix-functions/aio_read.texi: Likewise.
10574         * doc/posix-functions/aio_return.texi: Likewise.
10575         * doc/posix-functions/aio_suspend.texi: Likewise.
10576         * doc/posix-functions/aio_write.texi: Likewise.
10577         * doc/posix-functions/fgetpos.texi: Likewise.
10578         * doc/posix-functions/fopen.texi: Likewise.
10579         * doc/posix-functions/freopen.texi: Likewise.
10580         * doc/posix-functions/fsetpos.texi: Likewise.
10581         * doc/posix-functions/fstatvfs.texi: Likewise.
10582         * doc/posix-functions/ftruncate.texi: Likewise.
10583         * doc/posix-functions/ftw.texi: Likewise.
10584         * doc/posix-functions/getrlimit.texi: Likewise.
10585         * doc/posix-functions/glob.texi: Likewise.
10586         * doc/posix-functions/lio_listio.texi: Likewise.
10587         * doc/posix-functions/lockf.texi: Likewise.
10588         * doc/posix-functions/mkstemp.texi: Likewise.
10589         * doc/posix-functions/mmap.texi: Likewise.
10590         * doc/posix-functions/nftw.texi: Likewise.
10591         * doc/posix-functions/openat.texi: Likewise.
10592         * doc/posix-functions/opendir.texi: Likewise.
10593         * doc/posix-functions/posix_fadvise.texi: Likewise.
10594         * doc/posix-functions/posix_fallocate.texi: Likewise.
10595         * doc/posix-functions/pread.texi: Likewise.
10596         * doc/posix-functions/pwrite.texi: Likewise.
10597         * doc/posix-functions/readdir.texi: Likewise.
10598         * doc/posix-functions/readdir_r.texi: Likewise.
10599         * doc/posix-functions/rewinddir.texi: Likewise.
10600         * doc/posix-functions/scandir.texi: Likewise.
10601         * doc/posix-functions/seekdir.texi: Likewise.
10602         * doc/posix-functions/setrlimit.texi: Likewise.
10603         * doc/posix-functions/statvfs.texi: Likewise.
10604         * doc/posix-functions/telldir.texi: Likewise.
10605         * doc/posix-functions/tmpfile.texi: Likewise.
10606         * doc/posix-functions/truncate.texi: Likewise.
10607         * doc/glibc-functions/fallocate.texi: Likewise.
10608         * doc/glibc-functions/fstatfs.texi: Likewise.
10609         * doc/glibc-functions/fts_children.texi: Likewise.
10610         * doc/glibc-functions/fts_read.texi: Likewise.
10611         * doc/glibc-functions/getdirentries.texi: Likewise.
10612         * doc/glibc-functions/mkostemp.texi: Likewise.
10613         * doc/glibc-functions/mkostemps.texi: Likewise.
10614         * doc/glibc-functions/mkstemps.texi: Likewise.
10615         * doc/glibc-functions/preadv.texi: Likewise.
10616         * doc/glibc-functions/pwritev.texi: Likewise.
10617         * doc/glibc-functions/sendfile.texi: Likewise.
10618         * doc/glibc-functions/statfs.texi: Likewise.
10619
10620 2011-07-24  Bruno Haible  <bruno@clisp.org>
10621
10622         doc: Fix typo.
10623         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10624
10625 2011-07-24  Bruno Haible  <bruno@clisp.org>
10626
10627         doc: Mention fsusage.
10628         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10629
10630 2011-07-24  Bruno Haible  <bruno@clisp.org>
10631
10632         doc: Mention new glibc headers and functions.
10633         * doc/glibc-headers/gshadow.texi: New file.
10634         * doc/glibc-functions/endsgent.texi: New file.
10635         * doc/glibc-functions/fgetsgent.texi: New file.
10636         * doc/glibc-functions/fgetsgent_r.texi: New file.
10637         * doc/glibc-functions/getsgent.texi: New file.
10638         * doc/glibc-functions/getsgent_r.texi: New file.
10639         * doc/glibc-functions/getsgnam.texi: New file.
10640         * doc/glibc-functions/getsgnam_r.texi: New file.
10641         * doc/glibc-functions/putsgent.texi: New file.
10642         * doc/glibc-functions/setsgent.texi: New file.
10643         * doc/glibc-functions/sgetsgent.texi: New file.
10644         * doc/glibc-functions/sgetsgent_r.texi: New file.
10645         * doc/glibc-functions/malloc_info.texi: New file.
10646         * doc/glibc-functions/preadv.texi: New file.
10647         * doc/glibc-functions/pwritev.texi: New file.
10648         * doc/glibc-functions/register_printf_modifier.texi: New file.
10649         * doc/glibc-functions/register_printf_specifier.texi: New file.
10650         * doc/glibc-functions/register_printf_type.texi: New file.
10651         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10652         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10653         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10654         * doc/glibc-functions/pthread_getname_np.texi: New file.
10655         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10656         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10657         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10658         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10659         * doc/glibc-functions/pthread_setname_np.texi: New file.
10660         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10661         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10662         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10663         * doc/glibc-functions/qsort_r.texi: New file.
10664         * doc/glibc-functions/quick_exit.texi: New file.
10665         * doc/glibc-functions/syncfs.texi: New file.
10666         * doc/gnulib.texi: Include them.
10667         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10668         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10669         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10670         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10671         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10672         * doc/glibc-functions/execvpe.texi: Likewise.
10673
10674 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10675
10676         ftell: don't include <unistd.h>
10677         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10678         guaranteed to define off_t, and the ftell module depends on the
10679         stdio module.
10680
10681         ftell: do not assume wraparound signed arithmetic
10682         * lib/ftell.c: Include <limits.h>.
10683         (ftell): Don't assume wraparound signed arithmetic.
10684
10685 2011-07-24  Bruno Haible  <bruno@clisp.org>
10686
10687         close: No longer depend on module 'fclose'.
10688         * modules/close (Depends-on): Remove fclose.
10689         * NEWS: Mention the change.
10690         Suggested by Sam Steingold <sds@gnu.org>.
10691
10692 2011-07-24  Bruno Haible  <bruno@clisp.org>
10693
10694         fsusage: Enable large volume support on AIX >= 5.2.
10695         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10696         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10697         instead of STAT_STATVFS.
10698         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10699
10700         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10702         f_blocks field only on MacOS X.
10703
10704         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10706         * modules/fsusage (Depends-on): Add largefile.
10707
10708 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10709
10710         * README: Modernize discussion of signed integers.
10711         Assuming overflow wraparound is no longer safe.
10712         Mention ones' complement and signed magnitude.
10713
10714 2011-07-22  Bruno Haible  <bruno@clisp.org>
10715
10716         select tests, pselect tests: Refactor.
10717         * tests/test-select.h: New file, extracted from tests/test-select.c.
10718         (select_fn): New type.
10719         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10720         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10721         test_pipe): Add my_select argument.
10722         (test_function): Renamed from main. Add my_select argument.
10723         * tests/test-select.c: Move most code to tests/test-select.h. Include
10724         test-select.h.
10725         * modules/select-tests (Files): Add tests/test-select.h.
10726         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10727         (my_select, main): New functions.
10728         * modules/pselect-tests (Files): Add tests/test-select.h,
10729         tests/macros.h, tests/signature.h.
10730         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10731         (configure.ac): Check for <sys/wait.h>.
10732
10733 2011-07-22  Bruno Haible  <bruno@clisp.org>
10734
10735         sys_select tests: Check the signature of FD_*.
10736         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10737         signature tests from here...
10738         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10739         here.
10740         * modules/sys_select-tests (Files): Add tests/signature.h.
10741
10742 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10743
10744         largefile: new module, replacing large-inode
10745         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10746         * MODULES.html.sh: Add largefile, remove large-inode.
10747         * modules/largefile, m4/largefile.m4: New files.
10748         * modules/large-inode, m4/large-inode.m4: Remove.
10749
10750         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10751         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10752         implementations that use only 32 bits to count blocks.
10753         On typical hosts with 1024-byte blocks, this fails with file
10754         systems as small as 4 TiB.  Problem reported by Herb Wartens
10755         <http://debbugs.gnu.org/9140> and this should also fix a similar
10756         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10757
10758         large-inode: New module
10759         * MODULES.html.sh: Add it.
10760         * modules/large-inode, m4/large-inode.m4: New files.
10761
10762         extensions: Enable extensions on MacOS X 10.5 and later.
10763         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10764
10765 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10766
10767         file-has-acl: use acl_extended_file_nofollow if available
10768         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10769         (acl_extended_file): New macro.
10770         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10771         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10772
10773 2011-07-21  Bruno Haible  <bruno@clisp.org>
10774
10775         Declare system functions in a way that works with C++.
10776         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10777         declare fdopendir as extern "C".
10778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10779         declare frexpl as extern "C".
10780         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10781         declare gai_strerror as extern "C".
10782         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10783         programs, declare gai_strerror as extern "C".
10784         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10785         declare getlogin_r as extern "C".
10786         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10787         as extern "C".
10788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10789         declare ldexpl as extern "C".
10790         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10791         as extern "C".
10792         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10793         program, declare getmntinfo as extern "C".
10794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10795         stpncpy as extern "C".
10796         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10797         program, declare __xpg_strerror_r as extern "C".
10798         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10799         strndup as extern "C".
10800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10801         declare memset and bzero as extern "C".
10802         Reported by Sam Steingold <sds@gnu.org>.
10803
10804 2011-07-12  Jim Meyering  <meyering@redhat.com>
10805
10806         maint.mk: prohibit inclusion of "verify.h" without use
10807         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10808
10809 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10810
10811         timer-time: A new module to check for timer_settime()
10812         * m4/timer_time.m4: Check for the posix function.
10813         * modules/timer-time: Add the new module.
10814         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10815         Mention it.
10816
10817 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10818             Bruno Haible  <bruno@clisp.org>
10819
10820         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10821         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10822         not defined, assume POSIX threads and look for pthread_sigmask in
10823         $LIBS, without changing $CPPFLAGS.
10824
10825 2011-07-19  Bruno Haible  <bruno@clisp.org>
10826
10827         strstr: Update cross-compilation guess.
10828         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10829         CPUs, guess no, in view of glibc
10830         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10831         Suggested by Eric Blake. Reported by Reuben Thomas.
10832
10833 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10834
10835         getopt-gnu: suppress core dumps from detection code
10836         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10837         to suppress core dumps that may well occur on glibc systems.
10838         * modules/getopt-gnu: Depend on nocrash.
10839
10840 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10841
10842         pthread_sigmask: ensure usleep is declared
10843         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10844         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10845
10846 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10847
10848         doc: Document NonStop portability issues.
10849         * doc/posix-functions/sigaction.texi (sigaction):
10850         * doc/posix-headers/signal.texi (signal.h):
10851         Document NonStop.  See Joachim Schmitz in
10852         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10853
10854 2011-07-15  Bruno Haible  <bruno@clisp.org>
10855
10856         ffsl, ffsll: Avoid unportable behaviour.
10857         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10858
10859 2011-07-15  Bruno Haible  <bruno@clisp.org>
10860
10861         ffs: More tests.
10862         * tests/test-ffs.c (NBITS): New macro.
10863         (main): Add more tests.
10864         * tests/test-ffsl.c (NBITS): New macro.
10865         (main): Add more tests.
10866         * tests/test-ffsll.c (NBITS): New macro.
10867         (main): Add more tests.
10868
10869 2011-07-15  Eric Blake  <eblake@redhat.com>
10870
10871         ffsl, ffsll: new modules
10872         * modules/ffsl: New file.
10873         * modules/ffsll: Likewise.
10874         * m4/ffsl.m4: Likewise.
10875         * m4/ffsll.m4: Likewise.
10876         * lib/ffsl.c: Likewise.
10877         * lib/ffsl.h: Likewise.
10878         * lib/ffsll.c: Likewise.
10879         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10880         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10881         * modules/string (Makefile.am): Substitute witnesses.
10882         * lib/strings.in.h (ffsl, ffsll): Declare.
10883         * modules/ffsl-tests: New test file.
10884         * modules/ffsll-tests: Likewise.
10885         * tests/test-ffsl.c: Likewise.
10886         * tests/test-ffsll.c: Likewise.
10887         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10888         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10889         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10890
10891         ffs: fix m4 prerequisite
10892         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10893
10894         ffs: avoid undefined behavior
10895         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10896         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10897         Reported by Bruno Haible.
10898
10899 2011-07-12  Bruno Haible  <bruno@clisp.org>
10900
10901         pthread_sigmask: Rely on module 'threadlib'.
10902         * modules/pthread_sigmask (Depends-on): Add threadlib.
10903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10904         is defined.
10905
10906 2011-07-12  Bruno Haible  <bruno@clisp.org>
10907
10908         regex: Depend on module 'strcase'.
10909         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10910
10911 2011-07-12  Jim Meyering  <meyering@redhat.com>
10912
10913         warn-on-use: fix typo in file name
10914         * modules/snippet/warn-on-use (Files): Correct file name:
10915         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10916
10917 2011-07-12  Bruno Haible  <bruno@clisp.org>
10918
10919         strings: Document module.
10920         * doc/posix-headers/strings.texi: Mention module 'strings'.
10921
10922 2011-07-12  Bruno Haible  <bruno@clisp.org>
10923
10924         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10925         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10926         (Files, Makefile.am): Update.
10927         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10928         * modules/stdlib (Depends-on): Update.
10929
10930 2011-07-12  Bruno Haible  <bruno@clisp.org>
10931
10932         * NEWS: Mention the changes.
10933
10934         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10935         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10936         (Files, Makefile.am): Update.
10937         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10938         * modules/arpa_inet (Depends-on): Update.
10939         * modules/ctype (Depends-on): Update.
10940         * modules/dirent (Depends-on): Update.
10941         * modules/fcntl-h (Depends-on): Update.
10942         * modules/glob (Depends-on): Update.
10943         * modules/iconv-h (Depends-on): Update.
10944         * modules/inttypes-incomplete (Depends-on): Update.
10945         * modules/langinfo (Depends-on): Update.
10946         * modules/locale (Depends-on): Update.
10947         * modules/math (Depends-on): Update.
10948         * modules/netdb (Depends-on): Update.
10949         * modules/poll-h (Depends-on): Update.
10950         * modules/pty (Depends-on): Update.
10951         * modules/search (Depends-on): Update.
10952         * modules/signal (Depends-on): Update.
10953         * modules/spawn (Depends-on): Update.
10954         * modules/stdio (Depends-on): Update.
10955         * modules/stdlib (Depends-on): Update.
10956         * modules/string (Depends-on): Update.
10957         * modules/strings (Depends-on): Update.
10958         * modules/sys_file (Depends-on): Update.
10959         * modules/sys_ioctl (Depends-on): Update.
10960         * modules/sys_select (Depends-on): Update.
10961         * modules/sys_socket (Depends-on): Update.
10962         * modules/sys_stat (Depends-on): Update.
10963         * modules/sys_time (Depends-on): Update.
10964         * modules/sys_times (Depends-on): Update.
10965         * modules/sys_utsname (Depends-on): Update.
10966         * modules/sys_wait (Depends-on): Update.
10967         * modules/termios (Depends-on): Update.
10968         * modules/time (Depends-on): Update.
10969         * modules/unistd (Depends-on): Update.
10970         * modules/wchar (Depends-on): Update.
10971         * modules/wctype-h (Depends-on): Update.
10972         * MODULES.html.sh (Support for building libraries and executables):
10973         Update.
10974
10975         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10976         * modules/snippet/unused-parameter: Renamed from
10977         modules/unused-parameter.
10978         (Files, Makefile.am): Update.
10979         * build-aux/snippet/unused-parameter.h: Renamed from
10980         build-aux/unused-parameter.h.
10981         * modules/selinux-h (Depends-on): Update.
10982         * modules/unistr/base (Depends-on): Update.
10983         * MODULES.html.sh (Core language properties): Update.
10984
10985         Rename module 'link-warning' to 'snippet/link-warning'.
10986         * modules/snippet/link-warning: Renamed from modules/link-warning.
10987         (Files, Makefile.am): Update.
10988         * build-aux/snippet/link-warning.h: Renamed from
10989         build-aux/link-warning.h.
10990         * MODULES.html.sh (Support for building libraries and executables):
10991         Update.
10992
10993         Rename module 'c++defs' to 'snippet/c++defs'.
10994         * modules/snippet/c++defs: Renamed from modules/c++defs.
10995         (Files, Makefile.am): Update.
10996         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10997         * modules/arpa_inet (Depends-on): Update.
10998         * modules/ctype (Depends-on): Update.
10999         * modules/dirent (Depends-on): Update.
11000         * modules/fcntl-h (Depends-on): Update.
11001         * modules/glob (Depends-on): Update.
11002         * modules/iconv-h (Depends-on): Update.
11003         * modules/langinfo (Depends-on): Update.
11004         * modules/locale (Depends-on): Update.
11005         * modules/math (Depends-on): Update.
11006         * modules/netdb (Depends-on): Update.
11007         * modules/poll-h (Depends-on): Update.
11008         * modules/pty (Depends-on): Update.
11009         * modules/search (Depends-on): Update.
11010         * modules/signal (Depends-on): Update.
11011         * modules/spawn (Depends-on): Update.
11012         * modules/stdio (Depends-on): Update.
11013         * modules/stdlib (Depends-on): Update.
11014         * modules/string (Depends-on): Update.
11015         * modules/strings (Depends-on): Update.
11016         * modules/sys_ioctl (Depends-on): Update.
11017         * modules/sys_select (Depends-on): Update.
11018         * modules/sys_socket (Depends-on): Update.
11019         * modules/sys_stat (Depends-on): Update.
11020         * modules/sys_time (Depends-on): Update.
11021         * modules/sys_wait (Depends-on): Update.
11022         * modules/termios (Depends-on): Update.
11023         * modules/time (Depends-on): Update.
11024         * modules/unistd (Depends-on): Update.
11025         * modules/wchar (Depends-on): Update.
11026         * modules/wctype-h (Depends-on): Update.
11027
11028         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11029         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11030         (Files, Makefile.am): Update.
11031         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11032         * modules/argv-iter (Depends-on): Update.
11033         * modules/arpa_inet (Depends-on): Update.
11034         * modules/dirent (Depends-on): Update.
11035         * modules/fcntl-h (Depends-on): Update.
11036         * modules/fnmatch (Depends-on): Update.
11037         * modules/getopt-posix (Depends-on): Update.
11038         * modules/glob (Depends-on): Update.
11039         * modules/iconv-h (Depends-on): Update.
11040         * modules/inttypes-incomplete (Depends-on): Update.
11041         * modules/locale (Depends-on): Update.
11042         * modules/math (Depends-on): Update.
11043         * modules/netdb (Depends-on): Update.
11044         * modules/search (Depends-on): Update.
11045         * modules/signal (Depends-on): Update.
11046         * modules/spawn (Depends-on): Update.
11047         * modules/stdio (Depends-on): Update.
11048         * modules/stdlib (Depends-on): Update.
11049         * modules/string (Depends-on): Update.
11050         * modules/strings (Depends-on): Update.
11051         * modules/sys_socket (Depends-on): Update.
11052         * modules/sys_stat (Depends-on): Update.
11053         * modules/sys_time (Depends-on): Update.
11054         * modules/sys_times (Depends-on): Update.
11055         * modules/sys_utsname (Depends-on): Update.
11056         * modules/time (Depends-on): Update.
11057         * modules/unistd (Depends-on): Update.
11058         * modules/wchar (Depends-on): Update.
11059         * MODULES.html.sh (Support for building libraries and executables):
11060         Update.
11061
11062 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11063
11064         Improvements on _Noreturn and related modules.
11065
11066         modules/_Exit-tests: test _Noreturn too
11067         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11068         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11069         (main): Use them.
11070
11071         stdnoreturn, stdnoreturn-tests: remove modules
11072         They're not needed here and a bit premature for use elsewhere.  See
11073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11074         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11075         * tests/test-stdnoreturn.c: Remove files.
11076         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11077         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11078         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11079         and using noreturn.
11080         * modules/openat, modules/sigpipe-die, modules/xalloc:
11081         * modules/xmemdup0, modules/xstrtol:
11082         Remove dependency on stdnoreturn.
11083
11084         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11085         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11086         Reparenthesize to avoid GCC warning.
11087         Support Microsoft's syntax.
11088         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11089
11090         _Noreturn-tests: remove module
11091         * modules/_Noreturn-tests: Remove.
11092         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11093         * tests/test-_Noreturn.c: Remove.
11094         * tests/test-stdnoreturn.c: Merge from the old
11095         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11096
11097 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11098
11099         _Noreturn, stdnoreturn, and related modules.
11100
11101         * top/maint.mk: Adjust to new noreturn support.
11102         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11103         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11104
11105         xalloc: use stdnoreturn.h
11106         * lib/xalloc.h: Include <stdnoreturn.h>.
11107         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11108         * modules/xalloc (Depends-on): Add stdnoreturn.
11109
11110         xstrtol: use stdnoreturn.h
11111         * lib/xstrtol.h: Include <stdnoreturn.h>.
11112         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11113         * modules/xstrtol (Depends-on): Add stdnoreturn.
11114
11115         xmemdup0: use stdnoreturn.h
11116         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11117         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11118         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11119
11120         sigpipe-die: use stdnoreturn.h
11121         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11122         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11123         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11124
11125         openat: use stdnoreturn.h
11126         * lib/openat.h: Include <stdnoreturn.h>.
11127         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11128         * modules/openat (Depends-on): Add stdnoreturn.
11129
11130         * lib/openat-die.c (openat_save_fail): Modernize comment.
11131
11132         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11133
11134         * lib/glthread/thread.h: Modernize comment.
11135
11136         obstack: use _Noreturn
11137         * lib/obstack.c (__attribute__): Remove macro.
11138         (print_and_abort): Use _Noreturn.
11139
11140         c-stack: use _Noreturn
11141         * lib/c-stack.c (die, overflow_handler, segv_handler):
11142         Use _Noreturn rather than __attribute__((noreturn)).
11143
11144         argmatch-tests, exclude_tests: use _Noreturn
11145         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11146         Remove.
11147         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11148
11149         stdlib: use _Noreturn
11150         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11151         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11152         * modules/stdlib (Depends-on): Add _Noreturn.
11153         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11154
11155         stdnoreturn-tests: new module
11156         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11157
11158         stdnoreturn: new module
11159         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11160         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11161
11162         _Noreturn-tests: new module
11163         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11164
11165         _Noreturn: new module
11166         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11167         New section, mentioning it.
11168         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11169
11170         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11171
11172 2011-07-11  Eric Blake  <eblake@redhat.com>
11173
11174         ffs: new module
11175         * modules/ffs: New file.
11176         * m4/ffs.m4: Likewise.
11177         * lib/ffs.c: Likewise.
11178         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11179         * modules/strings (Makefile.am): Substitute witness.
11180         (Depends-on): Add c++defs.
11181         * lib/strings.in.h (ffs): Declare.
11182         * modules/ffs-tests: New test file.
11183         * tests/test-ffs.c: Test new module.
11184         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11185         * doc/posix-functions/ffs.texi (ffs): Likewise.
11186
11187         regex: avoid compiler warning
11188         * lib/regex.c (includes): Include <strings.h>, for use of
11189         strcasecmp in regcomp.c.
11190         Reported by Joachim Schmitz.
11191
11192 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11193
11194         stdint: respect system's intmax_t if INTMAX_MAX
11195         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11196         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11197         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11198         long but int64_t is long long, and where we will clash with the
11199         system intmax_t if we override it.  See
11200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11201         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11202         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11203         similarly for UINTMAX_C.
11204
11205 2011-07-08  Bruno Haible  <bruno@clisp.org>
11206
11207         pthread_sigmask tests: Avoid a compiler warning.
11208         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11209         non-zero.
11210
11211         sigprocmask tests: A better way to avoid a compiler warning.
11212         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11213         (main): Complain if system() returns non-zero.
11214         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11215
11216 2011-07-08  Bruno Haible  <bruno@clisp.org>
11217
11218         pthread_sigmask: Work around IRIX bug.
11219         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11220         bug.
11221         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11222         there may be unblocked pending signals.
11223         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11224
11225 2011-07-08  Bruno Haible  <bruno@clisp.org>
11226
11227         pthread_sigmask: Work around Cygwin bug.
11228         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11229         bug.
11230         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11231         the system's pthread_sigmask function.
11232         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11233
11234 2011-07-08  Bruno Haible  <bruno@clisp.org>
11235
11236         pthread_sigmask: Work around bug in single-threaded implementation.
11237         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11238         FreeBSD, HP-UX, Solaris bug.
11239         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11240         * lib/pthread_sigmask.c: Include <stddef.h>.
11241         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11242         the system's pthread_sigmask function.
11243         * modules/pthread_sigmask (configure.ac): Invoke
11244         gl_PREREQ_PTHREAD_SIGMASK.
11245         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11246         HP-UX, Solaris.
11247
11248 2011-07-08  Eric Blake  <eblake@redhat.com>
11249
11250         test-sigprocmask: avoid compiler warning
11251         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11252         * tests/test-sigprocmask.c (main): Use it to silence warning.
11253         Reported by Jim Meyering.
11254
11255         test-snprintf: avoid compiler warning
11256         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11257         * tests/test-vsnprintf.c (main): Likewise.
11258         Reported by Jim Meyering.
11259
11260 2011-07-08  Bruno Haible  <bruno@clisp.org>
11261
11262         Tests for module 'pthread_sigmask'.
11263         * modules/pthread_sigmask-tests: New file.
11264         * tests/test-pthread_sigmask1.c: New file, based on
11265         tests/test-sigprocmask.c.
11266         * tests/test-pthread_sigmask2.c: New file.
11267
11268 2011-07-08  Jim Meyering  <meyering@redhat.com>
11269
11270         test-getopt.h: avoid warning about an unused variable
11271         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11272
11273 2011-07-07  Jim Meyering  <meyering@redhat.com>
11274
11275         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11276         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11277         now that it no longer contains leading TABs.
11278         Remove unused "url=FIXME" statement.
11279
11280 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11281
11282         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11283         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11284         When gl_THREADLIB is not in use, assume that the POSIX sematics
11285         are desired.  This is better for Emacs, which uses POSIX semantics
11286         on GNUish and/or POSIXish platforms, and does not use threads at
11287         all otherwise.
11288
11289         pthread_sigmask: fix typo when testing for libraries
11290         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11291         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11292
11293 2011-07-08  Eric Blake  <eblake@redhat.com>
11294
11295         fts: introduce FTS_NOATIME
11296         * lib/fts_.h (FTS_NOATIME): New bit flag.
11297         (FTS_OPTIONMASK): Adjust.
11298         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11299         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11300
11301 2011-07-08  Bruno Haible  <bruno@clisp.org>
11302
11303         Tests for module 'thread'.
11304         * modules/thread-tests: New file.
11305         * tests/test-thread_self.c: New file.
11306         * tests/test-thread_create.cc: New file.
11307
11308 2011-07-08  Bruno Haible  <bruno@clisp.org>
11309
11310         thread: Avoid gcc warnings when using gl_thread_self().
11311         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11312         'void *'.
11313         (gl_thread_self_pointer): Update.
11314
11315 2011-07-07  Bruno Haible  <bruno@clisp.org>
11316
11317         signal-c++-tests: Check declaration of pthread_sigmask.
11318         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11319         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11320         $(LIB_PTHREAD_SIGMASK).
11321
11322 2011-07-07  Bruno Haible  <bruno@clisp.org>
11323
11324         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11325         * lib/signal.in.h (pthread_sigmask): Override if
11326         REPLACE_PTHREAD_SIGMASK is 1.
11327         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11328         REPLACE_PTHREAD_SIGMASK.
11329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11330         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11331         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11332         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11333         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11334
11335 2011-07-07  Bruno Haible  <bruno@clisp.org>
11336
11337         pthread_sigmask: Ensure declaration in <signal.h>.
11338         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11339         include <pthread.h>.
11340         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11341         problem.
11342
11343 2011-07-07  Bruno Haible  <bruno@clisp.org>
11344
11345         pthread_sigmask: Document the module.
11346         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11347
11348 2011-07-07  Bruno Haible  <bruno@clisp.org>
11349
11350         pthread_sigmask: Follow gnulib conventions.
11351         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11352         gl_PTHREAD_SIGMASK.
11353         * modules/pthread_sigmask (configure.ac): Update.
11354
11355 2011-07-07  Bruno Haible  <bruno@clisp.org>
11356
11357         pthread_sigmask: Make declaration C++ safe.
11358         * lib/signal.in.h: In two special conditions, just do an #include_next.
11359         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11360         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11361         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11362         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11363         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11364         not REPLACE_PTHREAD_MASK.
11365         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11366         not REPLACE_PTHREAD_MASK.
11367         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11368
11369 2011-07-07  Bruno Haible  <bruno@clisp.org>
11370
11371         pthread_sigmask: Fix return value.
11372         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11373         * lib/pthread_sigmask.c: New file.
11374         * modules/pthread_sigmask (Files): Add it.
11375         (configure.ac): Invoke AC_LIBOBJ.
11376
11377 2011-07-07  Eric Blake  <eblake@redhat.com>
11378
11379         getopt: more portable argv creation
11380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11381         const, use char arrays rather than strings.
11382         Suggested by Paul Eggert.
11383
11384 2011-07-07  Bruno Haible  <bruno@clisp.org>
11385
11386         Tests for module 'sigprocmask'.
11387         * modules/sigprocmask-tests: New file.
11388         * tests/test-sigprocmask.c: New file.
11389
11390 2011-07-07  Bruno Haible  <bruno@clisp.org>
11391
11392         float tests: Tweak.
11393         * tests/test-float.c (main): Tweak skip message.
11394
11395 2011-07-07  Eric Blake  <eblake@redhat.com>
11396
11397         getopt: avoid compiler warning during configure
11398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11399         assigning string literals to non-const pointer.
11400
11401         getopt-gnu: avoid crash in glibc getopt
11402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11403         * tests/test-getopt.h (test_getopt): Enhance test.
11404         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11405         * doc/posix-functions/getopt.texi (getopt): Document it.
11406         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11407         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11408         Likewise.
11409
11410 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11411
11412         getopt: handle W; without long options in getopt [BZ #12922]
11413         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11414         but no long options are defined, just return 'W'.
11415
11416 2011-07-07  Bruno Haible  <bruno@clisp.org>
11417
11418         Avoid literal tabs.
11419         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11420         variable containing a tab instead of a literal tab.
11421         Reported by Jim Meyering.
11422
11423 2011-07-07  Bruno Haible  <bruno@clisp.org>
11424
11425         Comments.
11426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11427
11428 2011-07-06  Bruno Haible  <bruno@clisp.org>
11429
11430         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11431         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11432         <winsock2.h>.
11433         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11434         lib/sys_socket.in.h.
11435         (close, gethostname): Hide declarations from <winsock2.h>.
11436         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11437         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11438         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11439         (select): Don't override if gnulib's <sys/select.h> was already
11440         included.
11441         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11442         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11443         setsockopt, shutdown, select): Tweak indentation.
11444
11445 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11446
11447         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11448         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11449         in an application that does not use the sys_select module.
11450
11451 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11452
11453         poll: do not return 0 on timeout=-1
11454         * lib/poll.c: Loop with yield if no events occured
11455
11456 2011-07-06  Eric Blake  <eblake@redhat.com>
11457
11458         pthread_sigmask: always replace when not using pthread
11459         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11460         replacement when using some threading other than pthread.  Fix
11461         logic bug.
11462
11463 2011-07-06  Bruno Haible  <bruno@clisp.org>
11464
11465         Comments.
11466         * m4/printf.m4: Update comments about mingw.
11467
11468 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11469
11470         sys_select: define sigset_t more portably
11471         * lib/sys_select.in.h: Always include <sys/types.h>, since
11472         we now need sigset_t and mingw defines it there.
11473         Include <signal.h> before split inclusion guard, to avoid
11474         mishaps on Solaris, whose <signal.h> eventually includes us.
11475         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11476         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11477         which come from ...
11478         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11479         gl_CHECK_TYPE_SIGSET_T.
11480         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11481         does the real work.
11482         * modules/sys_select (Depends-on): Add 'signal'.
11483
11484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11485         Suggested by Bruno Haible.
11486
11487         pselect: Use pthread_sigmask, not sigprocmask.
11488         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11489         multithreaded apps better than sigprocmask does.
11490         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11491         sigprocmask directly.
11492
11493 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11494
11495         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11496         Don't #undef,  since we don't need any underlying pselect.
11497         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11498         (Depends-on): Add select.
11499         (Link): Add $(LIBSOCKET).
11500         These changes suggested by Bruno Haible.
11501
11502         pselect: document better
11503         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11504         * doc/posix-functions/pselect.texi (pselect): Document new module.
11505
11506         pthread_sigmask: new module
11507         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11508         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11509         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11510         This is done only as a macro; I don't know how well that'll
11511         work for C++.  Move <sys/types.h> include before the include_next,
11512         to avoid mishap on Solaris.
11513         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11514         * modules/signal (Makefile.am): Substitute the check's results.
11515         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11516
11517         test-pselect: new module
11518         * modules/pselect-tests, tests/test-pselect.c: New files.
11519         * tests/test-select.c, tests/test-sys_select-c++.cc:
11520         If TEST_PSELECT is defined, test pselect instead of testing select.
11521
11522         * tests/test-sys_select.c (sigset_t): Test for it, too.
11523         Suggested by Bruno Haible.
11524
11525 2011-07-05  Eric Blake  <eblake@redhat.com>
11526
11527         snprintf: guarantee %1$d, for libintl
11528         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11529         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11530         * doc/posix-functions/snprintf.texi (snprintf): Update.
11531         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11532         * tests/test-snprintf.c (main): Enhance test.
11533         * tests/test-vsnprintf.c (main): Likewise.
11534
11535 2011-07-05  Jim Meyering  <meyering@redhat.com>
11536
11537         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11538         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11539         per Bruno's request, to accommodate this idiom (no space after "#")
11540         even when the function is inside an #if block:
11541         char *
11542         gets (char *s)
11543         #undef gets
11544         {
11545           ...
11546         }
11547
11548 2011-07-04  Jim Meyering  <meyering@redhat.com>
11549
11550         maint: indent with spaces, not TABs, and add a rule to check this
11551         * tests/test-userspec.c: Indent with spaces, not TABs.
11552         * tests/test-argp.c: Likewise.
11553         * tests/test-c-stack2.sh: Likewise.
11554         * tests/test-parse-duration.sh: Likewise
11555         * m4/strtod.m4: Likewise.
11556         * m4/alloca.m4: Likewise.
11557         * m4/pselect.m4: Likewise.
11558         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11559
11560 2011-07-03  Jim Meyering  <meyering@redhat.com>
11561
11562         maint.mk: correct omissions in prohibit_argmatch_without_use check
11563         This rule would mistakenly report that argmatch.h is included without
11564         use even when both the argmatch and invalid_arg macro were used.
11565         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11566         of argmatch and invalid_arg.
11567
11568 2011-07-03  Bruno Haible  <bruno@clisp.org>
11569
11570         Comments about EINTR.
11571         * lib/safe-read.h: Explain the purpose of this module.
11572         * lib/safe-write.h: Likewise.
11573         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11574         module.
11575         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11576         module.
11577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11578
11579 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11580
11581         xnanosleep: Rewrite to use new dtotimespec module.
11582         It has the conversion code that used to be in xnanosleep.
11583         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11584         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11585         (TIME_T_MAX): Remove.
11586         (xnanosleep): Rewrite in terms of dtotimespec.
11587         * modules/xnanosleep (Depends-on): Add dtotimespec.
11588         Remove intprops, stdbool.
11589
11590         timespec-add, timespec-sub: new modules
11591         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11592         * lib/timespec-add.c, lib/timespec-sub.c:
11593         * modules/timespec-add, modules/timespec-sub: New files.
11594
11595         dtotimespec: new module
11596         * lib/timespec.h (dtotimespec): New decl.
11597         * lib/dtotimespec.c, modules/dtotimespec: New files.
11598
11599         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11600
11601         pselect: new module
11602         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11603         (pselect): New decls.
11604         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11605         since the standard pselect decl uses 'restrict'.
11606         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11607         HAVE_PSELECT, REPLACE_PSELECT.
11608         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11609         HAVE_PSELECT, REPLACE_PSELECT.
11610         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11611
11612         sys_select: don't depend on sys_socket
11613         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11615         This fix works on GNU and GNU-like platforms, but has not been tested
11616         on native Windows.
11617         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11618         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11619         gl_HEADER_SYS_SOCKET.
11620         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11621         gl_PREREQ_SYS_H_WINSOCK2.
11622
11623 2011-06-29  Eric Blake  <eblake@redhat.com>
11624
11625         pipe2: fix C89 compile problem
11626         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11627         Reported by Bruno Haible.
11628
11629         pipe, pipe2: don't corrupt fd on error
11630         * lib/pipe.c (pipe): Leave fd unchanged on error.
11631         * lib/pipe2.c (pipe2): Likewise.
11632         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11633         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11634
11635 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11636
11637         mmap-anon: do not use regular expressions inadvertently
11638         * m4/mmap-anon.m4: Remove trailing period from strings sought
11639         in the output.
11640
11641 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11642
11643         nanosleep: fix integer overflow problem
11644         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11645         arithmetic wraps around on overflow.
11646
11647         nanosleep: simplify carrying
11648         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11649         first call to the underyling nanosleep, not for the last one.
11650         This doesn't fix any bugs, but it simplifies the computation of
11651         the remaining delay.  Found while auditing integer overflow issues.
11652
11653         dup2: remove test for existence of fcntl
11654         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11655         "#if HAVE_FCNTL", in the configure-time test program.
11656         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11657         and therefore speeds up "configure" a bit.  Found while
11658         adding the dup2 module to Emacs.
11659
11660 2011-06-24  Eric Blake  <eblake@redhat.com>
11661
11662         maint.mk: enhance useless header checks
11663         * top/maint.mk (_sc_header_without_use): Check both include
11664         styles.
11665         (sc_prohibit_assert_without_use)
11666         (sc_prohibit_close_stream_without_use)
11667         (sc_prohibit_getopt_without_use)
11668         (sc_prohibit_quotearg_without_use)
11669         (sc_prohibit_quote_without_use)
11670         (sc_prohibit_long_options_without_use)
11671         (sc_prohibit_inttostr_without_use)
11672         (sc_prohibit_ignore_value_without_use)
11673         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11674         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11675         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11676         (sc_prohibit_hash_pjw_without_use)
11677         (sc_prohibit_safe_read_without_use)
11678         (sc_prohibit_argmatch_without_use)
11679         (sc_prohibit_canonicalize_without_use)
11680         (sc_prohibit_root_dev_ino_without_use)
11681         (sc_prohibit_openat_without_use)
11682         (sc_prohibit_c_ctype_without_use)
11683         (sc_prohibit_signal_without_use)
11684         (sc_prohibit_stdio--_without_use)
11685         (sc_prohibit_stdio-safer_without_use)
11686         (sc_prohibit_strings_without_use)
11687         (sc_prohibit_intprops_without_use)
11688         (sc_prohibit_stddef_without_use)
11689         (sc_prohibit_xfreopen_without_use): Update clients.
11690
11691 2011-06-24  Jim Meyering  <meyering@redhat.com>
11692
11693         syntax-check: keep one maint.mk rule in sync with its header
11694         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11695         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11696         I prefer to avoid temporary files here, so use <(...), but that
11697         is not supported by /bin/sh, so...
11698         (SHELL): Define to /bin/bash.
11699
11700 2011-06-24  Eric Blake  <eblake@redhat.com>
11701
11702         maint.mk: update sc_prohibit_intprops_without_use
11703         * top/maint.mk (_intprops_names): Match recent changes.
11704
11705 2011-06-24  Bruno Haible  <bruno@clisp.org>
11706
11707         strerror-override: No-op tweak.
11708         * lib/strerror-override.h (strerror_override): Reorder conditions,
11709         for consistency with lib/strerror-override.c.
11710
11711 2011-06-23  Eric Blake  <eblake@redhat.com>
11712
11713         maint.mk: test further PATH_MAX issues
11714         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11715         (sc_prohibit_path_max_allocation): ...and also test alloca.
11716         Suggested by Jim Meyering.
11717
11718 2011-06-22  Eric Blake  <eblake@redhat.com>
11719
11720         maint.mk: add syntax-check to avoid char[PATH_MAX]
11721         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11722
11723         stat: be robust to PATH_MAX definition
11724         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11725         * modules/stat (Depends-on): Add verify.
11726
11727         link: work around IRIX bug
11728         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11729         * lib/link.c (rpl_link): Work around it.
11730         * tests/test-link.h (test_link): Enhance test.
11731         * doc/posix-functions/link.texi (link): Document the bug.
11732
11733         getopt: silence clang warning
11734         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11735         dereference.
11736         Reported by Gustavo Martin Domato.
11737
11738 2011-06-22  Jim Meyering  <meyering@redhat.com>
11739
11740         bootstrap: do not insert a blank line into each .gitignore file
11741         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11742
11743 2011-06-21  Eric Blake  <eblake@redhat.com>
11744
11745         perror: test for output mismatch
11746         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11747         perror on IRIX.
11748
11749         strerror_r: fix OpenBSD behavior on out-of-range
11750         * lib/strerror_r.c (strerror_r): Always use maximal string.
11751         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11752
11753         strerror_r: fix OpenBSD behavior on 0
11754         * lib/strerror-override.c (strerror_override): Also override 0
11755         when needed.
11756         * lib/strerror-override.h (strerror_override): Likewise.
11757         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11758         earlier.
11759         * lib/strerror_r.c (strerror_r): Likewise.
11760         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11761         behavior...
11762         (gl_FUNC_STRERROR_0): ...into new macro.
11763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11764         is overridden.
11765         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11766         * modules/strerror-override (Files): Add strerror.m4.
11767         (configure.ac): Also provide override for 0 when needed.
11768         * doc/posix-functions/strerror.texi (strerror): Document this.
11769         * doc/posix-functions/perror.texi (perror): Likewise.
11770
11771         perror: adjust array size
11772         * modules/perror (Depends-on): Add strerror-override.
11773         * lib/perror.c (perror): Use it to avoid magic number.
11774
11775         strerror-override: reduce size
11776         * lib/strerror-override.c (strerror_override): Use fewer lines.
11777
11778 2011-06-20  Bruno Haible  <bruno@clisp.org>
11779
11780         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11781         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11782
11783 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11784
11785         alloca: port to compilers that can optimize like GCC 4.6.0
11786         * lib/alloca.c (find_stack_direction): New signature, taken from
11787         Autoconf git.  This works with GCC 4.6.0.  This code should never
11788         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11789         be used with other compilers that optimize as well as GCC 4.6.0 does.
11790         (alloca): Adjust to new signature.
11791         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11792         New macro, which patches Autoconf in a similar way.
11793
11794         c-stack: stop worrying about stack direction
11795         * lib/c-stack.c (find_stack_direction): Remove.
11796         (segv_handler): Don't worry about stack direction growth, as it's
11797         too much of a pain to configure this correctly, given how compilers
11798         are optimizing-away our stack-growth detection code.  Instead, assume
11799         that any access to just before or just after the stack is OK.
11800         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11801         Don't require AC_FUNC_ALLOCA; no longer needed.
11802
11803 2011-06-20  Eric Blake  <eblake@redhat.com>
11804
11805         test-stat: don't allocate PATH_MAX bytes
11806         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11807         PATH_MAX-sized buffer.
11808         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11809         * modules/stat-tests (Depends-on): Likewise.
11810         * tests/test-fstatat.c (includes): Drop pathmax.h.
11811         * tests/test-stat.c (includes): Likewise.
11812         Reported by Bruno Haible.
11813
11814 2011-06-20  Bruno Haible  <bruno@clisp.org>
11815
11816         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11817         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11818         * lib/float.c: New file.
11819         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11820         REPLACE_FLOAT_LDBL.
11821         * modules/float (Files): Add lib/float.c.
11822         (configure.ac): Invoke AC_LIBOBJ.
11823         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11824
11825 2011-06-20  Bruno Haible  <bruno@clisp.org>
11826
11827         Tests for module 'float'.
11828         * modules/float-tests: New file.
11829         * tests/test-float.c: New file.
11830
11831 2011-06-19  Bruno Haible  <bruno@clisp.org>
11832
11833         isinf: Coding style.
11834         * lib/isinf.c: Use GNU coding style.
11835
11836 2011-06-19  Bruno Haible  <bruno@clisp.org>
11837
11838         linkat test: Avoid test failure on AIX 7.1.
11839         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11840         * tests/test-link.h (test_link): Likewise.
11841
11842 2011-06-19  Bruno Haible  <bruno@clisp.org>
11843
11844         pread test: Avoid test failure on OpenBSD 4.9.
11845         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11846
11847 2011-06-19  Bruno Haible  <bruno@clisp.org>
11848
11849         sprintf-posix: Fix test failure on AIX 7.1.
11850         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11851         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11852         on AIX.
11853         * doc/posix-functions/fprintf.texi: Likewise.
11854         * doc/posix-functions/printf.texi: Likewise.
11855         * doc/posix-functions/snprintf.texi: Likewise.
11856         * doc/posix-functions/sprintf.texi: Likewise.
11857         * doc/posix-functions/vdprintf.texi: Likewise.
11858         * doc/posix-functions/vfprintf.texi: Likewise.
11859         * doc/posix-functions/vprintf.texi: Likewise.
11860         * doc/posix-functions/vsnprintf.texi: Likewise.
11861         * doc/posix-functions/vsprintf.texi: Likewise.
11862
11863 2011-06-19  Bruno Haible  <bruno@clisp.org>
11864
11865         roundl-ieee: Fix test failure on AIX 7.1.
11866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11867         * doc/posix-functions/roundl.texi: Mention problem with negative
11868         arguments.
11869
11870 2011-06-19  Bruno Haible  <bruno@clisp.org>
11871
11872         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11873         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11874         * doc/posix-functions/round.texi: Mention problem with negative
11875         arguments.
11876         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11877
11878 2011-06-19  Bruno Haible  <bruno@clisp.org>
11879
11880         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11882         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11883         * doc/posix-functions/roundf.texi: Mention problem with negative
11884         arguments.
11885         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11886
11887 2011-06-19  Bruno Haible  <bruno@clisp.org>
11888
11889         ceilf-ieee: Work around bug on MacOS X 10.5.
11890         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11891
11892         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11893         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11894         IEEE compliant, avoid compiler optimizations.
11895         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11896         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11897         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11898         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11899         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11900         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11902         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11903         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11904         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11905
11906 2011-06-19  Bruno Haible  <bruno@clisp.org>
11907
11908         ceilf-ieee: Work around bug on AIX 7.1.
11909         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11910         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11911
11912 2011-06-19  Bruno Haible  <bruno@clisp.org>
11913
11914         ceil-ieee: Work around bug on AIX 7.1.
11915         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11916         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11917
11918 2011-06-18  Bruno Haible  <bruno@clisp.org>
11919
11920         fsync test: Avoid test failure on MacOS X and AIX.
11921         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11922         EINVAL.
11923
11924 2011-06-18  Bruno Haible  <bruno@clisp.org>
11925
11926         openat, fdopendir tests: Fix link errors.
11927         * modules/openat-tests (Depends-on): Add progname.
11928         * modules/fdopendir-tests (Depends-on): Likewise.
11929         * tests/test-fchownat.c: Include progname.h.
11930         (main): Call set_program_name.
11931         * tests/test-fstatat.c: Include progname.h.
11932         (main): Call set_program_name.
11933         * tests/test-mkdirat.c: Include progname.h.
11934         (main): Call set_program_name.
11935         * tests/test-openat.c: Include progname.h.
11936         (main): Call set_program_name.
11937         * tests/test-unlinkat.c: Include progname.h.
11938         (main): Call set_program_name.
11939         * tests/test-fdopendir.c: Include progname.h.
11940         (main): Call set_program_name.
11941
11942 2011-06-18  Bruno Haible  <bruno@clisp.org>
11943
11944         Doc update.
11945         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11946         HP-UX.
11947         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11948
11949 2011-06-18  Bruno Haible  <bruno@clisp.org>
11950
11951         getcwd tests: Avoid compilation error on HP-UX 11.31.
11952         * modules/getcwd-tests (Depends-on): Add pathmax.
11953         * tests/test-getcwd.c: Include pathmax.h.
11954
11955 2011-06-18  Bruno Haible  <bruno@clisp.org>
11956
11957         isfinite, isinf: Fix link error on AIX 6 and 7.
11958         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11959         needed, also test the macro with a 'float' argument.
11960         * m4/isinf.m4 (gl_ISINF): Likewise.
11961
11962 2011-06-18  Bruno Haible  <bruno@clisp.org>
11963
11964         getloadavg: Don't clobber LIBS. Regression from previous commit.
11965         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11966         AC_CHECK_LIB from here...
11967         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11968         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11969         gl_func_getloadavg_done.
11970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11971
11972 2011-06-18  Bruno Haible  <bruno@clisp.org>
11973
11974         clean-temp: Improve documentation.
11975         * lib/clean-temp.h: Explain better how to use this module.
11976         Reported by John Darrington <john@darrington.wattle.id.au>.
11977
11978 2011-06-17  Bruno Haible  <bruno@clisp.org>
11979
11980         pread, pwrite: Avoid cc warning on AIX.
11981         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11982         (pwrite): Likewise.
11983
11984 2011-06-17  Bruno Haible  <bruno@clisp.org>
11985
11986         spawn-pipe tests: Fix link error.
11987         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11989
11990 2011-06-17  Bruno Haible  <bruno@clisp.org>
11991
11992         Tests: Remove unnecessary dependency.
11993         * modules/canonicalize-tests (Depends-on): Remove progname.
11994         * modules/chown-tests (Depends-on): Likewise.
11995         * modules/dirname-tests (Depends-on): Likewise.
11996         * modules/fdopendir-tests (Depends-on): Likewise.
11997         * modules/fdutimensat-tests (Depends-on): Likewise.
11998         * modules/hash-tests (Depends-on): Likewise.
11999         * modules/lchown-tests (Depends-on): Likewise.
12000         * modules/linkat-tests (Depends-on): Likewise.
12001         * modules/renameat-tests (Depends-on): Likewise.
12002         * modules/spawn-pipe-tests (Depends-on): Likewise.
12003         * modules/utimensat-tests (Depends-on): Likewise.
12004
12005 2011-06-17  Bruno Haible  <bruno@clisp.org>
12006
12007         spawn-pipe tests: Fix link error.
12008         * tests/test-spawn-pipe-child.c: Undefine fflush.
12009
12010 2011-06-17  Bruno Haible  <bruno@clisp.org>
12011
12012         Fix tests link errors.
12013         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12014         * modules/chown-tests (Makefile.am): Don't link test-chown with
12015         LIBINTL.
12016         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12017         LIBINTL.
12018         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12019         LIBINTL.
12020         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12021         LIBINTL.
12022
12023 2011-06-16  Bruno Haible  <bruno@clisp.org>
12024
12025         crypto/gc-sha1: Fix recent regression.
12026         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12027         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12028
12029         crypto/gc-md5: Fix recent regression.
12030         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12031
12032         crypto/gc-md4: Fix recent regression.
12033         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12034         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12035
12036         crypto/gc-arctwo: Fix recent regression.
12037         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12038         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12039
12040         crypto/gc-rijndael: Fix recent regression.
12041         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12042         (configure.ac): Invoke AC_LIBOBJ here.
12043         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12045
12046         crypto/gc-hmac-sha1: Fix recent regression.
12047         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12048         (configure.ac): Invoke AC_LIBOBJ here.
12049         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12051
12052         crypto/gc-hmac-md5: Fix recent regression.
12053         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12054         (configure.ac): Invoke AC_LIBOBJ here.
12055         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12057
12058         crypto/gc-des: Fix recent regression.
12059         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12060         (configure.ac): Invoke AC_LIBOBJ here.
12061         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12063
12064         crypto/gc-arcfour: Fix recent regression.
12065         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12066         (configure.ac): Invoke AC_LIBOBJ here.
12067         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12069
12070 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12071
12072         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12073         After the 2011-05-21 change, this macro requires
12074         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12075         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12076
12077 2011-06-16  Bruno Haible  <bruno@clisp.org>
12078
12079         fprintftime: Move AC_LIBOBJ invocations to module description.
12080         * m4/fprintftime.m4: Remove file.
12081         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12082         (configure.ac): Remove gl_FPRINTFTIME call.
12083         (Makefile.am): Augment lib_SOURCES.
12084         Reported by Jim Meyering.
12085
12086 2011-06-16  Bruno Haible  <bruno@clisp.org>
12087
12088         tmpfile-safer: Finish 2011-05-23 commit.
12089         * m4/stdio-safer.m4: Really remove file.
12090         Reported by Jim Meyering.
12091
12092 2011-06-16  Bruno Haible  <bruno@clisp.org>
12093
12094         syntax-check: Fix typo.
12095         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12096         printf-posix.m4.
12097         Reported by Jim Meyering.
12098
12099 2011-06-13  Jim Meyering  <meyering@redhat.com>
12100
12101         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12102         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12103
12104 2011-05-23  Bruno Haible  <bruno@clisp.org>
12105
12106         yesno: Move AC_LIBOBJ invocations to module description.
12107         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12108         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12109
12110 2011-05-23  Bruno Haible  <bruno@clisp.org>
12111
12112         xstrtol: Move AC_LIBOBJ invocations to module description.
12113         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12114         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12115
12116 2011-05-23  Bruno Haible  <bruno@clisp.org>
12117
12118         xstrtold: Move AC_LIBOBJ invocations to module description.
12119         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12120         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12121
12122 2011-05-23  Bruno Haible  <bruno@clisp.org>
12123
12124         xstrtod: Move AC_LIBOBJ invocations to module description.
12125         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12126         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12127
12128 2011-05-23  Bruno Haible  <bruno@clisp.org>
12129
12130         xnanosleep: Move AC_LIBOBJ invocations to module description.
12131         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12132         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12133
12134 2011-05-23  Bruno Haible  <bruno@clisp.org>
12135
12136         xgetcwd: Move AC_LIBOBJ invocations to module description.
12137         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12138         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12139
12140 2011-05-23  Bruno Haible  <bruno@clisp.org>
12141
12142         xalloc: Move AC_LIBOBJ invocations to module description.
12143         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12144         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12145
12146 2011-05-23  Bruno Haible  <bruno@clisp.org>
12147
12148         write-any-file: Move AC_LIBOBJ invocations to module description.
12149         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12150         invocation.
12151         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12152
12153 2011-05-23  Bruno Haible  <bruno@clisp.org>
12154
12155         utimens: Move AC_LIBOBJ invocations to module description.
12156         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12157         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12158
12159 2011-05-23  Bruno Haible  <bruno@clisp.org>
12160
12161         utimecmp: Move AC_LIBOBJ invocations to module description.
12162         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12163         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12164
12165 2011-05-23  Bruno Haible  <bruno@clisp.org>
12166
12167         userspec: Move AC_LIBOBJ invocations to module description.
12168         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12169         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12170
12171 2011-05-23  Bruno Haible  <bruno@clisp.org>
12172
12173         unlinkdir: Move AC_LIBOBJ invocations to module description.
12174         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12175         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12176
12177 2011-05-23  Bruno Haible  <bruno@clisp.org>
12178
12179         unistd-safer: Move AC_LIBOBJ invocations to module description.
12180         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12181         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12182
12183 2011-05-23  Bruno Haible  <bruno@clisp.org>
12184
12185         tempname: Move AC_LIBOBJ invocations to module description.
12186         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12187         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12188
12189 2011-05-23  Bruno Haible  <bruno@clisp.org>
12190
12191         strftime: Move AC_LIBOBJ invocations to module description.
12192         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12193         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12194
12195 2011-05-23  Bruno Haible  <bruno@clisp.org>
12196
12197         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12198         * m4/stdlib-safer.m4: Remove file.
12199         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12200         (configure.ac): Remove gl_STDLIB_SAFER call.
12201         (Makefile.am): Augment lib_SOURCES.
12202
12203 2011-05-23  Bruno Haible  <bruno@clisp.org>
12204
12205         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12206         * m4/stdio-safer.m4: Remove file.
12207         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12208         (configure.ac): Remove gl_TMPFILE_SAFER call.
12209         (Makefile.am): Augment lib_SOURCES.
12210
12211 2011-05-23  Bruno Haible  <bruno@clisp.org>
12212
12213         popen-safer: Move AC_LIBOBJ invocations to module description.
12214         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12215         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12216         (configure.ac): Remove gl_POPEN_SAFER call.
12217         (Makefile.am): Augment lib_SOURCES.
12218
12219 2011-05-23  Bruno Haible  <bruno@clisp.org>
12220
12221         freopen-safer: Move AC_LIBOBJ invocations to module description.
12222         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12223         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12224         (configure.ac): Remove gl_FREOPEN_SAFER call.
12225         (Makefile.am): Augment lib_SOURCES.
12226
12227 2011-05-23  Bruno Haible  <bruno@clisp.org>
12228
12229         fopen-safer: Move AC_LIBOBJ invocations to module description.
12230         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12231         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12232         (configure.ac): Remove gl_FOPEN_SAFER call.
12233         (Makefile.am): Augment lib_SOURCES.
12234
12235 2011-05-23  Bruno Haible  <bruno@clisp.org>
12236
12237         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12238         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12239         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12240
12241 2011-05-23  Bruno Haible  <bruno@clisp.org>
12242
12243         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12244         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12245         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12246
12247 2011-05-23  Bruno Haible  <bruno@clisp.org>
12248
12249         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12250         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12251         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12252
12253 2011-05-23  Bruno Haible  <bruno@clisp.org>
12254
12255         settime: Move AC_LIBOBJ invocations to module description.
12256         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12257         * modules/settime (Makefile.am): Augment lib_SOURCES.
12258
12259 2011-05-23  Bruno Haible  <bruno@clisp.org>
12260
12261         savedir: Move AC_LIBOBJ invocations to module description.
12262         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12263         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12264
12265 2011-05-23  Bruno Haible  <bruno@clisp.org>
12266
12267         save-cwd: Move AC_LIBOBJ invocations to module description.
12268         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12269         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12270
12271 2011-05-23  Bruno Haible  <bruno@clisp.org>
12272
12273         same: Move AC_LIBOBJ invocations to module description.
12274         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12275         * modules/same (Makefile.am): Augment lib_SOURCES.
12276
12277 2011-05-23  Bruno Haible  <bruno@clisp.org>
12278
12279         safe-write: Move AC_LIBOBJ invocations to module description.
12280         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12281         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12282         instead of gl_SAFE_WRITE.
12283         (Makefile.am): Augment lib_SOURCES.
12284
12285 2011-05-23  Bruno Haible  <bruno@clisp.org>
12286
12287         safe-read: Move AC_LIBOBJ invocations to module description.
12288         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12289         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12290         of gl_SAFE_READ.
12291         (Makefile.am): Augment lib_SOURCES.
12292
12293 2011-05-23  Bruno Haible  <bruno@clisp.org>
12294
12295         safe-alloc: Move AC_LIBOBJ invocations to module description.
12296         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12297         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12298
12299 2011-05-23  Bruno Haible  <bruno@clisp.org>
12300
12301         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12302         * m4/rijndael.m4: Remove file.
12303         * modules/crypto/rijndael (Files): Remove it.
12304         (configure.ac): Remove gl_RIJNDAEL call.
12305         (Makefile.am): Augment lib_SOURCES.
12306
12307 2011-05-23  Bruno Haible  <bruno@clisp.org>
12308
12309         readtokens: Move AC_LIBOBJ invocations to module description.
12310         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12311         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12312
12313 2011-05-23  Bruno Haible  <bruno@clisp.org>
12314
12315         read-file: Move AC_LIBOBJ invocations to module description.
12316         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12317         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12318         of gl_FUNC_READ_FILE.
12319         (Makefile.am): Augment lib_SOURCES.
12320
12321 2011-05-23  Bruno Haible  <bruno@clisp.org>
12322
12323         quotearg: Move AC_LIBOBJ invocations to module description.
12324         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12325         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12326
12327 2011-05-23  Bruno Haible  <bruno@clisp.org>
12328
12329         quote: Move AC_LIBOBJ invocations to module description.
12330         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12331         * modules/quote (Makefile.am): Augment lib_SOURCES.
12332
12333 2011-05-23  Bruno Haible  <bruno@clisp.org>
12334
12335         posixver: Move AC_LIBOBJ invocations to module description.
12336         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12337         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12338
12339 2011-05-23  Bruno Haible  <bruno@clisp.org>
12340
12341         posixtm: Move AC_LIBOBJ invocations to module description.
12342         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12343         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12344
12345 2011-05-23  Bruno Haible  <bruno@clisp.org>
12346
12347         physmem: Move AC_LIBOBJ invocations to module description.
12348         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12349         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12350
12351 2011-05-23  Bruno Haible  <bruno@clisp.org>
12352
12353         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12354         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12355         invocation.
12356         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12357
12358 2011-05-23  Bruno Haible  <bruno@clisp.org>
12359
12360         mpsort: Move AC_LIBOBJ invocations to module description.
12361         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12362         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12363
12364 2011-05-23  Bruno Haible  <bruno@clisp.org>
12365
12366         modechange: Move AC_LIBOBJ invocations to module description.
12367         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12368         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12369
12370 2011-05-23  Bruno Haible  <bruno@clisp.org>
12371
12372         mkdir-p: Move AC_LIBOBJ invocations to module description.
12373         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12374         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12375
12376 2011-05-23  Bruno Haible  <bruno@clisp.org>
12377
12378         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12379         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12380         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12381
12382 2011-05-23  Bruno Haible  <bruno@clisp.org>
12383
12384         mgetgroups: Move AC_LIBOBJ invocations to module description.
12385         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12386         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12387
12388 2011-05-23  Bruno Haible  <bruno@clisp.org>
12389
12390         memxor: Move AC_LIBOBJ invocations to module description.
12391         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12392         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12393
12394 2011-05-23  Bruno Haible  <bruno@clisp.org>
12395
12396         memcoll: Move AC_LIBOBJ invocations to module description.
12397         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12398         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12399
12400 2011-05-23  Bruno Haible  <bruno@clisp.org>
12401
12402         memcasecmp: Move AC_LIBOBJ invocations to module description.
12403         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12404         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12405
12406 2011-05-23  Bruno Haible  <bruno@clisp.org>
12407
12408         crypto/md5: Move AC_LIBOBJ invocations to module description.
12409         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12410         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12411
12412 2011-05-23  Bruno Haible  <bruno@clisp.org>
12413
12414         crypto/md4: Move AC_LIBOBJ invocations to module description.
12415         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12416         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12417
12418 2011-05-23  Bruno Haible  <bruno@clisp.org>
12419
12420         crypto/md2: Move AC_LIBOBJ invocations to module description.
12421         * m4/md2.m4: Remove file.
12422         * modules/crypto/md2 (Files): Remove it.
12423         (configure.ac): Remove gl_MD2 call.
12424         (Makefile.am): Augment lib_SOURCES.
12425
12426 2011-05-23  Bruno Haible  <bruno@clisp.org>
12427
12428         long-options: Move AC_LIBOBJ invocations to module description.
12429         * m4/long-options.m4: Remove file.
12430         * modules/long-options (Files): Remove it.
12431         (configure.ac): Remove gl_LONG_OPTIONS call.
12432         (Makefile.am): Augment lib_SOURCES.
12433
12434 2011-05-23  Bruno Haible  <bruno@clisp.org>
12435
12436         i-ring: Move AC_LIBOBJ invocations to module description.
12437         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12438         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12439
12440 2011-05-23  Bruno Haible  <bruno@clisp.org>
12441
12442         idcache: Move AC_LIBOBJ invocations to module description.
12443         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12444         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12445
12446 2011-05-23  Bruno Haible  <bruno@clisp.org>
12447
12448         human: Move AC_LIBOBJ invocations to module description.
12449         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12450         * modules/human (Makefile.am): Augment lib_SOURCES.
12451
12452 2011-05-23  Bruno Haible  <bruno@clisp.org>
12453
12454         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12455         * m4/hmac-sha1.m4: Remove file.
12456         * modules/crypto/hmac-sha1 (Files): Remove it.
12457         (configure.ac): Remove gl_HMAC_SHA1 call.
12458         (Makefile.am): Augment lib_SOURCES.
12459
12460 2011-05-23  Bruno Haible  <bruno@clisp.org>
12461
12462         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12463         * m4/hmac-md5.m4: Remove file.
12464         * modules/crypto/hmac-md5 (Files): Remove it.
12465         (configure.ac): Remove gl_HMAC_MD5 call.
12466         (Makefile.am): Augment lib_SOURCES.
12467
12468 2011-05-23  Bruno Haible  <bruno@clisp.org>
12469
12470         hash: Move AC_LIBOBJ invocations to module description.
12471         * m4/hash.m4: Remove file.
12472         * modules/hash (Files): Remove it.
12473         (configure.ac): Remove gl_HASH call.
12474         (Makefile.am): Augment lib_SOURCES.
12475
12476 2011-05-23  Bruno Haible  <bruno@clisp.org>
12477
12478         hard-locale: Move AC_LIBOBJ invocations to module description.
12479         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12480         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12481
12482 2011-05-23  Bruno Haible  <bruno@clisp.org>
12483
12484         getugroups: Move AC_LIBOBJ invocations to module description.
12485         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12486         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12487
12488 2011-05-23  Bruno Haible  <bruno@clisp.org>
12489
12490         gettime: Move AC_LIBOBJ invocations to module description.
12491         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12492         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12493
12494 2011-05-23  Bruno Haible  <bruno@clisp.org>
12495
12496         getndelim2: Move AC_LIBOBJ invocations to module description.
12497         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12498         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12499
12500 2011-05-23  Bruno Haible  <bruno@clisp.org>
12501
12502         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12503         * m4/gc-pbkdf2-sha1.m4: Remove file.
12504         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12505         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12506         (Makefile.am): Augment lib_SOURCES.
12507
12508 2011-05-23  Bruno Haible  <bruno@clisp.org>
12509
12510         fts: Move AC_LIBOBJ invocations to module description.
12511         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12512         * modules/fts (configure.ac): ... to here.
12513
12514 2011-05-23  Bruno Haible  <bruno@clisp.org>
12515
12516         file-type: Move AC_LIBOBJ invocations to module description.
12517         * m4/file-type.m4: Remove file.
12518         * modules/file-type (Files): Remove it.
12519         (configure.ac): Remove gl_FILE_TYPE call.
12520         (Makefile.am): Augment lib_SOURCES.
12521
12522 2011-05-23  Bruno Haible  <bruno@clisp.org>
12523
12524         filenamecat*: Respect rules for use of AC_LIBOBJ.
12525         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12526         Remove AC_LIBOBJ invocation.
12527         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12528         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12529
12530 2011-05-23  Bruno Haible  <bruno@clisp.org>
12531
12532         filemode: Move AC_LIBOBJ invocations to module description.
12533         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12534         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12535
12536 2011-05-23  Bruno Haible  <bruno@clisp.org>
12537
12538         openat-safer: Move AC_LIBOBJ invocations to module description.
12539         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12540         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12541
12542 2011-05-23  Bruno Haible  <bruno@clisp.org>
12543
12544         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12545         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12546         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12547
12548 2011-05-23  Bruno Haible  <bruno@clisp.org>
12549
12550         exclude: Move AC_LIBOBJ invocations to module description.
12551         * m4/exclude.m4: Remove file.
12552         * modules/exclude (Files): Remove it.
12553         (configure.ac): Remove gl_EXCLUDE call.
12554         (Makefile.am): Augment lib_SOURCES.
12555
12556 2011-05-23  Bruno Haible  <bruno@clisp.org>
12557
12558         dirname*: Respect rules for use of AC_LIBOBJ.
12559         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12560         invocations.
12561         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12562         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12563
12564 2011-05-23  Bruno Haible  <bruno@clisp.org>
12565
12566         dirent-safer: Move AC_LIBOBJ invocations to module description.
12567         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12568         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12569
12570 2011-05-23  Bruno Haible  <bruno@clisp.org>
12571
12572         crypto/des: Move AC_LIBOBJ invocations to module description.
12573         * m4/des.m4: Remove file.
12574         * modules/crypto/des (Files): Remove it.
12575         (configure.ac): Remove gl_DES call.
12576         (Makefile.am): Augment lib_SOURCES.
12577
12578 2011-05-23  Bruno Haible  <bruno@clisp.org>
12579
12580         cycle-check: Move AC_LIBOBJ invocations to module description.
12581         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12582         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12583
12584 2011-05-23  Bruno Haible  <bruno@clisp.org>
12585
12586         c-strtold: Move AC_LIBOBJ invocations to module description.
12587         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12588         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12589
12590 2011-05-23  Bruno Haible  <bruno@clisp.org>
12591
12592         c-strtod: Move AC_LIBOBJ invocations to module description.
12593         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12594         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12595
12596 2011-05-23  Bruno Haible  <bruno@clisp.org>
12597
12598         crc: Move AC_LIBOBJ invocations to module description.
12599         * m4/crc.m4: Remove file.
12600         * modules/crc (Files): Remove it.
12601         (configure.ac): Remove gl_CRC call.
12602         (Makefile.am): Augment lib_SOURCES.
12603
12604 2011-05-23  Bruno Haible  <bruno@clisp.org>
12605
12606         close-stream: Move AC_LIBOBJ invocations to module description.
12607         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12608         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12609
12610 2011-05-23  Bruno Haible  <bruno@clisp.org>
12611
12612         closeout: Move AC_LIBOBJ invocations to module description.
12613         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12614         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12615
12616 2011-05-23  Bruno Haible  <bruno@clisp.org>
12617
12618         closein: Move AC_LIBOBJ invocations to module description.
12619         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12620         * modules/closein (Makefile.am): Augment lib_SOURCES.
12621
12622 2011-05-23  Bruno Haible  <bruno@clisp.org>
12623
12624         cloexec: Move AC_LIBOBJ invocations to module description.
12625         * m4/cloexec.m4: Remove file.
12626         * modules/cloexec (Files): Remove it.
12627         (configure.ac): Remove gl_CLOEXEC call.
12628         (Makefile.am): Augment lib_SOURCES.
12629
12630 2011-05-23  Bruno Haible  <bruno@clisp.org>
12631
12632         check-version: Move AC_LIBOBJ invocations to module description.
12633         * m4/check-version.m4: Remove file.
12634         * modules/check-version (Files): Remove it.
12635         (configure.ac): Remove gl_CHECK_VERSION call.
12636         (Makefile.am): Augment lib_SOURCES.
12637
12638 2011-05-23  Bruno Haible  <bruno@clisp.org>
12639
12640         chdir-safer: Move AC_LIBOBJ invocations to module description.
12641         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12642         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12643
12644 2011-05-23  Bruno Haible  <bruno@clisp.org>
12645
12646         canonicalize: Move AC_LIBOBJ invocations to module description.
12647         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12648         AC_LIBOBJ invocation.
12649         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12650
12651 2011-05-23  Bruno Haible  <bruno@clisp.org>
12652
12653         canon-host: Move AC_LIBOBJ invocations to module description.
12654         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12655         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12656         instead of gl_CANON_HOST.
12657         (Makefile.am): Augment lib_SOURCES.
12658
12659 2011-05-23  Bruno Haible  <bruno@clisp.org>
12660
12661         backupfile: Move AC_LIBOBJ invocations to module description.
12662         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12663         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12664
12665 2011-05-23  Bruno Haible  <bruno@clisp.org>
12666
12667         argmatch: Move AC_LIBOBJ invocations to module description.
12668         * m4/argmatch.m4: Remove file.
12669         * modules/argmatch (Files): Remove it.
12670         (configure.ac): Remove gl_ARGMATCH call.
12671         (Makefile.am): Augment lib_SOURCES.
12672
12673 2011-05-23  Bruno Haible  <bruno@clisp.org>
12674
12675         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12676         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12677         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12678
12679 2011-05-23  Bruno Haible  <bruno@clisp.org>
12680
12681         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12682         * m4/arcfour.m4: Remove file.
12683         * modules/crypto/arcfour (Files): Remove it.
12684         (configure.ac): Remove gl_ARCFOUR call.
12685         (Makefile.am): Augment lib_SOURCES.
12686
12687 2011-05-22  Bruno Haible  <bruno@clisp.org>
12688
12689         write: Move AC_LIBOBJ invocations to module description.
12690         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12691         * modules/write (configure.ac): ... to here.
12692
12693 2011-05-22  Bruno Haible  <bruno@clisp.org>
12694
12695         wmemset: Move AC_LIBOBJ invocations to module description.
12696         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12697         here...
12698         * modules/wmemset (configure.ac): ... to here.
12699
12700 2011-05-22  Bruno Haible  <bruno@clisp.org>
12701
12702         wmemmove: Move AC_LIBOBJ invocations to module description.
12703         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12704         here...
12705         * modules/wmemmove (configure.ac): ... to here.
12706
12707 2011-05-22  Bruno Haible  <bruno@clisp.org>
12708
12709         wmemcpy: Move AC_LIBOBJ invocations to module description.
12710         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12711         here...
12712         * modules/wmemcpy (configure.ac): ... to here.
12713
12714 2011-05-22  Bruno Haible  <bruno@clisp.org>
12715
12716         wmemcmp: Move AC_LIBOBJ invocations to module description.
12717         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12718         here...
12719         * modules/wmemcmp (configure.ac): ... to here.
12720
12721 2011-05-22  Bruno Haible  <bruno@clisp.org>
12722
12723         wmemchr: Move AC_LIBOBJ invocations to module description.
12724         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12725         here...
12726         * modules/wmemchr (configure.ac): ... to here.
12727
12728 2011-05-22  Bruno Haible  <bruno@clisp.org>
12729
12730         wcswidth: Move AC_LIBOBJ invocations to module description.
12731         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12732         here...
12733         * modules/wcswidth (configure.ac): ... to here.
12734
12735 2011-05-22  Bruno Haible  <bruno@clisp.org>
12736
12737         wcwidth: Respect rules for use of AC_LIBOBJ.
12738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12739         invocation from here...
12740         * modules/wcwidth (configure.ac): ... to here.
12741         (Depends-on): Update conditions.
12742
12743 2011-05-22  Bruno Haible  <bruno@clisp.org>
12744
12745         wctype: Move AC_LIBOBJ invocations to module description.
12746         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12747         invocation from here...
12748         * modules/wctype (configure.ac): ... to here.
12749         (Depends-on): Update conditions.
12750
12751 2011-05-22  Bruno Haible  <bruno@clisp.org>
12752
12753         wctrans: Move AC_LIBOBJ invocations to module description.
12754         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12755         invocation from here...
12756         * modules/wctrans (configure.ac): ... to here.
12757
12758 2011-05-22  Bruno Haible  <bruno@clisp.org>
12759
12760         wctomb: Move AC_LIBOBJ invocations to module description.
12761         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12762         invocations from here...
12763         * modules/wctomb (configure.ac): ... to here.
12764
12765 2011-05-22  Bruno Haible  <bruno@clisp.org>
12766
12767         wctob: Move AC_LIBOBJ invocations to module description.
12768         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12769         gl_PREREQ_WCTOB invocations from here...
12770         * modules/wctob (configure.ac): ... to here.
12771         (Depends-on): Update conditions.
12772
12773 2011-05-22  Bruno Haible  <bruno@clisp.org>
12774
12775         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12776         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12777         here...
12778         * modules/wcsxfrm (configure.ac): ... to here.
12779
12780 2011-05-22  Bruno Haible  <bruno@clisp.org>
12781
12782         wcstok: Move AC_LIBOBJ invocations to module description.
12783         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12784         * modules/wcstok (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         wcsstr: Move AC_LIBOBJ invocations to module description.
12789         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12790         * modules/wcsstr (configure.ac): ... to here.
12791
12792 2011-05-22  Bruno Haible  <bruno@clisp.org>
12793
12794         wcsspn: Move AC_LIBOBJ invocations to module description.
12795         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12796         * modules/wcsspn (configure.ac): ... to here.
12797
12798 2011-05-22  Bruno Haible  <bruno@clisp.org>
12799
12800         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12801         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12802         gl_PREREQ_WCSRTOMBS invocations from here...
12803         * modules/wcsrtombs (configure.ac): ... to here.
12804
12805 2011-05-22  Bruno Haible  <bruno@clisp.org>
12806
12807         wcsrchr: Move AC_LIBOBJ invocations to module description.
12808         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12809         here...
12810         * modules/wcsrchr (configure.ac): ... to here.
12811
12812 2011-05-22  Bruno Haible  <bruno@clisp.org>
12813
12814         wcspbrk: Move AC_LIBOBJ invocations to module description.
12815         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12816         here...
12817         * modules/wcspbrk (configure.ac): ... to here.
12818
12819 2011-05-22  Bruno Haible  <bruno@clisp.org>
12820
12821         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12822         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12823         gl_PREREQ_WCSNRTOMBS invocations from here...
12824         * modules/wcsnrtombs (configure.ac): ... to here.
12825
12826 2011-05-22  Bruno Haible  <bruno@clisp.org>
12827
12828         wcsnlen: Move AC_LIBOBJ invocations to module description.
12829         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12830         here...
12831         * modules/wcsnlen (configure.ac): ... to here.
12832
12833 2011-05-22  Bruno Haible  <bruno@clisp.org>
12834
12835         wcsncpy: Move AC_LIBOBJ invocations to module description.
12836         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12837         here...
12838         * modules/wcsncpy (configure.ac): ... to here.
12839
12840 2011-05-22  Bruno Haible  <bruno@clisp.org>
12841
12842         wcsncmp: Move AC_LIBOBJ invocations to module description.
12843         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12844         here...
12845         * modules/wcsncmp (configure.ac): ... to here.
12846
12847 2011-05-22  Bruno Haible  <bruno@clisp.org>
12848
12849         wcsncat: Move AC_LIBOBJ invocations to module description.
12850         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12851         here...
12852         * modules/wcsncat (configure.ac): ... to here.
12853
12854 2011-05-22  Bruno Haible  <bruno@clisp.org>
12855
12856         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12857         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12858         from here...
12859         * modules/wcsncasecmp (configure.ac): ... to here.
12860
12861 2011-05-22  Bruno Haible  <bruno@clisp.org>
12862
12863         wcslen: Move AC_LIBOBJ invocations to module description.
12864         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12865         * modules/wcslen (configure.ac): ... to here.
12866
12867 2011-05-22  Bruno Haible  <bruno@clisp.org>
12868
12869         wcsdup: Move AC_LIBOBJ invocations to module description.
12870         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12871         * modules/wcsdup (configure.ac): ... to here.
12872
12873 2011-05-22  Bruno Haible  <bruno@clisp.org>
12874
12875         wcscspn: Move AC_LIBOBJ invocations to module description.
12876         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12877         here...
12878         * modules/wcscspn (configure.ac): ... to here.
12879
12880 2011-05-22  Bruno Haible  <bruno@clisp.org>
12881
12882         wcscpy: Move AC_LIBOBJ invocations to module description.
12883         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12884         * modules/wcscpy (configure.ac): ... to here.
12885
12886 2011-05-22  Bruno Haible  <bruno@clisp.org>
12887
12888         wcscoll: Move AC_LIBOBJ invocations to module description.
12889         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12890         here...
12891         * modules/wcscoll (configure.ac): ... to here.
12892
12893 2011-05-22  Bruno Haible  <bruno@clisp.org>
12894
12895         wcscmp: Move AC_LIBOBJ invocations to module description.
12896         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12897         * modules/wcscmp (configure.ac): ... to here.
12898
12899 2011-05-22  Bruno Haible  <bruno@clisp.org>
12900
12901         wcschr: Move AC_LIBOBJ invocations to module description.
12902         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12903         * modules/wcschr (configure.ac): ... to here.
12904
12905 2011-05-22  Bruno Haible  <bruno@clisp.org>
12906
12907         wcscat: Move AC_LIBOBJ invocations to module description.
12908         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12909         * modules/wcscat (configure.ac): ... to here.
12910
12911 2011-05-22  Bruno Haible  <bruno@clisp.org>
12912
12913         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12914         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12915         here...
12916         * modules/wcscasecmp (configure.ac): ... to here.
12917
12918 2011-05-22  Bruno Haible  <bruno@clisp.org>
12919
12920         wcrtomb: Move AC_LIBOBJ invocations to module description.
12921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12922         invocations from here...
12923         * modules/wcrtomb (configure.ac): ... to here.
12924
12925 2011-05-22  Bruno Haible  <bruno@clisp.org>
12926
12927         wcpncpy: Move AC_LIBOBJ invocations to module description.
12928         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12929         here...
12930         * modules/wcpncpy (configure.ac): ... to here.
12931
12932 2011-05-22  Bruno Haible  <bruno@clisp.org>
12933
12934         wcpcpy: Move AC_LIBOBJ invocations to module description.
12935         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12936         * modules/wcpcpy (configure.ac): ... to here.
12937
12938 2011-05-22  Bruno Haible  <bruno@clisp.org>
12939
12940         waitpid: Move AC_LIBOBJ invocations to module description.
12941         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12942         invocation from here...
12943         * modules/waitpid (configure.ac): ... to here.
12944
12945 2011-05-22  Bruno Haible  <bruno@clisp.org>
12946
12947         utimensat: Move AC_LIBOBJ invocations to module description.
12948         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12949         here...
12950         * modules/utimensat (configure.ac): ... to here.
12951
12952 2011-05-22  Bruno Haible  <bruno@clisp.org>
12953
12954         usleep: Move AC_LIBOBJ invocations to module description.
12955         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12956         here...
12957         * modules/usleep (configure.ac): ... to here.
12958
12959 2011-05-22  Bruno Haible  <bruno@clisp.org>
12960
12961         unlockpt: Move AC_LIBOBJ invocations to module description.
12962         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12963         gl_PREREQ_UNLOCKPT invocations from here...
12964         * modules/unlockpt (configure.ac): ... to here.
12965
12966 2011-05-22  Bruno Haible  <bruno@clisp.org>
12967
12968         unlink: Respect rules for use of AC_LIBOBJ.
12969         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12970         * modules/unlink (configure.ac): ... to here.
12971
12972 2011-05-22  Bruno Haible  <bruno@clisp.org>
12973
12974         uname: Move AC_LIBOBJ invocations to module description.
12975         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12976         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12977         here...
12978         * modules/uname (configure.ac): ... to here.
12979
12980 2011-05-22  Bruno Haible  <bruno@clisp.org>
12981
12982         ttyname_r: Move AC_LIBOBJ invocations to module description.
12983         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12984         gl_PREREQ_TTYNAME_R invocations from here...
12985         * modules/ttyname_r (configure.ac): ... to here.
12986
12987 2011-05-22  Bruno Haible  <bruno@clisp.org>
12988
12989         tsearch: Move AC_LIBOBJ invocations to module description.
12990         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12991         invocations from here...
12992         * modules/tsearch (configure.ac): ... to here.
12993
12994 2011-05-22  Bruno Haible  <bruno@clisp.org>
12995
12996         towctrans: Move AC_LIBOBJ invocations to module description.
12997         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12998         AC_LIBOBJ invocation from here...
12999         * modules/towctrans (configure.ac): ... to here.
13000
13001 2011-05-22  Bruno Haible  <bruno@clisp.org>
13002
13003         tmpfile: Move AC_LIBOBJ invocations to module description.
13004         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13005         invocations from here...
13006         * modules/tmpfile (configure.ac): ... to here.
13007
13008 2011-05-22  Bruno Haible  <bruno@clisp.org>
13009
13010         times: Move AC_LIBOBJ invocations to module description.
13011         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13012         * modules/times (configure.ac): ... to here.
13013
13014 2011-05-22  Bruno Haible  <bruno@clisp.org>
13015
13016         time_r: Move AC_LIBOBJ invocations to module description.
13017         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13018         invocations from here...
13019         * modules/time_r (configure.ac): ... to here.
13020
13021 2011-05-22  Bruno Haible  <bruno@clisp.org>
13022
13023         timegm: Move AC_LIBOBJ invocations to module description.
13024         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13025         invocations from here...
13026         * modules/timegm (configure.ac): ... to here.
13027
13028 2011-05-22  Bruno Haible  <bruno@clisp.org>
13029
13030         tcgetsid: Move AC_LIBOBJ invocations to module description.
13031         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13032         and gl_PREREQ_TCGETSID invocations from here...
13033         * modules/tcgetsid (configure.ac): ... to here.
13034         (Depends-on): Update conditions.
13035
13036 2011-05-22  Bruno Haible  <bruno@clisp.org>
13037
13038         symlinkat: Move AC_LIBOBJ invocations to module description.
13039         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13040         here...
13041         * modules/symlinkat (configure.ac): ... to here.
13042
13043 2011-05-22  Bruno Haible  <bruno@clisp.org>
13044
13045         symlink: Move AC_LIBOBJ invocations to module description.
13046         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13047         here...
13048         * modules/symlink (configure.ac): ... to here.
13049
13050 2011-05-22  Bruno Haible  <bruno@clisp.org>
13051
13052         strverscmp: Move AC_LIBOBJ invocations to module description.
13053         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13055         from here...
13056         * modules/strverscmp (configure.ac): ... to here.
13057
13058 2011-05-22  Bruno Haible  <bruno@clisp.org>
13059
13060         strtok_r: Move AC_LIBOBJ invocations to module description.
13061         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13062         and gl_PREREQ_STRTOK_R invocations from here...
13063         * modules/strtok_r (configure.ac): ... to here.
13064         (Depends-on): Update conditions.
13065
13066 2011-05-22  Bruno Haible  <bruno@clisp.org>
13067
13068         strtoumax: Move AC_LIBOBJ invocations to module description.
13069         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13070         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13071         from here...
13072         * modules/strtoumax (configure.ac): ... to here.
13073
13074 2011-05-22  Bruno Haible  <bruno@clisp.org>
13075
13076         strtoimax: Move AC_LIBOBJ invocations to module description.
13077         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13079         from here...
13080         * modules/strtoimax (configure.ac): ... to here.
13081
13082 2011-05-22  Bruno Haible  <bruno@clisp.org>
13083
13084         strtoull: Move AC_LIBOBJ invocations to module description.
13085         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13086         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13087         from here...
13088         * modules/strtoull (configure.ac): ... to here.
13089
13090 2011-05-22  Bruno Haible  <bruno@clisp.org>
13091
13092         strtoll: Move AC_LIBOBJ invocations to module description.
13093         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13095         here...
13096         * modules/strtoll (configure.ac): ... to here.
13097
13098 2011-05-22  Bruno Haible  <bruno@clisp.org>
13099
13100         strtoul: Move AC_LIBOBJ invocations to module description.
13101         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13102         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13103         * modules/strtoul (configure.ac): ... to here.
13104
13105 2011-05-22  Bruno Haible  <bruno@clisp.org>
13106
13107         strtol: Move AC_LIBOBJ invocations to module description.
13108         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13109         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13110         * modules/strtol (configure.ac): ... to here.
13111
13112 2011-05-22  Bruno Haible  <bruno@clisp.org>
13113
13114         strtod: Move AC_LIBOBJ invocations to module description.
13115         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13116         invocations from here...
13117         * modules/strtod (configure.ac): ... to here.
13118
13119 2011-05-22  Bruno Haible  <bruno@clisp.org>
13120
13121         strstr*: Move AC_LIBOBJ invocations to module description.
13122         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13123         invocations from here...
13124         * modules/strstr-simple (configure.ac): ... to here.
13125         * modules/strstr (configure.ac): ... and here.
13126
13127 2011-05-22  Bruno Haible  <bruno@clisp.org>
13128
13129         strsignal: Move AC_LIBOBJ invocations to module description.
13130         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13131         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13132         * modules/strsignal (configure.ac): ... to here.
13133         (Depends-on): Update conditions.
13134
13135 2011-05-22  Bruno Haible  <bruno@clisp.org>
13136
13137         strsep: Move AC_LIBOBJ invocations to module description.
13138         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13140         here...
13141         * modules/strsep (configure.ac): ... to here.
13142
13143 2011-05-22  Bruno Haible  <bruno@clisp.org>
13144
13145         strptime: Move AC_LIBOBJ invocations to module description.
13146         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13147         gl_PREREQ_STRPTIME invocations from here...
13148         * modules/strptime (configure.ac): ... to here.
13149
13150 2011-05-22  Bruno Haible  <bruno@clisp.org>
13151
13152         strpbrk: Move AC_LIBOBJ invocations to module description.
13153         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13155         here...
13156         * modules/strpbrk (configure.ac): ... to here.
13157
13158 2011-05-22  Bruno Haible  <bruno@clisp.org>
13159
13160         strnlen: Move AC_LIBOBJ invocations to module description.
13161         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13162         invocations from here...
13163         * modules/strnlen (configure.ac): ... to here.
13164
13165 2011-05-22  Bruno Haible  <bruno@clisp.org>
13166
13167         strndup: Move AC_LIBOBJ invocations to module description.
13168         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13169         invocations from here...
13170         * modules/strndup (configure.ac): ... to here.
13171         (Depends-on): Update conditions.
13172
13173 2011-05-22  Bruno Haible  <bruno@clisp.org>
13174
13175         strncat: Move AC_LIBOBJ invocations to module description.
13176         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13177         invocations from here...
13178         * modules/strncat (configure.ac): ... to here.
13179
13180 2011-05-22  Bruno Haible  <bruno@clisp.org>
13181
13182         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13183         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13184         invocations from here...
13185         * modules/strdup (configure.ac): ... to here.
13186         * modules/strdup-posix (configure.ac): ... and here.
13187
13188 2011-05-22  Bruno Haible  <bruno@clisp.org>
13189
13190         strcspn: Move AC_LIBOBJ invocations to module description.
13191         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13192         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13193         here...
13194         * modules/strcspn (configure.ac): ... to here.
13195
13196 2011-05-22  Bruno Haible  <bruno@clisp.org>
13197
13198         strchrnul: Move AC_LIBOBJ invocations to module description.
13199         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13200         gl_PREREQ_STRCHRNUL invocations from here...
13201         * modules/strchrnul (configure.ac): ... to here.
13202
13203 2011-05-22  Bruno Haible  <bruno@clisp.org>
13204
13205         strcasestr*: Move AC_LIBOBJ invocations to module description.
13206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13207         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13208         * modules/strcasestr-simple (configure.ac): ... to here.
13209         * modules/strcasestr (configure.ac): ... and here.
13210
13211 2011-05-22  Bruno Haible  <bruno@clisp.org>
13212
13213         strcase: Move AC_LIBOBJ invocations to module description.
13214         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13215         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13216         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13217         gl_PREREQ_STRNCASECMP invocations from here...
13218         * modules/strcase (configure.ac): ... to here.
13219
13220 2011-05-22  Bruno Haible  <bruno@clisp.org>
13221
13222         stpncpy: Move AC_LIBOBJ invocations to module description.
13223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13224         here...
13225         * modules/stpncpy (configure.ac): ... to here.
13226
13227 2011-05-22  Bruno Haible  <bruno@clisp.org>
13228
13229         stpcpy: Move AC_LIBOBJ invocations to module description.
13230         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13231         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13232         here...
13233         * modules/stpcpy (configure.ac): ... to here.
13234
13235 2011-05-21  Bruno Haible  <bruno@clisp.org>
13236
13237         stat: Move AC_LIBOBJ invocations to module description.
13238         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13239         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13240         here...
13241         * modules/stat (configure.ac): ... to here.
13242
13243 2011-05-21  Bruno Haible  <bruno@clisp.org>
13244
13245         sleep: Move AC_LIBOBJ invocations to module description.
13246         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13247         * modules/sleep (configure.ac): ... to here.
13248
13249 2011-05-21  Bruno Haible  <bruno@clisp.org>
13250
13251         signbit: Move AC_LIBOBJ invocations to module description.
13252         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13253         * modules/signbit (configure.ac): ... to here.
13254
13255 2011-05-21  Bruno Haible  <bruno@clisp.org>
13256
13257         sigprocmask: Move AC_LIBOBJ invocations to module description.
13258         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13259         gl_PREREQ_SIGPROMASK invocations from here...
13260         * modules/sigprocmask (configure.ac): ... to here.
13261
13262 2011-05-21  Bruno Haible  <bruno@clisp.org>
13263
13264         sigaction: Move AC_LIBOBJ invocations to module description.
13265         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13266         gl_PREREQ_SIGACTION invocations from here...
13267         * modules/sigaction (configure.ac): ... to here.
13268
13269 2011-05-21  Bruno Haible  <bruno@clisp.org>
13270
13271         sig2str: Move AC_LIBOBJ invocations to module description.
13272         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13274         here...
13275         * modules/sig2str (configure.ac): ... to here.
13276
13277 2011-05-21  Bruno Haible  <bruno@clisp.org>
13278
13279         setlocale: Move AC_LIBOBJ invocations to module description.
13280         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13281         gl_PREREQ_SETLOCALE invocations from here...
13282         * modules/setlocale (configure.ac): ... to here.
13283
13284 2011-05-21  Bruno Haible  <bruno@clisp.org>
13285
13286         unsetenv: Move AC_LIBOBJ invocations to module description.
13287         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13288         and gl_PREREQ_UNSETENV invocations from here...
13289         * modules/unsetenv (configure.ac): ... to here.
13290         (Depends-on): Update.
13291
13292 2011-05-21  Bruno Haible  <bruno@clisp.org>
13293
13294         setenv: Move AC_LIBOBJ invocations to module description.
13295         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13296         here...
13297         * modules/setenv (configure.ac): ... to here.
13298
13299 2011-05-21  Bruno Haible  <bruno@clisp.org>
13300
13301         selinux-h: Move AC_LIBOBJ invocations to module description.
13302         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13303         AC_LIBOBJ invocation from here...
13304         * modules/selinux-h (configure.ac): ... to here.
13305
13306 2011-05-21  Bruno Haible  <bruno@clisp.org>
13307
13308         select: Respect rules for use of AC_LIBOBJ.
13309         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13310         here...
13311         * modules/select (configure.ac): ... to here.
13312
13313 2011-05-21  Bruno Haible  <bruno@clisp.org>
13314
13315         scandir: Move AC_LIBOBJ invocations to module description.
13316         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13317         invocations from here...
13318         * modules/scandir (configure.ac): ... to here.
13319
13320 2011-05-21  Bruno Haible  <bruno@clisp.org>
13321
13322         rpmatch: Move AC_LIBOBJ invocations to module description.
13323         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13324         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13325         here...
13326         * modules/rpmatch (configure.ac): ... to here.
13327
13328 2011-05-21  Bruno Haible  <bruno@clisp.org>
13329
13330         rmdir: Respect rules for use of AC_LIBOBJ.
13331         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13332         * modules/rmdir (configure.ac): ... to here.
13333
13334 2011-05-21  Bruno Haible  <bruno@clisp.org>
13335
13336         renameat: Move AC_LIBOBJ invocations to module description.
13337         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13338         here...
13339         * modules/renameat (configure.ac): ... to here.
13340
13341 2011-05-21  Bruno Haible  <bruno@clisp.org>
13342
13343         rename: Respect rules for use of AC_LIBOBJ.
13344         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13345         here...
13346         * modules/rename (configure.ac): ... to here.
13347
13348 2011-05-21  Bruno Haible  <bruno@clisp.org>
13349
13350         remove: Move AC_LIBOBJ invocations to module description.
13351         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13352         here...
13353         * modules/remove (configure.ac): ... to here.
13354
13355 2011-05-21  Bruno Haible  <bruno@clisp.org>
13356
13357         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13358         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13359         macro.
13360         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13361         * modules/relocatable-lib (configure.ac): ... to here.
13362         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13363         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13364
13365 2011-05-21  Bruno Haible  <bruno@clisp.org>
13366
13367         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13368         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13369         here...
13370         * modules/relocatable-prog (configure.ac): ... to here.
13371
13372 2011-05-21  Bruno Haible  <bruno@clisp.org>
13373
13374         regex: Move AC_LIBOBJ invocations to module description.
13375         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13376         invocations from here...
13377         * modules/regex (configure.ac): ... to here.
13378
13379 2011-05-21  Bruno Haible  <bruno@clisp.org>
13380
13381         realloc-*: Move AC_LIBOBJ invocations to module description.
13382         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13383         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13384         AC_LIBOBJ invocations from here...
13385         * modules/realloc-gnu (configure.ac): ... to here.
13386         * modules/realloc-posix (configure.ac): ... and here.
13387
13388 2011-05-21  Bruno Haible  <bruno@clisp.org>
13389
13390         readutmp: Move AC_LIBOBJ invocations to module description.
13391         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13392         * modules/readutmp (configure.ac): ... to here.
13393
13394 2011-05-21  Bruno Haible  <bruno@clisp.org>
13395
13396         readlinkat: Move AC_LIBOBJ invocations to module description.
13397         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13398         here...
13399         * modules/readlinkat (configure.ac): ... to here.
13400
13401 2011-05-21  Bruno Haible  <bruno@clisp.org>
13402
13403         readlink: Move AC_LIBOBJ invocations to module description.
13404         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13405         gl_PREREQ_READLINK invocations from here...
13406         * modules/readlink (configure.ac): ... to here.
13407
13408 2011-05-21  Bruno Haible  <bruno@clisp.org>
13409
13410         readline: Move AC_LIBOBJ invocations to module description.
13411         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13412         gl_PREREQ_READLINE invocations from here...
13413         * modules/readline (configure.ac): ... to here.
13414
13415 2011-05-21  Bruno Haible  <bruno@clisp.org>
13416
13417         read: Move AC_LIBOBJ invocations to module description.
13418         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13419         * modules/read (configure.ac): ... to here.
13420
13421 2011-05-21  Bruno Haible  <bruno@clisp.org>
13422
13423         rawmemchr: Move AC_LIBOBJ invocations to module description.
13424         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13426         from here...
13427         * modules/rawmemchr (configure.ac): ... to here.
13428
13429 2011-05-21  Bruno Haible  <bruno@clisp.org>
13430
13431         random_r: Move AC_LIBOBJ invocations to module description.
13432         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13433         gl_PREREQ_RANDOM_R invocations from here...
13434         * modules/random_r (configure.ac): ... to here.
13435
13436 2011-05-21  Bruno Haible  <bruno@clisp.org>
13437
13438         pwrite: Move AC_LIBOBJ invocations to module description.
13439         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13440         * modules/pwrite (configure.ac): ... to here.
13441
13442 2011-05-21  Bruno Haible  <bruno@clisp.org>
13443
13444         putenv: Move AC_LIBOBJ invocations to module description.
13445         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13446         * modules/putenv (configure.ac): ... to here.
13447
13448 2011-05-21  Bruno Haible  <bruno@clisp.org>
13449
13450         login_tty: Move AC_LIBOBJ invocations to module description.
13451         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13452         * modules/login_tty (configure.ac): ... to here.
13453
13454 2011-05-21  Bruno Haible  <bruno@clisp.org>
13455
13456         openpty: Move AC_LIBOBJ invocations to module description.
13457         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13458         * modules/openpty (configure.ac): ... to here.
13459
13460 2011-05-21  Bruno Haible  <bruno@clisp.org>
13461
13462         forkpty: Move AC_LIBOBJ invocations to module description.
13463         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13464         * modules/forkpty (configure.ac): ... to here.
13465
13466 2011-05-21  Bruno Haible  <bruno@clisp.org>
13467
13468         ptsname: Move AC_LIBOBJ invocations to module description.
13469         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13470         invocations from here...
13471         * modules/ptsname (configure.ac): ... to here.
13472
13473 2011-05-21  Bruno Haible  <bruno@clisp.org>
13474
13475         pread: Move AC_LIBOBJ invocations to module description.
13476         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13477         * modules/pread (configure.ac): ... to here.
13478
13479 2011-05-21  Bruno Haible  <bruno@clisp.org>
13480
13481         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13482         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13483         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13484         * modules/posix_spawn (configure.ac): ... to here.
13485         * modules/posix_spawnp (configure.ac): ... and here.
13486
13487 2011-05-21  Bruno Haible  <bruno@clisp.org>
13488
13489         popen: Move AC_LIBOBJ invocations to module description.
13490         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13491         invocations from here...
13492         * modules/popen (configure.ac): ... to here.
13493
13494 2011-05-21  Bruno Haible  <bruno@clisp.org>
13495
13496         poll: Move AC_LIBOBJ invocations to module description.
13497         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13498         invocations from here...
13499         * modules/poll (configure.ac): ... to here.
13500
13501 2011-05-21  Bruno Haible  <bruno@clisp.org>
13502
13503         pipe-posix: Move AC_LIBOBJ invocations to module description.
13504         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13505         * modules/pipe-posix (configure.ac): ... to here.
13506
13507 2011-05-21  Bruno Haible  <bruno@clisp.org>
13508
13509         openat: Respect rules for use of AC_LIBOBJ.
13510         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13511         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13512         * modules/openat (configure.ac): ... to here.
13513
13514 2011-05-21  Bruno Haible  <bruno@clisp.org>
13515
13516         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13517         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13518         invocation from here...
13519         * modules/obstack-printf (configure.ac): ... to here.
13520         * modules/obstack-printf-posix (configure.ac): ... and here.
13521
13522 2011-05-21  Bruno Haible  <bruno@clisp.org>
13523
13524         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13525         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13526         from here...
13527         * modules/nl_langinfo (configure.ac): ... to here.
13528
13529 2011-05-21  Bruno Haible  <bruno@clisp.org>
13530
13531         nanosleep: Move AC_LIBOBJ invocations to module description.
13532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13533         gl_PREREQ_NANOSLEEP invocations from here...
13534         * modules/nanosleep (configure.ac): ... to here.
13535
13536 2011-05-21  Bruno Haible  <bruno@clisp.org>
13537
13538         mountlist: Move AC_LIBOBJ invocations to module description.
13539         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13540         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13541         * modules/mountlist (configure.ac): ... to here.
13542
13543 2011-05-21  Bruno Haible  <bruno@clisp.org>
13544
13545         mktime: Respect rules for use of AC_LIBOBJ.
13546         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13547         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13548         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13549         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13550         * modules/mktime (configure.ac): ... to here.
13551         * modules/mktime-internal (configure.ac): ... and here.
13552         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13553
13554 2011-05-21  Bruno Haible  <bruno@clisp.org>
13555
13556         mkstemps: Move AC_LIBOBJ invocations to module description.
13557         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13558         here...
13559         * modules/mkstemps (configure.ac): ... to here.
13560
13561 2011-05-21  Bruno Haible  <bruno@clisp.org>
13562
13563         mkstemp: Move AC_LIBOBJ invocations to module description.
13564         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13565         gl_PREREQ_MKSTEMP invocations from here...
13566         * modules/mkstemp (configure.ac): ... to here.
13567
13568 2011-05-21  Bruno Haible  <bruno@clisp.org>
13569
13570         mkostemps: Move AC_LIBOBJ invocations to module description.
13571         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13572         here...
13573         * modules/mkostemps (configure.ac): ... to here.
13574
13575 2011-05-21  Bruno Haible  <bruno@clisp.org>
13576
13577         mkostemp: Move AC_LIBOBJ invocations to module description.
13578         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13579         gl_PREREQ_MKOSTEMP invocations from here...
13580         * modules/mkostemp (configure.ac): ... to here.
13581
13582 2011-05-21  Bruno Haible  <bruno@clisp.org>
13583
13584         mknod: Move AC_LIBOBJ invocations to module description.
13585         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13586         * modules/mknod (configure.ac): ... to here.
13587
13588 2011-05-21  Bruno Haible  <bruno@clisp.org>
13589
13590         mkfifoat: Move AC_LIBOBJ invocations to module description.
13591         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13592         here...
13593         * modules/mkfifoat (configure.ac): ... to here.
13594
13595 2011-05-21  Bruno Haible  <bruno@clisp.org>
13596
13597         mkfifo: Respect rules for use of AC_LIBOBJ.
13598         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13599         here...
13600         * modules/mkfifo (configure.ac): ... to here.
13601
13602 2011-05-21  Bruno Haible  <bruno@clisp.org>
13603
13604         mkdtemp: Move AC_LIBOBJ invocations to module description.
13605         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13606         invocations from here...
13607         * modules/mkdtemp (configure.ac): ... to here.
13608
13609 2011-05-21  Bruno Haible  <bruno@clisp.org>
13610
13611         mkdir: Move AC_LIBOBJ invocations to module description.
13612         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13613         * modules/mkdir (configure.ac): ... to here.
13614
13615 2011-05-21  Bruno Haible  <bruno@clisp.org>
13616
13617         memset: Move AC_LIBOBJ invocations to module description.
13618         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13620         here...
13621         * modules/memset (configure.ac): ... to here.
13622
13623 2011-05-21  Bruno Haible  <bruno@clisp.org>
13624
13625         memrchr: Move AC_LIBOBJ invocations to module description.
13626         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13627         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13628         here...
13629         * modules/memrchr (configure.ac): ... to here.
13630
13631 2011-05-21  Bruno Haible  <bruno@clisp.org>
13632
13633         mempcpy: Move AC_LIBOBJ invocations to module description.
13634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13635         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13636         here...
13637         * modules/mempcpy (configure.ac): ... to here.
13638
13639 2011-05-21  Bruno Haible  <bruno@clisp.org>
13640
13641         memmove: Move AC_LIBOBJ invocations to module description.
13642         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13644         here...
13645         * modules/memmove (configure.ac): ... to here.
13646
13647 2011-05-21  Bruno Haible  <bruno@clisp.org>
13648
13649         memmem*: Move AC_LIBOBJ invocations to module description.
13650         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13651         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13652         here...
13653         (gl_FUNC_MEMMEM): ... and here...
13654         * modules/memmem-simple (configure.ac): ... to here.
13655         * modules/memmem (configure.ac): ... and here.
13656
13657 2011-05-21  Bruno Haible  <bruno@clisp.org>
13658
13659         memcpy: Move AC_LIBOBJ invocations to module description.
13660         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13661         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13662         here...
13663         * modules/memcpy (configure.ac): ... to here.
13664
13665 2011-05-21  Bruno Haible  <bruno@clisp.org>
13666
13667         memcmp: Simplify autoconf macro.
13668         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13669         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13670         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13671
13672 2011-05-21  Bruno Haible  <bruno@clisp.org>
13673
13674         memcmp: Move AC_LIBOBJ invocations to module description.
13675         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13676         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13677         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13678         * modules/memcmp (configure.ac): ... to here.
13679         (Depends-on): Update conditions.
13680
13681 2011-05-21  Bruno Haible  <bruno@clisp.org>
13682
13683         memchr: Respect rules for use of AC_LIBOBJ.
13684         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13685         invocations from here...
13686         * modules/memchr (configure.ac): ... to here.
13687
13688 2011-05-21  Bruno Haible  <bruno@clisp.org>
13689
13690         mbtowc: Move AC_LIBOBJ invocations to module description.
13691         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13692         invocations from here...
13693         * modules/mbtowc (configure.ac): ... to here.
13694
13695 2011-05-21  Bruno Haible  <bruno@clisp.org>
13696
13697         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13698         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13699         gl_PREREQ_MBSRTOWCS invocations from here...
13700         * modules/mbsrtowcs (configure.ac): ... to here.
13701
13702 2011-05-21  Bruno Haible  <bruno@clisp.org>
13703
13704         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13705         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13706         gl_PREREQ_MBSNRTOWCS invocations from here...
13707         * modules/mbsnrtowcs (configure.ac): ... to here.
13708
13709 2011-05-21  Bruno Haible  <bruno@clisp.org>
13710
13711         mbsinit: Move AC_LIBOBJ invocations to module description.
13712         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13713         invocations from here...
13714         * modules/mbsinit (configure.ac): ... to here.
13715
13716 2011-05-21  Bruno Haible  <bruno@clisp.org>
13717
13718         mbrlen: Move AC_LIBOBJ invocations to module description.
13719         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13720         invocations from here...
13721         * modules/mbrlen (configure.ac): ... to here.
13722
13723 2011-05-21  Bruno Haible  <bruno@clisp.org>
13724
13725         mbrtowc: Respect rules for use of AC_LIBOBJ.
13726         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13727         invocations from here...
13728         * modules/mbrtowc (configure.ac): ... to here.
13729
13730 2011-05-21  Bruno Haible  <bruno@clisp.org>
13731
13732         malloc-*: Move AC_LIBOBJ invocations to module description.
13733         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13734         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13735         AC_LIBOBJ invocations from here...
13736         * modules/malloc-gnu (configure.ac): ... to here.
13737         * modules/malloc-posix (configure.ac): ... and here.
13738
13739 2011-05-21  Bruno Haible  <bruno@clisp.org>
13740
13741         lstat, openat: Respect rules for use of AC_LIBOBJ.
13742         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13743         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13744         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13745         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13746         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13747         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13748         here.
13749         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         lseek: Move AC_LIBOBJ invocations to module description.
13754         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13755         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13756         * modules/lseek (configure.ac): ... to here.
13757
13758 2011-05-21  Bruno Haible  <bruno@clisp.org>
13759
13760         linkat: Move AC_LIBOBJ invocations to module description.
13761         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13762         here...
13763         * modules/linkat (configure.ac): ... to here.
13764
13765 2011-05-21  Bruno Haible  <bruno@clisp.org>
13766
13767         link: Respect rules for use of AC_LIBOBJ.
13768         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13769         * modules/link (configure.ac): ... to here.
13770
13771 2011-05-21  Bruno Haible  <bruno@clisp.org>
13772
13773         lchown: Move AC_LIBOBJ invocations to module description.
13774         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13775         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13776         * modules/lchown (configure.ac): ... to here.
13777
13778 2011-05-21  Bruno Haible  <bruno@clisp.org>
13779
13780         iswctype: Move AC_LIBOBJ invocations to module description.
13781         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13782         here...
13783         * modules/iswctype (configure.ac): ... to here.
13784
13785 2011-05-21  Bruno Haible  <bruno@clisp.org>
13786
13787         iswblank: Move AC_LIBOBJ invocations to module description.
13788         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13789         here...
13790         * modules/iswblank (configure.ac): ... to here.
13791
13792 2011-05-21  Bruno Haible  <bruno@clisp.org>
13793
13794         atanl: Move AC_LIBOBJ invocations to module description.
13795         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13796         * modules/atanl (configure.ac): ... to here.
13797
13798 2011-05-21  Bruno Haible  <bruno@clisp.org>
13799
13800         acosl: Move AC_LIBOBJ invocations to module description.
13801         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13802         * modules/acosl (configure.ac): ... to here.
13803
13804 2011-05-21  Bruno Haible  <bruno@clisp.org>
13805
13806         asinl: Respect rules for use of AC_LIBOBJ.
13807         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13808         * modules/asinl (configure.ac): ... to here.
13809
13810 2011-05-21  Bruno Haible  <bruno@clisp.org>
13811
13812         tanl: Move AC_LIBOBJ invocations to module description.
13813         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13814         * modules/tanl (configure.ac): ... to here.
13815
13816 2011-05-21  Bruno Haible  <bruno@clisp.org>
13817
13818         cosl: Move AC_LIBOBJ invocations to module description.
13819         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13820         * modules/cosl (configure.ac): ... to here.
13821
13822 2011-05-21  Bruno Haible  <bruno@clisp.org>
13823
13824         sinl: Move AC_LIBOBJ invocations to module description.
13825         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13826         * modules/sinl (configure.ac): ... to here.
13827
13828 2011-05-21  Bruno Haible  <bruno@clisp.org>
13829
13830         logl: Move AC_LIBOBJ invocations to module description.
13831         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13832         * modules/logl (configure.ac): ... to here.
13833
13834 2011-05-21  Bruno Haible  <bruno@clisp.org>
13835
13836         expl: Move AC_LIBOBJ invocations to module description.
13837         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13838         * modules/expl (configure.ac): ... to here.
13839
13840 2011-05-21  Bruno Haible  <bruno@clisp.org>
13841
13842         roundl: Move AC_LIBOBJ invocations to module description.
13843         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13844         * modules/roundl (configure.ac): ... to here.
13845
13846 2011-05-21  Bruno Haible  <bruno@clisp.org>
13847
13848         round: Move AC_LIBOBJ invocations to module description.
13849         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13850         * modules/round (configure.ac): ... to here.
13851
13852 2011-05-21  Bruno Haible  <bruno@clisp.org>
13853
13854         roundf: Move AC_LIBOBJ invocations to module description.
13855         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13856         * modules/roundf (configure.ac): ... to here.
13857
13858 2011-05-21  Bruno Haible  <bruno@clisp.org>
13859
13860         truncl: Move AC_LIBOBJ invocations to module description.
13861         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13862         * modules/truncl (configure.ac): ... to here.
13863
13864 2011-05-21  Bruno Haible  <bruno@clisp.org>
13865
13866         trunc: Move AC_LIBOBJ invocations to module description.
13867         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13868         * modules/trunc (configure.ac): ... to here.
13869
13870 2011-05-21  Bruno Haible  <bruno@clisp.org>
13871
13872         truncf: Move AC_LIBOBJ invocations to module description.
13873         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13874         * modules/truncf (configure.ac): ... to here.
13875
13876 2011-05-21  Bruno Haible  <bruno@clisp.org>
13877
13878         ceill: Move AC_LIBOBJ invocations to module description.
13879         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13880         * modules/ceill (configure.ac): ... to here.
13881
13882 2011-05-21  Bruno Haible  <bruno@clisp.org>
13883
13884         ceil: Move AC_LIBOBJ invocations to module description.
13885         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13886         * modules/ceil (configure.ac): ... to here.
13887
13888 2011-05-21  Bruno Haible  <bruno@clisp.org>
13889
13890         ceilf: Move AC_LIBOBJ invocations to module description.
13891         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13892         * modules/ceilf (configure.ac): ... to here.
13893
13894 2011-05-21  Bruno Haible  <bruno@clisp.org>
13895
13896         floorl: Respect rules for use of AC_LIBOBJ.
13897         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13898         * modules/floorl (configure.ac): ... to here.
13899
13900 2011-05-21  Bruno Haible  <bruno@clisp.org>
13901
13902         floor: Respect rules for use of AC_LIBOBJ.
13903         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13904         * modules/floor (configure.ac): ... to here.
13905
13906 2011-05-21  Bruno Haible  <bruno@clisp.org>
13907
13908         floorf: Move AC_LIBOBJ invocations to module description.
13909         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13910         * modules/floorf (configure.ac): ... to here.
13911
13912 2011-05-20  Bruno Haible  <bruno@clisp.org>
13913
13914         sqrtl: Respect rules for use of AC_LIBOBJ.
13915         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13916         * modules/sqrtl (configure.ac): ... to here.
13917
13918 2011-05-20  Bruno Haible  <bruno@clisp.org>
13919
13920         ldexpl: Respect rules for use of AC_LIBOBJ.
13921         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13922         * modules/ldexpl (configure.ac): ... to here.
13923
13924 2011-05-20  Bruno Haible  <bruno@clisp.org>
13925
13926         frexpl*: Respect rules for use of AC_LIBOBJ.
13927         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13928         invocation from here...
13929         * modules/frexpl (configure.ac): ... to here.
13930         * modules/frexpl-nolibm (configure.ac): ... and here.
13931
13932 2011-05-20  Bruno Haible  <bruno@clisp.org>
13933
13934         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13935         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13936         invocation from here...
13937         * modules/frexp (configure.ac): ... to here.
13938         * modules/frexp-nolibm (configure.ac): ... and here.
13939
13940 2011-05-20  Bruno Haible  <bruno@clisp.org>
13941
13942         isnan: Respect rules for use of AC_LIBOBJ.
13943         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13944         invocations here.
13945         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13946         REPLACE_ISNAN.
13947         * modules/isnand (configure.ac): Likewise.
13948         * modules/isnanl (configure.ac): Likewise.
13949
13950 2011-05-20  Bruno Haible  <bruno@clisp.org>
13951
13952         isnanl*: Respect rules for use of AC_LIBOBJ.
13953         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13954         invocation from here...
13955         * modules/isnanl (configure.ac): ... to here.
13956         * modules/isnanl-nolibm (configure.ac): ... and here.
13957
13958 2011-05-20  Bruno Haible  <bruno@clisp.org>
13959
13960         isnand*: Move AC_LIBOBJ invocations to module description.
13961         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13962         invocation from here...
13963         * modules/isnand (configure.ac): ... to here.
13964         * modules/isnand-nolibm (configure.ac): ... and here.
13965
13966 2011-05-20  Bruno Haible  <bruno@clisp.org>
13967
13968         isnanf*: Move AC_LIBOBJ invocations to module description.
13969         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13970         invocation from here...
13971         * modules/isnanf (configure.ac): ... to here.
13972         * modules/isnanf-nolibm (configure.ac): ... and here.
13973
13974 2011-05-20  Bruno Haible  <bruno@clisp.org>
13975
13976         isnan*: Separate the AC_LIBOBJ invocations.
13977         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13978         AC_LIBOBJ invocation.
13979         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13980         here.
13981         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13982         AC_LIBOBJ invocation.
13983         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13984         here.
13985         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13986         AC_LIBOBJ invocation.
13987         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13988         here.
13989         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13990
13991 2011-05-08  Bruno Haible  <bruno@clisp.org>
13992
13993         isinf: Move AC_LIBOBJ invocations to module description.
13994         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13995         * modules/isinf (configure.ac): ... to here.
13996
13997 2011-05-08  Bruno Haible  <bruno@clisp.org>
13998
13999         isfinite: Move AC_LIBOBJ invocations to module description.
14000         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14001         * modules/isfinite (configure.ac): ... to here.
14002
14003 2011-05-08  Bruno Haible  <bruno@clisp.org>
14004
14005         isblank: Move AC_LIBOBJ invocations to module description.
14006         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14007         here...
14008         * modules/isblank (configure.ac): ... to here.
14009
14010 2011-05-08  Bruno Haible  <bruno@clisp.org>
14011
14012         isapipe: Move AC_LIBOBJ invocations to module description.
14013         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14014         gl_PREREQ_ISAPIPE invocations from here...
14015         * modules/isapipe (configure.ac): ... to here.
14016         (Depends-on): Update condition.
14017
14018 2011-05-08  Bruno Haible  <bruno@clisp.org>
14019
14020         ioctl: Move AC_LIBOBJ invocations to module description.
14021         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14022         invocations from here...
14023         * modules/ioctl (configure.ac): ... to here.
14024         (Depends-on): Update condition.
14025
14026 2011-05-08  Bruno Haible  <bruno@clisp.org>
14027
14028         imaxdiv: Move AC_LIBOBJ invocations to module description.
14029         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14030         invocations from here...
14031         * modules/imaxdiv (configure.ac): ... to here.
14032
14033 2011-05-08  Bruno Haible  <bruno@clisp.org>
14034
14035         imaxabs: Move AC_LIBOBJ invocations to module description.
14036         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14037         invocations from here...
14038         * modules/imaxabs (configure.ac): ... to here.
14039
14040 2011-05-08  Bruno Haible  <bruno@clisp.org>
14041
14042         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14044         AC_LIBOBJ invocations from here...
14045         * modules/getaddrinfo (configure.ac): ... to here.
14046         (Depends-on): Add conditions.
14047
14048 2011-05-08  Bruno Haible  <bruno@clisp.org>
14049
14050         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14051         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14052         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14053         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14054         (gl_PREREQ_INET_PTON): ... from here.
14055         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14056         gl_PREREQ_INET_PTON here.
14057         (Depends-on): Update condition.
14058
14059 2011-05-08  Bruno Haible  <bruno@clisp.org>
14060
14061         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14062         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14063         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14064         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14065         (gl_PREREQ_INET_NTOP): ... from here.
14066         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14067         gl_PREREQ_INET_NTOP here.
14068         (Depends-on): Update condition.
14069
14070 2011-05-08  Bruno Haible  <bruno@clisp.org>
14071
14072         iconv_open: Move AC_LIBOBJ invocations to module description.
14073         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14074         AC_LIBOBJ invocations from here...
14075         * modules/iconv_open (configure.ac): ... to here.
14076
14077 2011-05-08  Bruno Haible  <bruno@clisp.org>
14078
14079         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14080         If module 'iconv_open' is among the main modules and module
14081         'iconv_open-utf' is among the tests dependencies, then
14082         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14083         return the special iconv_t values. Therefore iconv() and iconv_close()
14084         must support these special iconv_t values, already in lib, not only in
14085         tests.
14086         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14087         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14088         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14089         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14090         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14091         (Depends-on): Add the dependencies of iconv_open-utf.
14092         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14093         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14094         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14095
14096 2011-05-08  Bruno Haible  <bruno@clisp.org>
14097
14098         group-member: Move AC_LIBOBJ invocations to module description.
14099         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14100         gl_PREREQ_GROUP_MEMBER invocations from here...
14101         * modules/group-member (configure.ac): ... to here.
14102
14103 2011-05-08  Bruno Haible  <bruno@clisp.org>
14104
14105         grantpt: Move AC_LIBOBJ invocations to module description.
14106         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14107         invocations from here...
14108         * modules/grantpt (configure.ac): ... to here.
14109
14110 2011-05-08  Bruno Haible  <bruno@clisp.org>
14111
14112         glob: Move AC_LIBOBJ invocations to module description.
14113         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14114         from here...
14115         * modules/glob (configure.ac): ... to here.
14116
14117 2011-05-08  Bruno Haible  <bruno@clisp.org>
14118
14119         getusershell: Move AC_LIBOBJ invocations to module description.
14120         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14121         Move AC_LIBOBJ invocation from here...
14122         * modules/getusershell (configure.ac): ... to here.
14123         (Depends-on): Update condition.
14124
14125 2011-05-08  Bruno Haible  <bruno@clisp.org>
14126
14127         gettimeofday: Move AC_LIBOBJ invocations to module description.
14128         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14129         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14130         gl_PREREQ_GETTIMEOFDAY invocations from here...
14131         * modules/gettimeofday (configure.ac): ... to here.
14132
14133 2011-05-08  Bruno Haible  <bruno@clisp.org>
14134
14135         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14136         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14137         just gl_FUNC_TZSET.
14138         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14139         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14140         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14141         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14142
14143 2011-05-08  Bruno Haible  <bruno@clisp.org>
14144
14145         getsubopt: Move AC_LIBOBJ invocations to module description.
14146         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14147         gl_PREREQ_GETSUBOPT invocations from here...
14148         * modules/getsubopt (configure.ac): ... to here.
14149
14150 2011-05-08  Bruno Haible  <bruno@clisp.org>
14151
14152         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14153         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14154         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14155         * modules/getpass-gnu (configure.ac): ... to here.
14156
14157 2011-05-08  Bruno Haible  <bruno@clisp.org>
14158
14159         getpass: Move AC_LIBOBJ invocations to module description.
14160         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14161         gl_PREREQ_GETPASS invocations from here...
14162         * modules/getpass (configure.ac): ... to here.
14163
14164 2011-05-08  Bruno Haible  <bruno@clisp.org>
14165
14166         getpagesize: Move AC_LIBOBJ invocations to module description.
14167         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14168         from here...
14169         * modules/getpagesize (configure.ac): ... to here.
14170
14171 2011-05-08  Bruno Haible  <bruno@clisp.org>
14172
14173         getopt: Move AC_LIBOBJ invocations to module description.
14174         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14175         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14176         invocations from here...
14177         * modules/getopt-gnu (configure.ac): ... to here.
14178         * modules/getopt-posix (configure.ac): ... and here.
14179         (Depends-on): Update condition.
14180
14181 2011-05-08  Bruno Haible  <bruno@clisp.org>
14182
14183         getopt, argp: Respect rules for use of AC_LIBOBJ.
14184         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14185         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14186         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14187         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14188
14189 2011-05-08  Bruno Haible  <bruno@clisp.org>
14190
14191         getlogin_r: Move AC_LIBOBJ invocations to module description.
14192         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14193         gl_PREREQ_GETLOGIN_R invocations from here...
14194         * modules/getlogin_r (configure.ac): ... to here.
14195
14196 2011-05-08  Bruno Haible  <bruno@clisp.org>
14197
14198         getlogin: Move AC_LIBOBJ invocations to module description.
14199         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14200         here...
14201         * modules/getlogin (configure.ac): ... to here.
14202
14203 2011-05-08  Bruno Haible  <bruno@clisp.org>
14204
14205         getloadavg: Move AC_LIBOBJ invocations to module description.
14206         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14207         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14208         * modules/getloadavg (configure.ac): ... to here.
14209
14210 2011-05-08  Bruno Haible  <bruno@clisp.org>
14211
14212         gethrxtime: Move AC_LIBOBJ invocations to module description.
14213         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14214         LIB_GETHRXTIME from here...
14215         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14216         invocations from here...
14217         * modules/gethrxtime (configure.ac): ... to here.
14218
14219 2011-05-08  Bruno Haible  <bruno@clisp.org>
14220
14221         gethostname: Move AC_LIBOBJ invocations to module description.
14222         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14223         gl_PREREQ_GETHOSTNAME invocations from here...
14224         * modules/gethostname (configure.ac): ... to here.
14225
14226 2011-05-08  Bruno Haible  <bruno@clisp.org>
14227
14228         getgroups: Move AC_LIBOBJ invocations to module description.
14229         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14230         here...
14231         * modules/getgroups (configure.ac): ... to here.
14232
14233 2011-05-08  Bruno Haible  <bruno@clisp.org>
14234
14235         getdtablesize: Move AC_LIBOBJ invocations to module description.
14236         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14237         invocation from here...
14238         * modules/getdtablesize (configure.ac): ... to here.
14239
14240 2011-05-08  Bruno Haible  <bruno@clisp.org>
14241
14242         getdomainname: Move AC_LIBOBJ invocations to module description.
14243         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14244         gl_PREREQ_GETDOMAINNAME invocations from here...
14245         * modules/getdomainname (configure.ac): ... to here.
14246
14247 2011-05-08  Bruno Haible  <bruno@clisp.org>
14248
14249         getline: Move AC_LIBOBJ invocations to module description.
14250         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14251         invocations from here...
14252         * modules/getline (configure.ac): ... to here.
14253
14254 2011-05-08  Bruno Haible  <bruno@clisp.org>
14255
14256         getline: Simplify.
14257         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14258         It's already handled through the module dependency.
14259
14260 2011-05-08  Bruno Haible  <bruno@clisp.org>
14261
14262         getdelim: Move AC_LIBOBJ invocations to module description.
14263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14264         and gl_PREREQ_GETDELIM invocations from here...
14265         * modules/getdelim (configure.ac): ... to here.
14266         (Depends-on): Fix condition.
14267
14268 2011-05-08  Bruno Haible  <bruno@clisp.org>
14269
14270         getcwd: Move AC_LIBOBJ invocations to module description.
14271         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14272         invocations from here...
14273         * modules/getcwd (configure.ac): ... to here.
14274
14275 2011-05-08  Bruno Haible  <bruno@clisp.org>
14276
14277         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14278         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14279         here...
14280         * modules/getcwd-lgpl (configure.ac): ... to here.
14281
14282 2011-05-07  Bruno Haible  <bruno@clisp.org>
14283
14284         crypto/gc: Move AC_LIBOBJ invocations to module description.
14285         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14286         * modules/crypto/gc (configure.ac): ... to here.
14287
14288 2011-05-07  Bruno Haible  <bruno@clisp.org>
14289
14290         fwriting: Move AC_LIBOBJ invocations to module description.
14291         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14292         here...
14293         * modules/fwriting (configure.ac): ... to here.
14294
14295 2011-05-07  Bruno Haible  <bruno@clisp.org>
14296
14297         fwritable: Move AC_LIBOBJ invocations to module description.
14298         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14299         here...
14300         * modules/fwritable (configure.ac): ... to here.
14301
14302 2011-05-07  Bruno Haible  <bruno@clisp.org>
14303
14304         futimens: Move AC_LIBOBJ invocations to module description.
14305         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14306         here...
14307         * modules/futimens (configure.ac): ... to here.
14308
14309 2011-05-07  Bruno Haible  <bruno@clisp.org>
14310
14311         ftruncate: Move AC_LIBOBJ invocations to module description.
14312         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14313         gl_PREREQ_FTRUNCATE invocations from here...
14314         * modules/ftruncate (configure.ac): ... to here.
14315
14316 2011-05-07  Bruno Haible  <bruno@clisp.org>
14317
14318         fsync: Move AC_LIBOBJ invocations to module description.
14319         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14320         invocations from here...
14321         * modules/fsync (configure.ac): ... to here.
14322
14323 2011-05-07  Bruno Haible  <bruno@clisp.org>
14324
14325         fsusage: Move AC_LIBOBJ invocations to module description.
14326         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14327         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14328         * modules/fsusage (configure.ac): ... to here.
14329
14330 2011-05-07  Bruno Haible  <bruno@clisp.org>
14331
14332         freopen: Move AC_LIBOBJ invocations to module description.
14333         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14334         invocations from here...
14335         * modules/freopen (configure.ac): ... to here.
14336
14337 2011-05-07  Bruno Haible  <bruno@clisp.org>
14338
14339         free: Move AC_LIBOBJ invocations to module description.
14340         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14341         invocations from here...
14342         * modules/free (configure.ac): ... to here.
14343
14344 2011-05-07  Bruno Haible  <bruno@clisp.org>
14345
14346         freadable: Move AC_LIBOBJ invocations to module description.
14347         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14348         here...
14349         * modules/freadable (configure.ac): ... to here.
14350
14351 2011-05-07  Bruno Haible  <bruno@clisp.org>
14352
14353         fpurge: Move AC_LIBOBJ invocations to module description.
14354         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14355         invocations from here...
14356         * modules/fpurge (configure.ac): ... to here.
14357
14358 2011-05-07  Bruno Haible  <bruno@clisp.org>
14359
14360         fpending: Move AC_LIBOBJ invocations to module description.
14361         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14362         gl_FUNC_FPENDING.
14363         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14364         invocations from here...
14365         * modules/fpending (configure.ac): ... to here.
14366
14367 2011-05-07  Bruno Haible  <bruno@clisp.org>
14368
14369         fopen: Move AC_LIBOBJ invocations to module description.
14370         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14371         invocations from here...
14372         * modules/fopen (configure.ac): ... to here.
14373
14374 2011-05-07  Bruno Haible  <bruno@clisp.org>
14375
14376         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14377         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14378         gl_FUNC_FNMATCH_POSIX.
14379         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14380         invocations from here...
14381         * modules/fnmatch (configure.ac): ... to here.
14382         * modules/fnmatch-gnu (configure.ac): ... and here.
14383
14384 2011-05-07  Bruno Haible  <bruno@clisp.org>
14385
14386         flock: Move AC_LIBOBJ invocations to module description.
14387         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14388         invocations from here...
14389         * modules/flock (configure.ac): ... to here.
14390
14391 2011-05-07  Bruno Haible  <bruno@clisp.org>
14392
14393         fileblocks: Move AC_LIBOBJ invocations to module description.
14394         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14395         gl_PREREQ_FILEBLOCKS invocations from here...
14396         * modules/fileblocks (configure.ac): ... to here.
14397
14398 2011-05-06  Bruno Haible  <bruno@clisp.org>
14399
14400         fflush: Move AC_LIBOBJ invocations to module description.
14401         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14402         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14403         invocations from here...
14404         * modules/fflush (configure.ac): ... to here.
14405
14406 2011-05-06  Bruno Haible  <bruno@clisp.org>
14407
14408         fdopendir: Move AC_LIBOBJ invocations to module description.
14409         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14410         here...
14411         * modules/fdopendir (configure.ac): ... to here.
14412         (Depends-on): Improve conditions.
14413
14414 2011-05-06  Bruno Haible  <bruno@clisp.org>
14415
14416         _Exit: Move AC_LIBOBJ invocations to module description.
14417         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14418         invocations from here...
14419         * modules/_Exit (configure.ac): ... to here.
14420
14421 2011-05-21  Bruno Haible  <bruno@clisp.org>
14422
14423         euidaccess: Respect rules for use of AC_LIBOBJ.
14424         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14426         from here...
14427         * modules/euidaccess (configure.ac): ... to here.
14428
14429 2011-05-06  Bruno Haible  <bruno@clisp.org>
14430
14431         error: Move AC_LIBOBJ invocations to module description.
14432         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14433         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14434         invocations from here...
14435         * modules/error (configure.ac): ... to here.
14436
14437 2011-05-06  Bruno Haible  <bruno@clisp.org>
14438
14439         duplocale: Move AC_LIBOBJ invocations to module description.
14440         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14441         gl_PREREQ_DUPLOCALE invocations from here...
14442         * modules/duplocale (configure.ac): ... to here.
14443
14444 2011-05-05  Bruno Haible  <bruno@clisp.org>
14445
14446         dirfd: Move AC_LIBOBJ invocations to module description.
14447         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14448         gl_FUNC_DIRFD.
14449         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14450         here...
14451         * modules/dirfd (configure.ac): ... to here.
14452         (Depends-on): Fix condition.
14453
14454 2011-05-05  Bruno Haible  <bruno@clisp.org>
14455
14456         chown: Respect rules for use of AC_LIBOBJ.
14457         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14458         * modules/chown (configure.ac): ... to here.
14459
14460 2011-05-05  Bruno Haible  <bruno@clisp.org>
14461
14462         chdir-long: Move AC_LIBOBJ invocations to module description.
14463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14464         gl_PREREQ_CHDIR_LONG invocations from here...
14465         * modules/chdir-long (configure.ac): ... to here.
14466
14467 2011-05-05  Bruno Haible  <bruno@clisp.org>
14468
14469         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14470         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14471         from here...
14472         * modules/canonicalize-lgpl (configure.ac): ... to here.
14473
14474 2011-05-05  Bruno Haible  <bruno@clisp.org>
14475
14476         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14477         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14478         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14479         REPLACE_CALLOC.
14480         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14481         * modules/calloc-gnu (configure.ac): Likewise.
14482
14483 2011-05-05  Bruno Haible  <bruno@clisp.org>
14484
14485         btowc: Move AC_LIBOBJ invocations to module description.
14486         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14487         invocations from here...
14488         * modules/btowc (configure.ac): ... to here.
14489
14490 2011-05-21  Bruno Haible  <bruno@clisp.org>
14491
14492         atexit: Move AC_LIBOBJ invocations to module description.
14493         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14495         here...
14496         * modules/atexit (configure.ac): ... to here.
14497
14498 2011-05-05  Bruno Haible  <bruno@clisp.org>
14499
14500         atoll: Move AC_LIBOBJ invocations to module description.
14501         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14502         invocations from here...
14503         * modules/atoll (configure.ac): ... to here.
14504
14505 2011-05-05  Bruno Haible  <bruno@clisp.org>
14506
14507         argz: Move AC_LIBOBJ invocations to module description.
14508         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14509         * modules/argz (configure.ac): ... to here.
14510
14511 2011-05-05  Bruno Haible  <bruno@clisp.org>
14512
14513         alphasort: Move AC_LIBOBJ invocations to module description.
14514         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14515         gl_PREREQ_ALPHASORT invocations from here...
14516         * modules/alphasort (configure.ac): ... to here.
14517
14518 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14519
14520         verify: new macro verify_expr; verify_true deprecated
14521         * NEWS: Mention this.
14522         * doc/verify.texi (Compile-time Assertions): Document this.
14523         * lib/verify.h (verify_true): Deprecate.
14524         (verify_expr): New macro.
14525         * tests/test-verify.c (function): Test verify_expr.
14526
14527 2011-06-14  Jim Meyering  <meyering@redhat.com>
14528
14529         init.sh: give more portable redirection-related advice in a comment
14530         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14531         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14532         for lots of discussion.  Stefano Lattarini suggested the solution
14533         of putting "9>&2" after the command.  Reported by Bruno Haible.
14534
14535 2011-06-13  Bruno Haible  <bruno@clisp.org>
14536
14537         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14539         'none'.
14540
14541 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14542
14543         ftoastr: use strtof only if HAVE_STRTOF
14544         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14546         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14547         * modules/ftoastr (configure.ac): Check for strtof.
14548
14549 2011-06-13  Bruno Haible  <bruno@clisp.org>
14550
14551         gnulib-tool: Addendum to 2011-06-08 commit.
14552         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14553         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14554
14555 2011-06-13  Bruno Haible  <bruno@clisp.org>
14556
14557         fseeko: Provide a non-inline replacement of fseek().
14558         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14559         * modules/fseeko (Depends-on): Add fseek.
14560         * modules/fseek (License): Change to LGPLv2+.
14561
14562 2011-06-13  Bruno Haible  <bruno@clisp.org>
14563
14564         ftello: Provide a non-inline replacement of ftell().
14565         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14566         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14567         not have ftello() (such as on mingw).
14568         * modules/ftello (Depends-on): Add ftell.
14569         * modules/ftell (License): Change to LGPLv2+.
14570
14571 2011-05-07  Bruno Haible  <bruno@clisp.org>
14572
14573         ftell: Move AC_LIBOBJ invocations to module description.
14574         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14575         * modules/ftell (configure.ac): ... to here.
14576
14577 2011-05-07  Bruno Haible  <bruno@clisp.org>
14578
14579         ftello: Respect rules for use of AC_LIBOBJ.
14580         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14581         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14582         here...
14583         * modules/ftello (configure.ac): ... to here.
14584
14585 2011-05-07  Bruno Haible  <bruno@clisp.org>
14586
14587         fseeko: Simplify.
14588         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14589         (gl_FUNC_FSEEKO): Inline it here.
14590
14591 2011-05-07  Bruno Haible  <bruno@clisp.org>
14592
14593         fseek: Move AC_LIBOBJ invocations to module description.
14594         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14595         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14596         * modules/fseek (configure.ac): ... to here.
14597
14598 2011-05-07  Bruno Haible  <bruno@clisp.org>
14599
14600         fseek: Respect rules for use of AC_LIBOBJ.
14601         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14602         here...
14603         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14604
14605 2011-05-07  Bruno Haible  <bruno@clisp.org>
14606
14607         fseeko: Respect rules for use of AC_LIBOBJ.
14608         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14609         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14610         here...
14611         * modules/fseeko (configure.ac): ... to here.
14612
14613 2011-06-13  Bruno Haible  <bruno@clisp.org>
14614
14615         gnulib-tool: Allow comments in the 'Depends-on' section.
14616         * doc/gnulib.texi (Module description): Mention comment syntax in the
14617         Depends-on section.
14618         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14619
14620 2011-06-13  Bruno Haible  <bruno@clisp.org>
14621
14622         file-set.h: guard __attibute__ use, now that it's not always defined
14623         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14624         versions that support it.  This fixes a coreutils build failure with
14625         the vendor cc on HP-UX 11.31.
14626
14627 2011-06-12  Bruno Haible  <bruno@clisp.org>
14628
14629         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14630         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14631         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14632         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14633         (acl, aclsort): New declarations.
14634         (aclv_nontrivial): New declaration.
14635         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14636         (file_has_acl): Read also the second kind of HP-UX ACLs.
14637         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14638         kind of HP-UX ACLs if the first kind fails.
14639         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14640         second kind of HP-UX ACLs.
14641         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14642         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14643         agree.
14644         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14645         hpuxjfs.
14646         Handle hpuxjfs.
14647         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14648         hpuxjfs.
14649         Handle hpuxjfs.
14650         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14651         (func_test_same_acls): Use both lsacl and getacl.
14652         Handle hpuxjfs.
14653         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14654         (func_test_same_acls): Use both lsacl and getacl.
14655         Handle hpuxjfs.
14656
14657 2011-06-12  Bruno Haible  <bruno@clisp.org>
14658
14659         acl: Complete the 2010-08-10 fix.
14660         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14661         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14662         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14663         explicitly.
14664         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14665         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14666
14667 2011-06-12  Bruno Haible  <bruno@clisp.org>
14668
14669         spawn-pipe tests: Comments.
14670         * tests/test-spawn-pipe-child.c (main): Update comment.
14671         Reported by James Youngman <jay@gnu.org>.
14672
14673 2011-06-11  James Youngman  <jay@gnu.org>
14674
14675         New module 'stat-size'.
14676         * modules/stat-size: New module.  Provides macros for accessing
14677         file size information in instances of struct stat.  Depends on the
14678         fileblocks module because it calls st_blocks.
14679         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14680         * doc/gnulib.texi: Include stat-size.texi.
14681         * doc/stat-size.texi: Documentation for this module.
14682         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14683         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14684         AC_STRUCT_ST_BLOCKS.
14685
14686 2011-06-09  Bruno Haible  <bruno@clisp.org>
14687
14688         thread: Support pthreads-win32.
14689         * lib/glthread/thread.h (gl_thread_self): Define differently on
14690         pthreads-win32.
14691         (gl_null_thread): New declaration.
14692         (gl_thread_self_pointer): New macro.
14693         * lib/glthread/thread.c (gl_null_thread): New constant.
14694         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14695         gl_thread_self.
14696         * tests/test-tls.c: Likewise.
14697         Suggested by Paul Eggert. Reported by Eric Blake.
14698
14699 2011-06-09  Bruno Haible  <bruno@clisp.org>
14700
14701         thread: Fix confusion between NULL and 0.
14702         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14703         Reported by Paul Eggert.
14704
14705 2011-06-09  Bruno Haible  <bruno@clisp.org>
14706
14707         spawn-pipe tests: Avoid test failure on HP-UX 11.
14708         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14709         is closed.
14710
14711 2011-06-09  Bruno Haible  <bruno@clisp.org>
14712
14713         acl tests: Fix compilation error on HP-UX 11.
14714         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14715
14716 2011-06-09  Bruno Haible  <bruno@clisp.org>
14717
14718         rmdir: Avoid test failure on HP-UX 10.20.
14719         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14720         EEXIST.
14721
14722 2011-06-08  Eric Blake  <eblake@redhat.com>
14723
14724         perror: fix test on mingw
14725         * modules/perror-tests (Depends-on): Add dup2.
14726
14727         strerror_r-posix: fix on MacOS
14728         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14729         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14730         logic bug.
14731         * lib/strerror_r.c (strerror_r): Fix the bug.
14732         * lib/strerror.c (strerror): Likewise.
14733         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14734         problem.
14735         * doc/posix-functions/strerror.texi (strerror): Likewise.
14736         * doc/posix-functions/perror.texi (perror): Likewise.
14737         * tests/test-strerror.c (main): Enhance test.
14738         * tests/test-strerror_r.c (main): Likewise.
14739
14740 2011-06-08  Bruno Haible  <bruno@clisp.org>
14741
14742         gnulib-tool: Better isolation between different gnulib-tool invocations.
14743         * gnulib-tool: New option --witness-c-macro.
14744         (witness_c_macro): New variable.
14745         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14746         AM_CPPFLAGS define it as a C macro.
14747         (func_emit_tests_Makefile_am): Likewise.
14748         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14749         read it from there.
14750         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14751         m4_define, not AC_DEFUN.
14752         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14753         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14754         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14755         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14756         s|...|...|, to substitute the values of the GNULIB_* module indicator
14757         variables.
14758         * modules/dirent (Makefile.am): Likewise.
14759         * modules/fcntl-h (Makefile.am): Likewise.
14760         * modules/iconv-h (Makefile.am): Likewise.
14761         * modules/langinfo (Makefile.am): Likewise.
14762         * modules/locale (Makefile.am): Likewise.
14763         * modules/math (Makefile.am): Likewise.
14764         * modules/netdb (Makefile.am): Likewise.
14765         * modules/poll-h (Makefile.am): Likewise.
14766         * modules/pty (Makefile.am): Likewise.
14767         * modules/search (Makefile.am): Likewise.
14768         * modules/signal (Makefile.am): Likewise.
14769         * modules/spawn (Makefile.am): Likewise.
14770         * modules/stdio (Makefile.am): Likewise.
14771         * modules/stdlib (Makefile.am): Likewise.
14772         * modules/string (Makefile.am): Likewise.
14773         * modules/sys_ioctl (Makefile.am): Likewise.
14774         * modules/sys_select (Makefile.am): Likewise.
14775         * modules/sys_socket (Makefile.am): Likewise.
14776         * modules/sys_stat (Makefile.am): Likewise.
14777         * modules/sys_times (Makefile.am): Likewise.
14778         * modules/sys_utsname (Makefile.am): Likewise.
14779         * modules/sys_wait (Makefile.am): Likewise.
14780         * modules/termios (Makefile.am): Likewise.
14781         * modules/time (Makefile.am): Likewise.
14782         * modules/unistd (Makefile.am): Likewise.
14783         * modules/wchar (Makefile.am): Likewise.
14784
14785 2011-06-08  Eric Blake  <eblake@redhat.com>
14786
14787         strerror: simplify replacement
14788         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14789         * modules/strerror (configure.ac): No prereqs needed here...
14790         * modules/strerror-override (configure.ac): ...but this needs it.
14791         (Files): Add file for needed prereq macro.
14792
14793 2011-06-08  Bruno Haible  <bruno@clisp.org>
14794
14795         strerror_r-posix: Tweaks.
14796         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14797         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14798         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14799         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14800         (gl_FUNC_STRERROR_R): ... to here.
14801         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14802
14803 2011-06-07  Eric Blake  <eblake@redhat.com>
14804
14805         perror: document fixed bugs
14806         * doc/posix-functions/perror.texi (perror): Document recent
14807         patches.
14808
14809 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14810
14811         stat-time: get_stat_birthtime failure is better-defined
14812         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14813         return a timestamp whose tv_sec and tv_nsec values are both -1.
14814         Previously, the spec said only that the tv_nsec value was negative.
14815         This upward-compatible change simplifies GNU tar a bit.
14816
14817 2011-06-07  Eric Blake  <eblake@redhat.com>
14818
14819         strerror_r-posix: work around cygwin 1.7.9
14820         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14821         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14822         bug without replacing strerror_r.
14823         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14824         strerror_r is buggy, but without requiring strerror_r compilation.
14825         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14826
14827         test-perror: relax test to ignore cygwin bug
14828         * tests/test-perror2.c (main): Relax test on requiring detection
14829         of stream errors, and use unbuffered stream.
14830         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14831         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14832         * doc/posix-functions/fputc.texi (fputc): Likewise.
14833         * doc/posix-functions/fputs.texi (fputs): Likewise.
14834         * doc/posix-functions/fputws.texi (fputws): Likewise.
14835         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14836         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14837         * doc/posix-functions/getopt.texi (getopt): Likewise.
14838         * doc/posix-functions/perror.texi (perror): Likewise.
14839         * doc/posix-functions/printf.texi (printf): Likewise.
14840         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14841         * doc/posix-functions/psignal.texi (psignal): Likewise.
14842         * doc/posix-functions/putc.texi (putc): Likewise.
14843         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14844         Likewise.
14845         * doc/posix-functions/putchar.texi (putchar): Likewise.
14846         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14847         Likewise.
14848         * doc/posix-functions/puts.texi (puts): Likewise.
14849         * doc/posix-functions/putwc.texi (putwc): Likewise.
14850         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14851         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14852         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14853         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14854         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14855         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14856         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14857         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14858
14859 2011-05-22  Bruno Haible  <bruno@clisp.org>
14860
14861         strerror: Move AC_LIBOBJ invocations to module description.
14862         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14863         gl_PREREQ_STRERROR invocations from here...
14864         * modules/strerror (configure.ac): ... to here.
14865
14866 2011-05-21  Bruno Haible  <bruno@clisp.org>
14867
14868         perror: Use common idiom.
14869         * modules/perror (configure.ac): Reorder statements.
14870
14871 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14872
14873         tests: fix usage message in 'mktempd_'
14874         * tests/init.sh (mktempd_): In the usage message, use literal
14875         'mktempd_', not '$ME' (which is even undefined), as the name of
14876         the subroutine.
14877
14878 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14879
14880         tests init: new function 'fatal_', for hard errors
14881         Before this patch, the only way offered by tests/init.sh to
14882         properly signal a hard error was the `framework_failure_'
14883         function.  But the error message issued by that function,
14884         as its name would suggest, refers to a set-up failure in the
14885         testsuite, while hard errors can obviously also be due to
14886         other reasons.  The best way to fix this inconsistency is to
14887         introduce a new function with a more general error message.
14888         * tests/init.sh (fatal_): New function.
14889
14890 2011-06-06  Eric Blake  <eblake@redhat.com>
14891
14892         canonicalize-lgpl: use common idiom
14893         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14894         over newer POSIX -Rf.
14895         Reported by Bruno Haible.
14896
14897         canonicalize-lgpl: work around AIX realpath bug
14898         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14899         * doc/posix-functions/realpath.texi (realpath): Document it.
14900         Reported by Bruno Haible.
14901
14902         strerror: work around FreeBSD bug
14903         * lib/strerror.c (strerror): Special case 0.
14904         Reported by Bruno Haible.
14905
14906         strerror-override: avoid bloating errno module
14907         * modules/errno (Files, configure.ac): Move replacement strings...
14908         * modules/strerror-override: ...to new module.
14909         * modules/strerror (Depends-on): Add strerror-override.
14910         * modules/strerror_r-posix (Depends-on): Likewise.
14911         * MODULES.html.sh: Document new module.
14912         Reported by Bruno Haible.
14913
14914 2011-06-06  Bruno Haible  <bruno@clisp.org>
14915
14916         spawn-pipe tests: Rename program.
14917         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14918         * tests/test-spawn-pipe-child.c: Update comment.
14919         * tests/test-spawn-pipe.sh: Update.
14920         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14921
14922         spawn-pipe tests: Link the child program only against libc.
14923         * tests/test-spawn-pipe-child.c: New file, extracted from
14924         tests/test-spawn-pipe.c.
14925         (main): Expect only one argument.
14926         (is_open): New function, copied from tests/test-pipe.c.
14927         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14928         (child_main): Remove function.
14929         (test_pipe): Pass only one argument to the child program.
14930         (main): Remove child process code. Expect the child program's name as
14931         first argument.
14932         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14933         argument.
14934         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14935         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14936         test-spawn-pipe-child against no libraries.
14937
14938 2011-06-06  Bruno Haible  <bruno@clisp.org>
14939
14940         careadlinkat: Avoid mismatch between ssize_t and int.
14941         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14942         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14943
14944 2011-06-06  Jim Meyering  <meyering@redhat.com>
14945
14946         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14947         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14948         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14949
14950 2011-06-05  Bruno Haible  <bruno@clisp.org>
14951
14952         ansi-c++-opt: Interoperability with libtool.
14953         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14954         set the variable to "no", not to ":".
14955         * NEWS: Mention the change.
14956
14957 2011-06-05  Bruno Haible  <bruno@clisp.org>
14958
14959         acl: Fix test failure on AIX 7.
14960         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14961         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14962
14963 2011-06-05  Bruno Haible  <bruno@clisp.org>
14964
14965         pipe-filter-ii: Fix test failure on AIX and IRIX.
14966         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14967         with EAGAIN, retry with a smaller buffer size.
14968
14969 2011-06-05  Bruno Haible  <bruno@clisp.org>
14970
14971         localename: Fix link dependencies.
14972         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14973         * modules/localename-tests (Makefile.am): Link test-localename with
14974         $(LIBTHREAD).
14975
14976 2011-06-05  Bruno Haible  <bruno@clisp.org>
14977
14978         error: Avoid gcc warning.
14979         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14980
14981 2011-06-05  Bruno Haible  <bruno@clisp.org>
14982
14983         unsetenv: Avoid gcc warning.
14984         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14985
14986 2011-06-05  Bruno Haible  <bruno@clisp.org>
14987
14988         setenv: Avoid gcc warning.
14989         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14990
14991 2011-06-05  Bruno Haible  <bruno@clisp.org>
14992
14993         sys_select: Ensure memset is declared also on AIX 7.
14994         * lib/sys_select.in.h: Include <string.h> also on AIX.
14995         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14996         self-contained also on AIX 7.1.
14997
14998 2011-06-04  Jim Meyering  <meyering@redhat.com>
14999
15000         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15001         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15002         function name, "error".
15003         (_gl_translatable_diag_func_re): New configurable variable.
15004
15005 2011-06-04  Bruno Haible  <bruno@clisp.org>
15006
15007         getopt: Avoid gcc warning.
15008         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15009
15010 2011-06-04  Bruno Haible  <bruno@clisp.org>
15011
15012         strerror_r: Fix comments.
15013         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15014         commit.
15015
15016 2011-06-04  Bruno Haible  <bruno@clisp.org>
15017
15018         perror: Fix compilation error.
15019         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15020         Undefine fprintf, not sprintf.
15021         * modules/perror (Depends-on): Remove intprops, verify.
15022
15023 2011-06-04  Bruno Haible  <bruno@clisp.org>
15024
15025         setlocale: Enable replacement on Cygwin 1.5.
15026         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15027         Cygwin 1.5.x.
15028         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15029         LC_CTYPE category also exists on Cygwin 1.5.x.
15030
15031 2011-06-04  Bruno Haible  <bruno@clisp.org>
15032
15033         strerror-override: Don't disable symbol renamings.
15034         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15035         * lib/strerror-override.c: Include config.h.
15036         (strerror_override): Don't undefine.
15037
15038 2011-06-03  Bruno Haible  <bruno@clisp.org>
15039
15040         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15041         * lib/localename.h: Update copyright header.
15042         * lib/localename.c: Likewise.
15043         * lib/relocatable.h: Likewise.
15044         * lib/relocatable.c: Likewise.
15045
15046 2011-06-02  Bruno Haible  <bruno@clisp.org>
15047
15048         doc: Fix a module name.
15049         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15050
15051 2011-06-02  Bruno Haible  <bruno@clisp.org>
15052
15053         pipe2: Remove dependency on 'nonblocking' module.
15054         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15055         O_NONBLOCK is defined by gnulib.
15056         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15057         is zero.
15058         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15059         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15060         defined by gnulib.
15061         (get_nonblocking_flag): New function.
15062         (main): Test O_NONBLOCK flag only if it is nonzero.
15063         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15064
15065 2011-06-03  Jim Meyering  <meyering@redhat.com>
15066
15067         maint: three new prohibit-header-without-use rules
15068         Prohibit use of cloexec.h, posixver.h, same.h without use.
15069         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15070         (sc_prohibit_posixver_without_use): Likewise.
15071         (sc_prohibit_same_without_use): Likewise.
15072
15073 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15074
15075         allocator: 'die' routine is now given requested size
15076         * lib/allocator.h (struct allocator.die): New size arg.
15077         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15078         If the actual problem is an ssize_t limitation, not a size_t or
15079         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15080
15081 2011-06-01  Eric Blake  <eblake@redhat.com>
15082
15083         strerror: drop strerror_r dependency
15084         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15085         * lib/strerror-override.c (strerror_override): ...to new file.
15086         * lib/strerror-override.h: Add prototype.
15087         * lib/strerror-impl.h: Delete.
15088         * lib/strerror.c (strerror): New implementation.
15089         * modules/errno (Files): Add new files.
15090         (configure.ac): Compile new file as appropriate.
15091         * modules/strerror (Files): Drop unused file.
15092         (Depends-on): Drop strerror_r-posix.
15093         * MODULES.html.sh: Document strerror_r-posix.
15094         Requested by Sam Steingold.
15095
15096         perror: call strerror_r directly
15097         * modules/perror (Files): Drop strerror-impl.h.
15098         * lib/perror.c (perror): Use our own stack buffer, rather than
15099         calling a wrapper that uses static storage.
15100         * doc/posix-functions/perror.texi (perror): Document a limitation
15101         of our replacement.
15102
15103         strerror_r: fix includes for FreeBSD
15104         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15105         since we use abort on some platforms.
15106         Reported by Matthias Bolte.
15107
15108 2011-05-31  Bruno Haible  <bruno@clisp.org>
15109
15110         Fix link errors in tests: openat-die uses gettext-h.
15111         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15112         against $(LIBINTL).
15113         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15114         against $(LIBINTL).
15115         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15116         $(LIBINTL).
15117         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15118         against $(LIBINTL).
15119         * modules/linkat-tests (Makefile.am): Link test-linkat against
15120         $(LIBINTL).
15121         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15122         $(LIBINTL).
15123         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15124         against $(LIBINTL).
15125         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15126         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15127         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15128         $(LIBINTL).
15129         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15130         $(LIBINTL).
15131         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15132         $(LIBINTL).
15133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15134
15135 2011-05-31  Bruno Haible  <bruno@clisp.org>
15136
15137         Fix link errors in tests: wait-process uses gettext-h.
15138         * modules/nonblocking-pipe-tests (Makefile.am): Set
15139         test_nonblocking_pipe_main_LDADD.
15140         * modules/nonblocking-socket-tests (Makefile.am): Link
15141         test-nonblocking-socket-main against $(LIBINTL).
15142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15143
15144 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15145
15146         assert-h: work around 'verify' incompatibility
15147         * lib/verify.h: Use @...@ directives, not ifdef.
15148         * modules/assert-h (assert.h): Implement the directives.
15149         (assert.h): Substitute the symbol-prefix more consistently.
15150
15151 2011-05-29  Jim Meyering  <meyering@redhat.com>
15152
15153         trim: remove three superfluous assignments
15154         * lib/trim.c (trim2): Remove three superfluous assignments
15155         and correct brace positioning.
15156
15157 2011-05-29  Bruno Haible  <bruno@clisp.org>
15158
15159         wctype-h: Avoid namespace pollution on Solaris 2.6.
15160         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15161         identifiers.
15162         * doc/posix-headers/wctype.texi: Mention the problem.
15163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15164
15165 2011-05-28  Jim Meyering  <meyering@redhat.com>
15166
15167         parse-datetime.y: accommodate -Wstrict-overflow
15168         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15169         placate -Wstrict-overflow.
15170
15171         trim: avoid a warning from -O2 -Wstrict-overflow
15172         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15173
15174 2011-05-29  Bruno Haible  <bruno@clisp.org>
15175
15176         gnulib-tool: Fix bug in yesterday's commit.
15177         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15178         twice.
15179
15180 2011-05-29  Bruno Haible  <bruno@clisp.org>
15181
15182         Allow multiple gnulib generated include files to be combined.
15183         * gnulib-tool (func_compute_include_guard_prefix): New function.
15184         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15185         ${gl_include_guard_prefix} references.
15186         (func_import, func_create_testdir): Invoke
15187         func_compute_include_guard_prefix.
15188         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15189         * lib/ctype.in.h: Likewise.
15190         * lib/dirent.in.h: Likewise.
15191         * lib/errno.in.h: Likewise.
15192         * lib/fcntl.in.h: Likewise.
15193         * lib/float.in.h: Likewise.
15194         * lib/getopt.in.h: Likewise.
15195         * lib/iconv.in.h: Likewise.
15196         * lib/langinfo.in.h: Likewise.
15197         * lib/locale.in.h: Likewise.
15198         * lib/math.in.h: Likewise.
15199         * lib/netdb.in.h: Likewise.
15200         * lib/netinet_in.in.h: Likewise.
15201         * lib/poll.in.h: Likewise.
15202         * lib/pthread.in.h: Likewise.
15203         * lib/pty.in.h: Likewise.
15204         * lib/sched.in.h: Likewise.
15205         * lib/se-selinux.in.h: Likewise.
15206         * lib/search.in.h: Likewise.
15207         * lib/signal.in.h: Likewise.
15208         * lib/spawn.in.h: Likewise.
15209         * lib/stdarg.in.h: Likewise.
15210         * lib/stddef.in.h: Likewise.
15211         * lib/stdint.in.h: Likewise.
15212         * lib/stdio.in.h: Likewise.
15213         * lib/stdlib.in.h: Likewise.
15214         * lib/string.in.h: Likewise.
15215         * lib/strings.in.h: Likewise.
15216         * lib/sys_file.in.h: Likewise.
15217         * lib/sys_ioctl.in.h: Likewise.
15218         * lib/sys_select.in.h: Likewise.
15219         * lib/sys_socket.in.h: Likewise.
15220         * lib/sys_stat.in.h: Likewise.
15221         * lib/sys_time.in.h: Likewise.
15222         * lib/sys_times.in.h: Likewise.
15223         * lib/sys_uio.in.h: Likewise.
15224         * lib/sys_utsname.in.h: Likewise.
15225         * lib/sys_wait.in.h: Likewise.
15226         * lib/sysexits.in.h: Likewise.
15227         * lib/termios.in.h: Likewise.
15228         * lib/time.in.h: Likewise.
15229         * lib/unistd.in.h: Likewise.
15230         * lib/wchar.in.h: Likewise.
15231         * lib/wctype.in.h: Likewise.
15232         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15233         * modules/ctype (Makefile.am): Likewise.
15234         * modules/dirent (Makefile.am): Likewise.
15235         * modules/errno (Makefile.am): Likewise.
15236         * modules/fcntl-h (Makefile.am): Likewise.
15237         * modules/float (Makefile.am): Likewise.
15238         * modules/getopt-posix (Makefile.am): Likewise.
15239         * modules/iconv-h (Makefile.am): Likewise.
15240         * modules/langinfo (Makefile.am): Likewise.
15241         * modules/locale (Makefile.am): Likewise.
15242         * modules/math (Makefile.am): Likewise.
15243         * modules/netdb (Makefile.am): Likewise.
15244         * modules/netinet_in (Makefile.am): Likewise.
15245         * modules/poll-h (Makefile.am): Likewise.
15246         * modules/pthread (Makefile.am): Likewise.
15247         * modules/pty (Makefile.am): Likewise.
15248         * modules/sched (Makefile.am): Likewise.
15249         * modules/search (Makefile.am): Likewise.
15250         * modules/selinux-h (Makefile.am): Likewise.
15251         * modules/signal (Makefile.am): Likewise.
15252         * modules/spawn (Makefile.am): Likewise.
15253         * modules/stdarg (Makefile.am): Likewise.
15254         * modules/stddef (Makefile.am): Likewise.
15255         * modules/stdint (Makefile.am): Likewise.
15256         * modules/stdio (Makefile.am): Likewise.
15257         * modules/stdlib (Makefile.am): Likewise.
15258         * modules/string (Makefile.am): Likewise.
15259         * modules/strings (Makefile.am): Likewise.
15260         * modules/sys_file (Makefile.am): Likewise.
15261         * modules/sys_ioctl (Makefile.am): Likewise.
15262         * modules/sys_select (Makefile.am): Likewise.
15263         * modules/sys_socket (Makefile.am): Likewise.
15264         * modules/sys_stat (Makefile.am): Likewise.
15265         * modules/sys_time (Makefile.am): Likewise.
15266         * modules/sys_times (Makefile.am): Likewise.
15267         * modules/sys_uio (Makefile.am): Likewise.
15268         * modules/sys_utsname (Makefile.am): Likewise.
15269         * modules/sys_wait (Makefile.am): Likewise.
15270         * modules/sysexits (Makefile.am): Likewise.
15271         * modules/termios (Makefile.am): Likewise.
15272         * modules/time (Makefile.am): Likewise.
15273         * modules/unistd (Makefile.am): Likewise.
15274         * modules/wchar (Makefile.am): Likewise.
15275         * modules/wctype-h (Makefile.am): Likewise.
15276         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15277
15278 2011-05-29  Bruno Haible  <bruno@clisp.org>
15279
15280         assert-h: Allow multiple gnulib generated replacements to coexist.
15281         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15282
15283 2011-05-29  Bruno Haible  <bruno@clisp.org>
15284
15285         argp: Allow coexistence with strerror_r-posix module.
15286         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15287         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15288         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15289         not the glibc signature.
15290
15291 2011-05-28  Bruno Haible  <bruno@clisp.org>
15292
15293         gnulib-tool: Alternative structure of testdirs, similar to --import.
15294         * gnulib-tool: New option --single-configure.
15295         (func_usage): Document it.
15296         (single_configure): New variable.
15297         (func_modules_transitive_closure_separately,
15298         func_modules_transitive_closure_separately,
15299         func_determine_use_libtests, func_modules_add_dummy_separately,
15300         func_modules_to_filelist_separately): New functions, extracted from
15301         func_import.
15302         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15303         (func_import): Use the new functions.
15304         (func_create_testdir): Set final_modules. Handle $single_configure =
15305         true case.
15306
15307 2011-05-28  Bruno Haible  <bruno@clisp.org>
15308
15309         getloadavg: Remove an unreliable safety check.
15310         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15311         getloadavg.c is in place.
15312         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15313         Reported by Sam Steingold <sds@gnu.org>.
15314
15315 2011-05-28  Bruno Haible  <bruno@clisp.org>
15316
15317         doc: Cleanup yet another file produced by texinfo.tex.
15318         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15319
15320 2011-05-28  Bruno Haible  <bruno@clisp.org>
15321
15322         Finish the conditional dependencies mechanism.
15323         * gnulib-tool: New option --no-conditional-dependencies.
15324         (func_usage): Document it. Don't mark --conditional-dependencies as
15325         experimental.
15326         (cond_dependencies): The possible values can now be true, false, empty.
15327         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15328         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15329         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15330
15331 2011-05-28  Bruno Haible  <bruno@clisp.org>
15332
15333         doc: Use a recent texinfo.tex.
15334         * doc/Makefile (tex_opts): New variable.
15335         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15336
15337 2011-05-28  Jim Meyering  <meyering@redhat.com>
15338
15339         intprops.h: adjust comment to match code change
15340         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15341         only once, it *may* have side effects.  Also fix an unrelated typo.
15342         (_GL_INT_SIGNED): Likewise.
15343
15344 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15345
15346         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15347
15348 2011-05-26  Bruno Haible  <bruno@clisp.org>
15349
15350         mbsrchr: Avoid collision with system function on Interix.
15351         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15352         Reported by Markus Duft <mduft@gentoo.org>.
15353
15354 2011-05-15  James Youngman  <jay@gnu.org>
15355
15356         getopt: for ambiguous options, enumerate the possibilities.
15357         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15358         the ambiguous options when an ambiguous prefix is given. This was
15359         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15360         glibc change was
15361         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15362
15363 2011-05-25  Eric Blake  <eblake@redhat.com>
15364
15365         getcwd: work around mingw bug
15366         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15367         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15368         Reported by Matthias Bolte.
15369
15370 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15371
15372         test-intprops: disable -Wtype-limits diagnostics
15373         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15374         diagnostics.  Otherwise, the integer overflow macros generate many
15375         diagnostics.  Reported by Jim Meyering in
15376         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15377
15378         intprops: shorten, to pacify gcc -Woverlength-strings
15379         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15380         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15381         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15382         likely to run afoul of C compiler limits for string constant lengths.
15383         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15384
15385 2011-05-24  Eric Blake  <eblake@redhat.com>
15386
15387         docs: document recently fixed glibc printf bug
15388         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15389         * doc/posix-functions/printf.texi (printf): Likewise.
15390         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15391         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15392
15393         closein-tests: convert to init.sh
15394         * modules/closein-tests (Files): Add init.sh
15395         * tests/test-closein.sh Use it.
15396
15397         yesno-tests: convert to init.sh
15398         * modules/yesno-tests (Files): Add init.sh.
15399         * tests/test-yesno.sh: Use it.
15400
15401         atexit-tests: ensure reliable exit status
15402         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15403         Reported by Bruno Haible.
15404
15405 2011-05-24  Bruno Haible  <bruno@clisp.org>
15406
15407         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15408         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15409         gl_PREREQ_STRERROR_R invocations from here...
15410         * modules/strerror_r-posix (configure.ac): ... to here.
15411
15412 2011-05-24  Eric Blake  <eblake@redhat.com>
15413
15414         strerror_r: fix missing header
15415         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15416
15417         strerror_r: fix AIX test failures
15418         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15419         ERANGE failure.
15420
15421         strerror_r: fix Solaris test failures
15422         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15423         failures.
15424         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15425
15426         strerror_r: enforce POSIX recommendations
15427         * lib/strerror_r.c (safe_copy): New helper method.
15428         (strerror_r): Guarantee a non-empty string.
15429         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15430         recent POSIX rulings and to match our strerror guarantees.
15431         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15432
15433 2011-05-24  Jim Meyering  <meyering@redhat.com>
15434
15435         test-perror2.c: avoid warning about unused variable
15436         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15437
15438 2011-05-24  Eric Blake  <eblake@redhat.com>
15439
15440         perror: avoid spurious test failure on HP-UX
15441         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15442
15443         tests: fix logic bug in init.sh
15444         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15445         shell.
15446
15447 2011-05-24  Jim Meyering  <meyering@redhat.com>
15448
15449         utimensat: do not reference an out-of-scope buffer
15450         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15451         declared in an inner scope, yet "times" would be dereferenced outside
15452         the scope in which "ts" was valid.
15453         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15454         of ts[2] "out/up", so that the use of aliased "times" (via
15455         "times = ts;") does not end up referencing an out-of-scope "ts"
15456
15457         opendir-safer.c: don't clobber errno; don't close negative FD
15458         * lib/opendir-safer.c (opendir_safer):
15459         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15460         file descriptor, and more importantly, don't clobber the
15461         offending errno value with EINVAL.  Before, upon failure
15462         of dup_safer, we would pass the negative file descriptor to
15463         fdopendir, which would clobber errno.
15464
15465 2011-05-23  Bruno Haible  <bruno@clisp.org>
15466
15467         idcache: Fix module description.
15468         * modules/idcache (Include): Set to "idcache.h".
15469
15470 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15471
15472         gnulib-tool: fix portability problem with MacOS sed
15473         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15474         before the "}".  Problem reported by Leo in
15475         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15476         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15477         sed_extract_condition1, sed_extract_condition2.
15478
15479 2011-05-23  Bruno Haible  <bruno@clisp.org>
15480
15481         hash: Simplify autoconf macro.
15482         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15483
15484 2011-05-23  Bruno Haible  <bruno@clisp.org>
15485
15486         getugroups: Fix module description.
15487         * modules/getugroups (Include): Set to "getugroups.h".
15488
15489 2011-05-23  Bruno Haible  <bruno@clisp.org>
15490
15491         linkat: Simplify autoconf macro.
15492         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15493
15494 2011-05-23  Bruno Haible  <bruno@clisp.org>
15495             Eric Blake  <eblake@redhat.com>
15496
15497         linkat, renameat: Update dependencies.
15498         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15499         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15500         symlinkat.
15501
15502 2011-05-23  Jim Meyering  <meyering@redhat.com>
15503
15504         maint.mk: more tight_scope improvements
15505         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15506         (_gl_TS_headers): Define only in if-0'd block.
15507         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15508         sometimes we must *not* use it.  Adjust uses accordingly.
15509         (sc_tight_scope): Use much simpler grep-based test to determine
15510         whether we skip this rule.
15511
15512         maint.mk: generalize/improve the tight-scope rule
15513         * top/maint.mk: Emit a warning when the test is skipped.
15514         (_gl_TS_dir): Add $(srcdir)/ prefix.
15515         (_gl_TS_function_match): Simplify, rather than trying
15516         to enumerate common types.  Otherwise, it would fail to match an
15517         "extern unsigned char const *" declaration in idutils.
15518         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15519         a way to support use of that type of macro.
15520         (_gl_TS_var_match): Simplify regexp.
15521         (_gl_TS_obj_files): New configurable variable.
15522         (_gl_TS_headers): Likewise.
15523
15524 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15525
15526         verify: fix bug when gnulib <assert.h> is also included
15527         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15528         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15529         Perhaps there's a better way, but this fixes the immediate problem.
15530         Problem reported by Bruno Haible in
15531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15532
15533 2011-05-22  Bruno Haible  <bruno@clisp.org>
15534
15535         xgetcwd: Simplify autoconf macro.
15536         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15537
15538 2011-05-22  Bruno Haible  <bruno@clisp.org>
15539
15540         New module 'mktime-internal'.
15541         * modules/mktime-internal: New file.
15542         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15543         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15544         mktime_internal as a C macro if libc has __mktime_internal.
15545         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15546         conditions.
15547         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15548
15549 2011-05-22  Bruno Haible  <bruno@clisp.org>
15550
15551         timegm: Correct mktime replacement statements.
15552         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15553         defining mktime as a C macro. This completes a 2009-07-28 commit.
15554
15555 2011-05-22  Bruno Haible  <bruno@clisp.org>
15556
15557         timegm: Simplify autoconf macro.
15558         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15559
15560 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15561
15562         clock-time: change to LGPLv2+.
15563         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15564         BSD-like but we have no mark for that; this is good enough for now.
15565
15566 2011-05-21  Bruno Haible  <bruno@clisp.org>
15567
15568         strerror_r: Fix comments.
15569         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15570
15571 2011-05-21  Bruno Haible  <bruno@clisp.org>
15572
15573         relocatable-prog-wrapper: Fix possible link error.
15574         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15575         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15576         (gl_FUNC_SETENV): ... to here.
15577         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15578         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15579
15580 2011-05-21  Bruno Haible  <bruno@clisp.org>
15581
15582         relocatable-prog-wrapper: Assume strerror() exists.
15583         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15584         m4/strerror.m4.
15585         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15586         * lib/relocwrapper.c: Remove mention of strerror module.
15587         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15589         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15590         C macro.
15591
15592 2011-05-21  Bruno Haible  <bruno@clisp.org>
15593
15594         select: Simplify replacement idiom.
15595         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15596         Win32 platforms.
15597         * lib/sys_select.in.h (select): Simplify accordingly.
15598         * modules/select (Depends-on): Likewise.
15599
15600 2011-05-21  Bruno Haible  <bruno@clisp.org>
15601
15602         mkdir-p: Simplify autoconf macro.
15603         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15604         gl_FUNC_LCHOWN.
15605
15606 2011-05-21  Eric Blake  <eblake@redhat.com>
15607
15608         strerror_r: avoid clobbering strerror on cygwin
15609         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15610         fall back instead to sys_errlist.
15611         * modules/strerror (configure.ac): Add witness.
15612         * tests/test-strerror_r.c (main): Enhance test.
15613         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15614         * tests/test-perror2.c (main): Free memory before exit.
15615
15616 2011-05-21  Bruno Haible  <bruno@clisp.org>
15617
15618         mkdtemp: Use gnulib naming conventions.
15619         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15620         * modules/mkdtemp (configure.ac): Update.
15621
15622 2011-05-20  Eric Blake  <eblake@redhat.com>
15623
15624         strerror_r: avoid corrupting errno on Solaris
15625         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15626         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15627
15628         strerror_r: avoid compiler warning
15629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15630
15631         strerror_r: simplify AIX code
15632         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15633
15634         test-perror: avoid spurious failure on FreeBSD
15635         * modules/perror-tests (Depends-on): Add strerror, now that
15636         strerror_r no longer pulls it in.
15637
15638 2011-05-20  Bruno Haible  <bruno@clisp.org>
15639
15640         strerror_r-posix: Remove unused dependencies.
15641         * modules/strerror_r-posix (Depends-on): Remove strerror.
15642         Reported by Eric Blake.
15643
15644 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15645
15646         intprops: remove assumption about A|B representation
15647         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15648         is a valid integer if both A and B are.  Although this is true for
15649         all known practical hosts, the C standard doesn't guarantee it,
15650         and the code need not assume it.  Also, this change may work around
15651         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15652         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15653
15654 2011-05-20  Eric Blake  <eblake@redhat.com>
15655
15656         perror: work around FreeBSD bug
15657         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15658         is broken.  Move AC_LIBOBJ...
15659         * modules/perror (configure.ac): Here.
15660         * doc/posix-functions/perror.texi (perror): Document this.
15661         * tests/test-perror2.c (main): Enhance test.
15662
15663         test-perror: check for strerror interactions
15664         * tests/macros.h (STREQ): Add macro.
15665         * modules/perror-tests (Files): Add second test.
15666         * tests/test-perror2.c (main): New file.
15667         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15668
15669         test-perror: rewrite to use init script
15670         * modules/perror-tests (Files): Add init.sh.
15671         * tests/test-perror.sh: Use temporary directory.
15672
15673 2011-05-20  Jim Meyering  <meyering@redhat.com>
15674
15675         maint: replace misused "a" with "an"
15676         * doc/intprops.texi: "a integer"
15677         * doc/regex.texi: "a explanation"
15678         * lib/alignof.h: "a object"
15679         * lib/argmatch.h: "a explanation"
15680         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15681         * lib/stdint.in.h: "a integer"
15682         * lib/userspec.c: "a owner"
15683         * doc/gnulib.texi: Fix "a idea", and reword.
15684
15685 2011-05-19  Jim Meyering  <meyering@redhat.com>
15686
15687         maint: correct misuse of "a" and "an"
15688         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15689         * lib/argp-help.c: "an docum...": s/an/a/
15690         * lib/argp-parse.c: "An vector": s/An/A/
15691         * lib/execute.c: "an native": s/an/a/
15692         * lib/spawn-pipe.c: Likewise.
15693         * lib/gc.h: "an Gc_rc": s/an/a/
15694         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15695         * lib/fts.c: "an stat.st_dev": s/an/a/
15696
15697 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15698
15699         intprops-tests: work around HP-UX 11.23 cc bug with constants
15700         * tests/test-intprops.c (VERIFY): New macro.
15701         (main): Use it, instead of verify, to work around the compiler bug; see
15702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15703
15704         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15705         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15706         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15707         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15708         (_GL_REMAINDER_OVERFLOW): Use it.
15709
15710         intprops-tests: revert unsigned part of previous change
15711         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15712         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15713         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15715
15716 2011-05-19  Bruno Haible  <bruno@clisp.org>
15717
15718         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15719         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15720         strerror_r() returned without filling the buffer.
15721         Reported by Eric Blake.
15722
15723 2011-05-19  Eric Blake  <eblake@redhat.com>
15724
15725         strerror_r: guarantee unchanged errno
15726         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15727         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15728         failure.
15729         * tests/test-strerror_r.c (main): Enhance test.
15730
15731 2011-05-19  Bruno Haible  <bruno@clisp.org>
15732
15733         strerror_r: Reorder #if blocks.
15734         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15735         for consistency with the previous commit.
15736
15737 2011-05-19  Bruno Haible  <bruno@clisp.org>
15738
15739         perror: Avoid clobbering the strerror buffer when possible.
15740         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15741         * lib/strerror.c: Include it.
15742         * modules/strerror (Files): Add lib/strerror-impl.h.
15743         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15744         (my_strerror): New function, defined through lib/strerror-impl.h.
15745         (perror): Use it instead of strerror.
15746         * modules/perror (Files): Add lib/strerror-impl.h.
15747         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15748
15749 2011-05-19  Eric Blake  <eblake@redhat.com>
15750
15751         strerror_r: fix on newer cygwin
15752         * lib/strerror_r.c (strerror_r): Cygwin now has
15753         __xpg_strerror_r, use it.
15754
15755 2011-05-19  Bruno Haible  <bruno@clisp.org>
15756
15757         strerror_r: Avoid clobbering the strerror buffer when possible.
15758         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15759         (sys_nerr, sys_errlist): New declarations.
15760         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15761         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15762         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15763
15764 2011-05-19  Bruno Haible  <bruno@clisp.org>
15765
15766         strerror_r: Fix test failure on mingw.
15767         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15768         EXTEND_STRERROR_R.
15769         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15770         macros from errno.in.h instead.
15771
15772 2011-05-19  Eric Blake  <eblake@redhat.com>
15773
15774         strerror: relax test for Solaris
15775         * tests/test-strerror.c (main): Permit Solaris behavior.
15776         * tests/test-strerror_r.c (main): Likewise.
15777
15778         strerror: enforce POSIX ruling on strerror(0)
15779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15780         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15781         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15782         * doc/posix-functions/strerror.texi (strerror): Document it.
15783         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15784         * tests/test-strerror.c (main): Strengthen test.
15785         * tests/test-strerror_r.c (main): Likewise.
15786
15787 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15788
15789         intprop-tests: port to older and more-pedantic compilers
15790         * modules/intprops-tests (Files): Add tests/macros.h.
15791         * tests/test-intprops.c: Include macros.h.
15792         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15793         it's no longer documented to expand to an integer constant expression.
15794         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15795         argument is floating point, as it's no longer documented to expand
15796         to an integer constant expression in that case.
15797         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15798         compiler bugs reported by Bruno Haible.  See
15799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15800         (U0, U1): New constants, to work around the same bugs.  Also,
15801         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15802
15803         intprops: work around C compiler bugs
15804         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15805         bug in Sun C 5.11 2010/08/13 and other compilers; see
15806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15807
15808         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15809         * doc/intprops.texi (Integer Type Determination): Fix
15810         documentation for TYPE_IS_INTEGER: it returns an constant
15811         expression, not an integer constant expression.  Fix doc for
15812         TYPE_SIGNED: it returns an integer constant expression only if its
15813         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15814         hardly worth documented that way....)
15815
15816 2011-05-18  Bruno Haible  <bruno@clisp.org>
15817
15818         strerror_r: Avoid clobbering the strerror buffer when possible.
15819         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15820         Handle gnulib defined errno values here. When strerror() returns NULL
15821         or an empty string, return EINVAL.
15822         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15823         gnulib defined errno values here.
15824         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15825
15826 2011-05-18  Eric Blake  <eblake@redhat.com>
15827
15828         fnmatch: avoid compiler warning
15829         * lib/fnmatch_loop.c (FCT): Use correct type.
15830         Reported by Matthias Bolte.
15831
15832 2011-05-13  Jim Meyering  <meyering@redhat.com>
15833
15834         maint.mk: three new prohibit_<HDR>_without_use rules
15835         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15836         (sc_prohibit_stdio-safer_without_use): Likewise.
15837         (sc_prohibit_xfreopen_without_use): Likewise.
15838
15839 2011-05-17  Jim Meyering  <meyering@redhat.com>
15840
15841         announce-gen: fail if the NEWS delta is empty
15842         If there's nothing noteworthy in NEWS, then either you forgot
15843         or you shouldn't be releasing.
15844         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15845
15846 2011-05-17  Pádraig Brady <P@draigBrady.com>
15847
15848         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15849         reserved symbols starting with double underscore from the check.
15850
15851 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15852
15853         intprops: add doc
15854         * doc/intprops.texi: New file, documenting intprops.
15855         * doc/gnulib.texi (Particular Modules): Include it.
15856
15857         verify: add doc to gnulib manual and fix example
15858         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15859         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15860         (Compile-time Assertions): Fix example so it can't overflow.
15861
15862 2011-05-17  Jim Meyering  <meyering@redhat.com>
15863
15864         warnings.m4: don't usurp save_CPPFLAGS variable name
15865         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15866
15867         doc: fix typo
15868         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15869
15870 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15871             Bruno Haible  <bruno@clisp.org>
15872
15873         doc: Tweak recent change.
15874         * README (Portability guidelines): Tweak new text.
15875         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15876         Interix 6.1.
15877
15878 2011-05-16  Eric Blake  <eblake@redhat.com>
15879
15880         inttypes: avoid autoconf warning
15881         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15882         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15883
15884 2011-05-16  Sam Steingold <sds@gnu.org>
15885         and Eric Blake  <eblake@redhat.com>
15886
15887         vc-list-files: accept multiple directory operands
15888         * build-aux/vc-list-files: Iterate over all remaining operands.
15889
15890 2011-05-16  Bruno Haible  <bruno@clisp.org>
15891
15892         Fix confusion regarding deprecated modules.
15893         * modules/calloc (Status, Notice): Mark module as deprecated, not
15894         obsolete.
15895         * modules/fnmatch-posix (Status, Notice): Likewise.
15896         * modules/getdate (Status, Notice): Likewise.
15897         * modules/getopt (Status, Notice): Likewise.
15898         * modules/malloc (Status, Notice): Likewise.
15899         * modules/pipe (Status, Notice): Likewise.
15900         * modules/realloc (Status, Notice): Likewise.
15901         * modules/rename-dest-slash (Status, Notice): Likewise.
15902         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15903         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15904         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15905         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15906         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15907
15908 2011-05-16  Bruno Haible  <bruno@clisp.org>
15909
15910         doc: List the target platforms.
15911         * doc/gnulib-intro.texi (Target Platforms): New section.
15912         * doc/gnulib.texi (Introduction): Update menu.
15913         * README (Portability guidelines): Refer to the new section. Update
15914         statement about oldest supported environment. Remove rationale why
15915         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15916         unportable C89 function.
15917         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15918         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15919
15920 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15921
15922         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15923
15924 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15925
15926         intprops-tests: new module
15927         * modules/intprops-tests, tests/test-intprops.c: New files.
15928
15929         intprops: add safe, portable integer overflow checking
15930         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15931         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15932         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15933         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15934         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15935         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15936         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15937         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15938         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15939         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15940         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15941
15942 2011-05-12  James Youngman  <jay@gnu.org>
15943
15944         Add a test for glibc's Bugzilla bug #12378.
15945         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15946         doesn't allow the literal matching of a lone "[" (which is
15947         required by POSIX).
15948         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15949
15950 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15951
15952         Sync glibc change fixing Bugzilla bug #12378.
15953         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15954         beginning and fall back to matching as normal character if the
15955         string ends before the matching ']' is found.  This is what POSIX
15956         requires.
15957
15958 2011-05-13  Eric Blake  <eblake@redhat.com>
15959
15960         getcwd-lgpl: relax test for FreeBSD
15961         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15962         issue.
15963         * tests/test-getcwd-lgpl.c (main): Relax test.
15964         Reported by Matthias Bolte.
15965
15966 2011-05-11  Eric Blake  <eblake@redhat.com>
15967
15968         test-fflush: silence compiler warning
15969         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15970
15971 2011-05-11  Bruno Haible  <bruno@clisp.org>
15972
15973         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15975         * modules/canonicalize (Depends-on): Add 'nocrash'.
15976         * modules/canonicalize-lgpl (Depends-on): Likewise.
15977         * doc/posix-functions/realpath.texi: Update platforms list.
15978         Reported by Ryan Schmidt <ryandesign@macports.org>.
15979
15980 2011-05-11  Bruno Haible  <bruno@clisp.org>
15981
15982         group-member: Declare function in <unistd.h>.
15983         * lib/unistd.in.h (group_member): New declaration.
15984         * lib/group-member.h: Remove file.
15985         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15986         * tests/test-unistd-c++.cc: Check signature of group_member.
15987         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15988         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15989         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15990         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15991         HAVE_GROUP_MEMBER.
15992         * modules/group-member (Files): Remove lib/group-member.h.
15993         (Depends-on): Add unistd. Specify conditions.
15994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15995         (Include): Change to <unistd.h>.
15996         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15997         HAVE_GROUP_MEMBER.
15998         * NEWS: Mention the change.
15999         * lib/euidaccess.c: Don't include group-member.h.
16000
16001 2011-05-11  Bruno Haible  <bruno@clisp.org>
16002
16003         group-member: Document module.
16004         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16005         module.
16006
16007 2011-05-11  Bruno Haible  <bruno@clisp.org>
16008
16009         fclose: Fix mistake earlier today.
16010         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16011
16012 2011-05-11  Eric Blake  <eblake@redhat.com>
16013
16014         fclose: preserve fflush errors
16015         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16016         Reported by Jim Meyering.
16017
16018         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16019         * build-aux/bootstrap (check_versions): When no specific version
16020         is required, merely check that the app produces an exit status
16021         that indicates its existence.
16022
16023         maint.mk: drop redundant check
16024         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16025         the same but better.
16026
16027 2011-05-11  Bruno Haible  <bruno@clisp.org>
16028
16029         fclose: Fix possible link error.
16030         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16031         unregister_shadow_fd. Improve comments.
16032         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16033         Eric Blake.
16034
16035 2011-05-11  Jim Meyering  <meyering@redhat.com>
16036
16037         maint.mk: improve "can not" detection and generalize rule name
16038         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16039         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16040         Use the same technique as in sc_prohibit_doubled_word, so that
16041         we recognize "can not" also when the words are separated by a newline.
16042         Suggested by Eric Blake.
16043         (perl_filename_lineno_text_): Define.  Factored out of...
16044         (prohibit_doubled_word_): ...here.  Use the new definition.
16045         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16046         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16047         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16048
16049 2011-05-10  Eric Blake  <eblake@redhat.com>
16050
16051         fclose: avoid double close race when possible
16052         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16053         all but WINDOWS_SOCKETS.
16054
16055 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16056
16057         openat: correct new comment
16058         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16059
16060 2011-05-10  Jim Meyering  <meyering@redhat.com>
16061
16062         openat: add comments
16063         * lib/openat-proc.c (openat_proc_name): Add comments,
16064         mostly from Eric Blake.
16065
16066 2011-05-09  Eric Blake  <eblake@redhat.com>
16067
16068         openat: reduce syscalls in first probe of /proc
16069         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16070         be a directory.  Simplify the probe for .. bugs.
16071         * modules/openat (Depends-on): Drop same-inode.
16072         Reported by Bastien ROUCARIES.
16073
16074 2011-05-09  Jim Meyering  <meyering@redhat.com>
16075
16076         maint.mk: change semantics/name of tight_scope variables
16077         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16078         Rename variables to align with semantics that make them more useful.
16079
16080         maint.mk: tweak new rule's name not to impinge
16081         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16082         (sc_tight_scope): Use new rule name rather than $@-0.
16083
16084         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16085         * top/maint.mk (sc_tight_scope): New rule.
16086         (sc_tight_scope-0): New rule, ifdef'd out.
16087         (_gl_TS_dir): Default.
16088         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16089         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16090
16091 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16092
16093         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16094         Haible <bruno@clisp.org>.
16095
16096 2011-05-08  Bruno Haible  <bruno@clisp.org>
16097
16098         Comments.
16099         * m4/isnanf.m4: Add comment.
16100         * m4/isnanl.m4: Likewise.
16101
16102 2011-05-08  Bruno Haible  <bruno@clisp.org>
16103
16104         glob: Remove obsolete macro.
16105         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16106
16107 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16108
16109         intprops: Sun C 5.11 supports __typeof__
16110         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16111         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16112         which is new.
16113         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16114
16115         intprops: switch to usual gnulib indenting and naming
16116         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16117         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16118
16119         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16120
16121 2011-05-08  Jim Meyering  <meyering@redhat.com>
16122
16123         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16124         * top/maint.mk (release-prep): Use make's --no-print-directory
16125         option when generating the announcement.  This eliminates the
16126         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16127         generated announcement template.
16128
16129 2011-05-08  Bruno Haible  <bruno@clisp.org>
16130
16131         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16132         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16133         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16134
16135 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16136
16137         ignore-value, verify: Omit include files from lib_SOURCES.
16138         * modules/ignore-value, modules/verify (Makefile.am):
16139         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16140         that leads Automake to duplicate use of am__objects_... variables
16141         in Makefile.in.  See
16142         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16143
16144 2011-05-07  Bruno Haible  <bruno@clisp.org>
16145
16146         fclose: Simplify autoconf macro.
16147         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16148         defined.
16149
16150 2011-05-07  Bruno Haible  <bruno@clisp.org>
16151
16152         canonicalize-lgpl: Fix autoconf macro ordering bug.
16153         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16154         gl_STDLIB_H_DEFAULTS.
16155
16156 2011-05-06  Eric Blake  <eblake@redhat.com>
16157
16158         maintainer-makefile: make sc_po_check easier to tune
16159         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16160         to probe for strings, such as an alternate location for gnulib.
16161
16162         fclose: guarantee behavior on seekable stdin
16163         * modules/fclose (Depends-on): Add fflush.
16164         * doc/posix-functions/fclose.texi (fclose): Document this.
16165         * tests/test-fclose.c (main): Make test for this unconditional.
16166
16167 2011-05-06  Bruno Haible  <bruno@clisp.org>
16168
16169         fflush, fpurge: Relicense under LGPLv2+.
16170         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16171         * modules/fpurge (License): Likewise.
16172         With permission from Eric Blake and Jim Meyering.
16173         Suggested by Eric Blake.
16174
16175 2011-05-06  Karl Berry  <karl@gnu.org>
16176
16177         * MODULES.html.sh (func_all_modules): remove exit.
16178
16179 2011-05-06  Jim Meyering  <meyering@redhat.com>
16180
16181         maint.mk: use info-gnu@ as the default only for a stable release
16182         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16183         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16184         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16185         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16186
16187 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16188
16189         assert-h: new module, which supports C1X-style static_assert
16190         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16191         * lib/verify.h: Revamp so that this can be copied into assert.h,
16192         while retaining the ability to use it standalone as before.
16193         Rename private identifiers so as not to encroach on the
16194         standard C namespace, since this is now used by assert.h.
16195         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16196         the old verify_true.
16197         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16198         the old verify_true.  Use _GL_VERIFY_TYPE.
16199         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16200         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16201         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16202         defined when this file is copied into the replacement assert.h.
16203         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16204         and _Static_assert is not built in.
16205         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16206         defined, and use the new macros mentioned above.
16207         * doc/posix-headers/assert.texi: Document this.
16208
16209 2011-05-05  Bruno Haible  <bruno@clisp.org>
16210
16211         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16212         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16213         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16214         gl_REPLACE_FCLOSE here.
16215         * modules/fflush (Depends-on): Remove fclose.
16216         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16217         combination with module 'fclose'.
16218
16219 2011-05-05  Bruno Haible  <bruno@clisp.org>
16220
16221         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16222         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16223         gl_FUNC_FFLUSH.
16224         (gl_FUNC_FFLUSH): Use it.
16225         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16227         gl_REPLACE_FSEEKO here.
16228
16229 2011-05-05  Bruno Haible  <bruno@clisp.org>
16230
16231         tzset: Relicense under LGPL.
16232         * modules/tzset (License): Change to LGPL.
16233         No agreement needed; it's a no-op.
16234
16235         strtoimax, strtoumax: Relicense under LGPL.
16236         * modules/strtoimax (License): Change to LGPL.
16237         * modules/strtoumax (License): Likewise.
16238         With permission from Jim Meyering, Paul Eggert:
16239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16241
16242         getgroups: Relicense under LGPL.
16243         * modules/getgroups (License): Change to LGPL.
16244         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16248
16249         nanosleep: Relicense under LGPL.
16250         * modules/nanosleep (License): Change to LGPL.
16251         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16252         Haible:
16253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16257
16258         futimens: Relicense under LGPL.
16259         * modules/futimens (License): Change to LGPL.
16260         With permission from Eric Blake:
16261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16262
16263         fflush: Relicense under LGPL.
16264         * modules/fflush (License): Change to LGPL.
16265         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16269
16270         tmpfile: Relicense under LGPL.
16271         * modules/tmpfile (License): Change to LGPL.
16272         With permission from Ben Pfaff:
16273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16274
16275         isfinite: Relicense under LGPL.
16276         * modules/isfinite (License): Change to LGPL.
16277         With permission from Ben Pfaff, Bruno Haible:
16278         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16280
16281         acosl..tanl: Relicense under LGPL.
16282         * modules/acosl (License): Change to LGPL.
16283         * modules/asinl (License): Likewise.
16284         * modules/atanl (License): Likewise.
16285         * modules/cosl (License): Likewise.
16286         * modules/expl (License): Likewise.
16287         * modules/logl (License): Likewise.
16288         * modules/sinl (License): Likewise.
16289         * modules/sqrtl (License): Likewise.
16290         * modules/tanl (License): Likewise.
16291         Source code originally from glibc and Paolo Bonzini. Agreements:
16292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16294
16295 2011-05-05  Bruno Haible  <bruno@clisp.org>
16296
16297         signal: Define sighandler_t.
16298         * lib/signal.in.h (sighandler_t): New type.
16299         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16300         whether sighandler_t is defined.
16301         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16302         * modules/signal (Depends-on): Add extensions.
16303         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16304         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16305         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16306
16307 2011-05-05  Eric Blake  <eblake@redhat.com>
16308
16309         maint: remove useless REPLACE_*_H macros
16310         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16311         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16312         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16313         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16314         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16315         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16316         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16317         * m4/btowc.m4: Update callers.
16318         * m4/dirfd.m4: Likewise.
16319         * m4/duplocale.m4: Likewise.
16320         * m4/fchdir.m4: Likewise.
16321         * m4/fdopendir.m4: Likewise.
16322         * m4/inet_ntop.m4: Likewise.
16323         * m4/inet_pton.m4: Likewise.
16324         * m4/ioctl.m4: Likewise.
16325         * m4/mbrlen.m4: Likewise.
16326         * m4/mbrtowc.m4: Likewise.
16327         * m4/mbsinit.m4: Likewise.
16328         * m4/mbsnrtowcs.m4: Likewise.
16329         * m4/mbsrtowcs.m4: Likewise.
16330         * m4/poll.m4: Likewise.
16331         * m4/setlocale.m4: Likewise.
16332         * m4/wcrtomb.m4: Likewise.
16333         * m4/wcsnrtombs.m4: Likewise.
16334         * m4/wcsrtombs.m4: Likewise.
16335         * m4/wctob.m4: Likewise.
16336         * m4/wcwidth.m4: Likewise.
16337         * modules/posix_spawn: Likewise.
16338         * modules/posix_spawn_file_actions_addclose: Likewise.
16339         * modules/posix_spawn_file_actions_adddup2: Likewise.
16340         * modules/posix_spawn_file_actions_addopen: Likewise.
16341         * modules/posix_spawn_file_actions_destroy: Likewise.
16342         * modules/posix_spawn_file_actions_init: Likewise.
16343         * modules/posix_spawnattr_destroy: Likewise.
16344         * modules/posix_spawnattr_getflags: Likewise.
16345         * modules/posix_spawnattr_getpgroup: Likewise.
16346         * modules/posix_spawnattr_getschedparam: Likewise.
16347         * modules/posix_spawnattr_getschedpolicy: Likewise.
16348         * modules/posix_spawnattr_getsigdefault: Likewise.
16349         * modules/posix_spawnattr_getsigmask: Likewise.
16350         * modules/posix_spawnattr_init: Likewise.
16351         * modules/posix_spawnattr_setflags: Likewise.
16352         * modules/posix_spawnattr_setpgroup: Likewise.
16353         * modules/posix_spawnattr_setschedparam: Likewise.
16354         * modules/posix_spawnattr_setschedpolicy: Likewise.
16355         * modules/posix_spawnattr_setsigdefault: Likewise.
16356         * modules/posix_spawnattr_setsigmask: Likewise.
16357         * modules/posix_spawnp: Likewise.
16358
16359 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16360
16361         Add option to do-release-commit-and-tag to specify branch.
16362         * build-aux/do-release-commit-and-tag: Add --branch.
16363
16364 2011-05-03  Bruno Haible  <bruno@clisp.org>
16365
16366         Avoid unnecessary compilation units, through conditional dependencies.
16367         * modules/accept (Depends-on): Add conditions to the dependencies.
16368         * modules/acosl (Depends-on): Likewise.
16369         * modules/argz (Depends-on): Likewise.
16370         * modules/asinl (Depends-on): Likewise.
16371         * modules/atanl (Depends-on): Likewise.
16372         * modules/atoll (Depends-on): Likewise.
16373         * modules/bind (Depends-on): Likewise.
16374         * modules/btowc (Depends-on): Likewise.
16375         * modules/canonicalize-lgpl (Depends-on): Likewise.
16376         * modules/ceil (Depends-on): Likewise.
16377         * modules/ceilf (Depends-on): Likewise.
16378         * modules/ceill (Depends-on): Likewise.
16379         * modules/chdir-long (Depends-on): Likewise.
16380         * modules/chown (Depends-on): Likewise.
16381         * modules/close (Depends-on): Likewise.
16382         * modules/connect (Depends-on): Likewise.
16383         * modules/cosl (Depends-on): Likewise.
16384         * modules/dirfd (Depends-on): Likewise.
16385         * modules/dprintf (Depends-on): Likewise.
16386         * modules/dprintf-posix (Depends-on): Likewise.
16387         * modules/error (Depends-on): Likewise.
16388         * modules/euidaccess (Depends-on): Likewise.
16389         * modules/expl (Depends-on): Likewise.
16390         * modules/faccessat (Depends-on): Likewise.
16391         * modules/fchdir (Depends-on): Likewise.
16392         * modules/fclose (Depends-on): Likewise.
16393         * modules/fcntl (Depends-on): Likewise.
16394         * modules/fdopendir (Depends-on): Likewise.
16395         * modules/fflush (Depends-on): Likewise.
16396         * modules/floor (Depends-on): Likewise.
16397         * modules/floorf (Depends-on): Likewise.
16398         * modules/floorl (Depends-on): Likewise.
16399         * modules/fnmatch (Depends-on): Likewise.
16400         * modules/fopen (Depends-on): Likewise.
16401         * modules/fprintf-posix (Depends-on): Likewise.
16402         * modules/frexp (Depends-on): Likewise.
16403         * modules/frexp-nolibm (Depends-on): Likewise.
16404         * modules/frexpl (Depends-on): Likewise.
16405         * modules/frexpl-nolibm (Depends-on): Likewise.
16406         * modules/fseek (Depends-on): Likewise.
16407         * modules/fsusage (Depends-on): Likewise.
16408         * modules/ftell (Depends-on): Likewise.
16409         * modules/ftello (Depends-on): Likewise.
16410         * modules/futimens (Depends-on): Likewise.
16411         * modules/getcwd (Depends-on): Likewise.
16412         * modules/getcwd-lgpl (Depends-on): Likewise.
16413         * modules/getdelim (Depends-on): Likewise.
16414         * modules/getdomainname (Depends-on): Likewise.
16415         * modules/getgroups (Depends-on): Likewise.
16416         * modules/gethostname (Depends-on): Likewise.
16417         * modules/getline (Depends-on): Likewise.
16418         * modules/getlogin_r (Depends-on): Likewise.
16419         * modules/getopt-posix (Depends-on): Likewise.
16420         * modules/getpeername (Depends-on): Likewise.
16421         * modules/getsockname (Depends-on): Likewise.
16422         * modules/getsockopt (Depends-on): Likewise.
16423         * modules/getsubopt (Depends-on): Likewise.
16424         * modules/getusershell (Depends-on): Likewise.
16425         * modules/glob (Depends-on): Likewise.
16426         * modules/grantpt (Depends-on): Likewise.
16427         * modules/iconv_open (Depends-on): Likewise.
16428         * modules/iconv_open-utf (Depends-on): Likewise.
16429         * modules/inet_ntop (Depends-on): Likewise.
16430         * modules/inet_pton (Depends-on): Likewise.
16431         * modules/ioctl (Depends-on): Likewise.
16432         * modules/isapipe (Depends-on): Likewise.
16433         * modules/isfinite (Depends-on): Likewise.
16434         * modules/isinf (Depends-on): Likewise.
16435         * modules/lchown (Depends-on): Likewise.
16436         * modules/ldexpl (Depends-on): Likewise.
16437         * modules/link (Depends-on): Likewise.
16438         * modules/linkat (Depends-on): Likewise.
16439         * modules/listen (Depends-on): Likewise.
16440         * modules/logl (Depends-on): Likewise.
16441         * modules/lstat (Depends-on): Likewise.
16442         * modules/mbrlen (Depends-on): Likewise.
16443         * modules/mbrtowc (Depends-on): Likewise.
16444         * modules/mbsinit (Depends-on): Likewise.
16445         * modules/mbsnrtowcs (Depends-on): Likewise.
16446         * modules/mbsrtowcs (Depends-on): Likewise.
16447         * modules/mbtowc (Depends-on): Likewise.
16448         * modules/memcmp (Depends-on): Likewise.
16449         * modules/mkdir (Depends-on): Likewise.
16450         * modules/mkdtemp (Depends-on): Likewise.
16451         * modules/mkfifo (Depends-on): Likewise.
16452         * modules/mkfifoat (Depends-on): Likewise.
16453         * modules/mknod (Depends-on): Likewise.
16454         * modules/mkostemp (Depends-on): Likewise.
16455         * modules/mkostemps (Depends-on): Likewise.
16456         * modules/mkstemp (Depends-on): Likewise.
16457         * modules/mkstemps (Depends-on): Likewise.
16458         * modules/mktime (Depends-on): Likewise.
16459         * modules/nanosleep (Depends-on): Likewise.
16460         * modules/open (Depends-on): Likewise.
16461         * modules/openat (Depends-on): Likewise.
16462         * modules/perror (Depends-on): Likewise.
16463         * modules/poll (Depends-on): Likewise.
16464         * modules/popen (Depends-on): Likewise.
16465         * modules/posix_spawn (Depends-on): Likewise.
16466         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16467         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16468         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16469         * modules/posix_spawnp (Depends-on): Likewise.
16470         * modules/pread (Depends-on): Likewise.
16471         * modules/printf-posix (Depends-on): Likewise.
16472         * modules/ptsname (Depends-on): Likewise.
16473         * modules/putenv (Depends-on): Likewise.
16474         * modules/pwrite (Depends-on): Likewise.
16475         * modules/readline (Depends-on): Likewise.
16476         * modules/readlink (Depends-on): Likewise.
16477         * modules/readlinkat (Depends-on): Likewise.
16478         * modules/recv (Depends-on): Likewise.
16479         * modules/recvfrom (Depends-on): Likewise.
16480         * modules/regex (Depends-on): Likewise.
16481         * modules/remove (Depends-on): Likewise.
16482         * modules/rename (Depends-on): Likewise.
16483         * modules/renameat (Depends-on): Likewise.
16484         * modules/rmdir (Depends-on): Likewise.
16485         * modules/round (Depends-on): Likewise.
16486         * modules/roundf (Depends-on): Likewise.
16487         * modules/roundl (Depends-on): Likewise.
16488         * modules/rpmatch (Depends-on): Likewise.
16489         * modules/select (Depends-on): Likewise.
16490         * modules/send (Depends-on): Likewise.
16491         * modules/sendto (Depends-on): Likewise.
16492         * modules/setenv (Depends-on): Likewise.
16493         * modules/setlocale (Depends-on): Likewise.
16494         * modules/setsockopt (Depends-on): Likewise.
16495         * modules/shutdown (Depends-on): Likewise.
16496         * modules/sigaction (Depends-on): Likewise.
16497         * modules/signbit (Depends-on): Likewise.
16498         * modules/sigprocmask (Depends-on): Likewise.
16499         * modules/sinl (Depends-on): Likewise.
16500         * modules/sleep (Depends-on): Likewise.
16501         * modules/snprintf (Depends-on): Likewise.
16502         * modules/snprintf-posix (Depends-on): Likewise.
16503         * modules/socket (Depends-on): Likewise.
16504         * modules/sprintf-posix (Depends-on): Likewise.
16505         * modules/sqrtl (Depends-on): Likewise.
16506         * modules/stat (Depends-on): Likewise.
16507         * modules/strchrnul (Depends-on): Likewise.
16508         * modules/strdup-posix (Depends-on): Likewise.
16509         * modules/strerror (Depends-on): Likewise.
16510         * modules/strerror_r-posix (Depends-on): Likewise.
16511         * modules/strndup (Depends-on): Likewise.
16512         * modules/strnlen (Depends-on): Likewise.
16513         * modules/strptime (Depends-on): Likewise.
16514         * modules/strsep (Depends-on): Likewise.
16515         * modules/strsignal (Depends-on): Likewise.
16516         * modules/strstr-simple (Depends-on): Likewise.
16517         * modules/strtod (Depends-on): Likewise.
16518         * modules/strtoimax (Depends-on): Likewise.
16519         * modules/strtok_r (Depends-on): Likewise.
16520         * modules/strtoumax (Depends-on): Likewise.
16521         * modules/symlink (Depends-on): Likewise.
16522         * modules/symlinkat (Depends-on): Likewise.
16523         * modules/tanl (Depends-on): Likewise.
16524         * modules/tcgetsid (Depends-on): Likewise.
16525         * modules/tmpfile (Depends-on): Likewise.
16526         * modules/trunc (Depends-on): Likewise.
16527         * modules/truncf (Depends-on): Likewise.
16528         * modules/truncl (Depends-on): Likewise.
16529         * modules/uname (Depends-on): Likewise.
16530         * modules/unlink (Depends-on): Likewise.
16531         * modules/unlockpt (Depends-on): Likewise.
16532         * modules/unsetenv (Depends-on): Likewise.
16533         * modules/usleep (Depends-on): Likewise.
16534         * modules/utimensat (Depends-on): Likewise.
16535         * modules/vasprintf (Depends-on): Likewise.
16536         * modules/vdprintf (Depends-on): Likewise.
16537         * modules/vdprintf-posix (Depends-on): Likewise.
16538         * modules/vfprintf-posix (Depends-on): Likewise.
16539         * modules/vprintf-posix (Depends-on): Likewise.
16540         * modules/vsnprintf (Depends-on): Likewise.
16541         * modules/vsnprintf-posix (Depends-on): Likewise.
16542         * modules/vsprintf-posix (Depends-on): Likewise.
16543         * modules/wcrtomb (Depends-on): Likewise.
16544         * modules/wcscasecmp (Depends-on): Likewise.
16545         * modules/wcscspn (Depends-on): Likewise.
16546         * modules/wcsdup (Depends-on): Likewise.
16547         * modules/wcsncasecmp (Depends-on): Likewise.
16548         * modules/wcsnrtombs (Depends-on): Likewise.
16549         * modules/wcspbrk (Depends-on): Likewise.
16550         * modules/wcsrtombs (Depends-on): Likewise.
16551         * modules/wcsspn (Depends-on): Likewise.
16552         * modules/wcsstr (Depends-on): Likewise.
16553         * modules/wcstok (Depends-on): Likewise.
16554         * modules/wcswidth (Depends-on): Likewise.
16555         * modules/wctob (Depends-on): Likewise.
16556         * modules/wctomb (Depends-on): Likewise.
16557         * modules/wctype (Depends-on): Likewise.
16558         * modules/wcwidth (Depends-on): Likewise.
16559         * modules/write (Depends-on): Likewise.
16560
16561 2011-05-03  Bruno Haible  <bruno@clisp.org>
16562
16563         Support for conditional dependencies.
16564         * doc/gnulib.texi (Module description): Document the syntax of
16565         conditional dependencies.
16566         * gnulib-tool: New option --conditional-dependencies.
16567         (func_usage): Document it.
16568         (cond_dependencies): New variable.
16569         (func_get_automake_snippet_conditional,
16570         func_get_automake_snippet_unconditional): New functions, extracted from
16571         func_get_automake_snippet.
16572         (func_get_automake_snippet): Use them.
16573         (sed_first_32_chars): New variable.
16574         (func_module_shellfunc_name): New function.
16575         (func_module_shellvar_name): New function.
16576         (func_module_conditional_name): New function.
16577         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16578         func_cond_module_condition): New functions.
16579         (func_modules_transitive_closure): Add support for conditional
16580         dependencies.
16581         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16582         conditional automake snippet in an automake conditional.
16583         (func_emit_autoconf_snippets): Emit shell functions that contain the
16584         code for conditional modules.
16585         (func_import, func_create_testdir): Update specification.
16586
16587 2011-05-03  Eric Blake  <eblake@redhat.com>
16588
16589         test-getaddrinfo: report error information
16590         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16591
16592 2011-05-03  Jim Meyering  <meyering@redhat.com>
16593
16594         bootstrap: avoid build failure when $GZIP is set
16595         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16596         program name.  If defined at all, it is supposed to list gzip options.
16597         Reported by Alan Curry in http://debbugs.gnu.org/8609
16598
16599 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16600
16601         readme-release: new module with release instructions
16602         * modules/readme-release: New module.
16603         * top/README-release: New file, from coreutils, grep, diffutils.
16604         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16605
16606 2011-05-02  Eric Blake  <eblake@redhat.com>
16607
16608         fflush: also replace fclose when fixing fflush
16609         * modules/fflush (Depends-on): Add fclose.
16610         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16611         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16612         memstreams with no backing fd.
16613         * doc/posix-functions/fclose.texi (fclose): Document the use of
16614         fflush module to fix the bug.
16615         * tests/test-fclose.c (main): Relax test when fclose is used in
16616         isolation.
16617
16618         fclose: add some tests
16619         * modules/fclose-tests: New test module.
16620         * tests/test-fclose.c: New file.
16621         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16622
16623         fclose: reduced dependencies
16624         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16625         simpler lseek.
16626         * lib/fclose.c (rpl_fclose): Likewise.
16627         Reported by Simon Josefsson.
16628
16629         exit: drop remaining clients
16630         * modules/argmatch (Depends-on): Replace exit with stdlib.
16631         * modules/copy-file (Depends-on): Likewise.
16632         * modules/execute (Depends-on): Likewise.
16633         * modules/exitfail (Depends-on): Likewise.
16634         * modules/obstack (Depends-on): Likewise.
16635         * modules/pagealign_alloc (Depends-on): Likewise.
16636         * modules/pipe-filter-gi (Depends-on): Likewise.
16637         * modules/pipe-filter-ii (Depends-on): Likewise.
16638         * modules/savewd (Depends-on): Likewise.
16639         * modules/spawn-pipe (Depends-on): Likewise.
16640         * modules/wait-process (Depends-on): Likewise.
16641         * modules/xsetenv (Depends-on): Likewise.
16642         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16643         * modules/git-merge-changelog (Depends-on): Likewise.
16644         * modules/long-options (Depends-on): Likewise.
16645         * modules/pt_chown (Depends-on): Likewise.
16646         * modules/sysexits (Depends-on): Likewise.
16647
16648         freading: relax license from LGPLv3+ to LGPLv2+
16649         * modules/freading (License): Relax LGPL version.
16650
16651 2011-05-02  Bruno Haible  <bruno@clisp.org>
16652
16653         fchdir: Remove unused dependencies.
16654         * modules/fchdir (Depends-on): Remove include_next.
16655
16656 2011-05-02  Bruno Haible  <bruno@clisp.org>
16657
16658         gnulib-tool: Refactor.
16659         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16660         from func_emit_autoconf_snippets.
16661         (func_emit_autoconf_snippets): Use it.
16662
16663 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16664
16665         * NEWS: Document removal of 'exit'.
16666         * modules/exit: Remove file.
16667
16668 2011-05-01  Bruno Haible  <bruno@clisp.org>
16669
16670         Update DEPENDENCIES.
16671         * DEPENDENCIES (gettext): Recommend the newest release.
16672         Reported by Simon Josefsson.
16673
16674 2011-05-01  Bruno Haible  <bruno@clisp.org>
16675
16676         gnulib-tool: Reduce code duplication.
16677         * gnulib-tool (func_emit_autoconf_snippets): New function.
16678         (func_import, func_create_testdir): Use it.
16679
16680 2011-04-30  Eric Blake  <eblake@redhat.com>
16681
16682         fclose: don't fail on non-seekable input stream
16683         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16684         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16685         since fflush is allowed to fail in that case.
16686
16687 2011-04-30  Bruno Haible  <bruno@clisp.org>
16688
16689         dup3: cleanup
16690         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16691
16692 2011-04-30  Bruno Haible  <bruno@clisp.org>
16693
16694         netdb: Make it work in C++ mode.
16695         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16696         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16697         module.
16698         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16699         gl_MODULE_INDICATOR_FOR_TESTS.
16700         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16701         * modules/netdb-c++-tests: New file.
16702         * tests/test-netdb-c++.cc: New file.
16703
16704 2011-04-30  Bruno Haible  <bruno@clisp.org>
16705
16706         New modules 'vfscanf', 'vscanf'.
16707         * modules/vfscanf: New file.
16708         * modules/vscanf: New file.
16709         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16710         here.
16711         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16712         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16713
16714 2011-04-30  Bruno Haible  <bruno@clisp.org>
16715
16716         passfd: Add comments.
16717         * lib/passfd.c: Add comments about platforms.
16718
16719 2011-04-30  Bruno Haible  <bruno@clisp.org>
16720
16721         sys_uio: Make <sys/uio.h> self-contained.
16722         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16723         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16724
16725 2011-04-30  Bruno Haible  <bruno@clisp.org>
16726
16727         sys_socket: Ensure 'struct iovec' definition.
16728         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16729         <sys/socket.h>.
16730         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16731
16732 2011-04-30  Bruno Haible  <bruno@clisp.org>
16733
16734         sys_uio: Protect definition of 'struct iovec'.
16735         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16736         it as a C struct.
16737
16738 2011-04-30  Bruno Haible  <bruno@clisp.org>
16739
16740         manywarnings: fix indentation
16741         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16742
16743 2011-04-30  Pádraig Brady <P@draigBrady.com>
16744
16745         manywarnings: add -Wno-missing-field-initializers if needed.
16746         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16747         option if it's needed to allow initialization with { 0, }
16748
16749 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16750
16751         announce-gen: cosmetic improvement
16752         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16753
16754 2011-04-29  Jim Meyering  <meyering@redhat.com>
16755
16756         vc-list-files: indent with spaces, not TABs
16757         * build-aux/vc-list-files: Convert leading TABs to spaces,
16758         to match the style of most other files in gnulib.
16759
16760         announce-gen: indent with spaces, not TABs
16761         * build-aux/announce-gen: Convert all TABs to spaces, to match
16762         the style of most other files in gnulib.
16763
16764 2011-04-29  Eric Blake  <eblake@redhat.com>
16765
16766         quotearg: avoid uninitialized variable use
16767         * lib/quotearg.c (quoting_options_from_style): Initialize
16768         remaining fields, and ensure that custom styles are only used via
16769         quoting_options rather than quoting_style.
16770
16771 2011-04-29  Jim Meyering  <meyering@redhat.com>
16772
16773         maint.mk: remove unused VC-tag variable
16774         * top/maint.mk (VC-tag): Remove unused variable.
16775
16776 2011-04-29  Bruno Haible  <bruno@clisp.org>
16777
16778         netdb: fix gai_strerror replacements
16779         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16780         * modules/netdb: Substitute it.
16781
16782 2011-04-29  Jim Meyering  <meyering@redhat.com>
16783
16784         test-getcwd.c: avoid new set-but-not-used warning
16785         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16786         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16787         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16788         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16789
16790         test-hash.c: avoid a new shadowing warning
16791         * tests/test-hash.c (main): Don't shadow "dup".
16792
16793 2011-04-28  Eric Blake  <eblake@redhat.com>
16794
16795         getaddrinfo: fix gai_strerror signature
16796         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16797         and work around mingw with UNICODE defined.
16798         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16799         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16800         * modules/netdb (Makefile.am): Substitute it.
16801         * lib/netdb.in.h (gai_strerror): Declare replacement.
16802         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16803         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16804         the fix.
16805
16806         getsockopt: avoid compiler warning
16807         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16808         Reported by Matthias Bolte.
16809
16810         tests: drop unused link dependency
16811         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16812         * modules/dirent-safer-tests (Makefile.am): Likewise.
16813         * modules/fdopendir-tests (Makefile.am): Likewise.
16814         * modules/mkfifoat-tests (Makefile.am): Likewise.
16815         * modules/openat-safer-tests (Makefile.am): Likewise.
16816         * modules/openat-tests (Makefile.am): Likewise.
16817         * modules/readlinkat-tests (Makefile.am): Likewise.
16818         * modules/symlinkat-tests (Makefile.am): Likewise.
16819         * modules/linkat-tests (Makefile.am): Likewise.
16820         (Depends-on): Switch to filenamecat-lgpl.
16821         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16822         LIBINTL.
16823         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16824         * tests/test-linkat.c (main): Don't require xalloc.
16825
16826         hash, mgetgroups: drop xalloc dependency
16827         * lib/hash.c (includes): Adjust includes.
16828         * lib/mgetgroups.c (includes): Likewise.
16829         (xgetgroups): Move...
16830         * lib/xgetgroups.c: ...to new file.
16831         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16832         * modules/xgetgroups: New file, split from...
16833         * modules/mgetgroups: ...here.
16834         (Depends-on): Add xalloc-oversized.
16835         * modules/hash (Depends-on): Likewise.
16836         * modules/hash-tests (Depends-on): Drop xalloc.
16837         (test_hash_LDADD): Drop unused library.
16838         * tests/test-hash.c (main): Break xalloc dependency.
16839         (includes): Drop unused include.
16840
16841         xalloc-oversized: new module
16842         * modules/xalloc-oversized: New module.
16843         * modules/xalloc (Depends-on): Add it.
16844         * lib/xalloc.h (xalloc_oversized): Move...
16845         * lib/xalloc-oversized.h: ...into new file.
16846
16847         utimecmp: drop dependency on xmalloc
16848         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16849         due to memory pressure.
16850         * modules/utimecmp (Depends-on): Drop xalloc.
16851
16852 2011-04-27  Eric Blake  <eblake@redhat.com>
16853
16854         getcwd: fix mingw bugs
16855         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16856         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16857         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16858
16859 2011-04-27  Bruno Haible  <bruno@clisp.org>
16860
16861         mkstemps: Ensure declaration on MacOS X 10.5.
16862         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16863         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16864         MacOS X.
16865
16866 2011-04-27  Bruno Haible  <bruno@clisp.org>
16867
16868         mkstemp: More documentation.
16869         * doc/posix-functions/mkstemp.texi: Document header file problem on
16870         MacOS X.
16871
16872 2011-04-27  Bruno Haible  <bruno@clisp.org>
16873
16874         mkstemp: Tweak configure message when cross-compiling.
16875         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16876         result as a guess.
16877
16878 2011-04-27  Bruno Haible  <bruno@clisp.org>
16879
16880         clean-temp: Clarify what it does.
16881         * lib/clean-temp.h: Add more comments.
16882         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16883         module.
16884         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16885         * doc/glibc-functions/mkstemps.texi: Likewise.
16886         * doc/glibc-functions/mkostemps.texi: Likewise.
16887
16888 2011-04-27  Eric Blake  <eblake@redhat.com>
16889
16890         fchdir: avoid extra chdir and fix test
16891         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16892         getcwd-lgpl.
16893         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16894         have to be canonical.
16895         (canonicalize_file_name): Drop unused macro.
16896         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16897
16898         filenamecat-lgpl: fix licence
16899         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16900         when it was first created.
16901
16902         linkat, renameat: add missing dependency
16903         * modules/linkat (Depends-on): Require getcwd-lgpl.
16904         * modules/renameat (Depends-on): Likewise.
16905
16906         tests: reduce dependencies
16907         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16908         * tests/test-renameat.c (main): Likewise.
16909         * modules/linkat-tests (Depends-on): Relax dependency.
16910         * modules/renameat-tests (Depends-on): Likewise.
16911         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16912         dependency explicit.
16913
16914         save-cwd: reduce default dependency
16915         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16916         * lib/save-cwd.c: Update comments.
16917         * NEWS: Document the semantic change.
16918
16919         getcwd: enhance tests
16920         * tests/test-getcwd-lgpl.c: New file, taken from...
16921         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16922         repeat long path stress tests from m4 probe.
16923         * modules/getcwd-lgpl-tests: New module.
16924         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16925         * m4/getcwd-abort-bug.m4: Update comment.
16926         * m4/getcwd-path-max.m4: Likewise.
16927
16928         getcwd-lgpl: new module
16929         * modules/getcwd-lgpl: New module.
16930         * lib/getcwd-lgpl.c: New file.
16931         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16932         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16933         * modules/getcwd (configure.ac): Set C witness.
16934         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16935
16936         getcwd: tweak comments
16937         * m4/getcwd-abort-bug.m4: Fix comments.
16938         * m4/getcwd-path-max.m4: Likewise.
16939         * m4/getcwd.m4: Likewise.
16940
16941 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16942         and Eric Blake  <eblake@redhat.com>
16943
16944         mkstemp: replace if system version uses wrong permissions
16945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16946         read/write mode bits set in file created by mkstemp.
16947         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16948
16949 2011-04-27  Eric Blake  <eblake@redhat.com>
16950
16951         passfd: avoid compiler warning
16952         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16953         Reported by Laine Stump.
16954
16955 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16956
16957         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16958         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16959
16960 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16961         and Eric Blake  <eblake@redhat.com>
16962
16963         mkstemp: mention clean-temp module
16964         * lib/mkstemp.c: Add comment.
16965         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16966
16967 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16968
16969         inttypes: also provide default values for 32-bit tests
16970         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16971         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16972
16973 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16974
16975         strtoumax: remove dependency on strtoimax
16976         This is like the strtoull change of yesterday.
16977         * modules/strtoumax (Files): Add lib/strtoimax.c.
16978         (Depends-on): Remove strtoimax and add verify.
16979
16980         inttypes-incomplete: new module
16981         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16982         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16983         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16984         of gl_INTTYPES_H.
16985         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16986         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16987         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16988         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16989         * modules/strtoumax, modules/xstrtol (Depends-on):
16990         Depend on inttypes-incomplete, not inttypes.
16991         * modules/inttypes-incomplete: New module, containing the contents
16992         of the old modules/inttypes module, except that the Files: section
16993         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16994         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16995         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16996         (Depends-on): Depend only on inttypes-incomplete.
16997         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16998
16999         inttypes: omit now-redundant strtoimax and strtoumax work
17000         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17001         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17002
17003         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17004         This supports apps that need pointers to strtoimax and strtoumax,
17005         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17006         nonexistent functions.  See
17007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17008         et seq.
17009         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17010         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17011         a macro.
17012         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17013
17014 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17015
17016         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17017
17018 2011-04-25  Bruno Haible  <bruno@clisp.org>
17019
17020         strtol, strtoul: Mark modules as obsolete.
17021         * modules/strtol (Status, Notice): New sections.
17022         * modules/strtoul (Status, Notice): New sections.
17023
17024 2011-04-25  Bruno Haible  <bruno@clisp.org>
17025
17026         strtod: Remove check for strtod, unless supporting old platforms.
17027         * modules/strtod-obsolete: New file.
17028         * m4/strtod-obsolete.m4: New file.
17029         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17030         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17031         * modules/strtod (Depends-on): Add strtod-obsolete.
17032         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17033
17034 2011-04-25  Bruno Haible  <bruno@clisp.org>
17035
17036         strcase: Make module obsolete.
17037         * modules/strcase (Status, Notice): New sections.
17038
17039 2011-04-25  Bruno Haible  <bruno@clisp.org>
17040
17041         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17042         * modules/dup2-obsolete: New file.
17043         * m4/dup2-obsolete.m4: New file.
17044         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17045         gl_FUNC_DUP2_OBSOLETE is not also defined.
17046         * modules/dup2 (Depends-on): Add dup2-obsolete.
17047         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17048
17049 2011-04-25  Bruno Haible  <bruno@clisp.org>
17050
17051         strnlen: Avoid memchr related link error on old obsolete platforms.
17052         * modules/memchr-obsolete: New file.
17053         * m4/memchr-obsolete.m4: New file.
17054         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17055         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17056         * modules/memchr (Depends-on): Add memchr-obsolete.
17057         * modules/strnlen (Depends-on): Likewise.
17058         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17059
17060 2011-04-25  Jim Meyering  <meyering@redhat.com>
17061
17062         maint.mk: makefile_at_at_check extend and clean up
17063         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17064         in addition to */Makefile.am.
17065         Exempt legitimate uses of @VAR@ notation, e.g.,
17066         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17067         Remove obsolete coreutils-specific comment.
17068         Prompted by discussion here:
17069         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17070
17071 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17072
17073         strtoul: remove dependency on strtol
17074         This is so that 'configure' need not check for strtol merely because
17075         the application needs strtoul.
17076         * modules/strtoul (Files): Add lib/strtol.c.
17077         (Depends-on): Remove strtol.
17078
17079         strtoull: remove dependency on strtoul
17080         This is like the strtoll change.
17081         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17082         (Depends-on): Remove strtoul.
17083
17084         strtoll: remove dependency on strtol
17085         This is so that 'configure' need not check for strtol merely because
17086         the application needs strtoll.
17087         * modules/strtoll (Files): Add lib/strtol.c.
17088         (Depends-on): Remove strtol.
17089
17090 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17091
17092         inttypes: Move some configure check to module 'imaxdiv'.
17093         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17094         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17095         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17096
17097 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17098
17099         inttypes: Move some configure check to module 'imaxabs'.
17100         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17101         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17102         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17103
17104 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17105
17106         inttypes: Remove configure tests that are not needed since 2009-12-31.
17107         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17108         gl_cv_header_working_inttypes_h.
17109
17110 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17111
17112         * modules/strnlen (Depends-on): Remove memchr.
17113         The strnlen implementation doesn't need the memchr module's fixes; see
17114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17115
17116         strtol: remove dependency on wchar
17117         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17118         * modules/strtol (Depends-on): Remove wchar.
17119
17120 2011-04-21  Eric Blake  <eblake@redhat.com>
17121
17122         passfd: fix test regression on Linux
17123         * modules/passfd-tests (configure.ac): Correct socketpair check.
17124
17125         passfd: speed up configure and drop unused code
17126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17127         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17128         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17129         Instead of probing at configure for unix_scm_rights_bsd44_way,
17130         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17131         check to a struct member probe.
17132         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17133         (sendfd, recvfd): Update preprocessor checks.
17134         * modules/passfd (Files): Reflect rename, and drop unused file.
17135         (Depends-on): Drop unused dependency.
17136
17137         passfd: allow compilation on mingw
17138         * modules/sys_socket (Depends-on): Add sys_uio.
17139         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17140         iovec and a minimal struct msghdr.
17141         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17142         * tests/test-sys_socket.c (main): Enhance test.
17143         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17144         guaranteed to provide what we need.
17145         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17146         * modules/passfd-tests (Depends-on): Add sys_wait.
17147         * tests/test-passfd.c (main): Skip test on mingw, for now.
17148         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17149         partial 'struct msghdr' implementation.
17150
17151         sys_uio: new module
17152         * modules/sys_uio: New module.
17153         * modules/sys_uio-tests: Likewise.
17154         * lib/sys_uio.in.h: New file.
17155         * m4/sys_uio_h.m4: Likewise.
17156         * tests/test-sys_uio.c: Likewise.
17157         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17158         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17159
17160 2011-04-20  Jim Meyering  <meyering@redhat.com>
17161
17162         useless-if-before-free: avoid false-positive
17163         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17164         disjunct so that it too requires a terminating ";".  Without that,
17165         this script would identify as useless one statement from gcc that
17166         was not:
17167           if (aligned_ptr)
17168             free (((void **) aligned_ptr) [-1]);
17169
17170 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17171
17172         doc: update users.txt.
17173         * users.txt: Add barcode.
17174
17175 2011-04-19  Bruno Haible  <bruno@clisp.org>
17176
17177         ioctl: Remove link dependency on native Windows.
17178         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17179         (gl_close_fn, gl_ioctl_fn): New types.
17180         (struct fd_hook): Renamed from struct close_hook. Change type of
17181         private_close_fn field. Add private_ioctl_fn field.
17182         (close_hook_fn): Add parameter for primary close method.
17183         (execute_close_hooks, execute_all_close_hooks): Likewise.
17184         (ioctl_hook_fn): New type.
17185         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17186         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17187         argument.
17188         (unregister_fd_hook): Renamed from unregister_close_hook.
17189         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17190         Don't include <unistd.h>.
17191         (close): Remove undef.
17192         (anchor): Update.
17193         (execute_close_hooks): Add argument for primary close method.
17194         (execute_all_close_hooks): Likewise.
17195         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17196         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17197         argument. Allow each argument to be NULL.
17198         (unregister_fd_hook): Renamed from unregister_close_hook.
17199         * lib/close.c (rpl_close): Pass 'close' function pointer to
17200         execute_all_close_hooks.
17201         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17202         (primary_ioctl): New function.
17203         (ioctl): Don't call ioctlsocket here. Instead, call
17204         execute_all_ioctl_hooks.
17205         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17206         close method.
17207         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17208         (fd_sockets_hook): Renamed from close_sockets_hook.
17209         (gl_sockets_startup, gl_sockets_cleanup): Update.
17210         * modules/fd-hook: Renamed from modules/close-hook. Update.
17211         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17212         * modules/sockets (Depends-on): Likewise.
17213         * modules/ioctl (Depends-on): Add fd-hook.
17214         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17215         GNULIB_SOCKET.
17216
17217 2011-04-19  Bruno Haible  <bruno@clisp.org>
17218
17219         Move the support of O_NONBLOCK in open() to the 'open' module.
17220         * modules/nonblocking (Depends-on): Remove 'open'.
17221         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17222         gl_cv_have_open_O_NONBLOCK.
17223         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17224         O_NONBLOCK support.
17225         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17226
17227 2011-04-17  Bruno Haible  <bruno@clisp.org>
17228
17229         pipe2: Simplify code.
17230         * lib/pipe2.c (pipe2): Reduce code duplication.
17231
17232 2011-04-17  Bruno Haible  <bruno@clisp.org>
17233
17234         nonblocking: Add comment.
17235         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17236
17237 2011-04-17  Bruno Haible  <bruno@clisp.org>
17238
17239         nonblocking: Add tests for sockets.
17240         * tests/test-nonblocking-socket.sh: New file.
17241         * tests/test-nonblocking-socket-main.c: New file.
17242         * tests/test-nonblocking-socket-child.c: New file.
17243         * tests/test-nonblocking-socket.h: New file.
17244         * tests/socket-server.h: New file.
17245         * tests/socket-client.h: New file.
17246         * modules/nonblocking-socket-tests: New file.
17247         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17248
17249 2011-04-17  Bruno Haible  <bruno@clisp.org>
17250
17251         nonblocking: Add tests for pipes.
17252         * tests/test-nonblocking-pipe.sh: New file.
17253         * tests/test-nonblocking-pipe-main.c: New file.
17254         * tests/test-nonblocking-pipe-child.c: New file.
17255         * tests/test-nonblocking-pipe.h: New file.
17256         * tests/test-nonblocking-writer.h: New file.
17257         * tests/test-nonblocking-reader.h: New file.
17258         * tests/test-nonblocking-misc.h: New file.
17259         * modules/nonblocking-pipe-tests: New file.
17260         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17261
17262 2011-04-16  Bruno Haible  <bruno@clisp.org>
17263
17264         gettext: Clarify the needed programmer actions.
17265         * modules/gettext (Notice): New field.
17266         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17267
17268 2011-04-16  Bruno Haible  <bruno@clisp.org>
17269
17270         strchrnul: Tweak last commit.
17271         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17272         bug.
17273         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17274         as in _GL_FUNCDECL_SYS.
17275         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17276         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17277
17278 2011-04-15  Eric Blake  <eblake@redhat.com>
17279
17280         strchrnul: work around cygwin bug
17281         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17282         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17284         * modules/string (Makefile.am): Substitute it.
17285         * lib/string.in.h (strchrnul): Use it.
17286
17287 2011-04-15  Bruno Haible  <bruno@clisp.org>
17288
17289         Don't require lib/stdio-write.c when only module 'stdio' is used.
17290         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17291         invocation.
17292         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17293
17294 2011-04-14  Bruno Haible  <bruno@clisp.org>
17295
17296         Support non-blocking pipe I/O in read() on native Windows.
17297         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17298         (read): New declaration.
17299         * lib/read.c: New file.
17300         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17301         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17302         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17303         vscanf): New declarations.
17304         * lib/stdio-read.c: New file.
17305         * m4/read.m4: New file.
17306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17307         REPLACE_READ.
17308         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17309         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17310         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17311         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17312         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17313         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17314         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17315         * modules/read: New file.
17316         * modules/nonblocking (Files): Add lib/stdio-read.c.
17317         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17318         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17319         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17320         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17321         * modules/pread (Depends-on): Add read.
17322         * modules/safe-read (Depends-on): Likewise.
17323         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17324         gets, scanf, vfscanf, vscanf): Verify signatures.
17325         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17326         problem with non-blocking pipes.
17327         * doc/posix-functions/fgetc.texi: Likewise.
17328         * doc/posix-functions/fgets.texi: Likewise.
17329         * doc/posix-functions/fread.texi: Likewise.
17330         * doc/posix-functions/fscanf.texi: Likewise.
17331         * doc/posix-functions/getc.texi: Likewise.
17332         * doc/posix-functions/getchar.texi: Likewise.
17333         * doc/posix-functions/gets.texi: Likewise.
17334         * doc/posix-functions/scanf.texi: Likewise.
17335         * doc/posix-functions/vfscanf.texi: Likewise.
17336         * doc/posix-functions/vscanf.texi: Likewise.
17337
17338 2011-04-14  Bruno Haible  <bruno@clisp.org>
17339
17340         Support non-blocking pipe I/O in write() on native Windows.
17341         * lib/write.c (rpl_write): Split a write request that failed merely
17342         because the byte count was larger than the pipe buffer's size.
17343         * doc/posix-functions/write.texi: Mention the problem with large byte
17344         counts.
17345
17346 2011-04-14  Bruno Haible  <bruno@clisp.org>
17347
17348         wchar: Ensure that wchar_t gets defined on uClibc.
17349         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17350         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17351
17352 2011-04-13  Bruno Haible  <bruno@clisp.org>
17353
17354         safe-write, full-read: Avoid unnecessary compilation units.
17355         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17356         (Depends-on): Remove safe-read. Add ssize_t.
17357         * modules/full-read (Files): Add lib/full-write.c.
17358         (Depends-on): Add full-write.
17359
17360 2011-04-13  Bruno Haible  <bruno@clisp.org>
17361
17362         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17363         * modules/pwrite (Depends-on): Add 'write'.
17364
17365 2011-04-13  Bruno Haible  <bruno@clisp.org>
17366
17367         Support non-blocking pipe I/O in write() on native Windows.
17368         * lib/unistd.in.h (write): Enable replacement also if
17369         GNULIB_UNISTD_H_NONBLOCKING is 1.
17370         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17371         (rpl_write): When failing to write on a non-blocking pipe, change
17372         errno from ENOSPC to EAGAIN.
17373         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17374         putchar, puts, vfprintf, vprintf): Enable replacement also if
17375         GNULIB_STDIO_H_NONBLOCKING is 1.
17376         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17377         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17378         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17379         CALL_WITH_SIGPIPE_EMULATION.
17380         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17381         * m4/nonblocking.m4: New file.
17382         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17383         for non-blocking I/O support.
17384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17385         GNULIB_UNISTD_H_NONBLOCKING.
17386         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17387         required for non-blocking I/O support.
17388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17389         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17390         lib/stdio-write.c, m4/asm-underscore.m4.
17391         (Depends-on): Add stdio, unistd.
17392         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17393         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17394         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17395         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17396         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17397         problem with non-blocking pipes.
17398         * doc/posix-functions/fputc.texi: Likewise.
17399         * doc/posix-functions/fputs.texi: Likewise.
17400         * doc/posix-functions/fwrite.texi: Likewise.
17401         * doc/posix-functions/printf.texi: Likewise.
17402         * doc/posix-functions/putc.texi: Likewise.
17403         * doc/posix-functions/putchar.texi: Likewise.
17404         * doc/posix-functions/puts.texi: Likewise.
17405         * doc/posix-functions/vfprintf.texi: Likewise.
17406         * doc/posix-functions/vprintf.texi: Likewise.
17407         * doc/posix-functions/write.texi: Likewise.
17408
17409 2011-04-10  Jim Meyering  <meyering@redhat.com>
17410
17411         maint.mk: prohibit doubled words
17412         Detect them also when they're separated by a newline.
17413         There are 3 ways to customize it:
17414           - disable the test on a per file basis, as usual with rules using
17415             $(VC_LIST_EXCEPT)
17416           - replace the default doubled-word-selecting regexp (affects all files)
17417           - ignore a particular file-vs-doubled-word match
17418         I nearly used that last one to ignore the "is is" match in
17419         coreutils' NEWS file, since the text was "ls -is is ..."
17420         To do that, I would have added this line to cfg.mk:
17421           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17422         but it would have ignored any "is is" match in NEWS.
17423         Low probability, but still...
17424         Instead, I changed the text, slightly:
17425           -  ls -is is now consistent with ls -lis in ignoring values returned
17426           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17427         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17428         (prohibit_doubled_word_): Define.
17429         (sc_prohibit_doubled_word): New rule.
17430         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17431
17432 2011-04-10  Jim Meyering  <meyering@redhat.com>
17433
17434         maint: fix doubled-word typo in comment
17435         * m4/gethostname.m4: s/is is/it is/
17436         * m4/getdomainname.m4: Likewise.
17437
17438 2011-04-10  Jim Meyering  <meyering@redhat.com>
17439
17440         maint: remove doubled word: s/it it/it/
17441         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17442
17443 2011-04-10  Jim Meyering  <meyering@redhat.com>
17444
17445         maint.mk: remove useless semicolon and backslash
17446         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17447         semicolon and backslash.
17448
17449 2011-04-10  Bruno Haible  <bruno@clisp.org>
17450
17451         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17452         * modules/stdint-tests (Depends-on): Add wchar.
17453
17454 2011-04-10  Jim Meyering  <meyering@redhat.com>
17455
17456         maint: remove doubled words in comments, e.g., s/a a/a/
17457         * lib/strptime.c (day_of_the_week): s/the the/the/
17458         * tests/test-chown.h (test_chown): s/a a/a/
17459
17460         test-chown.h: correct a cast
17461         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17462         when the destination is a stat.st_gid.
17463
17464 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17465
17466         getaddrinfo: Fix test for sa_len member.
17467         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17468         include <sys/types.h> before <sys/socket.h>.
17469
17470 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17471
17472         maint: change "can not" to "cannot"
17473         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17474         boundaries.
17475
17476 2011-04-09  Jim Meyering  <meyering@redhat.com>
17477
17478         maint: change "a a" to "a"
17479         * tests/test-lchown.h (test_lchown): s/a a/a/
17480
17481         maint.mk: prohibit \<the the\>
17482         * top/maint.mk (sc_prohibit_the_the): New rule.
17483
17484         maint: fix "the the" in comment
17485         * lib/count-one-bits.h: s/the the/the/
17486
17487         maint: change "can not" to "cannot"
17488         But do not change the occurrences in maintain.texi or in
17489         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17490         * doc/gnulib-tool.texi: s/can not/cannot/
17491         * doc/posix-functions/accept.texi (accept): Likewise.
17492         * doc/posix-functions/socket.texi (socket): Likewise.
17493         * lib/mbrtowc.c: Likewise.
17494
17495         maint.mk: prohibit use of "can not"
17496         * top/maint.mk (sc_prohibit_can_not): New rule.
17497         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17498
17499 2011-04-09  Bruno Haible  <bruno@clisp.org>
17500
17501         careadlinkat: Guard against misuse of careadlinkatcwd.
17502         * lib/careadlinkat.c: Include <stdlib.h>.
17503         (careadlinkatcwd): Check that the fd argument is as expected.
17504
17505 2011-04-09  Bruno Haible  <bruno@clisp.org>
17506
17507         careadlinkat: Use common coding style.
17508         * lib/careadlinkat.c: Move gnulib includes after system includes.
17509
17510 2011-04-09  Bruno Haible  <bruno@clisp.org>
17511
17512         careadlinkat: Clarify specification.
17513         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17514         (careadlinkatcwd): Add comment.
17515         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17516
17517 2011-04-09  Bruno Haible  <bruno@clisp.org>
17518
17519         areadlinkat: Avoid link error on many platforms.
17520         * modules/areadlinkat (Depends-on): Add areadlink.
17521
17522 2011-04-09  Bruno Haible  <bruno@clisp.org>
17523
17524         allocator, careadlinkat: Fix double-inclusion guard.
17525         * lib/allocator.h: Fix double-inclusion guard.
17526         * lib/careadlinkat.h: Likewise.
17527
17528 2011-04-09  Bruno Haible  <bruno@clisp.org>
17529
17530         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17531         * lib/relocwrapper.c: Update dependencies hierarchy.
17532         * build-aux/install-reloc: Update list of files to be compiled.
17533         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17534         lib/allocator.[hc].
17535
17536 2011-04-08  Eric Blake  <eblake@redhat.com>
17537
17538         strftime: silence gnulib-tool warning
17539         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17540
17541 2011-04-08  Bruno Haible  <bruno@clisp.org>
17542
17543         verify: Fix syntax error with GCC 4.6 in C++ mode.
17544         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17545         (HAVE_STATIC_ASSERT): New macro.
17546         (verify_true, verify): Use 'static_assert' if it is supported and
17547         '_Static_assert' is not supported.
17548
17549 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17550
17551         allocator: New module.
17552         * modules/allocator, lib/allocator.c: New files.
17553         * lib/allocator.h (stdlib_allocator): New decl.
17554         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17555         Remove.  Do not include <stdlib.h>.
17556         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17557         * modules/careadlinkat (Files): Remove lib/allocator.h.
17558         (Depends-on): Add allocator.
17559
17560         stdlib: let modules use system malloc, realloc
17561         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17562         if !_GL_USE_STDLIB_ALLOC.
17563         (malloc, realloc): Limit this change to a smaller scope.
17564
17565         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17566         (malloc, realloc): Don't #undef; no longer needed.
17567         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17568         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17569         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17570         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17571         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17572         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17573         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17574         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17575
17576         careadlinkat: rename members to avoid problem
17577         * lib/allocator.h (struct allocator): Rename members from
17578         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17579         and realloc are #define'd.  Reported by Eric Blake in
17580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17581         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17582
17583 2011-04-08  Eric Blake  <eblake@redhat.com>
17584
17585         nonblocking: reduce dependency
17586         * tests/test-nonblocking.c: Only test sockets when in use.
17587         * modules/nonblocking-tests (Depends-on): Drop socket.
17588         (Makefile.am): Link even if sockets are not present.
17589         * modules/pipe2-tests (Makefile.am): Likewise.
17590         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17591
17592         pipe2: fix O_NONBLOCK support on mingw
17593         * modules/pipe2 (Depends-on): Add nonblocking.
17594         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17595         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17596         * tests/test-nonblocking.c (main): Likewise.
17597         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17598
17599         fcntl-h: fix O_ACCMODE on cygwin
17600         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17601         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17602
17603         pipe-filter: drop O_NONBLOCK workarounds
17604         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17605         * modules/pipe-filter-ii (Depends-on): Likewise.
17606         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17607
17608         nonblocking: provide O_NONBLOCK for mingw
17609         * modules/nonblocking (Depends-on): Add open.
17610         (configure.ac): Set new witness macro.
17611         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17612         * modules/fcntl-h (Makefile.am): Substitute it.
17613         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17614         nonblocking module is in use.
17615         * lib/nonblocking.c: Adjust portability test.
17616         * lib/open.c (open): Don't let native open see gnulib flag.
17617         * tests/test-fcntl-h.c (main): Enhance test.
17618         * tests/test-open.h (test_open): Likewise.
17619         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17620
17621         careadlinkat: fix compilation error on mingw
17622         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17623         within struct allocator.
17624
17625 2011-04-06  Eric Blake  <eblake@redhat.com>
17626
17627         binary-io: relicense under LGPLv2+
17628         * modules/binary-io (License): Relax to LGPLv2+.
17629         Requested for libvirt, and required by pipe2.
17630
17631 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17632
17633         verify: use _Static_assert if available
17634         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17635         (verify_true, verify): Use it if available.  This generates better
17636         diagnostics with GCC 4.6.0 and later.
17637
17638 2011-04-05  Bruno Haible  <bruno@clisp.org>
17639
17640         Remove leftover generated .h files after config.status changed.
17641
17642         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17643         GL_GENERATE_ALLOCA_H.
17644         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17645         GL_GENERATE_ALLOCA_H evaluates to false.
17646
17647         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17648         GL_GENERATE_ARGZ_H.
17649         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17650         evaluates to false.
17651
17652         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17653         GL_GENERATE_BYTESWAP_H.
17654         * modules/byteswap (Makefile.am): Remove byteswap.h if
17655         GL_GENERATE_BYTESWAP_H evaluates to false.
17656
17657         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17658         GL_GENERATE_ERRNO_H.
17659         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17660         evaluates to false.
17661
17662         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17663         GL_GENERATE_FLOAT_H.
17664         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17665         evaluates to false.
17666
17667         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17668         GL_GENERATE_FNMATCH_H.
17669         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17670         GL_GENERATE_FNMATCH_H evaluates to false.
17671
17672         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17673         GL_GENERATE_GLOB_H.
17674         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17675         evaluates to false.
17676
17677         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17678         automake conditional GL_GENERATE_ICONV_H.
17679         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17680         evaluates to false.
17681
17682         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17683         GL_GENERATE_NETINET_IN_H.
17684         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17685         GL_GENERATE_NETINET_IN_H evaluates to false.
17686
17687         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17688         conditional GL_GENERATE_PTHREAD_H.
17689         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17690         * modules/pthread (Makefile.am): Remove pthread.h if
17691         GL_GENERATE_PTHREAD_H evaluates to false.
17692
17693         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17694         GL_GENERATE_SCHED_H.
17695         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17696         evaluates to false.
17697
17698         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17699         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17700         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17701         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17702
17703         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17704         GL_GENERATE_STDARG_H.
17705         * modules/stdarg (Makefile.am): Remove stdarg.h if
17706         GL_GENERATE_STDARG_H evaluates to false.
17707
17708         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17709         GL_GENERATE_STDBOOL_H.
17710         * modules/stdbool (Makefile.am): Remove stdbool.h if
17711         GL_GENERATE_STDBOOL_H evaluates to false.
17712
17713         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17714         conditional GL_GENERATE_STDDEF_H.
17715         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17716         * modules/stddef (Makefile.am): Remove stddef.h if
17717         GL_GENERATE_STDDEF_H evaluates to false.
17718
17719         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17720         GL_GENERATE_STDINT_H.
17721         * modules/stdint (Makefile.am): Remove stdint.h if
17722         GL_GENERATE_STDINT_H evaluates to false.
17723
17724         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17725         GL_GENERATE_SYSEXITS_H.
17726         * modules/sysexits (Makefile.am): Remove sysexits.h if
17727         GL_GENERATE_SYSEXITS_H evaluates to false.
17728
17729         Reported by Karl Berry and Ralf Wildenhues.
17730
17731 2011-04-05  Bruno Haible  <bruno@clisp.org>
17732
17733         Ensure to rebuild generated .h files when config.status has changed.
17734         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17735         config.status.
17736         * modules/ctype (Makefile.am): Likewise.
17737         * modules/dirent (Makefile.am): Likewise.
17738         * modules/errno (Makefile.am): Likewise.
17739         * modules/fcntl-h (Makefile.am): Likewise.
17740         * modules/float (Makefile.am): Likewise.
17741         * modules/getopt-posix (Makefile.am): Likewise.
17742         * modules/glob (Makefile.am): Likewise.
17743         * modules/iconv-h (Makefile.am): Likewise.
17744         * modules/inttypes (Makefile.am): Likewise.
17745         * modules/langinfo (Makefile.am): Likewise.
17746         * modules/locale (Makefile.am): Likewise.
17747         * modules/math (Makefile.am): Likewise.
17748         * modules/netdb (Makefile.am): Likewise.
17749         * modules/netinet_in (Makefile.am): Likewise.
17750         * modules/poll-h (Makefile.am): Likewise.
17751         * modules/pthread (Makefile.am): Likewise.
17752         * modules/pty (Makefile.am): Likewise.
17753         * modules/sched (Makefile.am): Likewise.
17754         * modules/search (Makefile.am): Likewise.
17755         * modules/selinux-h (Makefile.am): Likewise.
17756         * modules/signal (Makefile.am): Likewise.
17757         * modules/spawn (Makefile.am): Likewise.
17758         * modules/stdarg (Makefile.am): Likewise.
17759         * modules/stdbool (Makefile.am): Likewise.
17760         * modules/stddef (Makefile.am): Likewise.
17761         * modules/stdint (Makefile.am): Likewise.
17762         * modules/stdio (Makefile.am): Likewise.
17763         * modules/stdlib (Makefile.am): Likewise.
17764         * modules/string (Makefile.am): Likewise.
17765         * modules/strings (Makefile.am): Likewise.
17766         * modules/sys_file (Makefile.am): Likewise.
17767         * modules/sys_ioctl (Makefile.am): Likewise.
17768         * modules/sys_select (Makefile.am): Likewise.
17769         * modules/sys_socket (Makefile.am): Likewise.
17770         * modules/sys_stat (Makefile.am): Likewise.
17771         * modules/sys_time (Makefile.am): Likewise.
17772         * modules/sys_times (Makefile.am): Likewise.
17773         * modules/sys_utsname (Makefile.am): Likewise.
17774         * modules/sys_wait (Makefile.am): Likewise.
17775         * modules/sysexits (Makefile.am): Likewise.
17776         * modules/termios (Makefile.am): Likewise.
17777         * modules/time (Makefile.am): Likewise.
17778         * modules/unistd (Makefile.am): Likewise.
17779         * modules/wchar (Makefile.am): Likewise.
17780         * modules/wctype-h (Makefile.am): Likewise.
17781         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17782
17783 2011-04-05  Bruno Haible  <bruno@clisp.org>
17784
17785         pipe2: Relicense under LGPLv2+.
17786         * modules/pipe2 (License): Change to LGPLv2+.
17787         Requested by Eric Blake, for libvirt.
17788
17789 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17790
17791         bootstrap: compute gnulib_extra_files after updating build_aux
17792         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17793         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17794
17795 2011-04-05  Eric Blake  <eblake@redhat.com>
17796
17797         bootstrap: preserve git whitelist item sorting
17798         * build-aux/bootstrap (sort_patterns): New function.
17799         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17800
17801 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17802
17803         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17804         sc_space_tab check.
17805
17806 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17807
17808         areadlink, areadlinkat: rewrite in terms of careadlinkat
17809         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17810         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17811         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17812         (malloc, realloc): Remove #undefs.
17813         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17814         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17815         readlink, ssize_t, stdint, unistd.
17816         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17817         areadlink, stdint.
17818
17819         careadlinkat: new module
17820         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17821         * modules/careadlinkat: New files, written by me with
17822         a review and feedback from Ben Pfaff in
17823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17824
17825 2011-04-01  Bruno Haible  <bruno@clisp.org>
17826
17827         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17828         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17829         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17830         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17831         Reported by Bruce Korb <bruce.korb@gmail.com>.
17832
17833 2011-04-01  Bruno Haible  <bruno@clisp.org>
17834
17835         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17836         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17837         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17838         * modules/wcpcpy (Depends-on): Add extensions.
17839         * modules/wcpncpy (Depends-on): Likewise.
17840         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17841         systems.
17842         * doc/posix-functions/wcpncpy.texi: Likewise.
17843         * doc/posix-functions/wcwidth.texi: Likewise.
17844
17845 2011-03-31  Eric Blake  <eblake@redhat.com>
17846
17847         nonblocking: fix mingw test failures
17848         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17849         non-blocking flag on regular file.
17850         (get_nonblocking_flag): Set errno on invalid fd.
17851         * tests/test-nonblocking.c (main): Avoid test failure on
17852         directories if fchdir is not active.
17853         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17854
17855 2011-03-31  Bruno Haible  <bruno@clisp.org>
17856
17857         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17858         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17859         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17860         Reported by Simon Josefsson <simon@josefsson.org>.
17861
17862 2011-03-31  Bruno Haible  <bruno@clisp.org>
17863         and Eric Blake  <eblake@redhat.com>
17864
17865         nonblocking: new module
17866         * modules/nonblocking: New module.
17867         * modules/nonblocking-tests: Likewise.
17868         * lib/nonblocking.h: New file.
17869         * lib/nonblocking.c: Likewise.
17870         * tests/test-nonblocking.c: New test.
17871         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17872
17873 2011-03-30  Bruno Haible  <bruno@clisp.org>
17874
17875         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17876         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17877         instead of 'printf' format for GCC >= 4.4.
17878         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17879         (fprintf, printf, vfprintf, vprintf): Declare with
17880         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17881         the system's vfprintf() function.
17882         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17883
17884 2011-03-30  Eric Blake  <eblake@redhat.com>
17885
17886         passfd: fix scoping bug
17887         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17888         before sendmsg/recvmsg.
17889
17890         passfd: standardize coding conventions
17891         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17892         can be learned at compile time.
17893         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17894         ifdefs.
17895         (sendfd, recvfd): Follow gnulib code conventions.
17896
17897         passfd: fix incorrect sendmsg arguments
17898         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17899         incorrect msg_controllen value.
17900         * modules/passfd-tests (Depends-on): Check for alarm.
17901         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17902         Reported by Bastien ROUCARIES.
17903
17904 2011-03-30  Bruno Haible  <bruno@clisp.org>
17905
17906         c-strcasestr: Relicense under LGPLv2+.
17907         * modules/c-strcasestr (License): Change to LGPLv2+.
17908         Requested by Eric Blake, for libvirt.
17909
17910 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17911
17912         * users.txt: Add libidn2.  Fix libtasn1 link.
17913
17914 2011-03-30  Jim Meyering  <meyering@redhat.com>
17915
17916         tests: readlink* ("",... fails with EINVAL on newer kernels
17917         readlink and readlinkat have typically failed with ENOENT for
17918         the invalid, empty file name,  "".  However, with the advent
17919         of linux-2.6.39, they fail with EINVAL.
17920         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17921         when operating on the empty file name.
17922         * tests/test-readlink.h (test_readlink): Likewise.
17923
17924 2011-03-29  Bruno Haible  <bruno@clisp.org>
17925
17926         Relicense some modules under LGPLv2+, for libidn2.
17927         * modules/array-mergesort (License): Change to LGPLv2+.
17928         * modules/c-strcaseeq (License): Likewise.
17929         * modules/striconveh (License): Likewise.
17930         * modules/striconveha (License): Likewise.
17931         * modules/uniconv/base (License): Likewise.
17932         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17933         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17934         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17935         * modules/unictype/base (License): Likewise.
17936         * modules/unictype/bidiclass-of (License): Likewise.
17937         * modules/unictype/category-M (License): Likewise.
17938         * modules/unictype/category-none (License): Likewise.
17939         * modules/unictype/category-of (License): Likewise.
17940         * modules/unictype/category-test (License): Likewise.
17941         * modules/unictype/category-test-withtable (License): Likewise.
17942         * modules/unictype/combining-class (License): Likewise.
17943         * modules/unictype/joiningtype-of (License): Likewise.
17944         * modules/unictype/scripts (License): Likewise.
17945         * modules/uninorm/base (License): Likewise.
17946         * modules/uninorm/canonical-decomposition (License): Likewise.
17947         * modules/uninorm/composition (License): Likewise.
17948         * modules/uninorm/decompose-internal (License): Likewise.
17949         * modules/uninorm/decomposition-table (License): Likewise.
17950         * modules/uninorm/nfc (License): Likewise.
17951         * modules/uninorm/nfd (License): Likewise.
17952         * modules/uninorm/u32-normalize (License): Likewise.
17953         * modules/unistr/base (License): Likewise.
17954         * modules/unistr/u32-cpy (License): Likewise.
17955         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17956         * modules/unistr/u32-to-u8 (License): Likewise.
17957         * modules/unistr/u32-uctomb (License): Likewise.
17958         * modules/unistr/u8-check (License): Likewise.
17959         * modules/unistr/u8-mblen (License): Likewise.
17960         * modules/unistr/u8-mbtouc (License): Likewise.
17961         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17962         * modules/unistr/u8-mbtoucr (License): Likewise.
17963         * modules/unistr/u8-prev (License): Likewise.
17964         * modules/unistr/u8-strlen (License): Likewise.
17965         * modules/unistr/u8-to-u32 (License): Likewise.
17966         * modules/unistr/u8-uctomb (License): Likewise.
17967         * modules/unitypes (License): Likewise.
17968         Requested by Simon Josefsson.
17969
17970 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17971
17972         lib-symbol-visibility: Add a notice.
17973         * modules/lib-symbol-visibility (Notice): New field.
17974
17975 2011-03-29  Bruno Haible  <bruno@clisp.org>
17976
17977         getaddrinfo: Doc fix.
17978         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17979         section "fixed in Gnulib".
17980
17981 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17982
17983         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17984         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17985
17986 2011-03-26  Bruno Haible  <bruno@clisp.org>
17987
17988         unictype/property-byname: Reduce the number of load-time relocations.
17989         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17990         (UC_PROPERTY_INDEX_*): New enumeration values.
17991         (uc_property_byname): Convert an index from the lookup table to an
17992         uc_property_t.
17993         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17994         values.
17995
17996 2011-03-26  Bruno Haible  <bruno@clisp.org>
17997
17998         unictype/property-byname: Allow omitted word separators and aliases.
17999         * lib/unictype/pr_byname.gperf: Add property names without word
18000         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18001         for 'space'.
18002
18003 2011-03-26  Bruno Haible  <bruno@clisp.org>
18004
18005         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18006         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18007         also hyphens to space.
18008         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18009         without spaces.
18010         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18011
18012 2011-03-26  Bruno Haible  <bruno@clisp.org>
18013
18014         unictype/joiningtype-byname: Recognize long names as well.
18015         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18016         a long name.
18017         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18018         unictype/joiningtype_byname.h.
18019         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18020         * lib/unictype/joiningtype_byname.gperf: New file.
18021         * modules/unictype/joiningtype-byname (Files): Add
18022         lib/unictype/joiningtype_byname.gperf.
18023         (Depends-on): Add gperf.
18024         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18025         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18026         long names.
18027
18028         Tests for module 'unictype/joiningtype-longname'.
18029         * modules/unictype/joiningtype-longname-tests: New file.
18030         * tests/unictype/test-joiningtype_longname.c: New file.
18031
18032         New module 'unictype/joiningtype-longname'.
18033         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18034         * lib/unictype/joiningtype_longname.c: New file.
18035         * modules/unictype/joiningtype-longname: New file.
18036         * modules/unictype/joiningtype-all (Depends-on): Add
18037         unictype/joiningtype-longname.
18038
18039 2011-03-26  Bruno Haible  <bruno@clisp.org>
18040
18041         unictype/bidiclass-byname: Recognize long names as well.
18042         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18043         name.
18044         * lib/unictype/bidi_byname.c: Include <string.h>,
18045         unictype/bidi_byname.h.
18046         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18047         * lib/unictype/bidi_byname.gperf: New file.
18048         * modules/unictype/bidiclass-byname (Files): Add
18049         lib/unictype/bidi_byname.gperf.
18050         (Depends-on): Add gperf.
18051         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18052         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18053         long names.
18054
18055         Tests for module 'unictype/bidiclass-longname'.
18056         * modules/unictype/bidiclass-longname-tests: New file.
18057         * tests/unictype/test-bidi_longname.c: New file.
18058
18059         New module 'unictype/bidiclass-longname'.
18060         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18061         * lib/unictype/bidi_longname.c: New file.
18062         * modules/unictype/bidiclass-longname: New file.
18063         * modules/unictype/bidiclass-all (Depends-on): Add
18064         unictype/bidiclass-longname.
18065
18066 2011-03-26  Bruno Haible  <bruno@clisp.org>
18067
18068         unictype/bidi*: Rename modules.
18069         * modules/unictype/bidiclass-all: Renamed from
18070         modules/unictype/bidicategory-all.
18071         * modules/unictype/bidiclass-name: Renamed from
18072         modules/unictype/bidiclass-name.
18073         (Description): Update.
18074         * modules/unictype/bidiclass-name-tests: Renamed from
18075         modules/unictype/bidicategory-name-tests.
18076         * modules/unictype/bidiclass-byname: Renamed from
18077         modules/unictype/bidicategory-byname.
18078         (Description): Update.
18079         * modules/unictype/bidiclass-byname-tests: Renamed from
18080         modules/unictype/bidicategory-byname-tests.
18081         * modules/unictype/bidiclass-of: Renamed from
18082         modules/unictype/bidicategory-of.
18083         (Description): Update.
18084         * modules/unictype/bidiclass-of-tests: Renamed from
18085         modules/unictype/bidicategory-of-tests.
18086         * modules/unictype/bidiclass-test: Renamed from
18087         modules/unictype/bidicategory-test.
18088         (Description): Update.
18089         * modules/unictype/bidiclass-test-tests: Renamed from
18090         modules/unictype/bidicategory-test-tests.
18091         * modules/unictype/bidicategory-all: New file, a simple redirection.
18092         * modules/unictype/bidicategory-name: Likewise.
18093         * modules/unictype/bidicategory-byname: Likewise.
18094         * modules/unictype/bidicategory-of: Likewise.
18095         * modules/unictype/bidicategory-test: Likewise.
18096         * modules/unictype/property-bidi-* (Dependencies): Update.
18097         * lib/unictype/bidi_*.c: Update comment.
18098
18099 2011-03-26  Bruno Haible  <bruno@clisp.org>
18100
18101         unictype/bidi*: Rename functions, part 2.
18102         * modules/unictype/bidicategory-name (configure.ac): Update required
18103         libunistring version.
18104         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18105
18106 2011-03-25  Bruno Haible  <bruno@clisp.org>
18107
18108         New module 'unictype/combining-class-all'.
18109         * modules/unictype/combining-class-all: New file.
18110
18111         Tests for module 'unictype/combining-class-byname'.
18112         * modules/unictype/combining-class-byname-tests: New file.
18113         * tests/unictype/test-combiningclass_byname.c: New file.
18114
18115         New module 'unictype/combining-class-byname'.
18116         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18117         * lib/unictype/combiningclass_byname.c: New file.
18118         * lib/unictype/combiningclass_byname.gperf: New file.
18119         * modules/unictype/combining-class-byname: New file.
18120
18121         Tests for module 'unictype/combining-class-longname'.
18122         * modules/unictype/combining-class-longname-tests: New file.
18123         * tests/unictype/test-combiningclass_longname.c: New file.
18124
18125         New module 'unictype/combining-class-longname'.
18126         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18127         * lib/unictype/combiningclass_longname.c: New file.
18128         * modules/unictype/combining-class-longname: New file.
18129
18130         Tests for module 'unictype/combining-class-name'.
18131         * modules/unictype/combining-class-name-tests: New file.
18132         * tests/unictype/test-combiningclass_name.c: New file.
18133
18134         New module 'unictype/combining-class-name'.
18135         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18136         * lib/unictype/combiningclass_name.c: New file.
18137         * modules/unictype/combining-class-name: New file.
18138
18139 2011-03-25  Bruno Haible  <bruno@clisp.org>
18140
18141         unictype/combining-class: Rename source files.
18142         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18143         of unictype/combining.h.
18144         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18145         Update.
18146         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18147         * modules/unictype/combining-class (Description): Fix.
18148         (Files, Makefile.am): Update.
18149         * tests/unictype/test-combiningclass.c: Renamed from
18150         tests/unictype/test-combining.c.
18151         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18152
18153 2011-03-25  Bruno Haible  <bruno@clisp.org>
18154
18155         unictype: Update list of canonical combining classes.
18156         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18157
18158 2011-03-25  Bruno Haible  <bruno@clisp.org>
18159
18160         unictype/category-byname: Recognize long names as well.
18161         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18162         a long name.
18163         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18164         unictype/categ_byname.h.
18165         (UC_CATEGORY_INDEX_*): New enumeration values.
18166         (uc_general_category_byname): Use uc_general_category_lookup and
18167         convert from index to value.
18168         * lib/unictype/categ_byname.gperf: New file.
18169         * modules/unictype/category-byname (Files): Add
18170         lib/unictype/categ_byname.gperf.
18171         (Depends-on): Add gperf.
18172         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18173         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18174         long names.
18175
18176         Tests for module 'unictype/category-longname'.
18177         * modules/unictype/category-longname-tests: New file.
18178         * tests/unictype/test-categ_longname.c: New file.
18179
18180         New module 'unictype/category-longname'.
18181         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18182         * lib/unictype/categ_longname.c: New file.
18183         * modules/unictype/category-longname: New file.
18184         * modules/unictype/category-all (Depends-on): Add it.
18185
18186 2011-03-25  Bruno Haible  <bruno@clisp.org>
18187
18188         Tests for module 'unictype/category-LC'.
18189         * modules/unictype/category-LC-tests: New file.
18190         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18191
18192         New module 'unictype/category-LC'.
18193         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18194         (UC_CATEGORY_LC): New declaration.
18195         (UC_CASED_LETTER): New macro.
18196         * lib/gen-uni-tables.c (is_category_LC): New function.
18197         (output_categories): Also handle category LC.
18198         (UC_CATEGORY_MASK_LC): New enumeration value.
18199         (general_category_byname): Also handle category LC.
18200         * lib/unictype/categ_LC.c: New file.
18201         * lib/unictype/categ_LC.h: New file, automatically generated.
18202         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18203         category LC.
18204         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18205         * modules/unictype/category-LC: New file.
18206         * modules/unictype/category-byname (Depends-on): Add
18207         unictype/category-LC.
18208         * modules/unictype/category-all (Depends-on): Likewise.
18209
18210 2011-03-25  Eric Blake  <eblake@redhat.com>
18211
18212         xmalloc: revert yesterday's regression
18213         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18214         realloc's underlying behavior (allowing allocation of zero-size
18215         objects, especially if malloc-gnu is also in use).
18216
18217 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18218
18219         maint.mk: add missing version to VC-tag
18220         * top/maint.mk: git tag was missing actual tag name; add it.
18221
18222         valgrind: do leak checking, and exit with code 1 on error (not 0)
18223         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18224         to VALGRIND.
18225
18226 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18227
18228         posix-modules: say what it does.
18229         * posix-modules: Add a line to the --help output saying what it does.
18230
18231 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18232
18233         xmalloc: Do not leak if underlying realloc is C99 compatible.
18234         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18235         This avoids a leak on C99-based systems.  See
18236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18237
18238 2011-03-24  Eric Blake  <eblake@redhat.com>
18239
18240         realloc: document portability problem
18241         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18242         passing 0 size to realloc.
18243
18244 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18245
18246         doc: update users.txt
18247         * users.txt: Add cvsps, tmpwatch
18248
18249 2011-03-23  Matt Rice  <ratmice@gmail.com>
18250
18251         doc: update users.txt
18252         * users.txt: Add gdb.
18253
18254 2011-03-23  Jim Meyering  <meyering@redhat.com>
18255
18256         doc: update users.txt
18257         Looking through matches up to the following URL (there are still
18258         several more pages), I found several projects that use gnulib:
18259         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18260         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18261         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18262
18263 2011-03-22  Bruno Haible  <bruno@clisp.org>
18264
18265         unictype/bidi*: Rename functions.
18266         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18267         uc_bidi_class, uc_is_bidi_class): New declarations.
18268         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18269         uc_bidi_category_byname.
18270         (uc_bidi_category_byname): New function.
18271         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18272         u_bidi_category_name.
18273         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18274         (uc_bidi_category_name): New function.
18275         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18276         uc_bidi_category.
18277         (uc_bidi_category): New function.
18278         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18279         uc_is_bidi_category. Invoke uc_bidi_class.
18280         (uc_is_bidi_category): New function.
18281         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18282         instead of uc_bidi_category_byname.
18283         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18284         instead of uc_bidi_category_name.
18285         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18286         uc_bidi_category.
18287         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18288         instead of uc_is_bidi_category.
18289
18290 2011-03-21  Bruno Haible  <bruno@clisp.org>
18291
18292         New module 'unictype/joininggroup-all'.
18293         * modules/unictype/joininggroup-all: New file.
18294
18295         Tests for module 'unictype/joininggroup-of'.
18296         * modules/unictype/joininggroup-of-tests: New file.
18297         * tests/unictype/test-joininggroup_of.c: New file.
18298         * tests/unictype/test-joininggroup_of.h: New file, automatically
18299         generated by gen-uni-tables.
18300
18301         New module 'unictype/joininggroup-of'.
18302         * modules/unictype/joininggroup-of: New file.
18303         * lib/unictype/joininggroup_of.c: New file.
18304         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18305         gen-uni-tables.
18306
18307         Tests for module 'unictype/joininggroup-byname'.
18308         * modules/unictype/joininggroup-byname-tests: New file.
18309         * tests/unictype/test-joininggroup_byname.c: New file.
18310
18311         New module 'unictype/joininggroup-byname'.
18312         * modules/unictype/joininggroup-byname: New file.
18313         * lib/unictype/joininggroup_byname.c: New file.
18314         * lib/unictype/joininggroup_byname.gperf: New file.
18315
18316         Tests for module 'unictype/joininggroup-name'.
18317         * modules/unictype/joininggroup-name-tests: New file.
18318         * tests/unictype/test-joininggroup_name.c: New file.
18319
18320         New module 'unictype/joininggroup-name'.
18321         * modules/unictype/joininggroup-name: New file.
18322         * lib/unictype/joininggroup_name.c: New file.
18323         * lib/unictype/joininggroup_name.h: New file.
18324
18325         New module 'unictype/joiningtype-all'.
18326         * modules/unictype/joiningtype-all: New file.
18327
18328         Tests for module 'unictype/joiningtype-of'.
18329         * modules/unictype/joiningtype-of-tests: New file.
18330         * tests/unictype/test-joiningtype_of.c: New file.
18331         * tests/unictype/test-joiningtype_of.h: New file, automatically
18332         generated by gen-uni-tables.
18333
18334         New module 'unictype/joiningtype-of'.
18335         * modules/unictype/joiningtype-of: New file.
18336         * lib/unictype/joiningtype_of.c: New file.
18337         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18338         gen-uni-tables.
18339
18340         Tests for module 'unictype/joiningtype-byname'.
18341         * modules/unictype/joiningtype-byname-tests: New file.
18342         * tests/unictype/test-joiningtype_byname.c: New file.
18343
18344         New module 'unictype/joiningtype-byname'.
18345         * modules/unictype/joiningtype-byname: New file.
18346         * lib/unictype/joiningtype_byname.c: New file.
18347
18348         Tests for module 'unictype/joiningtype-name'.
18349         * modules/unictype/joiningtype-name-tests: New file.
18350         * tests/unictype/test-joiningtype_name.c: New file.
18351
18352         New module 'unictype/joiningtype-name'.
18353         * modules/unictype/joiningtype-name: New file.
18354         * lib/unictype/joiningtype_name.c: New file.
18355
18356         unictype: Add support for Arabic shaping properties.
18357         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18358         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18359         declarations.
18360         (UC_JOINING_GROUP_*): New enumeration values.
18361         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18362         declarations.
18363         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18364         (unicode_joining_type): New variable.
18365         (UC_JOINING_GROUP_*): New enumeration values.
18366         (unicode_joining_group): New variable.
18367         (fill_arabicshaping, joining_type_as_c_identifier,
18368         output_joining_type_test, output_joining_type,
18369         joining_group_as_c_identifier, output_joining_group_test,
18370         output_joining_group): New functions.
18371         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18372         fill_arabicshaping and output_joining_type_test, output_joining_type,
18373         output_joining_group_test, output_joining_group.
18374         Reported by Simon Josefsson.
18375
18376 2011-03-21  Jim Meyering  <meyering@redhat.com>
18377
18378         strftime: fix a bug in yesterday's change
18379         * lib/strftime.c (add): Accommodate width's initial value of -1.
18380         Otherwise, nstrftime would copy uninitialized data into
18381         the result buffer.
18382
18383 2011-03-21  Jim Meyering  <meyering@redhat.com>
18384
18385         tests: add strftime-tests module
18386         * tests/test-strftime.c: New file.
18387         * modules/strftime-tests: New module.
18388
18389 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18390
18391         strftime: don't assume a byte count fits in 'int'
18392         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18393         found this problem by static analysis, using gcc -Wstrict-overflow
18394         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18395         on an integer overflow having undefined behavior, but it turns out
18396         that the argument is a size, which might not fit in 'int' anyway,
18397
18398 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18399
18400         stdio: don't require ignore_value around fwrite
18401
18402         This patch works around libc bug 11959
18403         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18404         Without this patch, applications must often write
18405         ignore_value (fwrite (...)) even though the ignore_value is
18406         not helpful here.  It's common to write many objects, using
18407         fwrite/printf/etc., and then use ferror to detect output error.
18408
18409         I considered making this patch optional, but decided against it,
18410         because libc is obviously being inconsistent here: there is no
18411         reason libc should insist that user code must inspect fwrite
18412         return's value without also insisting that it inspect printf's,
18413         putchar's, etc.  If user code wants to have a strict style where
18414         all these functions' values are checked (so that ferror need not
18415         be checked), we could add support for that style in a new gnulib
18416         module, but in the meantime it's better to be consistent and to
18417         support common usage.
18418
18419         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18420         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18421         that we are compiling in checking mode, and if not C++, and
18422         if not already wrapping fwrite for some other reason.
18423         (fwrite): #define to rpl_fwrite if the latter is defined.
18424
18425 2011-03-20  Bruno Haible  <bruno@clisp.org>
18426
18427         verror: Fix compilation error introduced on 2011-02-13.
18428         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18429         instead of __attribute__.
18430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18431
18432 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18433             Bruno Haible  <bruno@clisp.org>
18434
18435         socklen: do not depend on sys_socket
18436         While trying to modify Emacs to use gnulib's socklen module,
18437         I discovered a circular dependency: socklen depends on sys_socket
18438         and vice versa.  Emacs can use socklen, but it does not need
18439         sys_socket because it has its own substitute for sys/socket.h.
18440         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18441         gl_TYPE_SOCKLEN_T.
18442         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18443         gl_PREREQ_SYS_H_SOCKET.
18444         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18445         gl_PREREQ_SYS_H_SOCKET.
18446         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18447         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18448         * modules/socklen (Depends-on): Do not depend on sys_socket.
18449         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18450
18451 2011-03-20  Jim Meyering  <meyering@redhat.com>
18452
18453         maint.mk: sort file names *after* new transformation
18454         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18455         prefix would have led to an unwarranted failure in GNU parted.
18456         Sort after that transformation.
18457
18458 2011-03-19  Jim Meyering  <meyering@redhat.com>
18459
18460         maint.mk: fix po-file syntax-check rule
18461         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18462         Patch by Bruno Haible.
18463
18464 2011-03-19  Bruno Haible  <bruno@clisp.org>
18465
18466         socklen: Update comment.
18467         * m4/socklen.m4: Update comment about platforms.
18468
18469 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18470             Bruno Haible  <bruno@clisp.org>
18471
18472         inet_ntop, inet_pton: Simplify.
18473         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18474         documented to provide socklen_t and we already depend on sys_socket.
18475         * modules/inet_pton (Depends-on): Likewise.
18476         * lib/arpa_inet.in.h: Adjust comment.
18477
18478 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18479             Bruno Haible  <bruno@clisp.org>
18480
18481         netdb: Simplify.
18482         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18483         documented to provide socklen_t and we already depend on sys_socket.
18484         * lib/netdb.in.h: Adjust comment.
18485
18486 2011-03-19  Bruno Haible  <bruno@clisp.org>
18487
18488         sys_socket, netdb: Document problem with socklen_t.
18489         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18490         platforms.
18491         * doc/posix-headers/netdb.texi: Likewise.
18492
18493 2011-03-18  Eric Blake  <eblake@redhat.com>
18494
18495         maint.mk: let po check work in VPATH build
18496         * top/maint.mk (po_file): Allow cfg.mk override.
18497         (sc_po_check): Allow VPATH use.
18498         Reported by Jiri Denemark.
18499
18500 2011-03-16  Jim Meyering  <meyering@redhat.com>
18501
18502         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18503         Before, you would have had to create one .x-sc_ file per rule in order
18504         to exempt offending files.  Now, you may instead use a Make variable --
18505         usually defined in cfg.mk -- whose name identifies the affected rule.
18506         * top/maint.mk (_sc_excl): Define.
18507         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18508         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18509
18510 2011-03-13  Bruno Haible  <bruno@clisp.org>
18511
18512         ignore-value tests: Avoid warnings.
18513         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18514         empty for gcc < 3.4.
18515
18516 2011-03-13  Bruno Haible  <bruno@clisp.org>
18517
18518         passfd: Fix link error on Solaris.
18519         * modules/passfd (Description): Correct.
18520         (Depends-on): Add socketlib.
18521         (Link): New section.
18522         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18523
18524 2011-03-13  Bruno Haible  <bruno@clisp.org>
18525
18526         passfd: Fix link error on AIX 5.2.
18527         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18528
18529 2011-03-13  Bruno Haible  <bruno@clisp.org>
18530
18531         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18532         * lib/sys_socket.in.h: Include <stddef.h>.
18533         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18534         CMSG_FIRSTHDR. Remove unused variable.
18535
18536 2011-03-13  Bruno Haible  <bruno@clisp.org>
18537
18538         passfd: Fix compilation error on OpenBSD.
18539         * lib/passfd.c: Include <sys/uio.h>.
18540
18541 2011-03-13  Bruno Haible  <bruno@clisp.org>
18542
18543         passfd test: Fix warnings.
18544         * tests/test-passfd.c: Include <sys/wait.h>.
18545         (main): Fix typo.
18546
18547 2011-03-13  Bruno Haible  <bruno@clisp.org>
18548
18549         passfd module, part 4, tweaks.
18550         * tests/test-passfd.c: Reorder includes.
18551         (main): Fix perror and printf calls.
18552
18553 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18554
18555         passfd module, part 4.
18556         * modules/passfd-tests: New file.
18557         * tests/test-passfd.c: New file.
18558
18559 2011-03-13  Jim Meyering  <meyering@redhat.com>
18560
18561         Makefile: rely on GNU make; derive syntax-check rule names
18562         Rather than requiring that each sc_ rule be listed as a dependent
18563         of "check", use features of GNU make to derive the list.
18564         * Makefile (syntax-check-rules): Define.
18565         (check): Depend on the new variable, not the hard-coded list.
18566
18567 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18568             Bruno Haible  <bruno@clisp.org>
18569
18570         passfd module, part 3.
18571         * lib/passfd.h (recvfd): Add a flags argument.
18572         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18573         (recvfd): Add a flags argument.
18574         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18575         exists.
18576         * modules/passfd (Depends-on): Add cloexec.
18577         Suggested by Eric Blake.
18578
18579 2011-03-13  Bruno Haible  <bruno@clisp.org>
18580
18581         passfd module, part 2, tweaks.
18582         * modules/passfd (Files): Reorder.
18583         (Depends-on): Remove errno.
18584         (Include): Remove <sys/socket.h>, <sys/un.h>.
18585         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18586         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18587         specification header. Include <sys/socket.h> always. Don't include
18588         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18589         (sendfd): Clarify that it sets errno when it fails.
18590         (recvfd): Fix specification.
18591
18592 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18593
18594         passfd module, part 2.
18595         * modules/passfd: New file.
18596         * lib/passfd.h: New file.
18597         * lib/passfd.c: New file.
18598
18599 2011-03-12  Bruno Haible  <bruno@clisp.org>
18600
18601         wcswidth, mbswidth: Avoid integer overflow.
18602         * lib/wcswidth.c: Include <limits.h>.
18603         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18604         * lib/mbswidth.c: Include <limits.h>.
18605         (mbsnwidth): Avoid 'int' overflow.
18606         Reported by Jim Meyering.
18607
18608 2011-03-12  Bruno Haible  <bruno@clisp.org>
18609
18610         futimens, utimensat: Avoid endless recursion on Solaris 10.
18611         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18612         Solaris.
18613         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18614         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18615
18616 2011-03-11  Jim Meyering  <meyering@redhat.com>
18617
18618         maint.mk: relax a regexp to accommodate other formatting styles
18619         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18620         between "ngettext" and the following "(".
18621
18622 2011-03-11  Pádraig Brady <P@draigBrady.com>
18623
18624         maint.mk: suppress a false positive warning
18625         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18626         diagnostics are marked with ngettext.
18627
18628 2011-03-10  Eric Blake  <eblake@redhat.com>
18629
18630         wchar: add explicit dependencies, for Tru64
18631         * modules/mbmemcasecoll (Depends-on): Add wchar.
18632         * modules/mbtowc (Depends-on): Likewise.
18633         * modules/vasnprintf (Depends-on): Likewise.
18634         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18635         * modules/wctomb (Depends-on): Likewise.
18636         Reported by Peter O'Gorman.
18637
18638 2011-03-08  Bruno Haible  <bruno@clisp.org>
18639
18640         passfd module, part 1, tweaks.
18641         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18642         Improve indentation. Improve AC_MSG_CHECKING messages.
18643         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18644         gl_SOCKET_FAMILIES.
18645
18646 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18647
18648         passfd module, part 1.
18649         * m4/afunix.m4: New file.
18650         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18651         sockets.
18652
18653 2011-03-08  Bruno Haible  <bruno@clisp.org>
18654
18655         regex-quote: New API.
18656         * lib/regex-quote.h: Include <stdbool.h>.
18657         (struct regex_quote_spec): New type.
18658         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18659         New declarations.
18660         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18661         'const struct regex_quote_spec *' argument.
18662         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18663         (pcre_special): New constant.
18664         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18665         New functions.
18666         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18667         'const struct regex_quote_spec *' argument.
18668         * modules/regex-quote (Depends-on): Add stdbool.
18669         * tests/test-regex-quote.c (check): Update for new API. Add test for
18670         anchored results.
18671         * NEWS: Mention the API change.
18672         Reported by Reuben Thomas and Eric Blake.
18673
18674 2011-03-06  Bruno Haible  <bruno@clisp.org>
18675
18676         regex-quote: Fix creation of POSIX extended regular expressions.
18677         * lib/regex-quote.c (ere_special): Add grouping and alternation
18678         operators.
18679
18680 2011-03-05  Bruno Haible  <bruno@clisp.org>
18681
18682         doc: Improve doc regarding autopoint vs. gnulib.
18683         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18684         disable autopoint while running autoreconf.
18685         Suggested by Ralf Wildenhues.
18686
18687 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18688
18689         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18690         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18691
18692 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18693
18694         parse-duration: remove xalloc.h dependency
18695         * lib/parse-duration.c (parse_period): handle NULL return from
18696         strdup instead of calling xstrdup().
18697         * modules/parse-duration: remove "xalloc" dependency
18698
18699 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18700
18701         bootstrap: honor m4_base when running aclocal
18702         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18703
18704 2011-03-02  Jim Meyering  <meyering@redhat.com>
18705
18706         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18707         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18708         on request from Matt Booth.
18709
18710 2011-03-01  Eric Blake  <eblake@redhat.com>
18711
18712         test-link: work on Hurd
18713         * tests/test-link.h (test_link): Hurd rejects linking directories
18714         with EISDIR instead of the POSIX-mandated EPERM.
18715
18716 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18717
18718         stdio: simplify by moving files to printf-posix, sigpipe
18719         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18720         since this symbol is needed only if printf is replaced.
18721         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18722         Require gl_ASM_SYMBOL_PREFIX.
18723         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18724         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18725         (Depends-on): Add 'raise'.
18726         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18727         * modules/stdio (Files): Remove lib/stdio-write.c,
18728         m4/asm-underscore.m4.
18729         (Depends-on): Remove 'raise'.
18730
18731         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18732         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18733         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18734         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18735
18736 2011-02-28  Bruno Haible  <bruno@clisp.org>
18737
18738         localcharset: Assume ANSI C behaviour of free().
18739         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18740         calling free().
18741         Suggested by Simon Josefsson <simon@josefsson.org>.
18742
18743 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18744             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18745             Bruno Haible  <bruno@clisp.org>  (tiny change)
18746
18747         On Cygwin, use /proc file system instead of win32 API.
18748         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18749         Win32 file names.
18750         (DllMain): Simplify by removing Cygwin specific code.
18751         (find_shared_library_fullname): Use Linux specific implementation also
18752         for Cygwin.
18753         (get_shared_library_fullname): Update accordingly.
18754         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18755         Win32 file names.
18756         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18757         Cygwin specific code.
18758
18759 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18760             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18761
18762         Fix OpenMP flag detection for various Fortran compilers.
18763         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18764         OpenMP-conditional compilation construct, to force compile
18765         failure with missing OpenMP flag.
18766         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18767
18768 2011-02-25  Eric Blake  <eblake@redhat.com>
18769
18770         strstr: expand test coverage
18771         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18772         compilation.
18773         * tests/test-memmem.c (main): Duplicate tests.
18774         * tests/test-strcasestr.c (main): Likewise.
18775         * tests/test-c-strcasestr.c (main): Likewise.
18776
18777 2011-02-25  Jim Meyering  <meyering@redhat.com>
18778
18779         maint.mk: detect missing-NL-at-EOF, too
18780         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18781         it also detects when a file lacks a newline at EOF.
18782         (require_exactly_one_NL_at_EOF_): Renamed from
18783         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18784         since people may well have .x-sc_... file names tied to the
18785         existing name.  Suggested by Eric Blake.
18786
18787 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18788
18789         dirname: move m4/dos.m4 functionality into lib/dosname.h
18790
18791         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18792         extracts symbols from it, puts them into config.h; but it's much
18793         easier to use the symbols directly.  filename.h already does this,
18794         but it disagrees with dos.m4 in some respects.  This patch
18795         introduces a different include file dosname.h that packages up
18796         dos.m4, and then later we can work on merging filename.h and
18797         dosname.h.  Applications that need only the easy-to-configure
18798         symbols should consider including dosname.h rather than dirname.h.
18799         * NEWS: Mention incompatible changes.
18800         * m4/dos.m4: Remove.
18801         * lib/dosname.h, modules/dosname: New files.
18802         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18803         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18804         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18805         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18806         Include dosname.h, not dirname.h.
18807         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18808         Include dosname.h, for definitions of symbols like ISSLASH
18809         that used to be in config.h.
18810         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18811         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18812         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18813         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18814         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18815         * modules/rmdir (Files): Likewise.
18816         * modules/stat (Files): Likewise.
18817         * modules/unlink (Files): Likewise.
18818         * modules/dirname-lgpl (Depends-on): Add dosname.
18819         * modules/lstat (Depends-on): Likewise.
18820         * modules/openat (Depends-on): Likewise.
18821         * modules/rmdir (Depends-on): Likewise.
18822         * modules/savewd (Depends-on): Likewise.
18823         * modules/stat (Depends-on): Likewise.
18824         * modules/unlink (Depends-on): Likewise.
18825         * modules/openat (Depends-on): Remove dirname-lgpl.
18826         * modules/savewd (Depends-on): Likewise.
18827         * tests/test-dirname.c: Do not use removed symbols like
18828         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18829         the remaining symbols, e.g., ISSLASH ('\\').
18830
18831 2011-02-25  Eric Blake  <eblake@redhat.com>
18832
18833         strstr: revert patches that introduced bug and pessimization
18834         * lib/str-two-way.h: Add another reference.
18835         (two_way_short_needle, two_way_long_needle): Revert changes from
18836         2011-02-24; they pessimize search speed.
18837         (critical_factorization): Partially revert changes from
18838         2010-06-22; they violate the requirement that the left half of the
18839         needle be smaller than the period of the needle.
18840
18841 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18842
18843         filenamecat: remove unnecessary dependency on dirname-lgpl
18844         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18845         is no direct dependency, just an indirect one via filenamecat-lgpl.
18846
18847         remove: remove unnecessary use of m4/dos.m4
18848         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18849         * modules/remove (FILES): Remove m4/dos.m4.
18850
18851         * lib/openat-proc.c: Don't include dirname.h; not needed.
18852
18853         backupfile: remove unnecessary use of m4/dos.m4
18854         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18855         of its symbols are used by the backupfile code.  backupfile.c does
18856         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18857         for the rare case of programs that want all their backup file
18858         names to live within 8+3 limits, and dos.m4 doesn't address that.
18859         * modules/backupfile (Files): Remove m4/dos.m4.
18860
18861 2011-02-24  Jim Meyering  <meyering@redhat.com>
18862
18863         strstr: fix a bug whereby strstr would mistakenly return NULL
18864         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18865         in period calculation.
18866         (two_way_long_needle): Likewise.
18867         The original problem was reported by Mike Stump in
18868         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18869         Ralf Wildenhues provided the short needle and haystack.
18870         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18871         Add a more involved test to trigger the bug in two_way_long_needle.
18872
18873 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18874
18875         gnulib-tool: remove use of bold display in help screen
18876         * gnulib-tool (func_usage): Do not use bold display anymore in the
18877         help screen.  That was just meant to be a temporary emphasis for a
18878         backward-incompatible change.
18879
18880 2011-02-23  Bruno Haible  <bruno@clisp.org>
18881
18882         Fix misindentation of preprocessor directives.
18883         * lib/argp-namefrob.h: Reindent preprocessor directives.
18884         * lib/getopt_int.h (struct _getopt_data): Likewise.
18885         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18886         * lib/vasnprintf.c (decode_long_double): Likewise.
18887         * tests/test-argmatch.c: Insert blank lines, for clarity.
18888         * tests/test-exclude.c: Likewise.
18889
18890 2011-02-22  Bruno Haible  <bruno@clisp.org>
18891
18892         ioctl: Fix for MacOS X in 64-bit mode.
18893         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18894         value.
18895         Suggested by Eric Blake.
18896         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18897
18898 2011-02-22  Jim Meyering  <meyering@redhat.com>
18899
18900         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18901         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18902         in lib/.
18903
18904 2011-02-22  Eric Blake  <eblake@redhat.com>
18905
18906         maint: avoid any CDPATH issue
18907         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18908
18909         maint: adjust cpp indentation for my modules, as well
18910         * Makefile (sc_cpp_indent_check): Add my name.
18911         * lib/fbufmode.c: Filter through cppi.
18912         * lib/fpurge.c: Likewise.
18913         * lib/freadable.c: Likewise.
18914         * lib/freading.c: Likewise.
18915         * lib/fwritable.c: Likewise.
18916         * lib/fwriting.c: Likewise.
18917         * lib/sigaction.c: Likewise.
18918
18919 2011-02-22  Jim Meyering  <meyering@redhat.com>
18920
18921         maint: adjust cpp indentation to reflect nesting depth
18922         I.e., in a block of code that begins with an unnested "#if",
18923         put one space between the "#" in column 1 and following token.
18924         For example,
18925         -#include <sys/vfs.h>
18926         +# include <sys/vfs.h>
18927         Do this only in .c files that are part of a module I maintain.
18928         * lib/linkat.c: Filter through cppi.
18929         * lib/nanosleep.c: Likewise.
18930         * lib/openat.c: Likewise.
18931         * lib/openat-die.c: Likewise.
18932         * lib/dup3.c: Likewise.
18933         * lib/fchownat.c: Likewise.
18934         * lib/flock.c: Likewise.
18935         * lib/fsync.c: Likewise.
18936         * lib/fts.c: Likewise.
18937         * lib/getpass.c: Likewise.
18938         * lib/gettimeofday.c: Likewise.
18939         * lib/userspec.c: Likewise.
18940         * Makefile (sc_cpp_indent_check): New rule, to check this.
18941
18942 2011-02-22  Bruno Haible  <bruno@clisp.org>
18943
18944         New module 'wctomb'.
18945         * lib/stdlib.in.h (wctomb): New declaration.
18946         * lib/wctomb.c: New file.
18947         * lib/wctomb-impl.h: New file.
18948         * m4/wctomb.m4: New file.
18949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18950         REPLACE_WCTOMB.
18951         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18952         REPLACE_WCTOMB.
18953         * modules/wctomb: New file.
18954         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18955         * doc/posix-functions/wctomb.texi: Mention the new module.
18956         * modules/wctob (Depends-on): Add wctomb.
18957
18958 2011-02-22  Bruno Haible  <bruno@clisp.org>
18959
18960         New module 'mbtowc'.
18961         * lib/stdlib.in.h (mbtowc): New declaration.
18962         * lib/mbtowc.c: New file.
18963         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18964         * m4/mbtowc.m4: New file.
18965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18966         REPLACE_MBTOWC.
18967         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18968         REPLACE_MBTOWC.
18969         * modules/mbtowc: New file.
18970         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18971         * doc/posix-functions/mbtowc.texi: Mention the new module.
18972         * modules/btowc (Depends-on): Add mbtowc.
18973
18974 2011-02-22  Bruno Haible  <bruno@clisp.org>
18975
18976         wcrtomb: Add more tests for native Windows platforms.
18977         * tests/test-wcrtomb-w32-1.sh: New file.
18978         * tests/test-wcrtomb-w32-2.sh: New file.
18979         * tests/test-wcrtomb-w32-3.sh: New file.
18980         * tests/test-wcrtomb-w32-4.sh: New file.
18981         * tests/test-wcrtomb-w32-5.sh: New file.
18982         * tests/test-wcrtomb-w32.c: New file.
18983         * modules/wcrtomb-tests (Files): Add them.
18984         (Makefile.am): Arrange to run these tests.
18985         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18986         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18987
18988 2011-02-20  Bruno Haible  <bruno@clisp.org>
18989
18990         wcrtomb: Enhance test.
18991         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18992
18993 2011-02-20  Bruno Haible  <bruno@clisp.org>
18994
18995         mbrtowc: Tiny optimization.
18996         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18997
18998 2011-02-20  Jim Meyering  <meyering@redhat.com>
18999
19000         test-exclude.c: remove unmatched #endif
19001         * tests/test-exclude.c: Remove stray #endif, left over from
19002         the change of a week ago.
19003
19004 2011-02-19  Jim Meyering  <meyering@redhat.com>
19005
19006         git-version-gen: skip "-dirty" check when appropriate
19007         * build-aux/git-version-gen: Don't run any git commands when the
19008         version string comes from .tarball-version.  Prior to this, we
19009         would run git update-index --refresh even from a just-unpacked
19010         tarball directory, and that could affect a .git/ directory in a
19011         parent of the build directory.  Reported by Mike Frysinger.
19012
19013 2011-02-19  Bruno Haible  <bruno@clisp.org>
19014
19015         unictype/property-byname: Reduce the size of the 'data' segment.
19016         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19017
19018 2011-02-19  Bruno Haible  <bruno@clisp.org>
19019
19020         unictype/scripts: Reduce the size of the 'data' segment.
19021         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19022         '%pic'.
19023         * lib/unictype/scripts_byname.gperf: Regenerated.
19024
19025 2011-02-19  Bruno Haible  <bruno@clisp.org>
19026
19027         stdint: Update documentation.
19028         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19029
19030 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19031
19032         stdint: omit redundant check for wchar.h
19033         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19034         always tests whether wchar.h exists, so remove the now-redundant test.
19035
19036 2011-02-18  Bruno Haible  <bruno@clisp.org>
19037
19038         stdint: Cut dependency to module 'wchar'.
19039         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19040         include the necessary prerequisites.
19041         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19042         * modules/stdint (Depends-on): Remove wchar.
19043         (Makefile.am): Substitute HAVE_WCHAR_H.
19044         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19045
19046 2011-02-18  Eric Blake  <eblake@redhat.com>
19047
19048         longlong: skip, rather than fail, on cross-compilation
19049         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19050         when cross-compiling; regression from 2011-02-16.
19051
19052 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19053
19054         * NEWS: Mention 2011-02-08 change to stdlib.
19055
19056 2011-02-17  Bruno Haible  <bruno@clisp.org>
19057
19058         getloadavg: Add comments about platforms.
19059         * m4/getloadavg.m4: Add comment.
19060         * lib/getloadavg.c: Likewise.
19061
19062 2011-02-17  Bruno Haible  <bruno@clisp.org>
19063
19064         getloadavg: Fix link error on Solaris 2.6.
19065         * modules/getloadavg (Link): New section.
19066         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19067         linking test-getloadavg.
19068         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19069         getloadavg.
19070
19071 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19072
19073         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19074         It was 'int', but this doesn't match the IRIX 6.5 manual.
19075         Suggested by Bruno Haible in
19076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19077
19078 2011-02-17  Bruno Haible  <bruno@clisp.org>
19079
19080         havelib: Fix comments.
19081         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19082         change.
19083
19084 2011-02-17  Bruno Haible  <bruno@clisp.org>
19085
19086         havelib: Update config.rpath.
19087         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19088
19089 2011-02-17  Bruno Haible  <bruno@clisp.org>
19090
19091         getloadavg test: Add some plausibility checks.
19092         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19093         is improbable.
19094
19095 2011-02-16  Eric Blake  <eblake@redhat.com>
19096
19097         maintainer-makefile: make syntax-check a no-op from tarballs
19098         * top/maint.mk (no-vc-detected): New rule.
19099         (local-checks-available): Use it to avoid hanging if someone tries
19100         'make syntax-check' from a tarball.  Also append to any non-syntax
19101         checks already defined in cfg.mk.
19102
19103 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19104
19105         longlong: tune, particularly for common case of c99
19106
19107         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19108         or running anything if c99, or if unsigned long long int does not
19109         work.  In either case, we know the answer without further tests.
19110         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19111         it at most once, and use its results for both long long int and
19112         unsigned long long int.  This is more likely to be efficient in
19113         the common case where the program wants to check for both long
19114         long int and unsigned long long int.
19115         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19116         since the answer is already known.
19117
19118 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19119
19120         getloadavg: set errno
19121         * lib/getloadavg.c: Set errno when returning -1.  If no other
19122         error number looks appropriate, set it to ENOSYS if the getloadavg
19123         looks like it can't possibly ever work, ENOTSUP otherwise.
19124         Suggested by Bruno Haible in
19125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19126
19127         getloadavg: trim unused parts and speed up 'configure'
19128         * NEWS: Document this.
19129         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19130         always compiled if getloadavg is absent.
19131         Move test code to ...
19132         * tests/test-getloadavg.c: New file, containing previous
19133         contents of test from lib/getloadavg.c.  It also contains
19134         suggestions by Bruno Haible in
19135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19136         * modules/getloadavg-tests: New file.
19137         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19138         Do tests in the same order as they're needed for getloadavg.c.
19139         Omit setgid-related tests that generate symbols KMEM_GROUP,
19140         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19141         Do only the tests that are needed to see whether the system has
19142         getloadavg, moving the other tests into ...
19143         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19144         NLIST_NAME_UNION; nobody should be using it.  Do not define
19145         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19146         relevant, as the user of this module shouldn't care how getloadavg
19147         is implemented.
19148
19149         getloadavg: omit unused var
19150         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19151
19152 2011-02-15  Jim Meyering  <meyering@redhat.com>
19153
19154         doc: update users.txt
19155         * users.txt: Update iwhd's URL.
19156
19157 2011-02-13  Bruno Haible  <bruno@clisp.org>
19158
19159         Consistent macro naming for macros that use GCC __attribute__.
19160         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19161         _ATTRIBUTE_NONNULL_.
19162         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19163         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19164         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19165         ATTRIBUTE_DEPRECATED.
19166         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19167         ATTRIBUTE_NORETURN.
19168         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19169         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19170         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19171         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19172         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19173         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19174         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19175         ATTRIBUTE_SENTINEL.
19176         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19177         ATTRIBUTE_RETURN_CHECK.
19178         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19179         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19180         ATTRIBUTE_NORETURN.
19181         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19182         Reported by Paul Eggert.
19183
19184 2011-02-13  Bruno Haible  <bruno@clisp.org>
19185
19186         Don't interfere with a program's definition of __attribute__.
19187         * lib/argp.h (__attribute__): Remove definition.
19188         (_GL_ATTRIBUTE_FORMAT): New macro.
19189         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19190         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19191         (_GL_ATTRIBUTE_FORMAT): New macro.
19192         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19193         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19194         GCC 3 or newer.
19195         * lib/error.h (__attribute__): Remove definition.
19196         (_GL_ATTRIBUTE_FORMAT): New macro.
19197         (error, error_at_line): Use it.
19198         * lib/hash.h (__attribute__): Remove definition.
19199         (ATTRIBUTE_WUR): Update definition. Define always.
19200         * lib/openat.h (__attribute__): Remove definition.
19201         (ATTRIBUTE_NORETURN): Update definition. Define always.
19202         * lib/sigpipe-die.h (__attribute__): Remove definition.
19203         (ATTRIBUTE_NORETURN): Update definition. Define always.
19204         * lib/vasnprintf.h (__attribute__): Remove definition.
19205         (_GL_ATTRIBUTE_FORMAT): New macro.
19206         (asnprintf, vasnprintf): Use it.
19207         * lib/xalloc.h (__attribute__): Remove definition.
19208         (ATTRIBUTE_NORETURN): Update definition. Define always.
19209         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19210         * lib/xmemdup0.h (__attribute__): Remove definition.
19211         (ATTRIBUTE_NORETURN): Update definition. Define always.
19212         * lib/xprintf.h (__attribute__): Remove definition.
19213         (_GL_ATTRIBUTE_FORMAT): New macro.
19214         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19215         * lib/xstrtol.h (__attribute__): Remove definition.
19216         (ATTRIBUTE_NORETURN): Update definition. Define always.
19217         * lib/xvasprintf.h (__attribute__): Remove definition.
19218         (_GL_ATTRIBUTE_FORMAT): New macro.
19219         (xasprintf, xvasprintf): Use it.
19220         * tests/test-argmatch.c (__attribute__): Remove definition.
19221         (ATTRIBUTE_NORETURN): Update definition. Define always.
19222         * tests/test-exclude.c (__attribute__): Remove definition.
19223         (ATTRIBUTE_NORETURN): Update definition. Define always.
19224         Reported by Paul Eggert.
19225
19226 2011-02-13  Bruno Haible  <bruno@clisp.org>
19227
19228         mbrtowc: Add more tests for native Windows platforms.
19229         * tests/test-mbrtowc-w32-1.sh: New file.
19230         * tests/test-mbrtowc-w32-2.sh: New file.
19231         * tests/test-mbrtowc-w32-3.sh: New file.
19232         * tests/test-mbrtowc-w32-4.sh: New file.
19233         * tests/test-mbrtowc-w32-5.sh: New file.
19234         * tests/test-mbrtowc-w32.c: New file.
19235         * modules/mbrtowc-tests (Files): Add them.
19236         (Makefile.am): Arrange to run these tests.
19237         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19238         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19239
19240 2011-02-13  Bruno Haible  <bruno@clisp.org>
19241
19242         mbrtowc: Work around native Windows bug.
19243         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19244         guess when no suitable locale for testing was found.
19245         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19246
19247 2011-02-13  Bruno Haible  <bruno@clisp.org>
19248
19249         mbsinit: Work around mingw bug.
19250         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19251         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19252         Windows.
19253         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19254
19255 2011-02-13  Bruno Haible  <bruno@clisp.org>
19256
19257         mbsinit: Don't crash for a NULL argument.
19258         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19259         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19260
19261 2011-02-13  Bruno Haible  <bruno@clisp.org>
19262
19263         Don't interfere with a program's definition of __attribute__.
19264         * lib/stdio.in.h (__attribute__): Remove definition.
19265         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19266         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19267         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19268         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19269         * lib/string.in.h (__attribute__): Remove definition.
19270         Reported by Paul Eggert.
19271
19272 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19273
19274         stdlib: don't get in the way of non-GCC __attribute__
19275         See thread starting at
19276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19277         Revert previous stdlib change, installing the following instead:
19278         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19279         to get in the way of a non-GCC compiler that supports __attribute__.
19280         (_GL_ATTRIBUTE_RETURN): New macro.
19281         (_Exit): Use it instead of __attribute__.
19282
19283 2011-02-12  Bruno Haible  <bruno@clisp.org>
19284
19285         quotearg test: Avoid test failure on mingw.
19286         * tests/test-quotearg.sh: Convert the locale identifier from native
19287         Windows syntax to Unix syntax.
19288
19289 2011-02-12  Bruno Haible  <bruno@clisp.org>
19290
19291         setlocale: Prefer gnulib's override over libintl's override.
19292         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19293         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19294         GNULIB_defined_setlocale is set.
19295
19296 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19297
19298         stdlib: support non-GCC __attribute__
19299
19300         Fix a serious and tricky problem encountered when attempting to
19301         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19302         5.5, but it crashed due to memory corruption on Solaris 10 with
19303         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19304         bits that are otherwise zero.  This tagging is optional inside
19305         Emacs but is preferred and is used when __attribute__ ((__aligned
19306         (8))) works, as it does with both recent-enough GCC and with Sun C
19307         5.11.  However, Sun C 5.11 is not GCC and does not #define
19308         __GNUC__ and __GNUC_MINOR__.
19309
19310         When I added the getloadavg module to Emacs, it brought in
19311         stdlib.in.h, which contained this fragment:
19312
19313            #ifndef __attribute__
19314            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19315            #  define __attribute__(Spec)   /* empty */
19316            # endif
19317            #endif
19318
19319         When files that include <stdlib.h> were compiled with Sun C 5.11,
19320         the above code disabled __attribute__ ((__aligned (8))), which
19321         caused variables to not be properly aligned, which eventually led
19322         to the pointer corruption mentioned above.  (This was a bit hard
19323         to diagnose, unfortunately.)
19324
19325         Several "#define __attribute__(X) /* empty */" code snippets need
19326         to be eradicated from Gnulib to work with non-GCC compilers that
19327         support __attribute__.  The Autoconf way to do this is to test for
19328         each kind of attribute that we want support for, and selectively
19329         enable that in source code.
19330
19331         Fix this problem just for stdlib.h, by adding a test for the
19332         __noreturn__ attribute, and change stdlib.in.h to use that test
19333         when needed.  This technique can be easily generalized to the
19334         other *.in.h files and attributes, and a similar technique can be
19335         used for *.h and *.c files.  This patch is enough to solve the
19336         problem for Emacs + getloadavg, and I thought I'd publish it for
19337         feedback before undertaking further, similar fixes in other
19338         modules.
19339
19340         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19341         because it's not needed for stdlib.h.  It merely substitutes the
19342         value directly into stdlib.h.  We may well need to #define it, or
19343         similar symbols, for other modules, but it's nice to also have an
19344         option to not #define it for applications like Emacs that do not
19345         need it.
19346
19347         * lib/stdlib.in.h (__attribute__): Do not #define.
19348         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19349         be defined only if the _Exit module is also used.
19350         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19352         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19353         platforms.
19354         * modules/_Exit (Files): Add m4/attribute.m4.
19355         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19356         * m4/attribute.m4: New file.
19357
19358 2011-02-12  Bruno Haible  <bruno@clisp.org>
19359
19360         wcsrtombs: Work around bug on native Windows.
19361         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19362         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19363         instead of len.
19364         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19365
19366 2011-02-12  Bruno Haible  <bruno@clisp.org>
19367
19368         mbsrtowcs: Work around bug on native Windows.
19369         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19370         against mingw bug.
19371         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19372
19373 2011-02-12  Bruno Haible  <bruno@clisp.org>
19374
19375         Avoid setlocale bugs in tests.
19376         * modules/btowc (Dependencies): Add setlocale.
19377         * modules/c-strcase (Dependencies): Likewise.
19378         * modules/mbmemcasecmp (Dependencies): Likewise.
19379         * modules/mbmemcasecoll (Dependencies): Likewise.
19380         * modules/mbrtowc (Dependencies): Likewise.
19381         * modules/mbscasecmp (Dependencies): Likewise.
19382         * modules/mbscasestr (Dependencies): Likewise.
19383         * modules/mbschr (Dependencies): Likewise.
19384         * modules/mbscspn (Dependencies): Likewise.
19385         * modules/mbsinit (Dependencies): Likewise.
19386         * modules/mbsncasecmp (Dependencies): Likewise.
19387         * modules/mbsnrtowcs (Dependencies): Likewise.
19388         * modules/mbspbrk (Dependencies): Likewise.
19389         * modules/mbspcasecmp (Dependencies): Likewise.
19390         * modules/mbsrchr (Dependencies): Likewise.
19391         * modules/mbsrtowcs (Dependencies): Likewise.
19392         * modules/mbsspn (Dependencies): Likewise.
19393         * modules/mbsstr (Dependencies): Likewise.
19394         * modules/nl_langinfo (Dependencies): Likewise.
19395         * modules/quotearg (Dependencies): Likewise.
19396         * modules/unicase/locale-language (Dependencies): Likewise.
19397         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19398         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19399         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19400         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19401         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19402         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19403         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19404         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19405         * modules/vasnprintf-posix (Dependencies): Likewise.
19406         * modules/wcrtomb (Dependencies): Likewise.
19407         * modules/wcsnrtombs (Dependencies): Likewise.
19408         * modules/wcsrtombs (Dependencies): Likewise.
19409
19410 2011-02-12  Bruno Haible  <bruno@clisp.org>
19411
19412         setlocale: Workaround native Windows bug.
19413         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19414         succeeds but sets LC_CTYPE to "C", report a failure.
19415         * tests/test-setlocale2.sh: New file.
19416         * tests/test-setlocale2.c: New file.
19417         * modules/setlocale-tests (Files): Add the new files.
19418         (Makefile.am): Enable test-setlocale2.sh test.
19419         * doc/posix-functions/setlocale.texi: Mention workaround.
19420
19421 2011-02-11  Bruno Haible  <bruno@clisp.org>
19422
19423         Tests for module 'setlocale'.
19424         * modules/setlocale-tests: New file.
19425         * tests/test-setlocale1.sh: New file.
19426         * tests/test-setlocale1.c: New file.
19427
19428         New module 'setlocale'.
19429         * lib/locale.in.h (setlocale): New declaration.
19430         * lib/setlocale.c: New file, based on
19431         gettext/gettext-runtime/intl/setlocale.c.
19432         * m4/setlocale.m4: New file.
19433         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19434         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19435         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19436         REPLACE_SETLOCALE.
19437         * modules/setlocale: New file.
19438         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19439         * doc/posix-functions/setlocale.texi: Mention the new module.
19440
19441 2011-02-11  Bruno Haible  <bruno@clisp.org>
19442
19443         Prepare for locale dependent tests on mingw.
19444         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19445         because it has the wrong locale encoding.
19446         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19447         French_France.1252 instead of "fr".
19448         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19449         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19450         because it has the wrong locale encoding.
19451         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19452         native Windows, try Turkish_Turkey.65001.
19453         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19454         Chinese_China.54936.
19455
19456         Prepare for locale dependent tests on mingw.
19457         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19458         differently.
19459         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19460         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19461         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19462         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19463
19464 2011-02-11  Eric Blake  <eblake@redhat.com>
19465
19466         strptime: avoid compiler warnings
19467         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19468         compiler warnings about dead code.
19469         Reported by Daniel P. Berrange.
19470
19471 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19472
19473         doc: update users.txt
19474         * users.txt: Add rcs.
19475
19476 2011-02-10  John W. Eaton  <jwe@gnu.org>
19477
19478         doc: update users.txt
19479         * users.txt: Add octave.
19480
19481 2011-02-10  Jim Meyering  <meyering@redhat.com>
19482
19483         doc: update users.txt
19484         * users.txt: Add iwhd.
19485
19486 2011-02-09  Bruno Haible  <bruno@clisp.org>
19487
19488         gnulib-tool: Make copyright notice adjustment more robust.
19489         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19490         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19491         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19492         License".
19493         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19494
19495 2011-02-06  Bruno Haible  <bruno@clisp.org>
19496
19497         New module 'towctrans'.
19498         * modules/towctrans: New file.
19499         * lib/wctype.in.h (towctrans): New declaration.
19500         * lib/towctrans.c: New file.
19501         * lib/towctrans-impl.h: New file.
19502         * m4/towctrans.m4: New file.
19503         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19504         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19505         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19506         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19507         * doc/posix-functions/towctrans.texi: Mention the new module.
19508
19509 2011-02-06  Bruno Haible  <bruno@clisp.org>
19510
19511         New module 'wctrans'.
19512         * modules/wctrans: New file.
19513         * lib/wctype.in.h (wctrans): New declaration.
19514         * lib/wctrans.c: New file.
19515         * lib/wctrans-impl.h: New file.
19516         * m4/wctrans.m4: New file.
19517         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19518         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19519         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19520         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19521         * doc/posix-functions/wctrans.texi: Mention the new module.
19522
19523 2011-02-06  Bruno Haible  <bruno@clisp.org>
19524
19525         New module 'iswctype'.
19526         * modules/iswctype: New file.
19527         * lib/wctype.in.h (iswctype): New declaration.
19528         * lib/iswctype.c: New file.
19529         * lib/iswctype-impl.h: New file.
19530         * m4/iswctype.m4: New file.
19531         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19532         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19533         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19534         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19535         * doc/posix-functions/iswctype.texi: Mention the new module and the
19536         HP-UX 11.00 problem.
19537
19538 2011-02-06  Bruno Haible  <bruno@clisp.org>
19539
19540         New module 'wctype'.
19541         * modules/wctype: Change to represent the wctype() substitute.
19542         * lib/wctype.in.h (wctype): New declaration.
19543         * lib/wctype.c: New file.
19544         * lib/wctype-impl.h: New file.
19545         * m4/wctype.m4: New file.
19546         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19547         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19548         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19549         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19550         * doc/posix-functions/wctype.texi: Mention the new module and the
19551         HP-UX 11.00 problem.
19552
19553 2011-02-06  Bruno Haible  <bruno@clisp.org>
19554
19555         wctype-h: Ensure wctype_t and wctrans_t are defined.
19556         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19557         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19558         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19559         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19560         HAVE_WCTRANS_T.
19561         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19562
19563 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19564
19565         flock: fix license typo
19566
19567         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19568         omitted.
19569
19570 2011-02-08  Bruno Haible  <bruno@clisp.org>
19571
19572         Split large sed scripts, for HP-UX sed.
19573         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19574         to avoid HP-UX limit of 99 commands, in the near future.
19575         * modules/stdlib (Makefile.am): Likewise.
19576         * modules/unistd (Makefile.am): Likewise.
19577         * modules/wchar (Makefile.am): Likewise.
19578         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19579         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19581
19582 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19583             Bruno Haible  <bruno@clisp.org>
19584
19585         stdlib: improve random_r modularization
19586         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19587         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19588         you also need the random_r module to get this material right.
19589         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19590         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19591         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19592
19593 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19594
19595         stdlib: don't depend on stdint
19596         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19597         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19598         be independent of whether stdint.h is needed.
19599         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19600         here, instead of ...
19601         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19602         struct random_data should be using the random_r module, not just
19603         the stdlib module (which wouldn't make sense: what package needs
19604         just struct random_data without also needing random_r?).
19605         * modules/stdlib (Depends-on): Remove stdint.
19606
19607         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19608         See the thread rooted at
19609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19610         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19611         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19612         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19613         __VMS)); previously it was always included (via fcntl--.h).
19614         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19615         hand; this is good enough for load averages.  Also, do not use
19616         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19617         flags directly if available and don't bother otherwise.  (Packages
19618         that need the extra reliability should use the modules that define
19619         these flags on older platforms that lack them.)
19620         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19621         fcntl-safer.
19622
19623 2011-02-08  Jim Meyering  <meyering@redhat.com>
19624
19625         di-set.h, ino-map.h: add multiple-inclusion guard
19626         Technically, the guard is required only for ino-map.h, due to its
19627         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19628         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19629         * lib/ino-map.h: Likewise.
19630
19631 2011-02-06  Bruno Haible  <bruno@clisp.org>
19632
19633         iswblank: Ensure declaration on glibc systems.
19634         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19635         * modules/iswblank (Dependencies): Add 'extensions'.
19636         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19637
19638 2011-02-06  Bruno Haible  <bruno@clisp.org>
19639
19640         New module 'iswblank'.
19641         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19642         * modules/iswblank: New file.
19643         * modules/wctype-h (Files): Remove lib/iswblank.c.
19644         (Makefile.am): Substitute GNULIB_ISWBLANK.
19645         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19646         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19647         (gl_WCTYPE_H_DEFAULTS): New macro.
19648         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19649         * modules/iswblank-tests: New file.
19650         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19651         * tests/test-wctype-h.c (main): Remove iswblank tests.
19652         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19653         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19654         of 'wctype-h'.
19655         * NEWS: Mention the change.
19656         * modules/mbchar (Depends-on): Add iswblank.
19657
19658 2011-02-08  Bruno Haible  <bruno@clisp.org>
19659
19660         di-set tests: Refactor.
19661         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19662         unnecessary includes.
19663         (ASSERT): Remove macro.
19664         (main): Make C90 compliant by avoiding variable declaration after
19665         statement.
19666         * modules/di-set-tests (Files): Add tests/macros.h.
19667
19668 2011-02-08  Bruno Haible  <bruno@clisp.org>
19669
19670         ino-map tests: Refactor.
19671         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19672         unnecessary includes.
19673         (ASSERT): Remove macro.
19674         (main): Make C90 compliant by avoiding variable declaration after
19675         statement.
19676         * modules/ino-map-tests (Files): Add tests/macros.h.
19677
19678 2011-02-08  Jim Meyering  <meyering@redhat.com>
19679
19680         di-set: add "const" to a cast
19681         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19682         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19683
19684 2011-02-06  Bruno Haible  <bruno@clisp.org>
19685
19686         Rename module 'wctype' to 'wctype-h'.
19687         * modules/wctype-h: Renamed from modules/wctype.
19688         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19689         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19690         (Files, Depends-on, Makefile.am): Update.
19691         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19692         (Files, Makefile.am): Update.
19693         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19694         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19695         * doc/posix-headers/wctype.texi: Update.
19696         * doc/posix-functions/iswalnum.texi: Update.
19697         * doc/posix-functions/iswalpha.texi: Update.
19698         * doc/posix-functions/iswblank.texi: Update.
19699         * doc/posix-functions/iswcntrl.texi: Update.
19700         * doc/posix-functions/iswdigit.texi: Update.
19701         * doc/posix-functions/iswgraph.texi: Update.
19702         * doc/posix-functions/iswlower.texi: Update.
19703         * doc/posix-functions/iswprint.texi: Update.
19704         * doc/posix-functions/iswpunct.texi: Update.
19705         * doc/posix-functions/iswspace.texi: Update.
19706         * doc/posix-functions/iswupper.texi: Update.
19707         * doc/posix-functions/iswxdigit.texi: Update.
19708         * doc/posix-functions/towlower.texi: Update.
19709         * doc/posix-functions/towupper.texi: Update.
19710         * NEWS: Mention the change.
19711         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19712         * modules/mbchar (Dependencies): Likewise.
19713         * modules/mbswidth (Dependencies): Likewise.
19714         * modules/quotearg (Dependencies): Likewise.
19715         * modules/regex (Dependencies): Likewise.
19716         * modules/wcscasecmp (Dependencies): Likewise.
19717         * modules/wcsncasecmp (Dependencies): Likewise.
19718         * modules/wcwidth (Dependencies): Likewise.
19719
19720 2011-02-06  Bruno Haible  <bruno@clisp.org>
19721
19722         New module 'wcswidth'.
19723         * modules/wcswidth: New file.
19724         * lib/wchar.in.h (wcswidth): New declaration.
19725         * lib/wcswidth.c: New file.
19726         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19727         * m4/wcswidth.m4: New file.
19728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19730         REPLACE_WCSWIDTH.
19731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19732         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19733         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19734         * doc/posix-functions/wcswidth.texi: Mention the new module.
19735
19736 2011-02-06  Bruno Haible  <bruno@clisp.org>
19737
19738         New module 'wcstok'.
19739         * modules/wcstok: New file.
19740         * lib/wchar.in.h (wcstok): New declaration.
19741         * lib/wcstok.c: New file.
19742         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19743         * m4/wcstok.m4: New file.
19744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19747         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19748         * doc/posix-functions/wcstok.texi: Mention the new module.
19749
19750 2011-02-06  Bruno Haible  <bruno@clisp.org>
19751
19752         New module 'wcsstr'.
19753         * modules/wcsstr: New file.
19754         * lib/wchar.in.h (wcsstr): New declaration.
19755         * lib/wcsstr.c: New file.
19756         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19757         * m4/wcsstr.m4: New file.
19758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19761         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19762         * doc/posix-functions/wcsstr.texi: Mention the new module.
19763
19764 2011-02-06  Bruno Haible  <bruno@clisp.org>
19765
19766         New module 'wcspbrk'.
19767         * modules/wcspbrk: New file.
19768         * lib/wchar.in.h (wcspbrk): New declaration.
19769         * lib/wcspbrk.c: New file.
19770         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19771         * m4/wcspbrk.m4: New file.
19772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19775         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19776         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19777
19778 2011-02-06  Bruno Haible  <bruno@clisp.org>
19779
19780         New module 'wcsspn'.
19781         * modules/wcsspn: New file.
19782         * lib/wchar.in.h (wcsspn): New declaration.
19783         * lib/wcsspn.c: New file.
19784         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19785         * m4/wcsspn.m4: New file.
19786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19789         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19790         * doc/posix-functions/wcsspn.texi: Mention the new module.
19791
19792 2011-02-06  Bruno Haible  <bruno@clisp.org>
19793
19794         New module 'wcscspn'.
19795         * modules/wcscspn: New file.
19796         * lib/wchar.in.h (wcscspn): New declaration.
19797         * lib/wcscspn.c: New file.
19798         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19799         * m4/wcscspn.m4: New file.
19800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19803         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19804         * doc/posix-functions/wcscspn.texi: Mention the new module.
19805
19806 2011-02-06  Bruno Haible  <bruno@clisp.org>
19807
19808         New module 'wcsrchr'.
19809         * modules/wcsrchr: New file.
19810         * lib/wchar.in.h (wcsrchr): New declaration.
19811         * lib/wcsrchr.c: New file.
19812         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19813         * m4/wcsrchr.m4: New file.
19814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19817         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19818         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19819
19820 2011-02-06  Bruno Haible  <bruno@clisp.org>
19821
19822         New module 'wcschr'.
19823         * modules/wcschr: New file.
19824         * lib/wchar.in.h (wcschr): New declaration.
19825         * lib/wcschr.c: New file.
19826         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19827         * m4/wcschr.m4: New file.
19828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19831         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19832         * doc/posix-functions/wcschr.texi: Mention the new module.
19833
19834 2011-02-06  Bruno Haible  <bruno@clisp.org>
19835
19836         New module 'wcsdup'.
19837         * modules/wcsdup: New file.
19838         * lib/wchar.in.h (wcsdup): New declaration.
19839         * lib/wcsdup.c: New file.
19840         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19841         * m4/wcsdup.m4: New file.
19842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19845         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19846         * doc/posix-functions/wcsdup.texi: Mention the new module.
19847
19848 2011-02-06  Bruno Haible  <bruno@clisp.org>
19849
19850         New module 'wcsxfrm'.
19851         * modules/wcsxfrm: New file.
19852         * lib/wchar.in.h (wcsxfrm): New declaration.
19853         * lib/wcsxfrm.c: New file.
19854         * lib/wcsxfrm-impl.h: New file.
19855         * m4/wcsxfrm.m4: New file.
19856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19859         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19860         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19861
19862 2011-02-06  Bruno Haible  <bruno@clisp.org>
19863
19864         New module 'wcscoll'.
19865         * modules/wcscoll: New file.
19866         * lib/wchar.in.h (wcscoll): New declaration.
19867         * lib/wcscoll.c: New file.
19868         * lib/wcscoll-impl.h: New file.
19869         * m4/wcscoll.m4: New file.
19870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19873         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19874         * doc/posix-functions/wcscoll.texi: Mention the new module.
19875
19876 2011-02-06  Bruno Haible  <bruno@clisp.org>
19877
19878         New module 'wcsncasecmp'.
19879         * modules/wcsncasecmp: New file.
19880         * lib/wchar.in.h (wcsncasecmp): New declaration.
19881         * lib/wcsncasecmp.c: New file.
19882         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19883         * m4/wcsncasecmp.m4: New file.
19884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19887         HAVE_WCSNCASECMP.
19888         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19889         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19890
19891 2011-02-06  Bruno Haible  <bruno@clisp.org>
19892
19893         New module 'wcscasecmp'.
19894         * modules/wcscasecmp: New file.
19895         * lib/wchar.in.h (wcscasecmp): New declaration.
19896         * lib/wcscasecmp.c: New file.
19897         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19898         * m4/wcscasecmp.m4: New file.
19899         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19900         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19902         HAVE_WCSCASECMP.
19903         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19904         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19905
19906 2011-02-05  Bruno Haible  <bruno@clisp.org>
19907
19908         New module 'wcsncmp'.
19909         * modules/wcsncmp: New file.
19910         * lib/wchar.in.h (wcsncmp): New declaration.
19911         * lib/wcsncmp.c: New file.
19912         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19913         * m4/wcsncmp.m4: New file.
19914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19917         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19918         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19919
19920 2011-02-05  Bruno Haible  <bruno@clisp.org>
19921
19922         New module 'wcscmp'.
19923         * modules/wcscmp: New file.
19924         * lib/wchar.in.h (wcscmp): New declaration.
19925         * lib/wcscmp.c: New file.
19926         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19927         * m4/wcscmp.m4: New file.
19928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19931         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19932         * doc/posix-functions/wcscmp.texi: Mention the new module.
19933
19934 2011-02-05  Bruno Haible  <bruno@clisp.org>
19935
19936         New module 'wcsncat'.
19937         * modules/wcsncat: New file.
19938         * lib/wchar.in.h (wcsncat): New declaration.
19939         * lib/wcsncat.c: New file.
19940         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19941         * m4/wcsncat.m4: New file.
19942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19945         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19946         * doc/posix-functions/wcsncat.texi: Mention the new module.
19947
19948 2011-02-05  Bruno Haible  <bruno@clisp.org>
19949
19950         New module 'wcscat'.
19951         * modules/wcscat: New file.
19952         * lib/wchar.in.h (wcscat): New declaration.
19953         * lib/wcscat.c: New file.
19954         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19955         * m4/wcscat.m4: New file.
19956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19958         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19959         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19960         * doc/posix-functions/wcscat.texi: Mention the new module.
19961
19962 2011-02-05  Bruno Haible  <bruno@clisp.org>
19963
19964         New module 'wcpncpy'.
19965         * modules/wcpncpy: New file.
19966         * lib/wchar.in.h (wcpncpy): New declaration.
19967         * lib/wcpncpy.c: New file.
19968         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19969         * m4/wcpncpy.m4: New file.
19970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19972         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19973         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19974         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19975
19976 2011-02-05  Bruno Haible  <bruno@clisp.org>
19977
19978         New module 'wcsncpy'.
19979         * modules/wcsncpy: New file.
19980         * lib/wchar.in.h (wcsncpy): New declaration.
19981         * lib/wcsncpy.c: New file.
19982         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19983         * m4/wcsncpy.m4: New file.
19984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19986         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19987         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19988         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19989
19990 2011-02-05  Bruno Haible  <bruno@clisp.org>
19991
19992         New module 'wcpcpy'.
19993         * modules/wcpcpy: New file.
19994         * lib/wchar.in.h (wcpcpy): New declaration.
19995         * lib/wcpcpy.c: New file.
19996         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19997         * m4/wcpcpy.m4: New file.
19998         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19999         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20000         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20001         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20002         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20003
20004 2011-02-05  Bruno Haible  <bruno@clisp.org>
20005
20006         New module 'wcscpy'.
20007         * modules/wcscpy: New file.
20008         * lib/wchar.in.h (wcscpy): New declaration.
20009         * lib/wcscpy.c: New file.
20010         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20011         * m4/wcscpy.m4: New file.
20012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20015         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20016         * doc/posix-functions/wcscpy.texi: Mention the new module.
20017
20018 2011-02-05  Bruno Haible  <bruno@clisp.org>
20019
20020         New module 'wcsnlen'.
20021         * modules/wcsnlen: New file.
20022         * lib/wchar.in.h (wcsnlen): New declaration.
20023         * lib/wcsnlen.c: New file.
20024         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20025         * m4/wcsnlen.m4: New file.
20026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20028         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20029         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20030         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20031
20032 2011-02-05  Bruno Haible  <bruno@clisp.org>
20033
20034         New module 'wcslen'.
20035         * modules/wcslen: New file.
20036         * lib/wchar.in.h (wcslen): New declaration.
20037         * lib/wcslen.c: New file.
20038         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20039         * m4/wcslen.m4: New file.
20040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20043         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20044         * doc/posix-functions/wcslen.texi: Mention the new module.
20045
20046 2011-02-05  Bruno Haible  <bruno@clisp.org>
20047
20048         New module 'wmemset'.
20049         * modules/wmemset: New file.
20050         * lib/wchar.in.h (wmemset): New declaration.
20051         * lib/wmemset.c: New file.
20052         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20053         * m4/wmemset.m4: New file.
20054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20056         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20057         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20058         * doc/posix-functions/wmemset.texi: Mention the new module.
20059
20060 2011-02-05  Bruno Haible  <bruno@clisp.org>
20061
20062         New module 'wmemmove'.
20063         * modules/wmemmove: New file.
20064         * lib/wchar.in.h (wmemmove): New declaration.
20065         * lib/wmemmove.c: New file.
20066         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20067         * m4/wmemmove.m4: New file.
20068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20070         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20071         HAVE_WMEMMOVE.
20072         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20073         * doc/posix-functions/wmemmove.texi: Mention the new module.
20074
20075 2011-02-05  Bruno Haible  <bruno@clisp.org>
20076
20077         New module 'wmemcpy'.
20078         * modules/wmemcpy: New file.
20079         * lib/wchar.in.h (wmemcpy): New declaration.
20080         * lib/wmemcpy.c: New file.
20081         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20082         * m4/wmemcpy.m4: New file.
20083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20085         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20086         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20087         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20088
20089 2011-02-05  Bruno Haible  <bruno@clisp.org>
20090
20091         New module 'wmemcmp'.
20092         * modules/wmemcmp: New file.
20093         * lib/wchar.in.h (wmemcmp): New declaration.
20094         * lib/wmemcmp.c: New file.
20095         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20096         * m4/wmemcmp.m4: New file.
20097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20099         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20100         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20101         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20102
20103 2011-02-07  Jim Meyering  <meyering@redhat.com>
20104
20105         di-set, ino-map: new modules, from coreutils
20106         * lib/di-set.c: New file.
20107         * lib/di-set.h: Likewise.
20108         * lib/ino-map.c: Likewise.
20109         * lib/ino-map.h: Likewise.
20110         * modules/di-set: Likewise.
20111         * modules/di-set-tests: Likewise.
20112         * modules/ino-map: Likewise.
20113         * modules/ino-map-tests: Likewise.
20114         * tests/test-di-set.c: Likewise.
20115         * tests/test-ino-map.c: Likewise.
20116
20117 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20118
20119         getloadavg: merge minor changes from Emacs
20120
20121         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20122         (getloadavg): Use memset, not bzero.
20123
20124         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20125         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20126         clash (bug#86).
20127
20128 2010-11-14  Bruno Haible  <bruno@clisp.org>
20129
20130         Allow multiple gnulib generated replacements to coexist.
20131         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20132         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20133         * lib/langinfo.in.h (nl_item): Likewise.
20134         * lib/math.in.h (_NaN, NAN): Likewise.
20135         * lib/netdb.in.h (struct addrinfo): Likewise.
20136         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20137         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20138         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20139         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20140         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20141         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20142         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20143         pthread_mutexattr_init, pthread_mutexattr_settype,
20144         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20145         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20146         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20147         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20148         * lib/sched.in.h (struct sched_param): Likewise.
20149         * lib/se-selinux.in.h (security_class_t, security_context_t,
20150         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20151         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20152         lsetfilecon, fsetfilecon, security_check_context,
20153         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20154         Likewise.
20155         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20156         Likewise.
20157         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20158         _gl_function_taking_int_returning_void_t, union sigval,
20159         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20160         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20161         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20162         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20163         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20164         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20165         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20166         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20167         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20168         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20169         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20170         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20171         socklen_t, rpl_fd_isset): Likewise.
20172         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20173         * lib/sys_time.in.h (struct timeval): Likewise.
20174         * lib/sys_times.in.h (struct tms): Likewise.
20175         * lib/sys_utsname.in.h (struct utsname):
20176         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20177         * lib/unistd.in.h (getpagesize): Likewise.
20178         * lib/wchar.in.h (mbstate_t): Likewise.
20179         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20180         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20181         towlower, towupper): Likewise.
20182         Reported by Sam Steingold <sds@gnu.org>.
20183
20184 2011-02-05  Eric Blake  <eblake@redhat.com>
20185
20186         unsetenv: work around Haiku issues
20187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20188         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20189
20190 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20191
20192         libposix: avoid calling error() within libposix
20193         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20194         is defined.
20195
20196 2011-02-05  Eric Blake  <eblake@redhat.com>
20197
20198         strerror_r-posix: port to cygwin
20199         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20200         implementation.
20201         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20202         * tests/test-strerror_r.c (main): Fix test.
20203         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20204         issue.
20205
20206 2011-02-05  Bruno Haible  <bruno@clisp.org>
20207
20208         New module 'wmemchr'.
20209         * modules/wmemchr: New file.
20210         * lib/wchar.in.h (wmemchr): New declaration.
20211         * lib/wmemchr.c: New file.
20212         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20213         * m4/wmemchr.m4: New file.
20214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20216         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20217         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20218         * doc/posix-functions/wmemchr.texi: Mention the new module.
20219
20220 2011-02-04  Eric Blake  <eblake@redhat.com>
20221
20222         fdopendir: detect FreeBSD bug
20223         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20224         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20225
20226 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20227
20228         stdbool: do not define HAVE_STDBOOL_H
20229         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20230         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20231         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20232         imported from the latest Autoconf git.  It was motivated by Emacs,
20233         which uses gnulib but does not need HAVE_STDBOOL_H.
20234
20235 2011-02-04  Bruno Haible  <bruno@clisp.org>
20236
20237         wcsnrtombs: Prepare for new module wwcsnrtombs.
20238         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20239         * lib/wcsnrtombs.c: Include it.
20240         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20241
20242         wcsrtombs: Prepare for new module wwcsrtombs.
20243         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20244         * lib/wcsrtombs.c: Include it.
20245         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20246
20247         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20248         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20249         * lib/mbsnrtowcs.c: Include it.
20250         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20251
20252         mbsrtowcs: Prepare for new module mbsrtowwcs.
20253         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20254         * lib/mbsrtowcs.c: Include it.
20255         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20256
20257 2011-02-04  Bruno Haible  <bruno@clisp.org>
20258
20259         vasnprintf: Reduce use of malloc for small format strings.
20260         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20261         (arguments): Add room for the first 7 arguments.
20262         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20263         (char_directives, u8_directives, u16_directives, u32_directives): Add
20264         room for the first 7 directives.
20265         * lib/printf-parse.c: Include <string.h>.
20266         (PRINTF_PARSE): Change memory handling code so that it uses the first
20267         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20268         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20269         Reported by Pádraig Brady <P@draigbrady.com>.
20270
20271 2011-01-31  Eric Blake  <eblake@redhat.com>
20272
20273         dup2: work around Haiku bug
20274         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20275         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20276         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20277         * tests/test-dup2.c (main): Enhance test.
20278
20279 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20280
20281         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20282         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20283         declared by eglibc 2.11.2.
20284         * lib/stdio.in.h: Likewise.
20285
20286 2011-01-31  Eric Blake  <eblake@redhat.com>
20287
20288         ignore-value: add missing test dependency
20289         * tests/test-ignore-value.c: Revert previous change; stdio.h
20290         provides off_t.
20291         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20292
20293 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20294
20295         mktime: clarify long_int width checking
20296         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20297         the top level, to make it clearer that the assumption about
20298         long_int width is being checked.  See
20299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20300
20301 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20302
20303         ignore-value: Fix self-test.
20304         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20305
20306 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20307
20308         TYPE_MAXIMUM: avoid theoretically undefined behavior
20309         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20310         negative number, which the C Standard says has undefined behavior.
20311         In practice this is not a problem, but might as well do it by the book.
20312         Reported by Rich Felker and Eric Blake; see
20313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20314         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20315         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20317         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20318         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20319         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20320
20321         mktime: #undef mktime before #defining it
20322         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20323
20324         mktime: systematically normalize tm_isdst comparisons
20325         * lib/mktime.c (isdst_differ): New function.
20326         (__mktime_internal): Use it systematically for all isdst comparisons.
20327         This completes the fix for libc BZ #6723, and removes the need for
20328         normalizing tm_isdst.  See
20329         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20330         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20331
20332         mktime: fix some integer overflow issues and sidestep the rest
20333
20334         This was prompted by a bug report by Benjamin Lindner for MinGW
20335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20336         His bug is due to signed integer overflow (0 - INT_MIN), and I
20337         I scanned through mktime.c looking for other integer overflow
20338         problems, fixing all the bugs I found.
20339
20340         Although the C Standard says the resulting code is still not safe
20341         in the presence of integer overflow, in practice it should be good
20342         enough for all real-world two's-complement implementations, except
20343         for debugging environments that deliberately trap on integer
20344         overflow (e.g., gcc -ftrapv).
20345
20346         * lib/mktime.c (WRAPV): New macro.
20347         (SHR): Also check that long_int and time_t shift right in the
20348         usual way, before using the fast-but-unportable method.
20349         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20350         used.  The code already assumed two's complement, so there's
20351         no need to test for alternatives.  All uses removed.
20352         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20353         the C standard.  Problem reported by Rich Felker in
20354         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20355         (twos_complement_arithmetic): Also check long_int and time_t.
20356         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20357         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20358         (__mktime_internal): Avoid integer overflow with unary subtraction
20359         in two instances where -1 - X is an adequate replacement for -X,
20360         since the calculations are approximate.
20361
20362 2011-01-29  Eric Blake  <eblake@redhat.com>
20363
20364         mktime: avoid infinite loop
20365         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20366         type; behavior is still undefined but portable to all known targets.
20367         Reported by Rich Felker.
20368
20369 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20370
20371         rename, unlink, same-inode: Relicense.
20372         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20373         * modules/unlink (License): Likewise.
20374         * modules/same-inode (License): Likewise.
20375
20376 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20377
20378         mktime: avoid problems on NetBSD 5 / i386
20379         * lib/mktime.c (long_int): New type.  This works around a problem
20380         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20381         but time_t is 64 bits, and where I expect the existing code is
20382         wrong in some cases.
20383         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20384         (ydhms_diff): Bring back the compile-time check for wide-enough
20385         year and yday.
20386
20387         mktime: fix misspelling in comment
20388         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20389         This merges all recent glibc changes of importance.
20390
20391 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20392
20393         move-if-change: cope with concurrent mv of identical file.
20394         * build-aux/move-if-change (CMPPROG): Accept environment
20395         variable as an override for `cmp'.
20396         (usage): Document CMPPROG.
20397         Adjust comparison to drop stdout.  Cope with failure of mv if
20398         the target file exists and is identical to the source, for
20399         parallel builds.
20400         Report from H.J. Lu against binutils in PR binutils/12283.
20401
20402 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20403
20404         * users.txt: Mention sharutils.
20405
20406 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20407
20408         * users.txt: Mention OATH Toolkit.
20409
20410 2011-01-27  Bruno Haible  <bruno@clisp.org>
20411
20412         Prepare for supporting FreeBSD 10.
20413         * build-aux/config.libpath: Remove handling of freebsd1*.
20414
20415 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20416
20417         Prepare for supporting FreeBSD 10.
20418         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20419         match FreeBSD 10.0.
20420
20421 2011-01-27  Bruno Haible  <bruno@clisp.org>
20422
20423         vma-iter, get-rusage-as: Add OpenBSD support.
20424         * modules/vma-iter (configure.ac): Test for mquery.
20425         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20426         * lib/vma-iter.c: Include <sys/mman.h>.
20427         (vma_iterate): Add an implementation based on mquery().
20428         * lib/resource-ext.h (get_rusage_as): Update comments.
20429         * lib/get-rusage-as.c: Likewise.
20430         * lib/get-rusage-data.c: Likewise.
20431
20432 2011-01-26  Karl Berry  <karl@gnu.org>
20433
20434         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20435         variables to make it easier to override the makeinfo program used.
20436
20437 2011-01-26  Eric Blake  <eblake@redhat.com>
20438
20439         fcntl: work around Haiku F_DUPFD bugs
20440         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20441         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20442         cloexec bit on duplication.
20443         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20444
20445 2011-01-26  Bruno Haible  <bruno@clisp.org>
20446
20447         Enable memory leak tests on AIX.
20448         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20449         * tests/test-fprintf-posix3.c (main): Likewise.
20450
20451 2011-01-26  Bruno Haible  <bruno@clisp.org>
20452
20453         Tests for module 'get-rusage-data'.
20454         * modules/get-rusage-data-tests: New file.
20455         * tests/test-get-rusage-data.c: New file.
20456
20457         New module 'get-rusage-data'.
20458         * lib/resource-ext.h (get_rusage_data): New declaration.
20459         * lib/get-rusage-data.c: New file.
20460         * modules/get-rusage-data: New file.
20461
20462 2011-01-25  Bruno Haible  <bruno@clisp.org>
20463
20464         get-rusage-as: Allow for easier testing.
20465         * lib/resource-ext.h (get_rusage_as): Add comment.
20466         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20467         (main): New function for interactive testing.
20468
20469 2011-01-25  Bruno Haible  <bruno@clisp.org>
20470
20471         vma-iter: Treat Haiku like BeOS.
20472         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20473         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20474
20475 2011-01-25  Eric Blake  <eblake@redhat.com>
20476
20477         c-stack: fix regression on cygwin when libsigsegv is present
20478         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20479
20480 2011-01-24  Bruno Haible  <bruno@clisp.org>
20481
20482         vma-iter: Avoid empty intervals.
20483         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20484         on an empty interval.
20485
20486 2011-01-24  Jim Meyering  <meyering@redhat.com>
20487
20488         u64: remove unnecessary #include
20489         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20490
20491 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20492
20493         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20494         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20495
20496 2011-01-23  Bruno Haible  <bruno@clisp.org>
20497
20498         New module 'vma-iter'.
20499         * lib/vma-iter.h: New file.
20500         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20501         * modules/vma-iter: New file.
20502         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20503         for get_rusage_as_via_iterator.
20504         (vma_iterate_callback): New function.
20505         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20506         * modules/get-rusage-as (Depends-on): Add vma-iter.
20507
20508 2011-01-23  Bruno Haible  <bruno@clisp.org>
20509
20510         uninorm: Tweak includes.
20511         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20512         Reported by Jim Meyering.
20513
20514 2011-01-23  Bruno Haible  <bruno@clisp.org>
20515
20516         get-rusage-as: Improve on NetBSD.
20517         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20518         /proc, like on FreeBSD.
20519
20520 2011-01-23  Jim Meyering  <meyering@redhat.com>
20521
20522         xreadlink.h: remove unnecessary #include
20523         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20524
20525         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20526         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20527
20528 2011-01-23  Bruno Haible  <bruno@clisp.org>
20529
20530         get-rusage-as: Fix bug.
20531         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20532         original limit when aborting the first loop.
20533
20534 2011-01-23  Bruno Haible  <bruno@clisp.org>
20535
20536         wctype: Ensure valid C syntax.
20537         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20538         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20539
20540 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20544         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20545         as they are needed only for configure's test case.
20546         This removes two unnecessary symbols from config.h.
20547
20548         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20549         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20551         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20552         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20553         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20554         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20555         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20556         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20557         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20558         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20559         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20560         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20561         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20562         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20563         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20564         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20565         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20566
20567 2011-01-21  Eric Blake  <eblake@redhat.com>
20568
20569         maintainer-makefile: work with older git for submodule check
20570         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20571         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20572         Reported by Matthias Bolte.
20573
20574         bootstrap: minor portability fixes
20575         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20576         (usage): Omit leading capital and trailing . on help phrases, per
20577         GNU Coding Standards.
20578         (check_versions, top level): Prefix messages with script name.
20579
20580 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20581
20582         bootstrap: support --no-git option
20583         * build-aux/bootstrap: Add --no-git option, to be used when
20584         --gnulib-srcdir points to the exact desired checkout.
20585
20586 2011-01-21  Eric Blake  <eblake@redhat.com>
20587
20588         strerror_r-posix: work with glibc 2.13
20589         * lib/strerror_r.c (strerror_r): Fix return type.
20590
20591 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20592             Bruno Haible  <bruno@clisp.org>
20593
20594         uN_strstr: New unit tests.
20595         * modules/unistr/u8-strstr-tests: New file.
20596         * modules/unistr/u16-strstr-tests: New file.
20597         * modules/unistr/u32-strstr-tests: New file.
20598         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20599         * tests/unistr/test-u8-strstr.c: New file.
20600         * tests/unistr/test-u16-strstr.c: New file.
20601         * tests/unistr/test-u32-strstr.c: New file.
20602
20603 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20604             Bruno Haible  <bruno@clisp.org>
20605
20606         Make uN_strstr functions O(n) worst-case.
20607         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20608         16-bit and 32-bit unit cases, use the unibyte algorithm from
20609         lib/mbsstr.c.
20610         * lib/unistr/u8-strstr.c: Include <string.h>.
20611         (UNIT_IS_UINT8_T): New macro.
20612         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20613         (U_STRLEN, U_STRNLEN): New macros.
20614         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20615         (U_STRLEN, U_STRNLEN): New macros.
20616         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20617         (configure.ac): Update required libunistring version.
20618         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20619         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20620         malloca.
20621         (configure.ac): Update required libunistring version.
20622         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20623         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20624         malloca.
20625         (configure.ac): Update required libunistring version.
20626
20627 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20628             Bruno Haible  <bruno@clisp.org>
20629
20630         Prepare for faster uN_strstr functions.
20631         * lib/str-kmp.h: Support definable UNITs.
20632         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20633         needle_len argument.
20634         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20635         * lib/mbscasestr.c (mbscasestr): Likewise.
20636
20637 2011-01-21  Pádraig Brady <P@draigBrady.com>
20638
20639         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20640         * tests/test-malloca.c (main): Unset the environment variable
20641         to greatly speed up the test.
20642         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20643         * modules/malloca-tests: Depend on unsetenv.
20644
20645 2011-01-21  Pádraig Brady <P@draigBrady.com>
20646
20647         ignore-value: remove stdint dependency
20648         * lib/ignore-value.h: Remove <stdint.h>
20649         * modules/ignore-value: Remove stdint dependency.
20650
20651 2011-01-21  Jim Meyering  <meyering@redhat.com>
20652
20653         maint.mk: adjust variable name to be consistent with other gl_ vars
20654         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20655         to be lower case.
20656
20657 2011-01-20  Jim Meyering  <meyering@redhat.com>
20658
20659         maint.mk: make "check" depend on public-submodule-commit by default
20660         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20661
20662 2011-01-20  Bruno Haible  <bruno@clisp.org>
20663
20664         mbfile, mbiter: Complete change from 2008-12-21.
20665         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20666         * m4/mbiter.m4 (gl_MBITER): Likewise.
20667
20668 2011-01-20  Jim Meyering  <meyering@redhat.com>
20669
20670         init.sh: insert space between each function name and "()"
20671         * tests/init.sh: Make it a little easier to see that a function's
20672         name is "warn_", and not "warn" when looking at the first part of
20673         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20674
20675 2011-01-20  Jim Meyering  <meyering@redhat.com>
20676
20677         mountlist: clean up code formatting
20678         * lib/mountlist.c (read_file_system_list): Split a long line,
20679         correct bracing style, use NULL in place of "(struct statfs *)0",
20680         don't parenthesize return value, add spaces around "=" and after
20681         ";-in-for-stmt".
20682
20683 2011-01-14  Markus Duft <mduft@gentoo.org>
20684
20685         mountlist: add support for Interix
20686         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20687         Apply statvfs to all entries of /dev/fs.
20688         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20689         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20690
20691 2011-01-20  Jim Meyering  <meyering@redhat.com>
20692
20693         maint.mk: improve the public-submodule-commit rule
20694         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20695         to suppress printing of its commands... unless V=1.
20696         Add git submodule's --quiet option to suppress printing of e.g.,
20697         "Entering gnulib" output.
20698         "cd" into $(srcdir) before running git submodule.
20699
20700 2011-01-20  Bruno Haible  <bruno@clisp.org>
20701
20702         include_next: Fix bug introduced on 2011-01-18.
20703         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20704         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20705         ac_cv_header_... variable if the second argument is not 'check'.
20706         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20707         gl_NEXT_HEADERS_INTERNAL.
20708
20709 2011-01-20  Bruno Haible  <bruno@clisp.org>
20710
20711         Allow the user to avoid the GNULIB_TEST_* macros.
20712         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20713         Suggested by Paul Eggert.
20714
20715 2011-01-14  Jim Meyering  <meyering@redhat.com>
20716
20717         bootstrap: avoid failure when there is no .gitmodules file
20718         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20719         has been assigned to, even when its value is the empty string.
20720         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20721         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20722         Reported by John W. Eaton <jwe@gnu.org>.
20723
20724 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20725
20726         assume <ctype.h>, ..., <time.h> exist
20727         For years gnulib has been assuming the existence of the headers
20728         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20729         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20730         them, since they don't appear to be needed.
20731         * README (Portability guidelines): Document this.
20732         * lib/flock.c: Assume <fcntl.h> exists.
20733         * lib/regex_internal.h: Assume <locale.h> exists.
20734         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20735         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20736         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20737         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20738         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20739         * m4/regex.m4 (gl_REGEX): Likewise.
20740         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20741         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20742         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20743         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20744         * tests/test-argp.c: Likewise.
20745         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20746
20747         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20748         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20749         AA_APPLE_UNIVERSAL_BUILD.  See
20750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20751         * NEWS: Document this.
20752
20753 2011-01-19  Eric Blake  <eblake@redhat.com>
20754
20755         c-stack: assume stack overflow if SA_SIGINFO unsupported
20756         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20757         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20758         sigaction will work.
20759         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20760         behavior match Linux.
20761         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20762
20763         stdbool-tests: accomodate Haiku
20764         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20765
20766         binary-io: fix O_TEXT on Haiku
20767         * modules/binary-io (Depends-on): Add fcntl-h.
20768         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20769         than blindly undefining O_TEXT.
20770         Reported by Scott McCreary.
20771
20772 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20773
20774         include_next: do not check for standard headers like stddef.h
20775
20776         I found this problem when modifying Emacs to use gnulib.
20777         I noticed that it added HAVE_STDDEF_H to config.h, even though
20778         gnulib always assumes <stddef.h> exists as per README and this
20779         symbol is unnecessary.
20780         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20781         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20782         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20783         faster for headers like stddef.h that are known to exist.
20784         (gl_CHECK_NEXT_HEADERS): Use it.
20785         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20786         rather than gl_CHECK_NEXT_HEADERS.
20787         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20788         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20789
20790 2011-01-18  Eric Blake  <eblake@redhat.com>
20791
20792         ansi-c++-opt: skip C++ dependency style if C++ is unused
20793         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20794         tests when we know C++ compilation is not desired.
20795         Reported by Scott McCreary.
20796
20797 2011-01-18  Bruno Haible  <bruno@clisp.org>
20798
20799         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20800         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20801         (main): Perform test also when getrlimit and setrlimit don't exist or
20802         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20803         limiting the address space size using setrlimit, compare the address
20804         space size before and after the the test.
20805         * tests/test-dprintf-posix2.c: Likewise.
20806         * tests/test-fprintf-posix3.sh: Update skip messages.
20807         * tests/test-dprintf-posix2.sh: Likewise.
20808         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20809         * modules/dprintf-posix-tests (Depends-on): Likewise.
20810         Reported by Bruce Korb <bkorb@gnu.org> and
20811         Gary V. Vaughan <gary@gnu.org>.
20812
20813 2011-01-18  Bruno Haible  <bruno@clisp.org>
20814
20815         get-rusage-as: Improvement for Cygwin.
20816         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20817         areas that are merely reserved.
20818
20819 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20820
20821         strftime: remove dependencies on multibyte modules
20822
20823         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20824         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20825         only if __osf__ is defined, and I suspect OSF doesn't need these
20826         other modules.  If my guess is wrong, we'll need to come up with a
20827         variant of strftime that doesn't need the multibyte modules.
20828
20829         I discovered this problem when attempting modify Emacs to use the
20830         strftime module.  With the previous gnulib, this caused Emacs to
20831         need 31 new files, ranging from lib/config.charset to
20832         m4/wint_t.m4.  This was overkill and I expect would be offputting
20833         to the Emacs maintainers.  After this change, only 6 new files are
20834         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20835         stdbool.m4, and tm_gmtoff.m4.
20836
20837         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20838         Suggested by Bruno Haible in
20839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20840         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20841         and do not check for wchar.h.
20842         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20843         (Depends-on): Remove mbrlen, mbsinit, wchar.
20844
20845 2011-01-18  Bruno Haible  <bruno@clisp.org>
20846
20847         Tests for module 'get-rusage-as'.
20848         * modules/get-rusage-as-tests: New file.
20849         * tests/test-get-rusage-as.c: New file.
20850
20851         New module 'get-rusage-as'.
20852         * modules/get-rusage-as: New file.
20853         * lib/resource-ext.h: New file.
20854         * lib/get-rusage-as.c: New file.
20855
20856 2011-01-17  Eric Blake  <eblake@redhat.com>
20857
20858         sigaction: relax license from LGPLv3+ to LGPLv2+
20859         * modules/sigaction (License): Relax to LGPLv2+.
20860
20861 2011-01-14  Bruno Haible  <bruno@clisp.org>
20862
20863         filemode: Make function declarations usable in C++ mode.
20864         * lib/filemode.h: Enclose function declarations in extern "C" block.
20865         Reported by John W. Eaton <jwe@gnu.org>.
20866
20867 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20868
20869         save-cwd: no longer include "xgetcwd.h"
20870         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20871         This avoids a compilation failure in projects that use save-cwd
20872         without also using the xgetcwd module.
20873
20874 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20875
20876         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20877         This is so that a program like Emacs, which needs only dtoastr,
20878         does not have to bother with distributing and compiling ftoastr
20879         and ldtoastr.
20880         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20881         * modules/dtoastr, modules/ldtoastr: New files.
20882         * modules/ftoastr: Now works just for 'float'.
20883         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20884         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20885         dtoastr.c, ldtoastr.c.
20886
20887 2011-01-11  Jim Meyering  <meyering@redhat.com>
20888
20889         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20890         There is no need to work around the lack of the fchdir function,
20891         since gnulib can now provide a replacement when required.
20892         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20893         * modules/save-cwd (Depends-on): Add fchdir.
20894
20895 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20896
20897         openat, save-cwd: avoid xmalloc
20898
20899         This removes a direct (but undocumented) dependency of openat on
20900         xalloc, along with an indirect dependency via save-cwd.  It also
20901         removes a dependency of save-cwd on xgetcwd, and thereby
20902         indirectly on xalloc.  This change causes the openat substitute
20903         to fall back on save_cwd when memory is tight, and for save_cwd to
20904         fail instead of dying when memory is tight, but that's good enough.
20905         Problem and initial idea for fix reported by Bastien Roucaries in
20906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20907
20908         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20909         xalloc.h (for xmalloc).
20910         (openat_proc_name): Use malloc, not xmalloc.
20911         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20912         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20913
20914         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20915         This avoids heap allocation for file names whose lengths are in
20916         the range 512..1023, with the upper bound increasing to at most
20917         4031 depending on the platform's PATH_MAX.  (We do not want
20918         pathmax.h here as it might supply a non-constant PATH_MAX.)
20919         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20920         Perhaps they should be moved to malloca.h?
20921         (OPENAT_BUFFER_SIZE): Use them.
20922
20923 2011-01-10  Bruno Haible  <bruno@clisp.org>
20924
20925         doc: Update users.txt.
20926         * users.txt: Add recutils.
20927
20928 2011-01-09  Karl Berry  <karl@gnu.org>
20929
20930         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20931
20932         * doc/configmake.texi: New file.
20933         * doc/gnulib.texi: Include it.
20934         * modules/configmake: Move documentation from here.
20935
20936 2011-01-09  Bruno Haible  <bruno@clisp.org>
20937
20938         Update to Unicode 6.0.0.
20939         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20940         (get_lbp): Update for Unicode 6.0.0.
20941         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20942         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20943         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20944         U+11001, U+11038..U+11046. Remove U+06DE.
20945         (uc_width): Fix bounds of planes.
20946         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20947         lib/uniwidth/width.c.
20948         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20949         trailing whitespace removed.
20950         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20951         without comments, but with the original copyright notice.
20952         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20953         * lib/unicase/ignorable.h: Likewise.
20954         * lib/unicase/tocasefold.h: Likewise.
20955         * lib/unicase/tolower.h: Likewise.
20956         * lib/unicase/totitle.h: Likewise.
20957         * lib/unicase/toupper.h: Likewise.
20958         * lib/unictype/bidi_of.h: Likewise.
20959         * lib/unictype/blocks.h: Likewise.
20960         * lib/unictype/categ_C.h: Likewise.
20961         * lib/unictype/categ_Cn.h: Likewise.
20962         * lib/unictype/categ_L.h: Likewise.
20963         * lib/unictype/categ_Ll.h: Likewise.
20964         * lib/unictype/categ_Lm.h: Likewise.
20965         * lib/unictype/categ_Lo.h: Likewise.
20966         * lib/unictype/categ_Lu.h: Likewise.
20967         * lib/unictype/categ_M.h: Likewise.
20968         * lib/unictype/categ_Mc.h: Likewise.
20969         * lib/unictype/categ_Me.h: Likewise.
20970         * lib/unictype/categ_Mn.h: Likewise.
20971         * lib/unictype/categ_N.h: Likewise.
20972         * lib/unictype/categ_Nd.h: Likewise.
20973         * lib/unictype/categ_No.h: Likewise.
20974         * lib/unictype/categ_P.h: Likewise.
20975         * lib/unictype/categ_Po.h: Likewise.
20976         * lib/unictype/categ_S.h: Likewise.
20977         * lib/unictype/categ_Sc.h: Likewise.
20978         * lib/unictype/categ_Sk.h: Likewise.
20979         * lib/unictype/categ_Sm.h: Likewise.
20980         * lib/unictype/categ_So.h: Likewise.
20981         * lib/unictype/categ_of.h: Likewise.
20982         * lib/unictype/combining.h: Likewise.
20983         * lib/unictype/ctype_alnum.h: Likewise.
20984         * lib/unictype/ctype_alpha.h: Likewise.
20985         * lib/unictype/ctype_graph.h: Likewise.
20986         * lib/unictype/ctype_lower.h: Likewise.
20987         * lib/unictype/ctype_print.h: Likewise.
20988         * lib/unictype/ctype_punct.h: Likewise.
20989         * lib/unictype/ctype_upper.h: Likewise.
20990         * lib/unictype/decdigit.h: Likewise.
20991         * lib/unictype/digit.h: Likewise.
20992         * lib/unictype/numeric.h: Likewise.
20993         * lib/unictype/pr_alphabetic.h: Likewise.
20994         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20995         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20996         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20997         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20998         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20999         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21000         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21001         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21002         * lib/unictype/pr_case_ignorable.h: Likewise.
21003         * lib/unictype/pr_cased.h: Likewise.
21004         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21005         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21006         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21007         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21008         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21009         * lib/unictype/pr_combining.h: Likewise.
21010         * lib/unictype/pr_composite.h: Likewise.
21011         * lib/unictype/pr_currency_symbol.h: Likewise.
21012         * lib/unictype/pr_decimal_digit.h: Likewise.
21013         * lib/unictype/pr_deprecated.h: Likewise.
21014         * lib/unictype/pr_format_control.h: Likewise.
21015         * lib/unictype/pr_grapheme_base.h: Likewise.
21016         * lib/unictype/pr_grapheme_extend.h: Likewise.
21017         * lib/unictype/pr_grapheme_link.h: Likewise.
21018         * lib/unictype/pr_id_continue.h: Likewise.
21019         * lib/unictype/pr_id_start.h: Likewise.
21020         * lib/unictype/pr_ideographic.h: Likewise.
21021         * lib/unictype/pr_lowercase.h: Likewise.
21022         * lib/unictype/pr_math.h: Likewise.
21023         * lib/unictype/pr_numeric.h: Likewise.
21024         * lib/unictype/pr_other_alphabetic.h: Likewise.
21025         * lib/unictype/pr_other_id_continue.h: Likewise.
21026         * lib/unictype/pr_other_math.h: Likewise.
21027         * lib/unictype/pr_punctuation.h: Likewise.
21028         * lib/unictype/pr_sentence_terminal.h: Likewise.
21029         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21030         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21031         * lib/unictype/pr_unified_ideograph.h: Likewise.
21032         * lib/unictype/pr_uppercase.h: Likewise.
21033         * lib/unictype/pr_xid_continue.h: Likewise.
21034         * lib/unictype/pr_xid_start.h: Likewise.
21035         * lib/unictype/scripts.h: Likewise.
21036         * lib/unictype/scripts_byname.gperf: Likewise.
21037         * lib/unictype/sy_java_ident.h: Likewise.
21038         * lib/unigbrk/gbrkprop.h: Likewise.
21039         * lib/unilbrk/lbrkprop1.h: Likewise.
21040         * lib/unilbrk/lbrkprop2.h: Likewise.
21041         * lib/uninorm/decomposition-table2.h: Likewise.
21042         * lib/uniwbrk/wbrkprop.h: Likewise.
21043         * tests/unicase/test-cased.c: Likewise.
21044         * tests/unicase/test-ignorable.c: Likewise.
21045         * tests/unicase/test-uc_tolower.c: Likewise.
21046         * tests/unicase/test-uc_totitle.c: Likewise.
21047         * tests/unicase/test-uc_toupper.c: Likewise.
21048         * tests/unictype/test-categ_C.c: Likewise.
21049         * tests/unictype/test-categ_Cn.c: Likewise.
21050         * tests/unictype/test-categ_L.c: Likewise.
21051         * tests/unictype/test-categ_Ll.c: Likewise.
21052         * tests/unictype/test-categ_Lm.c: Likewise.
21053         * tests/unictype/test-categ_Lo.c: Likewise.
21054         * tests/unictype/test-categ_Lu.c: Likewise.
21055         * tests/unictype/test-categ_M.c: Likewise.
21056         * tests/unictype/test-categ_Mc.c: Likewise.
21057         * tests/unictype/test-categ_Me.c: Likewise.
21058         * tests/unictype/test-categ_Mn.c: Likewise.
21059         * tests/unictype/test-categ_N.c: Likewise.
21060         * tests/unictype/test-categ_Nd.c: Likewise.
21061         * tests/unictype/test-categ_No.c: Likewise.
21062         * tests/unictype/test-categ_P.c: Likewise.
21063         * tests/unictype/test-categ_Po.c: Likewise.
21064         * tests/unictype/test-categ_S.c: Likewise.
21065         * tests/unictype/test-categ_Sc.c: Likewise.
21066         * tests/unictype/test-categ_Sk.c: Likewise.
21067         * tests/unictype/test-categ_Sm.c: Likewise.
21068         * tests/unictype/test-categ_So.c: Likewise.
21069         * tests/unictype/test-ctype_alnum.c: Likewise.
21070         * tests/unictype/test-ctype_alpha.c: Likewise.
21071         * tests/unictype/test-ctype_graph.c: Likewise.
21072         * tests/unictype/test-ctype_lower.c: Likewise.
21073         * tests/unictype/test-ctype_print.c: Likewise.
21074         * tests/unictype/test-ctype_punct.c: Likewise.
21075         * tests/unictype/test-ctype_upper.c: Likewise.
21076         * tests/unictype/test-decdigit.h: Likewise.
21077         * tests/unictype/test-digit.h: Likewise.
21078         * tests/unictype/test-numeric.h: Likewise.
21079         * tests/unictype/test-pr_alphabetic.c: Likewise.
21080         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21081         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21082         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21083         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21084         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21085         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21086         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21087         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21088         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21089         * tests/unictype/test-pr_cased.c: Likewise.
21090         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21091         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21092         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21093         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21094         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21095         * tests/unictype/test-pr_combining.c: Likewise.
21096         * tests/unictype/test-pr_composite.c: Likewise.
21097         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21098         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21099         * tests/unictype/test-pr_deprecated.c: Likewise.
21100         * tests/unictype/test-pr_format_control.c: Likewise.
21101         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21102         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21103         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21104         * tests/unictype/test-pr_id_continue.c: Likewise.
21105         * tests/unictype/test-pr_id_start.c: Likewise.
21106         * tests/unictype/test-pr_ideographic.c: Likewise.
21107         * tests/unictype/test-pr_lowercase.c: Likewise.
21108         * tests/unictype/test-pr_math.c: Likewise.
21109         * tests/unictype/test-pr_numeric.c: Likewise.
21110         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21111         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21112         * tests/unictype/test-pr_other_math.c: Likewise.
21113         * tests/unictype/test-pr_punctuation.c: Likewise.
21114         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21115         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21116         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21117         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21118         * tests/unictype/test-pr_uppercase.c: Likewise.
21119         * tests/unictype/test-pr_xid_continue.c: Likewise.
21120         * tests/unictype/test-pr_xid_start.c: Likewise.
21121         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21122         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21123         changes.
21124         * lib/unictype/categ_Cc.h: Likewise.
21125         * lib/unictype/categ_Cf.h: Likewise.
21126         * lib/unictype/categ_Co.h: Likewise.
21127         * lib/unictype/categ_Cs.h: Likewise.
21128         * lib/unictype/categ_Lt.h: Likewise.
21129         * lib/unictype/categ_Nl.h: Likewise.
21130         * lib/unictype/categ_Pc.h: Likewise.
21131         * lib/unictype/categ_Pd.h: Likewise.
21132         * lib/unictype/categ_Pe.h: Likewise.
21133         * lib/unictype/categ_Pf.h: Likewise.
21134         * lib/unictype/categ_Pi.h: Likewise.
21135         * lib/unictype/categ_Ps.h: Likewise.
21136         * lib/unictype/categ_Z.h: Likewise.
21137         * lib/unictype/categ_Zl.h: Likewise.
21138         * lib/unictype/categ_Zp.h: Likewise.
21139         * lib/unictype/categ_Zs.h: Likewise.
21140         * lib/unictype/ctype_blank.h: Likewise.
21141         * lib/unictype/ctype_cntrl.h: Likewise.
21142         * lib/unictype/ctype_digit.h: Likewise.
21143         * lib/unictype/ctype_space.h: Likewise.
21144         * lib/unictype/ctype_xdigit.h: Likewise.
21145         * lib/unictype/mirror.h: Likewise.
21146         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21147         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21148         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21149         * lib/unictype/pr_bidi_control.h: Likewise.
21150         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21151         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21152         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21153         * lib/unictype/pr_bidi_pdf.h: Likewise.
21154         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21155         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21156         * lib/unictype/pr_dash.h: Likewise.
21157         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21158         * lib/unictype/pr_diacritic.h: Likewise.
21159         * lib/unictype/pr_extender.h: Likewise.
21160         * lib/unictype/pr_hex_digit.h: Likewise.
21161         * lib/unictype/pr_hyphen.h: Likewise.
21162         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21163         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21164         * lib/unictype/pr_ignorable_control.h: Likewise.
21165         * lib/unictype/pr_iso_control.h: Likewise.
21166         * lib/unictype/pr_join_control.h: Likewise.
21167         * lib/unictype/pr_left_of_pair.h: Likewise.
21168         * lib/unictype/pr_line_separator.h: Likewise.
21169         * lib/unictype/pr_logical_order_exception.h: Likewise.
21170         * lib/unictype/pr_non_break.h: Likewise.
21171         * lib/unictype/pr_not_a_character.h: Likewise.
21172         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21173         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21174         * lib/unictype/pr_other_id_start.h: Likewise.
21175         * lib/unictype/pr_other_lowercase.h: Likewise.
21176         * lib/unictype/pr_other_uppercase.h: Likewise.
21177         * lib/unictype/pr_paired_punctuation.h: Likewise.
21178         * lib/unictype/pr_paragraph_separator.h: Likewise.
21179         * lib/unictype/pr_pattern_syntax.h: Likewise.
21180         * lib/unictype/pr_pattern_white_space.h: Likewise.
21181         * lib/unictype/pr_private_use.h: Likewise.
21182         * lib/unictype/pr_quotation_mark.h: Likewise.
21183         * lib/unictype/pr_radical.h: Likewise.
21184         * lib/unictype/pr_soft_dotted.h: Likewise.
21185         * lib/unictype/pr_space.h: Likewise.
21186         * lib/unictype/pr_titlecase.h: Likewise.
21187         * lib/unictype/pr_variation_selector.h: Likewise.
21188         * lib/unictype/pr_white_space.h: Likewise.
21189         * lib/unictype/pr_zero_width.h: Likewise.
21190         * lib/unictype/sy_c_ident.h: Likewise.
21191         * lib/unictype/sy_c_whitespace.h: Likewise.
21192         * lib/unictype/sy_java_whitespace.h: Likewise.
21193         * lib/uninorm/composition-table.gperf: Likewise.
21194         * lib/uninorm/decomposition-table1.h: Likewise.
21195         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21196         LB8.
21197         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21198         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21199         * modules/unictype/*: Bump version number of expected libunistring
21200         version.
21201
21202 2011-01-09  Bruno Haible  <bruno@clisp.org>
21203
21204         Update to Unicode 5.2.0.
21205         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21206         trailing whitespace removed.
21207
21208 2011-01-09  Bruno Haible  <bruno@clisp.org>
21209
21210         New Unicode character properties, from Unicode 5.2.0.
21211         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21212         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21213         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21214         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21215         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21216         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21217         uc_is_property_cased, uc_is_property_case_ignorable,
21218         uc_is_property_changes_when_lowercased,
21219         uc_is_property_changes_when_uppercased,
21220         uc_is_property_changes_when_titlecased,
21221         uc_is_property_changes_when_casefolded,
21222         uc_is_property_changes_when_casemapped): New declarations.
21223         * lib/unictype/pr_byname.gperf: Add the new properties.
21224         * modules/unictype/property-byname (Depends-on): Depend on the new
21225         properties modules.
21226         * modules/unictype/property-all (Depends-on): Likewise.
21227         * MODULES.html.sh (Unicode string functions): Add
21228         unictype/property-case-ignorable, unictype/property-cased,
21229         unictype/property-changes-when-casefolded,
21230         unictype/property-changes-when-casemapped,
21231         unictype/property-changes-when-lowercased,
21232         unictype/property-changes-when-titlecased,
21233         unictype/property-changes-when-uppercased.
21234
21235         New module 'unictype/property-changes-when-casemapped'.
21236         * modules/unictype/property-changes-when-casemapped: New file.
21237         * lib/unictype/pr_changes_when_casemapped.c: New file.
21238         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21239         generated by gen-uni-tables.
21240         * modules/unictype/property-changes-when-casemapped-tests: New file.
21241         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21242         automatically generated by gen-uni-tables.
21243
21244         New module 'unictype/property-changes-when-casefolded'.
21245         * modules/unictype/property-changes-when-casefolded: New file.
21246         * lib/unictype/pr_changes_when_casefolded.c: New file.
21247         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21248         generated by gen-uni-tables.
21249         * modules/unictype/property-changes-when-casefolded-tests: New file.
21250         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21251         automatically generated by gen-uni-tables.
21252
21253         New module 'unictype/property-changes-when-titlecased'.
21254         * modules/unictype/property-changes-when-titlecased: New file.
21255         * lib/unictype/pr_changes_when_titlecased.c: New file.
21256         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21257         generated by gen-uni-tables.
21258         * modules/unictype/property-changes-when-titlecased-tests: New file.
21259         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21260         automatically generated by gen-uni-tables.
21261
21262         New module 'unictype/property-changes-when-uppercased'.
21263         * modules/unictype/property-changes-when-uppercased: New file.
21264         * lib/unictype/pr_changes_when_uppercased.c: New file.
21265         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21266         generated by gen-uni-tables.
21267         * modules/unictype/property-changes-when-uppercased-tests: New file.
21268         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21269         automatically generated by gen-uni-tables.
21270
21271         New module 'unictype/property-changes-when-lowercased'.
21272         * modules/unictype/property-changes-when-lowercased: New file.
21273         * lib/unictype/pr_changes_when_lowercased.c: New file.
21274         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21275         generated by gen-uni-tables.
21276         * modules/unictype/property-changes-when-lowercased-tests: New file.
21277         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21278         automatically generated by gen-uni-tables.
21279
21280         New module 'unictype/property-case-ignorable'.
21281         * modules/unictype/property-case-ignorable: New file.
21282         * lib/unictype/pr_case_ignorable.c: New file.
21283         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21284         by gen-uni-tables.
21285         * modules/unictype/property-case-ignorable-tests: New file.
21286         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21287         generated by gen-uni-tables.
21288
21289         New module 'unictype/property-cased'.
21290         * modules/unictype/property-cased: New file.
21291         * lib/unictype/pr_cased.c: New file.
21292         * lib/unictype/pr_cased.h: New file, automatically generated by
21293         gen-uni-tables.
21294         * modules/unictype/property-cased-tests: New file.
21295         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21296         gen-uni-tables.
21297
21298 2011-01-09  Bruno Haible  <bruno@clisp.org>
21299
21300         Update to Unicode 5.2.0.
21301         * lib/gen-uni-tables.c (output_predicate, output_category,
21302         output_combclass, output_bidi_category, output_decimal_digit_test,
21303         output_decimal_digit, output_digit_test, output_digit,
21304         output_numeric_test, output_numeric, output_mirror, output_scripts,
21305         output_scripts_byname, output_blocks, output_ident_category): Fix
21306         comment header.
21307         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21308         get_wbp.
21309         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21310         items.
21311         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21312         Changes_When_Lowercased, Changes_When_Uppercased,
21313         Changes_When_Titlecased, Changes_When_Casefolded,
21314         Changes_When_Casemapped.
21315         (is_property_alphabetic, is_property_default_ignorable_code_point):
21316         Update for Unicode 5.2.0.
21317         (is_property_cased, is_property_case_ignorable,
21318         is_property_changes_when_lowercased,
21319         is_property_changes_when_uppercased,
21320         is_property_changes_when_titlecased,
21321         is_property_changes_when_casefolded,
21322         is_property_changes_when_casemapped): New functions.
21323         (output_properties): Output also the properties cased, case_ignorable,
21324         changes_when_lowercased, changes_when_uppercased,
21325         changes_when_titlecased, changes_when_casefolded,
21326         changes_when_casemapped.
21327         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21328         Unicode TR#11 revision 17 -> 19.
21329         (LBP_CP): New enumeration value.
21330         (LBP_*): Adjust values accordingly.
21331         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21332         TR#14 revision 22 -> 24.
21333         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21334         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21335         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21336         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21337         is_WBP_MIDLETTER.
21338         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21339         the code1 and code2 of each composition rule.
21340         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21341         * lib/unicase/ignorable.h: Likewise.
21342         * lib/unicase/tocasefold.h: Likewise.
21343         * lib/unicase/tolower.h: Likewise.
21344         * lib/unicase/totitle.h: Likewise.
21345         * lib/unicase/toupper.h: Likewise.
21346         * lib/unictype/bidi_of.h: Likewise.
21347         * lib/unictype/blocks.h: Likewise.
21348         * lib/unictype/categ_C.h: Likewise.
21349         * lib/unictype/categ_Cf.h: Likewise.
21350         * lib/unictype/categ_Cn.h: Likewise.
21351         * lib/unictype/categ_L.h: Likewise.
21352         * lib/unictype/categ_Ll.h: Likewise.
21353         * lib/unictype/categ_Lm.h: Likewise.
21354         * lib/unictype/categ_Lo.h: Likewise.
21355         * lib/unictype/categ_Lu.h: Likewise.
21356         * lib/unictype/categ_M.h: Likewise.
21357         * lib/unictype/categ_Mc.h: Likewise.
21358         * lib/unictype/categ_Mn.h: Likewise.
21359         * lib/unictype/categ_N.h: Likewise.
21360         * lib/unictype/categ_Nd.h: Likewise.
21361         * lib/unictype/categ_Nl.h: Likewise.
21362         * lib/unictype/categ_No.h: Likewise.
21363         * lib/unictype/categ_P.h: Likewise.
21364         * lib/unictype/categ_Pd.h: Likewise.
21365         * lib/unictype/categ_Po.h: Likewise.
21366         * lib/unictype/categ_S.h: Likewise.
21367         * lib/unictype/categ_Sc.h: Likewise.
21368         * lib/unictype/categ_So.h: Likewise.
21369         * lib/unictype/categ_of.h: Likewise.
21370         * lib/unictype/combining.h: Likewise.
21371         * lib/unictype/ctype_alnum.h: Likewise.
21372         * lib/unictype/ctype_alpha.h: Likewise.
21373         * lib/unictype/ctype_graph.h: Likewise.
21374         * lib/unictype/ctype_lower.h: Likewise.
21375         * lib/unictype/ctype_print.h: Likewise.
21376         * lib/unictype/ctype_punct.h: Likewise.
21377         * lib/unictype/ctype_upper.h: Likewise.
21378         * lib/unictype/decdigit.h: Likewise.
21379         * lib/unictype/digit.h: Likewise.
21380         * lib/unictype/numeric.h: Likewise.
21381         * lib/unictype/pr_alphabetic.h: Likewise.
21382         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21383         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21384         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21385         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21386         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21387         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21388         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21389         * lib/unictype/pr_combining.h: Likewise.
21390         * lib/unictype/pr_composite.h: Likewise.
21391         * lib/unictype/pr_currency_symbol.h: Likewise.
21392         * lib/unictype/pr_dash.h: Likewise.
21393         * lib/unictype/pr_decimal_digit.h: Likewise.
21394         * lib/unictype/pr_deprecated.h: Likewise.
21395         * lib/unictype/pr_diacritic.h: Likewise.
21396         * lib/unictype/pr_extender.h: Likewise.
21397         * lib/unictype/pr_grapheme_base.h: Likewise.
21398         * lib/unictype/pr_grapheme_extend.h: Likewise.
21399         * lib/unictype/pr_grapheme_link.h: Likewise.
21400         * lib/unictype/pr_id_continue.h: Likewise.
21401         * lib/unictype/pr_id_start.h: Likewise.
21402         * lib/unictype/pr_ideographic.h: Likewise.
21403         * lib/unictype/pr_ignorable_control.h: Likewise.
21404         * lib/unictype/pr_logical_order_exception.h: Likewise.
21405         * lib/unictype/pr_lowercase.h: Likewise.
21406         * lib/unictype/pr_numeric.h: Likewise.
21407         * lib/unictype/pr_other_alphabetic.h: Likewise.
21408         * lib/unictype/pr_punctuation.h: Likewise.
21409         * lib/unictype/pr_sentence_terminal.h: Likewise.
21410         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21411         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21412         * lib/unictype/pr_unified_ideograph.h: Likewise.
21413         * lib/unictype/pr_uppercase.h: Likewise.
21414         * lib/unictype/pr_xid_continue.h: Likewise.
21415         * lib/unictype/pr_xid_start.h: Likewise.
21416         * lib/unictype/pr_zero_width.h: Likewise.
21417         * lib/unictype/scripts.h: Likewise.
21418         * lib/unictype/scripts_byname.gperf: Likewise.
21419         * lib/unictype/sy_java_ident.h: Likewise.
21420         * lib/unigbrk/gbrkprop.h: Likewise.
21421         * lib/unilbrk/lbrkprop1.h: Likewise.
21422         * lib/unilbrk/lbrkprop2.h: Likewise.
21423         * lib/unilbrk/lbrktables.h: Likewise.
21424         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21425         LBP_CP. Implement rule LB30.
21426         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21427         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21428         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21429         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21430         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21431         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21432         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21433         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21434         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21435         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21436         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21437         bits instead of 16 bits in the code1 and code2 of each composition
21438         rule.
21439         (uc_composition): Update for Unicode 5.2.0.
21440         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21441         * lib/uninorm/decomposition-table2.h: Likewise.
21442         * lib/uniwbrk/wbrkprop.h: Likewise.
21443         * tests/unicase/test-cased.c: Likewise.
21444         * tests/unicase/test-ignorable.c: Likewise.
21445         * tests/unicase/test-uc_tolower.c: Likewise.
21446         * tests/unicase/test-uc_totitle.c: Likewise.
21447         * tests/unicase/test-uc_toupper.c: Likewise.
21448         * tests/unictype/test-categ_C.c: Likewise.
21449         * tests/unictype/test-categ_Cf.c: Likewise.
21450         * tests/unictype/test-categ_Cn.c: Likewise.
21451         * tests/unictype/test-categ_L.c: Likewise.
21452         * tests/unictype/test-categ_Ll.c: Likewise.
21453         * tests/unictype/test-categ_Lm.c: Likewise.
21454         * tests/unictype/test-categ_Lo.c: Likewise.
21455         * tests/unictype/test-categ_Lu.c: Likewise.
21456         * tests/unictype/test-categ_M.c: Likewise.
21457         * tests/unictype/test-categ_Mc.c: Likewise.
21458         * tests/unictype/test-categ_Mn.c: Likewise.
21459         * tests/unictype/test-categ_N.c: Likewise.
21460         * tests/unictype/test-categ_Nd.c: Likewise.
21461         * tests/unictype/test-categ_Nl.c: Likewise.
21462         * tests/unictype/test-categ_No.c: Likewise.
21463         * tests/unictype/test-categ_P.c: Likewise.
21464         * tests/unictype/test-categ_Pd.c: Likewise.
21465         * tests/unictype/test-categ_Po.c: Likewise.
21466         * tests/unictype/test-categ_S.c: Likewise.
21467         * tests/unictype/test-categ_Sc.c: Likewise.
21468         * tests/unictype/test-categ_So.c: Likewise.
21469         * tests/unictype/test-ctype_alnum.c: Likewise.
21470         * tests/unictype/test-ctype_alpha.c: Likewise.
21471         * tests/unictype/test-ctype_graph.c: Likewise.
21472         * tests/unictype/test-ctype_lower.c: Likewise.
21473         * tests/unictype/test-ctype_print.c: Likewise.
21474         * tests/unictype/test-ctype_punct.c: Likewise.
21475         * tests/unictype/test-ctype_upper.c: Likewise.
21476         * tests/unictype/test-decdigit.h: Likewise.
21477         * tests/unictype/test-digit.h: Likewise.
21478         * tests/unictype/test-numeric.h: Likewise.
21479         * tests/unictype/test-pr_alphabetic.c: Likewise.
21480         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21481         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21482         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21483         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21484         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21485         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21486         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21487         * tests/unictype/test-pr_combining.c: Likewise.
21488         * tests/unictype/test-pr_composite.c: Likewise.
21489         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21490         * tests/unictype/test-pr_dash.c: Likewise.
21491         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21492         * tests/unictype/test-pr_deprecated.c: Likewise.
21493         * tests/unictype/test-pr_diacritic.c: Likewise.
21494         * tests/unictype/test-pr_extender.c: Likewise.
21495         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21496         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21497         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21498         * tests/unictype/test-pr_id_continue.c: Likewise.
21499         * tests/unictype/test-pr_id_start.c: Likewise.
21500         * tests/unictype/test-pr_ideographic.c: Likewise.
21501         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21502         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21503         * tests/unictype/test-pr_lowercase.c: Likewise.
21504         * tests/unictype/test-pr_numeric.c: Likewise.
21505         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21506         * tests/unictype/test-pr_punctuation.c: Likewise.
21507         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21508         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21509         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21510         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21511         * tests/unictype/test-pr_uppercase.c: Likewise.
21512         * tests/unictype/test-pr_xid_continue.c: Likewise.
21513         * tests/unictype/test-pr_xid_start.c: Likewise.
21514         * tests/unictype/test-pr_zero_width.c: Likewise.
21515         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21516         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21517         changed behaviour: line breaking is now disallowed between a letter
21518         or '=' and '('.
21519         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21520         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21521         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21522         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21523         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21524         lib/uniwidth/width.c.
21525         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21526         without comments, but with the original copyright notice.
21527         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21528         changes.
21529         * lib/unictype/categ_Cc.h: Likewise.
21530         * lib/unictype/categ_Co.h: Likewise.
21531         * lib/unictype/categ_Cs.h: Likewise.
21532         * lib/unictype/categ_Lt.h: Likewise.
21533         * lib/unictype/categ_Me.h: Likewise.
21534         * lib/unictype/categ_Pc.h: Likewise.
21535         * lib/unictype/categ_Pe.h: Likewise.
21536         * lib/unictype/categ_Pf.h: Likewise.
21537         * lib/unictype/categ_Pi.h: Likewise.
21538         * lib/unictype/categ_Ps.h: Likewise.
21539         * lib/unictype/categ_Sk.h: Likewise.
21540         * lib/unictype/categ_Sm.h: Likewise.
21541         * lib/unictype/categ_Z.h: Likewise.
21542         * lib/unictype/categ_Zl.h: Likewise.
21543         * lib/unictype/categ_Zp.h: Likewise.
21544         * lib/unictype/categ_Zs.h: Likewise.
21545         * lib/unictype/ctype_blank.h: Likewise.
21546         * lib/unictype/ctype_cntrl.h: Likewise.
21547         * lib/unictype/ctype_digit.h: Likewise.
21548         * lib/unictype/ctype_space.h: Likewise.
21549         * lib/unictype/ctype_xdigit.h: Likewise.
21550         * lib/unictype/mirror.h: Likewise.
21551         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21552         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21553         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21554         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21555         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21556         * lib/unictype/pr_bidi_control.h: Likewise.
21557         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21558         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21559         * lib/unictype/pr_bidi_pdf.h: Likewise.
21560         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21561         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21562         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21563         * lib/unictype/pr_format_control.h: Likewise.
21564         * lib/unictype/pr_hex_digit.h: Likewise.
21565         * lib/unictype/pr_hyphen.h: Likewise.
21566         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21567         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21568         * lib/unictype/pr_iso_control.h: Likewise.
21569         * lib/unictype/pr_join_control.h: Likewise.
21570         * lib/unictype/pr_left_of_pair.h: Likewise.
21571         * lib/unictype/pr_line_separator.h: Likewise.
21572         * lib/unictype/pr_math.h: Likewise.
21573         * lib/unictype/pr_non_break.h: Likewise.
21574         * lib/unictype/pr_not_a_character.h: Likewise.
21575         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21576         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21577         * lib/unictype/pr_other_id_continue.h: Likewise.
21578         * lib/unictype/pr_other_id_start.h: Likewise.
21579         * lib/unictype/pr_other_lowercase.h: Likewise.
21580         * lib/unictype/pr_other_math.h: Likewise.
21581         * lib/unictype/pr_other_uppercase.h: Likewise.
21582         * lib/unictype/pr_paired_punctuation.h: Likewise.
21583         * lib/unictype/pr_paragraph_separator.h: Likewise.
21584         * lib/unictype/pr_pattern_syntax.h: Likewise.
21585         * lib/unictype/pr_pattern_white_space.h: Likewise.
21586         * lib/unictype/pr_private_use.h: Likewise.
21587         * lib/unictype/pr_quotation_mark.h: Likewise.
21588         * lib/unictype/pr_radical.h: Likewise.
21589         * lib/unictype/pr_soft_dotted.h: Likewise.
21590         * lib/unictype/pr_space.h: Likewise.
21591         * lib/unictype/pr_titlecase.h: Likewise.
21592         * lib/unictype/pr_variation_selector.h: Likewise.
21593         * lib/unictype/pr_white_space.h: Likewise.
21594         * lib/unictype/sy_c_ident.h: Likewise.
21595         * lib/unictype/sy_c_whitespace.h: Likewise.
21596         * lib/unictype/sy_java_whitespace.h: Likewise.
21597         * modules/uni*/*: Bump version number of expected libunistring version.
21598         Reported by Simon Josefsson.
21599
21600 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21601
21602         useless-if-before-free: fix typo in --help and make the internal,
21603         automatic version date update process work once again.
21604         --help output contained a NUL character instead of the
21605         backslash-zero that was intended.  Also, the "must lie within
21606         the first 8 lines" line is on line 9, and hence not getting
21607         automatically updated.
21608         * build-aux/useless-if-before-free: Fix the former by adding a
21609         backslash, and the latter by condensing the three lines of what-it-does
21610         to a single line, leaving one line of slack for the future.
21611
21612 2011-01-09  Bruno Haible  <bruno@clisp.org>
21613
21614         uniwidth/width: Fix width of U+1D173..U+1D17A.
21615         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21616         symbolic_width, output_width_property_test): New functions.
21617         (main): Invoke output_nonspacing_property, output_width_property_test.
21618         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21619         U+1D173..U+1D17A.
21620         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21621         1.
21622         * modules/uniwidth/*: Bump version number of expected libunistring
21623         version.
21624         * modules/unilbrk/*: Likewise.
21625
21626 2011-01-08  Bruno Haible  <bruno@clisp.org>
21627
21628         uninorm tests: Preserve copyright of Unicode data file.
21629         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21630         Mention modifications.
21631
21632 2011-01-08  Bruno Haible  <bruno@clisp.org>
21633
21634         gen-uni-tables: Prepare for Unicode 5.2.0.
21635         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21636         (debug_output_lbp, output_lbp): Update.
21637
21638 2011-01-08  Bruno Haible  <bruno@clisp.org>
21639
21640         unilbrk: Clarify gen-uni-tables.c code.
21641         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21642         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21643         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21644
21645 2011-01-07  Bruno Haible  <bruno@clisp.org>
21646
21647         strtod: Restore errno when successfully parsing Infinity or NaN.
21648         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21649         restore the original errno.
21650
21651 2011-01-07  Bruno Haible  <bruno@clisp.org>
21652
21653         remove test: Avoid failure on HP-UX 11.
21654         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21655
21656 2011-01-07  Bruno Haible  <bruno@clisp.org>
21657
21658         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21659         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21660         error code.
21661
21662 2011-01-07  Pádraig Brady <P@draigBrady.com>
21663
21664         ignore-value: fixup comments, and add Eric Blake
21665         as an author since he rewrote the macros.
21666         * lib/ignore-value.h (ignore_value):  State that
21667         we now support aggregates.  Also specify exactly
21668         when the GCC warn_unused_result feature was added.
21669
21670 2011-01-06  Eric Blake  <eblake@redhat.com>
21671
21672         ignore-value: support aggregate types
21673         * lib/ignore-value.h (ignore_value): Provide separate gcc
21674         definition.
21675         * modules/ignore-value-tests: New test module.
21676         * tests/test-ignore-value.c: New test.
21677
21678         maint.mk: improve sc_prohibit_strcmp regex
21679         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21680         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21681         definition of STRNEQ.
21682
21683         signal: work around Haiku issue with SIGBUS
21684         * lib/siglist.h: Add comment.
21685         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21686         strsignal's favoring of SIGSEGV.
21687         * tests/test-signal.c (main): Avoid test failure.
21688         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21689         Reported by Scott McCreary.
21690
21691         maint.mk: add pre-release check to ensure submodule commits are public
21692         * top/maint.mk (public-submodule-commit): New rule.
21693         (submodule-checks): New variable.
21694         (alpha beta stable): Depend on the variable.
21695
21696 2011-01-05  Pádraig Brady <P@draigBrady.com>
21697         and Jim Meyering  <meyering@redhat.com>
21698
21699         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21700         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21701         (ATTRIBUTE_DEPRECATED): Define.
21702         (_ignore_case): New function.
21703         (ignore_value): New macro, to replace the old function.
21704         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21705         * modules/ignore-value (Depends-on): Add stdint.
21706
21707 2011-01-04  Eric Blake  <eblake@redhat.com>
21708
21709         doc: regenerate INSTALL
21710         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21711         @firstparagraphindent support, now that autoconf dropped it.
21712         (INSTALL_PRELUDE): Reinstate old macro.
21713         * doc/install.texi: Resync from autoconf.
21714         * doc/INSTALL: Reflect recent autoconf update.
21715         * doc/INSTALL.ISO: Likewise.
21716         * doc/INSTALL.UTF-8: Likewise.
21717         Reported by Karl Berry.
21718
21719 2011-01-04  Bruce Korb  <address@hidden>
21720
21721         git-version-gen: avoid a sub-shell
21722         * build-aux/git-version-gen: Redirect stderr in `...` via
21723         "exec 2>...", rather than via an added sub-shell.
21724
21725 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21726
21727         git-version-gen: use (...) rather than sh -c '...'
21728         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21729         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21730
21731 2011-01-03  Jim Meyering  <meyering@redhat.com>
21732
21733         git-version-gen: convert leading TABs to spaces
21734         * build-aux/git-version-gen: Expand leading TABs.
21735
21736         git-version-gen: handle failed "git rev-list"
21737         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21738         from git and proceeding as if it had succeeded but printed no SHA1
21739         checksums, suppress the diagnostic and handle the failure.
21740         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21741
21742         git-version-gen: include command name in one more diagnostic
21743         * build-aux/git-version-gen: When the required .tarball-version file
21744         was missing or unreadable, you might see the diagnostic from "cat",
21745         but no trace of the name of the invoking script.  Now, you still see
21746         the diagnostic from cat, but also get one from "git-version-gen: ".
21747         Inspired by a patch from Bruce Korb.
21748
21749         update-copyright: adjust test to match changed code
21750         * tests/test-update-copyright.sh: Change test's expected output
21751         to match new actual output.
21752
21753 2011-01-02  Bruno Haible  <bruno@clisp.org>
21754
21755         getlogin_r: Avoid test failure on HP-UX 11.
21756         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21757         ERANGE when the second argument is zero.
21758         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21759         portability problem.
21760
21761 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21762
21763         * build-aux/update-copyright: doc Simon's changes
21764
21765 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21766
21767         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21768         environment variable.
21769
21770 2011-01-02  Bruno Haible  <bruno@clisp.org>
21771
21772         unigbrk: Avoid gcc warnings.
21773         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21774         unused variable.
21775         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21776         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21777         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21778         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21779         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21780         Change type of first argument to 'const char *'.
21781         (main): Remove unused variable.
21782         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21783         type of first argument to 'const char *'.
21784         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21785         Likewise.
21786         (main): Change type of variable 's'.
21787         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21788         to 'int'.
21789
21790 2011-01-02  Bruno Haible  <bruno@clisp.org>
21791
21792         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21793         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21794         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21795         bug.
21796         * lib/pwrite.c: Undo 2010-12-31 patch.
21797         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21798
21799 2011-01-02  Bruno Haible  <bruno@clisp.org>
21800
21801         pread: Fix test whether it works.
21802         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21803
21804 2011-01-02  Bruno Haible  <bruno@clisp.org>
21805
21806         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21807         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21808         ends in "6". Don't require a specific month name. Try also the locale
21809         names found on HP-UX 11 and Solaris 7.
21810
21811 2011-01-02  Bruno Haible  <bruno@clisp.org>
21812
21813         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21814         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21815         C linkage.
21816         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21817
21818 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21819
21820         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21821         for consistency, since the "cluster" term is not used elsewhere.
21822         * lib/unigbrk.in.h: Update name.
21823         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21824         * lib/unigbrk/u16-grapheme-next.c: Update name.
21825         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21826         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21827         * lib/unigbrk/u32-grapheme-next.c: Update name.
21828         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21829         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21830         * lib/unigbrk/u8-grapheme-next.c: Update name.
21831         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21832         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21833         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21834         Suggested by Bruno Haible.
21835
21836 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21837
21838         Remove module 'u8-grapheme-len' as too redundant with
21839         'u8-grapheme-next'.
21840         * modules/unigbrk/u8-grapheme-len: Delete file.
21841         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21842         * lib/unigbrk.in.h: Remove prototype for deleted function.
21843         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21844         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21845
21846         Remove module 'u16-grapheme-len' as too redundant with
21847         'u16-grapheme-next'.
21848         * modules/unigbrk/u16-grapheme-len: Delete file.
21849         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21850         * lib/unigbrk.in.h: Remove prototype for deleted function.
21851         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21852         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21853
21854         Remove module 'u32-grapheme-len' as too redundant with
21855         'u32-grapheme-next'.
21856         * modules/unigbrk/u32-grapheme-len: Delete file.
21857         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21858         * lib/unigbrk.in.h: Remove prototype for deleted function.
21859         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21860         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21861
21862         Suggested by Bruno Haible.
21863
21864 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21865
21866         * unigbrk.in.h: Fix typo: "ben" => "been".
21867         Reported by Bruno Haible.
21868
21869 2011-01-01  Jim Meyering  <meyering@redhat.com>
21870
21871         maint: update almost all copyright ranges to include 2011
21872         Run the new "make update-copyright" rule.
21873
21874 2011-01-01  Jim Meyering  <meyering@redhat.com>
21875
21876         maint: update-copyright: exempt doc/INSTALL*
21877         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21878         since they are generated.  Suggested by Bruno Haible.
21879
21880 2011-01-01  Jim Meyering  <meyering@redhat.com>
21881
21882         maint: refine the update-copyright rule
21883         * Makefile (update-copyright): Also exclude any file that includes
21884         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21885         code that merely generates the comment.
21886
21887 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21888
21889         New module 'u8-grapheme-len'.
21890         * modules/unigbrk/u8-grapheme-len: New file.
21891         * modules/unigbrk/u8-grapheme-len-tests: New file.
21892         * lib/unigbrk.in.h: Add prototype for new function.
21893         * lib/unigbrk/u8-grapheme-len.c: New file.
21894         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21895
21896         New module 'u16-grapheme-len'.
21897         * modules/unigbrk/u16-grapheme-len: New file.
21898         * modules/unigbrk/u16-grapheme-len-tests: New file.
21899         * lib/unigbrk.in.h: Add prototype for new function.
21900         * lib/unigbrk/u16-grapheme-len.c: New file.
21901         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21902
21903         New module 'u32-grapheme-len'.
21904         * modules/unigbrk/u32-grapheme-len: New file.
21905         * modules/unigbrk/u32-grapheme-len-tests: New file.
21906         * lib/unigbrk.in.h: Add prototype for new function.
21907         * lib/unigbrk/u32-grapheme-len.c: New file.
21908         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21909
21910         New module 'u8-grapheme-next'.
21911         * modules/unigbrk/u8-grapheme-next: New file.
21912         * modules/unigbrk/u8-grapheme-next-tests: New file.
21913         * lib/unigbrk.in.h: Add prototype for new function.
21914         * lib/unigbrk/u8-grapheme-next.c: New file.
21915         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21916
21917         New module 'u16-grapheme-next'.
21918         * modules/unigbrk/u16-grapheme-next: New file.
21919         * modules/unigbrk/u16-grapheme-next-tests: New file.
21920         * lib/unigbrk.in.h: Add prototype for new function.
21921         * lib/unigbrk/u16-grapheme-next.c: New file.
21922         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21923
21924         New module 'u32-grapheme-next'.
21925         * modules/unigbrk/u32-grapheme-next: New file.
21926         * modules/unigbrk/u32-grapheme-next-tests: New file.
21927         * lib/unigbrk.in.h: Add prototype for new function.
21928         * lib/unigbrk/u32-grapheme-next.c: New file.
21929         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21930
21931         New module 'u8-grapheme-prev'.
21932         * modules/unigbrk/u8-grapheme-prev: New file.
21933         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21934         * lib/unigbrk.in.h: Add prototype for new function.
21935         * lib/unigbrk/u8-grapheme-prev.c: New file.
21936         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21937
21938         New module 'u16-grapheme-prev'.
21939         * modules/unigbrk/u16-grapheme-prev: New file.
21940         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21941         * lib/unigbrk.in.h: Add prototype for new function.
21942         * lib/unigbrk/u16-grapheme-prev.c: New file.
21943         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21944
21945         New module 'u32-grapheme-prev'.
21946         * modules/unigbrk/u32-grapheme-prev: New file.
21947         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21948         * lib/unigbrk.in.h: Add prototype for new function.
21949         * lib/unigbrk/u32-grapheme-prev.c: New file.
21950         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21951
21952         New module 'u8-grapheme-breaks'.
21953         * modules/unigbrk/u8-grapheme-breaks: New file.
21954         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21955         * lib/unigbrk.in.h: Add prototype for new function.
21956         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21957         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21958
21959         New module 'u16-grapheme-breaks'.
21960         * modules/unigbrk/u16-grapheme-breaks: New file.
21961         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21962         * lib/unigbrk.in.h: Add prototype for new function.
21963         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21964         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21965
21966         New module 'u32-grapheme-breaks'.
21967         * modules/unigbrk/u32-grapheme-breaks: New file.
21968         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21969         * lib/unigbrk.in.h: Add prototype for new function.
21970         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21971         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21972
21973         New module 'ulc-grapheme-breaks'.
21974         * modules/unigbrk/ulc-grapheme-breaks: New file.
21975         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21976         * m4/locale-ar.m4: New file.
21977         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21978         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21979         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21980
21981 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21982
21983         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21984         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21985         modified how this file was generated before I initially submitted
21986         the module, but failed to regenerate it.  This meant that several
21987         of the level2 entries were wrong.
21988         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21989         Remove the division-by-2 that is folded into the table now that
21990         gbrkprop.h has been regenerated properly.  Now -1 entries are
21991         handled correctly.
21992
21993         New module 'unigbrk/uc-gbrk-prop-tests'.
21994         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21995         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21996         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21997         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21998
21999 2011-01-01  Bruno Haible  <bruno@clisp.org>
22000
22001         Avoid use of hexadecimal escapes.
22002         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22003         instead of hexadecimal escapes.
22004
22005 2011-01-01  Jim Meyering  <meyering@redhat.com>
22006
22007         maint: new rule to update copyright year ranges
22008         * Makefile (update-copyright): New rule.
22009
22010         maint: indent with TABs in Makefile
22011         * Makefile: Expand leading sequences of spaces to TABs
22012
22013         version-etc: update the copyright year it reports
22014         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22015
22016 2010-12-31  Bruno Haible  <bruno@clisp.org>
22017
22018         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22019         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22020         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22021         zero.
22022
22023 2010-12-31  Bruno Haible  <bruno@clisp.org>
22024
22025         pwrite: Work around HP-UX 11.11 bug.
22026         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22027         works and set REPLACE_PWRITE if not.
22028         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22029         function.
22030         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22031
22032 2010-12-31  Bruno Haible  <bruno@clisp.org>
22033
22034         pread: Work around HP-UX 11 bugs.
22035         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22036         and set REPLACE_PREAD if not.
22037         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22038
22039 2010-12-31  Eric Blake  <eblake@redhat.com>
22040
22041         nl_langinfo: fix YESEXPR on Irix 6.5
22042         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22043         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22044         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22045         it.
22046
22047 2010-12-31  Bruno Haible  <bruno@clisp.org>
22048
22049         iconv: Document HP-UX 11 bug.
22050         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22051
22052 2010-12-31  Bruno Haible  <bruno@clisp.org>
22053
22054         ldexpl: Fix link error on HP-UX 11.
22055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22056         LDEXPL_LIBM, using $ISNANL_LIBM.
22057
22058 2010-12-31  Eric Blake  <eblake@redhat.com>
22059
22060         ftello: avoid compilation failure with SunStudio c89
22061         * lib/ftello.c (ftello): Use lseek, not llseek.
22062
22063         tests: avoid failing coreutils tests on cygwin
22064         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22065         (create_exe_shims_): Return 0 when skipping.
22066
22067 2010-12-31  Bruno Haible  <bruno@clisp.org>
22068
22069         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22070         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22071
22072 2010-12-31  Bruno Haible  <bruno@clisp.org>
22073
22074         waitpid: Fix link error in C++ mode.
22075         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22076
22077 2010-12-31  Bruno Haible  <bruno@clisp.org>
22078
22079         isnan: Use GCC built-ins when possible.
22080         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22081         __builtin_isnan.
22082         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22083         (isnan): Define using GCC built-ins for GCC >= 4.0.
22084
22085 2010-12-31  Bruno Haible  <bruno@clisp.org>
22086
22087         isnand: Fix mistake.
22088         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22089         __builtin_isnand.
22090
22091 2010-12-31  Bruno Haible  <bruno@clisp.org>
22092
22093         open: Avoid C++ error on HP-UX 11.
22094         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22095
22096 2010-12-31  Bruno Haible  <bruno@clisp.org>
22097
22098         time_r: Add missing declarations on HP-UX 11.
22099         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22100         instead of HAVE_LOCALTIME_R.
22101         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22102         HAVE_LOCALTIME_R always.
22103         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22104         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22105         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22106         HAVE_LOCALTIME_R.
22107         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22108         * doc/posix-functions/localtime_r.texi: Likewise.
22109
22110 2010-12-29  Eric Blake  <eblake@redhat.com>
22111
22112         mountlist: tweak previous commit
22113         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22114         Reported by Paul Eggert.
22115
22116         mountlist: fix local drive detection on cygwin
22117         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22118         that works for cygwin.
22119
22120 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22121
22122         ftoastr, snprintf: ftoastr + snprintf module
22123         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22124         since the snprintf module now should be good enough here.
22125         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22126         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22127         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22128         GNULIB_SNPRINTF only for the test directory, and the latter
22129         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22130         seems to suffice by itself.
22131
22132 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22133
22134         alloca: one step towards thread-safety
22135         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22136         need for a static variable.  All callers changed.  This does not
22137         make the alloca replacement thread-safe, but it's one step.
22138
22139         tests: minor indenting change
22140         * tests/init.sh: Sync from coreutils housekeeping patch
22141         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22142         to keep lines within 80 columns.
22143
22144 2010-12-28  Jim Meyering  <meyering@redhat.com>
22145
22146         regex: don't infloop on persistent failing calloc
22147         * lib/regexec.c (build_trtable): Return failure indication upon
22148         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22149         In glibc, this was fixed for version 2.13:
22150         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22151
22152 2010-12-28  Bruno Haible  <bruno@clisp.org>
22153             Paul Eggert <eggert@cs.ucla.edu>
22154
22155         linkat: Make implementation robust against system behaviour variations.
22156         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22157         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22158         way, and to -2 if it needs a generic runtime test.
22159         * lib/linkat.c (solaris_optimized_link_immediate,
22160         solaris_optimized_link_follow): New functions.
22161         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22162         (check_same_link): Use it.
22163
22164 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22165
22166         New module 'unigbrk/base'.
22167         * modules/unigbrk/base: New file.
22168         * lib/unigbrk.in.h: New file.
22169
22170         New module 'unigbrk/uc-gbrk-prop'.
22171         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22172         * modules/unigbrk/uc-gbrk-prop: New file.
22173         * lib/unigbrk/gbrkprop.h: New file.
22174         * lib/unigbrk/uc-gbrk-prop.c: New file.
22175
22176         New module 'unigbrk/uc-is-grapheme-break'.
22177         * modules/unigbrk/uc-is-grapheme-break: New file.
22178         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22179         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22180         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22181         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22182         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22183
22184         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22185
22186 2010-12-27  Bruno Haible  <bruno@clisp.org>
22187
22188         linkat test: Avoid failure on Solaris 11 2010-11.
22189         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22190
22191 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22192
22193         utimens: work around glibc rounding bug on more platforms
22194         * lib/utimens.c (fdutimens): Work around rounding bug even if
22195         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22196         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22197
22198 2010-12-27  Bruno Haible  <bruno@clisp.org>
22199
22200         select tests: Improve comments.
22201         * tests/test-select.c (do_select): Add comments.
22202
22203 2010-12-27  Bruno Haible  <bruno@clisp.org>
22204
22205         select tests: Safer way of handling timeout.
22206         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22207         at every invocation.
22208
22209 2010-12-27  Bruno Haible  <bruno@clisp.org>
22210
22211         select tests: Use 'bool' where appropriate.
22212         * tests/test-select.c (connect_to_socket): Change argument type to
22213         'bool'.
22214
22215 2010-12-27  Bruno Haible  <bruno@clisp.org>
22216
22217         select tests: Use existing modules.
22218         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22219         (configure.ac): Don't test for unistd.h.
22220         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22221         declared in <unistd.h>.
22222
22223 2010-12-27  Bruno Haible  <bruno@clisp.org>
22224
22225         mbrtowc: Work around a Solaris 7 bug.
22226         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22227         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22228         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22229         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22230         MBRTOWC_NULL_ARG1_BUG.
22231         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22232         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22233         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22234         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22235
22236 2010-12-27  Jim Meyering  <meyering@redhat.com>
22237
22238         read-file.c: tweak syntax
22239         * lib/read-file.c (fread_file): Remove space after "*" in function
22240         definitions.
22241
22242 2010-12-27  Bruno Haible  <bruno@clisp.org>
22243
22244         times test: Avoid gcc warnings on OSF/1.
22245         * tests/test-times.c (main): Cast printf arguments from clock_t to
22246         'long int'.
22247
22248 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22249
22250         utimens: work around glibc rounding bug on older Linux kernels
22251         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22252         on Linux with a glibc whose utimes might not work, then work
22253         around a longstanding glibc bug involving rounding rather than
22254         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22255         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22256
22257 2010-12-26  Bruno Haible  <bruno@clisp.org>
22258
22259         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22260         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22261         _GL_CXXALIAS_SYS.
22262         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22263
22264 2010-12-26  Bruno Haible  <bruno@clisp.org>
22265
22266         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22267         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22268         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22269         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22270         looking for the declaration.
22271         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22272         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22273         problem.
22274         * doc/posix-functions/inet_pton.texi: Likewise.
22275
22276 2010-12-26  Bruno Haible  <bruno@clisp.org>
22277
22278         arpa_inet: Use the common idioms with C++ support.
22279         * lib/arpa_inet.in.h: Include c++defs.h.
22280         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22281         support.
22282         * modules/arpa_inet (Depends-on): Add c++defs.
22283         (Makefile.am): Substitute the contents of c++defs.h.
22284         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22285         * modules/arpa_inet-c++-tests: New file.
22286         * tests/test-arpa_inet-c++.cc: New file.
22287
22288 2010-12-25  Bruno Haible  <bruno@clisp.org>
22289
22290         Fix more C++ link errors on Solaris 8.
22291         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22292         $(LIB_EACCESS).
22293         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22294         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22295         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22296         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22297         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22298
22299 2010-12-25  Bruno Haible  <bruno@clisp.org>
22300
22301         printf-posix: Fix link error when a non-GCC compiler is used.
22302         * lib/stdio.in.h (printf): When not using GCC, override printf
22303         correctly.
22304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22305
22306 2010-12-25  Bruno Haible  <bruno@clisp.org>
22307
22308         strerror_r-posix: Update doc.
22309         * doc/posix-functions/strerror_r.texi: Update doc about the return
22310         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22311
22312 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22313
22314         utimens: simplify the logic of the previous change
22315         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22316         This should not affect whether the test succeeds or fails.
22317
22318         utimens: configure better on hosts with NFS clock skew
22319         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22320         uses the clock of the local host.  It might use the clock of the
22321         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22322         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22323
22324 2010-12-25  Bruno Haible  <bruno@clisp.org>
22325
22326         ptsname test: Avoid failure on Solaris.
22327         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22328         open a pseudo-terminal; don't use BSD-style ptys.
22329         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22330
22331 2010-12-25  Bruno Haible  <bruno@clisp.org>
22332
22333         ptsname: Avoid ERANGE failure on some systems.
22334         * lib/ptsname.c (buffer): Increase size.
22335
22336 2010-12-25  Bruno Haible  <bruno@clisp.org>
22337
22338         rename, renameat: Avoid test failures at NFS mounted locations.
22339         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22340         so that subsequent mkdir calls succeed.
22341
22342 2010-12-25  Bruno Haible  <bruno@clisp.org>
22343
22344         iswblank: Fix C++ link error on Solaris 8.
22345         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22346         _GL_FUNCDECL_SYS.
22347
22348 2010-12-25  Bruno Haible  <bruno@clisp.org>
22349
22350         unistd: Fix C++ link error on Solaris 8.
22351         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22352
22353 2010-12-25  Bruno Haible  <bruno@clisp.org>
22354
22355         readlink doc: Mention an old glibc bug.
22356         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22357
22358 2010-12-25  Bruno Haible  <bruno@clisp.org>
22359
22360         fcntl-h: Fix for use of C++ on glibc systems.
22361         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22362         also on glibc systems in C++ mode.
22363         Reported by Gary V. Vaughan <gary@gnu.org>.
22364
22365 2010-12-25  Bruno Haible  <bruno@clisp.org>
22366
22367         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22368         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22369
22370 2010-12-25  Bruno Haible  <bruno@clisp.org>
22371
22372         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22373         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22374         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22375         test whether truncl works according to ISO C 99 with IEC 60559.
22376         * m4/truncl-ieee.m4: New file.
22377         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22378         m4/signbit.m4.
22379         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22380
22381 2010-12-25  Bruno Haible  <bruno@clisp.org>
22382
22383         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22384         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22385         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22386         test whether ceill works according to ISO C 99 with IEC 60559.
22387         * m4/ceill-ieee.m4: New file.
22388         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22389         m4/signbit.m4.
22390         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22391
22392 2010-12-25  Bruno Haible  <bruno@clisp.org>
22393
22394         Ensure all prerequisites of <wchar.h> are included.
22395         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22396         before <wchar.h>.
22397         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22398         gl_MBRLEN_NUL_RETVAL): Likewise.
22399         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22400         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22401         AC_FUNC_MBRTOWC): Likewise.
22402         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22403         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22404         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22405         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22406         Likewise.
22407         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22408         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22409         (gl_WCHAR_H): Improve comments.
22410         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22411
22412 2010-12-25  Bruno Haible  <bruno@clisp.org>
22413
22414         strtok_r: Fix C syntax error in autoconf macro.
22415         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22416         characters in test program.
22417
22418 2010-12-24  Bruno Haible  <bruno@clisp.org>
22419
22420         ceil, trunc, round: Fix gcc warnings.
22421         * lib/ceil.c (MIN): Undefine before redefining.
22422         * lib/trunc.c (MIN): Likewise.
22423         * lib/round.c (MIN): Likewise.
22424         Include <math.h> first.
22425
22426 2010-12-24  Bruno Haible  <bruno@clisp.org>
22427
22428         select tests: Avoid failures on OSF/1 5.1.
22429         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22430         failure of closing the last socket; it may fail with ECONNRESET.
22431
22432 2010-12-24  Eric Blake  <eblake@redhat.com>
22433
22434         stdint: avoid HP-UX 10.20 preprocessor bug
22435         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22436         than #if.
22437         * tests/test-floor2.c (main): Likewise.
22438         Reported by Peter O'Gorman.
22439
22440         pipe: make obsoletion transition easier
22441         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22442         * modules/pipe (Files): Include revived file.
22443         (Include): Drop reference, to mirror getdate's behavior.
22444
22445 2010-12-24  Bruno Haible  <bruno@clisp.org>
22446
22447         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22448         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22449         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22450         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22451
22452 2010-12-24  Bruno Haible  <bruno@clisp.org>
22453
22454         gethostname: Ensure declaration on NonStop Kernel.
22455         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22456         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22457
22458 2010-12-24  Bruno Haible  <bruno@clisp.org>
22459
22460         sys_select: Ensure all necessary types on NonStop Kernel.
22461         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22462         include <sys/time.h>.
22463         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22464         NonStop Kernel.
22465         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22466
22467 2010-12-24  Bruno Haible  <bruno@clisp.org>
22468
22469         sys_select: Remove unneeded include.
22470         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22471         have <sys/select.h>.
22472
22473 2010-12-24  Bruno Haible  <bruno@clisp.org>
22474
22475         gethostname: Provide a fallback for HOST_NAME_MAX.
22476         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22477         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22478         instead.
22479         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22480
22481 2010-12-24  Bruno Haible  <bruno@clisp.org>
22482
22483         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22484         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22485         (SA_RESTART): Likewise.
22486         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22487
22488 2010-12-24  Bruno Haible  <bruno@clisp.org>
22489
22490         signal: Define NSIG.
22491         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22492         * tests/test-signal.c (nsig): New variable.
22493         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22494
22495 2010-12-24  Bruno Haible  <bruno@clisp.org>
22496
22497         rename, renameat: Avoid test failures on OSF/1 5.1.
22498         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22499         alternative error codes.
22500         * tests/test-renameat.c (main): Likewise.
22501
22502 2010-12-24  Bruno Haible  <bruno@clisp.org>
22503
22504         *printf: Detect large precisions bug on Solaris 10/SPARC.
22505         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22506         by Paul Eggert.
22507         * tests/test-snprintf-posix.h (test_function): Add this test code here
22508         too.
22509         * tests/test-sprintf-posix.h (test_function): Likewise.
22510         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22511         * tests/test-vasprintf-posix.c (test_function): Likewise.
22512         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22513         around by gnulib.
22514         * doc/posix-functions/printf.texi: Likewise.
22515         * doc/posix-functions/snprintf.texi: Likewise.
22516         * doc/posix-functions/sprintf.texi: Likewise.
22517         * doc/posix-functions/vfprintf.texi: Likewise.
22518         * doc/posix-functions/vprintf.texi: Likewise.
22519         * doc/posix-functions/vsnprintf.texi: Likewise.
22520         * doc/posix-functions/vsprintf.texi: Likewise.
22521         * doc/posix-functions/dprintf.texi: Undo last commit.
22522         * doc/posix-functions/vdprintf.texi: Likewise.
22523
22524 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22525
22526         tests: port test-fdutimensat.c to Solaris 8
22527         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22528         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22529         On Solaris 8, it fails with errno == ENOSYS, because there is no
22530         futimens (so it can't use the fd), and there is no lutimens (so it
22531         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22532
22533         vsnprintf: make more consistent with snprintf; doc fixes
22534
22535         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22536         the byte count return problem was promoted from the snprintf-posix
22537         to the snprintf module.
22538         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22539         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22540         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22541         * tests/test-snprintf.c (main): Check the byte count returned.
22542         * tests/test-vsnprintf.c (main): Likewise.
22543
22544 2010-12-23  Eric Blake  <eblake@redhat.com>
22545
22546         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22547         * modules/sigpipe (License): Relax license.
22548
22549 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22550
22551         doc: document Solaris printf bug with large float precisions
22552         * doc/posix-functions/dprintf.texi (dprintf):
22553         * doc/posix-functions/fprintf.texi (fprintf):
22554         * doc/posix-functions/printf.texi (printf):
22555         * doc/posix-functions/snprintf.texi (snprintf):
22556         * doc/posix-functions/sprintf.texi (sprintf):
22557         * doc/posix-functions/vdprintf.texi (vdprintf):
22558         * doc/posix-functions/vfprintf.texi (vfprintf):
22559         * doc/posix-functions/vprintf.texi (vprintf):
22560         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22561         * doc/posix-functions/vsprintf.texi (vsprintf):
22562         Mention that these functions mishandle large floating point
22563         precisions on Solaris 10.  The same bug is also present in Solaris
22564         8, and I assume earlier.  This causes "cd gnulib-tests; make
22565         check" to fail on Solaris 8 (and I assume, later) when building
22566         the latest coreutils, in test-vasprintf-posix's call to
22567         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22568         the wide flavors (e.g., wprintf) so this patch just updates the
22569         documentation for the narrow ones.
22570
22571         test-posixtm.c: add two tests
22572         * tests/test-posixtm.c: Add two tests, to highlight the
22573         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22574         around this bug; this is merely to document it.
22575
22576 2010-12-22  Bruno Haible  <bruno@clisp.org>
22577
22578         getlogin_r: Work around portability problem on OSF/1.
22579         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22580         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22581         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22582         test for a truncated result.
22583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22584         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22585         * modules/getlogin_r (Depends-on): Add memchr.
22586         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22587
22588 2010-12-22  Bruno Haible  <bruno@clisp.org>
22589
22590         ptsname: Avoid test failure on OSF/1 5.1.
22591         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22592         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22593         (same_slave): New function.
22594         (main): Use it to compare ptsname's result with the expected file name.
22595
22596 2010-12-22  Bruno Haible  <bruno@clisp.org>
22597
22598         Port extended stdio modules to HP NonStop Kernel.
22599         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22600         macros.
22601         * lib/fbufmode.c: Update comments.
22602         * lib/fflush.c: Likewise.
22603         * lib/fpurge.c: Likewise.
22604         * lib/freadable.c: Likewise.
22605         * lib/freadahead.c: Likewise.
22606         * lib/freading.c: Likewise.
22607         * lib/freadptr.c: Likewise.
22608         * lib/freadseek.c: Likewise.
22609         * lib/fseeko.c: Likewise.
22610         * lib/fseterr.c: Likewise.
22611         * lib/fwritable.c: Likewise.
22612         * lib/fwriting.c: Likewise.
22613         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22614
22615 2010-12-22  Bruno Haible  <bruno@clisp.org>
22616
22617         ttyname_r: Work around bug on OSF/1 5.1.
22618         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22619         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22620         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22621         present.
22622         * lib/ttyname_r.c (ttyname_r): Update comments.
22623
22624 2010-12-22  Bruno Haible  <bruno@clisp.org>
22625
22626         round: Implement result sign according to IEEE 754.
22627         * lib/round.c (MIN, MINUS_ZERO): New macros.
22628         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22629         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22630         * tests/test-round-ieee.c (main): Likewise.
22631         * tests/test-roundl-ieee.c (main): Likewise.
22632
22633         trunc: Implement result sign according to IEEE 754.
22634         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22635         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22636         * tests/test-trunc2.c: Include minus-zero.h.
22637         (MINUS_ZERO): New macro.
22638         (trunc_reference): Keep in sync with lib/trunc.c.
22639         * tests/test-truncf2.c: Include minus-zero.h.
22640         (MINUS_ZERO): New macro.
22641         (truncf_reference): Keep in sync with lib/trunc.c.
22642         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22643         * tests/test-trunc-ieee.c (main): Likewise.
22644         * tests/test-truncl-ieee.c (main): Likewise.
22645
22646         ceil: Implement result sign according to IEEE 754.
22647         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22648         (FUNC): Return -0.0 for -1 < x < 0.
22649         * tests/test-ceil2.c: Include minus-zero.h.
22650         (MINUS_ZERO): New macro.
22651         (ceil_reference): Keep in sync with lib/ceil.c.
22652         * tests/test-ceilf2.c: Include minus-zero.h.
22653         (MINUS_ZERO): New macro.
22654         (ceilf_reference): Keep in sync with lib/ceil.c.
22655         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22656         * tests/test-ceil-ieee.c (main): Likewise.
22657         * tests/test-ceill-ieee.c (main): Likewise.
22658
22659         floor: Implement result sign according to IEEE 754.
22660         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22661         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22662         * tests/test-floorf2.c (floorf_reference): Likewise.
22663         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22664         * tests/test-floor-ieee.c (main): Likewise.
22665         * tests/test-floorl-ieee.c (main): Likewise.
22666
22667 2010-12-22  Bruno Haible  <bruno@clisp.org>
22668
22669         getaddrinfo: Update doc.
22670         * doc/posix-functions/gai_strerror.texi: Return type is also different
22671         on AIX and HP-UX.
22672
22673 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22674
22675         getaddrinfo, inet_ntop: Update doc for Solaris.
22676         * doc/posix-functions/gai_strerror.texi: Return type is also an
22677         issue on Solaris 9 and earlier.
22678         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22679         on Solaris 10 and earlier.
22680
22681 2010-12-21  Bruno Haible  <bruno@clisp.org>
22682
22683         New module 'roundl-ieee'.
22684         * modules/roundl-ieee: New file.
22685         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22686         test whether roundl works according to ISO C 99 with IEC 60559.
22687         * m4/roundl-ieee.m4: New file.
22688         * modules/roundl-ieee-tests: New file.
22689         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22690         * tests/test-roundl.c (main): Remove signbit tests.
22691         * modules/roundl-tests (Depends-on): Remove signbit.
22692         * doc/posix-functions/roundl.texi: Mention the new module.
22693
22694 2010-12-21  Bruno Haible  <bruno@clisp.org>
22695
22696         New module 'truncl-ieee'.
22697         * modules/truncl-ieee: New file.
22698         * modules/truncl-ieee-tests: New file.
22699         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22700         * tests/test-truncl.c (main): Remove signbit tests.
22701         * modules/truncl-tests (Depends-on): Remove signbit.
22702         * doc/posix-functions/truncl.texi: Mention the new module.
22703
22704 2010-12-21  Bruno Haible  <bruno@clisp.org>
22705
22706         New module 'ceill-ieee'.
22707         * modules/ceill-ieee: New file.
22708         * modules/ceill-ieee-tests: New file.
22709         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22710         * tests/test-ceill.c (main): Remove signbit tests.
22711         * modules/ceill-tests (Depends-on): Remove signbit.
22712         * doc/posix-functions/ceill.texi: Mention the new module.
22713
22714 2010-12-21  Bruno Haible  <bruno@clisp.org>
22715
22716         New module 'floorl-ieee'.
22717         * modules/floorl-ieee: New file.
22718         * modules/floorl-ieee-tests: New file.
22719         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22720         * tests/test-floorl.c (main): Remove signbit tests.
22721         * modules/floorl-tests (Depends-on): Remove signbit.
22722         * doc/posix-functions/floorl.texi: Mention the new module.
22723
22724 2010-12-21  Bruno Haible  <bruno@clisp.org>
22725
22726         New module 'round-ieee'.
22727         * modules/round-ieee: New file.
22728         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22729         whether round works according to ISO C 99 with IEC 60559.
22730         * m4/round-ieee.m4: New file.
22731         * modules/round-ieee-tests: New file.
22732         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22733         * tests/test-round1.c (main): Remove signbit tests.
22734         * modules/round-tests (Depends-on): Remove 'signbit'.
22735         * doc/posix-functions/round.texi: Mention the new module.
22736
22737 2010-12-21  Bruno Haible  <bruno@clisp.org>
22738
22739         New module 'trunc-ieee'.
22740         * modules/trunc-ieee: New file.
22741         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22742         whether trunc works according to ISO C 99 with IEC 60559.
22743         * m4/trunc-ieee.m4: New file.
22744         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22746         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22747         * modules/trunc-ieee-tests: New file.
22748         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22749         * tests/test-trunc1.c (main): Remove signbit tests.
22750         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22751         * doc/posix-functions/trunc.texi: Mention the new module.
22752
22753 2010-12-21  Bruno Haible  <bruno@clisp.org>
22754
22755         New module 'ceil-ieee'.
22756         * modules/ceil-ieee: New file.
22757         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22758         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22759         ISO C 99 with IEC 60559.
22760         * m4/ceil-ieee.m4: New file.
22761         * modules/ceil (Files): Add lib/ceil.c.
22762         (Depends-on): Add 'float'.
22763         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22764         * lib/math.in.h (ceil): New declaration.
22765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22766         REPLACE_CEIL.
22767         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22768         * modules/ceil-ieee-tests: New file.
22769         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22770         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22771         * doc/posix-functions/ceil.texi: Mention the new module.
22772
22773 2010-12-21  Bruno Haible  <bruno@clisp.org>
22774
22775         New module 'floor-ieee'.
22776         * modules/floor-ieee: New file.
22777         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22778         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22779         ISO C 99 with IEC 60559.
22780         * m4/floor-ieee.m4: New file.
22781         * modules/floor (Files): Add lib/floor.c.
22782         (Depends-on): Add 'float'.
22783         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22784         * lib/math.in.h (floor): New declaration.
22785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22786         REPLACE_FLOOR.
22787         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22788         * modules/floor-ieee-tests: New file.
22789         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22790         * tests/test-math-c++.cc: Check the signature of 'floor'.
22791         * doc/posix-functions/floor.texi: Mention the new module.
22792
22793 2010-12-21  Bruno Haible  <bruno@clisp.org>
22794
22795         New module 'roundf-ieee'.
22796         * modules/roundf-ieee: New file.
22797         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22798         test whether roundf works according to ISO C 99 with IEC 60559.
22799         * m4/roundf-ieee.m4: New file.
22800         * modules/roundf-ieee-tests: New file.
22801         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22802         * tests/test-roundf1.c (main): Remove signbit tests.
22803         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22804         * doc/posix-functions/roundf.texi: Mention the new module.
22805
22806 2010-12-21  Bruno Haible  <bruno@clisp.org>
22807
22808         New module 'truncf-ieee'.
22809         * modules/truncf-ieee: New file.
22810         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22811         test whether truncf works according to ISO C 99 with IEC 60559.
22812         * m4/truncf-ieee.m4: New file.
22813         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22815         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22816         * modules/truncf-ieee-tests: New file.
22817         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22818         * tests/test-truncf1.c (main): Remove signbit tests.
22819         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22820         * doc/posix-functions/truncf.texi: Mention the new module.
22821
22822 2010-12-21  Bruno Haible  <bruno@clisp.org>
22823
22824         New module 'ceilf-ieee'.
22825         * modules/ceilf-ieee: New file.
22826         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22827         test whether ceilf works according to ISO C 99 with IEC 60559.
22828         * m4/ceilf-ieee.m4: New file.
22829         * modules/ceilf-ieee-tests: New file.
22830         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22831         * tests/test-ceilf1.c (main): Remove signbit tests.
22832         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22833         * doc/posix-functions/ceilf.texi: Mention the new module.
22834
22835 2010-12-21  Bruno Haible  <bruno@clisp.org>
22836
22837         New module 'floorf-ieee'.
22838         * modules/floorf-ieee: New file.
22839         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22840         test whether floorf works according to ISO C 99 with IEC 60559.
22841         * m4/floorf-ieee.m4: New file.
22842         * modules/floorf-ieee-tests: New file.
22843         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22844         * tests/test-floorf1.c (main): Remove signbit tests.
22845         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22846         * doc/posix-functions/floorf.texi: Mention the new module.
22847
22848 2010-12-21  Bruno Haible  <bruno@clisp.org>
22849
22850         Support for minus zero in autoconf macros.
22851         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22852         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22853         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22854         * tests/minus-zero.h: Update comments.
22855
22856 2010-12-21  Bruno Haible  <bruno@clisp.org>
22857
22858         Tests for module 'ceil'.
22859         * modules/ceil-tests: New file.
22860         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22861         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22862
22863 2010-12-21  Bruno Haible  <bruno@clisp.org>
22864
22865         Tests for module 'floor'.
22866         * modules/floor-tests: New file.
22867         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22868         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22869
22870 2010-12-21  Bruno Haible  <bruno@clisp.org>
22871
22872         math: Fix indentation.
22873         * lib/math.in.h (floorf): Fix indentation.
22874
22875 2010-12-21  Bruno Haible  <bruno@clisp.org>
22876
22877         Fix cross-compilation guesses on Solaris.
22878         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22879         not match "solaris2.10".
22880         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22881         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22882         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22883
22884 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22885
22886         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22887         This fixes a problem observed with the latest coreutils snapshot
22888         that caused a test to fail on Solaris 8.  src/csplit.c's call
22889         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22890         earlier, instead of returning the number of bytes that would have
22891         been generated; this causes csplit to incorrectly report memory
22892         exhaustion.
22893         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22894         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22895         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22896         comments to match.
22897         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22898         Fix typo in matching older versions of Solaris: "solaris2.10"
22899         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22900         only for guessing while cross-compiling.
22901         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22902
22903 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22904
22905         ftoastr: fix comment again
22906         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22908         Also, simplify example a bit by using flags = 0.
22909
22910 2010-12-20  Bruno Haible  <bruno@clisp.org>
22911
22912         round*, trunc*: Update documentation regarding glibc.
22913         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22914         * doc/posix-functions/round.texi: Likewise.
22915         * doc/posix-functions/roundl.texi: Likewise.
22916         * doc/posix-functions/truncf.texi: Likewise.
22917         * doc/posix-functions/trunc.texi: Likewise.
22918         * doc/posix-functions/truncl.texi: Likewise.
22919
22920 2010-12-20  Bruno Haible  <bruno@clisp.org>
22921
22922         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22923         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22924         * doc/posix-functions/round.texi: Likewise.
22925         * doc/posix-functions/roundl.texi: Likewise.
22926
22927 2010-12-20  Bruno Haible  <bruno@clisp.org>
22928
22929         ttyname_r: Add missing declaration on HP-UX 11.
22930         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22931         HAVE_TTYNAME_R.
22932         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22933         declared. Set HAVE_TTYNAME_R always.
22934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22935         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22936         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22937         HAVE_TTYNAME_R.
22938         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22939
22940 2010-12-20  Bruno Haible  <bruno@clisp.org>
22941
22942         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22943         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22944         * doc/posix-functions/getlogin_r.texi: Likewise.
22945         * tests/test-getlogin.c: Include <errno.h>.
22946         (main): Avoid test failure on HP-UX 11.11.
22947         * tests/test-getlogin_r.c (main): Likewise.
22948
22949 2010-12-20  Bruno Haible  <bruno@clisp.org>
22950
22951         getlogin_r: Add missing declaration on HP-UX 11.
22952         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22953         declared also when it exists as a function.
22954         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22955
22956 2010-12-20  Bruno Haible  <bruno@clisp.org>
22957
22958         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22959         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22960         through wcrtomb.
22961
22962 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22963
22964         ftoastr: fix comment
22965         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22967
22968 2010-12-19  Bruno Haible  <bruno@clisp.org>
22969
22970         isnan: Ensure it is a macro.
22971         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22972         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22973         Solaris.
22974
22975 2010-12-19  Bruno Haible  <bruno@clisp.org>
22976
22977         ldexpl test: Fix link error on OSF/1 5.1.
22978         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22979
22980 2010-12-19  Bruno Haible  <bruno@clisp.org>
22981
22982         wctype: Make it work in C++ mode on OSF/1 5.1.
22983         * lib/wctype.in.h (iswblank): Declare but not define here.
22984         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22985         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22986         * modules/wctype (Files): Add lib/iswblank.c.
22987
22988 2010-12-19  Bruno Haible  <bruno@clisp.org>
22989
22990         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22991         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22992         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22993
22994 2010-12-19  Bruno Haible  <bruno@clisp.org>
22995
22996         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22997         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22998         _POSIX_PII_SOCKET.
22999         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23000         * doc/posix-functions/recvfrom.texi: Likewise.
23001         * doc/posix-functions/send.texi: Likewise.
23002         * doc/posix-functions/sendto.texi: Likewise.
23003
23004 2010-12-19  Bruno Haible  <bruno@clisp.org>
23005
23006         tcgetsid: Add missing declaration on OSF/1 5.1.
23007         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23008         HAVE_TCGETSID.
23009         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23010         Don't set HAVE_TCGETSID.
23011         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23012         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23013         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23014         HAVE_TCGETSID.
23015         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23016
23017 2010-12-19  Bruno Haible  <bruno@clisp.org>
23018
23019         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23020         * lib/stdio.in.h: During the include_next statement, let recursive
23021         includes of this file include only the system header file.
23022
23023 2010-12-19  Bruno Haible  <bruno@clisp.org>
23024
23025         iconv_open: Fix regression from 2010-12-04.
23026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23027         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23028
23029 2010-12-19  Bruno Haible  <bruno@clisp.org>
23030
23031         stdbool test: Avoid a gcc warning.
23032         * tests/test-stdbool.c (main): Fail if e1 is false.
23033         Reported by Jim Meyering.
23034
23035 2010-12-19  Jim Meyering  <meyering@redhat.com>
23036
23037         setenv: restore to working order
23038         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23039         mistakenly removed.
23040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23041         HAVE_SETENV.
23042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23043         HAVE_SETENV.
23044
23045 2010-12-19  Bruno Haible  <bruno@clisp.org>
23046
23047         Document some different function declarations on OSF/1 5.1.
23048         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23049         * doc/posix-functions/inet_ntop.texi: Likewise.
23050         * doc/posix-functions/gethostname.texi: Likewise.
23051         * lib/unistd.in.h (gethostname): Update comment.
23052
23053 2010-12-19  Bruno Haible  <bruno@clisp.org>
23054
23055         doc: Mention vasprintf-posix module.
23056         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23057         the 'vasprintf-posix' module.
23058         * doc/glibc-functions/vasprintf.texi: Likewise.
23059
23060 2010-12-19  Bruno Haible  <bruno@clisp.org>
23061
23062         unsetenv: Add missing declaration on OSF/1 5.1.
23063         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23064         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23065         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23067         not HAVE_UNSETENV.
23068         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23069         HAVE_UNSETENV.
23070         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23071
23072 2010-12-19  Bruno Haible  <bruno@clisp.org>
23073
23074         setenv: Add missing declaration on OSF/1 5.1.
23075         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23076         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23077         declared. Don't set HAVE_SETENV.
23078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23079         not HAVE_SETENV.
23080         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23081         HAVE_SETENV.
23082         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23083
23084 2010-12-19  Bruno Haible  <bruno@clisp.org>
23085
23086         nl_langinfo tests: Avoid gcc warning.
23087         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23088
23089 2010-12-19  Bruno Haible  <bruno@clisp.org>
23090
23091         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23092         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23093         _GL_CXXALIAS_SYS.
23094
23095 2010-12-19  Bruno Haible  <bruno@clisp.org>
23096
23097         stdbool: Relax test.
23098         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23099         address to 'bool' work in static initializer, for compilers other than
23100         GCC.
23101
23102 2010-12-19  Bruno Haible  <bruno@clisp.org>
23103
23104         ftello: Add missing declaration on OSF/1 5.1.
23105         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23106         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23108         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23109         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23110
23111 2010-12-19  Bruno Haible  <bruno@clisp.org>
23112
23113         fseeko: Add missing declaration on OSF/1 5.1.
23114         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23115         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23117         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23118         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23119
23120 2010-12-19  Bruno Haible  <bruno@clisp.org>
23121
23122         fchdir: Add missing declaration on OSF/1 5.1.
23123         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23126         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23127         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23128
23129 2010-12-19  Bruno Haible  <bruno@clisp.org>
23130
23131         relocatable-prog-wrapper: Separate from relocatable-prog.
23132         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23133         uninstall-relocwrapper rule here.
23134         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23135         Reported by Ian Beckwith <ianb@erislabs.net>.
23136
23137 2010-12-19  Bruno Haible  <bruno@clisp.org>
23138
23139         unistr/u8-mbsnlen: Add missing dependency.
23140         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23141         Reported by Ian Beckwith <ianb@erislabs.net>.
23142
23143 2010-12-19  Bruno Haible  <bruno@clisp.org>
23144
23145         iconv: Make it possible again to use this module without 'iconv-h'.
23146         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23147         if it is not defined.
23148         Reported by Ian Beckwith <ianb@erislabs.net>.
23149
23150 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23151
23152         acl: port to Solaris 8 when copying from tmpfs to ufs
23153         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23154         error number.  Problem observed on Solaris 8 with latest
23155         coreutils, with "mv A B", where A is on a tmpfs file system and B
23156         is on a ufs file system.  This caused coreutils' mv/part-symlink
23157         test to fail.
23158
23159         tests: set fail=0 at start
23160         * tests/init.sh (setup_): Move fail=0 initialization here ...
23161         (mktempd_): ... from here, so that tests can rely on fail being
23162         set to 0 initially.  This fixes a problem in coreutils; see:
23163         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23164
23165 2010-12-18  Bruno Haible  <bruno@clisp.org>
23166
23167         memmem-simple: Stylistic changes.
23168         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23169         Fix preprocessor directive indentation.
23170
23171 2010-12-15  Pádraig Brady <P@draigBrady.com>
23172
23173         memmem, memmem-simple: reorganize and expand empty needle check
23174         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23175         functional checks to memmem-simple so that one has a fully functional
23176         memmem by using just this module.
23177         Restrict the performance only check to the memmem module.
23178         Also expand the empty needle check to ensure the correct
23179         pointer is returned, not just a non NULL pointer.
23180         * doc/glibc-functions/memmem.texi: Rearrange the portability
23181         documentation to correlate with the rearranged checks.
23182         Clarify exactly how the memmem and memmem-simple modules
23183         relate to each other.
23184
23185 2010-12-15  Pádraig Brady <P@draigBrady.com>
23186             Bruno Haible  <bruno@clisp.org>
23187
23188         Improve cross-compilation guesses for uClibc.
23189         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23190         that uClibc does not have the glibc bug.
23191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23192         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23193
23194 2010-12-14  Eric Blake  <eblake@redhat.com>
23195
23196         configmake: provide fallbacks for oldest supported autotools
23197         * m4/configmake.m4: New file.
23198         * modules/configmake (Files): Ship it.
23199         (configure.ac): Use it to guarantee fallbacks.
23200
23201 2010-12-13  Pádraig Brady <P@draigBrady.com>
23202
23203         read-file: Improve handling of large files
23204         * lib/read-file.c (fread_file): Minimize realloc()s
23205         for regular files, and better manage sizes around SIZE_MAX.
23206
23207 2010-12-13  Eric Blake  <eblake@redhat.com>
23208
23209         cloexec, fcntl: relax license
23210         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23211         consent from all contributors.
23212         * modules/fcntl (License): Likewise.
23213
23214 2010-12-10  Bruno Haible  <bruno@clisp.org>
23215
23216         Tests for module 'pipe-posix'.
23217         * modules/pipe-posix-tests: New file.
23218         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23219
23220 2010-12-10  Bruno Haible  <bruno@clisp.org>
23221
23222         pipe-posix: Make it work in C++ mode.
23223         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23224         (pipe): Use common idiom, not a macro definition.
23225         * lib/pipe.c: New file.
23226         * m4/pipe.m4: New file.
23227         * modules/pipe-posix (Description): Enhance.
23228         (Files): Add lib/pipe.c, m4/pipe.m4.
23229         (configure.ac): Invoke gl_FUNC_PIPE.
23230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23231         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23232         * tests/test-unistd-c++.cc: Check the signature of pipe.
23233
23234 2010-12-10  Bruno Haible  <bruno@clisp.org>
23235
23236         Rename module 'pipe' to 'spawn-pipe'.
23237         * modules/spawn-pipe: New file, renamed from modules/pipe.
23238         (Files, configure.ac, Makefile.am): Update.
23239         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23240         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23241         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23242         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23243         "spawn-pipe.h" instead of "pipe.h".
23244         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23245         to gl_SPAWN_PIPE.
23246         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23247         (Files, Makefile.am): Update.
23248         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23249         Update.
23250         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23251         Include "spawn-pipe.h" instead of "pipe.h".
23252         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23253         * lib/javacomp.c: Likewise.
23254         * lib/javaversion.c: Likewise.
23255         * lib/pipe-filter-gi.c: Likewise.
23256         * lib/pipe-filter-ii.c: Likewise.
23257         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23258         * modules/javacomp (Depends-on): Likewise.
23259         * modules/javaversion (Depends-on): Likewise.
23260         * modules/pipe-filter-gi (Depends-on): Likewise.
23261         * modules/pipe-filter-ii (Depends-on): Likewise.
23262         * MODULES.html.sh (Executing programs): Update.
23263         * NEWS: Mention the change.
23264
23265 2010-12-10  Eric Blake  <eblake@redhat.com>
23266
23267         pipe-posix: new module
23268         * modules/pipe-posix: New file.
23269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23270         (gl_UNISTD_H): Check for declaration.
23271         * modules/unistd (Makefile.am): Substitute it.
23272         * lib/unistd.in.h (pipe): Provide it for mingw.
23273         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23274         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23275
23276 2010-12-07  Bruno Haible  <bruno@clisp.org>
23277
23278         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23279         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23280         u8_strcmp_gnu.
23281         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23282
23283 2010-12-06  Bruno Haible  <bruno@clisp.org>
23284
23285         Update internal documentation.
23286         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23287
23288 2010-12-04  Bruno Haible  <bruno@clisp.org>
23289
23290         Put more information about failed tests into the test return codes.
23291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23292         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23293         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23295         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23296         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23297         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23298         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23299         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23301         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23302         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23303         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23304         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23305         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23306         returns a bit mask.
23307         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23308         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23309         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23310         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23311         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23312         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23315         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23316         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23317         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23318         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23319         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23320         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23321         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23322         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23323         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23324         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23325         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23326         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23328         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23330         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23331         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23332         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23333         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23334         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23335         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23336         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23337         gl_PRINTF_PRECISION): Likewise.
23338         * m4/regex.m4 (gl_REGEX): Likewise.
23339         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23340         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23341         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23342         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23343         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23344         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23345         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23346         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23347         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23348         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23349         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23350         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23351         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23352         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23353         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23354         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23355         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23356         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23358         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23359         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23360         enumerated value.
23361         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23362
23363 2010-12-04  Bruno Haible  <bruno@clisp.org>
23364
23365         Update for Solaris 11 2010-11.
23366         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23367         Express, released in November 2010.
23368
23369 2010-12-04  Bruno Haible  <bruno@clisp.org>
23370
23371         nproc: Relax license.
23372         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23373         and Paul Eggert.
23374         Requested by Ludovic Courtès <ludo@gnu.org>.
23375
23376 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23377
23378         utimecmp: fine-grained src to nearby coarse-grained dest
23379
23380         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23381         and the source is on a file system with higher-resolution time
23382         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23383         not work, and the time stamps are close together, the algorithm to
23384         determine the exact resolution from the read-back mtime was buggy:
23385         it had a "!=" where it should have had an "==".  This bug has been
23386         in the code ever since it was introduced to gnulib.
23387         Problem reported by Dan Jacobson in
23388         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23389
23390 2010-11-30  Bruno Haible  <bruno@clisp.org>
23391
23392         strerror_r-posix: Fix autoconf test.
23393         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23394
23395 2010-11-28  Bruno Haible  <bruno@clisp.org>
23396             Paul Eggert  <eggert@cs.ucla.edu>
23397
23398         Tests for module 'getdomainname'.
23399         * modules/getdomainname-tests: New file.
23400         * tests/test-getdomainname.c: New file, based on
23401         tests/test-gethostname.c.
23402
23403 2010-11-28  Bruno Haible  <bruno@clisp.org>
23404             Paul Eggert  <eggert@cs.ucla.edu>
23405
23406         getdomainname: Use the system function when possible.
23407         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23408         (getdomainname): Replace if needed. Provide the declaration if it is
23409         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23410         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23411         (getdomainname): When the system has getdomainname, call the system
23412         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23413         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23414         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23415         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23416         the function if its second argument is of type 'int' or if it is found
23417         in libnsl.
23418         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23419         <sys/systeminfo.h> and sysinfo().
23420         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23422         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23423         HAVE_GETDOMAINNAME.
23424         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23425         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23426         * doc/glibc-functions/getdomainname.texi: Document the problems with
23427         the getdomainname declaration.
23428
23429 2010-11-28  Bruno Haible  <bruno@clisp.org>
23430
23431         sys_socket: Ensure ss_family field on AIX.
23432         * lib/sys_socket.in.h (ss_family): New macro definition.
23433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23434         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23435         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23436         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23437         * modules/sys_socket (Makefile.am): Substitute
23438         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23439         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23440
23441 2010-11-27  Bruno Haible  <bruno@clisp.org>
23442
23443         readline: Improve configure output.
23444         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23445         "checking for readline..." result understandable.
23446
23447 2010-11-27  Bruno Haible  <bruno@clisp.org>
23448
23449         *printf-posix: Detect a bug on Solaris 10/x86.
23450         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23451         for floating-point output.
23452         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23453         directive.
23454         * tests/test-snprintf-posix.h (test_function): Likewise.
23455         * tests/test-sprintf-posix.h (test_function): Likewise.
23456         * tests/test-vasprintf-posix.c (test_function): Likewise.
23457         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23458         * doc/posix-functions/printf.texi: Likewise.
23459         * doc/posix-functions/snprintf.texi: Likewise.
23460         * doc/posix-functions/sprintf.texi: Likewise.
23461         * doc/posix-functions/vfprintf.texi: Likewise.
23462         * doc/posix-functions/vprintf.texi: Likewise.
23463         * doc/posix-functions/vsnprintf.texi: Likewise.
23464         * doc/posix-functions/vsprintf.texi: Likewise.
23465         * doc/glibc-functions/obstack_printf.texi: Likewise.
23466         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23467
23468 2010-11-27  Bruno Haible  <bruno@clisp.org>
23469
23470         Fix link error when module libunistring-optional is in use.
23471         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23472         * modules/striconveha-tests (Makefile.am): Likewise.
23473
23474 2010-11-27  Bruno Haible  <bruno@clisp.org>
23475
23476         regex: Mention link dependencies.
23477         * modules/regex (Link): New section.
23478         * modules/rpmatch (Link): Likewise.
23479         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23480
23481 2010-11-27  Bruno Haible  <bruno@clisp.org>
23482
23483         ftoastr: Fix compilation error on Solaris.
23484         * lib/ftoastr.c: Include <config.h>.
23485
23486 2010-11-27  Bruno Haible  <bruno@clisp.org>
23487
23488         getloadavg: Update documentation.
23489         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23490
23491 2010-11-27  Bruno Haible  <bruno@clisp.org>
23492
23493         sys_socket: Fix test whether the functions are declared.
23494         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23495         not <sys/select.h>.
23496
23497 2010-11-27  Bruno Haible  <bruno@clisp.org>
23498
23499         getpass: Make sure to get system declaration on some platforms.
23500         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23501         gl_USE_SYSTEM_EXTENSIONS.
23502         * modules/getpass (Depends-on): Add extensions.
23503
23504 2010-11-26  Bruno Haible  <bruno@clisp.org>
23505
23506         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23507         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23508         'iconv' module is present.
23509         (ICONV_CONST): New macro.
23510         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23511         ICONV_CONST.
23512         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23513         set ICONV_CONST.
23514         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23515         here.
23516         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23517         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23518         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23519         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23520         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23521         present.
23522
23523 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23524
23525         ftoastr: comment fix
23526         * lib/ftoastr.c: "little" -> "little or no" in comment
23527
23528 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23529
23530         stdint: port to GCC 4.3 + OSX + Octave
23531         On this platform, stdint.h is buggy and defines int64_t to long
23532         long int.  The replacement defined it to long int, causing
23533         problems with C++ style name mangling.  Instead, trust the system
23534         definition if INT64_MAX is defined, and likewise for the unsigned
23535         variant.   Problem reported by Jarno Rajahalme in
23536         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23537         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23538         and don't mess with int64_t and INT64_MAX in this case.
23539         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23540
23541 2010-11-24  Bruno Haible  <bruno@clisp.org>
23542
23543         doc: Corrections regarding MacOS X 10.4 and 10.5.
23544         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23545         MacOS X.
23546         Reported by Simon Josefsson.
23547
23548 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23549
23550         Uninstall ".bin" files installed by relocwrapper.
23551         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23552         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23553         unless it is already there.
23554
23555 2010-11-21  Bruno Haible  <bruno@clisp.org>
23556
23557         Update for NetBSD 5.0.
23558         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23559         NetBSD; the test fails on NetBSD 5.0.
23560         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23561         about NetBSD.
23562
23563 2010-11-21  Bruno Haible  <bruno@clisp.org>
23564
23565         Update for HP-UX 11.23 and HP-UX 11.31.
23566         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23567         HP-UX.
23568
23569 2010-11-21  Bruno Haible  <bruno@clisp.org>
23570
23571         Update for MacOS X 10.5.
23572         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23573         MacOS X; the test fails on MacOS X 10.5.8.
23574         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23575         about MacOS X.
23576
23577 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23578
23579         bootstrap: add bootstrap_sync option.
23580         See discussion at
23581         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23582         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23583         * build-aux/bootstrap: Accept --bootstrap-sync to update
23584         bootstrap if it is not identical to the local gnulib's
23585         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23586         enable this by default.  Accept --no-bootstrap-sync to disable
23587         it.
23588
23589 2010-11-20  Bruno Haible  <bruno@clisp.org>
23590
23591         Ensure that <features.h> is included before __GLIBC__ is tested.
23592         * lib/printf-parse.h: Include <features.h>.
23593         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23594         Reported by Mike Frysinger <vapier@gentoo.org>.
23595
23596         Ensure that <features.h> is included before __GLIBC__ is tested.
23597         * lib/wchar.in.h: Include <features.h>.
23598         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23599         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23600         Reported by Mike Frysinger <vapier@gentoo.org>.
23601
23602         Ensure that <features.h> is included before __GLIBC__ is tested.
23603         * lib/arpa_inet.in.h: Include <features.h>.
23604         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23605         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23606         Reported by Mike Frysinger <vapier@gentoo.org>.
23607
23608         Ensure that <features.h> is included before __GLIBC__ is tested.
23609         * build-aux/link-warning.h: Include <features.h>.
23610         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23611         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23612         Reported by Mike Frysinger <vapier@gentoo.org>.
23613
23614         Ensure that <features.h> is included before __GLIBC__ is tested.
23615         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23616         Reported by Mike Frysinger <vapier@gentoo.org>.
23617
23618 2010-11-20  Bruno Haible  <bruno@clisp.org>
23619
23620         memmem: Fix autoconf test.
23621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23622
23623 2010-11-20  Bruno Haible  <bruno@clisp.org>
23624
23625         Port to uClibc.
23626         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23627         * lib/fcntl.in.h: Likewise.
23628         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23629         * lib/mbrtowc.c (mbrtowc): Likewise.
23630         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23631         * lib/strerror_r.c: Likewise.
23632         * lib/unistr/u8-strnlen.c: Likewise.
23633         * lib/vasnprintf.c (decimal_point_char): Likewise.
23634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23635         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23636         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23637         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23638         * tests/test-sigaction.c (handler, main): Likewise.
23639         * lib/freading.h: Treat uClibc like a non-glibc platform.
23640         * lib/freading.c: Likewise.
23641         * lib/gettext.h: Likewise.
23642         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23643         Likewise.
23644         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23645         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23646         * lib/propername.c (proper_name_utf8): Likewise.
23647         * lib/spawn.in.h: Likewise.
23648         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23649         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23650         mem_cd_iconveh_internal): Likewise.
23651         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23652         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23653         strstr, strcasestr): Likewise.
23654         * lib/unicodeio.c (unicode_to_mb): Likewise.
23655         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23656         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23657         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23658         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23659         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23660         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23661         * lib/unistr/u8-stpncpy.c: Likewise.
23662         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23663         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23664         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23665         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23666         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23667         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23668         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23670         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23671         Likewise.
23672         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23673         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23674         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23677         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23678         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23679         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23680         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23681         * tests/test-striconveha.c (main): Likewise.
23682         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23683         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23684         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23685         * doc/posix-functions/getline.texi: Likewise.
23686         Reported by Mike Frysinger <vapier@gentoo.org>.
23687
23688 2010-11-20  Bruno Haible  <bruno@clisp.org>
23689
23690         nproc: Fix condition.
23691         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23692         HAVE_PTHREAD_AFFINITY_NP.
23693
23694 2010-11-20  Bruno Haible  <bruno@clisp.org>
23695
23696         Fix a comment.
23697         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23698
23699 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23700
23701         ftoastr: don't assume snprintf
23702         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23703         Implement a subset of snprintf here, by using sprintf safely.
23704         * modules/ftoastr (Depends-on): Remove snprintf.
23705
23706 2010-11-19  Jim Meyering  <meyering@redhat.com>
23707
23708         test-rename.h: fix compilation failure
23709         * tests/test-rename.h (test_rename): Add omitted "}".
23710
23711 2010-11-17  Jim Meyering  <meyering@redhat.com>
23712
23713         maint.mk: add a URL discussing the no-@acronym policy
23714         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23715
23716 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23717
23718         ftoastr: depend on snprintf, improve comments
23719         * lib/ftoastr.c: Also mention Loitsch's draft.
23720         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23721         needed in the current implementation, but it might simplify
23722         speeding up the code later.
23723         * modules/ftoastr: Depend on snprintf; this improves portability.
23724         Suggested by Bruno Haible in the same email.
23725
23726         ftoastr: port to hosts lacking strtof and strtold
23727         Problem reported by Bruno Haible in
23728         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23729         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23730         environment and strtold (and presumably strtof) are not available.
23731         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23732         (configure.ac): Require gl_C99_STRTOLD.
23733
23734 2010-11-18  Bruno Haible  <bruno@clisp.org>
23735
23736         c-strtold: Avoid link error on AIX 7.
23737         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23738         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23739         (gl_C_STRTOLD): Test whether strtold_l exists.
23740         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23741
23742 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23743
23744         intprops: new macro INT_BITS_STRLEN_BOUND
23745         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23746         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23747         not exposed.  Also, it uses a slightly tighter bound than before;
23748         though this makes no practical difference, we might as well be as
23749         tight as we easily can.
23750
23751         ftoastr: new module, for lossless conversion of floats to short strings
23752         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23753         * modules/ftoastr: New files.
23754
23755 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23756
23757         bootstrap: port to Solaris sed
23758         * build-aux/bootstrap (get_version): Port to Solaris sed.
23759         See Ralf Wildenhues's note in
23760         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23761
23762 2010-11-14  Jim Meyering  <meyering@redhat.com>
23763
23764         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23765         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23766         and move definition closer to sole use.
23767
23768 2010-11-13  Jim Meyering  <meyering@redhat.com>
23769
23770         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23771         Now we require at least autoconf-2.59, which means the work-around
23772         is no longer needed.
23773         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23774         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23775         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23776         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23777         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23778
23779 2010-11-13  Bruno Haible  <bruno@clisp.org>
23780
23781         rename, renameat: Avoid test failures at NFS mounted locations.
23782         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23783         functions.
23784         (test_rename): Use assert_nonexistent.
23785         * tests/test-rename.c: Include <dirent.h>.
23786         * tests/test-renameat.c: Likewise.
23787         Reported by Gary V. Vaughan <gary@gnu.org>.
23788
23789         rename, renameat: Document Linux bug with NFS
23790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23791         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23792         * doc/posix-functions/renameat.texi: Likewise.
23793         Suggested by Eric Blake.
23794
23795 2010-11-13  Bruno Haible  <bruno@clisp.org>
23796
23797         rename test: Add comments.
23798         * tests/test-rename.h (test_rename): Add structure and comments.
23799
23800 2010-11-13  Eric Blake  <eblake@redhat.com>
23801
23802         maintainer-makefile: cover a few more files
23803         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23804         scripts generated within C files, for libvirt.
23805
23806 2010-11-13  Bruno Haible  <bruno@clisp.org>
23807
23808         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23809         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23810         character, return the number of bytes that belong together, not always
23811         1.
23812         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23813         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23814         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23815         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23816         number of bytes of an invalid character.
23817         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23818         (main): Invoke it.
23819         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23820         results.
23821         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23822         malformed byte sequences.
23823         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23824         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23825         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23826         Reported by Ben Pfaff and Paolo Bonzini.
23827
23828 2010-11-13  Bruno Haible  <bruno@clisp.org>
23829
23830         openat: Work around glibc bug with fchownat() and empty file names.
23831         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23832         (gl_FUNC_FCHOWNAT): Invoke it.
23833         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23834         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23835         Reported by Gary V. Vaughan <gary@gnu.org>.
23836
23837 2010-11-13  Bruno Haible  <bruno@clisp.org>
23838
23839         openat: Ensure autoconf macro ordering.
23840         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23841         gl_USE_SYSTEM_EXTENSIONS.
23842         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23843
23844 2010-11-13  Bruno Haible  <bruno@clisp.org>
23845
23846         Update comments.
23847         * lib/unistr/u8-check.c: Update file name in comments.
23848         * lib/unistr/u8-mblen.c: Likewise.
23849         * lib/unistr/u8-prev.c: Likewise.
23850         * lib/unistr/u8-strmblen.c: Likewise.
23851         * lib/unistr/u8-strmbtouc.c: Likewise.
23852
23853 2010-11-13  Jim Meyering  <meyering@redhat.com>
23854
23855         tests: avoid test failure on Solaris 10 due to lack of PATH export
23856         * tests/test-update-copyright.sh: Don't forget to export PATH.
23857
23858         init.sh: ensure that IFS is defined, just in case...
23859         * tests/init.sh (setup_): Ensure that IFS is defined,
23860         so that saving and restoring it works as expected.  This
23861         appears to be useful at least for an old version of dash
23862         from a long time ago (RH 6).  See here for details:
23863         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23864
23865         maint.mk: tighten "test a == b" check
23866         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23867         test to files that contain something like #!/bin/sh.
23868         Without this, coreutils would get two false positives in
23869         the comments of C source files.
23870
23871 2010-11-12  Eric Blake  <eblake@redhat.com>
23872
23873         bootstrap: fix typo in previous attempt
23874         * build-aux/bootstrap (buildreq): Correct the grouping.
23875         Reported by Paul Eggert.
23876
23877         maintainer-makefile: prohibit test x == x
23878         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23879         Based on a report by Matthias Bolte.
23880
23881         bootstrap: allow FreeBSD gzip
23882         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23883         which has no '.' and goes to stderr.
23884         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23885         Reported by Matthias Bolte.
23886
23887         maintainer-makefile: check for i18n setup
23888         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23889         will likely work.
23890
23891 2010-11-12  Bruno Haible  <bruno@clisp.org>
23892
23893         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23894         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23895         * lib/nanosleep.c (nanosleep): Likewise.
23896
23897 2010-11-11  Bruno Haible  <bruno@clisp.org>
23898
23899         fcntl-h: Fix for use of C++ on glibc systems.
23900         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23901         also on glibc systems in C++ mode.
23902         Reported by Gary V. Vaughan <gary@gnu.org>.
23903
23904 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23905
23906         mknod: avoid false failure with dash
23907         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23908
23909 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23910
23911         unlink: Fix "is it should" typo in diagnostic.
23912         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23914
23915 2010-11-11  Bruno Haible  <bruno@clisp.org>
23916
23917         Tests for module 'strerror_r-posix'.
23918         * modules/strerror_r-posix-tests: New file.
23919         * tests/test-strerror_r.c: New file.
23920         * tests/test-string-c++.cc: Check the signature of strerror_r.
23921
23922         New module 'strerror_r-posix'.
23923         * lib/string.in.h (strerror_r): New declaration.
23924         * lib/strerror_r.c: New file.
23925         * m4/strerror_r.m4: New file.
23926         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23927         of strerror_r.
23928         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23929         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23930         * modules/strerror_r-posix: New file.
23931         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23932         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23933         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23934         portability problems.
23935
23936 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23937
23938         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23939         line is also considered for output. Quoted function name in shell
23940         command, so temporary files for functions like MyClass::operator()
23941         are removed correctly without errors.
23942
23943 2010-11-09  Bruno Haible  <bruno@clisp.org>
23944
23945         * doc/posix-functions/strerror.texi: List more failing platforms.
23946
23947         * doc/posix-functions/strerror.texi: Add a comment.
23948
23949 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23950
23951         fdopendir: fix bug on MacOS X when low on file descriptors
23952
23953         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23954         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23955         All callers changed.
23956         (fdopendir): Invoke save_cwd at the top level, not after using
23957         multiple dup() calls to use up file descriptors.  Then retry
23958         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23959         less than the maximum number of open file descriptors, because
23960         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23961         on Mac OS X 10.6.4 for tar 1.24
23962         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23963         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23964         and for tar 1.25
23965         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23966
23967 2010-11-07  Bruno Haible  <bruno@clisp.org>
23968
23969         vasnprintf: Support I flag on glibc systems.
23970         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23971         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23972         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23973         snprintf function.
23974         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23975         glibc systems.
23976         * tests/test-vasnprintf-posix3.c: New file.
23977         * modules/vasnprintf-posix-tests (Files): Add it.
23978         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23979
23980 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23981
23982         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23983         * MODULES.html.sh: For compiler warnings, use name
23984         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23985
23986 2010-11-05  Eric Blake  <eblake@redhat.com>
23987
23988         ceil, floor: avoid spurious failure with icc
23989         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23990         [denormals-as-zero] when optimizing without -mieee-fp option.
23991         * tests/test-floorf2.c (floorf_reference): Likewise.
23992         * tests/test-ceilf1.c (dummy): New function.
23993         (main): Use it to outsmart icc's optimization.
23994         * tests/test-floorf1.c (dummy, main): Likewise.
23995
23996         tests: require working signbit
23997         * modules/ceilf-tests (Depends-on): Add signbit.
23998         * modules/ceill-tests (Depends-on): Likewise.
23999         * modules/floorf-tests (Depends-on): Likewise.
24000         * modules/floorl-tests (Depends-on): Likewise.
24001         * modules/round-tests (Depends-on): Likewise.
24002         * modules/roundf-tests (Depends-on): Likewise.
24003         * modules/roundl-tests (Depends-on): Likewise.
24004         * modules/trunc-tests (Depends-on): Likewise.
24005         * modules/truncf-tests (Depends-on): Likewise.
24006         * modules/truncl-tests (Depends-on): Likewise.
24007
24008         strtod: work around icc bug
24009         * lib/strtod.c (minus_zero): Define to working value.
24010         (strtod): Use it to avoid icc bug.
24011
24012         copysign: enhance tests
24013         * modules/copysign-tests (Files): Add minus-zero.h.
24014         * tests/test-copysign.c (main): Also test zeros.
24015
24016 2010-11-04  Eric Blake  <eblake@redhat.com>
24017
24018         ceil, floor, round, trunc: enhance tests of -0
24019         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24020         * tests/test-ceill.c (main): Likewise.
24021         * tests/test-floorf1.c (main): Likewise.
24022         * tests/test-floorl.c (main): Likewise.
24023         * tests/test-round1.c (main): Likewise.
24024         * tests/test-roundf1.c (main): Likewise.
24025         * tests/test-roundl.c (main): Likewise.
24026         * tests/test-trunc1.c (main): Likewise.
24027         * tests/test-truncf1.c (main): Likewise.
24028         * tests/test-truncl.c (main): Likewise.
24029
24030 2010-11-04  Eric Blake  <eblake@redhat.com>
24031
24032         frexp, tests: work around ICC bug with -zero
24033         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24034         works with more compilers.
24035         * tests/minus-zero.h: New file.
24036         * modules/ceilf-tests (Files): Include it.
24037         * modules/ceill-tests (Files): Likewise.
24038         * modules/floorf-tests (Files): Likewise.
24039         * modules/floorl-tests (Files): Likewise.
24040         * modules/frexp-nolibm-tests (Files): Likewise.
24041         * modules/frexp-tests (Files): Likewise.
24042         * modules/frexpl-nolibm-tests (Files): Likewise.
24043         * modules/frexpl-tests (Files): Likewise.
24044         * modules/isnan-tests (Files): Likewise.
24045         * modules/isnand-nolibm-tests (Files): Likewise.
24046         * modules/isnand-tests (Files): Likewise.
24047         * modules/isnanf-nolibm-tests (Files): Likewise.
24048         * modules/isnanf-tests (Files): Likewise.
24049         * modules/isnanl-nolibm-tests (Files): Likewise.
24050         * modules/isnanl-tests (Files): Likewise.
24051         * modules/round-tests (Files): Likewise.
24052         * modules/roundf-tests (Files): Likewise.
24053         * modules/roundl-tests (Files): Likewise.
24054         * modules/ldexpl-tests (Files): Likewise.
24055         * modules/signbit-tests (Files): Likewise.
24056         * modules/snprintf-posix-tests (Files): Likewise.
24057         * modules/sprintf-posix-tests (Files): Likewise.
24058         * modules/strtod-tests (Files): Likewise.
24059         * modules/trunc-tests (Files): Likewise.
24060         * modules/truncf-tests (Files): Likewise.
24061         * modules/truncl-tests (Files): Likewise.
24062         * modules/vsnprintf-posix-tests (Files): Likewise.
24063         * modules/vsprintf-posix-tests (Files): Likewise.
24064         * modules/vasnprintf-posix-tests (Files): Likewise.
24065         * modules/vasprintf-posix-tests (Files): Likewise.
24066         * tests/test-ceilf1.c (main): Use it.
24067         * tests/test-ceill.c (main): Likewise.
24068         * tests/test-floorf1.c (main): Likewise.
24069         * tests/test-floorl.c (main): Likewise.
24070         * tests/test-frexp.c (main): Likewise.
24071         * tests/test-frexpl.c (main): Likewise.
24072         * tests/test-isnan.c (main): Likewise.
24073         * tests/test-isnand.h (main): Likewise.
24074         * tests/test-isnanf.h (main): Likewise.
24075         * tests/test-isnanl.h (main): Likewise.
24076         * tests/test-ldexpl.c (main): Likewise.
24077         * tests/test-round.c (main): Likewise.
24078         * tests/test-roundf.c (main): Likewise.
24079         * tests/test-roundl.c (main): Likewise.
24080         * tests/test-signbit.c (test_signbitf, test_signbitd)
24081         (test_signbitl): Likewise.
24082         * tests/test-snprintf-posix.h (test_function): Likewise.
24083         * tests/test-sprintf-posix.h (test_function): Likewise.
24084         * tests/test-strtod.c (main): Likewise.
24085         * tests/test-trunc1.c (main): Likewise.
24086         * tests/test-truncf1.c (main): Likewise.
24087         * tests/test-truncl.c (main): Likewise.
24088
24089         isnanl: work around icc bug
24090         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24091
24092 2010-11-03  Eric Blake  <eblake@redhat.com>
24093
24094         tests: fix compiler warnings
24095         * tests/test-getopt.h (test_getopt): Fix condition.
24096         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24097         * tests/test-pipe2.c (main): Likewise.
24098         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24099
24100         utimens: fix broken m4 test
24101         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24102
24103 2010-10-28  Bruno Haible  <bruno@clisp.org>
24104
24105         posix_spawn*, getdtablesize: Relax license.
24106         * modules/posix_spawn (License): Change to LGPLv2+.
24107         * modules/posix_spawnp (License): Likewise.
24108         * modules/posix_spawn-internal (License): Likewise.
24109         * modules/posix_spawnattr_init (License): Likewise.
24110         * modules/posix_spawnattr_getflags (License): Likewise.
24111         * modules/posix_spawnattr_setflags (License): Likewise.
24112         * modules/posix_spawnattr_getpgroup (License): Likewise.
24113         * modules/posix_spawnattr_setpgroup (License): Likewise.
24114         * modules/posix_spawnattr_getschedparam (License): Likewise.
24115         * modules/posix_spawnattr_setschedparam (License): Likewise.
24116         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24117         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24118         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24119         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24120         * modules/posix_spawnattr_getsigmask (License): Likewise.
24121         * modules/posix_spawnattr_setsigmask (License): Likewise.
24122         * modules/posix_spawnattr_destroy (License): Likewise.
24123         * modules/posix_spawn_file_actions_init (License): Likewise.
24124         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24125         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24126         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24127         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24128         * modules/getdtablesize (License): Likewise.
24129         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24130
24131 2010-10-26  Bruno Haible  <bruno@clisp.org>
24132
24133         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24134         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24135         Cygwin and mingw.
24136         Suggested by Eric Blake.
24137
24138 2010-10-26  Bruno Haible  <bruno@clisp.org>
24139
24140         stdio: Work around compilation error due to renameat() on Solaris 10.
24141         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24142         * lib/renameat.c: Don't include <unistd.h> here.
24143         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24144         Reported by Paul Eggert and Eric Blake.
24145
24146 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24147
24148         renameat: port to Solaris 10, which declares renameat in unistd.h
24149
24150         * lib/renameat.c: Include unistd.h before stdio.h, because
24151         Solaris 10 declares renameat in unistd.h.  Problem encountered
24152         when building GNU tar 1.24 on Solaris 10.
24153
24154 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24155
24156         fdopendir: fix C89 compilation
24157         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24158         compilers.
24159
24160 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24161
24162         inttostr: simplify by removing unnecessary redundancy
24163         * lib/anytostr.c: Don't include verify.h.
24164         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24165         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24166         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24167         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24168         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24169         Likewise.
24170         * modules/inttostr (Depends-on): Remove 'verify'.
24171
24172 2010-10-23  Bruno Haible  <bruno@clisp.org>
24173
24174         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24175         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24176         Reported by Eric Blake.
24177
24178 2010-10-23  Bruno Haible  <bruno@clisp.org>
24179
24180         Tests: Fix LOCALE_JA on MirBSD 10.
24181         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24182         to an UTF-8 locale.
24183         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24184         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24185         Reported by Eric Blake.
24186
24187 2010-10-21  Bruno Haible  <bruno@clisp.org>
24188
24189         nl_langinfo test: Avoid test failure on NetBSD 5.
24190         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24191         Reported by Eric Blake.
24192
24193 2010-10-21  Eric Blake  <eblake@redhat.com>
24194
24195         c-stack: work around libsigsegv 2.8 bug
24196         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24197         overflow on at least PowerPC64.
24198
24199 2010-10-17  Bruno Haible  <bruno@clisp.org>
24200
24201         userspec: Drop redundant file.
24202         * modules/userspec (Files): Remove lib/inttostr.h.
24203
24204 2010-10-17  Bruno Haible  <bruno@clisp.org>
24205
24206         nl_langinfo tests: Silence some warnings.
24207         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24208         Reported by Jim Meyering.
24209
24210 2010-10-17  Bruno Haible  <bruno@clisp.org>
24211
24212         Make use of GCC's attribute __alloc_size__.
24213         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24214         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24215         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24216         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24217         __alloc_size__.
24218         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24219         Suggested by Jim Meyering.
24220
24221 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24222
24223         bootstrap: anchor .gitignore entries.
24224         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24225         with...
24226         (insert_vc_ignore): ... this new function, which prepends `/' to
24227         all .gitignore entries before passing them to
24228         insert_sorted_if_absent.
24229
24230 2010-10-16  Bruno Haible  <bruno@clisp.org>
24231
24232         nextafter: Fix configure check.
24233         * modules/nextafter (configure.ac): Correct expected prototype.
24234
24235 2010-10-16  Bruno Haible  <bruno@clisp.org>
24236
24237         termios: Update documentation.
24238         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24239
24240 2010-10-16  Bruno Haible  <bruno@clisp.org>
24241
24242         tests: Make them compile with TinyCC.
24243         * tests/test-strstr.c (main): Remove parentheses around array
24244         initializer.
24245
24246 2010-10-15  Eric Blake  <eblake@redhat.com>
24247
24248         ignore-value: make header idempotent
24249         * lib/ignore-value.h: Add double-inclusion guards.
24250         Reported by Stefan Berger.
24251
24252 2010-10-15  Jim Meyering  <meyering@redhat.com>
24253
24254         GNUmakefile: handle "stable" target, not "major"
24255         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24256         lists in maint.mk and announce-gen.  Without this, "make stable"
24257         would fail to ensure that $(VERSION) is up to date.
24258
24259 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24260
24261         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24262         & co.
24263
24264 2010-10-14  Bruno Haible  <bruno@clisp.org>
24265
24266         vasnprintf: Don't set errno to 0.
24267         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24268         block that sets it to 0.
24269         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24270
24271 2010-10-14  Bruno Haible  <bruno@clisp.org>
24272
24273         socketlib: Fix.
24274         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24275         gl_PREREQ_SYS_H_WINSOCK2.
24276         Reported by Ian Beckwith <ianb@erislabs.net>.
24277
24278 2010-10-13  Jim Meyering  <meyering@redhat.com>
24279
24280         test-select-stdin.c: avoid warn_unused_result warnings
24281         * tests/test-select-stdin.c: Include "macros.h".
24282         ASSERT that read and fflush succeed.
24283
24284 2010-10-13  Jim Meyering  <meyering@redhat.com>
24285
24286         git-version-gen: do require git-VC'd files in cwd
24287         * build-aux/git-version-gen: Reject a git version string
24288         if there are no commits associated with the current directory.
24289         This avoids an unlikely false-positive (unrelated dir whose parent
24290         repository also contains a tag matching v*), as pointed out
24291         by Giuseppe Scrivano in
24292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24293
24294 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24295
24296         argv-iter: omit nonconforming declaration
24297         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24298         enum arg_iter_err declaration, which doesn't conform to C99.
24299         Solaris 10 cc warns about this.
24300
24301 2010-10-13  Eric Blake  <eblake@redhat.com>
24302
24303         termios: fix compilation on mingw
24304         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24305         (gl_TERMIOS_H): Adjust it on mingw.
24306         * modules/termios (Makefile.am): Substitute new key.
24307         * lib/termios.in.h (includes): Make include_next conditional.
24308         * doc/posix-headers/termios.texi (termios.h): Update
24309         documentation.
24310         Reported by Daniel P. Berrange.
24311
24312 2010-10-13  Jim Meyering  <meyering@redhat.com>
24313
24314         git-version-gen: don't require that .git/ be in the current dir
24315         * build-aux/git-version-gen: Adjust this script so that it works
24316         when run from any working directory beneath the top-level .git/-
24317         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24318         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24319
24320         test-select: avoid warn_unused_result warnings
24321         * tests/test-select.c: Include "macros.h".
24322         ASSERT that each call to read, write, and pipe succeeds.
24323         While not technically required, also check each "close".
24324         * modules/select-tests (Files): Add tests/macros.h.
24325
24326         test-symlinkat: remove declaration of unused local
24327         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24328
24329         test-inttostr: avoid shadowing warnings
24330         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24331         and use malloc rather than the stack for the same reason as
24332         mentioned in the comment justifying the other allocation.
24333
24334 2010-10-11  Bruno Haible  <bruno@clisp.org>
24335
24336         stdlib: Allow multiple gnulib generated replacements to coexist.
24337         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24338         Reported by Sam Steingold <sds@gnu.org>.
24339
24340 2010-10-11  Jim Meyering  <meyering@redhat.com>
24341
24342         fix a documentation typo
24343         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24344
24345 2010-10-11  Eric Blake  <eblake@redhat.com>
24346
24347         futimens: work around Solaris 11 bug
24348         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24349         * tests/test-futimens.h (test_futimens): Enhance, rather than
24350         weaken test.
24351         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24352
24353 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24354
24355         Indentation.
24356         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24357         higher-level operators more to the left.
24358
24359 2010-10-11  Jim Meyering  <meyering@redhat.com>
24360
24361         test-futimens: avoid unwarranted test failure on Solaris 5.11
24362         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24363         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24364         because it tries to dereference the NULL name argument.
24365
24366 2010-10-11  Bruno Haible  <bruno@clisp.org>
24367
24368         Indentation.
24369         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24370         indentation.
24371
24372 2010-10-11  Jim Meyering  <meyering@redhat.com>
24373
24374         spawn.in.h: make indentation consistent with parentheses
24375         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24376         Make indentation consistent with parentheses.
24377
24378 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24379
24380         Fix mismatched parens in previous commit
24381         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24382         parens.
24383
24384 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24385
24386         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24387
24388         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24389         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24390         * lib/malloca.c: Include "verify.h".
24391         (verify1): Remove, replacing with a verify call.
24392         * lib/relocwrapper.c (verify1): Likewise.
24393         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24394         Likewise.
24395         * modules/malloca (Depends-on): Add 'verify'.
24396         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24397         * modules/vasnprintf (Depends-on): Add 'verify'.
24398         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24399         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24400         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24401         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24402         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24403         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24404         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24405
24406         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24407
24408         Formerly the style was sometimes 2*X - 1, because the C standard
24409         was wrongly thought to disallow ?: in integral constant expressions.
24410         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24411         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24412         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24413         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24414         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24415         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24416         verify that time_t cannot be floating.
24417
24418 2010-10-08  Eric Blake  <eblake@redhat.com>
24419
24420         time: enforce recent POSIX ruling that time_t is integral
24421         * lib/time.in.h (__time_t_must_be_integral): Detect any
24422         problematic systems, allowing the rest of gnulib to assume POSIX.
24423
24424 2010-10-08  Jim Meyering  <meyering@redhat.com>
24425
24426         fdopendir: fix a bug on systems lacking openat and /proc support
24427         OpenBSD 4.7 is one such system.  The most noticeable effect was
24428         failure of any application making nontrivial use of fts: rm, du,
24429         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24430           ./rm: traversal failed: `a': Bad file descriptor
24431         Debugging that, you see that even though FD 6 was closed just
24432         prior to the opendir call in fd_clone_opendir, its resulting
24433         dir->dd_fd was 8, rather than the expected value of 6:
24434
24435         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24436         93                close (fd);
24437         (gdb) n
24438         94                dir = fd_clone_opendir (dupfd);
24439         (gdb) n
24440         95                saved_errno = errno;
24441         (gdb) p dir->dd_fd
24442         $11 = 8
24443
24444         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24445         The problem is that on OpenBSD, fd_clone_opendir has to resort
24446         to using the old-style save/restore CWD mechanism, due to its
24447         lack of openat/proc support, and *that* would steal the FD (6)
24448         that opendir was supposed to use.
24449
24450         The fix is to squirrel away the desired FD so that save_cwd uses a
24451         different one, and then free the dest FD right before calling opendir.
24452         That guarantees opendir will use the required file descriptor.
24453
24454         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24455
24456 2010-10-08  Bruno Haible  <bruno@clisp.org>
24457
24458         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24459         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24460
24461 2010-10-08  Bruno Haible  <bruno@clisp.org>
24462
24463         nanosleep: Make replacement POSIX compliant.
24464         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24465         is out of range.
24466         Reported by Jim Meyering.
24467
24468 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24469
24470         bootstrap: add hook for altering gnulib.mk, for Bison
24471         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24472         the Bison bootstrapping process can rewrite file names and variables
24473         in this file before later parts of 'bootstrap' use the file.
24474         Bison wants to include lib/gnulib.mk from the top-level makefile,
24475         so it needs the file names in this file to be relative to the top
24476         level, not relative to lib; plus it needs variable names to be
24477         rewritten.
24478         (slurp): Use the new function.
24479
24480         bootstrap: reformat for readability
24481         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24482
24483 2010-10-08  Eric Blake  <eblake@redhat.com>
24484
24485         docs: update cygwin progress
24486         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24487         1.7.7.
24488         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24489         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24490         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24491         * doc/posix-functions/carg.texi (carg): Likewise.
24492         * doc/posix-functions/cargf.texi (cargf): Likewise.
24493         * doc/posix-functions/casin.texi (casin): Likewise.
24494         * doc/posix-functions/casinf.texi (casinf): Likewise.
24495         * doc/posix-functions/casinh.texi (casinh): Likewise.
24496         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24497         * doc/posix-functions/catan.texi (catan): Likewise.
24498         * doc/posix-functions/catanf.texi (catanf): Likewise.
24499         * doc/posix-functions/catanh.texi (catanh): Likewise.
24500         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24501         * doc/posix-functions/ccos.texi (ccos): Likewise.
24502         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24503         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24504         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24505         * doc/posix-functions/cexp.texi (cexp): Likewise.
24506         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24507         * doc/posix-functions/cimag.texi (cimag): Likewise.
24508         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24509         * doc/posix-functions/clog.texi (clog): Likewise.
24510         * doc/posix-functions/clogf.texi (clogf): Likewise.
24511         * doc/posix-functions/conj.texi (conj): Likewise.
24512         * doc/posix-functions/conjf.texi (conjf): Likewise.
24513         * doc/posix-functions/cpow.texi (cpow): Likewise.
24514         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24515         * doc/posix-functions/cproj.texi (cproj): Likewise.
24516         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24517         * doc/posix-functions/creal.texi (creal): Likewise.
24518         * doc/posix-functions/crealf.texi (crealf): Likewise.
24519         * doc/posix-functions/csin.texi (csin): Likewise.
24520         * doc/posix-functions/csinf.texi (csinf): Likewise.
24521         * doc/posix-functions/csinh.texi (csinh): Likewise.
24522         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24523         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24524         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24525         * doc/posix-functions/ctan.texi (ctan): Likewise.
24526         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24527         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24528         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24529         * doc/posix-headers/complex.texi (complex.h): Likewise.
24530
24531 2010-10-07  Jim Meyering  <meyering@redhat.com>
24532
24533         parse-datetime: avoid compilation failure on OpenBSD 4.7
24534         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24535         This works around a compilation failure on OpenBSD 4.7:
24536         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24537
24538 2010-10-07  Eric Blake  <eblake@redhat.com>
24539
24540         docs: update cygwin progress
24541         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24542         1.7.6.
24543         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24544         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24545         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24546         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24547         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24548         Likewise.
24549         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24550         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24551         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24552         Likewise.
24553         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24554         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24555         Likewise.
24556         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24557         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24558         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24559         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24560         Likewise.
24561         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24562         Likewise.
24563         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24564
24565         docs: update parse-datetime history
24566         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24567         documentation of this function's history and alternatives.
24568
24569         cygwin: use more robust version check
24570         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24571         exclude an eventual cygwin 1.9.1.
24572         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24574         (gl_FUNC_STRCASESTR): Likewise.
24575         Reported by Bruno Haible.
24576
24577 2010-10-06  Bruno Haible  <bruno@clisp.org>
24578
24579         string, sys_select: Avoid #including large headers unless necessary.
24580         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24581         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24582         OSF/1, BeOS, Haiku.
24583         Reported by Jim Meyering.
24584
24585 2010-10-05  Eric Blake  <eblake@redhat.com>
24586
24587         memmem, strstr, strcasestr: fix bug with long periodic needle
24588         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24589         periodic needle having false positive.
24590         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24591         and cygwin 1.7.7.
24592         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24594         (gl_FUNC_STRCASESTR): Likewise.
24595         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24596         * tests/test-memmem.c (main): Expose the bug.
24597         * tests/test-strcasestr.c (main): Likewise.
24598         * tests/test-strstr.c (main): Likewise.
24599         * tests/test-c-strcasestr.c (main): Likewise.
24600         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24601         * doc/posix-functions/strstr.texi (strstr): Likewise.
24602         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24603         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24604
24605 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24606
24607         parse-datetime: do some more renaming
24608         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24609         parse_datetime, not get_date.  Mention the renaming.
24610         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24611         in comments.
24612         * m4/bison.m4: Likewise.
24613
24614 2010-10-05  Eric Blake  <eblake@redhat.com>
24615
24616         parse-datetime: better name than get_date
24617         * NEWS: Reword the deprecation notice.
24618         * modules/get_date: Rename to modules/parse-datetime.
24619         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24620         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24621         * lib/get_date.y: Rename to lib/parse-datetime.y.
24622         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24623         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24624         * doc/getdate.texi: Provide fallback wrapper.
24625         * lib/getdate.h: Move guts, and wrap...
24626         * lib/parse-datetime.h: ...new file.
24627         * lib/parse-datetime.y (get_date): Rename...
24628         (parse_datetime): ...to this.
24629         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24630         (gl_PARSE_DATETIME): ...to this.
24631         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24632         documentation.
24633         * modules/getdate (Files): Provide fallback docs and header.
24634         (Notice, Depends-on): Update references.
24635         * tests/test-parse-datetime.c: Likewise.
24636         * DEPENDENCIES: Likewise.
24637         * MODULES.html.sh (Date and time <time.h>): Likewise.
24638         * doc/parse-datetime.texi (Date input formats)
24639         (Authors of parse_datetime): Likewise.
24640         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24641         (Include): Likewise.
24642         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24643         * gnulib-tool: Likewise.
24644         * m4/bison.m4 (gl_BISON): Likewise.
24645         Suggested by Bruno Haible.
24646
24647 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24648
24649         more ports to Solaris tr, which needs [] around ranges
24650         * gnulib-tool: Solaris tr needs [] around ranges.
24651         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24652         * tests/test-pipe-filter-gi1.c (main): Likewise.
24653         * tests/test-pipe-filter-ii1.c (main): Likewise.
24654
24655 2010-10-05  Eric Blake  <eblake@redhat.com>
24656
24657         bootstrap: fix Solaris regression
24658         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24659         around ranges.
24660         Reported by Pádraig Brady.
24661
24662         bootstrap: work with pkg-config
24663         * build-aux/bootstrap (check_versions): Also transliterate - in
24664         prerequisite name.
24665         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24666         prerequisites that were already found, to avoid confusion.
24667         Reported by Justin Clift.
24668
24669         faccessat: remove unused wrappers
24670         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24671         presence of these wrappers dragged in -lgen on Solaris.
24672         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24673
24674 2010-10-05  Jim Meyering  <meyering@redhat.com>
24675
24676         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24677         * Makefile (sc_pragma_columns): New syntax-check rule.
24678
24679 2010-10-04  Bruno Haible  <bruno@clisp.org>
24680
24681         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24682         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24683         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24684         Reported by Bruce Korb and Eric Blake.
24685
24686 2010-10-04  Bruno Haible  <bruno@clisp.org>
24687
24688         threadlib: Make option --with-libpth-prefix work.
24689         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24690         use $LIBPTH, not just -lpth.
24691
24692 2010-10-04  Bruno Haible  <bruno@clisp.org>
24693
24694         Avoid line length limitation from HP NonStop system header files.
24695         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24696         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24697         * lib/ctype.in.h: Likewise.
24698         * lib/dirent.in.h: Likewise.
24699         * lib/errno.in.h: Likewise.
24700         * lib/fcntl.in.h: Likewise.
24701         * lib/float.in.h: Likewise.
24702         * lib/getopt.in.h: Likewise.
24703         * lib/iconv.in.h: Likewise.
24704         * lib/inttypes.in.h: Likewise.
24705         * lib/langinfo.in.h: Likewise.
24706         * lib/locale.in.h: Likewise.
24707         * lib/math.in.h: Likewise.
24708         * lib/netdb.in.h: Likewise.
24709         * lib/netinet_in.in.h: Likewise.
24710         * lib/poll.in.h: Likewise.
24711         * lib/pthread.in.h: Likewise.
24712         * lib/pty.in.h: Likewise.
24713         * lib/sched.in.h: Likewise.
24714         * lib/se-selinux.in.h: Likewise.
24715         * lib/search.in.h: Likewise.
24716         * lib/signal.in.h: Likewise.
24717         * lib/spawn.in.h: Likewise.
24718         * lib/stdarg.in.h: Likewise.
24719         * lib/stddef.in.h: Likewise.
24720         * lib/stdint.in.h: Likewise.
24721         * lib/stdio.in.h: Likewise.
24722         * lib/stdlib.in.h: Likewise.
24723         * lib/string.in.h: Likewise.
24724         * lib/strings.in.h: Likewise.
24725         * lib/sys_file.in.h: Likewise.
24726         * lib/sys_ioctl.in.h: Likewise.
24727         * lib/sys_select.in.h: Likewise.
24728         * lib/sys_socket.in.h: Likewise.
24729         * lib/sys_stat.in.h: Likewise.
24730         * lib/sys_time.in.h: Likewise.
24731         * lib/sys_times.in.h: Likewise.
24732         * lib/sys_utsname.in.h: Likewise.
24733         * lib/sys_wait.in.h: Likewise.
24734         * lib/sysexits.in.h: Likewise.
24735         * lib/termios.in.h: Likewise.
24736         * lib/time.in.h: Likewise.
24737         * lib/unistd.in.h: Likewise.
24738         * lib/wchar.in.h: Likewise.
24739         * lib/wctype.in.h: Likewise.
24740         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24741         * modules/ctype (Makefile.am): Likewise.
24742         * modules/dirent (Makefile.am): Likewise.
24743         * modules/errno (Makefile.am): Likewise.
24744         * modules/fcntl-h (Makefile.am): Likewise.
24745         * modules/float (Makefile.am): Likewise.
24746         * modules/getopt-posix (Makefile.am): Likewise.
24747         * modules/iconv-h (Makefile.am): Likewise.
24748         * modules/inttypes (Makefile.am): Likewise.
24749         * modules/langinfo (Makefile.am): Likewise.
24750         * modules/locale (Makefile.am): Likewise.
24751         * modules/math (Makefile.am): Likewise.
24752         * modules/netdb (Makefile.am): Likewise.
24753         * modules/netinet_in (Makefile.am): Likewise.
24754         * modules/poll-h (Makefile.am): Likewise.
24755         * modules/pthread (Makefile.am): Likewise.
24756         * modules/pty (Makefile.am): Likewise.
24757         * modules/sched (Makefile.am): Likewise.
24758         * modules/search (Makefile.am): Likewise.
24759         * modules/selinux-h (Makefile.am): Likewise.
24760         * modules/signal (Makefile.am): Likewise.
24761         * modules/spawn (Makefile.am): Likewise.
24762         * modules/stdarg (Makefile.am): Likewise.
24763         * modules/stddef (Makefile.am): Likewise.
24764         * modules/stdint (Makefile.am): Likewise.
24765         * modules/stdio (Makefile.am): Likewise.
24766         * modules/stdlib (Makefile.am): Likewise.
24767         * modules/string (Makefile.am): Likewise.
24768         * modules/strings (Makefile.am): Likewise.
24769         * modules/sys_file (Makefile.am): Likewise.
24770         * modules/sys_ioctl (Makefile.am): Likewise.
24771         * modules/sys_select (Makefile.am): Likewise.
24772         * modules/sys_socket (Makefile.am): Likewise.
24773         * modules/sys_stat (Makefile.am): Likewise.
24774         * modules/sys_time (Makefile.am): Likewise.
24775         * modules/sys_times (Makefile.am): Likewise.
24776         * modules/sys_utsname (Makefile.am): Likewise.
24777         * modules/sys_wait (Makefile.am): Likewise.
24778         * modules/sysexits (Makefile.am): Likewise.
24779         * modules/termios (Makefile.am): Likewise.
24780         * modules/time (Makefile.am): Likewise.
24781         * modules/unistd (Makefile.am): Likewise.
24782         * modules/wchar (Makefile.am): Likewise.
24783         * modules/wctype (Makefile.am): Likewise.
24784
24785 2010-10-04  Bruno Haible  <bruno@clisp.org>
24786
24787         read-file tests: Avoid a test failure on NonStop Kernel.
24788         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24789         a regular file.
24790         Reported by Joachim Schmitz <schmitz@hp.com>.
24791
24792 2010-10-03  Bruno Haible  <bruno@clisp.org>
24793
24794         gnulib-tool: Fixes for --create-testdir with --libtool.
24795         * gnulib-tool (func_get_automake_snippet): Don't augment
24796         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24797         an executable.
24798         (func_create_testdir): Handle module 'alloca' like func_import.
24799         Reported by Bruce Korb <bruce.korb@gmail.com>.
24800
24801 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24802
24803         Avoid some lines longer than 80 characters.
24804         * lib/stdint.in.h: Break long comment lines.
24805         * lib/math.in.h: Likewise.
24806         (_GL_NUM_UINT_WORDS): New macro, for readability.
24807         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24808         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24809         * lib/stdlib.in.h: Likewise.
24810         * lib/spawn.in.h: Likewise.
24811         * lib/sys_socket.in.h: Update an URL.
24812         * lib/sys_stat.in.h: Break long line.
24813
24814 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24815
24816         Improve pmccabe2html.
24817         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24818         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24819         when the sources change. Remove the line in the HTML about "Used
24820         ranges" (which implied that there might be other unused ranges),
24821         rename "Resume" to "Summary" (easier to understand for more users).
24822         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24823         styles, and some unnecessary blank lines.
24824
24825 2010-10-03  Bruno Haible  <bruno@clisp.org>
24826             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24827
24828         acl: Add support for ACLs on NonStop Kernel.
24829         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24830         Check whether the function aclsort() exists.
24831         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24832         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24833         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24834         (acl_nontrivial [HAVE_ACLSORT]: New function.
24835         (file_has_acl): Implement for NonStop Kernel.
24836         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24837         (qset_acl): Implement for NonStop Kernel.
24838         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24839         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24840         (main): Implement for NonStop Kernel.
24841         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24842         Kernel. Handle this flavor.
24843         * tests/test-set-mode-acl.sh: Likewise.
24844         * tests/test-copy-acl.sh: Likewise.
24845         * tests/test-copy-file.sh: Likewise.
24846
24847 2010-10-03  Bruno Haible  <bruno@clisp.org>
24848
24849         Info about ACLs on NonStop Kernel.
24850         * doc/acl-resources.txt: Add info about NonStop Kernel.
24851         References by Joachim Schmitz <schmitz@hp.com>.
24852
24853 2010-10-02  Bruno Haible  <bruno@clisp.org>
24854
24855         Define missing EDQUOT on NonStop Kernel.
24856         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24857         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24858         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24859         missing.
24860         * doc/posix-headers/errno.texi: Mention the NSK bug.
24861         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24862         Reported by Joachim Schmitz <schmitz@hp.com>.
24863
24864 2010-10-02  Bruno Haible  <bruno@clisp.org>
24865
24866         Update doc for POSIX:2008.
24867         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24868         Update URL of POSIX specification.
24869
24870 2010-10-02  Bruno Haible  <bruno@clisp.org>
24871
24872         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24873         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24874         from gnulib, not from Automake.
24875
24876 2010-10-02  Bruno Haible  <bruno@clisp.org>
24877
24878         New module 'system-posix'.
24879         * modules/system-posix: New file.
24880         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24881         module is present.
24882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24883         GNULIB_SYSTEM_POSIX.
24884         * modules/stdlib (Depends-on): Remove sys_wait.
24885         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24886         * doc/posix-functions/system.texi: Mention the new module.
24887         * doc/posix-headers/stdlib.texi: Likewise.
24888         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24889         define test_sys_wait_macros to a no-op.
24890         Reported by Sam Steingold <sds@gnu.org>.
24891
24892 2010-09-30  Bruno Haible  <bruno@clisp.org>
24893
24894         More renaming from 'getdate' to 'get_date'.
24895         * doc/get_date.texi: Renamed from doc/getdate.texi.
24896         * modules/get_date (Files): Update.
24897         * MODULES.html.sh (Date and time <time.h>): Update.
24898         * DEPENDENCIES: Update.
24899         * gnulib-tool: Update comment.
24900         * m4/bison.m4 (gl_BISON): Likewise.
24901         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24902
24903 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24904
24905         bootstrap: support ACLOCAL_FLAGS during aclocal
24906         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24907         can add additional -I dir for third-party .m4 files.
24908
24909 2010-09-30  Eric Blake  <eblake@redhat.com>
24910
24911         bootstrap: use glibtoolize on MacOS
24912         * build-aux/bootstrap (check_versions): Convert libtool into
24913         libtoolize.
24914         (tool search): Move libtool check earlier, and look for
24915         glibtoolize for MacOS.
24916         (gnulib_tool_options): Auto-add --libtool when appropriate.
24917         Reported by Justin Clift.
24918
24919         poll: fix typo that broke test on MacOS
24920         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24921         Reported by Justin Clift.
24922
24923         getdate: rename to get_date
24924         Note: getdate.h is not renamed, to minimize client impact.
24925         * modules/getdate: Mark obsolete.  Move old contents...
24926         * modules/get_date: ...to new module name.
24927         * modules/getdate-tests: Move...
24928         * modules/get_date-tests: ...here.
24929         * m4/getdate.m4: Move...
24930         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24931         * lib/getdate.y: Move...
24932         * lib/get_date.y: ...here.
24933         * tests/test-getdate.c: Move...
24934         * tests/test-get_date.c: ...here.
24935         * doc/posix-functions/getdate.texi (getdate): Update name.
24936         * NEWS: Mention the change.
24937
24938 2010-09-29  Bruno Haible  <bruno@clisp.org>
24939
24940         Separate the module 'waitpid' from the module 'sys_wait'.
24941         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24942         present.
24943         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24944         gl_MODULE_INDICATOR_FOR_TESTS.
24945         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24946         * modules/sys_wait (Depends-on): Remove waitpid.
24947         (Makefile.am): Substitute GNULIB_WAITPID.
24948         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24949         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24950         signature only if the 'waitpid' module is present.
24951         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24952         * NEWS: Mention the change.
24953         * modules/grantpt (Depends-on): Add waitpid.
24954         * modules/wait-process (Depends-on): Likewise.
24955
24956 2010-09-29  Bruno Haible  <bruno@clisp.org>
24957
24958         More tests for module 'sys_wait'.
24959         * modules/sys_wait-c++-tests: New file.
24960         * tests/test-sys_wait-c++.cc: New file.
24961         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24962         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24963
24964 2010-09-29  Bruno Haible  <bruno@clisp.org>
24965
24966         New module 'waitpid'.
24967         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24968         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24969         Don't include <process.h>.
24970         (waitpid): Declare only, using modern idiom.
24971         * m4/waitpid.m4: New file.
24972         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24973         * modules/waitpid: New file.
24974         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24975         (Makefile.am): Update.
24976         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24977
24978 2010-09-28  Bruno Haible  <bruno@clisp.org>
24979
24980         poll: Assume ANSI C.
24981         * lib/poll.c (poll): Use an ANSI C declaration.
24982
24983 2010-09-28  Bruno Haible  <bruno@clisp.org>
24984
24985         poll-h: Create poll.h on all platforms.
24986         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24987         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24988         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24989         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24990         (gl_REPLACE_POLL_H): Don't set POLL_H.
24991         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24992         * modules/poll-h (Depends-on): Add include_next.
24993         (Makefile.am): Create poll.h unconditionally. Substitute also
24994         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24995
24996 2010-09-28  Bruno Haible  <bruno@clisp.org>
24997
24998         Tests for module 'poll-h'.
24999         * modules/poll-h-c++-tests: New file.
25000         * tests/test-poll-h-c++.cc: New file.
25001
25002         Tests for module 'poll-h'.
25003         * modules/poll-h-tests: New file.
25004         * tests/test-poll-h.c: New file.
25005
25006 2010-09-28  Bruno Haible  <bruno@clisp.org>
25007
25008         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25009         * modules/poll-h (Depends-on): Add 'extensions'.
25010
25011 2010-09-28  Bruno Haible  <bruno@clisp.org>
25012
25013         New module 'poll-h'.
25014         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25015         (poll): Use modern idiom.
25016         * modules/poll-h: New file.
25017         * modules/poll (Files): Remove lib/poll.in.h.
25018         (Depends-on): Add poll-h.
25019         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25020         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25021         * m4/poll_h.m4: New file.
25022         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25023         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25024         and invoke gl_REPLACE_POLL_H.
25025         * lib/poll.c: Use common idiom.
25026         * tests/test-poll.c: Likewise.
25027         * doc/posix-headers/poll.texi: Mention the poll-h module.
25028         Suggested by Eric Blake.
25029
25030 2010-09-26  Bruno Haible  <bruno@clisp.org>
25031
25032         sys_wait: Implement WSTOPSIG.
25033         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25034         Reported by Simon Josefsson.
25035
25036 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25037
25038         stdlib, sys_wait: Avoid compilation error on mingw.
25039         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25040
25041 2010-09-26  Bruno Haible  <bruno@clisp.org>
25042
25043         stdlib tests: Avoid code duplication.
25044         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25045         * modules/sys_wait-tests (Files): Likewise.
25046         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25047         * tests/test-stdlib.c: Include test-sys_wait.h.
25048         (main): Invoke test_sys_wait_macros.
25049         * tests/test-sys_wait.c: Include test-sys_wait.h.
25050         (main): Invoke test_sys_wait_macros.
25051
25052 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25053
25054         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25055         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25056         sure Windows sockets are working before calling getaddrinfo.
25057         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25058         * doc/gnulib.texi (Windows sockets): Fix typo.
25059
25060 2010-09-25  Bruno Haible  <bruno@clisp.org>
25061
25062         Tests for module 'regex-quote'.
25063         * modules/regex-quote-tests: New file.
25064         * tests/test-regex-quote.c: New file.
25065
25066         New module 'regex-quote'.
25067         * lib/regex-quote.h: New file.
25068         * lib/regex-quote.c: New file.
25069         * modules/regex-quote: New file.
25070         Suggested by Reuben Thomas <rrt@sc3d.org>.
25071
25072 2010-09-24  Bruno Haible  <bruno@clisp.org>
25073
25074         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25075         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25076
25077 2010-09-23  Bruno Haible  <bruno@clisp.org>
25078
25079         setenv: Relax license.
25080         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25081         Blake.
25082         Requested by Eric Blake.
25083
25084 2010-09-22  Bruno Haible  <bruno@clisp.org>
25085
25086         termios: Relax license.
25087         * modules/termios (License): Change to LGPLv2+.
25088         Requested by Eric Blake.
25089
25090 2010-09-22  Bruno Haible  <bruno@clisp.org>
25091
25092         threadlib: Allow the package to change the default to 'no'.
25093         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25094         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25095         Reported by Paul Eggert.
25096
25097 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25098             Bruno Haible  <bruno@clisp.org>
25099
25100         Fix endless loop in mbmemcasecoll.
25101         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25102         byte.
25103         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25104
25105 2010-09-22  Bruno Haible  <bruno@clisp.org>
25106
25107         Tests for module 'memcoll'.
25108         * modules/memcoll-tests: New file.
25109         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25110
25111         memcoll, xmemcoll: Clarify size vs. length.
25112         * modules/memcoll.c (memcoll0): Clarify specification.
25113         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25114         passed to collate_error.
25115
25116 2010-09-22  Bruno Haible  <bruno@clisp.org>
25117
25118         Tests for module 'memcasecmp'.
25119         * modules/memcasecmp-tests: New file.
25120         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25121
25122 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25123
25124         * lib/pthread.in.h: Add split double-inclusion guard, and include
25125         system <pthread.h> if there is one.  Use @@-style as in other
25126         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25127         pthread.h doesn't.
25128         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25129         (pthread_mutexattr_settype, pthread_mutex_trylock):
25130         New static inline functions, if there's no system <pthread.h>.
25131         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25132         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25133         Approximate with mutexes if the system lacks spinlocks, as in
25134         MacOS.
25135         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25136         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25137         @@-style.  Check for spinlocks separately.
25138         (gl_PTHREAD_DEFAULTS): New macro.
25139         * modules/pthread: Redo to use a more typical style for in.h files.
25140
25141 2010-09-21  Eric Blake  <eblake@redhat.com>
25142
25143         net_if: enhance tests
25144         * tests/test-net_if.c (main): Move signature checks earlier.
25145         Print failures to stderr.
25146         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25147         Document the bug that we do not yet fix.
25148
25149 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25150
25151         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25152         about gnulib, not GSS.
25153
25154 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25155
25156         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25157         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25158         for Emacs.
25159         * build-aux/pmccabe2html: Make Makefile.am example code more
25160         cut-and-paste friendly.
25161
25162 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25163
25164         * tests/test-net_if.c: New file.
25165         * modules/net_if-tests: New file.
25166
25167 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25168
25169         pthread: add pthread_spin_destroy
25170         * lib/pthread.in.h (pthread_spin_destroy): New function.
25171
25172 2010-09-19  Bruno Haible  <bruno@clisp.org>
25173
25174         gnulib-tool: Fix --help output.
25175         * gnulib-tool (func_usage): Fix help message.
25176         Reported by Reuben Thomas <rrt@sc3d.org>.
25177
25178 2010-09-18  Jim Meyering  <meyering@redhat.com>
25179
25180         maint.mk: avoid unexpanded \n in two diagnostics
25181         * top/maint.mk (sc_prohibit_always_true_header_tests):
25182         Don't use a literal \n in a halt=... assignment.  It would not be
25183         expanded, and the two \n bytes would appear in the diagnostic output
25184         rather than the desired newline.  Use halt=$$(printf ... instead.
25185         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25186
25187 2010-09-18  Bruno Haible  <bruno@clisp.org>
25188
25189         netinet_in: Doc tweak.
25190         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25191         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25192
25193 2010-09-18  Jim Meyering  <meyering@redhat.com>
25194
25195         init.sh: correct an outdated comment
25196         * tests/init.sh (create_exe_shims_):  s/function/alias/
25197
25198         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25199         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25200         a file named "*.exe" is removed between the glob expansion and the
25201         processing of that oddly named file.
25202
25203 2010-09-17  Eric Blake  <eblake@redhat.com>
25204
25205         mirbsd: add some more support
25206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25207         in BSD family.
25208         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25209         devices as OpenBSD.
25210         * m4/host-os.m4 (mirbsd): Add MirBSD.
25211
25212         tests: fix unportable assumption on sys/wait.h
25213         * tests/test-sys_wait.c (main): Relax test.
25214         * tests/test-stdlib.c (main): Likewise.
25215
25216         init.sh: accomodate directory with no .exes
25217         * tests/init.sh: Accomodate directory containing only scripts.
25218
25219         tests: avoid compiler warning
25220         * tests/test-stdlib.c (main): Use the variable.
25221
25222         fdutimens, fdutimensat: update signature, again
25223         * lib/utimens.h (gl_futimens): Delete, and move signature...
25224         (fdutimens): ...here.
25225         (fdutimensat): Rearrange signature.
25226         (lutimensat): Rename variable for clarity.
25227         * lib/fdutimensat.c (fdutimensat): Update signature.
25228         * lib/utimens.c (fdutimens): Likewise.
25229         (gl_futimens): Delete.
25230         (utimens, lutimens): Update callers.
25231         * lib/futimens.c (futimens): Likewise.
25232         * tests/test-fdutimensat.c: Likewise.
25233         * tests/test-utimens.c: Likewise.
25234         * tests/test-futimens.h: Update comment.
25235         * NEWS: Mention this.
25236         Suggested by Paul Eggert.
25237
25238 2010-09-17  Bruno Haible  <bruno@clisp.org>
25239
25240         Take over the maintenance of some older macros from Autoconf.
25241         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25242         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25243         GNU Autoconf.
25244         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25245         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25246
25247 2010-09-17  Eric Blake  <eblake@redhat.com>
25248
25249         fdutimensat: drop atflag validation
25250         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25251         with valid fd, to close a race scenario where futimens is
25252         unsupported and FILE was replaced by a symlink.
25253         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25254         accordingly.
25255         Suggested by Paul Eggert.
25256
25257 2010-09-16  Bruno Haible  <bruno@clisp.org>
25258
25259         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25260         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25261
25262 2010-09-16  Bruno Haible  <bruno@clisp.org>
25263
25264         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25265         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25266         login_tty exists.
25267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25268
25269 2010-09-16  Bruno Haible  <bruno@clisp.org>
25270
25271         login_tty: Make the replacement code work on BSD systems.
25272         * lib/login_tty.c: Include <sys/ioctl.h>.
25273         (login_tty): Use ioctl TIOCSCTTY when available.
25274         * modules/login_tty (Depends-on): Add sys_ioctl.
25275         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25276
25277 2010-09-16  Bruno Haible  <bruno@clisp.org>
25278
25279         login_tty: Stricter unit test.
25280         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25281         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25282         and tcgetsid() after login_tty.
25283         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25284
25285 2010-09-16  Bruno Haible  <bruno@clisp.org>
25286
25287         New module 'tcgetsid'.
25288         * lib/tcgetsid.c: New file.
25289         * m4/tcgetsid.m4: New file.
25290         * modules/tcgetsid: New file.
25291         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25292         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25293         GNULIB_TCGETSID, HAVE_TCGETSID.
25294         * lib/termios.in.h: Include <sys/types.h>.
25295         (tcgetsid): New declaration.
25296         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25297         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25298         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25299         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25300
25301 2010-09-16  Bruno Haible  <bruno@clisp.org>
25302
25303         Tests for module 'termios'.
25304         * modules/termios-c++-tests: New file.
25305         * modules/termios-tests: New file.
25306         * tests/test-termios-c++.cc: New file.
25307         * tests/test-termios.c: New file.
25308
25309         New module 'termios'.
25310         * modules/termios: New file.
25311         * lib/termios.in.h: New file.
25312         * m4/termios_h.m4: New file.
25313         * doc/posix-headers/termios.texi: Mention the new module.
25314
25315 2010-09-16  Eric Blake  <eblake@redhat.com>
25316
25317         fdutimensat: add an atflag parameter
25318         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25319         * lib/utimens.h (fdutimensat): Update prototype.
25320         * tests/test-fdutimensat.c: Adjust test to match.
25321         * NEWS: Document the change.
25322         Suggested by Paul Eggert.
25323
25324 2010-09-16  Bruno Haible  <bruno@clisp.org>
25325
25326         Fix typos in comments.
25327         * lib/striconveh.h: Fix typo in comment.
25328         * lib/login_tty.c (login_tty): Likewise.
25329
25330 2010-09-15  Bruno Haible  <bruno@clisp.org>
25331
25332         stdlib: clarify MirBSD WEXITSTATUS bug
25333         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25334         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25335
25336 2010-09-15  Eric Blake  <eblake@redhat.com>
25337
25338         stdlib: work around MirBSD WEXITSTATUS bug
25339         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25340         * modules/stdlib (Depends-on): Add sys_wait.
25341         * tests/test-sys_wait.c (main): Enhance test.
25342         * tests/test-stdlib.c (main): Likewise.
25343         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25344
25345         docs: mention MacOS issue with WEXITSTATUS(constant)
25346         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25347         issue.
25348         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25349
25350         strnlen: add tests
25351         * modules/strnlen-tests: New file.
25352         * tests/test-strnlen.c: Likewise.
25353
25354 2010-09-14  Bruno Haible  <bruno@clisp.org>
25355
25356         unistr/base: Avoid link errors when module 'libunistring' is also used.
25357         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25358         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25359         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25360         Declare also when HAVE_LIBUNISTRING is set.
25361         Reported by Pádraig Brady <P@draigbrady.com>.
25362
25363 2010-09-14  Eric Blake  <eblake@redhat.com>
25364
25365         test-rawmemchr: make more robust
25366         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25367         (Depends-on, configure.ac): Add needed prerequisites to use it.
25368         * modules/memchr-tests (Files, Depends-on, configure.ac):
25369         Likewise, to avoid implicit reliance on memchr module prereqs.
25370         * tests/test-memchr.c (main): Ensure proper masking.
25371         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25372         reads.
25373
25374         memchr: detect glibc Alpha bug
25375         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25376         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25377         Alpha.
25378         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25379         * tests/test-memchr.c (main): Enhance test.
25380         Reported by Nelson H. F. Beebe.
25381
25382 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25383
25384         fts, getcwd, glob: audit for dirfd returning -1
25385         * lib/fts.c (opendir): Remove #define; no longer used.
25386         (opendirat): New arg PDIR_FD.  All callers changed.
25387         (fts_build, _opendir2): Use new opendirat to avoid the need for
25388         dirfd, or for checking whether dirfd returns a negative value.
25389         Don't use opendir; always use openat followed by fdopendir.
25390         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25391         it.
25392         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25393         returns -1 here.
25394         * modules/fts (Depends-on): Remove dirfd.
25395         * modules/getcwd (Depends-on): Likewise.
25396
25397 2010-09-13  Eric Blake  <eblake@redhat.com>
25398
25399         float: fix broken MirBSD header
25400         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25401         * doc/posix-headers/float.texi (float.h): Document it.
25402
25403 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25404
25405         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25406         * lib/fts.c (opendirat): New arg extra_flags.
25407         (__opendir2): Use it to avoid following symlinks when opening
25408         a directory, if symlinks are not supposed to be followed.  See
25409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25410
25411         fdopendir: preserve argument fd before returning
25412         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25413         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25414         (fdopendir): Use them, arranging for FD to be open to the same
25415         directory that it was when it started.  (It might be temporarily
25416         closed while fdopendir is running, so this not thread- or
25417         signal-safe.)  Be careful to do the right thing even when file
25418         descriptors are scarce and dup fails with errno == EMFILE.  See
25419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25420
25421 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25422
25423         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25424         * NEWS: Document change.
25425         * m4/regex.m4: Disable test for regoff_t size.
25426
25427 2010-09-13  Jim Meyering  <meyering@redhat.com>
25428
25429         fts: don't operate on an invalid file descriptor after failed dup
25430         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25431         negative file descriptor.
25432
25433 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25434
25435         savedir: add streamsavedir, deprecate fdsavedir
25436         * NEWS: Mention deprecation of fdsavedir.
25437         * lib/savedir.c (streamsavedir): New extern function, whose name
25438         ends in "savedir" to be consistent with the others.  This differs
25439         from savedirstream in that it doesn't close its argument.  The
25440         next version of GNU tar will use this instead of fdsavedir, to
25441         avoid some race conditions and conserve file descriptors.
25442         (savedirstream): Reimplement as a wrapper around streamsavedir.
25443         (fdsavedir): Add a comment deprecating this function.  As far as
25444         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25445         * lib/savedir.h (streamsavedir): New decl.
25446         (fdsavedir): Add a comment deprecating this.
25447
25448 2010-09-10  Bruno Haible  <bruno@clisp.org>
25449
25450         langinfo: Fix last commit.
25451         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25452         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25454
25455 2010-09-10  Bruno Haible  <bruno@clisp.org>
25456
25457         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25458         * lib/progreloc.c (O_EXEC): Define fallback.
25459
25460 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25461
25462         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25463         * NEWS: Document recent changes to fcntl-h.
25464         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25465         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25466         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25467         Similarly for O_SEARCH; this last was already true, but not documented.
25468         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25469         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25470         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25471         Likewise.
25472         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25473         is zero, not whether it is defined.
25474         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25475         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25476         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25477
25478 2010-09-10  Bruno Haible  <bruno@clisp.org>
25479
25480         langinfo, nl_langinfo: Fix for IRIX 5.3.
25481         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25482         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25483         HAVE_LANGINFO_YESEXPR.
25484         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25485         HAVE_LANGINFO_YESEXPR.
25486         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25487         HAVE_LANGINFO_T_FMT_AMPM is 0.
25488         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25489         HAVE_LANGINFO_YESEXPR is 0.
25490         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25491         NOEXPR.
25492         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25493         * doc/posix-functions/nl_langinfo.texi: Likewise.
25494         Reported by Eric Blake.
25495
25496 2010-09-10  Bruno Haible  <bruno@clisp.org>
25497
25498         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25499         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25500         on FreeBSD 8.0 and OpenBSD 4.6.
25501         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25502         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25503         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25504         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25505         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25506         ac_includes_default.
25507         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25508
25509 2010-09-09  Eric Blake  <eblake@redhat.com>
25510
25511         strsignal: work around NetBSD bug
25512         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25513         * lib/string.in.h (includes): Likewise.
25514         * doc/posix-functions/strsignal.texi (strsignal): Document the
25515         bug.
25516         Reported by Nelson H. F. Beebe.
25517
25518         gnulib-tool: work with NetBSD /bin/sh
25519         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25520         (func_get_description, func_get_comment, func_get_status)
25521         (func_get_notice, func_get_applicability, func_get_filelist)
25522         (func_get_dependencies, func_get_autoconf_early_snippet)
25523         (func_get_autoconf_snippet, func_get_automake_snippet)
25524         (func_get_include_directive, func_get_link_directive)
25525         (func_get_license, func_get_maintainer, func_import): Avoid
25526         shell syntax errors from parsing syntax extensions.
25527
25528 2010-09-09  Bruno Haible  <bruno@clisp.org>
25529
25530         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25531         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25532         a reliable way to determine whether the 'alias' command works.
25533
25534 2010-09-08  Jim Meyering  <meyering@redhat.com>
25535
25536         init.sh: penalize a set-x-impaired shell; don't disqualify it
25537         * tests/init.sh: Too many shells corrupt application stderr when
25538         you set -x, so we can't afford to disqualify them, since at least
25539         on Irix-6.5, that would disqualify all bourne shells.
25540         Instead, use a two-pass approach.
25541         On the first pass, try to find a shell that meets the stricter
25542         condition that set -x does not corrupt stderr.
25543         If no shell meets the stricter condition, retest each candidate
25544         shell, but without that extra condition.  Finally, when
25545         VERBOSE=yes is requested and set -x might cause trouble, simply
25546         issue a warning and refrain from enabling debug output.
25547
25548 2010-09-08  Eric Blake  <eblake@redhat.com>
25549
25550         unsetenv: fix OpenBSD bug
25551         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25552         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25553         documentation.
25554         Reported by Jim Meyering.
25555
25556         strtod: work around IRIX 6.5 bug
25557         * lib/strtod.c (strtod): Reparse number on shorter string if
25558         exponent parse was invalid.
25559         * tests/test-strtod.c (main): Add check for "0x1p 2".
25560         Reported by Tom G. Christensen.
25561
25562         getopt: optimize previous patch
25563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25564         empty variable.  Speed up awk script.
25565         Reported by Paolo Bonzini.
25566
25567 2010-09-08  Jim Meyering  <meyering@redhat.com>
25568
25569         test.sh: disqualify shells for which set -x corrupts stderr
25570         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25571         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25572         appear in stderr output.  For example, this command:
25573             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25574         prints "P=1" on those two systems:
25575
25576 2010-09-08  Bruno Haible  <bruno@clisp.org>
25577
25578         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25579         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25580         commands, because some shells ignore redirections when there is an
25581         error in the command lookup.
25582         Reported by Eric Blake.
25583
25584 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25585
25586         * lib/regex.h: Fix a mention of `regex_compile' (should be
25587         `re_compile_pattern').
25588         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25589         (re_set_registers): Correct name of parameter in comment.
25590
25591         * doc/regex.texi: Add documentation for missing syntax flags.
25592         Remove commented-out documentation of defunct syntax option
25593         RE_NO_EMPTY_ALTS.
25594         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25595         Add documentation of re_set_registers.
25596         Document trick to re-use a pattern buffer by setting fastmap manually.
25597         Update documentation of struct re_pattern_buffer per public members.
25598         Uncomment documentation of equivalence class operators and
25599         collating symbol operators, since they are now implemented,
25600         Explain leftmost-longest matching in relation to alternatives.
25601         Tidy documentation of substring matching.
25602         Remove POSIX documentation, which is done better in
25603         glibc, and refer the reader there. Keep BSD API documentation, as
25604         that is not readily available elsewhere.
25605
25606 2010-09-07  Eric Blake  <eblake@redhat.com>
25607
25608         getopt: handle POSIXLY_CORRECT set but not exported
25609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25610         export state of POSIXLY_CORRECT, due to bash set -o posix.
25611         Reported by Dustin J. Mitchell.
25612
25613 2010-09-05  Bruno Haible  <bruno@clisp.org>
25614
25615         gnulib-tool: Highlight the changed options.
25616         * gnulib-tool (func_usage): Display the --import, --add-import,
25617         --remove-import explanations in bold font.
25618
25619 2010-09-06  Karl Berry  <karl@gnu.org>
25620
25621         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25622
25623 2010-09-05  Bruno Haible  <bruno@clisp.org>
25624
25625         uniwidth/width: Update comment.
25626         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25627         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25628
25629 2010-09-05  Bruno Haible  <bruno@clisp.org>
25630
25631         isinf, isnan: Relax license.
25632         * modules/isinf (License): Change from GPL to LGPL, with consent from
25633         Ben Pfaff.
25634         * modules/isnan (License): Likewise.
25635         Requested by Ludovic Courtès.
25636
25637 2010-09-04  Bruno Haible  <bruno@clisp.org>
25638
25639         gnulib-tool: Help migration from --import to --add-import or --update.
25640         * gnulib-tool: Emit a verbose error message when --import is used
25641         without any module name.
25642
25643 2010-09-04  Bruno Haible  <bruno@clisp.org>
25644
25645         Update doc about gnulib-tool.
25646         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25647         'gnulib-tool --update' in more detail.
25648         Reported by Eric Blake.
25649
25650 2010-09-04  Bruno Haible  <bruno@clisp.org>
25651
25652         gnulib-tool: Change --import. New options --add/remove-import.
25653         * gnulib-tool: New options --add-import, --remove-import.
25654         (func_usage): Document them.
25655         (have_associative): Define always.
25656         (func_import): In import mode, don't merge the specified settings with
25657         the cached settings. Implement remove-import mode.
25658         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25659         Explain when to use them versus --import.
25660         (Simple update): Use --add-import instead of --import.
25661         * NEWS: Mention the change.
25662
25663 2010-09-04  Bruno Haible  <bruno@clisp.org>
25664
25665         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25666         separate gnulib.mk.
25667
25668 2010-09-04  Bruno Haible  <bruno@clisp.org>
25669
25670         gnulib-tool: Don't talk about CVS any more.
25671         * gnulib-tool (func_usage, func_import): Write "version control"
25672         instead of CVS.
25673
25674 2010-09-04  Jim Meyering  <meyering@redhat.com>
25675
25676         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25677         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25678         false positives (whose names may be ill-chosen) when searching
25679         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25680         would cause a false-positive.
25681
25682         avoid coreutils "make distcheck" failure
25683         Coreutils tests with an absolute build directory name that contains
25684         a space.  Not quoting this directory name caused a failure.
25685         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25686         * tests/test-vc-list-files-cvs.sh: Likewise.
25687
25688 2010-09-04  Bruno Haible  <bruno@clisp.org>
25689
25690         gnulib-tool: Avoid error when run in a package without Makefile.am.
25691         * gnulib-tool: When collecting the m4dirs in a package that does not
25692         have a Makefile.am, eliminate those directories that contain no
25693         gnulib-cache.m4. Fix expression that counts these directories.
25694
25695 2010-09-04  Bruno Haible  <bruno@clisp.org>
25696
25697         update-copyright test: Improve output when perl is missing or too old.
25698         * tests/test-update-copyright.sh: Move test of Perl version down after
25699         the test whether Perl exists. Provide an explanation relating Perl's
25700         error message to Automake's SKIP: message.
25701
25702 2010-09-04  Bruno Haible  <bruno@clisp.org>
25703
25704         Don't augment PATH in TESTS_ENVIRONMENT.
25705         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25706         set abs_aux_dir instead of augmenting PATH.
25707         * modules/vc-list-files-tests (Makefile.am): Likewise.
25708         * tests/test-update-copyright.sh: Augment PATH here.
25709         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25710         path_prepend_.
25711         * tests/test-vc-list-files-git.sh: Likewise.
25712
25713 2010-09-04  Jim Meyering  <meyering@redhat.com>
25714
25715         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25716         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25717
25718 2010-09-04  Bruno Haible  <bruno@clisp.org>
25719
25720         strdup: Fix compilation error in C++ mode.
25721         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25722         the macro.
25723
25724 2010-09-04  Bruno Haible  <bruno@clisp.org>
25725
25726         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25727         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25728         macro into a function.
25729         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25730
25731 2010-09-04  Bruno Haible  <bruno@clisp.org>
25732
25733         Set PATH_SEPARATOR the same way autoconf does.
25734         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25735         the value of PATH_SEPARATOR the same way autoconf-generated configure
25736         scripts do.
25737         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25738         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25739
25740 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25741
25742         Set PATH_SEPARATOR the same way autoconf does.
25743         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25744         the same way autoconf-generated configure scripts do.
25745         * posix-modules: Likewise.
25746
25747 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25748
25749         hash: fix safe_hasher const typo
25750         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25751         const; otherwise, there is a type error later.
25752
25753 2010-09-02  Jim Meyering  <meyering@redhat.com>
25754
25755         test-update-copyright.sh: require perl 5.8.0
25756         * tests/test-update-copyright.sh: Require 5.8.0,
25757         which Tom G. Christensen has confirmed is adequate,
25758         while 5.6.1 is not.
25759
25760 2010-09-02  Eric Blake  <eblake@redhat.com>
25761
25762         tests: init.sh improvements for re-exec'ing with zsh
25763         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25764         -vx through shell re-exec.
25765         Reported by Tom G. Christensen.
25766
25767         wctype: fix typo in previous commit
25768         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25769         Reported by Ludovic Courtès.
25770
25771 2010-09-02  Jim Meyering  <meyering@redhat.com>
25772
25773         test-update-copyright.sh: skip test if Perl is too old
25774         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25775         Reported by Tom G. Christensen.
25776
25777 2010-09-02  Bruno Haible  <bruno@clisp.org>
25778
25779         wctype: Avoid compilation error on IRIX 6.5.30.
25780         * lib/wctype.in.h (iswblank): Declare with a replacement if
25781         REPLACE_ISWBLANK is set.
25782         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25783         declared. Set REPLACE_ISWBLANK.
25784         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25785         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25786         * doc/posix-headers/wctype.texi: Likewise.
25787         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25788
25789 2010-09-01  Bruno Haible  <bruno@clisp.org>
25790
25791         New module 'socketlib'.
25792         * modules/socketlib: New file.
25793         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25794         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25795         * modules/sockets (Depends-on): Add socketlib.
25796         Suggested by Sam Steingold <sds@gnu.org>.
25797
25798 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25799
25800         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25801
25802         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25803         when one needs search access to a directory but not read access.
25804         On systems where it is available, it works in some cases where
25805         O_RDONLY does not, namely on directories that are searchable but
25806         not readable, and which need only to be searchable.  If O_SEARCH
25807         is not available, fall back to the traditional method of using
25808         O_RDONLY.
25809
25810         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25811         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25812         when opening a directory that needs only to be searchable.
25813         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25814         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25815         * lib/openat-proc.c (openat_proc_name): Likewise.
25816         * lib/openat.c (openat_needs_fchdir): Likewise.
25817         * lib/save-cwd.c (save_cwd): Likewise.
25818         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25819
25820 2010-08-28  Bruno Haible  <bruno@clisp.org>
25821
25822         New module 'host-cpu-c-abi'.
25823         * modules/host-cpu-c-abi: New file.
25824         * m4/host-cpu-c-abi.m4: New file, based on part of
25825         clisp/src/m4/general.m4.
25826         Requested by Sam Steingold <sds@gnu.org>.
25827
25828 2010-08-31  Eric Blake  <eblake@redhat.com>
25829         and Jim Meyering  <meyering@redhat.com>
25830
25831         hash: factor, and guard against misbehaving hasher function
25832         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25833         of table->hasher's return value.  Also protect against a hash value
25834         so large that adding it to table->bucket results in a NULL pointer.
25835         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25836         Use it in place of open-coded check-and-abort.
25837
25838 2010-08-30  Bruno Haible  <bruno@clisp.org>
25839
25840         hash: silence spurious clang warning
25841         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25842         Reported by Eric Blake.
25843
25844 2010-08-30  Eric Blake  <eblake@redhat.com>
25845
25846         strstr, memmem, strcasestr: avoid leaked shell message
25847         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25848         FreeBSD.
25849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25850         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25851
25852         tests: silence clang warning
25853         * tests/test-malloca.c (do_allocation): Avoid dead store.
25854
25855 2010-08-29  Bruno Haible  <bruno@clisp.org>
25856
25857         gettext: Fix recent mistake.
25858         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25859
25860 2010-08-29  Bruno Haible  <bruno@clisp.org>
25861
25862         selinux-h: Offer a --without-selinux option.
25863         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25864         --without-selinux was specified, skip all tests and define
25865         HAVE_SELINUX_SELINUX_H to 0.
25866         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25867         set LIB_SELINUX to empty.
25868         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25869         gl_LIBSELINUX. If --without-selinux was specified, replace
25870         selinux/context.h.
25871         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25872
25873 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25874             Bruno Haible  <bruno@clisp.org>
25875
25876         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25877         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25878         of HAVE_REALLOC.
25879         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25880         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25881         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25882         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25883
25884 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25885             Bruno Haible  <bruno@clisp.org>
25886
25887         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25888         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25889         HAVE_CALLOC.
25890         * lib/xmalloc.c: Update accordingly.
25891         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25892         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25893         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25894
25895 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25896             Bruno Haible  <bruno@clisp.org>
25897
25898         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25899         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25900         HAVE_MALLOC.
25901         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25902         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25903         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25904
25905 2010-08-29  Bruno Haible  <bruno@clisp.org>
25906
25907         Update modules list.
25908         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25909         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25910         (String handling <string.h>): Add astrxfrm.
25911         (File system functions): Add readlinkat.
25912
25913 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25914
25915         Tests for module 'realloc-gnu'.
25916         * modules/realloc-gnu-tests: New file.
25917         * tests/test-realloc-gnu.c: New file.
25918
25919         Tests for module 'calloc-gnu'.
25920         * modules/calloc-gnu-tests: New file.
25921         * tests/test-calloc-gnu.c: New file.
25922
25923         Tests for module 'malloc-gnu'.
25924         * modules/malloc-gnu-tests: New file.
25925         * tests/test-malloc-gnu.c: New file.
25926
25927 2010-08-28  Bruno Haible  <bruno@clisp.org>
25928
25929         Rename module 'realloc' -> 'realloc-gnu'.
25930         * modules/realloc-gnu: New file, copied from modules/realloc.
25931         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25932         obsolete.
25933         * modules/mgetgroups (Depends-on): Update.
25934         * doc/posix-functions/realloc.texi: Update.
25935         * NEWS: Mention the change.
25936
25937         Rename module 'calloc' -> 'calloc-gnu'.
25938         * modules/calloc-gnu: New file, copied from modules/calloc.
25939         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25940         obsolete.
25941         * doc/posix-functions/calloc.texi: Update.
25942         * NEWS: Mention the change.
25943
25944         Rename module 'malloc' -> 'malloc-gnu'.
25945         * modules/malloc-gnu: New file, copied from modules/malloc.
25946         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25947         obsolete.
25948         * modules/argp (Depends-on): Update.
25949         * modules/regex (Depends-on): Update.
25950         * doc/posix-functions/malloc.texi: Update.
25951         * NEWS: Mention the change.
25952
25953 2010-08-28  Eric Blake  <eblake@redhat.com>
25954
25955         pread, pwrite: add missing dependency
25956         * modules/pread (Depends-on): Add extensions.
25957         * modules/pwrite (Depends-on): Likewise.
25958
25959 2010-08-28  Bruno Haible  <bruno@clisp.org>
25960
25961         unistr/u*-strchr: Fix tests dependencies.
25962         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25963         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25964         Reported by Ian Beckwith <ianb@erislabs.net>.
25965
25966 2010-08-28  Bruno Haible  <bruno@clisp.org>
25967
25968         read-file: Don't occupy too much unused memory.
25969         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25970
25971 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25972             Eric Blake  <eblake@redhat.com>
25973             Bruno Haible  <bruno@clisp.org>
25974
25975         read-file: Avoid memory reallocations with regular files.
25976         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25977         (fread_file): With regular files, use the remaining length as the
25978         initial buffer size.  Check against overflow.
25979         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25980         sys_stat.
25981
25982 2010-08-28  Bruno Haible  <bruno@clisp.org>
25983
25984         ftello: Relax license.
25985         * modules/ftello (License): Relax to LGPLv2+.
25986         Reported by Eric Blake.
25987
25988 2010-08-28  Bruno Haible  <bruno@clisp.org>
25989
25990         Avoid relocwrapper link errors due to gnulib replacement functions.
25991         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25992         function.
25993         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25994
25995 2010-08-28  Bruno Haible  <bruno@clisp.org>
25996
25997         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25998         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25999         defined.
26000         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26001         Suggested by Eric Blake.
26002
26003 2010-08-28  Bruno Haible  <bruno@clisp.org>
26004
26005         sys_socket, netdb: Ensure socklen_t gets defined.
26006         * modules/sys_socket (Depends-on): Add socklen.
26007         * modules/netdb (Depends-on): Likewise.
26008         * modules/getaddrinfo (Depends-on): Remove socklen.
26009         * modules/getsockopt (Depends-on): Likewise.
26010         * modules/setsockopt (Depends-on): Likewise.
26011         * tests/test-sys_socket.c: Check that socklen_t is defined.
26012         * tests/test-netdb.c: Likewise.
26013         * m4/socklen.m4: Update comments.
26014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26015
26016 2010-08-27  Eric Blake  <eblake@redhat.com>
26017
26018         login_tty: add missing dependency
26019         * modules/login_tty (Depends-on): Add pty.
26020
26021 2010-08-26  Eric Blake  <eblake@redhat.com>
26022
26023         lib-symbol-versions: fix m4 quoting
26024         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26025         format for AC_LINK_IFELSE.
26026
26027         glob: fix compile test
26028         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26029
26030         btowc: fix missing file
26031         * modules/btowc (Files): Also ship locale-fr.m4.
26032
26033         lseek: fix link test
26034         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26035         AC_LINK_IFELSE.
26036
26037         include_next: silence autoconf 2.68 warning
26038         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26039         AC_COMPILE_IFELSE as special.
26040         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26041         autoconf < 2.68.
26042
26043         acl: fix compilation test
26044         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26045         AC_COMPILE_IFELSE.
26046
26047 2010-08-26  Bruno Haible  <bruno@clisp.org>
26048
26049         Modernize AC_TRY_RUN invocations.
26050         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26051         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26052         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26053         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26054         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26055         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26058         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26059         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26061         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26062         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26063         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26064         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26065         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26066         gl_MBRLEN_NUL_RETVAL): Likewise.
26067         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26068         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26069         Likewise.
26070         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26071         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26072         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26073         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26074         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26075         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26076         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26077         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26078         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26079         Likewise.
26080         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26081         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26083         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26084         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26085         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26086         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26087         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26088         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26090
26091 2010-08-26  Bruno Haible  <bruno@clisp.org>
26092
26093         Modernize AC_TRY_LINK invocations.
26094         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26095         AC_TRY_LINK.
26096         * m4/argp.m4 (gl_ARGP): Likewise.
26097         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26098         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26099         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26100         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26101         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26102         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26103         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26104         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26105         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26106         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26107         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26108         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26109         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26110         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26111         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26112         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26113         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26114         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26115         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26116         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26117         Likewise.
26118         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26119         Likewise.
26120         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26121         Likewise.
26122         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26123         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26124         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26125         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26126         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26127         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26128         * m4/servent.m4 (gl_SERVENT): Likewise.
26129         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26130         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26131         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26132         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26133         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26134         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26135         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26136         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26137         * modules/tsearch-tests (configure.ac): Likewise.
26138
26139 2010-08-26  Bruno Haible  <bruno@clisp.org>
26140
26141         Modernize AC_TRY_COMPILE invocations.
26142         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26143         AC_TRY_COMPILE.
26144         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26145         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26146         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26147         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26148         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26149         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26150         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26151         * m4/lock.m4 (gl_LOCK): Likewise.
26152         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26153         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26154         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26155         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26156         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26157         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26158         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26160         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26161         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26162         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26163         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26164         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26165         extraneous semicolon.
26166
26167 2010-08-26  Jim Meyering  <meyering@redhat.com>
26168
26169         stat-time: relax license LGPL
26170         * modules/stat-time (License): Change from GPL to LGPL,
26171         with consent from all contributors, for use in libguile.
26172         Requested by Ludovic Courtès.
26173
26174 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26175
26176         poll: return immediately on POLLHUP.
26177         * lib/poll.c (poll): Always set timeout before wait_timeout is
26178         computed.
26179
26180 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26181
26182         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26183         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26184         rmdir ("dir/.//"), unlinkat.
26185
26186 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26187
26188         stdbool: avoid spurious failure with modern xlc
26189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26190
26191 2010-08-24  Bruno Haible  <bruno@clisp.org>
26192
26193         getloadavg: simplify code
26194         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26195         gl_have_func. Update comments.
26196
26197 2010-08-24  Eric Blake  <eblake@redhat.com>
26198
26199         getloadavg: don't define SVR4 on cygwin
26200         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26201         only define SVR4 when -lkvm is required.
26202         Reported by Yaakov Selkowitz.
26203
26204 2010-08-24  Bruno Haible  <bruno@clisp.org>
26205
26206         priv-set: fix comment
26207         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26208
26209 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26210
26211         priv-set: fix comments
26212         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26213         to match code, as suggested by David Bartley in:
26214         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26215
26216 2010-08-23  Eric Blake  <eblake@redhat.com>
26217
26218         stdbool: avoid rejecting clang
26219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26220         * tests/test-stdbool.c: Enable more tests if using the system
26221         <stdbool.h> instead of the gnulib replacement.
26222         (main): Move xlc bug test to a runtime test for all compilers.
26223         Reported by Anders Kaseorg.
26224
26225         argz: fix shell quoting issue
26226         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26227         Reported by Charles Wilson.
26228
26229 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26230             Erik Faye-Lund <kusmabite@gmail.com>
26231
26232         poll, select: handle ERROR_BROKEN_PIPE.
26233         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26234         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26235         * lib/select.c (win32_compute_revents): Do not mark a pipe
26236         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26237
26238 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26239
26240         fts: allow compilation with C++
26241         * lib/fts_.h: Specify extern "C" linkage with C++.
26242
26243 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26244
26245         Fix gnulib-tool sed script de-commentation for AIX sed.
26246         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26247         sed.
26248
26249 2010-08-17  Eric Blake  <eblake@redhat.com>
26250
26251         test-stddef: test for (some) offsetof bugs
26252         * tests/test-stddef.c: Enhance test to ensure correct type of
26253         offsetof.
26254         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26255         that we are not fixing at this time.
26256
26257 2010-08-15  Bruno Haible  <bruno@clisp.org>
26258
26259         stpncpy: Allow stpncpy to be defined as a macro.
26260         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26261         if it's already correctly declared.
26262         * lib/string.in.h (stpncpy): Undefine before redefining.
26263         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26264
26265 2010-08-14  Bruno Haible  <bruno@clisp.org>
26266
26267         Rename module 'memxfrm' to 'amemxfrm'.
26268         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26269         (amemxfrm): Renamed from memxfrm.
26270         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26271         (amemxfrm): Renamed from memxfrm.
26272         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26273         * NEWS: Mention the change.
26274         * MODULES.html.sh (String handling <string.h>): Update.
26275         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26276         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26277         * lib/unicase/u16-casexfrm.c: Likewise.
26278         * lib/unicase/u32-casexfrm.c: Likewise.
26279         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26280         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26281         * lib/uninorm/u16-normxfrm.c: Likewise.
26282         * lib/uninorm/u32-normxfrm.c: Likewise.
26283         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26284         memxfrm.
26285         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26286         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26287         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26288         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26289         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26290         Suggested by Paul Eggert.
26291
26292 2010-08-14  Bruno Haible  <bruno@clisp.org>
26293
26294         Tests for module 'astrxfrm'.
26295         * modules/astrxfrm-tests: New file.
26296         * tests/test-astrxfrm.c: New file.
26297
26298         New module 'astrxfrm'.
26299         * lib/astrxfrm.h: New file.
26300         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26301         * modules/astrxfrm: New file.
26302
26303 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26304
26305         regex: Tweak doc.
26306         * doc/regex.texi (Overview): Don't mention regex.c.
26307         (GNU Regular Expression Compiling): Likewise.
26308         (Match-end-of-line Operator): Mention 'not_eol'.
26309
26310 2010-08-14  Brian Gough  <bjg@gnu.org>
26311             Bruno Haible  <bruno@clisp.org>
26312
26313         git-merge-changelog: add doc relating to use with bzr and hg.
26314         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26315
26316 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26317
26318         pthread: fix pthread.h creation for srcdir != builddir
26319         * modules/pthread (Makefile.am): Fix the rule to work also in a
26320         non-srcdir build.
26321
26322 2010-08-13  Karl Berry  <karl@gnu.org>
26323
26324         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26325         * doc/posix-*/*: force line break before @url of POSIX
26326         specifications.
26327         Suggested by Werner Lemberg.
26328
26329 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26330
26331         strtod: fix const diagnostic
26332         * lib/strtod.c (strtod): Don't assign const char * to char *,
26333         as this elicits a warning from GCC when warnings are enabled.
26334
26335 2010-08-10  Pádraig Brady <P@draigbrady.com>
26336         and Eric Blake  <eblake@redhat.com>
26337
26338         copy-acl: ignore ENOTSUP on HP-UX
26339         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26340         so that it is available for HP-UX.
26341         * lib/copy-acl.c (qcopy_acl): Use it.
26342         Reported by Patrick M. Callahan.
26343
26344 2010-08-10  Eric Blake  <eblake@redhat.com>
26345
26346         open, chown: relax license
26347         * modules/open (License): Change to LGPLv2+, with consent by all
26348         authors, for use in augeas.
26349         * modules/chown (License): Likewise.
26350         * modules/lchown (Likewise): Likewise.
26351         Requested by Adam Stokes.
26352
26353 2010-08-09  Karl Berry  <karl@gnu.org>
26354
26355         * build-aux/ar-lib: new file, import from Automake.
26356         * config/srclist.txt: autocheck for updates.
26357
26358 2010-08-09  Eric Blake  <eblake@redhat.com>
26359
26360         readlinkat: adjust client modules
26361         * modules/areadlinkat (Depends-on): Use readlinkat, not
26362         symlinkat.
26363         * modules/areadlinkat-with-size (Depends-on): Likewise.
26364
26365         mknod: be more vocal about danger of running tests as root
26366         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26367         root, since that is just asking for problems.
26368         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26369
26370         readlinkat: split into its own module
26371         * modules/symlinkat: Split readlinkat...
26372         * modules/readlinkat: ...into separate module.
26373         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26374         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26375         * lib/symlinkat.c (readlinkat): Move...
26376         * lib/readlinkat.c: ...into new file.
26377         * modules/symlinkat-tests: Split readlinkat test...
26378         * modules/readlinkat-tests: ...into separate module.
26379         * tests/test-symlinkat.c: Split...
26380         * tests/test-readlinkat.c: ...into new file.
26381         * NEWS: Document the split.
26382         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26383         * lib/unistd.in.h (readlinkat): Likewise.
26384         Suggested by Bruno Haible.
26385
26386 2010-08-08  Bruno Haible  <bruno@clisp.org>
26387
26388         memxfrm: Speed up.
26389         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26390         that usually only one call to strxfrm is necessary for each string
26391         part.
26392         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26393
26394 2010-08-07  Karl Berry  <karl@gnu.org>
26395
26396         * doc/posix-headers/limits.texi,
26397         * doc/posix-functions/malloc.texi,
26398         * doc/posix-functions/strsignal.texi: missing @item.
26399         * doc/ld-version-script.texi: spurious leading i.
26400         * doc/regex.texi (Interval Operators): no commas inside @var.
26401
26402 2010-08-01  Bruno Haible  <bruno@clisp.org>
26403
26404         Integrate the regex documentation.
26405         * doc/gnulib.texi: Define 'cn' index.
26406         (Regular expressions): New a chapter that includes regex.texi and
26407         regexprops-generic.texi.
26408         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26409         syntax.
26410
26411         Whitespace cleanup.
26412         * doc/regex.texi: Remove trailing spaces.
26413
26414         Add regex documentation.
26415         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26416         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26417         Written by Kathy A. Hargreaves and Karl Berry.
26418
26419 2010-08-01  Bruno Haible  <bruno@clisp.org>
26420
26421         link: Update documentation.
26422         * doc/posix-functions/link.texi: Update regarding Solaris.
26423
26424 2010-07-31  Bruno Haible  <bruno@clisp.org>
26425
26426         Update modules list.
26427         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26428         (String handling <string.h>): Add memcmp2, memxfrm.
26429         (Container data structures): Add xlist, xsublist, xoset.
26430         (Core language properties): Add alignof, unused-parameter.
26431         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26432         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26433         (Unibyte characters <ctype.h>): New section.
26434         (String handling <string.h>): New section.
26435         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26436         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26437         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26438         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26439         tan, tanh, tanl, y0, y1, yn.
26440         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26441         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26442         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26443         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26444         unlockpt, vdprintf, vdprintf-posix.
26445         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26446         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26447         xconcat-filename.
26448         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26449         getdtablesize, pipe2, pipe2-safer.
26450         (Security): New section.
26451         (Networking functions): Add accept4.
26452         (Signal handling): Add sigpipe.
26453         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26454         mbmemcasecoll.
26455         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26456         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26457         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26458         pipe-filter-ii.
26459         (Misc): Add argp-version-etc, login_tty, parse-duration.
26460
26461 2010-07-31  Bruno Haible  <bruno@clisp.org>
26462
26463         Improve doc in MODULES.html.
26464         * modules/linkat (Description): Add the word "function".
26465         * modules/mkfifo (Description): Likewise.
26466         * modules/mknod (Description): Likewise.
26467         * modules/remove (Description): Likewise.
26468         * modules/renameat (Description): Likewise.
26469         * modules/stat (Description): Likewise.
26470         * modules/symlink (Description): Likewise.
26471         * modules/unlink (Description): Likewise.
26472
26473 2010-07-31  Bruno Haible  <bruno@clisp.org>
26474
26475         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26476         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26477         option --enable/disable-c++ instead of --enable/disable-cxx.
26478         * NEWS: Mention the change.
26479
26480 2010-07-31  Bruno Haible  <bruno@clisp.org>
26481
26482         readlink, areadlink: Relax test a bit.
26483         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26484         alternative to ENOTDIR.
26485         * tests/test-areadlink.h (test_areadlink): Likewise.
26486         Reported by Rainer Tammer.
26487
26488 2010-07-31  Bruno Haible  <bruno@clisp.org>
26489
26490         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26491         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26492         character, perform the search using U_STRCHR.
26493         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26494         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26495         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26496         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26497         Suggested by Paolo Bonzini.
26498
26499 2010-07-31  Bruno Haible  <bruno@clisp.org>
26500
26501         unistr/u*-strstr: Fix dependencies.
26502         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26503         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26504         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26505
26506 2010-07-31  Bruno Haible  <bruno@clisp.org>
26507
26508         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26509         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26510         the beginning of the loop.
26511         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26512         cases in 'switch' statement.
26513
26514         unistr/u8-strchr: Fix several bugs.
26515         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26516         the string. When not found, return NULL, not a pointer near the end.
26517
26518         More tests for unistr/u8-strchr.
26519         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26520         that the function does not read past the first occurrence of the byte
26521         being searched.
26522         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26523         * tests/unistr/test-u16-strchr.c (main): New function.
26524         * tests/unistr/test-u32-strchr.c (main): New function.
26525
26526 2010-07-31  Bruno Haible  <bruno@clisp.org>
26527
26528         posix-modules: Ignore backup files of documentation files.
26529         * posix-modules: grep only through files named *.texi.
26530
26531 2010-07-31  Bruno Haible  <bruno@clisp.org>
26532
26533         symlinkat: Fix documentation.
26534         * doc/posix-functions/readlinkat.texi: Fix module name.
26535
26536 2010-07-31  Bruno Haible  <bruno@clisp.org>
26537
26538         fchownat: Replace also when chown has the trailing slash bug.
26539         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26540         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26541         introduced on 2010-04-10.
26542         Reported by Rainer Tammer.
26543
26544 2010-07-31  Bruno Haible  <bruno@clisp.org>
26545
26546         linkat: Work around AIX 7.1 bug.
26547         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26548         whether linkat handles trailing slash correctly. If not, replace linkat
26549         and define LINKAT_TRAILING_SLASH_BUG.
26550         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26551         check whether (fd1,file1) points to a directory if file1 or file2 ends
26552         in a slash. Code taken from lib/link.c.
26553         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26554         Reported by Rainer Tammer.
26555
26556 2010-07-31  Bruno Haible  <bruno@clisp.org>
26557
26558         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26559         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26560         This disables an xlc optimization that was causing wrong test results.
26561         Reported by Rainer Tammer.
26562
26563 2010-07-31  Bruno Haible  <bruno@clisp.org>
26564
26565         iconv: Work around AIX 6.1..7.1 bug.
26566         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26567         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26568         cross-compiling, guess no on all versions of AIX.
26569         Reported by Rainer Tammer.
26570
26571 2010-07-31  Bruno Haible  <bruno@clisp.org>
26572
26573         readlink: Relax test a bit.
26574         * tests/test-readlink.h (test_readlink): Allow different errno value
26575         when readlink is called with a file name that ends in / and refers to
26576         a file.
26577         Suggested by Eric Blake.
26578         Reported by Rainer Tammer.
26579
26580 2010-07-31  Bruno Haible  <bruno@clisp.org>
26581
26582         copysign: Does not require -lm on glibc systems.
26583         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26584         gl_COMMON_DOUBLE_MATHFUNC.
26585         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26586
26587 2010-07-31  Bruno Haible  <bruno@clisp.org>
26588
26589         duplocale: Work around AIX 7.1 bug.
26590         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26591         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26592         * lib/duplocale.c (rpl_duplocale): Update comment.
26593         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26594         Reported by Rainer Tammer.
26595
26596 2010-07-30  Bruno Haible  <bruno@clisp.org>
26597
26598         dirfd: Avoid link error on AIX 7.1.
26599         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26600         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26601         exist, set REPLACE_DIRFD.
26602         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26603         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26604         * doc/posix-functions/dirfd.texi: Update.
26605         Reported by Rainer Tammer.
26606
26607 2010-07-30  Eric Blake  <eblake@redhat.com>
26608
26609         strtod: next round of AIX fixes
26610         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26611         exponent.
26612         * tests/test-strtod.c (main): Enhance tests.
26613         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26614         Reported by Rainer Tammer.
26615
26616         futimens: fix configure check
26617         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26618         Reported by Bruno Haible.
26619
26620 2010-07-30  Bruno Haible  <bruno@clisp.org>
26621
26622         getline: Update regarding AIX.
26623         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26624         Reported by Rainer Tammer.
26625
26626 2010-07-30  Bruno Haible  <bruno@clisp.org>
26627
26628         wcwidth: Drop replacement on AIX 7.
26629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26630         AIX 7.
26631         Reported by Rainer Tammer.
26632
26633 2010-07-30  Bruno Haible  <bruno@clisp.org>
26634
26635         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26636         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26637         a 'char *'.
26638         Reported by Rainer Tammer.
26639
26640 2010-07-30  Bruno Haible  <bruno@clisp.org>
26641
26642         unlink: Update regarding AIX.
26643         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26644         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26645         Reported by Rainer Tammer.
26646
26647 2010-07-30  Bruno Haible  <bruno@clisp.org>
26648
26649         symlink: Update regarding AIX.
26650         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26651         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26652         Reported by Rainer Tammer.
26653
26654 2010-07-30  Bruno Haible  <bruno@clisp.org>
26655
26656         strndup: Update regarding AIX.
26657         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26658         AIX 7.
26659         Reported by Rainer Tammer.
26660
26661 2010-07-30  Bruno Haible  <bruno@clisp.org>
26662
26663         stat: Update regarding AIX.
26664         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26665         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26666         Reported by Rainer Tammer.
26667
26668 2010-07-30  Bruno Haible  <bruno@clisp.org>
26669
26670         truncl: Fix autoconf test.
26671         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26672         whether truncl works.
26673         Reported by Rainer Tammer.
26674
26675 2010-07-30  Bruno Haible  <bruno@clisp.org>
26676
26677         round: Update regarding AIX.
26678         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26679         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26680         Reported by Rainer Tammer.
26681
26682 2010-07-30  Bruno Haible  <bruno@clisp.org>
26683
26684         rename: Update regarding AIX.
26685         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26686         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26687         Reported by Rainer Tammer.
26688
26689 2010-07-30  Bruno Haible  <bruno@clisp.org>
26690
26691         printf.m4: Update regarding AIX.
26692         * m4/printf.m4: Update comments regarding AIX.
26693         Reported by Rainer Tammer.
26694
26695 2010-07-30  Bruno Haible  <bruno@clisp.org>
26696
26697         iconv: Update regarding AIX.
26698         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26699         AIX 7.
26700         Reported by Rainer Tammer.
26701
26702 2010-07-30  Bruno Haible  <bruno@clisp.org>
26703
26704         getopt: Update regarding AIX.
26705         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26706         no on AIX.
26707         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26708         Reported by Rainer Tammer.
26709
26710 2010-07-30  Bruno Haible  <bruno@clisp.org>
26711
26712         ldexpl; Update regarding AIX.
26713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26714         on AIX 7.
26715         Reported by Rainer Tammer.
26716
26717 2010-07-30  Bruno Haible  <bruno@clisp.org>
26718
26719         frexpl: Update regarding AIX.
26720         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26721         on AIX 7.
26722         Reported by Rainer Tammer.
26723
26724 2010-07-30  Bruno Haible  <bruno@clisp.org>
26725
26726         open, fopen: Update regarding AIX.
26727         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26728         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26729         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26730         * doc/posix-functions/fopen.texi: Likewise.
26731         Reported by Rainer Tammer.
26732
26733 2010-07-30  Bruno Haible  <bruno@clisp.org>
26734
26735         chown: Update doc regarding AIX.
26736         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26737         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26738         Reported by Rainer Tammer.
26739
26740 2010-07-30  Eric Blake  <eblake@redhat.com>
26741
26742         strtod: fix bug in replacement function on AIX
26743         * lib/strtod.c (strtod): Special case broken "0x" parse in
26744         underlying strtod.
26745         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26746         * doc/posix-functions/strtod.texi (strtod): Likewise.
26747         Reported by Rainer Tammer.
26748
26749 2010-07-30  Bruno Haible  <bruno@clisp.org>
26750
26751         mbrlen: Fix cross-compilation guess for AIX.
26752         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26753         guess. Leftover from 2008-12-22.
26754
26755 2010-07-30  Bruno Haible  <bruno@clisp.org>
26756
26757         mbrtowc: Fix cross-compilation guess for AIX.
26758         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26759         guess. Leftover from 2008-12-21.
26760
26761 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26762
26763         init.sh: work around trap limitation of some shells
26764         * tests/init.sh (setup_): Move exit trap outside of shell function.
26765
26766 2010-07-29  Eric Blake  <eblake@redhat.com>
26767
26768         strtod: aid debugging
26769         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26770         understanding why strtod is rejected.
26771
26772 2010-07-28  Bruno Haible  <bruno@clisp.org>
26773
26774         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26775         * lib/unistr/u8-chr.c: Include <string.h>.
26776         * tests/unistr/test-u8-chr.c: Likewise.
26777         * tests/unistr/test-u16-chr.c: Likewise.
26778         * tests/unistr/test-u32-chr.c: Likewise.
26779         * tests/unistr/test-u8-strchr.c: Likewise.
26780         * tests/unistr/test-u16-strchr.c: Likewise.
26781         * tests/unistr/test-u32-strchr.c: Likewise.
26782         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26783         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26784         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26785         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26786
26787 2010-07-28  Bruno Haible  <bruno@clisp.org>
26788
26789         Use spaces for indentation, not tabs.
26790         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26791
26792 2010-07-27  Bruno Haible  <bruno@clisp.org>
26793
26794         mbspcasecmp: Fix function specification.
26795         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26796         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26797         Reported by Eric Blake <eblake@redhat.com>.
26798
26799 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26800
26801         timespec: use cast and not conditional, as truncation isn't possible
26802         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26803         instead of a conditional.  Comment about the situation in more detail.
26804         This undoes most of the 2009-10-29 patch.
26805
26806 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26807
26808         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26809         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26810         * lib/unistr/u8-strchr.c: Likewise.
26811         * modules/unistr/u8-chr: Depend on memchr.
26812
26813         unistr/u*-strchr: add tests
26814         * modules/unistr/u8-strchr-tests: New file.
26815         * modules/unistr/u16-strchr-tests: New file.
26816         * modules/unistr/u32-strchr-tests: New file.
26817         * tests/unistr/test-strchr.h: New file.
26818         * tests/unistr/test-u8-strchr.c: New file.
26819         * tests/unistr/test-u16-strchr.c: New file.
26820         * tests/unistr/test-u32-strchr.c: New file.
26821
26822         unistr/u*-chr: test multibyte sequences more
26823         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26824         test vector.
26825         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26826         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26827         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26828
26829         unistr/u*-chr: test multibyte sequences
26830         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26831
26832         unistr/u*-chr: prepare for multibyte tests
26833         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26834         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26835         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26836         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26837         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26838         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26839
26840 2010-07-18  Bruno Haible  <bruno@clisp.org>
26841
26842         unistr/u8-strchr: Optimize non-ASCII argument case.
26843         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26844         because the first byte often matches anyway.
26845         Reported by Pádraig Brady <P@draigbrady.com>.
26846
26847 2010-07-15  Karl Berry  <karl@gnu.org>
26848
26849         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26850
26851 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26852
26853         getcwd: on Solaris, work better if ancestors are inaccessible
26854         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26855         buffer and size, try again with a large buffer.  This works better
26856         on Solaris, since its getcwd succeeds even if the path to the root
26857         is inaccessible, and this is helpful in common cases such as .zfs
26858         hidden directories.  Problem reported by J Chapman Flack in
26859         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26860         Use system getcwd if it's declared, not merely if it's partly
26861         working; use the partly-working test only to avoid needless effort
26862         if the system getcwd fails.
26863         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26864         comment that was already obsolete and is now even more obsolete.
26865         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26866         now might call strdup.
26867
26868 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26869
26870         pthread: Add enough so that coreutils/src/sort.c compiles.
26871         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26872         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26873         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26874         Include <sys/types.h>, in case it defines pthread_t.
26875         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26876         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26877         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26878         (pthread_rwlockattr_t, pthread_spinlock_t):
26879         New typedefs, if HAVE_PTHREAD_T is not defined.
26880         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26881         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26882         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26883         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26884         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26885         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26886         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26887         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26888         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26889         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26890         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26891         New macros.
26892         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26893         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26894         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26895         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26896         (pthread_spin_unlock): New dummy functions.
26897         (pthread_create): Return EAGAIN; don't set errno.
26898         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26899         require AC_C_INLINE.
26900         * modules/pthread (Depends-on): Add sched, time.
26901         (pthread.h): Use AM_V_GEN.
26902
26903 2010-07-13  Bruno Haible  <bruno@clisp.org>
26904
26905         striconveh: Don't malloc memory if the result buffer is sufficient.
26906         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26907         buffer if its size is sufficient.
26908         Reported by Ludovic Courtès <ludo@gnu.org>.
26909
26910 2010-07-13  Bruno Haible  <bruno@clisp.org>
26911
26912         strtod: Add safety check.
26913         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26914
26915 2010-07-12  Bruno Haible  <bruno@clisp.org>
26916
26917         Unify tests that set gl_cv_func_ldexpl_no_libm.
26918         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26919         gl_FUNC_LDEXPL.
26920         (gl_FUNC_LDEXPL): Invoke it.
26921         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26922
26923 2010-07-12  Bruno Haible  <bruno@clisp.org>
26924
26925         Unify tests that set gl_cv_func_ldexp_no_libm.
26926         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26927         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26928         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26929         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26930         * modules/strtod (Files): Add m4/ldexp.m4.
26931
26932 2010-07-12  Bruno Haible  <bruno@clisp.org>
26933
26934         Unify tests that set gl_cv_func_frexpl_no_libm.
26935         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26936         gl_FUNC_FREXPL_NO_LIBM.
26937         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26938         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26939
26940 2010-07-12  Bruno Haible  <bruno@clisp.org>
26941
26942         Unify tests that set gl_cv_func_frexp_no_libm.
26943         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26944         gl_FUNC_FREXP_NO_LIBM.
26945         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26946         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26947
26948 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26949
26950         memcoll: clarify sizes versus lengths, document better, and tweak perf
26951         * lib/memcoll.c (strcoll_loop, memcoll0):
26952         Improve quality of descriptive comments.  Name variables
26953         consistently as to whether they are lengths (which do not include
26954         terminating null) versus sizes (which do).
26955         * lib/xmemcoll.c (xmemcoll0): Likewise.
26956         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26957         returned when s1size == 0; this is easier to compile and saves
26958         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26959
26960 2010-07-12  Bruno Haible  <bruno@clisp.org>
26961
26962         Tests for module '_Exit'.
26963         * modules/_Exit-tests: New file.
26964         * tests/test-_Exit.sh: New file.
26965         * tests/test-_Exit.c: New file.
26966
26967         New module '_Exit'.
26968         * lib/stdlib.in.h (__attribute__): New macro.
26969         (_Exit): New declaration.
26970         * lib/_Exit.c: New file.
26971         * m4/_Exit.m4: New file.
26972         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26973         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26974         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26975         * modules/_Exit: New file.
26976         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26977         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26978
26979 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26980
26981         strtod: make it more-accurate typically, and don't require libm
26982         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26983         Include limits.h.  Don't include string.h.
26984         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26985         (locale_isspace): New function, so that no casts are needed to
26986         check whether *s is a space.
26987         (ldexp): Provide an unused dummy if not available.
26988         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26989         (strtod): Use them.  This implementation prefers to use the
26990         underlying strtod if available, falling back on our own code
26991         only to fix known bugs.  This is more likely to produce an
26992         accurate result.  Also, it avoids the use of libm functions.
26993         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26994         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26995         was absent, but it caused a test failure with coreutils.
26996         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26997         with libm.
26998         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26999         * modules/strtod-tests (Makefile.am): Likewise.
27000
27001 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27002             Bruno Haible  <bruno@clisp.org>
27003
27004         unistr/u8-strchr: Optimize ASCII argument case.
27005         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27006
27007 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27008
27009         (x)memcoll: minor tweaks
27010         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27011         is after the type that it qualifies.
27012         (memcoll0): Likewise.
27013         * lib/memcoll.h (memcoll0): Likewise.
27014         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27015         * lib/xmemcoll.h (xmemcoll0): Likewise.
27016         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27017         differs from memcoll in that the NUL byte is part of the argument.
27018         Omit the abort-checks, as performance is a real issue here.  Plus,
27019         the checks were wrong anyway (an off-by-one error).  Omit local
27020         variable 'diff', as it's a bit clearer that way.
27021         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27022         no longer needed.
27023
27024 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27025
27026         (x)memcoll: speedup when input is known to be NUL delimited
27027         * lib/memcoll.c: Include stdlib.
27028         (memcoll0): New function.
27029         (strcoll_loop): New function, refactored for use in both memcoll
27030         and memcoll0.
27031         * lib/memcoll.h (memcoll0): Add prototype.
27032         * lib/xmemcoll.c (xmemcoll0): New function.
27033         (collate_error): New function, refactored for use in both xmemcoll
27034         and xmemcoll0.
27035         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27036         * m4/memcoll.m4: add inline invocation.
27037
27038 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27039
27040         * build-aux/bootstrap: Remove any local translations
27041         from the translation project synchronization directory,
27042         so that local only translations are not distributed.
27043
27044 2010-07-04  Bruno Haible  <bruno@clisp.org>
27045
27046         fsusage: Clarify which code applies to which platforms.
27047         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27048         platform.
27049         * lib/fsusage.c (get_fs_usage): Likewise.
27050
27051 2010-07-04  Bruno Haible  <bruno@clisp.org>
27052
27053         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27054         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27055         Reported by Martin Lambers <marlam@marlam.de>.
27056
27057 2010-07-04  Jim Meyering  <meyering@redhat.com>
27058
27059         hash: once again explicitly disallow insertion of NULL
27060         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27061         inserting a NULL pointer cannot work with these functions.
27062         Add a comment with details.
27063         This reverts part of the 2010-07-01 commit, 5bef1a35
27064         "hash: extend module to deal with non-pointer keys".
27065
27066 2010-07-01  Bruno Haible  <bruno@clisp.org>
27067
27068         stdbool: Update doc.
27069         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27070         Info from Christian Weisgerber <naddy@mips.inka.de>.
27071
27072 2010-07-01  Jim Meyering  <meyering@redhat.com>
27073
27074         hash: extend module to deal with non-pointer keys
27075         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27076         but that allows insertion of non-pointer entries.
27077         Do not disallow an ENTRY value of NULL.
27078         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27079         * lib/hash.h (hash_insert0): Declare.
27080
27081 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27082
27083         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27084         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27085         not present (i.e. with autoconf 2.59 and when using gettextize, not
27086         gnulib), require AC_GNU_SOURCE instead.
27087
27088 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27089
27090         idpriv-drop: Fix tests.
27091         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27092         not to the test-idpriv-droptemp program.
27093
27094 2010-06-29  Bruno Haible  <bruno@clisp.org>
27095
27096         string: Fix syntax error with g++ 2.96.
27097         * lib/string.in.h (__pure__): Remove definition.
27098         (_GL_ATTRIBUTE_PURE): New macro.
27099         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27100         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27101         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27102
27103 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27104
27105         unitypes: Fix bug introduced on 2010-05-18.
27106         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27107
27108 2010-06-22  Eric Blake  <eblake@redhat.com>
27109
27110         memmem: slight optimization
27111         * lib/str-two-way.h (critical_factorization): Update comments.
27112         Reduce work during factorization phase.
27113         Reported by Carlos Bueno <carlos@bueno.org>.
27114
27115 2010-06-21  Bruno Haible  <bruno@clisp.org>
27116
27117         Fix HAVE_CALLOC_POSIX misnomer.
27118         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27119         !HAVE_CALLOC_POSIX.
27120         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27121         HAVE_CALLOC_POSIX.
27122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27123         instead of HAVE_CALLOC_POSIX.
27124         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27125         HAVE_CALLOC_POSIX.
27126
27127         Use modern idiom for calloc() replacement.
27128         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27129         AC_FUNC_CALLOC.
27130         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27131         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27132         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27133         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27134         (gl_REPLACE_CALLOC): New macro.
27135
27136 2010-06-21  Bruno Haible  <bruno@clisp.org>
27137
27138         Fix HAVE_REALLOC_POSIX misnomer.
27139         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27140         !HAVE_REALLOC_POSIX.
27141         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27142         HAVE_REALLOC_POSIX.
27143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27144         instead of HAVE_REALLOC_POSIX.
27145         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27146         HAVE_REALLOC_POSIX.
27147
27148         Use modern idiom for realloc() replacement.
27149         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27150         AC_FUNC_REALLOC.
27151         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27152         Autoconf's AC_FUNC_REALLOC.
27153         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27154         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27155         (gl_REPLACE_REALLOC): New macro.
27156         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27157
27158 2010-06-21  Bruno Haible  <bruno@clisp.org>
27159
27160         Fix HAVE_MALLOC_POSIX misnomer.
27161         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27162         !HAVE_MALLOC_POSIX.
27163         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27164         HAVE_MALLOC_POSIX.
27165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27166         instead of HAVE_MALLOC_POSIX.
27167         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27168         HAVE_MALLOC_POSIX.
27169
27170         Use modern idiom for malloc() replacement.
27171         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27172         AC_FUNC_MALLOC.
27173         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27174         Autoconf's AC_FUNC_MALLOC.
27175         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27176         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27177         (gl_REPLACE_MALLOC): New macro.
27178         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27179
27180 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27181
27182         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27183         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27184         This macro takes 3 arguments, not 4.
27185
27186 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27187
27188         ipv6: fix detection under mingw
27189         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27190         in6_addr.
27191
27192 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27193
27194         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27195         that strtod() works when cross-compiling to a glibc version known
27196         to work.
27197
27198 2010-06-15  Bruno Haible  <bruno@clisp.org>
27199
27200         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27201
27202 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27203
27204         select: Correct timeout.
27205         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27206
27207 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27208
27209         git-version-gen: init shell var to avoid env var influence
27210         * build-aux/git-version-gen (v): Init shell var to empty.
27211
27212 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27213
27214         priv-set: Don't assume that priv.h exists merely because getppriv does.
27215         See Jan Andersen's bug report about AIX 5L in
27216         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27217         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27218         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27219         * lib/priv-set.h: Likewise.
27220         * tests/test-priv-set.c: Likewise.
27221
27222 2010-06-13  Bruno Haible  <bruno@clisp.org>
27223
27224         relocatable: Make it easier to test whether to install wrappers.
27225         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27226         RELOCATABLE_VIA_WRAPPER.
27227
27228 2010-06-13  Bruno Haible  <bruno@clisp.org>
27229
27230         gnulib-tool: Display specified modules and dependencies differently.
27231         * gnulib-tool (func_show_module_list): New function.
27232         (func_import, func_create_testdir): Invoke it.
27233         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27234
27235 2010-06-13  Bruno Haible  <bruno@clisp.org>
27236
27237         gnulib-tool: Align code of func_import and func_create_testdir.
27238         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27239         specified_modules.
27240
27241 2010-06-12  Jim Meyering  <meyering@redhat.com>
27242
27243         test-inttostr: avoid spurious failure on Solaris 9
27244         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27245         to accept "%ju".  Reported by Bruno Haible.
27246
27247 2010-06-11  Jim Meyering  <meyering@redhat.com>
27248
27249         test-sys_socket: mark variables as used more readably
27250         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27251         as "used" explicitly via (void) statement casts.  This is more
27252         readable than using them in an artificial return expression.
27253         Suggestion from Bruno Haible.
27254
27255 2010-06-11  Bruno Haible  <bruno@clisp.org>
27256
27257         Avoid some more warnings from "gcc -Wwrite-strings".
27258         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27259         to 'const char *'.
27260         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27261         * tests/test-c-strcasestr.c (main): Likewise.
27262         * tests/test-mbscasestr1.c (main): Likewise.
27263         * tests/test-mbscasestr2.c (main): Likewise.
27264         * tests/test-memmem.c (main): Likewise.
27265         * tests/test-strstr.c (main): Likewise.
27266         * tests/test-strcasestr.c (main): Likewise.
27267
27268 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27269
27270         init.sh: change framework_failure_ to fail with status 99, not 1
27271         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27272         automake's parallel-tests rule that this is an unexpected failure,
27273         even if the test is listed in XFAIL_TESTS.
27274
27275 2010-06-11  Jim Meyering  <meyering@redhat.com>
27276
27277         test-inttostr: avoid warnings about 4-6KB literal strings
27278         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27279         Include "macros.h", for its definition of ASSERT.
27280         (CK): s/assert/ASSERT/
27281         * modules/inttostr-tests (Files): Add macros.h.
27282
27283         init.sh: don't use $ME_ or skip_ before they are defined
27284         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27285         their first uses.  Also hoist their companions: warn_, fail_,
27286         framework_failure_, $stderr_fileno.  Prompted by a patch from
27287         Stefano Lattarini.
27288
27289         test-sys_socket: avoid set-but-not-used warnings from gcc
27290         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27291         avoid warning about set-but-not-used variables.
27292
27293         test-xvasprintf: avoid 'const' discard warnings
27294         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27295         "const" when assigning from literal strings.
27296         (test_xasprintf): Add "void" in function argument list to placate
27297         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27298
27299         tests: avoid compilation warnings in argmatch and exclude tests...
27300         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27301         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27302         Since it always exits, declare with the "noreturn" attribute.
27303         * tests/test-argmatch.c: Likewise.
27304
27305         tests: avoid 'const' discard warnings in mbsstr tests
27306         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27307         * tests/test-mbsstr2.c (main): Likewise.
27308
27309         test-verify: avoid warning from gcc's -Wmissing-declarations
27310         * tests/test-verify.c (function): Declare to be static.
27311
27312         test-inttostr.c: include <string.h> for use of strcmp
27313         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27314
27315         test-linkat: avoid failed assertion on "other" architectures
27316         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27317         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27318         sparc: https://bugs.launchpad.net/bugs/591968
27319
27320 2010-06-11  Jim Meyering  <meyering@redhat.com>
27321
27322         printf.m4: avoid autoconf's "Expanded Before Required" warning
27323         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27324         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27325         autoconf warning.
27326
27327 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27328
27329         Replacement header templates are now named with ".in", not "_".
27330         * doc/gnulib-intro.texi: Correct.
27331
27332 2010-06-10  Jim Meyering  <meyering@redhat.com>
27333
27334         inttostr-tests: depend on snprintf, not snprintf-posix
27335         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27336         snprintf-posix, to avoid this aclocal failure:
27337           missing file gnulib-tests/vasnprintf.c
27338           configure.ac:45: error: expected source file, required through \
27339           AC_LIBSOURCES, not found
27340
27341 2010-06-10  Jim Meyering  <meyering@redhat.com>
27342
27343         inttostr: add a new function, inttostr, and tests
27344         The namesake function was not available.  The existence of the
27345         template file, inttostr.c makes its addition nontrivial.
27346         * lib/anytostr.c: Rename from inttostr.c.
27347         (anytostr): Rename from inttostr.
27348         * lib/inttostr.c: New file.
27349         * modules/inttostr (Files): Add anytostr.c.
27350         (Makefile.am): Set lib_SOURCES instead of ...
27351         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27352         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27353         * lib/offtostr.c: Likewise.
27354         * lib/uinttostr.c: Likewise.
27355         * lib/umaxtostr.c: Likewise.
27356         * modules/inttostr-tests: New file.
27357         * tests/test-inttostr.c: New file.  Test these functions.
27358
27359 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27360             Bruno Haible  <bruno@clisp.org>
27361
27362         Add "Extending Gnulib" chapter to manual.
27363         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27364         chapter.
27365         (Extending Gnulib): New chapter.
27366         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27367         chapter.
27368
27369 2010-06-09  Bruno Haible  <bruno@clisp.org>
27370
27371         Avoid relocwrapper link errors due to gnulib replacement functions.
27372         * lib/areadlink.c: Use the system's malloc, realloc functions.
27373         (areadlink): Set errno to ENOMEM explicitly.
27374         * modules/areadlink (Depends-on): Remove malloc-posix.
27375         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27376
27377 2010-06-09  Bruno Haible  <bruno@clisp.org>
27378
27379         Avoid relocwrapper link errors due to gnulib replacement functions.
27380         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27381         * lib/malloca.c: Likewise.
27382         * lib/relocatable.c: Likewise.
27383         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27384         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27385         * lib/setenv.c: Use the system's malloc, realloc functions.
27386         * lib/strerror.c: Use the system's sprintf function.
27387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27388
27389 2010-06-04  Bruno Haible  <bruno@clisp.org>
27390
27391         Prefer documented low-level autoconf macro names.
27392         * m4/lib-link.m4: Use m4_translit instead of translit.
27393         * m4/environ.m4: Likewise.
27394         * m4/mathfunc.m4: Likewise.
27395         * m4/onceonly.m4: Likewise.
27396         * m4/stdint.m4: Likewise.
27397         Suggested by Eric Blake.
27398
27399 2010-06-04  Martin Lambers  <marlam@marlam.de>
27400             Bruno Haible  <bruno@clisp.org>
27401
27402         havelib: Allow library names with '+' characters.
27403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27404         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27405
27406 2010-06-09  Bruno Haible  <bruno@clisp.org>
27407
27408         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27409         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27410         realloc failed.
27411
27412 2010-06-08  Peter Simons  <simons@cryp.to>
27413
27414         maint.mk: make the news-check rule more configurable
27415         * top/maint.mk (news-check-lines-spec): New variable.
27416         (news-check): Use "sed -n 1,10p" in place of "head".
27417
27418 2010-06-07  Jim Meyering  <meyering@redhat.com>
27419
27420         do-release-commit-and-tag: fix typo in --help
27421         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27422
27423         regex: avoid new dead-code warning with gcc-4.6.0
27424         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27425         if-block containing a while-loop.  It's been unused for at least
27426         5 years.
27427
27428 2010-06-05  Bruno Haible  <bruno@clisp.org>
27429
27430         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27431         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27432
27433 2010-06-04  Bruno Haible  <bruno@clisp.org>
27434
27435         Update to GNU gettext 0.18.1.
27436         * modules/gettext (configure.ac): Require gettext infrastructure from
27437         version 0.18.1.
27438
27439 2010-06-03  Bruno Haible  <bruno@clisp.org>
27440
27441         Don't use AC_LIBOBJ with file names in subdirectories.
27442         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27443         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27444         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27445         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27446         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27447         gl_LIBUNISTRING_LIBSOURCE.
27448         (Makefile.am): Augment lib_SOURCES here, conditionally.
27449         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27450
27451 2010-06-03  Bruno Haible  <bruno@clisp.org>
27452
27453         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27454         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27455         expansion does not end with a newline.
27456         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27457         unnecessary newline.
27458
27459 2010-06-03  Bruno Haible  <bruno@clisp.org>
27460
27461         Reduce dependencies.
27462         * tests/test-quotearg.h: New file, extracted from
27463         tests/test-quotearg.c.
27464         * tests/test-quotearg-simple.c: New file, extracted from
27465         tests/test-quotearg.c.
27466         * tests/test-quotearg.c: Don't include <ctype.h>.
27467         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27468         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27469         use_quote_double_quotes, use_quotearg_colon): Moved to
27470         tests/test-quotearg.h.
27471         (results_g, flag_results, custom_quotes, custom_results): Moved
27472         to tests/test-quotearg-simple.c.
27473         (main): Moved the part that does not depend on gettext to
27474         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27475         performed.
27476         * modules/quotearg-simple: New file.
27477         * modules/quotearg-simple-tests: New file.
27478         * modules/quotearg (Depends-on): Add quotearg-simple.
27479         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27480         (Files): Add tests/test-quotearg.h.
27481         Reported by Paolo Bonzini.
27482
27483 2010-06-03  Bruno Haible  <bruno@clisp.org>
27484
27485         Reduce dependencies.
27486         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27487
27488 2010-06-03  Bruno Haible  <bruno@clisp.org>
27489
27490         time: Undefine more broken macros.
27491         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27492         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27493         Reported by Eric Blake.
27494
27495 2010-06-03  Bruno Haible  <bruno@clisp.org>
27496
27497         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27498         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27499         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27500         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27501         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27502         Reported by Ludovic Courtès <ludo@gnu.org>.
27503
27504 2010-06-02  Eric Blake  <eblake@redhat.com>
27505
27506         time: work with mingw + pthreads-win32 library
27507         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27508         if timespec is defined only in pthread.h.
27509         * modules/time (Makefile.am): Substitute it.
27510         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27511         <pthread.h>, when needed.
27512         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27513         from the library.
27514
27515 2010-05-31  Bruno Haible  <bruno@clisp.org>
27516
27517         Avoid expanding two macros in the wrong order.
27518         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27519         gl_LIBUNISTRING if it is defined.
27520         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27521         autoconf >= 2.64.
27522         Reported by Ludovic Courtès <ludo@gnu.org>.
27523
27524 2010-05-27  Jim Meyering  <meyering@redhat.com>
27525
27526         maint.mk: also prohibit "#undef" of always-defined symbols
27527         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27528         Allow more than one space before the symbol name.
27529         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27530         the regexp uses alternation.
27531
27532 2010-05-26  Eric Blake  <eblake@redhat.com>
27533
27534         maint.mk: avoid echo -e
27535         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27536         Convert all uses of echo -* to printf.
27537         Reported by Matthias Bolte.
27538
27539 2010-05-25  Bruno Haible  <bruno@clisp.org>
27540
27541         Update to GNU gettext 0.18, part 2.
27542         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27543         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27544
27545 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27546
27547         Add missing include in test-pwrite.c.
27548         * tests/test-pwrite.c: Include string.h, for strcmp.
27549
27550 2010-05-24  Bruno Haible  <bruno@clisp.org>
27551
27552         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27553
27554 2010-05-24  Bruno Haible  <bruno@clisp.org>
27555
27556         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27557         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27558         iconveh_error argument.
27559         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27560         U_STRCONV_TO_LOCALE.
27561         * lib/unistr/u16-strcoll.c: Likewise.
27562         * lib/unistr/u32-strcoll.c: Likewise.
27563         * modules/unistr/u8-strcoll (Depends-on): Add
27564         uniconv/u8-strconv-to-enc, localcharset. Remove
27565         uniconv/u8-strconv-to-locale.
27566         (configure.ac): Bump version number.
27567         * modules/unistr/u16-strcoll (Depends-on): Add
27568         uniconv/u16-strconv-to-enc, localcharset. Remove
27569         uniconv/u16-strconv-to-locale.
27570         (configure.ac): Bump version number.
27571         * modules/unistr/u32-strcoll (Depends-on): Add
27572         uniconv/u32-strconv-to-enc, localcharset. Remove
27573         uniconv/u32-strconv-to-locale.
27574         (configure.ac): Bump version number.
27575
27576 2010-05-24  Bruno Haible  <bruno@clisp.org>
27577
27578         Avoid a test failure on NetBSD 5.0.
27579         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27580         an iconv() bug.
27581
27582 2010-05-24  Bruno Haible  <bruno@clisp.org>
27583
27584         Adjust #include directive style.
27585         * modules/regex (Includes): Recommend to write <regex.h>.
27586
27587 2010-05-24  Bruno Haible  <bruno@clisp.org>
27588
27589         regex: Don't require alloca.
27590         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27591         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27592         only inside if (0).
27593
27594 2010-05-23  Jim Meyering  <meyering@redhat.com>
27595
27596         test-renameat.c: include <sys/stat.h>
27597         * tests/test-renameat.c: Include <sys/stat.h>; required for
27598         definition of S_IS* macros.
27599
27600 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27601
27602         Update maintainer documentation for 'relocatable-prog' module.
27603         * doc/relocatable-maint.texi: Update.
27604         Comments by Bruno Haible.
27605
27606 2010-05-23  Bruno Haible  <bruno@clisp.org>
27607
27608         git-merge-changelog: Enable --split-merged-entry by default.
27609         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27610         (usage): Don't mention this option any more.
27611         Reported by Ralf Wildenhues.
27612
27613 2010-05-23  Jim Meyering  <meyering@redhat.com>
27614
27615         test-pwrite: do not leave behind a test file named "out"
27616         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27617         The trivial-looking use of init.sh is really necessary.
27618         It ensures that the temporary file, "out", is created in
27619         a temporary directory, and removed upon termination.
27620         * tests/test-pwrite.sh: Re-add file.
27621         * modules/pwrite-tests: Reference it.
27622
27623 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27624
27625         Fix output redirection buglet in init.sh.
27626         * tests/init.sh: Fix redirection of stderr.
27627
27628 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27629
27630         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27631
27632 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27633
27634         * modules/valgrind-tests: New file.
27635         * m4/valgrind-tests.m4: New file.
27636         * doc/valgrind-tests.texi: New file.
27637         * doc/gnulib.texi (Running self-tests under valgrind): New
27638         section.
27639
27640 2010-05-19  Bruno Haible  <bruno@clisp.org>
27641
27642         Clean up dead code in recent commit.
27643         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27644         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27645         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27646         Suggested by Paolo Bonzini.
27647
27648 2010-05-19  Bruno Haible  <bruno@clisp.org>
27649
27650         Avoid valgrind error reports from libunistring.
27651         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27652         * modules/libunistring (Files): Add it.
27653         * modules/libunistring-optional (Files): Likewise.
27654
27655 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27656             Bruno Haible  <bruno@clisp.org>
27657
27658         New module 'libunistring-optional'.
27659         * modules/libunistring-optional: New file.
27660         * m4/libunistring-base.m4: New file.
27661         * m4/libunistring-optional.m4: New file.
27662         * lib/unicase.in.h: Renamed from lib/unicase.h.
27663         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27664         * lib/unictype.in.h: Renamed from lib/unictype.h.
27665         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27666         * lib/uniname.in.h: Renamed from lib/uniname.h.
27667         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27668         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27669         * lib/unistr.in.h: Renamed from lib/unistr.h.
27670         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27671         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27672         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27673         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27674         gl_LIBUNISTRING. If the library was found, determine the installed
27675         version and set LIBUNISTRING_VERSION.
27676         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27677         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27678         handle a configuration option --with-included-libunistring.
27679         * modules/libunistring (Files): Add m4/absolute-header.m4.
27680         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27681         Add m4/libunistring-base.m4.
27682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27683         (Makefile.am): Build unicase.h from unicase.in.h.
27684         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27685         Add m4/libunistring-base.m4.
27686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27687         (Makefile.am): Build uniconv.h from uniconv.in.h.
27688         * modules/unictype/base (Files): Use unictype.in.h instead of
27689         unictype.h. Add m4/libunistring-base.m4.
27690         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27691         (Makefile.am): Build unictype.h from unictype.in.h.
27692         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27693         Add m4/libunistring-base.m4.
27694         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27695         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27696         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27697         Add m4/libunistring-base.m4.
27698         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27699         (Makefile.am): Build uniname.h from uniname.in.h.
27700         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27701         Add m4/libunistring-base.m4.
27702         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27703         (Makefile.am): Build uninorm.h from uninorm.in.h.
27704         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27705         unistdio.h. Add m4/libunistring-base.m4.
27706         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27707         (Makefile.am): Build unistdio.h from unistdio.in.h.
27708         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27709         Add m4/libunistring-base.m4.
27710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27711         (Makefile.am): Build unistr.h from unistr.in.h.
27712         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27713         Add m4/libunistring-base.m4.
27714         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27715         (Makefile.am): Build unitypes.h from unitypes.in.h.
27716         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27717         Add m4/libunistring-base.m4.
27718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27719         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27720         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27721         uniwidth.h. Add m4/libunistring-base.m4.
27722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27723         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27724         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27725         instead of augmenting lib_SOURCES.
27726         * modules/unicase/empty-suffix-context: Likewise.
27727         * modules/unicase/locale-language: Likewise.
27728         * modules/unicase/tolower: Likewise.
27729         * modules/unicase/totitle: Likewise.
27730         * modules/unicase/toupper: Likewise.
27731         * modules/unicase/u8-casecmp: Likewise.
27732         * modules/unicase/u8-casecoll: Likewise.
27733         * modules/unicase/u8-casefold: Likewise.
27734         * modules/unicase/u8-casexfrm: Likewise.
27735         * modules/unicase/u8-ct-casefold: Likewise.
27736         * modules/unicase/u8-ct-tolower: Likewise.
27737         * modules/unicase/u8-ct-totitle: Likewise.
27738         * modules/unicase/u8-ct-toupper: Likewise.
27739         * modules/unicase/u8-is-cased: Likewise.
27740         * modules/unicase/u8-is-casefolded: Likewise.
27741         * modules/unicase/u8-is-lowercase: Likewise.
27742         * modules/unicase/u8-is-titlecase: Likewise.
27743         * modules/unicase/u8-is-uppercase: Likewise.
27744         * modules/unicase/u8-prefix-context: Likewise.
27745         * modules/unicase/u8-suffix-context: Likewise.
27746         * modules/unicase/u8-tolower: Likewise.
27747         * modules/unicase/u8-totitle: Likewise.
27748         * modules/unicase/u8-toupper: Likewise.
27749         * modules/unicase/u16-casecmp: Likewise.
27750         * modules/unicase/u16-casecoll: Likewise.
27751         * modules/unicase/u16-casefold: Likewise.
27752         * modules/unicase/u16-casexfrm: Likewise.
27753         * modules/unicase/u16-ct-casefold: Likewise.
27754         * modules/unicase/u16-ct-tolower: Likewise.
27755         * modules/unicase/u16-ct-totitle: Likewise.
27756         * modules/unicase/u16-ct-toupper: Likewise.
27757         * modules/unicase/u16-is-cased: Likewise.
27758         * modules/unicase/u16-is-casefolded: Likewise.
27759         * modules/unicase/u16-is-lowercase: Likewise.
27760         * modules/unicase/u16-is-titlecase: Likewise.
27761         * modules/unicase/u16-is-uppercase: Likewise.
27762         * modules/unicase/u16-prefix-context: Likewise.
27763         * modules/unicase/u16-suffix-context: Likewise.
27764         * modules/unicase/u16-tolower: Likewise.
27765         * modules/unicase/u16-totitle: Likewise.
27766         * modules/unicase/u16-toupper: Likewise.
27767         * modules/unicase/u32-casecmp: Likewise.
27768         * modules/unicase/u32-casecoll: Likewise.
27769         * modules/unicase/u32-casefold: Likewise.
27770         * modules/unicase/u32-casexfrm: Likewise.
27771         * modules/unicase/u32-ct-casefold: Likewise.
27772         * modules/unicase/u32-ct-tolower: Likewise.
27773         * modules/unicase/u32-ct-totitle: Likewise.
27774         * modules/unicase/u32-ct-toupper: Likewise.
27775         * modules/unicase/u32-is-cased: Likewise.
27776         * modules/unicase/u32-is-casefolded: Likewise.
27777         * modules/unicase/u32-is-lowercase: Likewise.
27778         * modules/unicase/u32-is-titlecase: Likewise.
27779         * modules/unicase/u32-is-uppercase: Likewise.
27780         * modules/unicase/u32-prefix-context: Likewise.
27781         * modules/unicase/u32-suffix-context: Likewise.
27782         * modules/unicase/u32-tolower: Likewise.
27783         * modules/unicase/u32-totitle: Likewise.
27784         * modules/unicase/u32-toupper: Likewise.
27785         * modules/unicase/ulc-casecmp: Likewise.
27786         * modules/unicase/ulc-casecoll: Likewise.
27787         * modules/unicase/ulc-casexfrm: Likewise.
27788         * modules/uniconv/u8-conv-from-enc: Likewise.
27789         * modules/uniconv/u8-conv-to-enc: Likewise.
27790         * modules/uniconv/u8-strconv-from-enc: Likewise.
27791         * modules/uniconv/u8-strconv-from-locale: Likewise.
27792         * modules/uniconv/u8-strconv-to-enc: Likewise.
27793         * modules/uniconv/u8-strconv-to-locale: Likewise.
27794         * modules/uniconv/u16-conv-from-enc: Likewise.
27795         * modules/uniconv/u16-conv-to-enc: Likewise.
27796         * modules/uniconv/u16-strconv-from-enc: Likewise.
27797         * modules/uniconv/u16-strconv-from-locale: Likewise.
27798         * modules/uniconv/u16-strconv-to-enc: Likewise.
27799         * modules/uniconv/u16-strconv-to-locale: Likewise.
27800         * modules/uniconv/u32-conv-from-enc: Likewise.
27801         * modules/uniconv/u32-conv-to-enc: Likewise.
27802         * modules/uniconv/u32-strconv-from-enc: Likewise.
27803         * modules/uniconv/u32-strconv-from-locale: Likewise.
27804         * modules/uniconv/u32-strconv-to-enc: Likewise.
27805         * modules/uniconv/u32-strconv-to-locale: Likewise.
27806         * modules/unictype/bidicategory-byname: Likewise.
27807         * modules/unictype/bidicategory-name: Likewise.
27808         * modules/unictype/bidicategory-of: Likewise.
27809         * modules/unictype/bidicategory-test: Likewise.
27810         * modules/unictype/block-list: Likewise.
27811         * modules/unictype/block-test: Likewise.
27812         * modules/unictype/category-C: Likewise.
27813         * modules/unictype/category-Cc: Likewise.
27814         * modules/unictype/category-Cf: Likewise.
27815         * modules/unictype/category-Cn: Likewise.
27816         * modules/unictype/category-Co: Likewise.
27817         * modules/unictype/category-Cs: Likewise.
27818         * modules/unictype/category-L: Likewise.
27819         * modules/unictype/category-Ll: Likewise.
27820         * modules/unictype/category-Lm: Likewise.
27821         * modules/unictype/category-Lo: Likewise.
27822         * modules/unictype/category-Lt: Likewise.
27823         * modules/unictype/category-Lu: Likewise.
27824         * modules/unictype/category-M: Likewise.
27825         * modules/unictype/category-Mc: Likewise.
27826         * modules/unictype/category-Me: Likewise.
27827         * modules/unictype/category-Mn: Likewise.
27828         * modules/unictype/category-N: Likewise.
27829         * modules/unictype/category-Nd: Likewise.
27830         * modules/unictype/category-Nl: Likewise.
27831         * modules/unictype/category-No: Likewise.
27832         * modules/unictype/category-P: Likewise.
27833         * modules/unictype/category-Pc: Likewise.
27834         * modules/unictype/category-Pd: Likewise.
27835         * modules/unictype/category-Pe: Likewise.
27836         * modules/unictype/category-Pf: Likewise.
27837         * modules/unictype/category-Pi: Likewise.
27838         * modules/unictype/category-Po: Likewise.
27839         * modules/unictype/category-Ps: Likewise.
27840         * modules/unictype/category-S: Likewise.
27841         * modules/unictype/category-Sc: Likewise.
27842         * modules/unictype/category-Sk: Likewise.
27843         * modules/unictype/category-Sm: Likewise.
27844         * modules/unictype/category-So: Likewise.
27845         * modules/unictype/category-Z: Likewise.
27846         * modules/unictype/category-Zl: Likewise.
27847         * modules/unictype/category-Zp: Likewise.
27848         * modules/unictype/category-Zs: Likewise.
27849         * modules/unictype/category-and: Likewise.
27850         * modules/unictype/category-and-not: Likewise.
27851         * modules/unictype/category-byname: Likewise.
27852         * modules/unictype/category-name: Likewise.
27853         * modules/unictype/category-none: Likewise.
27854         * modules/unictype/category-of: Likewise.
27855         * modules/unictype/category-or: Likewise.
27856         * modules/unictype/category-test: Likewise.
27857         * modules/unictype/combining-class: Likewise.
27858         * modules/unictype/ctype-alnum: Likewise.
27859         * modules/unictype/ctype-alpha: Likewise.
27860         * modules/unictype/ctype-blank: Likewise.
27861         * modules/unictype/ctype-cntrl: Likewise.
27862         * modules/unictype/ctype-digit: Likewise.
27863         * modules/unictype/ctype-graph: Likewise.
27864         * modules/unictype/ctype-lower: Likewise.
27865         * modules/unictype/ctype-print: Likewise.
27866         * modules/unictype/ctype-punct: Likewise.
27867         * modules/unictype/ctype-space: Likewise.
27868         * modules/unictype/ctype-upper: Likewise.
27869         * modules/unictype/ctype-xdigit: Likewise.
27870         * modules/unictype/decimal-digit: Likewise.
27871         * modules/unictype/digit: Likewise.
27872         * modules/unictype/mirror: Likewise.
27873         * modules/unictype/numeric: Likewise.
27874         * modules/unictype/property-alphabetic: Likewise.
27875         * modules/unictype/property-ascii-hex-digit: Likewise.
27876         * modules/unictype/property-bidi-arabic-digit: Likewise.
27877         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27878         * modules/unictype/property-bidi-block-separator: Likewise.
27879         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27880         * modules/unictype/property-bidi-common-separator: Likewise.
27881         * modules/unictype/property-bidi-control: Likewise.
27882         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27883         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27884         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27885         * modules/unictype/property-bidi-european-digit: Likewise.
27886         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27887         * modules/unictype/property-bidi-left-to-right: Likewise.
27888         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27889         * modules/unictype/property-bidi-other-neutral: Likewise.
27890         * modules/unictype/property-bidi-pdf: Likewise.
27891         * modules/unictype/property-bidi-segment-separator: Likewise.
27892         * modules/unictype/property-bidi-whitespace: Likewise.
27893         * modules/unictype/property-byname: Likewise.
27894         * modules/unictype/property-combining: Likewise.
27895         * modules/unictype/property-composite: Likewise.
27896         * modules/unictype/property-currency-symbol: Likewise.
27897         * modules/unictype/property-dash: Likewise.
27898         * modules/unictype/property-decimal-digit: Likewise.
27899         * modules/unictype/property-default-ignorable-code-point: Likewise.
27900         * modules/unictype/property-deprecated: Likewise.
27901         * modules/unictype/property-diacritic: Likewise.
27902         * modules/unictype/property-extender: Likewise.
27903         * modules/unictype/property-format-control: Likewise.
27904         * modules/unictype/property-grapheme-base: Likewise.
27905         * modules/unictype/property-grapheme-extend: Likewise.
27906         * modules/unictype/property-grapheme-link: Likewise.
27907         * modules/unictype/property-hex-digit: Likewise.
27908         * modules/unictype/property-hyphen: Likewise.
27909         * modules/unictype/property-id-continue: Likewise.
27910         * modules/unictype/property-id-start: Likewise.
27911         * modules/unictype/property-ideographic: Likewise.
27912         * modules/unictype/property-ids-binary-operator: Likewise.
27913         * modules/unictype/property-ids-trinary-operator: Likewise.
27914         * modules/unictype/property-ignorable-control: Likewise.
27915         * modules/unictype/property-iso-control: Likewise.
27916         * modules/unictype/property-join-control: Likewise.
27917         * modules/unictype/property-left-of-pair: Likewise.
27918         * modules/unictype/property-line-separator: Likewise.
27919         * modules/unictype/property-logical-order-exception: Likewise.
27920         * modules/unictype/property-lowercase: Likewise.
27921         * modules/unictype/property-math: Likewise.
27922         * modules/unictype/property-non-break: Likewise.
27923         * modules/unictype/property-not-a-character: Likewise.
27924         * modules/unictype/property-numeric: Likewise.
27925         * modules/unictype/property-other-alphabetic: Likewise.
27926         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27927         * modules/unictype/property-other-grapheme-extend: Likewise.
27928         * modules/unictype/property-other-id-continue: Likewise.
27929         * modules/unictype/property-other-id-start: Likewise.
27930         * modules/unictype/property-other-lowercase: Likewise.
27931         * modules/unictype/property-other-math: Likewise.
27932         * modules/unictype/property-other-uppercase: Likewise.
27933         * modules/unictype/property-paired-punctuation: Likewise.
27934         * modules/unictype/property-paragraph-separator: Likewise.
27935         * modules/unictype/property-pattern-syntax: Likewise.
27936         * modules/unictype/property-pattern-white-space: Likewise.
27937         * modules/unictype/property-private-use: Likewise.
27938         * modules/unictype/property-punctuation: Likewise.
27939         * modules/unictype/property-quotation-mark: Likewise.
27940         * modules/unictype/property-radical: Likewise.
27941         * modules/unictype/property-sentence-terminal: Likewise.
27942         * modules/unictype/property-soft-dotted: Likewise.
27943         * modules/unictype/property-space: Likewise.
27944         * modules/unictype/property-terminal-punctuation: Likewise.
27945         * modules/unictype/property-test: Likewise.
27946         * modules/unictype/property-titlecase: Likewise.
27947         * modules/unictype/property-unassigned-code-value: Likewise.
27948         * modules/unictype/property-unified-ideograph: Likewise.
27949         * modules/unictype/property-uppercase: Likewise.
27950         * modules/unictype/property-variation-selector: Likewise.
27951         * modules/unictype/property-white-space: Likewise.
27952         * modules/unictype/property-xid-continue: Likewise.
27953         * modules/unictype/property-xid-start: Likewise.
27954         * modules/unictype/property-zero-width: Likewise.
27955         * modules/unictype/scripts: Likewise.
27956         * modules/unictype/syntax-c-ident: Likewise.
27957         * modules/unictype/syntax-c-whitespace: Likewise.
27958         * modules/unictype/syntax-java-ident: Likewise.
27959         * modules/unictype/syntax-java-whitespace: Likewise.
27960         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27961         * modules/unilbrk/u8-width-linebreaks: Likewise.
27962         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27963         * modules/unilbrk/u16-width-linebreaks: Likewise.
27964         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27965         * modules/unilbrk/u32-width-linebreaks: Likewise.
27966         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27967         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27968         * modules/uniname/uniname: Likewise.
27969         * modules/uninorm/canonical-decomposition: Likewise.
27970         * modules/uninorm/composition: Likewise.
27971         * modules/uninorm/decomposing-form: Likewise.
27972         * modules/uninorm/decomposition: Likewise.
27973         * modules/uninorm/filter: Likewise.
27974         * modules/uninorm/nfc: Likewise.
27975         * modules/uninorm/nfd: Likewise.
27976         * modules/uninorm/nfkc: Likewise.
27977         * modules/uninorm/nfkd: Likewise.
27978         * modules/uninorm/u8-normalize: Likewise.
27979         * modules/uninorm/u8-normcmp: Likewise.
27980         * modules/uninorm/u8-normcoll: Likewise.
27981         * modules/uninorm/u8-normxfrm: Likewise.
27982         * modules/uninorm/u16-normalize: Likewise.
27983         * modules/uninorm/u16-normcmp: Likewise.
27984         * modules/uninorm/u16-normcoll: Likewise.
27985         * modules/uninorm/u16-normxfrm: Likewise.
27986         * modules/uninorm/u32-normalize: Likewise.
27987         * modules/uninorm/u32-normcmp: Likewise.
27988         * modules/uninorm/u32-normcoll: Likewise.
27989         * modules/uninorm/u32-normxfrm: Likewise.
27990         * modules/unistdio/u8-asnprintf: Likewise.
27991         * modules/unistdio/u8-asprintf: Likewise.
27992         * modules/unistdio/u8-snprintf: Likewise.
27993         * modules/unistdio/u8-sprintf: Likewise.
27994         * modules/unistdio/u8-u8-asnprintf: Likewise.
27995         * modules/unistdio/u8-u8-asprintf: Likewise.
27996         * modules/unistdio/u8-u8-snprintf: Likewise.
27997         * modules/unistdio/u8-u8-sprintf: Likewise.
27998         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27999         * modules/unistdio/u8-u8-vasprintf: Likewise.
28000         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28001         * modules/unistdio/u8-u8-vsprintf: Likewise.
28002         * modules/unistdio/u8-vasnprintf: Likewise.
28003         * modules/unistdio/u8-vasprintf: Likewise.
28004         * modules/unistdio/u8-vsnprintf: Likewise.
28005         * modules/unistdio/u8-vsprintf: Likewise.
28006         * modules/unistdio/u16-asnprintf: Likewise.
28007         * modules/unistdio/u16-asprintf: Likewise.
28008         * modules/unistdio/u16-snprintf: Likewise.
28009         * modules/unistdio/u16-sprintf: Likewise.
28010         * modules/unistdio/u16-u16-asnprintf: Likewise.
28011         * modules/unistdio/u16-u16-asprintf: Likewise.
28012         * modules/unistdio/u16-u16-snprintf: Likewise.
28013         * modules/unistdio/u16-u16-sprintf: Likewise.
28014         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28015         * modules/unistdio/u16-u16-vasprintf: Likewise.
28016         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28017         * modules/unistdio/u16-u16-vsprintf: Likewise.
28018         * modules/unistdio/u16-vasnprintf: Likewise.
28019         * modules/unistdio/u16-vasprintf: Likewise.
28020         * modules/unistdio/u16-vsnprintf: Likewise.
28021         * modules/unistdio/u16-vsprintf: Likewise.
28022         * modules/unistdio/u32-asnprintf: Likewise.
28023         * modules/unistdio/u32-asprintf: Likewise.
28024         * modules/unistdio/u32-snprintf: Likewise.
28025         * modules/unistdio/u32-sprintf: Likewise.
28026         * modules/unistdio/u32-u32-asnprintf: Likewise.
28027         * modules/unistdio/u32-u32-asprintf: Likewise.
28028         * modules/unistdio/u32-u32-snprintf: Likewise.
28029         * modules/unistdio/u32-u32-sprintf: Likewise.
28030         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28031         * modules/unistdio/u32-u32-vasprintf: Likewise.
28032         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28033         * modules/unistdio/u32-u32-vsprintf: Likewise.
28034         * modules/unistdio/u32-vasnprintf: Likewise.
28035         * modules/unistdio/u32-vasprintf: Likewise.
28036         * modules/unistdio/u32-vsnprintf: Likewise.
28037         * modules/unistdio/u32-vsprintf: Likewise.
28038         * modules/unistdio/ulc-asnprintf: Likewise.
28039         * modules/unistdio/ulc-asprintf: Likewise.
28040         * modules/unistdio/ulc-fprintf: Likewise.
28041         * modules/unistdio/ulc-snprintf: Likewise.
28042         * modules/unistdio/ulc-sprintf: Likewise.
28043         * modules/unistdio/ulc-vasnprintf: Likewise.
28044         * modules/unistdio/ulc-vasprintf: Likewise.
28045         * modules/unistdio/ulc-vfprintf: Likewise.
28046         * modules/unistdio/ulc-vsnprintf: Likewise.
28047         * modules/unistdio/ulc-vsprintf: Likewise.
28048         * modules/unistr/u8-check: Likewise.
28049         * modules/unistr/u8-chr: Likewise.
28050         * modules/unistr/u8-cmp: Likewise.
28051         * modules/unistr/u8-cmp2: Likewise.
28052         * modules/unistr/u8-cpy: Likewise.
28053         * modules/unistr/u8-cpy-alloc: Likewise.
28054         * modules/unistr/u8-endswith: Likewise.
28055         * modules/unistr/u8-mblen: Likewise.
28056         * modules/unistr/u8-mbsnlen: Likewise.
28057         * modules/unistr/u8-mbtouc: Likewise.
28058         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28059         * modules/unistr/u8-mbtoucr: Likewise.
28060         * modules/unistr/u8-move: Likewise.
28061         * modules/unistr/u8-next: Likewise.
28062         * modules/unistr/u8-prev: Likewise.
28063         * modules/unistr/u8-set: Likewise.
28064         * modules/unistr/u8-startswith: Likewise.
28065         * modules/unistr/u8-stpcpy: Likewise.
28066         * modules/unistr/u8-stpncpy: Likewise.
28067         * modules/unistr/u8-strcat: Likewise.
28068         * modules/unistr/u8-strchr: Likewise.
28069         * modules/unistr/u8-strcmp: Likewise.
28070         * modules/unistr/u8-strcoll: Likewise.
28071         * modules/unistr/u8-strcpy: Likewise.
28072         * modules/unistr/u8-strcspn: Likewise.
28073         * modules/unistr/u8-strdup: Likewise.
28074         * modules/unistr/u8-strlen: Likewise.
28075         * modules/unistr/u8-strmblen: Likewise.
28076         * modules/unistr/u8-strmbtouc: Likewise.
28077         * modules/unistr/u8-strncat: Likewise.
28078         * modules/unistr/u8-strncmp: Likewise.
28079         * modules/unistr/u8-strncpy: Likewise.
28080         * modules/unistr/u8-strnlen: Likewise.
28081         * modules/unistr/u8-strpbrk: Likewise.
28082         * modules/unistr/u8-strrchr: Likewise.
28083         * modules/unistr/u8-strspn: Likewise.
28084         * modules/unistr/u8-strstr: Likewise.
28085         * modules/unistr/u8-strtok: Likewise.
28086         * modules/unistr/u8-to-u16: Likewise.
28087         * modules/unistr/u8-to-u32: Likewise.
28088         * modules/unistr/u8-uctomb: Likewise.
28089         * modules/unistr/u16-check: Likewise.
28090         * modules/unistr/u16-chr: Likewise.
28091         * modules/unistr/u16-cmp: Likewise.
28092         * modules/unistr/u16-cmp2: Likewise.
28093         * modules/unistr/u16-cpy: Likewise.
28094         * modules/unistr/u16-cpy-alloc: Likewise.
28095         * modules/unistr/u16-endswith: Likewise.
28096         * modules/unistr/u16-mblen: Likewise.
28097         * modules/unistr/u16-mbsnlen: Likewise.
28098         * modules/unistr/u16-mbtouc: Likewise.
28099         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28100         * modules/unistr/u16-mbtoucr: Likewise.
28101         * modules/unistr/u16-move: Likewise.
28102         * modules/unistr/u16-next: Likewise.
28103         * modules/unistr/u16-prev: Likewise.
28104         * modules/unistr/u16-set: Likewise.
28105         * modules/unistr/u16-startswith: Likewise.
28106         * modules/unistr/u16-stpcpy: Likewise.
28107         * modules/unistr/u16-stpncpy: Likewise.
28108         * modules/unistr/u16-strcat: Likewise.
28109         * modules/unistr/u16-strchr: Likewise.
28110         * modules/unistr/u16-strcmp: Likewise.
28111         * modules/unistr/u16-strcoll: Likewise.
28112         * modules/unistr/u16-strcpy: Likewise.
28113         * modules/unistr/u16-strcspn: Likewise.
28114         * modules/unistr/u16-strdup: Likewise.
28115         * modules/unistr/u16-strlen: Likewise.
28116         * modules/unistr/u16-strmblen: Likewise.
28117         * modules/unistr/u16-strmbtouc: Likewise.
28118         * modules/unistr/u16-strncat: Likewise.
28119         * modules/unistr/u16-strncmp: Likewise.
28120         * modules/unistr/u16-strncpy: Likewise.
28121         * modules/unistr/u16-strnlen: Likewise.
28122         * modules/unistr/u16-strpbrk: Likewise.
28123         * modules/unistr/u16-strrchr: Likewise.
28124         * modules/unistr/u16-strspn: Likewise.
28125         * modules/unistr/u16-strstr: Likewise.
28126         * modules/unistr/u16-strtok: Likewise.
28127         * modules/unistr/u16-to-u32: Likewise.
28128         * modules/unistr/u16-to-u8: Likewise.
28129         * modules/unistr/u16-uctomb: Likewise.
28130         * modules/unistr/u32-check: Likewise.
28131         * modules/unistr/u32-chr: Likewise.
28132         * modules/unistr/u32-cmp: Likewise.
28133         * modules/unistr/u32-cmp2: Likewise.
28134         * modules/unistr/u32-cpy: Likewise.
28135         * modules/unistr/u32-cpy-alloc: Likewise.
28136         * modules/unistr/u32-endswith: Likewise.
28137         * modules/unistr/u32-mblen: Likewise.
28138         * modules/unistr/u32-mbsnlen: Likewise.
28139         * modules/unistr/u32-mbtouc: Likewise.
28140         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28141         * modules/unistr/u32-mbtoucr: Likewise.
28142         * modules/unistr/u32-move: Likewise.
28143         * modules/unistr/u32-next: Likewise.
28144         * modules/unistr/u32-prev: Likewise.
28145         * modules/unistr/u32-set: Likewise.
28146         * modules/unistr/u32-startswith: Likewise.
28147         * modules/unistr/u32-stpcpy: Likewise.
28148         * modules/unistr/u32-stpncpy: Likewise.
28149         * modules/unistr/u32-strcat: Likewise.
28150         * modules/unistr/u32-strchr: Likewise.
28151         * modules/unistr/u32-strcmp: Likewise.
28152         * modules/unistr/u32-strcoll: Likewise.
28153         * modules/unistr/u32-strcpy: Likewise.
28154         * modules/unistr/u32-strcspn: Likewise.
28155         * modules/unistr/u32-strdup: Likewise.
28156         * modules/unistr/u32-strlen: Likewise.
28157         * modules/unistr/u32-strmblen: Likewise.
28158         * modules/unistr/u32-strmbtouc: Likewise.
28159         * modules/unistr/u32-strncat: Likewise.
28160         * modules/unistr/u32-strncmp: Likewise.
28161         * modules/unistr/u32-strncpy: Likewise.
28162         * modules/unistr/u32-strnlen: Likewise.
28163         * modules/unistr/u32-strpbrk: Likewise.
28164         * modules/unistr/u32-strrchr: Likewise.
28165         * modules/unistr/u32-strspn: Likewise.
28166         * modules/unistr/u32-strstr: Likewise.
28167         * modules/unistr/u32-strtok: Likewise.
28168         * modules/unistr/u32-to-u16: Likewise.
28169         * modules/unistr/u32-to-u8: Likewise.
28170         * modules/unistr/u32-uctomb: Likewise.
28171         * modules/uniwbrk/u8-wordbreaks: Likewise.
28172         * modules/uniwbrk/u16-wordbreaks: Likewise.
28173         * modules/uniwbrk/u32-wordbreaks: Likewise.
28174         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28175         * modules/uniwbrk/wordbreak-property: Likewise.
28176         * modules/uniwidth/u8-strwidth: Likewise.
28177         * modules/uniwidth/u8-width: Likewise.
28178         * modules/uniwidth/u16-strwidth: Likewise.
28179         * modules/uniwidth/u16-width: Likewise.
28180         * modules/uniwidth/u32-strwidth: Likewise.
28181         * modules/uniwidth/u32-width: Likewise.
28182         * modules/uniwidth/width: Likewise.
28183         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28184         with $(LIBUNISTRING).
28185         * modules/unicase/ignorable-tests: Likewise.
28186         * modules/unicase/locale-language-tests: Likewise.
28187         * modules/unicase/tolower-tests: Likewise.
28188         * modules/unicase/totitle-tests: Likewise.
28189         * modules/unicase/toupper-tests: Likewise.
28190         * modules/unicase/u8-casecmp-tests: Likewise.
28191         * modules/unicase/u8-casecoll-tests: Likewise.
28192         * modules/unicase/u8-casefold-tests: Likewise.
28193         * modules/unicase/u8-is-cased-tests: Likewise.
28194         * modules/unicase/u8-is-casefolded-tests: Likewise.
28195         * modules/unicase/u8-is-lowercase-tests: Likewise.
28196         * modules/unicase/u8-is-titlecase-tests: Likewise.
28197         * modules/unicase/u8-is-uppercase-tests: Likewise.
28198         * modules/unicase/u8-tolower-tests: Likewise.
28199         * modules/unicase/u8-totitle-tests: Likewise.
28200         * modules/unicase/u8-toupper-tests: Likewise.
28201         * modules/unicase/u16-casecmp-tests: Likewise.
28202         * modules/unicase/u16-casecoll-tests: Likewise.
28203         * modules/unicase/u16-casefold-tests: Likewise.
28204         * modules/unicase/u16-is-cased-tests: Likewise.
28205         * modules/unicase/u16-is-casefolded-tests: Likewise.
28206         * modules/unicase/u16-is-lowercase-tests: Likewise.
28207         * modules/unicase/u16-is-titlecase-tests: Likewise.
28208         * modules/unicase/u16-is-uppercase-tests: Likewise.
28209         * modules/unicase/u16-tolower-tests: Likewise.
28210         * modules/unicase/u16-totitle-tests: Likewise.
28211         * modules/unicase/u16-toupper-tests: Likewise.
28212         * modules/unicase/u32-casecmp-tests: Likewise.
28213         * modules/unicase/u32-casecoll-tests: Likewise.
28214         * modules/unicase/u32-casefold-tests: Likewise.
28215         * modules/unicase/u32-is-cased-tests: Likewise.
28216         * modules/unicase/u32-is-casefolded-tests: Likewise.
28217         * modules/unicase/u32-is-lowercase-tests: Likewise.
28218         * modules/unicase/u32-is-titlecase-tests: Likewise.
28219         * modules/unicase/u32-is-uppercase-tests: Likewise.
28220         * modules/unicase/u32-tolower-tests: Likewise.
28221         * modules/unicase/u32-totitle-tests: Likewise.
28222         * modules/unicase/u32-toupper-tests: Likewise.
28223         * modules/unicase/ulc-casecmp-tests: Likewise.
28224         * modules/unicase/ulc-casecoll-tests: Likewise.
28225         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28226         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28227         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28228         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28229         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28230         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28231         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28232         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28233         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28234         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28235         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28236         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28237         * modules/unictype/bidicategory-byname-tests: Likewise.
28238         * modules/unictype/bidicategory-name-tests: Likewise.
28239         * modules/unictype/bidicategory-of-tests: Likewise.
28240         * modules/unictype/bidicategory-test-tests: Likewise.
28241         * modules/unictype/block-list-tests: Likewise.
28242         * modules/unictype/block-of-tests: Likewise.
28243         * modules/unictype/block-test-tests: Likewise.
28244         * modules/unictype/category-C-tests: Likewise.
28245         * modules/unictype/category-Cc-tests: Likewise.
28246         * modules/unictype/category-Cf-tests: Likewise.
28247         * modules/unictype/category-Cn-tests: Likewise.
28248         * modules/unictype/category-Co-tests: Likewise.
28249         * modules/unictype/category-Cs-tests: Likewise.
28250         * modules/unictype/category-L-tests: Likewise.
28251         * modules/unictype/category-Ll-tests: Likewise.
28252         * modules/unictype/category-Lm-tests: Likewise.
28253         * modules/unictype/category-Lo-tests: Likewise.
28254         * modules/unictype/category-Lt-tests: Likewise.
28255         * modules/unictype/category-Lu-tests: Likewise.
28256         * modules/unictype/category-M-tests: Likewise.
28257         * modules/unictype/category-Mc-tests: Likewise.
28258         * modules/unictype/category-Me-tests: Likewise.
28259         * modules/unictype/category-Mn-tests: Likewise.
28260         * modules/unictype/category-N-tests: Likewise.
28261         * modules/unictype/category-Nd-tests: Likewise.
28262         * modules/unictype/category-Nl-tests: Likewise.
28263         * modules/unictype/category-No-tests: Likewise.
28264         * modules/unictype/category-P-tests: Likewise.
28265         * modules/unictype/category-Pc-tests: Likewise.
28266         * modules/unictype/category-Pd-tests: Likewise.
28267         * modules/unictype/category-Pe-tests: Likewise.
28268         * modules/unictype/category-Pf-tests: Likewise.
28269         * modules/unictype/category-Pi-tests: Likewise.
28270         * modules/unictype/category-Po-tests: Likewise.
28271         * modules/unictype/category-Ps-tests: Likewise.
28272         * modules/unictype/category-S-tests: Likewise.
28273         * modules/unictype/category-Sc-tests: Likewise.
28274         * modules/unictype/category-Sk-tests: Likewise.
28275         * modules/unictype/category-Sm-tests: Likewise.
28276         * modules/unictype/category-So-tests: Likewise.
28277         * modules/unictype/category-Z-tests: Likewise.
28278         * modules/unictype/category-Zl-tests: Likewise.
28279         * modules/unictype/category-Zp-tests: Likewise.
28280         * modules/unictype/category-Zs-tests: Likewise.
28281         * modules/unictype/category-and-not-tests: Likewise.
28282         * modules/unictype/category-and-tests: Likewise.
28283         * modules/unictype/category-byname-tests: Likewise.
28284         * modules/unictype/category-name-tests: Likewise.
28285         * modules/unictype/category-none-tests: Likewise.
28286         * modules/unictype/category-of-tests: Likewise.
28287         * modules/unictype/category-or-tests: Likewise.
28288         * modules/unictype/category-test-withtable-tests: Likewise.
28289         * modules/unictype/combining-class-tests: Likewise.
28290         * modules/unictype/ctype-alnum-tests: Likewise.
28291         * modules/unictype/ctype-alpha-tests: Likewise.
28292         * modules/unictype/ctype-blank-tests: Likewise.
28293         * modules/unictype/ctype-cntrl-tests: Likewise.
28294         * modules/unictype/ctype-digit-tests: Likewise.
28295         * modules/unictype/ctype-graph-tests: Likewise.
28296         * modules/unictype/ctype-lower-tests: Likewise.
28297         * modules/unictype/ctype-print-tests: Likewise.
28298         * modules/unictype/ctype-punct-tests: Likewise.
28299         * modules/unictype/ctype-space-tests: Likewise.
28300         * modules/unictype/ctype-upper-tests: Likewise.
28301         * modules/unictype/ctype-xdigit-tests: Likewise.
28302         * modules/unictype/decimal-digit-tests: Likewise.
28303         * modules/unictype/digit-tests: Likewise.
28304         * modules/unictype/mirror-tests: Likewise.
28305         * modules/unictype/numeric-tests: Likewise.
28306         * modules/unictype/property-alphabetic-tests: Likewise.
28307         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28308         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28309         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28310         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28311         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28312         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28313         * modules/unictype/property-bidi-control-tests: Likewise.
28314         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28315         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28316         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28317         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28318         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28319         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28320         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28321         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28322         * modules/unictype/property-bidi-pdf-tests: Likewise.
28323         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28324         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28325         * modules/unictype/property-byname-tests: Likewise.
28326         * modules/unictype/property-combining-tests: Likewise.
28327         * modules/unictype/property-composite-tests: Likewise.
28328         * modules/unictype/property-currency-symbol-tests: Likewise.
28329         * modules/unictype/property-dash-tests: Likewise.
28330         * modules/unictype/property-decimal-digit-tests: Likewise.
28331         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28332         * modules/unictype/property-deprecated-tests: Likewise.
28333         * modules/unictype/property-diacritic-tests: Likewise.
28334         * modules/unictype/property-extender-tests: Likewise.
28335         * modules/unictype/property-format-control-tests: Likewise.
28336         * modules/unictype/property-grapheme-base-tests: Likewise.
28337         * modules/unictype/property-grapheme-extend-tests: Likewise.
28338         * modules/unictype/property-grapheme-link-tests: Likewise.
28339         * modules/unictype/property-hex-digit-tests: Likewise.
28340         * modules/unictype/property-hyphen-tests: Likewise.
28341         * modules/unictype/property-id-continue-tests: Likewise.
28342         * modules/unictype/property-id-start-tests: Likewise.
28343         * modules/unictype/property-ideographic-tests: Likewise.
28344         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28345         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28346         * modules/unictype/property-ignorable-control-tests: Likewise.
28347         * modules/unictype/property-iso-control-tests: Likewise.
28348         * modules/unictype/property-join-control-tests: Likewise.
28349         * modules/unictype/property-left-of-pair-tests: Likewise.
28350         * modules/unictype/property-line-separator-tests: Likewise.
28351         * modules/unictype/property-logical-order-exception-tests: Likewise.
28352         * modules/unictype/property-lowercase-tests: Likewise.
28353         * modules/unictype/property-math-tests: Likewise.
28354         * modules/unictype/property-non-break-tests: Likewise.
28355         * modules/unictype/property-not-a-character-tests: Likewise.
28356         * modules/unictype/property-numeric-tests: Likewise.
28357         * modules/unictype/property-other-alphabetic-tests: Likewise.
28358         * modules/unictype/property-other-default-ignorable-code-point-tests:
28359         Likewise.
28360         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28361         * modules/unictype/property-other-id-continue-tests: Likewise.
28362         * modules/unictype/property-other-id-start-tests: Likewise.
28363         * modules/unictype/property-other-lowercase-tests: Likewise.
28364         * modules/unictype/property-other-math-tests: Likewise.
28365         * modules/unictype/property-other-uppercase-tests: Likewise.
28366         * modules/unictype/property-paired-punctuation-tests: Likewise.
28367         * modules/unictype/property-paragraph-separator-tests: Likewise.
28368         * modules/unictype/property-pattern-syntax-tests: Likewise.
28369         * modules/unictype/property-pattern-white-space-tests: Likewise.
28370         * modules/unictype/property-private-use-tests: Likewise.
28371         * modules/unictype/property-punctuation-tests: Likewise.
28372         * modules/unictype/property-quotation-mark-tests: Likewise.
28373         * modules/unictype/property-radical-tests: Likewise.
28374         * modules/unictype/property-sentence-terminal-tests: Likewise.
28375         * modules/unictype/property-soft-dotted-tests: Likewise.
28376         * modules/unictype/property-space-tests: Likewise.
28377         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28378         * modules/unictype/property-test-tests: Likewise.
28379         * modules/unictype/property-titlecase-tests: Likewise.
28380         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28381         * modules/unictype/property-unified-ideograph-tests: Likewise.
28382         * modules/unictype/property-uppercase-tests: Likewise.
28383         * modules/unictype/property-variation-selector-tests: Likewise.
28384         * modules/unictype/property-white-space-tests: Likewise.
28385         * modules/unictype/property-xid-continue-tests: Likewise.
28386         * modules/unictype/property-xid-start-tests: Likewise.
28387         * modules/unictype/property-zero-width-tests: Likewise.
28388         * modules/unictype/scripts-tests: Likewise.
28389         * modules/unictype/syntax-c-ident-tests: Likewise.
28390         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28391         * modules/unictype/syntax-java-ident-tests: Likewise.
28392         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28393         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28394         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28395         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28396         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28397         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28398         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28399         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28400         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28401         * modules/uniname/uniname-tests: Likewise.
28402         * modules/uninorm/canonical-decomposition-tests: Likewise.
28403         * modules/uninorm/compat-decomposition-tests: Likewise.
28404         * modules/uninorm/composition-tests: Likewise.
28405         * modules/uninorm/decomposing-form-tests: Likewise.
28406         * modules/uninorm/decomposition-tests: Likewise.
28407         * modules/uninorm/filter-tests: Likewise.
28408         * modules/uninorm/nfc-tests: Likewise.
28409         * modules/uninorm/nfd-tests: Likewise.
28410         * modules/uninorm/nfkc-tests: Likewise.
28411         * modules/uninorm/nfkd-tests: Likewise.
28412         * modules/uninorm/u8-normcmp-tests: Likewise.
28413         * modules/uninorm/u8-normcoll-tests: Likewise.
28414         * modules/uninorm/u16-normcmp-tests: Likewise.
28415         * modules/uninorm/u16-normcoll-tests: Likewise.
28416         * modules/uninorm/u32-normcmp-tests: Likewise.
28417         * modules/uninorm/u32-normcoll-tests: Likewise.
28418         * modules/unistdio/u8-asnprintf-tests: Likewise.
28419         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28420         * modules/unistdio/u8-vasprintf-tests: Likewise.
28421         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28422         * modules/unistdio/u8-vsprintf-tests: Likewise.
28423         * modules/unistdio/u16-asnprintf-tests: Likewise.
28424         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28425         * modules/unistdio/u16-vasprintf-tests: Likewise.
28426         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28427         * modules/unistdio/u16-vsprintf-tests: Likewise.
28428         * modules/unistdio/u32-asnprintf-tests: Likewise.
28429         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28430         * modules/unistdio/u32-vasprintf-tests: Likewise.
28431         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28432         * modules/unistdio/u32-vsprintf-tests: Likewise.
28433         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28434         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28435         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28436         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28437         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28438         * modules/unistr/u8-check-tests: Likewise.
28439         * modules/unistr/u8-chr-tests: Likewise.
28440         * modules/unistr/u8-cmp-tests: Likewise.
28441         * modules/unistr/u8-cmp2-tests: Likewise.
28442         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28443         * modules/unistr/u8-cpy-tests: Likewise.
28444         * modules/unistr/u8-mblen-tests: Likewise.
28445         * modules/unistr/u8-mbsnlen-tests: Likewise.
28446         * modules/unistr/u8-mbtouc-tests: Likewise.
28447         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28448         * modules/unistr/u8-mbtoucr-tests: Likewise.
28449         * modules/unistr/u8-move-tests: Likewise.
28450         * modules/unistr/u8-next-tests: Likewise.
28451         * modules/unistr/u8-prev-tests: Likewise.
28452         * modules/unistr/u8-set-tests: Likewise.
28453         * modules/unistr/u8-stpcpy-tests: Likewise.
28454         * modules/unistr/u8-stpncpy-tests: Likewise.
28455         * modules/unistr/u8-strcat-tests: Likewise.
28456         * modules/unistr/u8-strcmp-tests: Likewise.
28457         * modules/unistr/u8-strcoll-tests: Likewise.
28458         * modules/unistr/u8-strcpy-tests: Likewise.
28459         * modules/unistr/u8-strdup-tests: Likewise.
28460         * modules/unistr/u8-strlen-tests: Likewise.
28461         * modules/unistr/u8-strmblen-tests: Likewise.
28462         * modules/unistr/u8-strmbtouc-tests: Likewise.
28463         * modules/unistr/u8-strncat-tests: Likewise.
28464         * modules/unistr/u8-strncmp-tests: Likewise.
28465         * modules/unistr/u8-strncpy-tests: Likewise.
28466         * modules/unistr/u8-strnlen-tests: Likewise.
28467         * modules/unistr/u8-to-u16-tests: Likewise.
28468         * modules/unistr/u8-to-u32-tests: Likewise.
28469         * modules/unistr/u8-uctomb-tests: Likewise.
28470         * modules/unistr/u16-check-tests: Likewise.
28471         * modules/unistr/u16-chr-tests: Likewise.
28472         * modules/unistr/u16-cmp-tests: Likewise.
28473         * modules/unistr/u16-cmp2-tests: Likewise.
28474         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28475         * modules/unistr/u16-cpy-tests: Likewise.
28476         * modules/unistr/u16-mblen-tests: Likewise.
28477         * modules/unistr/u16-mbsnlen-tests: Likewise.
28478         * modules/unistr/u16-mbtouc-tests: Likewise.
28479         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28480         * modules/unistr/u16-mbtoucr-tests: Likewise.
28481         * modules/unistr/u16-move-tests: Likewise.
28482         * modules/unistr/u16-next-tests: Likewise.
28483         * modules/unistr/u16-prev-tests: Likewise.
28484         * modules/unistr/u16-set-tests: Likewise.
28485         * modules/unistr/u16-stpcpy-tests: Likewise.
28486         * modules/unistr/u16-stpncpy-tests: Likewise.
28487         * modules/unistr/u16-strcat-tests: Likewise.
28488         * modules/unistr/u16-strcmp-tests: Likewise.
28489         * modules/unistr/u16-strcoll-tests: Likewise.
28490         * modules/unistr/u16-strcpy-tests: Likewise.
28491         * modules/unistr/u16-strdup-tests: Likewise.
28492         * modules/unistr/u16-strlen-tests: Likewise.
28493         * modules/unistr/u16-strmblen-tests: Likewise.
28494         * modules/unistr/u16-strmbtouc-tests: Likewise.
28495         * modules/unistr/u16-strncat-tests: Likewise.
28496         * modules/unistr/u16-strncmp-tests: Likewise.
28497         * modules/unistr/u16-strncpy-tests: Likewise.
28498         * modules/unistr/u16-strnlen-tests: Likewise.
28499         * modules/unistr/u16-to-u32-tests: Likewise.
28500         * modules/unistr/u16-to-u8-tests: Likewise.
28501         * modules/unistr/u16-uctomb-tests: Likewise.
28502         * modules/unistr/u32-check-tests: Likewise.
28503         * modules/unistr/u32-chr-tests: Likewise.
28504         * modules/unistr/u32-cmp-tests: Likewise.
28505         * modules/unistr/u32-cmp2-tests: Likewise.
28506         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28507         * modules/unistr/u32-cpy-tests: Likewise.
28508         * modules/unistr/u32-mblen-tests: Likewise.
28509         * modules/unistr/u32-mbsnlen-tests: Likewise.
28510         * modules/unistr/u32-mbtouc-tests: Likewise.
28511         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28512         * modules/unistr/u32-mbtoucr-tests: Likewise.
28513         * modules/unistr/u32-move-tests: Likewise.
28514         * modules/unistr/u32-next-tests: Likewise.
28515         * modules/unistr/u32-prev-tests: Likewise.
28516         * modules/unistr/u32-set-tests: Likewise.
28517         * modules/unistr/u32-stpcpy-tests: Likewise.
28518         * modules/unistr/u32-stpncpy-tests: Likewise.
28519         * modules/unistr/u32-strcat-tests: Likewise.
28520         * modules/unistr/u32-strcmp-tests: Likewise.
28521         * modules/unistr/u32-strcoll-tests: Likewise.
28522         * modules/unistr/u32-strcpy-tests: Likewise.
28523         * modules/unistr/u32-strdup-tests: Likewise.
28524         * modules/unistr/u32-strlen-tests: Likewise.
28525         * modules/unistr/u32-strmblen-tests: Likewise.
28526         * modules/unistr/u32-strmbtouc-tests: Likewise.
28527         * modules/unistr/u32-strncat-tests: Likewise.
28528         * modules/unistr/u32-strncmp-tests: Likewise.
28529         * modules/unistr/u32-strncpy-tests: Likewise.
28530         * modules/unistr/u32-strnlen-tests: Likewise.
28531         * modules/unistr/u32-to-u16-tests: Likewise.
28532         * modules/unistr/u32-to-u8-tests: Likewise.
28533         * modules/unistr/u32-uctomb-tests: Likewise.
28534         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28535         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28536         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28537         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28538         * modules/uniwidth/u8-strwidth-tests: Likewise.
28539         * modules/uniwidth/u8-width-tests: Likewise.
28540         * modules/uniwidth/u16-strwidth-tests: Likewise.
28541         * modules/uniwidth/u16-width-tests: Likewise.
28542         * modules/uniwidth/u32-strwidth-tests: Likewise.
28543         * modules/uniwidth/u32-width-tests: Likewise.
28544         * modules/uniwidth/width-tests: Likewise.
28545
28546 2010-05-18  Richard Jones  <rjones@redhat.com>
28547
28548         doc: users.txt: list hivex
28549         * users.txt: Add hivex.
28550
28551 2010-05-18  Richard Jones  <rjones@redhat.com>
28552
28553         doc: users.txt: list febootstrap
28554         * users.txt: Add febootstrap.
28555
28556 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28557
28558         bootstrap: fix an error when gnulib is not used as a git submodule
28559         * build-aux/bootstrap (gnulib_path): If its length is zero then
28560         assign "gnulib" to it.
28561         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28562
28563 2010-05-16  Bruno Haible  <bruno@clisp.org>
28564
28565         Avoid autoconf warnings about AM_ICONV.
28566         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28567         2.64.
28568
28569 2010-05-16  Bruno Haible  <bruno@clisp.org>
28570
28571         absolute-header: Make the macro usable in more situations.
28572         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28573         from gl_ABSOLUTE_HEADER.
28574         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28575
28576 2010-05-16  James Youngman  <jay@gnu.org>
28577
28578         doc: update users.txt
28579         * users.txt: Add CSSC.
28580
28581 2010-05-16  Jim Meyering  <meyering@redhat.com>
28582
28583         init.sh: fix an error in the previous change; add more comments
28584         * tests/init.sh: Compare exit code in loop against 9, not 2.
28585         Patch by Bruno Haible.
28586         Make the two tests more similar by adding an empty "then" clause.
28587         Add comments.
28588
28589         init.sh: avoid unnecessary shell re-exec
28590         * tests/init.sh: Improve the re-exec-required check to first test the
28591         current shell.  If it passes the test, do not search for a shell that
28592         does pass, and do not re-exec.  This test is particularly contorted to
28593         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28594         of $(...) evokes a syntax error and causes immediate shell exit with
28595         status 2.  Bruno Haible reported that the re-exec made it impossible
28596         to single-step through any init.sh-using script.
28597
28598 2010-05-16  Bruno Haible  <bruno@clisp.org>
28599
28600         Fix collision between gnulib's and libintl's printf replacements.
28601         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28602         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28603         (printf): When using GNU C, map the __printf__ function to rpl_printf
28604         via __asm__. When not using GNU C, define rpl_printf instead of
28605         __printf__.
28606         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28607         commit.
28608         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28609         commit.
28610         * m4/asm-underscore.m4: New file.
28611         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28612         * modules/stdio (Files): Add m4/asm-underscore.m4.
28613         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28614         Reported by Ben Pfaff.
28615
28616 2010-05-16  Bruno Haible  <bruno@clisp.org>
28617
28618         verify: Avoid skipping the test on openSUSE 11.0.
28619         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28620
28621 2010-05-13  Bruno Haible  <bruno@clisp.org>
28622
28623         Avoid useless warnings from G++.
28624         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28625         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28626         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28627
28628 2010-05-11  Jim Meyering  <meyering@redhat.com>
28629
28630         maint.mk: tweak preceding change
28631         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28632         regexps tighter by anchoring at EOL, and make the new group "shy"
28633         for slightly decreased overhead.
28634
28635 2010-05-11  Eric Blake  <eblake@redhat.com>
28636
28637         maint.mk: gnulib doesn't guarantee NSIG
28638         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28639
28640 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28641
28642         test-pwrite.c: Remove unused variable declaration.
28643         * tests/test-pwrite.c (main): Remove read_buf declaration.
28644
28645         Remove useless test-pwrite.sh file.
28646         * tests/test-pwrite.sh: Delete file.
28647         * modules/pwrite-tests: Remove references.
28648         Reported by Bruno Haible.
28649
28650 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28651
28652         init.sh: fix a typo
28653         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28654
28655 2010-05-10  Jim Meyering  <meyering@redhat.com>
28656
28657         maint.mk: avoid using a temporary file in the always-defined-macros check
28658         * top/maint.mk (.re-defmac): Remove rule.
28659         (gl_trap_): Remove definition.
28660         (sc_prohibit_always-defined_macros): Rewrite not to create and
28661         depend on a temporary file.  Instead, depend on GNU grep's ability
28662         to read a list of regular expressions from stdin when given "-f -".
28663
28664 2010-05-09  Bruno Haible  <bruno@clisp.org>
28665
28666         Update to GNU gettext 0.18, part 1.
28667         * m4/gettext.m4: Update to GNU gettext 0.18.
28668         * m4/intl.m4: Likewise.
28669         * m4/po.m4: Likewise.
28670         * modules/gettext (Files): Add m4/fcntl-o.m4.
28671         (configure.ac): Require gettext infrastructure from version 0.18.
28672
28673 2010-05-09  Jim Meyering  <meyering@redhat.com>
28674
28675         init.sh: enable MALLOC_PERTURB_
28676         * tests/init.sh: Enable glibc's malloc-perturbing option.
28677
28678         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28679         With my recent change in init.sh from the two-line form:
28680             -#   : ${srcdir=.}
28681             -#   . "$srcdir/init.sh"; path_prepend_ .
28682             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28683         I noticed that using the one-line form would cause this test
28684         to fail with a false-positive, or to stop working altogether,
28685         depending on whether help-version changed or all the tests did.
28686         * top/maint.mk (_hv_regex): Remove this definition.
28687         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28688         (_hv_regex_strong): Use a stronger regex to check for conformance.
28689         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28690         Give a separate diagnostic for lack of conforming use.
28691
28692         maint.mk: prohibit definition of symbols defined by gnulib
28693         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28694         definition of symbols defined by gnulib.
28695
28696 2010-05-09  Bruno Haible  <bruno@clisp.org>
28697
28698         acl: Avoid test failure on Cygwin-hosted mingw.
28699         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28700
28701 2010-05-09  Bruno Haible  <bruno@clisp.org>
28702
28703         error: Use system's fcntl function.
28704         * lib/error.c (fcntl): Undefine.
28705
28706 2010-05-09  Jim Meyering  <meyering@redhat.com>
28707
28708         verify: adjust formatting to be more consistent
28709         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28710         argument-list '('s, and after one comma.
28711
28712 2010-05-09  Bruno Haible  <bruno@clisp.org>
28713
28714         error: More reliable output on mingw.
28715         * lib/error.c: Include <windows.h>.
28716         (is_open): New function.
28717         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28718         defined.
28719
28720 2010-05-09  Bruno Haible  <bruno@clisp.org>
28721
28722         vasnprintf: Fix syntax errors in libintl build on mingw.
28723         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28724         pad_ourselves and prec_ourselves after use.
28725
28726 2010-05-08  Bruno Haible  <bruno@clisp.org>
28727
28728         * lib/config.charset: Update comments for Cygwin 1.7.
28729         * lib/localcharset.c: Likewise.
28730
28731 2010-05-07  Jim Meyering  <meyering@redhat.com>
28732
28733         init.sh: improve comments
28734         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28735         . "${srcdir=.}/init.sh"; path_prepend_ .
28736         Add a note about path_prepend_ and the alternative of using
28737         TESTS_ENVIRONMENT.
28738
28739 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28740
28741         exclude: Unescape hashed patterns in wildcard mode.
28742         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28743         to the hash list.
28744         * tests/test-exclude8.sh: New test case.
28745         * modules/exclude-tests: Add new test.
28746
28747 2010-05-05  Eric Blake  <eblake@redhat.com>
28748
28749         verify: automate tests
28750         * modules/verify-tests: New module.
28751         * tests/test-verify.sh: New file.
28752         * tests/test-verify.c: Guard each negative test with a unique id.
28753         Also avoid warning about unused left hand of comma expressions.
28754
28755 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28756
28757         Further improvements to verify.h, suggested by Eric Blake.
28758         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28759         the GL_* versions, to avoid collision with OpenGL.
28760         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28761         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28762         than testing merely whether it's defined.
28763
28764         Modify verify.h to pacify gcc -Wredundant_decls.
28765         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28766         These use the prefix "GL_" since they're likely to be useful elsewhere.
28767         We may need to break them out into a different .h file.
28768         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28769         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28770         of verify_function__.
28771
28772 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28773
28774         Tests for module pwrite.
28775         * modules/pwrite-tests: New file.
28776         * tests/test-pwrite.sh: New file.
28777         * tests/test-pwrite.c: New file.
28778
28779         New module pwrite.
28780         * lib/unistd.in.h (pwrite): New declaration.
28781         * lib/pwrite.c: New file, from glibc with modifications.
28782         * m4/pwrite.m4: New file.
28783         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28784         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28785         REPLACE_PWRITE.
28786         * modules/pwrite: New file.
28787         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28788         REPLACE_PWRITE.
28789         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28790         * doc/posix-functions/pwrite.texi: Mention the new module.
28791
28792 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28793
28794         pread: Update documentation.
28795         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28796
28797 2010-05-04  Eric Blake  <eblake@redhat.com>
28798
28799         docs: update cygwin progress
28800         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28801         this bug.
28802         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28803         Added in cygwin 1.7.2.
28804         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28805         Likewise.
28806         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28807         Likewise.
28808         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28809         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28810         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28811         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28812         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28813         Mention nproc module.
28814         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28815         bug in cygwin 1.7.5 addition.
28816         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28817         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28818         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28819         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28820         1.7.5.
28821         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28822         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28823         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28824         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28825         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28826         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28827         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28828         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28829         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28830         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28831         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28832         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28833         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28834         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28835         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28836         Likewise.
28837         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28838         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28839         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28840         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28841         Likewise.
28842         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28843         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28844         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28845         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28846         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28847         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28848         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28849         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28850         Likewise.
28851         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28852         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28853         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28854         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28855         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28856         Likewise.
28857         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28858         Likewise.
28859         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28860         Likewise.
28861         * doc/glibc-functions/xdrrec_endofrecord.texi
28862         (xdrrec_endofrecord): Likewise.
28863         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28864         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28865         Likewise.
28866         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28867         Likewise.
28868
28869 2010-05-04  Jim Meyering  <meyering@redhat.com>
28870
28871         gendocs.sh: make its "-s FILE" option more useful
28872         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28873         $PACKAGE to reflect the probably-different basename of "FILE".
28874
28875 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28876
28877         bootstrap: don't ignore download_po_files failure
28878         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28879         failure.
28880
28881 2010-05-03  Jim Meyering  <meyering@redhat.com>
28882
28883         maint.mk: allow to pass options to gendocs.sh
28884         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28885         (gendocs_options_): New overridable variable.
28886
28887         gnu-web-doc-update: don't ignore configure or build failure
28888         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28889
28890         announce-gen: backslash-escape '@'s in --help output
28891         * build-aux/announce-gen: Fix syntax errors.
28892
28893         maint.mk, announce-gen: allow project-specific announcement mail headers
28894         * top/maint.mk (translation_project_): Define default.
28895         (announcement_Cc_, announcement_mail_headers_): Likewise.
28896         (announcement): Invoke announce-gen with new --mail-headers option.
28897         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28898
28899         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28900         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28901         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28902         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28903         line in the "err2" output file when running "make check" in verbose
28904         mode (i.e., with set -x enabled).
28905
28906 2010-05-03  Bruno Haible  <bruno@clisp.org>
28907
28908         wctob: Fix for weird platforms.
28909         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28910         argument value.
28911
28912 2010-05-03  Jim Meyering  <meyering@redhat.com>
28913
28914         maint.mk: prohibit unwarranted use of <strings.h>
28915         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28916         strings.h in a file that does not also use strcasecmp, strncasecmp,
28917         ffs or ffsll.
28918
28919         maint.mk: remove obsolete comments
28920         * top/maint.mk: Remove stale, commented-out rules.
28921
28922 2010-05-02  Bruno Haible  <bruno@clisp.org>
28923
28924         wcwidth: Declare also when it's aliased.
28925         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28926         macro.
28927
28928 2010-05-02  Bruno Haible  <bruno@clisp.org>
28929
28930         Fix regression from 2010-04-25.
28931         * gnulib-tool (func_modules_transitive_closure): Check the status of
28932         all modules, not only of the tests that are of the form foo-tests where
28933         foo is a module.
28934
28935 2010-05-02  Bruno Haible  <bruno@clisp.org>
28936
28937         wctob: Work around nasty Cygwin 1.7.2 bug.
28938         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28939         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28940
28941 2010-05-01  Bruno Haible  <bruno@clisp.org>
28942
28943         fpurge: Sharper test.
28944         * tests/test-fpurge.c (main): Add one more ftell check.
28945         * modules/fpurge-tests (Depends-on): Add ftell.
28946         Suggested by Eric Blake.
28947
28948 2010-05-01  Bruno Haible  <bruno@clisp.org>
28949
28950         ftello: Another test.
28951         * tests/test-ftello3.c: New file.
28952         * modules/ftello-tests (Files): Add it.
28953         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28954         MOSTLYCLEANFILES.
28955
28956         ftell: Another test.
28957         * tests/test-ftell3.c: New file.
28958         * modules/ftell-tests (Files): Add it.
28959         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28960         MOSTLYCLEANFILES.
28961
28962 2010-05-01  Bruno Haible  <bruno@clisp.org>
28963
28964         ftell, ftello: Work around Solaris bug.
28965         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28966         * lib/ftello.c: Include stdio-impl.h.
28967         (ftello): On Solaris, when _IOWRT is set, compute the result without
28968         looking at _IOREAD.
28969         * modules/ftello (Files): Add lib/stdio-impl.h.
28970         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28971         * doc/posix-functions/ftello.texi: Likewise.
28972         Reported by Eric Blake.
28973
28974 2010-05-01  Bruno Haible  <bruno@clisp.org>
28975
28976         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28977         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28978         the _IOWRT flag is also set.
28979
28980 2010-05-01  Bruno Haible  <bruno@clisp.org>
28981
28982         Fix doc about a HP-UX stdio bug.
28983         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28984         * doc/posix-functions/ftello.texi: Likewise.
28985
28986 2010-05-01  Bruno Haible  <bruno@clisp.org>
28987
28988         lseek test: Fix failure on Solaris.
28989         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28990         output.
28991
28992 2010-04-30  Jim Meyering  <meyering@redhat.com>
28993
28994         bootstrap: don't ignore failure to generate po*/Makevars
28995         * build-aux/bootstrap (with_gettext): Don't ignore failure
28996         to create po/Makevars or runtime-po/Makevars.
28997
28998 2010-04-29  Eric Blake  <eblake@redhat.com>
28999
29000         headers: relax license to LGPLv2+
29001         * modules/fcntl-h (License): Relax license.
29002         * modules/getopt-posix (License): Likewise.
29003         * modules/locale (License): Likewise.
29004         * modules/math (License): Likewise.
29005         * modules/pty (License): Likewise.
29006         * modules/sched (License): Likewise.
29007         * modules/search (License): Likewise.
29008         * modules/spawn (License): Likewise.
29009         * modules/stdarg (License): Likewise.
29010         * modules/sysexits (License): Likewise.
29011
29012 2010-04-29  Jim Meyering  <meyering@redhat.com>
29013
29014         inttypes: relax license to LGPLv2+
29015         * modules/inttypes (License): Relax license.
29016
29017 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29018
29019         * top/maint.mk (indent): Run twice to produce idempotent results.
29020
29021 2010-04-28  Bruno Haible  <bruno@clisp.org>
29022
29023         getdate: Generate getdate.c in the source directory.
29024         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29025         MOSTLYCLEANFILES.
29026         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29027
29028 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29029
29030         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29031         is not declared as a const *; avoid warnings in that case.
29032
29033 2010-04-28  Eric Blake  <eblake@redhat.com>
29034
29035         canonicalize-lgpl: avoid compiler warning
29036         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29037         declaration' / 'extraneous semicolon' warning with some compilers.
29038         Reported by Andreas Gruenbacher.
29039
29040 2010-04-28  Jim Meyering  <meyering@redhat.com>
29041
29042         init.sh: ensure a more reliable exit status when exiting via trap
29043         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29044         Inspired by patches from Dmitry V. Levin.
29045         Also trap on signal 3 (SIGQUIT).
29046
29047 2010-04-27  Bruno Haible  <bruno@clisp.org>
29048
29049         Update doc about utimes().
29050         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29051         'utimens' module.
29052         Reported by Andreas Gruenbacher <agruen@suse.de>.
29053
29054 2010-04-27  Eric Blake  <eblake@redhat.com>
29055
29056         full-read, full-write: relax license
29057         * modules/full-read (License): Drop to LGPLv2+.
29058         * modules/full-write (License): Likewise.
29059         * modules/safe-read (License): Likewise.
29060         * modules/safe-write (License): Likewise.
29061
29062         pthread: mention library for linking
29063         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29064
29065 2010-04-27  Jim Meyering  <meyering@redhat.com>
29066
29067         maint.mk: fix a bug introduced in last change
29068         * top/maint.mk (gl_assured_headers_): Now that all names are on
29069         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29070         is not anchored to end of word, it should be adequate.
29071
29072         maint.mk: avoid side-effect in latest syntax-check
29073         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29074         to run commands via $(shell...), and hence to incur cost only when
29075         the new rule is actually run.
29076
29077         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29078         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29079         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29080         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29081         (gl_assured_headers_, az_, AZ_): Define.
29082         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29083
29084 2010-04-26  Jim Meyering  <jim@meyering.net>
29085             Bruno Haible  <bruno@clisp.org>
29086
29087         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29088         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29089         Prompted by an exchange with Gilles Espinasse.
29090
29091 2010-04-26  Jim Meyering  <meyering@redhat.com>
29092
29093         git-version-gen: aesthetic tweak
29094         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29095         so that the command remains on a single line.
29096
29097 2010-04-26  Eric Blake  <eblake@redhat.com>
29098
29099         git-version-gen: allow use on EBCDIC hosts
29100         * build-aux/git-version-gen (dirty): Use literal rather than tying
29101         ourselves to ascii.
29102         Reported by Steve Goetze.
29103
29104 2010-04-25  Bruno Haible  <bruno@clisp.org>
29105
29106         netdb: Add support for GNULIB_POSIXCHECK.
29107         * lib/netdb.in.h: Include warn-on-use.h.
29108         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29109         functions are used when GNULIB_POSIXCHECK is defined and the
29110         getaddrinfo module is not in use.
29111         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29112         freeaddrinfo, gai_strerror, getnameinfo are declared.
29113         * modules/netdb (Depends-on): Add warn-on-use.
29114         (Makefile.am): Include warn-on-use.h in netdb.h.
29115
29116 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29117
29118         build: avoid "make check" failure without .git/ directory
29119         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29120         there is no .git/ directory.
29121
29122 2010-04-25  Bruno Haible  <bruno@clisp.org>
29123
29124         ptsname: Fix misuse of ttyname_r.
29125         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29126         of errno.
29127
29128 2010-04-25  Bruno Haible  <bruno@clisp.org>
29129
29130         ttyname_r: Make it work on Solaris 10.
29131         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29132         if the system function has the POSIX declaration. Test whether the
29133         function fails if the buffer is less than 128 bytes large.
29134         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29135         system's ttyname_r function. Provide a reasonably large buffer.
29136         * modules/ttyname_r (Depends-on): Add extensions.
29137         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29138
29139 2010-04-25  Bruno Haible  <bruno@clisp.org>
29140
29141         Use the 'extensions' module for some more functions on Solaris.
29142         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29143         module.
29144         * doc/posix-functions/ctime_r.texi: Likewise.
29145         * doc/posix-functions/getgrgid_r.texi: Likewise.
29146         * doc/posix-functions/getgrnam_r.texi: Likewise.
29147         * doc/posix-functions/getpwnam_r.texi: Likewise.
29148         * doc/posix-functions/getpwuid_r.texi: Likewise.
29149         * doc/posix-functions/readdir_r.texi: Likewise.
29150         * doc/posix-functions/sigwait.texi: Likewise.
29151         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29152         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29153
29154 2010-04-25  Bruno Haible  <bruno@clisp.org>
29155
29156         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29157         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29158         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29159         * lib/ttyname_r.c: Include <limits.h>.
29160         (ttyname_r): Define using the system's ttyname_r function, if it exists
29161         and not on Solaris.
29162         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29163         set.
29164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29165         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29166         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29167         Reported by Simon Josefsson.
29168
29169 2010-04-25  Bruno Haible  <bruno@clisp.org>
29170
29171         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29172         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29173         * doc/posix-functions/ctime_r.texi: Likewise.
29174         * doc/posix-functions/getgrgid_r.texi: Likewise.
29175         * doc/posix-functions/getgrnam_r.texi: Likewise.
29176         * doc/posix-functions/getlogin_r.texi: Likewise.
29177         * doc/posix-functions/getpwnam_r.texi: Likewise.
29178         * doc/posix-functions/getpwuid_r.texi: Likewise.
29179         * doc/posix-functions/readdir_r.texi: Likewise.
29180         * doc/posix-functions/sigwait.texi: Likewise.
29181         * doc/posix-functions/ttyname_r.texi: Likewise.
29182         Reported by Simon Josefsson.
29183
29184 2010-04-25  Bruno Haible  <bruno@clisp.org>
29185
29186         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29187         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29188         also to --create-testdir.
29189         (func_acceptable): Don't consider the status of *-tests modules here.
29190         (func_modules_transitive_closure): Consider it here, before including a
29191         test module.
29192         (func_import, func_create_testdir): Set inc_all_direct_tests,
29193         inc_all_indirect_tests.
29194         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29195         --create-testdir and --create-megatestdir.
29196
29197 2010-04-25  Bruno Haible  <bruno@clisp.org>
29198
29199         gnulib-tool: Add --without-*-tests options.
29200         * gnulib-tool (func_usage): Document the --without-*-tests options.
29201         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29202         excl_unportable_tests): New variables.
29203         Fail if they are specified with --import or --update.
29204         (func_acceptable): Respect the excl_*_tests variables.
29205         (func_import): Set the excl_*_tests variables to empty.
29206
29207 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29208             Bruno Haible  <bruno@clisp.org>
29209
29210         Work around a MacOS X 10.4 bug with openpty.
29211         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29212         * tests/test-openpty.c (main): Close the master side explicitly.
29213
29214 2010-04-25  Bruno Haible  <bruno@clisp.org>
29215
29216         strnlen: Fix a C++ test error on MacOS X and Solaris.
29217         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29218         the function is not declared.
29219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29220         Simon Josefsson.
29221
29222 2010-04-24  Bruno Haible  <bruno@clisp.org>
29223
29224         Avoid a gcc warning.
29225         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29226         of correct type for %08lx directive.
29227         Reported by Eric Blake.
29228
29229 2010-04-24  Bruno Haible  <bruno@clisp.org>
29230
29231         vasnprintf: Correct errno value in case of out-of-memory.
29232         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29233         or sprintf. Use the errno value from SNPRINTF or sprintf.
29234         Reported by Ian Beckwith <ianb@erislabs.net>.
29235
29236 2010-04-24  Bruno Haible  <bruno@clisp.org>
29237
29238         ansi-c++-opt: Find correct compiler when cross-compiling.
29239         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29240         AC_CHECK_PROGS.
29241         Reported by Simon Josefsson.
29242
29243 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29244
29245         vc-list-files: Add support for subversion
29246         * build-aux/vc-list-files: Use "svn list" to generate the list of
29247         files controlled by subversion.
29248
29249 2010-04-23  Jim Meyering  <meyering@redhat.com>
29250
29251         vc-list-files tests: convert to use init.sh
29252         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29253         path_prepend_.
29254         Use Exit, not exit.
29255         Use skip_ rather than open coding it.
29256         Remove trap set-up and compare definitions.
29257         * tests/test-vc-list-files-git.sh: Likewise.
29258         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29259
29260 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29261
29262         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29263         backup files.
29264
29265 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29266
29267         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29268
29269 2010-04-20  Eric Blake  <eblake@redhat.com>
29270
29271         tests: be robust to ignored SIGPIPE
29272         * tests/test-select-in.sh: Consume all output.
29273         * tests/test-lseek.sh: Check correct exit status, while avoiding
29274         EPIPE.
29275
29276 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29277             Bruno Haible  <bruno@clisp.org>
29278
29279         visibility: Don't use -fvisibility if it leads to a warning.
29280         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29281         yes, don't pretend that visibility works if it leads to a warning.
29282         Reported by Mike Gran <spk121@yahoo.com>.
29283
29284 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29285
29286         * build-aux/bootstrap: Use "git -h" for testing for supported options
29287         instead of "git --help".  The short-form option only shows a summary,
29288         and doesn't layout the full man page.  Grep for the full option name
29289         in the summary, too.
29290
29291 2010-04-19  Bruno Haible  <bruno@clisp.org>
29292
29293         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29294         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29295         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29296         mention of RELOCATABLE_STRIP.
29297         Reported by Sylvain Beucler <beuc@beuc.net>.
29298
29299 2010-04-19  Bruno Haible  <bruno@clisp.org>
29300
29301         * lib/diffseq.h: Fix typo in comment.
29302         Reported by Eric Blake.
29303
29304 2010-04-19  Bruno Haible  <bruno@clisp.org>
29305
29306         ioctl: Move autoconf macro to a .m4 file.
29307         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29308         * modules/ioctl (Files): Add it.
29309         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29310         Reported by Ian Beckwith <ianb@erislabs.net>.
29311
29312 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29313             Bruno Haible  <bruno@clisp.org>
29314
29315         diffseq: Accommodate use-case with abstract arrays.
29316         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29317         is not defined.
29318         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29319         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29320
29321 2010-04-18  Bruno Haible  <bruno@clisp.org>
29322
29323         * doc/posix-headers/stdbool.texi: More precise wording.
29324
29325 2010-04-17  Jim Meyering  <meyering@redhat.com>
29326
29327         maint.mk: use gnu-style indentation in an embedded perl script
29328         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29329         Rename variable: s/two/last_two_bytes/
29330
29331 2010-04-16  Eric Blake  <eblake@redhat.com>
29332
29333         test-stdbool: skip test that fails with Solaris CC
29334         * tests/test-stdbool.c (f): Skip test that causes compilation
29335         error under buggy C++ compiler.
29336         * lib/stdbool.in.h: Document the limitation.
29337         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29338
29339         setenv: allow compilation with C++
29340         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29341         register keyword.
29342
29343         stdint: allow test to pass with C++
29344         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29345
29346         getopt: allow compilation with C++
29347         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29348         struct.
29349         * lib/getopt.c (_getopt_internal_r): Use correct type.
29350         Reported by Dagobert Michelson, via Joel E. Denny.
29351
29352 2010-04-16  Bruno Haible  <bruno@clisp.org>
29353
29354         Override netdb.h always.
29355         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29356         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29357         Reported by Ludovic Courtès <ludo@gnu.org>.
29358
29359 2010-04-15  Bruno Haible  <bruno@clisp.org>
29360
29361         openpty: Fix mistake from 2010-03-21.
29362         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29363         Reported by Simon Josefsson.
29364
29365 2010-04-15  Eric Blake  <eblake@redhat.com>
29366
29367         test-forkpty: fix expected signature
29368         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29369         Reported by Simon Josefsson.
29370
29371 2010-04-15  Jim Meyering  <meyering@redhat.com>
29372
29373         maint.mk: texinfo_suffix_re_: correct the default regexp
29374         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29375
29376         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29377         make it configurable via texinfo_suffix_re_.
29378
29379 2010-04-14  Eric Blake  <eblake@redhat.com>
29380
29381         strtok_r: relax license to LGPLv2+
29382         * modules/strtok_r (License): Relax license.
29383         Reported by Matthias Bolte.
29384
29385 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29386
29387         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29388         version 1.4.4 by default instead of requiring the libgcrypt
29389         version used during build.  This makes it possible to use the
29390         application with older but still binary compatible libgcrypt
29391         versions.
29392
29393 2010-04-13  Eric Blake  <eblake@redhat.com>
29394
29395         getopt-gnu: match recent glibc fixes and posix ruling
29396         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29397         '+' handling, when requesting extensions.
29398         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29399         'W;' handling.
29400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29401         * doc/posix-functions/getopt.texi (getopt): Document this.
29402         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29403         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29404         Likewise.
29405
29406         getopt: merge bug fixes from glibc
29407         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29408         diagnostics.  Honor '+:' correctly.  Reject ';'.
29409
29410         getopt-posix: detect MacOS bug
29411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29412         optind when missing a required argument.
29413         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29414         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29415         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29416         Likewise.
29417
29418         getopt-posix: avoid spurious failure on Solaris
29419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29420         an indicator that setting optind=1 is sufficient for reset.
29421
29422         getopt-posix: avoid spurious failure on FreeBSD
29423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29424         in POSIX mode, since the m4 test uses it.
29425
29426         gnulib-tool: silence warning on BSD sh
29427         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29428
29429 2010-04-13  Jim Meyering  <meyering@redhat.com>
29430
29431         doc: users.txt: GNU patch now uses gnulib
29432         * users.txt: Add patch.
29433
29434 2010-04-12  Jim Meyering  <meyering@redhat.com>
29435
29436         maint.mk: generate more concise timing data for syntax-check rules
29437         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29438         " done" from each line that reports a syntax-check test duration.
29439
29440 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29441
29442         git-version-gen: use "git update-index..." rather than "git status"
29443         * build-aux/git-version-gen: Use git update-index --refresh, not
29444         "git status".  With some versions of git, "git status" would fail
29445         to update the index and result in an unwarranted "-dirty" suffix.
29446
29447 2010-04-11  Jim Meyering  <meyering@redhat.com>
29448
29449         openat: correct formatting (no semantic change)
29450         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29451         Suggested by Bruno Haible.
29452
29453 2010-04-11  Bruno Haible  <bruno@clisp.org>
29454
29455         Stricter declaration checking in testdirs.
29456         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29457         If for_tests is true, augment AM_CPPFLAGS to define
29458         GNULIB_STRICT_CHECKING.
29459         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29460         GNULIB_STRICT_CHECKING is defined, verify that the function is
29461         declared.
29462
29463 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29464             Bruno Haible  <bruno@clisp.org>
29465
29466         libunistring: Improve configure output.
29467         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29468         Don't say "consider installing GNU libunistring" when checking again
29469         with libiconv.
29470
29471 2010-04-11  Bruno Haible  <bruno@clisp.org>
29472
29473         libunistring: Correct value of $LTLIBUNISTRING.
29474         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29475         correct the value of $LTLIBUNISTRING.
29476
29477 2010-04-11  Bruno Haible  <bruno@clisp.org>
29478
29479         havelib: Add static libraries to LIBS in the right order.
29480         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29481         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29482
29483 2010-04-11  Bruno Haible  <bruno@clisp.org>
29484
29485         libunistring: Detect libunistring also when it depends on libiconv.
29486         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29487         the second AC_LIB_HAVE_LINKFLAGS invocation.
29488
29489 2010-04-11  James Youngman  <jay@gnu.org>
29490
29491         close-stream: declare local scalars to be "const"
29492         * lib/close-stream.c (close_stream): Make boolean variables const
29493         to document the fact that we set but do not change them.
29494
29495 2010-04-11  Bruno Haible  <bruno@clisp.org>
29496
29497         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29498
29499 2010-04-11  Jim Meyering  <meyering@redhat.com>
29500
29501         maint.mk: don't include dist-check.mk
29502         * top/maint.mk: Remove bogus include directive.
29503
29504         maint.mk: improve empty-line-at-EOF check
29505         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29506         solution, rather than tail+Perl-based one.  The latter would read
29507         a few kilobytes from the end of each file, and did not handle empty
29508         files properly.
29509
29510         maint.mk: print the elapsed time for each syntax-check rule
29511         * top/maint.mk (sc_m_rules_): Save start time in a file.
29512         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29513         (local-check): Interpose the .z rules
29514
29515 2010-04-11  Jim Meyering  <meyering@redhat.com>
29516
29517         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29518         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29519         empty file with one that ends in an empty line.
29520
29521 2010-04-10  Bruno Haible  <bruno@clisp.org>
29522
29523         mkdir: Make it work on mingw64.
29524         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29525         * lib/mkdir.c: Update comment.
29526         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29527
29528 2010-04-10  Bruno Haible  <bruno@clisp.org>
29529
29530         Don't override improved macro from newer autoconf.
29531         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29532         autoconf >= 2.62.
29533         Reported by Joel E. Denny <jdenny@clemson.edu>.
29534
29535 2010-04-10  Jim Meyering  <meyering@redhat.com>
29536
29537         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29538         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29539
29540         maint.mk: correct a diagnostic
29541         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29542         in diagnostic; now use $prohibit.
29543
29544 2010-04-10  Bruno Haible  <address@hidden>
29545
29546         fchownat: Fix a C++ test error on Solaris 8.
29547         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29548         the function does not exist.
29549
29550 2010-04-10  Bruno Haible  <bruno@clisp.org>
29551
29552         vasnprintf: Add more tests.
29553         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29554         (test_function): Test converting an invalid wide string.
29555
29556         vasnprintf: Correct handling of unconvertible wide string arguments.
29557         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29558         VASNPRINTF.
29559         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29560         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29561         smaller than the expected maximum need for the directive. Set errno to
29562         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29563         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29565         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29566         * modules/vasnprintf (Files): Add m4/printf.m4.
29567         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29568
29569 2010-04-10  Bruno Haible  <bruno@clisp.org>
29570
29571         vasnprintf: Fix crash in %ls directive.
29572         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29573         string is passed as argument to %ls, with no precision and no width.
29574         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29575
29576 2010-04-10  Bruno Haible  <bruno@clisp.org>
29577
29578         vasnprintf: Fix multiple test failures on mingw.
29579         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29580         _snprintf, or snwprintf, not _snwprintf.
29581
29582 2010-04-10  Bruno Haible  <bruno@clisp.org>
29583
29584         write: Fix a C++ test error on mingw.
29585         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29586
29587 2010-04-10  Bruno Haible  <bruno@clisp.org>
29588
29589         vasnprintf test: Reduce code duplication.
29590         * tests/test-vasnprintf.c (test_function): New function, extracted from
29591         test_vasnprintf.
29592         (test_vasnprintf, test_asnprintf): Invoke it.
29593
29594 2010-04-10  Bruno Haible  <bruno@clisp.org>
29595
29596         strnlen: Fix warning in C++ mode on MacOS X.
29597         * lib/string.in.h (strnlen): Use the modern idiom.
29598         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29599         defining strnlen as a macro already in <config.h>.
29600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29601         REPLACE_STRNLEN.
29602         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29603         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29604
29605 2010-04-08  James Youngman  <jay@gnu.org>
29606
29607         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29608         the example.
29609
29610 2010-04-09  Jim Meyering  <meyering@redhat.com>
29611
29612         maint.mk: print better diagnostic when there is no $(_hv_file)
29613         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29614         announce that when $(_hv_file) (aka help-version) does not exist.
29615
29616         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29617         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29618         not try to interpret its random input bytes.  Jarno Rajahalme reported
29619         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29620         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29621         (mktempd_): Likewise, just in case.
29622
29623         ftruncate: add two years to projected module removal date: 2012
29624         * m4/ftruncate.m4: Adjust comments.
29625
29626         ftruncate: mark module as obsolete; even MinGW provides it, now
29627         * modules/ftruncate (Status): Obsolete.
29628         (Notice): Say that.
29629         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29630         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29631
29632 2010-04-08  Bruno Haible  <bruno@clisp.org>
29633
29634         Fix side effects from tests-related modules.
29635         * modules/dprintf-posix (Comment): New section.
29636         * modules/fprintf-posix (Comment): Likewise.
29637         * modules/obstack-printf-posix (Comment): Likewise.
29638         * modules/printf-posix (Comment): Likewise.
29639         * modules/snprintf-posix (Comment): Likewise.
29640         * modules/sprintf-posix (Comment): Likewise.
29641         * modules/vasnprintf-posix (Comment): Likewise.
29642         * modules/vasprintf-posix (Comment): Likewise.
29643         * modules/vdprintf-posix (Comment): Likewise.
29644         * modules/vfprintf-posix (Comment): Likewise.
29645         * modules/vprintf-posix (Comment): Likewise.
29646         * modules/vsnprintf-posix (Comment): Likewise.
29647         * modules/vsprintf-posix (Comment): Likewise.
29648         * modules/xprintf-posix (Comment): Likewise.
29649         * modules/xvasprintf-posix (Comment): Likewise.
29650         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29651         * modules/floorf-tests (Depends-on): Likewise.
29652         * modules/round-tests (Depends-on): Likewise.
29653         * modules/roundf-tests (Depends-on): Likewise.
29654         * modules/trunc-tests (Depends-on): Likewise.
29655         * modules/truncf-tests (Depends-on): Likewise.
29656         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29657         'fprintf-posix' module is not present.
29658         * tests/test-floorf2.c (check): Likewise.
29659         * tests/test-trunc2.c (check): Likewise.
29660         * tests/test-truncf2.c (check): Likewise.
29661         * tests/test-round2.c (equal): Likewise.
29662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29663
29664 2010-04-07  Karl Berry  <karl@gnu.org>
29665
29666         * config/srclist.txt,
29667         * config/srclistvars.sh,
29668         * config/srclist-update: doc fixes.
29669
29670 2010-04-07  Jim Meyering  <meyering@redhat.com>
29671
29672         maint.mk: add a PATH crosschecking syntax-check rule
29673         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29674         Useful if you use a test like the one in help-version (coreutils,
29675         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29676         printed by prog --version.
29677
29678 2010-04-06  Bruno Haible  <bruno@clisp.org>
29679
29680         Fix link error on mingw.
29681         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29682         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29683
29684 2010-04-06  Bruno Haible  <bruno@clisp.org>
29685
29686         Assume rmdir exists.
29687         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29688
29689 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29690
29691         doc: update users.txt
29692         * users.txt: Add gcal.
29693
29694 2010-04-06  Jim Meyering  <meyering@redhat.com>
29695
29696         init.sh: simply unset TMPDIR rather than risking env -i
29697         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29698         although it probably works fine on all Unix-based systems, some
29699         systems (Cygwin?) cannot tolerate a totally cleared environment.
29700         Suggestion from Eric Blake.
29701
29702 2010-04-06  Jim Meyering  <meyering@redhat.com>
29703
29704         init.sh: portability fix: use env's POSIX-specified -i option not -u
29705         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29706         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29707
29708 2010-04-05  Bruno Haible  <bruno@clisp.org>
29709
29710         btowc: Work around Cygwin 1.7.2 bug.
29711         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29712         does not map NUL to 0.
29713         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29714
29715 2010-04-05  Bruno Haible  <bruno@clisp.org>
29716
29717         Make the multithread modules work on Cygwin 1.7.2.
29718         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29719         imported symbols can be declared weak, so that it returns "no" on
29720         Cygwin 1.7.2.
29721
29722 2010-04-05  Bruno Haible  <bruno@clisp.org>
29723
29724         Use the module 'strncat'.
29725         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29726
29727         Tests for module 'strncat'.
29728         * modules/strncat-tests: New file.
29729         * tests/test-strncat.c: New file.
29730
29731         New module 'strncat'.
29732         * lib/string.in.h (strncat): New declaration.
29733         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29734         * m4/strncat.m4: New file, based on m4/memchr.m4.
29735         * modules/strncat: New file.
29736         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29737         is declared.
29738         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29739         REPLACE_STRNCAT.
29740         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29741         REPLACE_STRNCAT.
29742         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29743         module.
29744         * tests/test-string-c++.cc: Check signature of strncat.
29745
29746 2010-04-05  Jim Meyering  <meyering@redhat.com>
29747
29748         xstrtoumax-tests: convert to use init.sh
29749         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29750         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29751         Use Exit, not exit.
29752         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29753
29754         xstrtoimax-tests: convert to use init.sh
29755         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29756         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29757         Use Exit, not exit.
29758         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29759
29760 2010-04-05  Bruno Haible  <bruno@clisp.org>
29761
29762         sys_socket: Avoid #define replacements in C++ mode.
29763         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29764         warning to the function if possible, rather than #defining the symbol
29765         to a dysfunctional alias.
29766
29767 2010-04-05  Bruno Haible  <bruno@clisp.org>
29768
29769         fseeko: Fix C++ test error on mingw.
29770         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29771         gl_FUNC_FSEEKO.
29772         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29773         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29774         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29775         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29776
29777 2010-04-05  Bruno Haible  <bruno@clisp.org>
29778
29779         duplocale: Improve test output.
29780         * tests/test-duplocale.c (main): Print reason for skipped test.
29781
29782 2010-04-05  Bruno Haible  <bruno@clisp.org>
29783
29784         Assume rmdir exists.
29785         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29786         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29787
29788 2010-04-05  Bruno Haible  <bruno@clisp.org>
29789
29790         Fix link error on Solaris 8 with cc.
29791         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29792
29793 2010-04-05  Bruno Haible  <bruno@clisp.org>
29794
29795         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29796         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29797
29798 2010-04-05  Bruno Haible  <bruno@clisp.org>
29799
29800         vasprintf: Update documentation.
29801         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29802
29803 2010-04-05  Bruno Haible  <bruno@clisp.org>
29804
29805         ptsname: Improve test.
29806         * tests/test-ptsname.c (main): Also try the various master names of BSD
29807         systems.
29808
29809 2010-04-05  Bruno Haible  <bruno@clisp.org>
29810
29811         memchr: Avoid a possible C++ test error.
29812         * lib/string.in.h (memchr): Provide declaration if function is missing.
29813         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29814         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29816         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29817
29818 2010-04-05  Bruno Haible  <bruno@clisp.org>
29819
29820         strtok_r: Improve idiom.
29821         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29822         AC_LIBOBJ is used.
29823
29824 2010-04-05  Bruno Haible  <bruno@clisp.org>
29825
29826         strdup: Improve idiom.
29827         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29828         AC_LIBOBJ is used.
29829         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29830         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29831         when AC_LIBOBJ is used.
29832
29833 2010-04-05  Bruno Haible  <bruno@clisp.org>
29834
29835         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29836         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29837         don't set REPLACE_MBSINIT to 1.
29838         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29839         don't set REPLACE_MBRTOWC to 1.
29840         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29841         exist, don't set REPLACE_MBSRTOWCS to 1.
29842         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29843         exist, don't set REPLACE_MBSNRTOWCS to 1.
29844         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29845         don't set REPLACE_WCRTOMB to 1.
29846         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29847         exist, don't set REPLACE_WCSRTOMBS to 1.
29848         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29849         exist, don't set REPLACE_WCSNRTOMBS to 1.
29850
29851 2010-04-05  Bruno Haible  <bruno@clisp.org>
29852
29853         ldexpl: Improve idiom.
29854         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29855         make sure to set HAVE_DECL_LDEXPL to 0.
29856
29857 2010-04-05  Jim Meyering  <meyering@redhat.com>
29858
29859         xstrtol-tests: convert to use init.sh
29860         * modules/xstrtol-tests (Files): Add tests/init.sh.
29861         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29862         Use Exit, not exit.
29863         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29864
29865         atexit-tests: convert to use init.sh
29866         * modules/atexit-tests (Files): Add tests/init.sh.
29867         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29868         Use Exit, not exit.
29869         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29870
29871         init.sh: fix typo
29872         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29873
29874         init.sh: make it easier for a test script to write to the tty, ...
29875         when using automake's parallel-tests mode.
29876         * tests/init.sh (stderr_fileno_): Define overridable variable.
29877         (warn_): New function, to use it.
29878         (fail_, skip_, framework_failure_): Use warn_.
29879
29880 2010-04-04  Bruno Haible  <bruno@clisp.org>
29881
29882         btowc: Avoid warning.
29883         * lib/btowc.c: Include <stdlib.h>.
29884         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29885
29886 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29887             Bruno Haible  <bruno@clisp.org>
29888
29889         wchar: Port to NetBSD 1.5.
29890         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29891         * lib/wctype.in.h (WEOF): Likewise.
29892
29893 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29894             Bruno Haible  <bruno@clisp.org>
29895
29896         Port extended stdio to NetBSD 1.5.
29897         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29898         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29899         older.
29900
29901 2010-04-04  Bruno Haible  <bruno@clisp.org>
29902
29903         string: Remove unused substitution.
29904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29905         HAVE_DECL_STRERROR.
29906         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29907
29908 2010-04-04  Bruno Haible  <bruno@clisp.org>
29909
29910         strtod: Avoid a possible C++ test error.
29911         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29912         set REPLACE_STRTOD.
29913
29914 2010-04-04  Bruno Haible  <bruno@clisp.org>
29915
29916         strerror: Update documentation.
29917         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29918
29919 2010-04-04  Bruno Haible  <bruno@clisp.org>
29920
29921         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29922         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29923         _GL_CXXALIAS_SYS_CAST.
29924
29925 2010-04-04  Bruno Haible  <bruno@clisp.org>
29926
29927         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29928         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29929         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29930         REPLACE_FREXPL to 1.
29931         * doc/posix-functions/frexpl.texi: Update documentation.
29932
29933 2010-04-04  Bruno Haible  <bruno@clisp.org>
29934
29935         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29936         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29937
29938 2010-04-04  Bruno Haible  <bruno@clisp.org>
29939
29940         Implement nanosleep for native Windows.
29941         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29942
29943 2010-04-04  Bruno Haible  <bruno@clisp.org>
29944
29945         math: Fix some C++ test errors on Solaris 8.
29946         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29947
29948 2010-04-04  Bruno Haible  <bruno@clisp.org>
29949
29950         math: Fix some C++ test errors on Cygwin.
29951         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29952         truncl): Provide declaration if the system does not have it.
29953         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29954         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29955         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29956         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29957         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29958         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29959         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29960         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29961         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29962         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29963         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29964         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29965         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29966         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29967         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29968         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29970         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29971         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29972         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29973         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29974         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29975
29976 2010-04-04  Bruno Haible  <bruno@clisp.org>
29977
29978         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29979         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29980         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29981         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29982         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29983         * m4/isinf.m4 (gl_ISINF): Likewise.
29984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29985
29986 2010-04-04  Bruno Haible  <bruno@clisp.org>
29987
29988         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29989         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29990
29991 2010-04-04  Bruno Haible  <bruno@clisp.org>
29992
29993         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29994         * modules/tmpfile (configure.ac): Update.
29995
29996         tmpfile: Fix C++ test error on mingw.
29997         * lib/stdio.in.h (tmpfile): New declaration.
29998         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29999         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30000         * modules/tmpfile (Depends-on): Add stdio.
30001         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30002         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30003         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30004         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30005         REPLACE_TMPFILE.
30006         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30007
30008 2010-04-04  Bruno Haible  <bruno@clisp.org>
30009
30010         ioctl: Fix C++ test error on mingw.
30011         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30012         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30013         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30014
30015 2010-04-03  Bruno Haible  <bruno@clisp.org>
30016
30017         wcwidth: Fix C++ test error on mingw.
30018         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30020         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30021
30022 2010-04-03  Bruno Haible  <bruno@clisp.org>
30023
30024         nanosleep: Fix C++ test error on mingw.
30025         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30026         * lib/time.in.h (nanosleep): Use modern idiom.
30027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30028         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30029         REPLACE_NANOSLEEP to 1.
30030         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30031         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30032
30033 2010-04-03  Bruno Haible  <bruno@clisp.org>
30034
30035         strptime: Fix C++ test error on mingw.
30036         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30037         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30038         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30039         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30040         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30041         not REPLACE_STRPTIME.
30042         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30043         REPLACE_STRPTIME.
30044
30045 2010-04-03  Bruno Haible  <bruno@clisp.org>
30046
30047         timegm: Fix C++ test error on mingw.
30048         * lib/time.in.h (timegm): Use modern idiom.
30049         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30050         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30051         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30052         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30053
30054 2010-04-03  Bruno Haible  <bruno@clisp.org>
30055
30056         timegm: Assume declaration if function exists.
30057         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30058         if it exists. Don't clobber ac_cv_func_timegm.
30059
30060 2010-04-03  Bruno Haible  <bruno@clisp.org>
30061
30062         time_r: Fix C++ test error on mingw.
30063         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30064         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30065         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30066         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30067         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30068
30069 2010-04-03  Bruno Haible  <bruno@clisp.org>
30070
30071         time_r: Minor updates.
30072         * modules/time_r (Description): Mention the provided functions.
30073         * lib/time_r.c: Don't include <string.h>.
30074         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30075         * doc/posix-functions/localtime_r.texi: Likewise.
30076
30077 2010-04-03  Bruno Haible  <bruno@clisp.org>
30078
30079         time: Fix regression introduced on 2010-03-08.
30080         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30081         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30082
30083 2010-04-03  Jim Meyering  <meyering@redhat.com>
30084
30085         maint.mk: don't silently disable project-specific syntax-check rules
30086         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30087         that they need to convert their project-specific syntax-check rules
30088         to use the new _sc_search_regexp.
30089
30090 2010-04-03  Bruno Haible  <bruno@clisp.org>
30091
30092         fchdir: Fix regression introduced on 2010-03-08.
30093         * lib/unistd.in.h (fchdir): Fix declaration.
30094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30096         REPLACE_FCHDIR.
30097         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30098         REPLACE_FCHDIR.
30099
30100 2010-04-03  Bruno Haible  <bruno@clisp.org>
30101
30102         getpagesize: Fix C++ test error on mingw.
30103         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30104         system does not declare the function.
30105         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30106         declared.
30107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30108         HAVE_DECL_GETPAGESIZE.
30109         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30110
30111 2010-04-03  Bruno Haible  <bruno@clisp.org>
30112
30113         stdio: Make C++ tests work on mingw.
30114         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30115         does not declare the function.
30116
30117 2010-04-03  Bruno Haible  <bruno@clisp.org>
30118
30119         ftello: Fix C++ test error on mingw.
30120         * lib/stdio.in.h (ftello): Use modern idiom.
30121         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30122         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30123         is missing and that it needs to be replaced.
30124         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30126         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30127
30128 2010-04-03  Bruno Haible  <bruno@clisp.org>
30129
30130         fseeko: Fix C++ test error on mingw.
30131         * lib/stdio.in.h (fseeko): Use modern idiom.
30132         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30133         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30134         is missing and that it needs to be replaced.
30135         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30137         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30138
30139 2010-04-03  Bruno Haible  <bruno@clisp.org>
30140
30141         mkstemp: Fix C++ test error on mingw.
30142         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30144         function is missing and that it needs to be replaced.
30145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30146         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30147
30148 2010-04-03  Bruno Haible  <bruno@clisp.org>
30149
30150         stpncpy: Fix C++ test error on mingw.
30151         * lib/string.in.h (stpncpy): Use modern idiom.
30152         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30153         function is missing and that it needs to be replaced.
30154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30155         REPLACE_STPNCPY.
30156         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30157
30158 2010-04-03  Bruno Haible  <bruno@clisp.org>
30159
30160         sys_stat: Fix C++ test error on mingw.
30161         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30162         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30163
30164 2010-04-03  Bruno Haible  <bruno@clisp.org>
30165
30166         pty: Update doc.
30167         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30168
30169 2010-04-03  Bruno Haible  <bruno@clisp.org>
30170
30171         unistd: Fix C++ test error on mingw.
30172         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30173
30174 2010-04-03  Bruno Haible  <bruno@clisp.org>
30175
30176         Update doc regarding mingw.
30177         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30178         * doc/glibc-functions/login_tty.texi: Likewise.
30179         * doc/glibc-functions/forkpty.texi: Likewise.
30180
30181 2010-04-03  Bruno Haible  <bruno@clisp.org>
30182
30183         stdlib: Avoid compilation failure of c-strtold on mingw.
30184         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30185
30186 2010-04-03  Bruno Haible  <bruno@clisp.org>
30187
30188         locale: Make C++ tests work on Cygwin and mingw.
30189         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30190         cannot provide the function.
30191         Reported by Simon Josefsson.
30192
30193 2010-04-03  Bruno Haible  <bruno@clisp.org>
30194
30195         localename: Port to MacOS X 10.6.
30196         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30197         memory layout of the locales in MacOS X 10.6 as well.
30198         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30199
30200 2010-04-02  Bruno Haible  <bruno@clisp.org>
30201
30202         gnulib-tool: Ensure that long-running tests are executed last.
30203         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30204         running tests after the one for the other tests.
30205
30206 2010-04-02  Bruno Haible  <bruno@clisp.org>
30207
30208         gnulib-tool: Ensure the tests in the main directory are executed first.
30209         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30210         start with the current directory.
30211
30212 2010-04-02  Bruno Haible  <bruno@clisp.org>
30213
30214         Tests for module 'havelib', moved here from GNU gettext.
30215         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30216         modifications.
30217         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30218         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30219         with modifications.
30220         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30221         modifications.
30222         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30223         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30224         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30225         with modifications.
30226         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30227         with modifications.
30228         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30229         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30230         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30231         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30232         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30233         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30234         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30235         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30236         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30237         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30238         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30239         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30240         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30241         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30242         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30243         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30244         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30245         with modifications.
30246         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30247         with modifications.
30248         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30249         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30250         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30251         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30252         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30253         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30254         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30255         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30256         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30257         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30258         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30259         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30260         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30261         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30262         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30263         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30264         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30265         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30266         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30267         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30268         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30269         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30270         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30271         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30272         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30273         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30274         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30275         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30276         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30277         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30278         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30279         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30280         * tests/havelib/rpathx/rpathx.c: New file, from
30281         gettext/autoconf-lib-link.
30282         * tests/havelib/rpathx/Makefile.am: New file, from
30283         gettext/autoconf-lib-link.
30284         * tests/havelib/rpathx/configure.ac: New file, from
30285         gettext/autoconf-lib-link with modifications.
30286         * tests/havelib/rpathy/rpathy.c: New file, from
30287         gettext/autoconf-lib-link.
30288         * tests/havelib/rpathy/Makefile.am: New file, from
30289         gettext/autoconf-lib-link.
30290         * tests/havelib/rpathy/configure.ac: New file, from
30291         gettext/autoconf-lib-link with modifications.
30292         * tests/havelib/rpathz/rpathz.c: New file, from
30293         gettext/autoconf-lib-link.
30294         * tests/havelib/rpathz/Makefile.am: New file, from
30295         gettext/autoconf-lib-link.
30296         * tests/havelib/rpathz/configure.ac: New file, from
30297         gettext/autoconf-lib-link with modifications.
30298         * tests/havelib/rpathlx/usex.c: New file, from
30299         gettext/autoconf-lib-link.
30300         * tests/havelib/rpathlx/Makefile.am: New file, from
30301         gettext/autoconf-lib-link.
30302         * tests/havelib/rpathlx/configure.ac: New file, from
30303         gettext/autoconf-lib-link with modifications.
30304         * tests/havelib/rpathly/usey.c: New file, from
30305         gettext/autoconf-lib-link.
30306         * tests/havelib/rpathly/Makefile.am: New file, from
30307         gettext/autoconf-lib-link.
30308         * tests/havelib/rpathly/configure.ac: New file, from
30309         gettext/autoconf-lib-link with modifications.
30310         * tests/havelib/rpathlz/usez.c: New file, from
30311         gettext/autoconf-lib-link.
30312         * tests/havelib/rpathlz/Makefile.am: New file, from
30313         gettext/autoconf-lib-link.
30314         * tests/havelib/rpathlz/configure.ac: New file, from
30315         gettext/autoconf-lib-link with modifications.
30316         * tests/havelib/rpathlyx/usey.c: New file, from
30317         gettext/autoconf-lib-link.
30318         * tests/havelib/rpathlyx/Makefile.am: New file, from
30319         gettext/autoconf-lib-link.
30320         * tests/havelib/rpathlyx/configure.ac: New file, from
30321         gettext/autoconf-lib-link with modifications.
30322         * tests/havelib/rpathlzyx/usez.c: New file, from
30323         gettext/autoconf-lib-link.
30324         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30325         gettext/autoconf-lib-link.
30326         * tests/havelib/rpathlzyx/configure.ac: New file, from
30327         gettext/autoconf-lib-link with modifications.
30328         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30329         with modifications.
30330
30331 2010-04-02  Bruno Haible  <bruno@clisp.org>
30332
30333         gnulib-tool: Create distributed built sources also for the tests.
30334         * gnulib-tool (func_create_testdir): Also generate distributed built
30335         sources in the tests directory.
30336
30337 2010-04-02  Bruno Haible  <bruno@clisp.org>
30338
30339         gnulib-tool: Obey user's environment variables.
30340         * gnulib-tool (func_create_testdir): When creating built sources,
30341         respect the environment variables for autoconf, automake, etc. given by
30342         the user.
30343
30344 2010-04-02  Bruno Haible  <bruno@clisp.org>
30345
30346         gnulib-tool: Provide the value of --m4-base to modules.
30347         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30348         of gl_m4_base.
30349
30350 2010-04-02  Eric Blake  <eblake@redhat.com>
30351
30352         maint.mk: fix some fallout
30353         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30354         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30355
30356 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30357
30358         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30359         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30360         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30361         (sc_cast_of_x_alloc_return_value): Likewise.
30362         (sc_cast_of_alloca_return_value): Likewise.
30363         (sc_space_tab): Likewise.
30364         (sc_prohibit_atoi_atof): Likewise.
30365         (sc_prohibit_magic_number_exit): Likewise.
30366         (sc_error_exit_success): Likewise.
30367         (sc_file_system): Likewise.
30368         (sc_prohibit_have_config_h): Likewise.
30369         (sc_require_config_h): Likewise.
30370         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30371         (sc_obsolete_symbols): Likewise.
30372         (sc_changelog): Likewise.
30373         (sc_program_name): Likewise.
30374         (sc_the_the): Likewise.
30375         (sc_trailing_blank): Likewise.
30376         (sc_two_space_separator_in_usage): Likewise.
30377         (sc_useless_cpp_parens): Likewise.
30378         (sc_GPL_version): Likewise.
30379         (sc_GFDL_version): Likewise.
30380         (sc_texinfo_acronym): Likewise.
30381         (sc_prohibit_cvs_keyword): Likewise.
30382         (sc_prohibit_stat_st_blocks): Likewise.
30383         (sc_prohibit_S_IS_definition): Likewise.
30384         (sc_redundant_const): Likewise.
30385         (sc_makefile_TAB_only_indentation): Likewise.
30386         (sc_m4_quote_check): Likewise.
30387         (sc_makefile_path_separator_check): Likewise.
30388         (sc_copyright_check): Likewise.
30389         (sc_Wundef_boolean): Likewise.
30390         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30391
30392         maint.mk: match 0 or more whitespace-before-function-call '('
30393         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30394         that have zero or two-and-more spaces between the function name
30395         and the open parenthesis.
30396         (sc_error_message_warn_fatal): Likewise.
30397         (sc_error_message_uppercase): Likewise.
30398         (sc_error_message_period): Likewise.
30399
30400 2010-03-31  Eric Blake  <eblake@redhat.com>
30401
30402         maint.mk: check for [ as well as test
30403         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30404         Based on a libvirt report by Matthias Bolte.
30405
30406         gnumakefile: don't squelch _version output
30407         * top/GNUmakefile (_version): Create one-shot dependency rather
30408         than using $(shell) when version must be regenerated.
30409         (_autoreconf): Run verbosely, by default.
30410
30411         sys_time: avoid compiler warnings
30412         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30413         unconditional, fixing regression from 2010-03-29.
30414         Reported by Simon Josefsson.
30415
30416 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30417
30418         maint.mk: s/_header_without_use/_sc_header_without_use/
30419         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30420         (sc_prohibit_assert_without_use): Use the new name.
30421         (sc_prohibit_close_stream_without_use): Likewise.
30422         (sc_prohibit_getopt_without_use): Likewise.
30423         (sc_prohibit_quotearg_without_use): Likewise.
30424         (sc_prohibit_quote_without_use): Likewise.
30425         (sc_prohibit_long_options_without_use): Likewise.
30426         (sc_prohibit_inttostr_without_use): Likewise.
30427         (sc_prohibit_ignore_value_without_use): Likewise.
30428         (sc_prohibit_error_without_use): Likewise.
30429         (sc_prohibit_xalloc_without_use): Likewise.
30430         (sc_prohibit_hash_without_use): Likewise.
30431         (sc_prohibit_hash_pjw_without_use): Likewise.
30432         (sc_prohibit_safe_read_without_use): Likewise.
30433         (sc_prohibit_argmatch_without_use): Likewise.
30434         (sc_prohibit_canonicalize_without_use): Likewise.
30435         (sc_prohibit_root_dev_ino_without_use): Likewise.
30436         (sc_prohibit_openat_without_use): Likewise.
30437         (sc_prohibit_c_ctype_without_use): Likewise.
30438         (sc_prohibit_signal_without_use): Likewise.
30439         (sc_prohibit_intprops_without_use): Likewise.
30440
30441 2010-03-30  Eric Blake  <eblake@redhat.com>
30442
30443         maint: improve module indicators
30444         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30445         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30446         columns, and avoid extra macro expansion.
30447
30448         fdopendir: work around FreeBSD bug
30449         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30450         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30451         * modules/dirent (Makefile.am): Substitute it.
30452         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30453         declaration.
30454         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30455         fix.
30456         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30457
30458 2010-03-29  Bruno Haible  <bruno@clisp.org>
30459
30460         Emit #pragma system_header after the inclusion guard, not before.
30461         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30462         guard that spans the entire file, not before. This enables an
30463         optimization in GCC's preprocessor.
30464         * lib/ctype.in.h: Likewise.
30465         * lib/dirent.in.h: Likewise.
30466         * lib/errno.in.h: Likewise.
30467         * lib/float.in.h: Likewise.
30468         * lib/getopt.in.h: Likewise.
30469         * lib/iconv.in.h: Likewise.
30470         * lib/langinfo.in.h: Likewise.
30471         * lib/locale.in.h: Likewise.
30472         * lib/math.in.h: Likewise.
30473         * lib/netdb.in.h: Likewise.
30474         * lib/netinet_in.in.h: Likewise.
30475         * lib/pty.in.h: Likewise.
30476         * lib/sched.in.h: Likewise.
30477         * lib/se-selinux.in.h: Likewise.
30478         * lib/search.in.h: Likewise.
30479         * lib/spawn.in.h: Likewise.
30480         * lib/stdarg.in.h: Likewise.
30481         * lib/stdint.in.h: Likewise.
30482         * lib/string.in.h: Likewise.
30483         * lib/strings.in.h: Likewise.
30484         * lib/sys_file.in.h: Likewise.
30485         * lib/sys_ioctl.in.h: Likewise.
30486         * lib/sys_time.in.h: Likewise.
30487         * lib/sys_times.in.h: Likewise.
30488         * lib/sys_utsname.in.h: Likewise.
30489         * lib/sys_wait.in.h: Likewise.
30490         * lib/sysexits.in.h: Likewise.
30491         * lib/wctype.in.h: Likewise.
30492
30493 2010-03-28  James Youngman  <jay@gnu.org>
30494
30495         save-cwd: don't leak a file descriptor when the caller execs.
30496         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30497         saved file descriptor.
30498         * modules/save-cwd (Depends-on): Depend on cloexec.
30499
30500 2010-03-29  Bruno Haible  <bruno@clisp.org>
30501
30502         Remove vestiges of fts-lgpl module.
30503         * lib/fts_.h: Assume GNULIB_FTS is 1.
30504         * lib/fts.c: Likewise.
30505         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30506
30507 2010-03-28  Bruno Haible  <bruno@clisp.org>
30508
30509         Fix definition of tests witness macro.
30510         * gnulib-tool (func_import): Fix definition of witness macro.
30511
30512 2010-03-28  Bruno Haible  <bruno@clisp.org>
30513
30514         Fix ioctl's protoype on glibc systems.
30515         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30516         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30517         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30518         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30519         signature. If not, arrange to replace the ioctl function.
30520         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30521         REPLACE_IOCTL.
30522         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30523         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30524         Reported by Ludovic Courtès <ludo@gnu.org>.
30525
30526 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30527
30528         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30529         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30530         made it so grep -r --include=GLOB* ... did not work.
30531
30532 2010-03-26  Jim Meyering  <meyering@redhat.com>
30533             Eric Blake  <eblake@redhat.com>
30534
30535         maint.mk: prohibit use of test's -o and -a operators
30536         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30537
30538 2010-03-28  Bruno Haible  <bruno@clisp.org>
30539
30540         Remove unused GNULIB_XYZ macro definitions.
30541         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30542         invocation.
30543
30544 2010-03-28  Bruno Haible  <bruno@clisp.org>
30545
30546         Mark privileged tests modules.
30547         * modules/idpriv-drop-tests (Status): New section.
30548         * modules/idpriv-droptemp-tests (Status): New section.
30549
30550 2010-03-28  Bruno Haible  <bruno@clisp.org>
30551
30552         Split C++ tests into separate tests modules.
30553         * modules/dirent-c++-tests: New file, extracted from
30554         modules/dirent-tests.
30555         * modules/dirent-tests: Depend on it.
30556         * modules/fcntl-h-c++-tests: New file, extracted from
30557         modules/fcntl-h-tests.
30558         * modules/fcntl-h-tests: Depend on it.
30559         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30560         * modules/glob-tests: Depend on it.
30561         * modules/iconv-h-c++-tests: New file, extracted from
30562         modules/iconv-h-tests.
30563         * modules/iconv-h-tests: Depend on it.
30564         * modules/langinfo-c++-tests: New file, extracted from
30565         modules/langinfo-tests.
30566         * modules/langinfo-tests: Depend on it.
30567         * modules/locale-c++-tests: New file, extracted from
30568         modules/locale-tests.
30569         * modules/locale-tests: Depend on it.
30570         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30571         * modules/math-tests: Depend on it.
30572         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30573         * modules/pty-tests: Depend on it.
30574         * modules/search-c++-tests: New file, extracted from
30575         modules/search-tests.
30576         * modules/search-tests: Depend on it.
30577         * modules/signal-c++-tests: New file, extracted from
30578         modules/signal-tests.
30579         * modules/signal-tests: Depend on it.
30580         * modules/spawn-c++-tests: New file, extracted from
30581         modules/spawn-tests.
30582         * modules/spawn-tests: Depend on it.
30583         * modules/stdio-c++-tests: New file, extracted from
30584         modules/stdio-tests.
30585         * modules/stdio-tests: Depend on it.
30586         * modules/stdlib-c++-tests: New file, extracted from
30587         modules/stdlib-tests.
30588         * modules/stdlib-tests: Depend on it.
30589         * modules/string-c++-tests: New file, extracted from
30590         modules/string-tests.
30591         * modules/string-tests: Depend on it.
30592         * modules/sys_ioctl-c++-tests: New file, extracted from
30593         modules/sys_ioctl-tests.
30594         * modules/sys_ioctl-tests: Depend on it.
30595         * modules/sys_select-c++-tests: New file, extracted from
30596         modules/sys_select-tests.
30597         * modules/sys_select-tests: Depend on it.
30598         * modules/sys_socket-c++-tests: New file, extracted from
30599         modules/sys_socket-tests.
30600         * modules/sys_socket-tests: Depend on it.
30601         * modules/sys_stat-c++-tests: New file, extracted from
30602         modules/sys_stat-tests.
30603         * modules/sys_stat-tests: Depend on it.
30604         * modules/sys_time-c++-tests: New file, extracted from
30605         modules/sys_time-tests.
30606         * modules/sys_time-tests: Depend on it.
30607         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30608         * modules/time-tests: Depend on it.
30609         * modules/unistd-c++-tests: New file, extracted from
30610         modules/unistd-tests.
30611         * modules/unistd-tests: Depend on it.
30612         * modules/wchar-c++-tests: New file, extracted from
30613         modules/wchar-tests.
30614         * modules/wchar-tests: Depend on it.
30615         * modules/wctype-c++-tests: New file, extracted from
30616         modules/wctype-tests.
30617         * modules/wctype-tests: Depend on it.
30618         Reported by Simon Josefsson.
30619
30620 2010-03-28  Bruno Haible  <bruno@clisp.org>
30621
30622         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30623         * gnulib-tool (func_exists_module): New function, extracted from
30624         func_verify_module.
30625         (func_verify_module): Use it.
30626         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30627         'foo' only if 'foo' exists.
30628         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30629         module.
30630
30631 2010-03-28  Bruno Haible  <bruno@clisp.org>
30632
30633         gnulib-tool: Add support for special categories of tests.
30634         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30635         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30636         (func_usage): Document them.
30637         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30638         inc_unportable_tests, inc_all_tests): New variables.
30639         (func_acceptable): Consider these variables.
30640         (func_modules_transitive_closure): Make it work when the 'Status' field
30641         consists of multiple words.
30642         (func_import): Store and restore the values of inc_cxx_tests,
30643         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30644         inc_all_tests in gnulib-comp.m4.
30645         (func_create_testdir): Set inc_all_tests to true.
30646         * doc/gnulib.texi (Extra tests modules): New section.
30647         Suggested by Jim Meyering.
30648
30649 2010-03-28  Bruno Haible  <bruno@clisp.org>
30650
30651         ansi-c++-opt: Allow turning off the C++ build by default.
30652         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30653         gl_CXX_CHOICE_DEFAULT_NO is defined.
30654         Requested by Eric Blake.
30655
30656 2010-03-28  Bruno Haible  <bruno@clisp.org>
30657
30658         unistd: Avoid #define replacements in C++ mode.
30659         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30660         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30661         setsockopt, shutdown, select): In C++, attach a warning to the function
30662         if possible, rather than #defining the symbol to a dysfunctional alias.
30663         Reported by John W. Eaton <jwe@gnu.org>.
30664
30665 2010-03-28  Bruno Haible  <bruno@clisp.org>
30666
30667         Fix link errors on mingw.
30668         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30669         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30670         $(LIBSOCKET).
30671         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30672         $(LIBSOCKET).
30673
30674 2010-03-28  Bruno Haible  <bruno@clisp.org>
30675             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30676
30677         lib-ignore: Determine different options for different compilers.
30678         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30679         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30680         Add comments.
30681         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30682         * NEWS: Mention the change.
30683
30684 2010-03-27  Bruno Haible  <bruno@clisp.org>
30685
30686         Remove unused GNULIB_XYZ macro definitions.
30687         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30688         * modules/fseek (configure.ac): Likewise.
30689         * modules/ioctl (configure.ac): Likewise.
30690         * modules/open (configure.ac): Likewise.
30691         * modules/stdlib-safer (configure.ac): Likewise.
30692
30693 2010-03-27  Bruno Haible  <bruno@clisp.org>
30694
30695         Add a remark about certain modules.
30696         * modules/malloc (Comment): New section.
30697         * modules/realloc (Comment): Likewise.
30698         * modules/sigpipe (Comment): Likewise.
30699
30700 2010-03-27  Bruno Haible  <bruno@clisp.org>
30701
30702         Resolve conflict between the two kinds of module indicators.
30703         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30704         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30705         * modules/canonicalize (configure.ac): Invoke
30706         gl_MODULE_INDICATOR_FOR_TESTS.
30707         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30708         GNULIB_XYZ.
30709         * tests/test-dirent-c++.cc: Likewise.
30710         * tests/test-dirent-safer.c: Likewise.
30711         * tests/test-dup2.c: Likewise.
30712         * tests/test-fchdir.c: Likewise.
30713         * tests/test-fcntl-h-c++.cc: Likewise.
30714         * tests/test-getopt.c: Likewise.
30715         * tests/test-getopt.h: Likewise.
30716         * tests/test-langinfo-c++.cc: Likewise.
30717         * tests/test-locale-c++.cc: Likewise.
30718         * tests/test-math-c++.cc: Likewise.
30719         * tests/test-pty-c++.cc: Likewise.
30720         * tests/test-search-c++.cc: Likewise.
30721         * tests/test-signal-c++.cc: Likewise.
30722         * tests/test-spawn-c++.cc: Likewise.
30723         * tests/test-stdio-c++.cc: Likewise.
30724         * tests/test-stdlib-c++.cc: Likewise.
30725         * tests/test-string-c++.cc: Likewise.
30726         * tests/test-sys_ioctl-c++.cc: Likewise.
30727         * tests/test-sys_select-c++.cc: Likewise.
30728         * tests/test-sys_socket-c++.cc: Likewise.
30729         * tests/test-sys_stat-c++.cc: Likewise.
30730         * tests/test-sys_time-c++.cc: Likewise.
30731         * tests/test-time-c++.cc: Likewise.
30732         * tests/test-unistd-c++.cc: Likewise.
30733         * tests/test-wchar-c++.cc: Likewise.
30734         * tests/uninorm/test-u8-nfc.c: Likewise.
30735         * tests/uninorm/test-u8-nfd.c: Likewise.
30736         * tests/uninorm/test-u8-nfkc.c: Likewise.
30737         * tests/uninorm/test-u8-nfkd.c: Likewise.
30738         * tests/uninorm/test-u16-nfc.c: Likewise.
30739         * tests/uninorm/test-u16-nfd.c: Likewise.
30740         * tests/uninorm/test-u16-nfkc.c: Likewise.
30741         * tests/uninorm/test-u16-nfkd.c: Likewise.
30742         * tests/uninorm/test-u32-nfc.c: Likewise.
30743         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30744         * tests/uninorm/test-u32-nfd.c: Likewise.
30745         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30746         * tests/uninorm/test-u32-nfkc.c: Likewise.
30747         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30748         * tests/uninorm/test-u32-nfkd.c: Likewise.
30749         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30750         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30751
30752 2010-03-27  Bruno Haible  <bruno@clisp.org>
30753
30754         Distinguish two kinds of module indicators.
30755         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30756         gl_MODULE_INDICATOR.
30757         (gl_MODULE_INDICATOR): New macro.
30758         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30759         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30760         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30761         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30762         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30763         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30764         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30765         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30766         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30767         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30768         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30769         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30771         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30772         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30773         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30774         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30775         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30776         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30777         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30778         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30779         * modules/cloexec (configure.ac): Likewise.
30780         * modules/getopt-gnu (configure.ac): Likewise.
30781         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30782         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30783         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30784         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30785
30786 2010-03-27  Bruno Haible  <bruno@clisp.org>
30787
30788         New module description field 'Comment'.
30789         * gnulib-tool: New option --extract-comment.
30790         (func_usage): Document it.
30791         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30792         (func_get_comment): New function.
30793         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30794
30795 2010-03-27  Bruno Haible  <bruno@clisp.org>
30796
30797         Addendum to 2010-02-07 commit.
30798         * gnulib-tool (func_usage): Document --extract-applicability option.
30799
30800 2010-03-27  Bruno Haible  <bruno@clisp.org>
30801
30802         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30803         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30804         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30805         rather than link errors.
30806
30807 2010-03-27  Bruno Haible  <bruno@clisp.org>
30808
30809         Avoid side effects from tests-related modules on the compilation of lib.
30810         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30811         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30812         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30813         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30814         macro.
30815         (func_import): Define a witness macro. Assign it a value that depends
30816         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30817         tests-related modules.
30818         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30819         Reported by Jim Meyering.
30820
30821 2010-03-27  Bruno Haible  <bruno@clisp.org>
30822
30823         Factorize common .m4 code.
30824         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30825         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30826         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30827         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30828         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30829         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30830         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30831         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30832         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30833         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30834         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30835         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30836         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30837         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30838         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30839         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30840         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30841         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30843         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30844         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30845         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30846         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30847         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30848         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30849         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30850         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30851         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30852         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30853         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30854         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30855         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30856
30857 2010-03-27  Bruno Haible  <bruno@clisp.org>
30858
30859         Fix a compilation error on Cygwin with g++ >= 4.3.
30860         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30861         if it is undefined or if we alias it to chmod.
30862         (lstat): Don't warn about the use of this function if it is undefined
30863         or if we alias it to stat.
30864         Reported by Simon Josefsson.
30865
30866 2010-03-27  Bruno Haible  <bruno@clisp.org>
30867
30868         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30869         * modules/getlogin (configure.ac): Update.
30870
30871         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30872         * modules/getlogin_r (configure.ac): Update.
30873
30874         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30875         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30876         * modules/inet_ntop (configure.ac): Update.
30877
30878         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30879         * modules/inet_pton (configure.ac): Update.
30880
30881         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30882         * modules/mbslen (configure.ac): Update.
30883
30884         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30885         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30886         * modules/forkpty (configure.ac): Update.
30887         * modules/openpty (configure.ac): Update.
30888
30889 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30890
30891         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30892         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30893
30894 2010-03-25  Eric Blake  <eblake@redhat.com>
30895
30896         maint: use pragma consistently across replacement headers
30897         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30898         * lib/dirent.in.h (system_header): Likewise.
30899         * lib/errno.in.h (system_header): Likewise.
30900         * lib/float.in.h (system_header): Likewise.
30901         * lib/getopt.in.h (system_header): Likewise.
30902         * lib/iconv.in.h (system_header): Likewise.
30903         * lib/inttypes.in.h (system_header): Likewise.
30904         * lib/langinfo.in.h (system_header): Likewise.
30905         * lib/locale.in.h (system_header): Likewise.
30906         * lib/math.in.h (system_header): Likewise.
30907         * lib/netdb.in.h (system_header): Likewise.
30908         * lib/netinet_in.in.h (system_header): Likewise.
30909         * lib/pty.in.h (system_header): Likewise.
30910         * lib/sched.in.h (system_header): Likewise.
30911         * lib/se-selinux.in.h (system_header): Likewise.
30912         * lib/search.in.h (system_header): Likewise.
30913         * lib/spawn.in.h (system_header): Likewise.
30914         * lib/stdarg.in.h (system_header): Likewise.
30915         * lib/stdint.in.h (system_header): Likewise.
30916         * lib/string.in.h (system_header): Likewise.
30917         * lib/strings.in.h (system_header): Likewise.
30918         * lib/sys_file.in.h (system_header): Likewise.
30919         * lib/sys_ioctl.in.h (system_header): Likewise.
30920         * lib/sys_socket.in.h (system_header): Likewise.
30921         * lib/sys_times.in.h (system_header): Likewise.
30922         * lib/sys_utsname.in.h (system_header): Likewise.
30923         * lib/sys_wait.in.h (system_header): Likewise.
30924         * lib/sysexits.in.h (system_header): Likewise.
30925         * lib/unistd.in.h (system_header): Likewise.
30926         * lib/wctype.in.h (system_header): Likewise.
30927
30928         arpa/inet: fix mingw compilation warning
30929         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30930         Reported by Matthew Bolte.
30931
30932 2010-03-25  Bruno Haible  <bruno@clisp.org>
30933
30934         Avoid collision between gnulib wrapper and libintl wrapper.
30935         * lib/printf.c (printf): Don't define if a printf wrapper is already
30936         defined in intl/printf.c.
30937         Reported by Michel Boaventura <michel@michelboaventura.com>.
30938
30939 2010-03-25  Bruno Haible  <bruno@clisp.org>
30940
30941         Use ANSI C.
30942         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30943
30944 2010-03-25  Bruno Haible  <bruno@clisp.org>
30945
30946         Minor formatting changes.
30947         * lib/acosl.c: Insert space before function argument list.
30948         * lib/argz.c: Likewise.
30949         * lib/asinl.c: Likewise.
30950         * lib/expl.c: Likewise.
30951         * lib/gen-uni-tables.c: Likewise.
30952         * lib/gettext.h: Likewise.
30953         * lib/glthread/lock.h: Likewise.
30954         * lib/tanl.c: Likewise.
30955         * lib/uniname/uniname.c: Likewise.
30956         * tests/test-idpriv-drop.c: Likewise.
30957         * tests/test-idpriv-droptemp.c: Likewise.
30958         * tests/test-lock.c: Likewise.
30959         * tests/test-tls.c: Likewise.
30960         * lib/argp-help.c: Insert space before function-like macro argument
30961         list.
30962         * lib/memcmp.c: Likewise.
30963         * tests/test-base64.c: Likewise.
30964         * lib/localename.c: Insert space before sizeof's argument list.
30965         * lib/safe-alloc.h: Likewise.
30966         * lib/file-set.h: Insert space before macro argument list.
30967         * tests/test-argp.c: Likewise.
30968         * lib/argp-namefrob.h: Insert space before function parameter list.
30969         * lib/getaddrinfo.c: Likewise.
30970         * lib/netdb.in.h: Likewise.
30971         * lib/parse-duration.h: Likewise.
30972         * lib/parse-duration.c: Likewise.
30973         * lib/poll.c: Likewise.
30974         * lib/select.c: Likewise.
30975         * lib/trim.h: Likewise.
30976         * tests/test-usleep.c: Likewise.
30977         * lib/ldexpl.c: Insert space before function parameter list and before
30978         function argument list.
30979         * lib/logl.c: Likewise.
30980         * lib/sqrtl.c: Likewise.
30981         * lib/trim.c: Likewise.
30982         * lib/cosl.c: Use GNU style indentation. Insert space before function
30983         argument list.
30984         * lib/sinl.c: Likewise.
30985         * lib/tsearch.c: Insert space after 'for'.
30986         Reported by Jim Meyering.
30987
30988 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30989
30990         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30991         config header before grepping, as it's not present before
30992         autoreconf/configure are run.  Reported by Simon Josefsson.
30993
30994 2010-03-23  Bruno Haible  <bruno@clisp.org>
30995
30996         pt_chown: Make it work with automake < 1.11.
30997         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30998         Reported by Simon Josefsson.
30999
31000 2010-03-23  Bruno Haible  <bruno@clisp.org>
31001
31002         pt_chown: Don't depend on GPLed modules.
31003         * lib/pt_chown.c: Don't include idpriv.h.
31004         (main): Don't drop privileges.
31005         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31006         Reported by Simon Josefsson.
31007
31008 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31009
31010         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31011         suggestions from karl@freefriends.org (Karl Berry).
31012
31013 2010-03-22  Eric Blake  <eblake@redhat.com>
31014
31015         gethostname: further tweaks
31016         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31017         are overriding gethostname.
31018         Suggested by Bruno Haible.
31019
31020 2010-03-21  Bruno Haible  <bruno@clisp.org>
31021
31022         Fix comments.
31023         * lib/forkpty.c (rpl_forkpty): Fix comment.
31024         * lib/openpty.c (rpl_openpty): Likewise.
31025         Reported by Eric Blake.
31026
31027 2010-03-22  Eric Blake  <eblake@redhat.com>
31028
31029         gethostname: fix build on mingw
31030         * lib/unistd.in.h (includes): Work around fact that mingw
31031         <winsock2.h> re-includes <unistd.h>, by avoiding any
31032         redeclarations if we are being included by <winsock2.h>.
31033         Reported by Matthias Bolte.
31034
31035 2010-03-21  Bruno Haible  <bruno@clisp.org>
31036
31037         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31038         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31039         modifications.
31040         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31041         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31042         provide the replacement.
31043         * modules/forkpty (Depends-on): Add openpty, login_tty.
31044         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31045         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31046         * doc/glibc-functions/forkpty.texi: More supported platforms.
31047         * config/srclist.txt: Add forkpty.c (commented).
31048
31049 2010-03-21  Bruno Haible  <bruno@clisp.org>
31050
31051         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31052         (Makefile.am): Verify that PTY_LIB is defined.
31053
31054         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31055
31056 2010-03-21  Bruno Haible  <bruno@clisp.org>
31057
31058         Tests for module 'login_tty'.
31059         * modules/login_tty-tests: New file.
31060         * tests/test-login_tty.c: New file.
31061
31062         New module 'login_tty'.
31063         * lib/login_tty.c: New file.
31064         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31065         * modules/login_tty: New file.
31066         * doc/glibc-functions/login_tty.texi: Mention the new module.
31067
31068 2010-03-21  Bruno Haible  <bruno@clisp.org>
31069
31070         login_tty: Documentation.
31071         * doc/glibc-functions/login_tty.texi: New file.
31072         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31073
31074 2010-03-21  Bruno Haible  <bruno@clisp.org>
31075
31076         pty: Consistent macro naming.
31077         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31078         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31079         * modules/pty (configure.ac): Update.
31080
31081 2010-03-21  Bruno Haible  <bruno@clisp.org>
31082
31083         Tests for openpty: Make stricter.
31084         * tests/test-openpty.c (main): Add test of canonical processing and
31085         erase.
31086         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31087
31088         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31089         * lib/openpty.c (openpty): New replacement function.
31090         * lib/pty.in.h: Include <termios.h>.
31091         (openpty): Update declaration. Add comments.
31092         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31093         is not declared, arrange to provide the replacement. Check for _getpty
31094         and posix_openpt.
31095         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31096         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31097         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31098         * modules/pty-tests (test_pty_c___LDADD): New variable.
31099         * doc/glibc-functions/openpty.texi: More supported platforms.
31100
31101 2010-03-21  Bruno Haible  <bruno@clisp.org>
31102
31103         setenv: Tweaks.
31104         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31105         the test program.
31106         * doc/posix-functions/setenv.texi: Update platforms list.
31107
31108 2010-03-21  Bruno Haible  <bruno@clisp.org>
31109
31110         New module 'unlockpt'.
31111         * lib/unlockpt.c: New file, from glibc with modifications.
31112         * m4/unlockpt.m4: New file.
31113         * modules/unlockpt: New file.
31114         * lib/stdlib.in.h (unlockpt): New declaration.
31115         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31116         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31117         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31118         HAVE_UNLOCKPT.
31119         * doc/posix-functions/unlockpt.texi: Mention the new module.
31120         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31121         * config/srclist.txt: Add unlockpt.c (commented).
31122
31123 2010-03-21  Jim Meyering  <meyering@redhat.com>
31124
31125         maint.mk: prohibit inclusion of "intprops.h" without use
31126         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31127
31128 2010-03-21  Bruno Haible  <bruno@clisp.org>
31129
31130         New module 'grantpt'.
31131         * lib/grantpt.c: New file, from glibc with modifications.
31132         * m4/grantpt.m4: New file.
31133         * modules/grantpt: New file.
31134         * lib/stdlib.in.h (grantpt): New declaration.
31135         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31136         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31137         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31138         HAVE_GRANTPT.
31139         * doc/posix-functions/grantpt.texi: Mention the new module.
31140         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31141         * config/srclist.txt: Add grantpt.c (commented).
31142
31143 2010-03-21  Bruno Haible  <bruno@clisp.org>
31144
31145         New module 'pt_chown'.
31146         * lib/pt_chown.c: New file, from glibc with modifications.
31147         * lib/pty-private.h: New file, from glibc with modifications.
31148         * modules/pt_chown: New file.
31149         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31150
31151 2010-03-21  Bruno Haible  <bruno@clisp.org>
31152
31153         Tests for module 'ptsname'.
31154         * modules/ptsname-tests: New file.
31155         * tests/test-ptsname.c: New file.
31156
31157         New module 'ptsname'.
31158         * lib/ptsname.c: New file, from glibc with modifications.
31159         * m4/ptsname.m4: New file.
31160         * modules/ptsname: New file.
31161         * lib/stdlib.in.h (ptsname): New declaration.
31162         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31163         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31164         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31165         HAVE_PTSNAME.
31166         * doc/posix-functions/ptsname.texi: Mention the new module.
31167         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31168         * config/srclist.txt: Add ptsname.c (commented).
31169
31170 2010-03-21  Bruno Haible  <bruno@clisp.org>
31171
31172         Tests for module 'ttyname_r'.
31173         * modules/ttyname_r-tests: New file.
31174         * tests/test-ttyname_r.c: New file.
31175
31176         New module 'ttyname_r'.
31177         * lib/ttyname_r.c: New file.
31178         * m4/ttyname_r.m4: New file.
31179         * modules/ttyname_r: New file.
31180         * lib/unistd.in.h (ttyname_r): New declaration.
31181         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31182         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31183         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31184         HAVE_TTYNAME_R.
31185         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31186         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31187
31188 2010-03-20  Bruno Haible  <bruno@clisp.org>
31189
31190         signal: Undefine macro definitions in C++ mode.
31191         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31192         sigfillset): Undefine macro definitions from the system header in C++
31193         mode.
31194         Reported by John W. Eaton <jwe@gnu.org>.
31195
31196 2010-03-20  Bruno Haible  <bruno@clisp.org>
31197
31198         Ensure no #include statements inside extern "C" { ... }.
31199         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31200         contain #include statements.
31201         * lib/time.in.h: Likewise.
31202
31203 2010-03-20  Bruno Haible  <bruno@clisp.org>
31204
31205         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31206         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31207         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31208         Reported by John W. Eaton <jwe@gnu.org>.
31209
31210 2010-03-20  Bruno Haible  <bruno@clisp.org>
31211
31212         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31213         Reported by Jim Meyering.
31214
31215 2010-03-20  Bruno Haible  <bruno@clisp.org>
31216
31217         pipe: Set errno upon failure.
31218         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31219         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31220         errno value in error message.
31221
31222 2010-03-20  Bruno Haible  <bruno@clisp.org>
31223             Jim Meyering  <meyering@redhat.com>
31224
31225         lchown: Avoid "unused variable" warning.
31226         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31227
31228 2010-03-20  Bruno Haible  <bruno@clisp.org>
31229
31230         Work around unlink() bug on MacOS X 10.5.6.
31231         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31232         attempting to unlink a parent directory.
31233         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31234         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31235         activate for the replacement function.
31236         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31237
31238 2010-03-20  Bruno Haible  <bruno@clisp.org>
31239
31240         Fix link errors on Solaris 8.
31241         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31242         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31243
31244 2010-03-19  Jim Meyering  <meyering@redhat.com>
31245
31246         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31247         The _LIBC implementation of build_range_exp correctly honors the
31248         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31249         However, the non-_LIBC implementation would ignore that syntax-bit
31250         flag and return REG_ERANGE unconditionally.
31251         This change makes it honor that flag.
31252         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31253         Make two pointer parameters "const".
31254         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31255         (parse_bracket_exp): Update caller.
31256
31257         regex.m4: correct the reversed range endpoint ([b-a]) test
31258         * m4/regex.m4: When requiring that [b-a] evoke failure,
31259         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31260         test pass once again for x86-based systems.
31261
31262 2010-03-19  Bruno Haible  <bruno@clisp.org>
31263
31264         scandir: Fix link error on Solaris 8.
31265         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31266         macros.
31267
31268 2010-03-19  Bruno Haible  <bruno@clisp.org>
31269
31270         getusershell: Fix documentation.
31271         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31272         module.
31273         * doc/glibc-functions/setusershell.texi: Likewise.
31274
31275         getusershell: Provide declaration, missing on Solaris 9.
31276         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31277         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31278         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31279         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31281         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31282         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31283         HAVE_GETUSERSHELL.
31284         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31285
31286 2010-03-19  Bruno Haible  <bruno@clisp.org>
31287
31288         wctype: Provide iswblank function.
31289         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31290         exists and is fine.
31291         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31292         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31293         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31294         * doc/posix-functions/iswblank.texi: Update.
31295
31296 2010-03-19  Bruno Haible  <bruno@clisp.org>
31297
31298         Tests of module 'pty' in C++ mode.
31299         * modules/pty-tests: New file.
31300         * tests/test-pty-c++.cc: New file.
31301         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31302
31303 2010-03-19  Eric Blake  <eblake@redhat.com>
31304
31305         logb: fix documentation
31306         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31307         1.5 declaration bug.
31308
31309         forkpty, openpty: prefer glibc's const-safe prototype
31310         * lib/forkpty.c (rpl_forkpty): New file.
31311         * lib/openpty.c (rpl_openpty): Likewise.
31312         * modules/forkpty (Files): Distribute it.
31313         * modules/openpty (Files): Likewise.
31314         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31315         check...
31316         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31317         replacement for for non-const BSD signature.
31318         * modules/pty (Makefile.am): Substitute witnesses.
31319         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31320         * tests/test-forkpty.c: Update signature check.
31321         * tests/test-openpty.c: Likewise.
31322         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31323         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31324
31325         forkpty, openpty: split functions into new modules
31326         * modules/pty (Makefile.am): Substitute new witnesses.
31327         (Libraries): Move library detection...
31328         * modules/forkpty: ...into new module.
31329         * modules/openpty: Another new module.
31330         * modules/pty-tests: Rename and split...
31331         * modules/forkpty-tests: ...to this...
31332         * modules/openpty-tests: ...and this.
31333         * tests/test-pty.c: Rename and split...
31334         * tests/test-forkpty.c: ...to this...
31335         * tests/test-openpty.c: ...and this.
31336         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31337         (gl_PTY): Split library searching...
31338         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31339         (gl_FORKPTY, gl_OPENPTY): New macros.
31340         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31341         * NEWS: Mention the split.
31342         * MODULES.html.sh (Misc): Document the modules.
31343         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31344         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31345
31346         pty: improve replacement header
31347         * lib/pty.in.h: New file.
31348         * modules/pty (Files): Ship it.
31349         (Makefile.am): Always build replacement.
31350         * m4/pty.m4: Rename...
31351         * m4/pty_h.m4: ...to this.
31352         (gl_PTY): Modernize setting of witness macros; update check of
31353         forkpty to take proper advantage of cache.
31354         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31355
31356         getopt: avoid compiler warning
31357         * lib/getopt.c (attribute_hidden): Remove unused macro.
31358
31359 2010-03-18  Bruno Haible  <bruno@clisp.org>
31360
31361         Fix link errors on Solaris 8.
31362         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31363         * modules/search-tests (test_search_c___LDADD): Likewise.
31364         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31365         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31366         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31367         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31368         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31369         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31370         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31371
31372 2010-03-18  Bruno Haible  <bruno@clisp.org>
31373
31374         Fix bug introduced on 2010-03-14.
31375         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31376         (gl_SPAWN_H): Require it.
31377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31378         Reported by Simon Josefsson.
31379
31380 2010-03-18  Bruno Haible  <bruno@clisp.org>
31381
31382         Fix typo introduced on 2009-12-31.
31383         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31384         posix_spawn_file_actions_adddup2.
31385
31386 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31387         and Eric Blake  <eblake@redhat.com>
31388
31389         test-vc-list-files-git: make more robust
31390         * tests/test-vc-list-files-git.sh: Unset problematic environment
31391         variables.  Chain commands together.
31392
31393 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31394
31395         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31396         `AC_CHECK_DECL' invocation.
31397
31398 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31399
31400         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31401         appears before executable statements. Suggested by Petr Sumbera
31402         <Petr.Sumbera@Sun.COM>.
31403
31404 2010-03-14  Bruno Haible  <bruno@clisp.org>
31405
31406         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31407         portability problems. Instead use a simpler test.
31408         (main): Check that invalid arguments are rejected only on Linux.
31409
31410 2010-03-14  Bruno Haible  <bruno@clisp.org>
31411
31412         Fix bug introduced on 2009-12-31.
31413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31414         gl_PREREQ_SYS_H_WINSOCK2 always.
31415         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31416         SYS_SOCKET_H variable.
31417         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31418         Update comments.
31419         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31420         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31421         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31422         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31423         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31424
31425 2010-03-14  Bruno Haible  <bruno@clisp.org>
31426
31427         Fix values returned by sinl, cosl.
31428         * lib/trigl.h: Add specification comments.
31429         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31430         that combines the values from the precomputed table with the values of
31431         the Chebyshev polynomials.
31432
31433 2010-03-14  Bruno Haible  <bruno@clisp.org>
31434
31435         Fix compilation error when modules 'posix_spawn[p]' are not used.
31436         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31438
31439 2010-03-14  Bruno Haible  <bruno@clisp.org>
31440
31441         Fix compilation error on mingw when module 'time_r' is not used.
31442         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31443         is 1.
31444         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31445         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31446         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31447         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31448
31449 2010-03-14  Bruno Haible  <bruno@clisp.org>
31450
31451         Fix compilation error with Sun C.
31452         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31453         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31454         instead of GCC specific ULONG_LONG_MAX.
31455         * lib/xstrtoll.c: Likewise.
31456         * lib/xstrtoull.c: Likewise.
31457
31458 2010-03-13  Bruno Haible  <bruno@clisp.org>
31459
31460         Allow the user to disable C++ code and tests.
31461         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31462         (gl_PROG_ANSI_CXX): Require it.
31463
31464 2010-03-13  Bruno Haible  <bruno@clisp.org>
31465
31466         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31467         cases.
31468
31469 2010-03-13  Bruno Haible  <bruno@clisp.org>
31470
31471         Test that gnulib does not break the standard C++ headers.
31472         * tests/test-locale-c++2.cc: New file.
31473         * modules/locale-tests (Files): Add it.
31474         (Makefile.am): Compile it for test-locale-c++.
31475         * tests/test-math-c++2.cc: New file.
31476         * modules/math-tests (Files): Add it.
31477         (Makefile.am): Compile it for test-math-c++.
31478         * tests/test-signal-c++2.cc: New file.
31479         * modules/signal-tests (Files): Add it.
31480         (Makefile.am): Compile it for test-signal-c++.
31481         * tests/test-stdio-c++2.cc: New file.
31482         * modules/stdio-tests (Files): Add it.
31483         (Makefile.am): Compile it for test-stdio-c++.
31484         * tests/test-stdlib-c++2.cc: New file.
31485         * modules/stdlib-tests (Files): Add it.
31486         (Makefile.am): Compile it for test-stdlib-c++.
31487         * tests/test-string-c++2.cc: New file.
31488         * modules/string-tests (Files): Add it.
31489         (Makefile.am): Compile it for test-string-c++.
31490         * tests/test-time-c++2.cc: New file.
31491         * modules/time-tests (Files): Add it.
31492         (Makefile.am): Compile it for test-time-c++.
31493         Reported by John W. Eaton <jwe@gnu.org>.
31494
31495 2010-03-13  Bruno Haible  <bruno@clisp.org>
31496
31497         * gnulib-tool (func_usage): Clarify which options are available for
31498         --create-testdir and --create-megatestdir.
31499
31500 2010-03-13  Bruno Haible  <bruno@clisp.org>
31501
31502         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31503         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31504         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31505         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31506         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31507         when appropriate.
31508         Reported by Jim Meyering.
31509
31510 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31511
31512         * gnulib-tool (func_import): Explain origin of code.
31513
31514 2010-03-12  Bruno Haible  <bruno@clisp.org>
31515
31516         Fix problem with automake's definition of CXXLINK.
31517         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31518         Reported by Simon Josefsson and Ludovic Courtès.
31519
31520 2010-03-12  Bruno Haible  <bruno@clisp.org>
31521
31522         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31523         stable releases.
31524
31525 2010-03-11  Bruno Haible  <bruno@clisp.org>
31526
31527         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31528         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31529         whether the system provides one variant or multiple variants of the
31530         function.
31531         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31532         C++ compilers.
31533         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31534         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31535         Reported by Jim Meyering.
31536
31537 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31538
31539         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31540
31541 2010-03-08  Bruno Haible  <bruno@clisp.org>
31542
31543         gnulib-tool: Add support for --libtool in --create-testdir.
31544         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31545         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31546
31547 2010-03-08  Eric Blake  <eblake@redhat.com>
31548
31549         gnulib-tool.texi: mention possibility of git submodule
31550         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31551         submodules.
31552         * doc/.gitignore: Ignore another generated file.
31553
31554 2010-03-08  Karl Berry  <karl@gnu.org>
31555
31556         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31557         of committing gnulib files while skipping others.
31558
31559 2010-03-07  Bruno Haible  <bruno@clisp.org>
31560
31561         Tests of module 'wctype' in C++ mode.
31562         * tests/test-wctype-c++.cc: New file.
31563         * modules/wctype-tests (Files): Add it and tests/signature.h.
31564         (Depends-on): Add ansi-c++-opt.
31565         (Makefile.am): Arrange to compile and run test-wctype-c++.
31566
31567         Tests of module 'wchar' in C++ mode.
31568         * tests/test-wchar-c++.cc: New file.
31569         * modules/wchar-tests (Files): Add it and tests/signature.h.
31570         (Depends-on): Add ansi-c++-opt.
31571         (Makefile.am): Arrange to compile and run test-wchar-c++.
31572         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31573         gl_MODULE_INDICATOR.
31574
31575         Tests of module 'unistd' in C++ mode.
31576         * tests/test-unistd-c++.cc: New file.
31577         * modules/unistd-tests (Files): Add it and tests/signature.h.
31578         (Depends-on): Add ansi-c++-opt.
31579         (Makefile.am): Arrange to compile and run test-unistd-c++.
31580         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31581         gl_MODULE_INDICATOR.
31582
31583         Tests of module 'time' in C++ mode.
31584         * tests/test-time-c++.cc: New file.
31585         * modules/time-tests (Files): Add it and tests/signature.h.
31586         (Depends-on): Add ansi-c++-opt.
31587         (Makefile.am): Arrange to compile and run test-time-c++.
31588         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31589
31590         Tests of module 'sys_time' in C++ mode.
31591         * tests/test-sys_time-c++.cc: New file.
31592         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31593         (Depends-on): Add ansi-c++-opt.
31594         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31595         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31596         gl_MODULE_INDICATOR.
31597
31598         Tests of module 'sys_stat' in C++ mode.
31599         * tests/test-sys_stat-c++.cc: New file.
31600         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31601         (Depends-on): Add ansi-c++-opt.
31602         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31603         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31604         gl_MODULE_INDICATOR.
31605
31606         Tests of module 'sys_socket' in C++ mode.
31607         * tests/test-sys_socket-c++.cc: New file.
31608         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31609         (Depends-on): Add ansi-c++-opt.
31610         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31611         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31612         gl_MODULE_INDICATOR.
31613
31614         Tests of module 'sys_select' in C++ mode.
31615         * tests/test-sys_select-c++.cc: New file.
31616         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31617         (Depends-on): Add ansi-c++-opt.
31618         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31619         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31620         gl_MODULE_INDICATOR.
31621
31622         Tests of module 'sys_ioctl' in C++ mode.
31623         * tests/test-sys_ioctl-c++.cc: New file.
31624         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31625         (Depends-on): Add ansi-c++-opt.
31626         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31628         gl_MODULE_INDICATOR.
31629
31630         Tests of module 'string' in C++ mode.
31631         * tests/test-string-c++.cc: New file.
31632         * modules/string-tests (Files): Add it and tests/signature.h.
31633         (Depends-on): Add ansi-c++-opt.
31634         (Makefile.am): Arrange to compile and run test-string-c++.
31635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31636         gl_MODULE_INDICATOR.
31637
31638         Tests of module 'stdlib' in C++ mode.
31639         * tests/test-stdlib-c++.cc: New file.
31640         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31641         (Depends-on): Add ansi-c++-opt.
31642         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31643         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31644         gl_MODULE_INDICATOR.
31645
31646         Tests of module 'stdio' in C++ mode.
31647         * tests/test-stdio-c++.cc: New file.
31648         * modules/stdio-tests (Files): Add it and tests/signature.h.
31649         (Depends-on): Add ansi-c++-opt.
31650         (Makefile.am): Arrange to compile and run test-stdio-c++.
31651         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31652         gl_MODULE_INDICATOR.
31653
31654         Tests of module 'spawn' in C++ mode.
31655         * tests/test-spawn-c++.cc: New file.
31656         * modules/spawn-tests (Files): Add it and tests/signature.h.
31657         (Depends-on): Add ansi-c++-opt.
31658         (Makefile.am): Arrange to compile and run test-spawn-c++.
31659         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31660         gl_MODULE_INDICATOR.
31661
31662         Tests of module 'signal' in C++ mode.
31663         * tests/test-signal-c++.cc: New file.
31664         * modules/signal-tests (Files): Add it and tests/signature.h.
31665         (Depends-on): Add ansi-c++-opt.
31666         (Makefile.am): Arrange to compile and run test-signal-c++.
31667         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31668         gl_MODULE_INDICATOR.
31669
31670         Tests of module 'search' in C++ mode.
31671         * tests/test-search-c++.cc: New file.
31672         * modules/search-tests (Files): Add it and tests/signature.h.
31673         (Depends-on): Add ansi-c++-opt.
31674         (Makefile.am): Arrange to compile and run test-search-c++.
31675         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31676         gl_MODULE_INDICATOR.
31677
31678         Tests of module 'math' in C++ mode.
31679         * tests/test-math-c++.cc: New file.
31680         * modules/math-tests (Files): Add it and tests/signature.h.
31681         (Depends-on): Add ansi-c++-opt.
31682         (Makefile.am): Arrange to compile and run test-math-c++.
31683         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31684
31685         Tests of module 'locale' in C++ mode.
31686         * tests/test-locale-c++.cc: New file.
31687         * modules/locale-tests (Files): Add it and tests/signature.h.
31688         (Depends-on): Add ansi-c++-opt.
31689         (Makefile.am): Arrange to compile and run test-locale-c++.
31690         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31691         gl_MODULE_INDICATOR.
31692
31693         Tests of module 'langinfo' in C++ mode.
31694         * tests/test-langinfo-c++.cc: New file.
31695         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31696         (Depends-on): Add ansi-c++-opt.
31697         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31698         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31699         gl_MODULE_INDICATOR.
31700
31701         Tests of module 'iconv-h' in C++ mode.
31702         * tests/test-iconv-h-c++.cc: New file.
31703         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31704         (Depends-on): Add ansi-c++-opt.
31705         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31706
31707         Tests of module 'glob' in C++ mode.
31708         * tests/test-glob-c++.cc: New file.
31709         * modules/glob-tests (Files): Add it.
31710         (Depends-on): Add ansi-c++-opt.
31711         (Makefile.am): Arrange to compile and run test-glob-c++.
31712
31713         Tests of module 'fcntl-h' in C++ mode.
31714         * tests/test-fcntl-h-c++.cc: New file.
31715         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31716         (Depends-on): Add ansi-c++-opt.
31717         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31718         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31719         gl_MODULE_INDICATOR.
31720
31721         Tests of module 'dirent' in C++ mode.
31722         * tests/test-dirent-c++.cc: New file.
31723         * modules/dirent-tests (Files): Add it and tests/signature.h.
31724         (Depends-on): Add ansi-c++-opt.
31725         (Makefile.am): Arrange to compile and run test-dirent-c++.
31726         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31727         gl_MODULE_INDICATOR.
31728
31729         New module 'ansi-c++-opt'.
31730         * modules/ansi-c++-opt: New file.
31731         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31732
31733         Document C++ namespace mode.
31734         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31735
31736         wctype: Avoid #define replacements in C++ mode.
31737         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31738         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31739         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31740         In C++, define a namespaced alias symbol.
31741         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31742         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31743         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31744         rule.
31745
31746         wchar: Avoid #define replacements in C++ mode.
31747         * lib/wchar.in.h: Include c++defs.h.
31748         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31749         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31750         symbol.
31751         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31752         * modules/wchar (Depends-on): Add c++defs.
31753         (Makefile.am): Update wchar.h rule.
31754
31755         unistd: Avoid #define replacements in C++ mode.
31756         * lib/unistd.in.h: Include c++defs.h.
31757         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31758         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31759         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31760         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31761         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31762         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31763         symbol.
31764         (environ): Update.
31765         * modules/unistd (Depends-on): Add c++defs.
31766         (Makefile.am): Update unistd.h rule.
31767
31768         time: Avoid #define replacements in C++ mode.
31769         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31770         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31771         define a namespaced alias symbol.
31772         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31773         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31774         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31775         * modules/time (Depends-on): Add c++defs, warn-on-use.
31776         (Makefile.am): Update time.h rule.
31777         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31778         * modules/nanosleep (configure.ac): Likewise.
31779         * modules/strptime (configure.ac): Likewise.
31780         * modules/timegm (configure.ac): Likewise.
31781
31782         sys_time: Avoid #define replacements in C++ mode.
31783         * lib/sys_time.in.h: Include c++defs.h.
31784         (gettimeofday): In C++, define a namespaced alias symbol.
31785         * modules/sys_time (Depends-on): Add c++defs.
31786         (Makefile.am): Update sys/time.h rule.
31787
31788         sys_stat: Avoid #define replacements in C++ mode.
31789         * lib/sys_stat.in.h: Include c++defs.h.
31790         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31791         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31792         namespaced alias symbol.
31793         In C++, define a namespaced alias symbol.
31794         * modules/sys_stat (Depends-on): Add c++defs.
31795         (Makefile.am): Update sys/stat.h rule.
31796
31797         sys_socket: Avoid #define replacements in C++ mode.
31798         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31799         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31800         definitions also when the system has a <sys/socket.h>.
31801         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31802         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31803         In C++, define a namespaced alias symbol.
31804         * modules/sys_socket (Depends-on): Add c++defs.
31805         (Makefile.am): Update sys/socket.h rule.
31806
31807         sys_select: Avoid #define replacements in C++ mode.
31808         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31809         definitions also when the system has a <sys/select.h>.
31810         (select): In C++, define a namespaced alias symbol.
31811         * modules/sys_select (Depends-on): Add c++defs.
31812         (Makefile.am): Update sys/select.h rule.
31813
31814         sys_ioctl: Avoid #define replacements in C++ mode.
31815         * lib/sys_ioctl.in.h: Include c++defs.h.
31816         (ioctl): In C++, define a namespaced alias symbol.
31817         * modules/sys_ioctl (Depends-on): Add c++defs.
31818         (Makefile.am): Update sys/ioctl.h rule.
31819
31820         string: Avoid #define replacements in C++ mode.
31821         * lib/string.in.h: Include c++defs.h.
31822         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31823         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31824         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31825         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31826         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31827         * modules/string (Depends-on): Add c++defs.
31828         (Makefile.am): Update string.h rule.
31829
31830         stdlib: Avoid #define replacements in C++ mode.
31831         * lib/stdlib.in.h: Include c++defs.h.
31832         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31833         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31834         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31835         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31836         symbol.
31837         * modules/stdlib (Depends-on): Add c++defs.
31838         (Makefile.am): Update stdlib.h rule.
31839
31840         stdio: Avoid #define replacements in C++ mode.
31841         * lib/stdio.in.h: Include c++defs.h.
31842         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31843         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31844         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31845         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31846         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31847         namespaced alias symbol.
31848         * modules/stdio (Depends-on): Add c++defs.
31849         (Makefile.am): Update stdio.h rule.
31850
31851         spawn: Avoid #define replacements in C++ mode.
31852         * lib/spawn.in.h: Include c++defs.h.
31853         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31854         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31855         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31856         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31857         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31858         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31859         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31860         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31861         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31862         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31863         In C++, define a namespaced alias symbol.
31864         * modules/spawn (Depends-on): Add c++defs.
31865         (Makefile.am): Update spawn.h rule.
31866
31867         signal: Avoid #define replacements in C++ mode.
31868         * lib/signal.in.h: Include c++defs.h.
31869         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31870         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31871         namespaced alias symbol.
31872         * modules/signal (Depends-on): Add c++defs.
31873         (Makefile.am): Update signal.h rule.
31874
31875         search: Avoid #define replacements in C++ mode.
31876         * lib/search.in.h: Include c++defs.h.
31877         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31878         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31879         symbol.
31880         * modules/search (Depends-on): Add c++defs.
31881         (Makefile.am): Update search.h rule.
31882
31883         math: Avoid #define replacements in C++ mode.
31884         * lib/math.in.h: Include c++defs.h.
31885         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31886         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31887         trunc, truncl): In C++, define a namespaced alias symbol.
31888         * modules/math (Depends-on): Add c++defs.
31889         (Makefile.am): Update math.h rule.
31890
31891         locale: Avoid #define replacements in C++ mode.
31892         * lib/locale.in.h: Include c++defs.h.
31893         (duplocale): In C++, define a namespaced alias symbol.
31894         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31895         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31896         * modules/locale (Depends-on): Add c++defs.
31897         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31898
31899         langinfo: Avoid #define replacements in C++ mode.
31900         * lib/langinfo.in.h: Include c++defs.h.
31901         (nl_langinfo): In C++, define a namespaced alias symbol.
31902         * modules/langinfo (Depends-on): Add c++defs.
31903         (Makefile.am): Update langinfo.h rule.
31904
31905         iconv-h: Avoid #define replacements in C++ mode.
31906         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31907         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31908         symbol.
31909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31910         whenever iconv is present.
31911         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31912         (Makefile.am): Update iconv.h rule.
31913
31914         glob: Avoid #define replacements in C++ mode.
31915         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31916         (_gl_glob_errfunc_fn): New type.
31917         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31918         symbol.
31919         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31920         (Makefile.am): Update glob.h rule.
31921
31922         fcntl-h: Avoid #define replacements in C++ mode.
31923         * lib/fcntl.in.h: Include c++defs.h.
31924         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31925         * modules/fcntl-h (Depends-on): Add c++defs.
31926         (Makefile.am): Update fcntl.h rule.
31927
31928         dirent: Avoid #define replacements in C++ mode.
31929         * lib/dirent.in.h: Include c++defs.h.
31930         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31931         namespaced alias symbol.
31932         (dirfd): Update declaration.
31933         * modules/dirent (Depends-on): Add c++defs.
31934         (Makefile.am): Update dirent.h rule.
31935
31936         ctype: Make it usable in C++ code.
31937         * lib/ctype.in.h: Include c++defs.h.
31938         (isblank): Declare as extern "C".
31939         * modules/ctype (Depends-on): Add c++defs.
31940         (Makefile.am): Update ctype.h rule.
31941
31942         New module 'c++defs'.
31943         * modules/c++defs: New file.
31944         * build-aux/c++defs.h: New file.
31945         Reported by John W. Eaton <jwe@gnu.org>.
31946
31947 2010-03-07  Bruno Haible  <bruno@clisp.org>
31948
31949         logb: Provide missing declaration for Cygwin.
31950         * lib/math.in.h (logb): New declaration.
31951         * m4/logb.m4: New file.
31952         * modules/logb (Files): Add m4/logb.m4.
31953         (Depends-on): Add math.
31954         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31955         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31957         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31958         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31959
31960 2010-03-07  Bruno Haible  <bruno@clisp.org>
31961
31962         Fix test-cond link error.
31963         * tests/test-cond.c: Include <stdio.h>.
31964
31965 2010-03-07  Bruno Haible  <bruno@clisp.org>
31966
31967         Fix test-dirent-safer link error.
31968         * modules/dirent-safer-tests (Makefile.am): Define
31969         test_dirent_safer_LDADD.
31970
31971 2010-03-07  Bruno Haible  <bruno@clisp.org>
31972
31973         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31974         among default module list.
31975
31976 2010-03-07  Bruno Haible  <bruno@clisp.org>
31977
31978         Fix link error on platforms with GNU libiconv.
31979         * modules/unistr/u8-strcoll-tests (Makefile): Define
31980         test_u8_strcoll_LDADD.
31981         * modules/unistr/u16-strcoll-tests (Makefile): Define
31982         test_u16_strcoll_LDADD.
31983         * modules/unistr/u32-strcoll-tests (Makefile): Define
31984         test_u32_strcoll_LDADD.
31985
31986 2010-03-07  Bruno Haible  <bruno@clisp.org>
31987
31988         Use POSIX declarations for socket functions.
31989         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31990         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31991         rpl_sendto): Change declaration to match POSIX.
31992         * lib/connect.c (rpl_connect): Likewise.
31993         * lib/accept.c (rpl_accept): Likewise.
31994         * lib/bind.c (rpl_bind): Likewise.
31995         * lib/getpeername.c (rpl_getpeername): Likewise.
31996         * lib/getsockname.c (rpl_getsockname): Likewise.
31997         * lib/recv.c (rpl_recv): Likewise.
31998         * lib/send.c (rpl_send): Likewise.
31999         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32000         * lib/sendto.c (rpl_sendto): Likewise.
32001
32002 2010-03-06  Bruno Haible  <bruno@clisp.org>
32003
32004         Clarify access, euidaccess, faccessat.
32005         * doc/posix-functions/faccessat.texi: Mention security problem under
32006         "Other problems", not "Portability problems".
32007         * doc/posix-functions/access.texi: Likewise. Mention a related security
32008         problem.
32009         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32010         * lib/euidaccess.c: Add comments about platforms.
32011         * lib/unistd.in.h (access, euidaccess): Add warnings.
32012
32013 2010-03-07  Bruno Haible  <bruno@clisp.org>
32014
32015         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32016         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32017         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32018         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32019         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32020         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32021         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32022         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32023         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32024         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32025         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32026         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32027         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32028         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32029         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32030         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32031         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32032         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32033         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32034         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32035         Likewise.
32036         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32037         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32038         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32039         Likewise.
32040         * tests/test-spawn.c (main): Make it work when
32041         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32042
32043 2010-03-07  Bruno Haible  <bruno@clisp.org>
32044
32045         Fix incorrect Makefile.am generation in German locale.
32046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32047         Execute sed command with character range in C locale.
32048
32049 2010-03-06  Bruno Haible  <bruno@clisp.org>
32050
32051         Tests for module 'iconv-h'.
32052         * modules/iconv-h-tests: New file.
32053         * tests/test-iconv-h.c: New file.
32054
32055         New module 'iconv-h'.
32056         * modules/iconv-h: New file.
32057         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32058         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32059         (configure.ac): Remove gl_ICONV_H.
32060         (Makefile.am): Remove rule for iconv.h.
32061
32062 2010-03-06  Bruno Haible  <bruno@clisp.org>
32063
32064         More consistent naming of *.m4 files.
32065         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32066         * modules/wctype (Files): Update.
32067
32068         More consistent naming of *.m4 files.
32069         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32070         * modules/wchar (Files): Update.
32071
32072 2010-03-06  Jim Meyering  <meyering@redhat.com>
32073
32074         euidaccess: relax license to LGPLv2+
32075         * modules/euidaccess (License): Relax to LGPLv2+.
32076
32077 2010-03-06  Bruno Haible  <bruno@clisp.org>
32078
32079         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32080         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32081         (Makefile.am): Augment lib_SOURCES instead.
32082
32083 2010-03-04  Jim Meyering  <meyering@redhat.com>
32084
32085         utime: remove obsolete module
32086         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32087         unnecessary for years, and has been marked as obsolete for 10 months.
32088         * modules/utime: Remove file.
32089         * lib/utime.c: Remove file.
32090         * m4/utime.m4: Remove file.
32091         * m4/utimes-null.m4: Remove file.
32092         * doc/posix-functions/utime.texi (utime): Remove reference to
32093         the module.  Move the sole "fixed by gnulib" item into the
32094         "problems not fixed by Gnulib" list.
32095         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32096
32097 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32098
32099         * modules/exit (License): Relax license to LGPLv2+.
32100         (Status): Mark as obsolete.
32101         * NEWS: Mention deprecated 'exit' module.
32102         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32103         of now obsolete 'exit'.
32104
32105 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32106
32107         fts-lgpl: remove unused module
32108         * modules/fts-lgpl: Remove.
32109         * MODULES.html.sh (func_all_modules): Adjust.
32110         * check-module (find_included_lib_files): Adjust.
32111         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32112
32113 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32114
32115         copy-acl: enhance Solaris ACL error handling
32116         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32117         * lib/set-mode-acl.c (qset_acl): Likewise.
32118
32119 2010-03-02  Bruno Haible  <bruno@clisp.org>
32120
32121         spawn: Don't override the system defined values on FreeBSD 8.
32122         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32123         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32124         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32125         if HAVE_POSIX_SPAWN is 1.
32126         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32127
32128 2010-03-01  Bruno Haible  <bruno@clisp.org>
32129
32130         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32131         regarding Automake.
32132
32133 2010-02-25  Bruno Haible  <bruno@clisp.org>
32134
32135         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32136         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32137         setting, not afterwards.
32138         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32139
32140 2010-02-24  Eric Blake  <eblake@redhat.com>
32141
32142         bootstrap, git-version-gen: use timestamp
32143         * build-aux/git-version-gen (scriptversion): Force UTC.
32144         * build-aux/bootstrap (scriptversion): New variable.
32145
32146         bootstrap: allow older git
32147         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32148         older than 1.6.4.  Requested by the libvirt project.
32149
32150 2010-02-23  Eric Blake  <eblake@redhat.com>
32151
32152         warn-on-use: work with old autoconf
32153         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32154         AS_VAR semantics of autoconf 2.60.
32155         Reported by Bruno Haible.
32156
32157         bootstrap: improve some comments
32158         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32159         clarification comments.
32160
32161         gettimeofday: provide correct function
32162         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32163         when replacement is declared, otherwise provide gettimeofday.
32164         Reported by Michael Goffioul.
32165
32166 2010-02-23  Jim Meyering  <meyering@redhat.com>
32167
32168         lib-ignore: relax license to "unlimited", not LGPLv2+
32169         * modules/lib-ignore (License): Relax to "unlimited".
32170
32171 2010-02-23  Jim Meyering  <meyering@redhat.com>
32172
32173         lib-ignore: relax license to LGPLv2+
32174         * modules/lib-ignore (License): Relax to LGPLv2+.
32175
32176 2010-02-22  Eric Blake  <eblake@redhat.com>
32177
32178         lseek: avoid bash 3.2 broken pipe bug
32179         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32180         warning from bash 3.2.
32181         Reported by Ben Pfaff, with analysis from Bruno Haible.
32182
32183         bootstrap: support non-FSF copyright holder
32184         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32185         bootstrap.conf override of COPYRIGHT_HOLDER.
32186         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32187
32188         bootstrap: interoperate with gettext 0.14.1
32189         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32190
32191         bootstrap: allow for alternate submodule location
32192         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32193         hardcoding submodule location.
32194         (gnulib_mk): Allow direct use of Makefile.am.
32195
32196         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32197         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32198         rather than reconfiguring where the submodule points.
32199
32200         gettimeofday: restore support for platforms that lack function
32201         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32202         replacement if function is missing.
32203         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32204         * modules/sys_time (Makefile.am): Substitute it.
32205         * lib/sys_time.in.h (gettimeofday): Check it.
32206         Reported by Michael Goffioul.
32207
32208 2010-02-21  Bruno Haible  <bruno@clisp.org>
32209
32210         * lib/stdio.in.h (obstack_printf): Fix typo.
32211
32212 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32213
32214         vc-list-files: use bzr ls's -R option
32215         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32216         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32217
32218 2010-02-21  Jim Meyering  <meyering@redhat.com>
32219
32220         init.sh: fix EXEEXT shims to work also for names like test-prog
32221         * tests/init.sh: Re-exec a better shell, when needed.
32222         If the current shell lacks support for posix $(...), an init.sh-using
32223         test will now try to find a shell that supports that.  If EXEEXT is
32224         nonempty, we also require support for hyphen-in-alias-name and shell
32225         substitutions like ${var#glob}.  Failure to find such a shell results
32226         in a skipped test.
32227
32228 2010-02-21  Bruno Haible  <bruno@clisp.org>
32229
32230         Really work around around "broken pipe" error message from bash 3.2.
32231         * gnulib-tool (func_reset_sigpipe): Remove function.
32232         (echo): In bash 3.2, define to a function that uses printf.
32233         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32234
32235 2010-02-20  Bruno Haible  <bruno@clisp.org>
32236
32237         Restore support for automake 1.9.6 with autoconf 2.61.
32238         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32239         Reported by James Youngman <jay@gnu.org>.
32240
32241 2010-02-20  Bruno Haible  <bruno@clisp.org>
32242
32243         Improve *printf warning condition.
32244         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32245         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32246         and the function is overridden due to SIGPIPE emulation.
32247
32248 2010-02-20  Bruno Haible  <bruno@clisp.org>
32249
32250         * lib/stdio.in.h: Tweak comments.
32251
32252 2010-02-19  Bruno Haible  <bruno@clisp.org>
32253
32254         Make it easier to find modules. New gnulib-tool option '--find'.
32255         * gnulib-tool: New option --find.
32256         (func_usage): Document it.
32257         (func_sanitize_modulelist): New function, extracted from
32258         func_all_modules.
32259         (func_all_modules): Invoke it.
32260         * doc/gnulib-tool.texi (Which modules?): New node.
32261
32262 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32263
32264         * lib/sys_select.in.h: Provide select replacement even if
32265         sys/select.h exists on a system, for Interix.
32266
32267 2010-02-18  Jim Meyering  <meyering@redhat.com>
32268
32269         init.sh: don't use $(...) just yet
32270         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32271         to accommodate e.g., Solaris' /bin/sh.
32272
32273 2010-02-17  Bruno Haible  <bruno@clisp.org>
32274
32275         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32276         Reported by Ludovic Courtès <ludo@gnu.org>.
32277
32278 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32279
32280         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32281         linking with -lintl.
32282
32283 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32284
32285         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32286         if not provided by the system's netdb.h.  Reported by
32287         ludo@gnu.org (Ludovic Courtès).
32288
32289 2010-02-15  Jim Meyering  <meyering@redhat.com>
32290
32291         init.sh: improve portability and efficiency
32292         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32293         "dummy" in a for loop.
32294         Use '!', not '^' to select the complement of a character set used
32295         in a "case" statement.
32296         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32297         Suggestions from Eric Blake.
32298
32299         init.sh: automatically accommodate programs with the .exe suffix
32300         Automatically arrange for an invocation of "prog" to execute the
32301         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32302         may use the simpler "prog", yet still work when built on a system
32303         that requires specifying the added suffix.
32304         Do this by constructing a function named "prog" that invokes
32305         "prog.exe" for each .exe file in selected directories.
32306         * tests/init.sh (find_exe_basenames_): New function.
32307         (create_exe_shim_functions_): New function.
32308         (path_prepend_): Use it.
32309
32310         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32311         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32312         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32313
32314 2010-02-14  Jim Meyering  <meyering@redhat.com>
32315
32316         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32317         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32318         (sc_prohibit_hash_pjw_without_use): New rule.
32319
32320         maint.mk: allow the default upload destination dir to be overridden
32321         * top/maint.mk (upload_dest_dir_): Define with a default that
32322         preserves the status quo.
32323         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32324         Reported by Peter Simons.
32325
32326         maint.mk: prohibit inclusion of "hash.h" without_use
32327         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32328
32329 2010-02-10  Jim Meyering  <meyering@redhat.com>
32330
32331         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32332         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32333
32334 2010-02-09  Eric Blake  <ebb9@byu.net>
32335         and Bruno Haible  <bruno@clisp.org>
32336
32337         obstack-printf-posix: ensure declaration
32338         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32339         extracted from gl_FUNC_OBSTACK_PRINTF.
32340         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32341         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32342         Likewise.
32343         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32344         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32345         0.
32346
32347 2010-02-08  Bruno Haible  <bruno@clisp.org>
32348
32349         gnulib-tool: Fix typo in 2010-02-07 commit.
32350         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32351         Reported by Eric Blake.
32352
32353 2010-02-07  Bruno Haible  <bruno@clisp.org>
32354
32355         gnulib-tool: Fix up caching patches.
32356         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32357         option --no-cache. Use associative arrays when supported by the shell.
32358         (sed_comments): New variable.
32359         (modcache): Renamed from do_cache.
32360         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32361         abbreviate unnecessarily.
32362         (have_associative): New variable.
32363         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32364         way also for ksh and zsh.
32365         (func_init_sed_convert_to_cache_statements): New function, extracted
32366         from func_cache_lookup_module. Add support for associative arrays.
32367         Don't set the c_MODULE_cached variable here. Ignore all lines before
32368         the first field header. Remove only the final newline, not all trailing
32369         newlines. Support empty fields correctly. Limit the use of 'eval' to
32370         assignments.
32371         (func_get_description, func_get_status, func_get_notice,
32372         func_get_applicability, func_get_filelist, func_get_dependencies,
32373         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32374         func_get_automake_snippet, func_get_include_directive,
32375         func_get_link_directive, func_get_license, func_get_maintainer):
32376         Update documentation. List the unoptimized code first. Add support for
32377         associative arrays. Limit the use of 'eval' to assignments.
32378         (func_get_applicability): Undo stylistic pessimisations.
32379         (func_get_automake_snippet, func_get_include_directive): Reduce code
32380         duplication.
32381         (func_modules_transitive_closure, func_modules_add_dummy,
32382         func_modules_notice, func_modules_to_filelist, func_add_file,
32383         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32384         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32385         func_create_testdir, func_create_megatestdir): Update documentation.
32386
32387 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32388
32389         * gnulib-tool (func_cache_lookup_module): Store the module name
32390         belonging to the cache variable; error out if two different
32391         module names map to the same cache variable name.
32392
32393 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32394
32395         gnulib-tool: Make caching optional.
32396         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32397         Update matching short versions of --no-changelog.
32398         (func_usage): Update.
32399         (sed_extract_cache_prog): Renamed from ...
32400         (sed_extract_prog): ... this; revert to old extraction script.
32401         (func_get_description, func_get_status)
32402         (func_get_notice, func_get_applicability, func_get_filelist)
32403         (func_get_dependencies, func_get_autoconf_early_snippet)
32404         (func_get_autoconf_snippet, func_get_automake_snippet)
32405         (func_get_include_directive, func_get_link_directive)
32406         (func_get_license, func_get_maintainer): If $do_cache is false,
32407         use old, non-caching extraction scripts.
32408         Suggestion by Bruno Haible.
32409
32410 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32411
32412         gnulib-tool: cache module metainformation.
32413         * gnulib-tool (sed_extract_prog): Match newline before each
32414         header, and rewrite header to a shell variable suffix.
32415         (func_cache_var, func_cache_lookup_module): New functions,
32416         to turn a module name into a cache variable prefix, and to
32417         look up and cache module metainformation.
32418         (func_get_description, func_get_status)
32419         (func_get_notice, func_get_applicability, func_get_filelist)
32420         (func_get_dependencies, func_get_autoconf_early_snippet)
32421         (func_get_autoconf_snippet, func_get_automake_snippet)
32422         (func_get_include_directive, func_get_link_directive)
32423         (func_get_license, func_get_maintainer): Use
32424         func_cache_lookup_module.
32425
32426 2010-02-07  Bruno Haible  <bruno@clisp.org>
32427
32428         fnctl: Fix missing dependency.
32429         * modules/fcntl (Depends-on): Add getdtablesize.
32430         Reported by John W. Eaton <jwe@gnu.org>.
32431
32432 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32433
32434         Argp: fix recognition of short alias options.
32435
32436         * lib/argp-parse.c (convert_options): Fix improper use of
32437         `|' between character values.
32438         * tests/test-argp.c (group1_option): New alias option
32439         --read (-r).
32440         (group1_parser): Special handling for 'r'.
32441         (test15): New test case.
32442         (test_fun): Add test15.
32443         * tests/test-argp-2.sh: Update expected --help and --usage
32444         outputs.
32445
32446 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32447
32448         * tests/test-argp.c: Fix indentation.
32449
32450 2010-02-04  Eric Blake  <ebb9@byu.net>
32451
32452         gettimeofday: expose type of second argument
32453         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32454         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32455         * tests/test-gettimeofday.c: Use it to silence warning.
32456         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32457         the issue.
32458
32459 2010-02-03  Jim Meyering  <meyering@redhat.com>
32460
32461         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32462         * lib/regcomp.c (TYPE_SIGNED): Define.
32463         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32464
32465         regcomp.c: avoid a new -Wshadow warning
32466         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32467
32468 2010-02-01  Jim Meyering  <meyering@redhat.com>
32469
32470         removing useless parentheses in cpp #define directives
32471         For motivation, see commit c0221df4, "define STREQ(a,b)
32472         consistently, removing useless parentheses"
32473         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32474         * lib/mountlist.c (MNT_IGNORE): Likewise.
32475         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32476
32477 2010-02-01  Eric Blake  <ebb9@byu.net>
32478
32479         sys_time: use link-warning
32480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32481         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32482         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32483         * modules/sys_time (Depends-on): Add warn-on-use.
32484         (Makefile.am): Always build replacement.
32485         (configure.ac): Update substitutions.
32486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32487         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32488         bother with SYS_TIME_H.
32489         * modules/gettimeofday (configure.ac): Declare indicator.
32490         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32491         in use.
32492
32493         closein-tests: silence compiler warning
32494         * tests/test-closein.c (main): Ignore fread result.
32495         * modules/closein-tests (Depends-on): Add ignore-value.
32496
32497         tests: silence warning about system return
32498         * tests/test-areadlink-with-size.c (main): Ignore system result.
32499         * tests/test-areadlink.c (main): Likewise.
32500         * tests/test-areadlinkat-with-size.c (main): Likewise.
32501         * tests/test-areadlinkat.c (main): Likewise.
32502         * tests/test-canonicalize-lgpl.c (main): Likewise.
32503         * tests/test-canonicalize.c (main): Likewise.
32504         * tests/test-chown.c (main): Likewise.
32505         * tests/test-fchownat.c (main): Likewise.
32506         * tests/test-fdutimensat.c (main): Likewise.
32507         * tests/test-fstatat.c (main): Likewise.
32508         * tests/test-futimens.c (main): Likewise.
32509         * tests/test-lchown.c (main): Likewise.
32510         * tests/test-link.c (main): Likewise.
32511         * tests/test-linkat.c (main): Likewise.
32512         * tests/test-lstat.c (main): Likewise.
32513         * tests/test-mkdir.c (main): Likewise.
32514         * tests/test-mkdirat.c (main): Likewise.
32515         * tests/test-mkfifo.c (main): Likewise.
32516         * tests/test-mkfifoat.c (main): Likewise.
32517         * tests/test-mknod.c (main): Likewise.
32518         * tests/test-readlink.c (main): Likewise.
32519         * tests/test-remove.c (main): Likewise.
32520         * tests/test-rename.c (main): Likewise.
32521         * tests/test-renameat.c (main): Likewise.
32522         * tests/test-rmdir.c (main): Likewise.
32523         * tests/test-symlink.c (main): Likewise.
32524         * tests/test-symlinkat.c (main): Likewise.
32525         * tests/test-unlink.c (main): Likewise.
32526         * tests/test-unlinkat.c (main): Likewise.
32527         * tests/test-utimens.c (main): Likewise.
32528         * tests/test-utimensat.c (main): Likewise.
32529         * modules/areadlink-tests (Depends-on): Add ignore-value.
32530         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32531         * modules/areadlinkat-tests (Depends-on): Likewise.
32532         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32533         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32534         * modules/canonicalize-tests (Depends-on): Likewise.
32535         * modules/chown-tests (Depends-on): Likewise.
32536         * modules/fdutimensat-tests (Depends-on): Likewise.
32537         * modules/futimens-tests (Depends-on): Likewise.
32538         * modules/lchown-tests (Depends-on): Likewise.
32539         * modules/link-tests (Depends-on): Likewise.
32540         * modules/linkat-tests (Depends-on): Likewise.
32541         * modules/lstat-tests (Depends-on): Likewise.
32542         * modules/mkdir-tests (Depends-on): Likewise.
32543         * modules/mkfifo-tests (Depends-on): Likewise.
32544         * modules/mkfifoat-tests (Depends-on): Likewise.
32545         * modules/mknod-tests (Depends-on): Likewise.
32546         * modules/openat-tests (Depends-on): Likewise.
32547         * modules/readlink-tests (Depends-on): Likewise.
32548         * modules/remove-tests (Depends-on): Likewise.
32549         * modules/rename-tests (Depends-on): Likewise.
32550         * modules/renameat-tests (Depends-on): Likewise.
32551         * modules/rmdir-tests (Depends-on): Likewise.
32552         * modules/symlink-tests (Depends-on): Likewise.
32553         * modules/symlinkat-tests (Depends-on): Likewise.
32554         * modules/unlink-tests (Depends-on): Likewise.
32555         * modules/utimens-tests (Depends-on): Likewise.
32556         * modules/utimensat-tests (Depends-on): Likewise.
32557
32558 2010-01-31  Bruno Haible  <bruno@clisp.org>
32559
32560         Perform the same test for many <math.h> functions.
32561         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32562         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32563         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32564         of gl_MATHFUNC.
32565         * modules/acos (configure.ac): Likewise.
32566         * modules/asin (configure.ac): Likewise.
32567         * modules/atan (configure.ac): Likewise.
32568         * modules/atan2 (configure.ac): Likewise.
32569         * modules/cbrt (configure.ac): Likewise.
32570         * modules/copysign (configure.ac): Likewise.
32571         * modules/cos (configure.ac): Likewise.
32572         * modules/cosh (configure.ac): Likewise.
32573         * modules/erf (configure.ac): Likewise.
32574         * modules/erfc (configure.ac): Likewise.
32575         * modules/exp (configure.ac): Likewise.
32576         * modules/fmod (configure.ac): Likewise.
32577         * modules/hypot (configure.ac): Likewise.
32578         * modules/j0 (configure.ac): Likewise.
32579         * modules/j1 (configure.ac): Likewise.
32580         * modules/jn (configure.ac): Likewise.
32581         * modules/lgamma (configure.ac): Likewise.
32582         * modules/log (configure.ac): Likewise.
32583         * modules/log10 (configure.ac): Likewise.
32584         * modules/log1p (configure.ac): Likewise.
32585         * modules/pow (configure.ac): Likewise.
32586         * modules/remainder (configure.ac): Likewise.
32587         * modules/sin (configure.ac): Likewise.
32588         * modules/sinh (configure.ac): Likewise.
32589         * modules/tan (configure.ac): Likewise.
32590         * modules/tanh (configure.ac): Likewise.
32591         * modules/y0 (configure.ac): Likewise.
32592         * modules/y1 (configure.ac): Likewise.
32593         * modules/yn (configure.ac): Likewise.
32594         Suggested by Paolo Bonzini.
32595
32596 2010-01-31  Bruno Haible  <bruno@clisp.org>
32597
32598         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32599
32600 2010-01-31  Bruno Haible  <bruno@clisp.org>
32601
32602         Work around getdelim() bug on FreeBSD 8.0.
32603         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32604         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32605         not work.
32606         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32607         is 1.
32608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32609         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32610         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32611         a non-zero size.
32612         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32613
32614 2010-01-31  Bruno Haible  <bruno@clisp.org>
32615
32616         Work around getline() bug on FreeBSD 8.0.
32617         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32618         and a non-zero size.
32619         * tests/test-getline.c (main): Likewise.
32620         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32621         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32622
32623 2010-01-28  Eric Blake  <ebb9@byu.net>
32624
32625         regex: fix build failure
32626         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32627         platforms.
32628
32629 2010-01-28  Jim Meyering  <meyering@redhat.com>
32630
32631         regex: do not ignore memory allocation failure
32632         * lib/regex_internal.c (create_cd_newstate): Detect
32633         re_node_set_init_copy failure.   Extracted from glibc commit
32634         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32635
32636         regex: sync more white-space changes from libc
32637         * lib/regex_internal.c: White-space only changes.
32638         * lib/regexec.c: Likewise.
32639
32640         regex: add many uses of __attribute_warn_unused_result__
32641         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32642         * lib/regexec.c: Likewise.
32643         Extracted from a messy glibc commit.
32644
32645         regcomp.c: spelling and merge-artifact from glibc
32646         * lib/regcomp.c: Merge remainder of glibc's
32647         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32648
32649         regcomp.c: sync white-space changes from glibc
32650         * lib/regcomp.c: Merge to accommodate white space
32651         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32652
32653         regcomp.c: do not ignore internal return values
32654         * lib/regcomp.c: Do not ignore internal return values.
32655         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32656         but without its white-space changes and spelling fixes.
32657
32658         regex_internal.h: define __attribute_warn_unused_result__
32659         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32660
32661         maint: add a syntax-check rule to check for vulnerable Makefile.in
32662         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32663
32664 2010-01-27  Jim Meyering  <meyering@redhat.com>
32665
32666         ncftpput-ftp: clean up spaces
32667         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32668         Remove trailing blanks.
32669
32670 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32671
32672         * build-aux/git-version-gen: Fix copyright statement.
32673         * build-aux/gnupload: Likewise.
32674         * tests/test-arcfour.c: Likewise.
32675         * tests/test-arctwo.c: Likewise.
32676         * tests/test-count-one-bits.c: Likewise.
32677         * tests/test-crc.c: Likewise.
32678         * tests/test-des.c: Likewise.
32679         * tests/test-gc-arcfour.c: Likewise.
32680         * tests/test-gc-arctwo.c: Likewise.
32681         * tests/test-gc-des.c: Likewise.
32682         * tests/test-gc-hmac-md5.c: Likewise.
32683         * tests/test-gc-hmac-sha1.c: Likewise.
32684         * tests/test-gc-md2.c: Likewise.
32685         * tests/test-gc-md4.c: Likewise.
32686         * tests/test-gc-md5.c: Likewise.
32687         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32688         * tests/test-gc-rijndael.c: Likewise.
32689         * tests/test-gc-sha1.c: Likewise.
32690         * tests/test-gc.c: Likewise.
32691         * tests/test-gethostname.c: Likewise.
32692         * tests/test-gettimeofday.c: Likewise.
32693         * tests/test-hash.c: Likewise.
32694         * tests/test-hmac-md5.c: Likewise.
32695         * tests/test-hmac-sha1.c: Likewise.
32696         * tests/test-md2.c: Likewise.
32697         * tests/test-md4.c: Likewise.
32698         * tests/test-md5.c: Likewise.
32699         * tests/test-memchr.c: Likewise.
32700         * tests/test-memchr2.c: Likewise.
32701         * tests/test-memcmp.c: Likewise.
32702         * tests/test-memmem.c: Likewise.
32703         * tests/test-memrchr.c: Likewise.
32704         * tests/test-rawmemchr.c: Likewise.
32705         * tests/test-read-file.c: Likewise.
32706         * tests/test-rijndael.c: Likewise.
32707         * tests/test-sockets.c: Likewise.
32708         * tests/test-strchrnul.c: Likewise.
32709         * tests/test-strstr.c: Likewise.
32710         * tests/test-strtod.c: Likewise.
32711         * build-aux/ncftpput-ftp: Likewise.
32712
32713 2010-01-26  Eric Blake  <ebb9@byu.net>
32714
32715         ignore-value: update recommended header name
32716         * modules/ignore-value (Include): Only use <> for headers that
32717         exist in glibc.
32718
32719 2010-01-26  Jim Meyering  <meyering@redhat.com>
32720
32721         test-userspec.c: avoid compiler warnings
32722         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32723         and "initialization discards qualifiers..." warnings.
32724         Put the first "uid" in its own scope, and make char* members "const".
32725
32726 2010-01-25  Bruno Haible  <bruno@clisp.org>
32727
32728         gnulib-tool: Make warning diagnostics consistent.
32729         * gnulib-tool (func_warning): New function.
32730         Use it everywhere where gnulib-tool produces output to stderr and it is
32731         not a fatal error.
32732
32733 2010-01-25  Bruno Haible  <bruno@clisp.org>
32734
32735         Fix test dependencies.
32736         * modules/xstrtol-tests (Depends-on): Add inttypes.
32737         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32738
32739 2010-01-25 Pádraig Brady <P@draigBrady.com>
32740
32741         syntax-check: detect incorrect boolean macro values in config.h
32742         * modules/maintainer-makefile (configure.ac): Parameterize the location
32743         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32744         The logic is from Eric Blake and the location indicated by Jim Meyering.
32745         Note the more natural CONFIG_HEADER name is prohibited by automake
32746         for backwards compatibility reasons.
32747         * top/maint.mk (sc_Wundef_boolean): New rule.
32748
32749 2010-01-25  Jim Meyering  <meyering@redhat.com>
32750
32751         bootstrap: detect MacOS 10.6's shasum, too
32752         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32753         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32754
32755 2010-01-23  Jim Meyering  <meyering@redhat.com>
32756
32757         xstrtoll: new module
32758         * modules/xstrtoll: New file.
32759         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32760         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32761         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32762         ./configure fails if you use this module and lack "long long".
32763         * modules/xstrtoll-tests: New module.
32764         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32765         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32766         new init.sh-based test framework.
32767
32768 2010-01-24  Bruno Haible  <bruno@clisp.org>
32769
32770         Tests for module 'yn'.
32771         * modules/yn-tests: New file.
32772         * tests/test-yn.c: New file.
32773
32774         Tests for module 'y1'.
32775         * modules/y1-tests: New file.
32776         * tests/test-y1.c: New file.
32777
32778         Tests for module 'y0'.
32779         * modules/y0-tests: New file.
32780         * tests/test-y0.c: New file.
32781
32782         Tests for module 'tanh'.
32783         * modules/tanh-tests: New file.
32784         * tests/test-tanh.c: New file.
32785
32786         Tests for module 'tan'.
32787         * modules/tan-tests: New file.
32788         * tests/test-tan.c: New file.
32789
32790         Tests for module 'sqrt'.
32791         * modules/sqrt-tests: New file.
32792         * tests/test-sqrt.c: New file.
32793
32794         Tests for module 'sinh'.
32795         * modules/sinh-tests: New file.
32796         * tests/test-sinh.c: New file.
32797
32798         Tests for module 'sin'.
32799         * modules/sin-tests: New file.
32800         * tests/test-sin.c: New file.
32801
32802         Tests for module 'rint'.
32803         * modules/rint-tests: New file.
32804         * tests/test-rint.c: New file.
32805
32806         Tests for module 'remainder'.
32807         * modules/remainder-tests: New file.
32808         * tests/test-remainder.c: New file.
32809
32810         Tests for module 'pow'.
32811         * modules/pow-tests: New file.
32812         * tests/test-pow.c: New file.
32813
32814         Tests for module 'nextafter'.
32815         * modules/nextafter-tests: New file.
32816         * tests/test-nextafter.c: New file.
32817
32818         Tests for module 'modf'.
32819         * modules/modf-tests: New file.
32820         * tests/test-modf.c: New file.
32821
32822         Tests for module 'logb'.
32823         * modules/logb-tests: New file.
32824         * tests/test-logb.c: New file.
32825
32826         Tests for module 'log1p'.
32827         * modules/log1p-tests: New file.
32828         * tests/test-log1p.c: New file.
32829
32830         Tests for module 'log10'.
32831         * modules/log10-tests: New file.
32832         * tests/test-log10.c: New file.
32833
32834         Tests for module 'log'.
32835         * modules/log-tests: New file.
32836         * tests/test-log.c: New file.
32837
32838         Tests for module 'lgamma'.
32839         * modules/lgamma-tests: New file.
32840         * tests/test-lgamma.c: New file.
32841
32842         Tests for module 'ldexp'.
32843         * modules/ldexp-tests: New file.
32844         * tests/test-ldexp.c: New file.
32845
32846         Tests for module 'jn'.
32847         * modules/jn-tests: New file.
32848         * tests/test-jn.c: New file.
32849
32850         Tests for module 'j1'.
32851         * modules/j1-tests: New file.
32852         * tests/test-j1.c: New file.
32853
32854         Tests for module 'j0'.
32855         * modules/j0-tests: New file.
32856         * tests/test-j0.c: New file.
32857
32858         Tests for module 'hypot'.
32859         * modules/hypot-tests: New file.
32860         * tests/test-hypot.c: New file.
32861
32862         Tests for module 'fmod'.
32863         * modules/fmod-tests: New file.
32864         * tests/test-fmod.c: New file.
32865
32866         Tests for module 'fabs'.
32867         * modules/fabs-tests: New file.
32868         * tests/test-fabs.c: New file.
32869
32870         Tests for module 'exp'.
32871         * modules/exp-tests: New file.
32872         * tests/test-exp.c: New file.
32873
32874         Tests for module 'erfc'.
32875         * modules/erfc-tests: New file.
32876         * tests/test-erfc.c: New file.
32877
32878         Tests for module 'erf'.
32879         * modules/erf-tests: New file.
32880         * tests/test-erf.c: New file.
32881
32882         Tests for module 'cosh'.
32883         * modules/cosh-tests: New file.
32884         * tests/test-cosh.c: New file.
32885
32886         Tests for module 'cos'.
32887         * modules/cos-tests: New file.
32888         * tests/test-cos.c: New file.
32889
32890         Tests for module 'copysign'.
32891         * modules/copysign-tests: New file.
32892         * tests/test-copysign.c: New file.
32893
32894         Tests for module 'cbrt'.
32895         * modules/cbrt-tests: New file.
32896         * tests/test-cbrt.c: New file.
32897
32898         Tests for module 'atan2'.
32899         * modules/atan2-tests: New file.
32900         * tests/test-atan2.c: New file.
32901
32902         Tests for module 'atan'.
32903         * modules/atan-tests: New file.
32904         * tests/test-atan.c: New file.
32905
32906         Tests for module 'asin'.
32907         * modules/asin-tests: New file.
32908         * tests/test-asin.c: New file.
32909
32910         Tests for module 'acos'.
32911         * modules/acos-tests: New file.
32912         * tests/test-acos.c: New file.
32913
32914 2010-01-24  Bruno Haible  <bruno@clisp.org>
32915
32916         Fix tests for common <math.h> functions.
32917         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32918         code snippet that references the function pointer, rather than merely
32919         calling the function. Substitute the FUNC_LIBM variable.
32920         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32921         * modules/acos (configure.ac): Likewise.
32922         * modules/asin (configure.ac): Likewise.
32923         * modules/atan (configure.ac): Likewise.
32924         * modules/atan2 (configure.ac): Likewise.
32925         * modules/cbrt (configure.ac): Likewise.
32926         * modules/copysign (configure.ac): Likewise.
32927         * modules/cos (configure.ac): Likewise.
32928         * modules/cosh (configure.ac): Likewise.
32929         * modules/erf (configure.ac): Likewise.
32930         * modules/erfc (configure.ac): Likewise.
32931         * modules/exp (configure.ac): Likewise.
32932         * modules/fabs (configure.ac): Likewise.
32933         * modules/fmod (configure.ac): Likewise.
32934         * modules/hypot (configure.ac): Likewise.
32935         * modules/j0 (configure.ac): Likewise.
32936         * modules/j1 (configure.ac): Likewise.
32937         * modules/jn (configure.ac): Likewise.
32938         * modules/ldexp (configure.ac): Likewise.
32939         * modules/lgamma (configure.ac): Likewise.
32940         * modules/log (configure.ac): Likewise.
32941         * modules/log10 (configure.ac): Likewise.
32942         * modules/log1p (configure.ac): Likewise.
32943         * modules/logb (configure.ac): Likewise.
32944         * modules/modf (configure.ac): Likewise.
32945         * modules/nextafter (configure.ac): Likewise.
32946         * modules/pow (configure.ac): Likewise.
32947         * modules/remainder (configure.ac): Likewise.
32948         * modules/rint (configure.ac): Likewise.
32949         * modules/sin (configure.ac): Likewise.
32950         * modules/sinh (configure.ac): Likewise.
32951         * modules/tan (configure.ac): Likewise.
32952         * modules/tanh (configure.ac): Likewise.
32953         * modules/y0 (configure.ac): Likewise.
32954         * modules/y1 (configure.ac): Likewise.
32955         * modules/yn (configure.ac): Likewise.
32956
32957 2010-01-24  Bruno Haible  <bruno@clisp.org>
32958
32959         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32960         * tests/test-acosl.c (x): New variable.
32961         (main): Store argument in x and fetch it from x.
32962         * tests/test-asinl.c (x): New variable.
32963         (main): Store argument in x and fetch it from x.
32964         * tests/test-atanl.c (x): New variable.
32965         (main): Store argument in x and fetch it from x.
32966         * tests/test-cosl.c (x): New variable.
32967         (main): Store argument in x and fetch it from x.
32968         * tests/test-expl.c (x): New variable.
32969         (main): Store argument in x and fetch it from x.
32970         * tests/test-logl.c (x): New variable.
32971         (main): Store argument in x and fetch it from x.
32972         * tests/test-sinl.c (x): New variable.
32973         (main): Store argument in x and fetch it from x.
32974         * tests/test-sqrtl.c (x): New variable.
32975         (main): Store argument in x and fetch it from x.
32976         * tests/test-tanl.c (x): New variable.
32977         (main): Store argument in x and fetch it from x.
32978
32979 2010-01-24  Bruno Haible  <bruno@clisp.org>
32980
32981         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32982         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32983         assignments to the initial TESTS_ENVIRONMENT.
32984         * doc/gnulib.texi (Unit test modules): Document it.
32985         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32986         TESTS_ENVIRONMENT.
32987         * modules/btowc-tests (Makefile.am): Likewise.
32988         * modules/c-stack-tests (Makefile.am): Likewise.
32989         * modules/c-strcase-tests (Makefile.am): Likewise.
32990         * modules/copy-file-tests (Makefile.am): Likewise.
32991         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32992         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32993         * modules/mbrtowc-tests (Makefile.am): Likewise.
32994         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32995         * modules/mbscasestr-tests (Makefile.am): Likewise.
32996         * modules/mbschr-tests (Makefile.am): Likewise.
32997         * modules/mbscspn-tests (Makefile.am): Likewise.
32998         * modules/mbsinit-tests (Makefile.am): Likewise.
32999         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33000         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33001         * modules/mbspbrk-tests (Makefile.am): Likewise.
33002         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33003         * modules/mbsrchr-tests (Makefile.am): Likewise.
33004         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33005         * modules/mbsspn-tests (Makefile.am): Likewise.
33006         * modules/mbsstr-tests (Makefile.am): Likewise.
33007         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33008         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33009         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33010         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33011         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33012         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33013         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33014         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33015         * modules/wcrtomb-tests (Makefile.am): Likewise.
33016         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33017         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33018         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33019         assignments from TESTS_ENVIRONMENT.
33020         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33021         augmentation.
33022         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33023         * modules/atexit-tests (Makefile.am): Likewise.
33024         * modules/binary-io-tests (Makefile.am): Likewise.
33025         * modules/closein-tests (Makefile.am): Likewise.
33026         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33027         * modules/exclude-tests (Makefile.am): Likewise.
33028         * modules/fflush-tests (Makefile.am): Likewise.
33029         * modules/fpending-tests (Makefile.am): Likewise.
33030         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33031         * modules/freadahead-tests (Makefile.am): Likewise.
33032         * modules/freadptr-tests (Makefile.am): Likewise.
33033         * modules/freadseek-tests (Makefile.am): Likewise.
33034         * modules/fseek-tests (Makefile.am): Likewise.
33035         * modules/fseeko-tests (Makefile.am): Likewise.
33036         * modules/ftell-tests (Makefile.am): Likewise.
33037         * modules/ftello-tests (Makefile.am): Likewise.
33038         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33039         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33040         * modules/lseek-tests (Makefile.am): Likewise.
33041         * modules/parse-duration-tests (Makefile.am): Likewise.
33042         * modules/perror-tests (Makefile.am): Likewise.
33043         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33044         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33045         * modules/pipe-tests (Makefile.am): Likewise.
33046         * modules/pread-tests (Makefile.am): Likewise.
33047         * modules/printf-posix-tests (Makefile.am): Likewise.
33048         * modules/select-tests (Makefile.am): Likewise.
33049         * modules/sigpipe-tests (Makefile.am): Likewise.
33050         * modules/tsearch-tests (Makefile.am): Likewise.
33051         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33052         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33053         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33054         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33055         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33056         * modules/version-etc-tests (Makefile.am): Likewise.
33057         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33058         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33059         * modules/xalloc-die-tests (Makefile.am): Likewise.
33060         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33061         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33062         * modules/xstrtol-tests (Makefile.am): Likewise.
33063         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33064         * modules/yesno-tests (Makefile.am): Likewise.
33065         Suggested by Jim Meyering.
33066
33067 2010-01-24  Bruno Haible  <bruno@clisp.org>
33068
33069         More documentation.
33070         * doc/gnulib.texi (Writing modules): New chapter.
33071         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33072         the new chapter.
33073
33074 2010-01-24  Jim Meyering  <meyering@redhat.com>
33075
33076         maint.mk: do not prepend "./" after filtering
33077         * top/maint.mk (_prepend_srcdir_prefix): New variable
33078         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33079         "./" when $(srcdir) is ".".
33080
33081         define STREQ(a,b) consistently, removing useless parentheses
33082         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33083         since the only risk is that "a" or "b" contains an unparenthesized
33084         comma, but if either did that, STREQ would have 3 or more arguments.
33085         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33086         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33087         * lib/hash-triple.c (STREQ): Likewise.
33088         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33089         * lib/getugroups.c (STREQ): Likewise.
33090
33091 2010-01-23  Jim Meyering  <meyering@redhat.com>
33092
33093         maint.mk: fix syntax-check in a non-srcdir build directory
33094         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33095         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33096
33097 2010-01-22  Jim Meyering  <meyering@redhat.com>
33098
33099         userspec: add unit tests
33100         * tests/test-userspec.c: New file.
33101         * modules/userspec-tests: Likewise.
33102
33103 2010-01-21  Jim Meyering  <meyering@redhat.com>
33104
33105         maint.mk: handle source file names containing "." robustly
33106         * top/maint.mk (_dot_escaped_srcdir): Define.
33107         (VC_LIST): Use it in LHS of sed substitution.
33108
33109 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33110
33111         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33112         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33113         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33114         from a non-srcdir build.
33115
33116 2010-01-20  Eric Blake  <ebb9@byu.net>
33117
33118         warn-on-use: use instead of link-warning
33119         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33120         * modules/unistd (Depends-on, Makefile.am): Likewise.
33121         * modules/arpa_inet (Depends-on): Replace link-warning with
33122         warn-on-use.
33123         (Makefile.am): Update rules accordingly.
33124         * modules/ctype (Depends-on, Makefile.am): Likewise.
33125         * modules/dirent (Depends-on, Makefile.am): Likewise.
33126         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33127         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33128         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33129         * modules/locale (Depends-on, Makefile.am): Likewise.
33130         * modules/math (Depends-on, Makefile.am): Likewise.
33131         * modules/search (Depends-on, Makefile.am): Likewise.
33132         * modules/signal (Depends-on, Makefile.am): Likewise.
33133         * modules/spawn (Depends-on, Makefile.am): Likewise.
33134         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33135         * modules/string (Depends-on, Makefile.am): Likewise.
33136         * modules/strings (Depends-on, Makefile.am): Likewise.
33137         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33138         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33139         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33140         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33141         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33142         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33143         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33144         * modules/wchar (Depends-on, Makefile.am): Likewise.
33145         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33146         should be poisoned.
33147         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33148         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33149         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33150         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33151         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33152         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33153         * m4/math_h.m4 (gl_MATH_H): Likewise.
33154         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33155         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33156         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33157         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33158         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33159         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33160         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33161         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33162         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33166         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33167         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33168         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33169         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33170         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33171         GL_LINK_WARNING.
33172         * lib/ctype.in.h: Likewise.
33173         * lib/dirent.in.h: Likewise.
33174         * lib/fcntl.in.h: Likewise.
33175         * lib/inttypes.in.h: Likewise.
33176         * lib/langinfo.in.h: Likewise.
33177         * lib/locale.in.h: Likewise.
33178         * lib/math.in.h: Likewise.
33179         * lib/search.in.h: Likewise.
33180         * lib/signal.in.h: Likewise.
33181         * lib/spawn.in.h: Likewise.
33182         * lib/stdio.in.h: Likewise.
33183         * lib/stdlib.in.h: Likewise.
33184         * lib/string.in.h: Likewise.
33185         * lib/strings.in.h: Likewise.
33186         * lib/sys_file.in.h: Likewise.
33187         * lib/sys_ioctl.in.h: Likewise.
33188         * lib/sys_select.in.h: Likewise.
33189         * lib/sys_socket.in.h: Likewise.
33190         * lib/sys_stat.in.h: Likewise.
33191         * lib/sys_times.in.h: Likewise.
33192         * lib/sys_utsname.in.h: Likewise.
33193         * lib/unistd.in.h: Likewise.
33194         * lib/wchar.in.h: Likewise.
33195
33196 2010-01-20  Bruno Haible  <bruno@clisp.org>
33197
33198         Avoid duplicate -lm.
33199         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33200         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33201         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33202         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33203         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33204         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33205         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33206         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33207         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33208         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33209         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33210         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33211         Reported by Paolo Bonzini.
33212
33213 2010-01-19  Bruno Haible  <bruno@clisp.org>
33214
33215         langinfo, nl_langinfo: Relicense under LGPLv2+.
33216         * modules/langinfo (License): Change to LGPLv2+.
33217         * modules/nl_langinfo (License): Likewise.
33218         Patch by David Lutterkort <lutter@redhat.com>.
33219
33220 2010-01-19  Bruno Haible  <bruno@clisp.org>
33221
33222         Avoid compilation error with cc on OSF/1 5.1.
33223         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33224         statement, not before.
33225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33226
33227 2010-01-18  Bruno Haible  <bruno@clisp.org>
33228
33229         Avoid a link error due to the __printf__ symbol.
33230         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33231         and 2.6.x.
33232         (__format__, __printf__): Remove definitions.
33233         * lib/argp-fmtstream.h: Likewise.
33234         * lib/argp.h: Likewise.
33235         * lib/error.h: Likewise.
33236         * lib/vasnprintf.h: Likewise.
33237         * lib/xprintf.h: Likewise.
33238         * lib/xvasprintf.h: Likewise.
33239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33240
33241 2010-01-18  Bruno Haible  <bruno@clisp.org>
33242
33243         Tests for module 'tanl'.
33244         * modules/tanl-tests: New file.
33245         * tests/test-tanl.c: New file.
33246
33247         Tests for module 'sqrtl'.
33248         * modules/sqrtl-tests: New file.
33249         * tests/test-sqrtl.c: New file.
33250
33251         Tests for module 'sinl'.
33252         * modules/sinl-tests: New file.
33253         * tests/test-sinl.c: New file.
33254
33255         Tests for module 'logl'.
33256         * modules/logl-tests: New file.
33257         * tests/test-logl.c: New file.
33258
33259         Tests for module 'expl'.
33260         * modules/expl-tests: New file.
33261         * tests/test-expl.c: New file.
33262
33263         Tests for module 'cosl'.
33264         * modules/cosl-tests: New file.
33265         * tests/test-cosl.c: New file.
33266
33267         Tests for module 'atanl'.
33268         * modules/atanl-tests: New file.
33269         * tests/test-atanl.c: New file.
33270
33271         Tests for module 'asinl'.
33272         * modules/asinl-tests: New file.
33273         * tests/test-asinl.c: New file.
33274
33275         Tests for module 'acosl'.
33276         * modules/acosl-tests: New file.
33277         * tests/test-acosl.c: New file.
33278
33279         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33280         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33281         tanl): Use the standard gnulib idiom.
33282         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33283         * lib/sinl.c: Likewise.
33284         * lib/tanl.c: Don't include trigl.c.
33285         (kernel_tanl): Make static.
33286         * lib/sincosl.c: Include trigl.h first.
33287         * lib/trigl.c: Likewise.
33288         * m4/acosl.m4: New file.
33289         * m4/asinl.m4: New file.
33290         * m4/atanl.m4: New file.
33291         * m4/cosl.m4: New file.
33292         * m4/expl.m4: New file.
33293         * m4/logl.m4: New file.
33294         * m4/sinl.m4: New file.
33295         * m4/sqrtl.m4: New file.
33296         * m4/tanl.m4: New file.
33297         * m4/mathl.m4: Remove file.
33298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33299         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33300         Don't initialize GNULIB_MATHL.
33301         * modules/acosl: New file.
33302         * modules/asinl: New file.
33303         * modules/atanl: New file.
33304         * modules/cosl: New file.
33305         * modules/expl: New file.
33306         * modules/logl: New file.
33307         * modules/sinl: New file.
33308         * modules/sqrtl: New file.
33309         * modules/tanl: New file.
33310         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33311         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33312         substitute GNULIB_MATHL.
33313         * modules/mathl: Rewritten.
33314         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33315         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33316         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33317         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33318         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33319         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33320         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33321         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33322         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33323
33324 2010-01-18  Bruno Haible  <bruno@clisp.org>
33325
33326         sqrt: Make gl_FUNC_SQRT requirable.
33327         * m4/sqrt.m4: New file.
33328         * modules/sqrt (Files): Add it.
33329         (configure.ac): Invoke gl_FUNC_SQRT.
33330
33331 2010-01-18  Bruno Haible  <bruno@clisp.org>
33332
33333         New modules for common <math.h> functions.
33334         * m4/mathfunc.m4: New file.
33335         * modules/acos: New file.
33336         * modules/asin: New file.
33337         * modules/atan: New file.
33338         * modules/atan2: New file.
33339         * modules/cbrt: New file.
33340         * modules/copysign: New file.
33341         * modules/cos: New file.
33342         * modules/cosh: New file.
33343         * modules/erf: New file.
33344         * modules/erfc: New file.
33345         * modules/exp: New file.
33346         * modules/fabs: New file.
33347         * modules/fmod: New file.
33348         * modules/hypot: New file.
33349         * modules/j0: New file.
33350         * modules/j1: New file.
33351         * modules/jn: New file.
33352         * modules/ldexp: New file.
33353         * modules/lgamma: New file.
33354         * modules/log: New file.
33355         * modules/log10: New file.
33356         * modules/log1p: New file.
33357         * modules/logb: New file.
33358         * modules/modf: New file.
33359         * modules/nextafter: New file.
33360         * modules/pow: New file.
33361         * modules/remainder: New file.
33362         * modules/rint: New file.
33363         * modules/sin: New file.
33364         * modules/sinh: New file.
33365         * modules/sqrt: New file.
33366         * modules/tan: New file.
33367         * modules/tanh: New file.
33368         * modules/y0: New file.
33369         * modules/y1: New file.
33370         * modules/yn: New file.
33371         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33372         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33373         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33374         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33375         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33376         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33377         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33378         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33379         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33380         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33381         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33382         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33383         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33384         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33385         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33386         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33387         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33388         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33389         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33390         * doc/posix-functions/log.texi: Mention the 'log' module.
33391         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33392         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33393         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33394         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33395         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33396         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33397         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33398         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33399         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33400         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33401         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33402         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33403         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33404         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33405         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33406         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33407
33408 2010-01-18  Jim Meyering  <meyering@redhat.com>
33409
33410         ignore-value: relax license to LGPLv2+
33411         * modules/ignore-value (License): Relax to LGPLv2+.
33412
33413         getdate: don't leak when TZ contains two or more '"'s
33414         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33415         double quote in TZ after the first one.
33416
33417         readtokens: do not leak internal token_lengths buffer
33418         * lib/readtokens.c (readtokens): Free the local, lengths,
33419         when the supplied "token_lengths" parameter is NULL.
33420
33421 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33422
33423         Fix a couple of missing LIBTHREAD link failures on AIX.
33424         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33425         $(LIBTHREAD).
33426         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33427
33428         Link test-poll against INET_PTON_LIB.
33429         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33430         for inet_pton on Solaris 10.
33431
33432 2010-01-17  Bruno Haible  <bruno@clisp.org>
33433
33434         unistdio/*-sprintf: Fix typo in module description.
33435         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33436         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33437         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33438         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33439         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33440         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33441         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33443
33444 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33445
33446         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33447         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33448         variables in shell case patterns, for AIX and HP-UX ksh.
33449
33450         Split large sed scripts, for HP-UX sed.
33451         * modules/stdio: Split sed scripts around 50 sed commands,
33452         to avoid HP-UX limit of 99 commands, in the near future.
33453         * modules/string: Likewise.
33454         * modules/unistd: Likewise.
33455
33456         gnulib-tool: avoid writing in the current directory.
33457         * gnulib-tool (func_emit_lib_Makefile_am)
33458         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33459         not in the current directory, so concurrent gnulib-tool
33460         instances do not interfere.
33461
33462 2010-01-16  Jim Meyering  <meyering@redhat.com>
33463
33464         doc: update users.txt
33465         * users.txt: Add grep.
33466         (diffutils, gzip): Update URLs.
33467
33468 2010-01-12  Bruno Haible  <bruno@clisp.org>
33469
33470         posix_spawn: Avoid test failure on Cygwin.
33471         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33472         characters.
33473         Reported by Simon Josefsson.
33474
33475 2010-01-12  Bruno Haible  <bruno@clisp.org>
33476
33477         * tests/test-cond.c (main): When skipping the test, show the reason.
33478
33479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33480
33481         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33482
33483 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33484
33485         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33486         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33487
33488 2010-01-12  Eric Blake  <ebb9@byu.net>
33489
33490         build: guarantee AS_VAR_IF
33491         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33492         (gl_AS_VAR_IF): Move...
33493         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33494         Reported by Simon Josefsson.
33495
33496 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33497
33498         * lib/stdio.in.h: Fix typo.
33499
33500 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33501
33502         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33503         libgpg-error.
33504
33505 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33506
33507         * tests/test-xalloc-die.sh: Use $EXEEXT.
33508
33509 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33510             Bruno Haible  <bruno@clisp.org>
33511
33512         getlogin, getlogin_r: Avoid test failure.
33513         * tests/test-getlogin.c: Include <stdio.h>.
33514         (main): Skip the test when the function fails because stdin is not a
33515         tty.
33516         * tests/test-getlogin_r.c: Include <stdio.h>.
33517         (main): Skip the test when the function fails because stdin is not a
33518         tty.
33519
33520 2010-01-11  Eric Blake  <ebb9@byu.net>
33521
33522         tests: avoid more large file warnings
33523         * tests/test-fflush.c: Avoid warning about ftell use.
33524         * tests/test-fseek.c: Avoid warning about fseek use.
33525
33526 2010-01-10  Bruno Haible  <bruno@clisp.org>
33527
33528         nproc: Work better on Linux when /proc and /sys are not mounted.
33529         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33530         as lower bound when, on glibc/Linux systems,
33531         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33532         Suggested by Pádraig Brady <P@draigbrady.com>.
33533         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33534
33535         nproc: Refactor.
33536         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33537         extracted from num_processors.
33538         (num_processors): Call it.
33539
33540 2010-01-11  Jim Meyering  <meyering@redhat.com>
33541
33542         utimecmp: avoid new warning from upcoming gcc-4.5.0
33543         * lib/utimecmp.c (BILLION): Define using #define rather than an
33544         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33545
33546 2010-01-11  Eric Blake  <ebb9@byu.net>
33547
33548         math: add portability warnings for classification macros
33549         * modules/math (Depends-on): Add warn-on-use.
33550         (Makefile.am): Provide new substitutions.
33551         * m4/math_h.m4 (gl_MATH_H): Require inline.
33552         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33553         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33554         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33555         implement warnings.
33556
33557         unistd: warn on use of environ without module
33558         * modules/unistd (Depends-on): Add warn-on-use.
33559         (Makefile.am): Provide new substitutions.
33560         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33561         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33562
33563         stdio: warn on suspicious uses
33564         * modules/stdio (Depends-on): Add warn-on-use.
33565         (Makefile.am): Provide new substitutions.
33566         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33567         fseeko.
33568         * lib/stdio.in.h (gets): Always warn on use.
33569         (fseek, ftell): Adjust when warnings are issued, and honor
33570         _GL_NO_LARGE_FILES as a way to silence the warning.
33571         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33572         any warning about large file offsets.
33573         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33574         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33575         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33576         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33577         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33578         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33579         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33580         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33581
33582         warn-on-use: new module
33583         * modules/warn-on-use: New file.
33584         * build-aux/warn-on-use.h: Likewise.
33585         * m4/warn-on-use.m4: Likewise.
33586         * MODULES.html.sh (Support for building): Mention it.
33587
33588 2010-01-10  Bruno Haible  <bruno@clisp.org>
33589
33590         Tests for module 'unistr/u32-strdup'.
33591         * modules/unistr/u32-strdup-tests: New file.
33592         * tests/unistr/test-u32-strdup.c: New file.
33593
33594         Tests for module 'unistr/u16-strdup'.
33595         * modules/unistr/u16-strdup-tests: New file.
33596         * tests/unistr/test-u16-strdup.c: New file.
33597
33598         Tests for module 'unistr/u8-strdup'.
33599         * modules/unistr/u8-strdup-tests: New file.
33600         * tests/unistr/test-u8-strdup.c: New file.
33601         * tests/unistr/test-strdup.h: New file.
33602
33603         Tests for module 'unistr/u32-strncmp'.
33604         * modules/unistr/u32-strncmp-tests: New file.
33605         * tests/unistr/test-u32-strncmp.c: New file.
33606
33607         Tests for module 'unistr/u16-strncmp'.
33608         * modules/unistr/u16-strncmp-tests: New file.
33609         * tests/unistr/test-u16-strncmp.c: New file.
33610
33611         Tests for module 'unistr/u8-strncmp'.
33612         * modules/unistr/u8-strncmp-tests: New file.
33613         * tests/unistr/test-u8-strncmp.c: New file.
33614         * tests/unistr/test-strncmp.h: New file.
33615
33616         Tests for module 'unistr/u32-strcoll'.
33617         * modules/unistr/u32-strcoll-tests: New file.
33618         * tests/unistr/test-u32-strcoll.c: New file.
33619
33620         Tests for module 'unistr/u16-strcoll'.
33621         * modules/unistr/u16-strcoll-tests: New file.
33622         * tests/unistr/test-u16-strcoll.c: New file.
33623
33624         Tests for module 'unistr/u8-strcoll'.
33625         * modules/unistr/u8-strcoll-tests: New file.
33626         * tests/unistr/test-u8-strcoll.c: New file.
33627
33628         Tests for module 'unistr/u32-strcmp'.
33629         * modules/unistr/u32-strcmp-tests: New file.
33630         * tests/unistr/test-u32-strcmp.c: New file.
33631         * tests/unistr/test-u32-strcmp.h: New file.
33632
33633         Tests for module 'unistr/u16-strcmp'.
33634         * modules/unistr/u16-strcmp-tests: New file.
33635         * tests/unistr/test-u16-strcmp.c: New file.
33636         * tests/unistr/test-u16-strcmp.h: New file.
33637
33638         Tests for module 'unistr/u8-strcmp'.
33639         * modules/unistr/u8-strcmp-tests: New file.
33640         * tests/unistr/test-u8-strcmp.c: New file.
33641         * tests/unistr/test-u8-strcmp.h: New file.
33642         * tests/unistr/test-strcmp.h: New file.
33643
33644         Tests for module 'unistr/u32-strncat'.
33645         * modules/unistr/u32-strncat-tests: New file.
33646         * tests/unistr/test-u32-strncat.c: New file.
33647
33648         Tests for module 'unistr/u16-strncat'.
33649         * modules/unistr/u16-strncat-tests: New file.
33650         * tests/unistr/test-u16-strncat.c: New file.
33651
33652         Tests for module 'unistr/u8-strncat'.
33653         * modules/unistr/u8-strncat-tests: New file.
33654         * tests/unistr/test-u8-strncat.c: New file.
33655         * tests/unistr/test-strncat.h: New file.
33656
33657         Tests for module 'unistr/u32-strcat'.
33658         * modules/unistr/u32-strcat-tests: New file.
33659         * tests/unistr/test-u32-strcat.c: New file.
33660
33661         Tests for module 'unistr/u16-strcat'.
33662         * modules/unistr/u16-strcat-tests: New file.
33663         * tests/unistr/test-u16-strcat.c: New file.
33664
33665         Tests for module 'unistr/u8-strcat'.
33666         * modules/unistr/u8-strcat-tests: New file.
33667         * tests/unistr/test-u8-strcat.c: New file.
33668         * tests/unistr/test-strcat.h: New file.
33669
33670         Tests for module 'unistr/u32-stpncpy'.
33671         * modules/unistr/u32-stpncpy-tests: New file.
33672         * tests/unistr/test-u32-stpncpy.c: New file.
33673
33674         Tests for module 'unistr/u16-stpncpy'.
33675         * modules/unistr/u16-stpncpy-tests: New file.
33676         * tests/unistr/test-u16-stpncpy.c: New file.
33677
33678         Tests for module 'unistr/u8-stpncpy'.
33679         * modules/unistr/u8-stpncpy-tests: New file.
33680         * tests/unistr/test-u8-stpncpy.c: New file.
33681         * tests/unistr/test-stpncpy.h: New file.
33682
33683         Tests for module 'unistr/u32-strncpy'.
33684         * modules/unistr/u32-strncpy-tests: New file.
33685         * tests/unistr/test-u32-strncpy.c: New file.
33686
33687         Tests for module 'unistr/u16-strncpy'.
33688         * modules/unistr/u16-strncpy-tests: New file.
33689         * tests/unistr/test-u16-strncpy.c: New file.
33690
33691         Tests for module 'unistr/u8-strncpy'.
33692         * modules/unistr/u8-strncpy-tests: New file.
33693         * tests/unistr/test-u8-strncpy.c: New file.
33694         * tests/unistr/test-strncpy.h: New file.
33695
33696         Tests for module 'unistr/u32-stpcpy'.
33697         * modules/unistr/u32-stpcpy-tests: New file.
33698         * tests/unistr/test-u32-stpcpy.c: New file.
33699
33700         Tests for module 'unistr/u16-stpcpy'.
33701         * modules/unistr/u16-stpcpy-tests: New file.
33702         * tests/unistr/test-u16-stpcpy.c: New file.
33703
33704         Tests for module 'unistr/u8-stpcpy'.
33705         * modules/unistr/u8-stpcpy-tests: New file.
33706         * tests/unistr/test-u8-stpcpy.c: New file.
33707         * tests/unistr/test-stpcpy.h: New file.
33708
33709         Tests for module 'unistr/u32-strcpy'.
33710         * modules/unistr/u32-strcpy-tests: New file.
33711         * tests/unistr/test-u32-strcpy.c: New file.
33712
33713         Tests for module 'unistr/u16-strcpy'.
33714         * modules/unistr/u16-strcpy-tests: New file.
33715         * tests/unistr/test-u16-strcpy.c: New file.
33716
33717         Tests for module 'unistr/u8-strcpy'.
33718         * modules/unistr/u8-strcpy-tests: New file.
33719         * tests/unistr/test-u8-strcpy.c: New file.
33720         * tests/unistr/test-strcpy.h: New file.
33721
33722         Tests for module 'unistr/u32-strnlen'.
33723         * modules/unistr/u32-strnlen-tests: New file.
33724         * tests/unistr/test-u32-strnlen.c: New file.
33725
33726         Tests for module 'unistr/u16-strnlen'.
33727         * modules/unistr/u16-strnlen-tests: New file.
33728         * tests/unistr/test-u16-strnlen.c: New file.
33729
33730         Tests for module 'unistr/u8-strnlen'.
33731         * modules/unistr/u8-strnlen-tests: New file.
33732         * tests/unistr/test-u8-strnlen.c: New file.
33733         * tests/unistr/test-strnlen.h: New file.
33734
33735         Tests for module 'unistr/u32-strlen'.
33736         * modules/unistr/u32-strlen-tests: New file.
33737         * tests/unistr/test-u32-strlen.c: New file.
33738
33739         Tests for module 'unistr/u16-strlen'.
33740         * modules/unistr/u16-strlen-tests: New file.
33741         * tests/unistr/test-u16-strlen.c: New file.
33742
33743         Tests for module 'unistr/u8-strlen'.
33744         * modules/unistr/u8-strlen-tests: New file.
33745         * tests/unistr/test-u8-strlen.c: New file.
33746
33747         Tests for module 'unistr/u32-prev'.
33748         * modules/unistr/u32-prev-tests: New file.
33749         * tests/unistr/test-u32-prev.c: New file.
33750
33751         Tests for module 'unistr/u16-prev'.
33752         * modules/unistr/u16-prev-tests: New file.
33753         * tests/unistr/test-u16-prev.c: New file.
33754
33755         Tests for module 'unistr/u8-prev'.
33756         * modules/unistr/u8-prev-tests: New file.
33757         * tests/unistr/test-u8-prev.c: New file.
33758
33759         Tests for module 'unistr/u32-next'.
33760         * modules/unistr/u32-next-tests: New file.
33761         * tests/unistr/test-u32-next.c: New file.
33762
33763         Tests for module 'unistr/u16-next'.
33764         * modules/unistr/u16-next-tests: New file.
33765         * tests/unistr/test-u16-next.c: New file.
33766
33767         Tests for module 'unistr/u8-next'.
33768         * modules/unistr/u8-next-tests: New file.
33769         * tests/unistr/test-u8-next.c: New file.
33770
33771         Tests for module 'unistr/u32-strmbtouc'.
33772         * modules/unistr/u32-strmbtouc-tests: New file.
33773         * tests/unistr/test-u32-strmbtouc.c: New file.
33774
33775         Tests for module 'unistr/u16-strmbtouc'.
33776         * modules/unistr/u16-strmbtouc-tests: New file.
33777         * tests/unistr/test-u16-strmbtouc.c: New file.
33778
33779         Tests for module 'unistr/u8-strmbtouc'.
33780         * modules/unistr/u8-strmbtouc-tests: New file.
33781         * tests/unistr/test-u8-strmbtouc.c: New file.
33782
33783         Tests for module 'unistr/u32-strmblen'.
33784         * modules/unistr/u32-strmblen-tests: New file.
33785         * tests/unistr/test-u32-strmblen.c: New file.
33786
33787         Tests for module 'unistr/u16-strmblen'.
33788         * modules/unistr/u16-strmblen-tests: New file.
33789         * tests/unistr/test-u16-strmblen.c: New file.
33790
33791         Tests for module 'unistr/u8-strmblen'.
33792         * modules/unistr/u8-strmblen-tests: New file.
33793         * tests/unistr/test-u8-strmblen.c: New file.
33794
33795         Tests for module 'unistr/u32-cpy-alloc'.
33796         * modules/unistr/u32-cpy-alloc-tests: New file.
33797         * tests/unistr/test-u32-cpy-alloc.c: New file.
33798
33799         Tests for module 'unistr/u16-cpy-alloc'.
33800         * modules/unistr/u16-cpy-alloc-tests: New file.
33801         * tests/unistr/test-u16-cpy-alloc.c: New file.
33802
33803         Tests for module 'unistr/u8-cpy-alloc'.
33804         * modules/unistr/u8-cpy-alloc-tests: New file.
33805         * tests/unistr/test-u8-cpy-alloc.c: New file.
33806         * tests/unistr/test-cpy-alloc.h: New file.
33807
33808         Tests for module 'unistr/u32-mbsnlen'.
33809         * modules/unistr/u32-mbsnlen-tests: New file.
33810         * tests/unistr/test-u32-mbsnlen.c: New file.
33811
33812         Tests for module 'unistr/u16-mbsnlen'.
33813         * modules/unistr/u16-mbsnlen-tests: New file.
33814         * tests/unistr/test-u16-mbsnlen.c: New file.
33815
33816         Tests for module 'unistr/u8-mbsnlen'.
33817         * modules/unistr/u8-mbsnlen-tests: New file.
33818         * tests/unistr/test-u8-mbsnlen.c: New file.
33819
33820         Tests for module 'unistr/u32-chr'.
33821         * modules/unistr/u32-chr-tests: New file.
33822         * tests/unistr/test-u32-chr.c: New file.
33823
33824         Tests for module 'unistr/u16-chr'.
33825         * modules/unistr/u16-chr-tests: New file.
33826         * tests/unistr/test-u16-chr.c: New file.
33827
33828         Tests for module 'unistr/u8-chr'.
33829         * modules/unistr/u8-chr-tests: New file.
33830         * tests/unistr/test-u8-chr.c: New file.
33831         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33832
33833         Tests for module 'unistr/u32-cmp2'.
33834         * modules/unistr/u32-cmp2-tests: New file.
33835         * tests/unistr/test-u32-cmp2.c: New file.
33836
33837         Tests for module 'unistr/u16-cmp2'.
33838         * modules/unistr/u16-cmp2-tests: New file.
33839         * tests/unistr/test-u16-cmp2.c: New file.
33840
33841         Tests for module 'unistr/u8-cmp2'.
33842         * modules/unistr/u8-cmp2-tests: New file.
33843         * tests/unistr/test-u8-cmp2.c: New file.
33844         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33845
33846         Tests for module 'unistr/u32-cmp'.
33847         * modules/unistr/u32-cmp-tests: New file.
33848         * tests/unistr/test-u32-cmp.c: New file.
33849
33850         Tests for module 'unistr/u16-cmp'.
33851         * modules/unistr/u16-cmp-tests: New file.
33852         * tests/unistr/test-u16-cmp.c: New file.
33853
33854         Tests for module 'unistr/u8-cmp'.
33855         * modules/unistr/u8-cmp-tests: New file.
33856         * tests/unistr/test-u8-cmp.c: New file.
33857         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33858
33859         Tests for module 'unistr/u32-set'.
33860         * modules/unistr/u32-set-tests: New file.
33861         * tests/unistr/test-u32-set.c: New file.
33862
33863         Tests for module 'unistr/u16-set'.
33864         * modules/unistr/u16-set-tests: New file.
33865         * tests/unistr/test-u16-set.c: New file.
33866
33867         Tests for module 'unistr/u8-set'.
33868         * modules/unistr/u8-set-tests: New file.
33869         * tests/unistr/test-u8-set.c: New file.
33870         * tests/unistr/test-set.h: New file.
33871
33872         Tests for module 'unistr/u32-move'.
33873         * modules/unistr/u32-move-tests: New file.
33874         * tests/unistr/test-u32-move.c: New file.
33875
33876         Tests for module 'unistr/u16-move'.
33877         * modules/unistr/u16-move-tests: New file.
33878         * tests/unistr/test-u16-move.c: New file.
33879
33880         Tests for module 'unistr/u8-move'.
33881         * modules/unistr/u8-move-tests: New file.
33882         * tests/unistr/test-u8-move.c: New file.
33883         * tests/unistr/test-move.h: New file.
33884
33885         Tests for module 'unistr/u32-cpy'.
33886         * modules/unistr/u32-cpy-tests: New file.
33887         * tests/unistr/test-u32-cpy.c: New file.
33888
33889         Tests for module 'unistr/u16-cpy'.
33890         * modules/unistr/u16-cpy-tests: New file.
33891         * tests/unistr/test-u16-cpy.c: New file.
33892
33893         Tests for module 'unistr/u8-cpy'.
33894         * modules/unistr/u8-cpy-tests: New file.
33895         * tests/unistr/test-u8-cpy.c: New file.
33896         * tests/unistr/test-cpy.h: New file.
33897
33898 2010-01-09  Bruno Haible  <bruno@clisp.org>
33899
33900         Tests for module 'unistr/u32-uctomb'.
33901         * modules/unistr/u32-uctomb-tests: New file.
33902         * tests/unistr/test-u32-uctomb.c: New file.
33903
33904         Tests for module 'unistr/u16-uctomb'.
33905         * modules/unistr/u16-uctomb-tests: New file.
33906         * tests/unistr/test-u16-uctomb.c: New file.
33907
33908         Tests for module 'unistr/u8-uctomb'.
33909         * modules/unistr/u8-uctomb-tests: New file.
33910         * tests/unistr/test-u8-uctomb.c: New file.
33911
33912         Tests for module 'unistr/u32-mbtoucr'.
33913         * modules/unistr/u32-mbtoucr-tests: New file.
33914         * tests/unistr/test-u32-mbtoucr.c: New file.
33915
33916         Tests for module 'unistr/u16-mbtoucr'.
33917         * modules/unistr/u16-mbtoucr-tests: New file.
33918         * tests/unistr/test-u16-mbtoucr.c: New file.
33919
33920         Tests for module 'unistr/u8-mbtoucr'.
33921         * modules/unistr/u8-mbtoucr-tests: New file.
33922         * tests/unistr/test-u8-mbtoucr.c: New file.
33923
33924         Tests for module 'unistr/u32-mbtouc'.
33925         * modules/unistr/u32-mbtouc-tests: New file.
33926         * tests/unistr/test-u32-mbtouc.c: New file.
33927
33928         Tests for module 'unistr/u16-mbtouc'.
33929         * modules/unistr/u16-mbtouc-tests: New file.
33930         * tests/unistr/test-u16-mbtouc.c: New file.
33931
33932         Tests for module 'unistr/u8-mbtouc'.
33933         * modules/unistr/u8-mbtouc-tests: New file.
33934         * tests/unistr/test-u8-mbtouc.c: New file.
33935
33936         Tests for module 'unistr/u32-mbtouc-unsafe'.
33937         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33938         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33939         * tests/unistr/test-u32-mbtouc.h: New file.
33940
33941         Tests for module 'unistr/u16-mbtouc-unsafe'.
33942         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33943         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33944         * tests/unistr/test-u16-mbtouc.h: New file.
33945
33946         Tests for module 'unistr/u8-mbtouc-unsafe'.
33947         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33948         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33949         * tests/unistr/test-u8-mbtouc.h: New file.
33950
33951         Tests for module 'unistr/u32-mblen'.
33952         * modules/unistr/u32-mblen-tests: New file.
33953         * tests/unistr/test-u32-mblen.c: New file.
33954
33955         Tests for module 'unistr/u16-mblen'.
33956         * modules/unistr/u16-mblen-tests: New file.
33957         * tests/unistr/test-u16-mblen.c: New file.
33958
33959         Tests for module 'unistr/u8-mblen'.
33960         * modules/unistr/u8-mblen-tests: New file.
33961         * tests/unistr/test-u8-mblen.c: New file.
33962
33963         Tests for module 'unistr/u32-to-u16'.
33964         * modules/unistr/u32-to-u16-tests: New file.
33965         * tests/unistr/test-u32-to-u16.c: New file.
33966
33967         Tests for module 'unistr/u32-to-u8'.
33968         * modules/unistr/u32-to-u8-tests: New file.
33969         * tests/unistr/test-u32-to-u8.c: New file.
33970
33971         Tests for module 'unistr/u16-to-u32'.
33972         * modules/unistr/u16-to-u32-tests: New file.
33973         * tests/unistr/test-u16-to-u32.c: New file.
33974
33975         Tests for module 'unistr/u16-to-u8'.
33976         * modules/unistr/u16-to-u8-tests: New file.
33977         * tests/unistr/test-u16-to-u8.c: New file.
33978
33979         Tests for module 'unistr/u8-to-u32'.
33980         * modules/unistr/u8-to-u32-tests: New file.
33981         * tests/unistr/test-u8-to-u32.c: New file.
33982
33983         Tests for module 'unistr/u8-to-u16'.
33984         * modules/unistr/u8-to-u16-tests: New file.
33985         * tests/unistr/test-u8-to-u16.c: New file.
33986
33987         Tests for module 'unistr/u32-check'.
33988         * modules/unistr/u32-check-tests: New file.
33989         * tests/unistr/test-u32-check.c: New file.
33990
33991         Tests for module 'unistr/u16-check'.
33992         * modules/unistr/u16-check-tests: New file.
33993         * tests/unistr/test-u16-check.c: New file.
33994
33995         Tests for module 'unistr/u8-check'.
33996         * modules/unistr/u8-check-tests: New file.
33997         * tests/unistr/test-u8-check.c: New file.
33998
33999         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34000         (category_equals): New function.
34001         (main): Add more tests.
34002         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34003
34004         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34005
34006 2010-01-10  Bruno Haible  <bruno@clisp.org>
34007
34008         unistr/u*-strcoll: Try harder to distinguish different strings.
34009         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34010         compare s1 and s2 to see if they are different.
34011
34012 2010-01-10  Bruno Haible  <bruno@clisp.org>
34013
34014         unistr/u*-stpncpy: Fix the return value.
34015         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34016         description of the return value consistent with stpncpy in glibc.
34017         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34018         written non-NUL unit.
34019
34020 2010-01-10  Bruno Haible  <bruno@clisp.org>
34021
34022         unistr/u*-next: Add missing dependencies.
34023         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34024         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34025         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34026
34027 2010-01-10  Bruno Haible  <bruno@clisp.org>
34028
34029         unistr/u8-mbsnlen: Fix return value for incomplete character.
34030         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34031         u8_mblen.
34032         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34033         Remove unistr/u8-mblen.
34034         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34035         u16_mblen.
34036         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34037         Remove unistr/u16-mblen.
34038
34039 2010-01-10  Bruno Haible  <bruno@clisp.org>
34040
34041         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34042         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34043         Reported by Brian Gough <bjg@gnu.org> and
34044         Chris Clayton <chris2553@googlemail.com> via
34045         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34046
34047 2010-01-09  Bruno Haible  <bruno@clisp.org>
34048
34049         unistr/u16-to-u32: Reject invalid input.
34050         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34051         u16_mbtouc.
34052         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34053         Remove unistr/u16-mbtouc.
34054
34055         unistr/u16-to-u8: Reject invalid input.
34056         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34057         u16_mbtouc.
34058         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34059         Remove unistr/u16-mbtouc.
34060
34061         unistr/u8-to-u32: Reject invalid input.
34062         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34063         u8_mbtouc.
34064         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34065         Remove unistr/u8-mbtouc.
34066
34067         unistr/u8-to-u16: Reject invalid input.
34068         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34069         u8_mbtouc.
34070         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34071         Remove unistr/u8-mbtouc.
34072
34073 2010-01-09  Bruno Haible  <bruno@clisp.org>
34074
34075         Tests for module 'getlogin'.
34076         * modules/getlogin-tests: New file.
34077         * tests/test-getlogin.c: New file.
34078
34079         New module 'getlogin'.
34080         * lib/unistd.in.h (getlogin): New declaration.
34081         * lib/getlogin.c: New file.
34082         * m4/getlogin.m4: New file.
34083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34084         HAVE_GETLOGIN.
34085         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34086         HAVE_GETLOGIN.
34087         * modules/getlogin: New file.
34088         * doc/posix-functions/getlogin.texi: Mention the new module.
34089         Reported by John W. Eaton <jwe@gnu.org>.
34090
34091 2010-01-09  Bruno Haible  <bruno@clisp.org>
34092
34093         getlogin_r: Support for native Windows.
34094         * lib/getlogin_r.c: Include <windows.h>
34095         (getlogin_r): Implement for native Windows.
34096         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34097         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34098         via John W. Eaton <jwe@gnu.org>.
34099
34100 2010-01-09  Bruno Haible  <bruno@clisp.org>
34101
34102         getlogin_r: Small fixes.
34103         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34104         succeeds.
34105         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34106         before testing whether getlogin_r is declared. No need to set
34107         HAVE_DECL_GETLOGIN_R to 1.
34108         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34109
34110 2010-01-09  Bruno Haible  <bruno@clisp.org>
34111
34112         * lib/unistd.in.h (getlogin_r): Add comment.
34113
34114 2010-01-09  Bruno Haible  <bruno@clisp.org>
34115
34116         Tests for module 'getlogin_r'.
34117         * modules/getlogin_r-tests: New file.
34118         * tests/test-getlogin_r.c: New file.
34119
34120 2010-01-09  Jim Meyering  <meyering@redhat.com>
34121
34122         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34123         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34124         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34125
34126 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34127
34128         * lib/dup2.c (rpl_dup2): Improve comment.
34129
34130 2010-01-08  Eric Blake  <ebb9@byu.net>
34131
34132         maint.mk: allow packages to add makefile @@ exceptions
34133         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34134         (sc_makefile_check): Rename...
34135         (sc_makefile_at_at_check): ...to this, and use hook.
34136
34137         dup2: work around mingw bug
34138         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34139         Reported by Simon Josefsson.
34140
34141 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34142
34143         glob: Fix C++ compilation.
34144         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34145         C++.
34146
34147 2010-01-07  Bruno Haible  <bruno@clisp.org>
34148
34149         Fix indentation of wctype.in.h, broken since 2007-01-06.
34150         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34151
34152 2010-01-07  Bruno Haible  <bruno@clisp.org>
34153
34154         mbslen: Avoid collision with system function.
34155         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34156         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34157         * m4/mbslen.m4: New file.
34158         * modules/mbslen (Files): Add it.
34159         (configure.ac): Invoke gl_MBSLEN.
34160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34161         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34162         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34163         via Ian Beckwith <ianb@erislabs.net>.
34164
34165 2010-01-07  Bruno Haible  <bruno@clisp.org>
34166
34167         dirent: Document the last fix.
34168         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34169
34170 2010-01-07  Bruno Haible  <bruno@clisp.org>
34171
34172         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34173         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34174         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34175         va_list are defined.
34176         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34177         Reported by Eric Blake.
34178
34179 2010-01-07  Bruno Haible  <bruno@clisp.org>
34180
34181         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34182         * modules/xlist (Depends-on): Add 'list',
34183         * modules/xoset (Depends-on): Add 'oset'.
34184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34185
34186 2010-01-07  Bruno Haible  <bruno@clisp.org>
34187
34188         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34189         * doc/posix-functions/strncasecmp.texi: Likewise.
34190
34191 2010-01-07  Bruno Haible  <bruno@clisp.org>
34192
34193         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34194
34195 2010-01-07  John W. Eaton  <jwe@octave.org>
34196
34197         wctype: allow C++ use
34198         * lib/wctype.in.h: Add extern "C" block for C++.
34199
34200 2010-01-06  Eric Blake  <ebb9@byu.net>
34201
34202         maint.mk: detect incorrect GFDL usage
34203         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34204
34205 2010-01-06  Jim Meyering  <meyering@redhat.com>
34206         and Eric Blake  <ebb9@byu.net>
34207
34208         maint.mk: ignore multi-line copyright in NEWS
34209         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34210
34211 2010-01-06  Eric Blake  <ebb9@byu.net>
34212
34213         select: add missing dependency
34214         * modules/select-tests (Depends-on): Move sockets dependency...
34215         * modules/select (Depends-on): ...here.
34216         Reported by Ian Beckwith.
34217
34218         doc: regenerate INSTALL
34219         * doc/INSTALL: Reflect recent autoconf update.
34220         * doc/INSTALL.ISO: Likewise.
34221         * doc/INSTALL.UTF-8: Likewise.
34222
34223         pread: fix compilation on glibc
34224         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34225         Reported by Ralf Wildenhues.
34226
34227         dirent: fix test failure
34228         * lib/dirent.in.h (includes): Guarantee ino_t.
34229         Reported by Ralf Wildenhues.
34230
34231 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34232
34233         linkat, renameat: avoid bad free
34234         * lib/at-func2.c (at_func2): Fix typo.
34235         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34236
34237 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34238
34239         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34240         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34241         to avoid failure of symlink test later.
34242
34243 2010-01-06  Eric Blake  <ebb9@byu.net>
34244
34245         stdio, unistd: guarantee ssize_t
34246         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34247         2008 are exposed when needed.
34248         * lib/stdio.in.h (includes): Likewise.
34249         Reported by Ralf Wildenhues.
34250
34251 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34252
34253         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34254         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34255         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34256
34257 2010-01-06  Jim Meyering  <meyering@redhat.com>
34258
34259         readtokens: this module *does* require xalloc.h
34260         It uses only functions that were omitted by the old syntax-check rule.
34261         * lib/readtokens.c: Include "xalloc.h" once again.
34262         * modules/readtokens (Depends-on): Add xalloc.
34263         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34264
34265 2010-01-05  Eric Blake  <ebb9@byu.net>
34266
34267         maint: support 'make announcement' from a VPATH build
34268         * top/maint.mk (announcement): Look for correct NEWS file.
34269
34270 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34271
34272         utimens (fdutimens): ignore a negative FD, per contract
34273         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34274         when we have a valid file descriptor.  Otherwise, using a brand
34275         new glibc (with just-patched futimens that now fails with EBADF)
34276         would cause this function to fail with ENOSYS.
34277         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34278         See also http://bugzilla.redhat.com/552320.
34279
34280 2010-01-05  Eric Blake  <ebb9@byu.net>
34281
34282         strcase: document what it provides
34283         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34284         gnulib module.
34285         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34286         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34287
34288 2010-01-05  Jim Meyering  <meyering@redhat.com>
34289
34290         maint: remove useless inclusions of "xalloc.h"
34291         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34292         * lib/readtokens.c: Likewise.
34293         * lib/same.c: Likewise.
34294         * modules/getloadavg (Depends-on): Remove xalloc.
34295         * modules/readtokens: Likewise.
34296         * modules/same: Likewise.
34297
34298         maint.mk: include 4 more function names in alloca.h-checking regexp
34299         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34300         regexp.  Before, we would give a false-positive (saying alloca.h
34301         is included unnecessarily) when the only uses involved omitted symbols.
34302
34303         xalloc.h: use consistent formatting
34304         * lib/xalloc.h: Move declarations to start in the first column.
34305
34306 2010-01-05  Eric Blake  <ebb9@byu.net>
34307
34308         mkdir: avoid xalloc
34309         * lib/mkdir.c (includes): Drop unused header.
34310         Reported by John W. Eaton.
34311
34312 2010-01-04  Jim Meyering  <meyering@redhat.com>
34313
34314         nl_langinfo: avoid configure-time syntax error
34315         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34316         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34317         the empty string.  Don't let that provoke a shell syntax error.
34318
34319         regcomp, regexec, fnmatch: avoid array bounds read error
34320         * lib/regcomp.c (build_equiv_class): From glibc:
34321         Use only the low 24 bits of a findidx return value as an index
34322         into the weights array.  Patch by Ulrich Drepper:
34323         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34324         * lib/regexec.c (check_node_accept_bytes): Likewise.
34325         * lib/fnmatch_loop.c (FCT): Likewise.
34326
34327         regcomp: skip collseq lookup when there are no rules
34328         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34329         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34330
34331         regcomp: recognize ill-formed { } expressions
34332         * lib/regcomp.c (parse_dup_op): From glibc:
34333         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34334
34335         regcomp: fix typo in comment
34336         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34337         s/satisfy/satisfies/.
34338
34339         regcomp: sync from glibc: remove dead store
34340         * lib/regcomp.c (duplicate_node_closure): Remove useless
34341         search_duplicated_node call and dead store.
34342
34343         regcomp: sync from glibc; always use nl_langinfo
34344         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34345         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34346         * modules/regex (Depends-on): Add nl_langinfo.
34347
34348 2010-01-04  Eric Blake  <ebb9@byu.net>
34349
34350         fdopendir: fix configure test
34351         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34352
34353 2010-01-01  Bruno Haible  <bruno@clisp.org>
34354
34355         wchar: Remove unused configure check.
34356         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34357
34358 2010-01-01  Eric Blake  <ebb9@byu.net>
34359
34360         headers: make check of system header explicit
34361         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34362         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34363         ourselves.
34364         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34367         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34368         internals.
34369         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34370         missing.
34371         Suggested by Bruno Haible.
34372
34373 2010-01-01  Jim Meyering  <meyering@redhat.com>
34374
34375         ChangeLog: tweak to eliminate unnecessary copyright line
34376         * ChangeLog: Remove a copyright line that was mistakenly updated
34377         by today's update-copyright run.  Reported by Eric Blake.
34378
34379         test-update-copyright: don't let envvar setting cause test failure
34380         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34381
34382 2010-01-01  Bruno Haible  <bruno@clisp.org>
34383
34384         localename: Avoid gcc warning.
34385         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34386         function if it is not used.
34387
34388 2010-01-01  Jim Meyering  <meyering@redhat.com>
34389
34390         update nearly all FSF copyright year lists to include 2010
34391         Use the same procedure as for 2009, outlined in
34392         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34393
34394         version-etc: set COPYRIGHT_YEAR to 2010
34395         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34396
34397 2009-12-31  Eric Blake  <ebb9@byu.net>
34398
34399         doc: correct availability of cygwin 1.5.x getopt
34400         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34401         variables.
34402         * doc/posix-functions/opterr.texi (opterr): Likewise.
34403         * doc/posix-functions/optind.texi (optind): Likewise.
34404         * doc/posix-functions/optopt.texi (optopt): Likewise.
34405         * doc/posix-functions/tzname.texi (tzname): Likewise.
34406
34407         openat: update maintainer
34408         * modules/openat (Maintainer): Add myself.
34409
34410         utimens: avoid shadowing warning
34411         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34412         buffers into one, to avoid shadowing, as well as avoiding a
34413         redundant stat.
34414         Reported by Jim Meyering.
34415
34416         test-dup2: avoid compiler warning
34417         * tests/test-dup2.c (is_inheritable): Only define if used.
34418
34419 2010-01-01  Bruno Haible  <bruno@clisp.org>
34420
34421         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34422         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34423         defined, use wctomb instead of wcrtomb.
34424
34425 2010-01-01  Bruno Haible  <bruno@clisp.org>
34426
34427         iconv: Reject native Solaris iconv.
34428         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34429         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34430
34431 2009-12-31  Bruno Haible  <bruno@clisp.org>
34432
34433         * tests/test-signal.c (main): Remove test of 'SIG'.
34434
34435 2009-12-31  Bruno Haible  <bruno@clisp.org>
34436
34437         spawn: Fix incomplete fix.
34438         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34439         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34440         warnings for GNULIB_POSIXCHECK again.
34441         Reported by Eric Blake.
34442
34443 2009-12-31  Bruno Haible  <bruno@clisp.org>
34444
34445         Avoid namespace pollution on glibc systems.
34446         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34447         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34448         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34449         glibc systems.
34450
34451 2009-12-31  Bruno Haible  <bruno@clisp.org>
34452
34453         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34454         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34455         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34456         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34457         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34458         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34459         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34460
34461 2009-12-31  Bruno Haible  <bruno@clisp.org>
34462
34463         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34464         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34465         afterwards.
34466
34467 2009-12-31  Bruno Haible  <bruno@clisp.org>
34468
34469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34470         SYS_UTSNAME_H.
34471
34472 2009-12-31  Bruno Haible  <bruno@clisp.org>
34473
34474         spawn: Fix misapplied patch.
34475         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34476         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34477         warnings for GNULIB_POSIXCHECK.
34478
34479 2009-12-31  Bruno Haible  <bruno@clisp.org>
34480
34481         times: Update after sys_times changed.
34482         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34483         * modules/times (Files): Add it.
34484         (configure.ac): Invoke gl_FUNC_TIMES.
34485
34486 2009-12-31  Bruno Haible  <bruno@clisp.org>
34487
34488         Use AC_C_INLINE where necessary.
34489         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34490         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34491         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34492         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34493         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34494         * m4/mbiter.m4 (gl_MBITER): Likewise.
34495         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34496         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34497         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34498         * modules/u64 (configure.ac): Likewise.
34499
34500 2009-12-31  Bruno Haible  <bruno@clisp.org>
34501
34502         Use AC_C_INLINE instead of module 'inline' where possible.
34503         * modules/inline (Description): Clarify purpose.
34504         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34505         * modules/count-one-bits (Depends-on): Remove inline.
34506         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34507         * modules/openat (Depends-on): Remove inline.
34508         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34509         instead of depending on module 'inline'.
34510         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34511         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34512         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34513         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34514         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34515         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34516         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34517         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34518         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34519         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34520         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34521         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34522         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34523         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34524         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34525         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34526         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34527         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34528         Likewise.
34529         * modules/unictype/property-ascii-hex-digit (Depends-on,
34530         configure.ac): Likewise.
34531         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34532         configure.ac): Likewise.
34533         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34534         configure.ac): Likewise.
34535         * modules/unictype/property-bidi-block-separator (Depends-on,
34536         configure.ac): Likewise.
34537         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34538         configure.ac): Likewise.
34539         * modules/unictype/property-bidi-common-separator (Depends-on,
34540         configure.ac): Likewise.
34541         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34542         Likewise.
34543         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34544         configure.ac): Likewise.
34545         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34546         configure.ac): Likewise.
34547         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34548         configure.ac): Likewise.
34549         * modules/unictype/property-bidi-european-digit (Depends-on,
34550         configure.ac): Likewise.
34551         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34552         configure.ac): Likewise.
34553         * modules/unictype/property-bidi-left-to-right (Depends-on,
34554         configure.ac): Likewise.
34555         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34556         configure.ac): Likewise.
34557         * modules/unictype/property-bidi-other-neutral (Depends-on,
34558         configure.ac): Likewise.
34559         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34560         Likewise.
34561         * modules/unictype/property-bidi-segment-separator (Depends-on,
34562         configure.ac): Likewise.
34563         * modules/unictype/property-bidi-whitespace (Depends-on,
34564         configure.ac): Likewise.
34565         * modules/unictype/property-combining (Depends-on, configure.ac):
34566         Likewise.
34567         * modules/unictype/property-composite (Depends-on, configure.ac):
34568         Likewise.
34569         * modules/unictype/property-currency-symbol (Depends-on,
34570         configure.ac): Likewise.
34571         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34572         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34573         Likewise.
34574         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34575         configure.ac): Likewise.
34576         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34577         Likewise.
34578         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34579         Likewise.
34580         * modules/unictype/property-extender (Depends-on, configure.ac):
34581         Likewise.
34582         * modules/unictype/property-format-control (Depends-on, configure.ac):
34583         Likewise.
34584         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34585         Likewise.
34586         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34587         Likewise.
34588         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34589         Likewise.
34590         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34591         Likewise.
34592         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34593         Likewise.
34594         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34595         Likewise.
34596         * modules/unictype/property-id-start (Depends-on, configure.ac):
34597         Likewise.
34598         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34599         Likewise.
34600         * modules/unictype/property-ids-binary-operator (Depends-on,
34601         configure.ac): Likewise.
34602         * modules/unictype/property-ids-trinary-operator (Depends-on,
34603         configure.ac): Likewise.
34604         * modules/unictype/property-ignorable-control (Depends-on,
34605         configure.ac): Likewise.
34606         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34607         Likewise.
34608         * modules/unictype/property-join-control (Depends-on, configure.ac):
34609         Likewise.
34610         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34611         Likewise.
34612         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34613         Likewise.
34614         * modules/unictype/property-logical-order-exception (Depends-on,
34615         configure.ac): Likewise.
34616         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34617         Likewise.
34618         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34619         * modules/unictype/property-non-break (Depends-on, configure.ac):
34620         Likewise.
34621         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34622         Likewise.
34623         * modules/unictype/property-numeric (Depends-on, configure.ac):
34624         Likewise.
34625         * modules/unictype/property-other-alphabetic (Depends-on,
34626         configure.ac): Likewise.
34627         * modules/unictype/property-other-default-ignorable-code-point
34628         (Depends-on, configure.ac): Likewise.
34629         * modules/unictype/property-other-grapheme-extend (Depends-on,
34630         configure.ac): Likewise.
34631         * modules/unictype/property-other-id-continue (Depends-on,
34632         configure.ac): Likewise.
34633         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34634         Likewise.
34635         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34636         Likewise.
34637         * modules/unictype/property-other-math (Depends-on, configure.ac):
34638         Likewise.
34639         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34640         Likewise.
34641         * modules/unictype/property-paired-punctuation (Depends-on,
34642         configure.ac): Likewise.
34643         * modules/unictype/property-paragraph-separator (Depends-on,
34644         configure.ac): Likewise.
34645         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34646         Likewise.
34647         * modules/unictype/property-pattern-white-space (Depends-on,
34648         configure.ac): Likewise.
34649         * modules/unictype/property-private-use (Depends-on, configure.ac):
34650         Likewise.
34651         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34652         Likewise.
34653         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34654         Likewise.
34655         * modules/unictype/property-radical (Depends-on, configure.ac):
34656         Likewise.
34657         * modules/unictype/property-sentence-terminal (Depends-on,
34658         configure.ac): Likewise.
34659         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34660         Likewise.
34661         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34662         * modules/unictype/property-terminal-punctuation (Depends-on,
34663         configure.ac): Likewise.
34664         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34665         Likewise.
34666         * modules/unictype/property-unassigned-code-value (Depends-on,
34667         configure.ac): Likewise.
34668         * modules/unictype/property-unified-ideograph (Depends-on,
34669         configure.ac): Likewise.
34670         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34671         Likewise.
34672         * modules/unictype/property-variation-selector (Depends-on,
34673         configure.ac): Likewise.
34674         * modules/unictype/property-white-space (Depends-on, configure.ac):
34675         Likewise.
34676         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34677         Likewise.
34678         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34679         Likewise.
34680         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34681         Likewise.
34682         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34683         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34684         Likewise.
34685
34686 2009-12-31  Bruno Haible  <bruno@clisp.org>
34687
34688         Remove unnecessary AC_C_INLINE invocation.
34689         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34690         since 2009-08-21.
34691
34692 2009-12-31  Jim Meyering  <meyering@redhat.com>
34693
34694         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34695         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34696         With this change, we can all remove the gpg_key_ID = ... definition
34697         from our respective cfg.mk files.
34698
34699         maint.mk: create announcement template in ~/, not in /tmp
34700         * top/maint.mk (emit_upload_commands): Adjust.
34701         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34702         Remove temporary file, .ci-msg.
34703
34704 2009-12-31  Eric Blake  <ebb9@byu.net>
34705
34706         link-warning: always build headers with link warnings
34707         * modules/arpa_inet (Makefile.am): Always build replacement
34708         header.
34709         * modules/ctype (Makefile.am): Likewise.
34710         * modules/dirent (Makefile.am): Likewise.
34711         * modules/inttypes (Makefile.am): Likewise.
34712         * modules/langinfo (Makefile.am): Likewise.
34713         * modules/locale (Makefile.am): Likewise.
34714         * modules/spawn (Makefile.am): Likewise.
34715         * modules/sys_file (Makefile.am): Likewise.
34716         * modules/sys_ioctl (Makefile.am): Likewise.
34717         * modules/sys_select (Makefile.am): Likewise.
34718         * modules/sys_socket (Makefile.am): Likewise.
34719         * modules/sys_times (Makefile.am): Likewise.
34720         * modules/sys_utsname (Makefile.am): Likewise.
34721         * modules/sys_wait (Makefile.am): Likewise.
34722         * modules/wchar (Makefile.am): Likewise.
34723         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34724         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34725         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34726         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34727         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34728         Likewise.
34729         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34730         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34731         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34732         Likewise.
34733         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34734         Likewise.
34735         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34736         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34737         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34738         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34739         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34740         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34741         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34742         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34743         (gl_WCHAR_H_DEFAULTS): Likewise.
34744
34745 2009-12-31  Eric Blake  <ebb9@byu.net>
34746
34747         signal, spawn: use link warnings
34748         * lib/signal.in.h (sigset_t): Make unconditional.
34749         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34750         (sigpending, sigprocmask, sigaction): Add link warnings.
34751         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34752         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34753         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34754         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34755         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34756         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34757         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34758         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34759         (posix_spawn_file_actions_destroy)
34760         (posix_spawn_file_actions_addopen)
34761         (posix_spawn_file_actions_addclose)
34762         (posix_spawn_file_actions_adddup2): Likewise.
34763         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34764         * tests/test-signal.c (main): Enhance test.
34765
34766         spawn: improve wrapper support
34767         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34768         (gl_SPAWN_H_DEFAULTS): New defaults.
34769         * modules/spawn (Makefile.am): Substitute them.
34770         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34771         Only declare if missing or broken.
34772
34773         sys_times, sys_utsname: use include_next
34774         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34775         header.
34776         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34777         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34778         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34779         * modules/sys_times (Depends-on): Add include_next.
34780         (Makefile.am): Substitute additional values.
34781         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34782         * lib/sys_times.in.h (includes): Include native header, if
34783         available.
34784         * lib/sys_utsname.in.h (includes): Likewise.
34785         * tests/test-sys_times.c (main): Enhance test.
34786
34787         fdutimensat: revert prior patch
34788         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34789         utimens.h.
34790         Reported by Bruno Haible.
34791
34792 2009-12-30  Eric Blake  <ebb9@byu.net>
34793
34794         sys_wait: drop link-warning dependency
34795         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34796         link-warning efforts.
34797         * lib/sys_wait.in.h: Likewise.
34798
34799         fdutimensat: remove bogus dependency
34800         * modules/fdutimensat (Depends-on): Drop inline.
34801
34802         unistd: fix typo
34803         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34804
34805 2009-12-30  Bruno Haible  <bruno@clisp.org>
34806
34807         Fix compilation error with Solaris cc.
34808         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34809         * lib/unicase/u16-is-invariant.c: Likewise.
34810         * lib/unicase/u32-is-invariant.c: Likewise.
34811         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34812
34813 2009-12-30  Bruno Haible  <bruno@clisp.org>
34814
34815         Fix test crash.
34816         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34817         locales.
34818         Reported by Simon Josefsson <simon@josefsson.org>.
34819
34820 2009-12-30  Bruno Haible  <bruno@clisp.org>
34821
34822         Fix compilation error on most platforms.
34823         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34824         Reported by Simon Josefsson <simon@josefsson.org>
34825         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34826
34827 2009-12-30  Eric Blake  <ebb9@byu.net>
34828
34829         futimens, utimensat: work around ntfs-3g bug
34830         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34831         a ctime bug is present, and expand workaround to cover ntfs-3g.
34832         * lib/utimens.c (fdutimens, lutimens): Likewise.
34833         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34834         (validate_timespec): Adjust return value.
34835         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34836         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34837         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34838
34839 2009-12-29  Eric Blake  <ebb9@byu.net>
34840
34841         link-warning: make usage consistent
34842         * modules/ctype (Depends-on): Add link-warning.
34843         (Makefile.am): Update rules accordingly.
34844         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34845         * modules/locale (Depends-on, Makefile.am): Likewise.
34846         * modules/sys_file (Makefile.am): Likewise.
34847         * modules/getopt-posix (Makefile.am): Delete unused link warning
34848         efforts.
34849         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34850         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34851         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34852         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34853
34854         stdio: remove unused variables
34855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34856         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34857         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34858
34859         tests: test more substitute headers
34860         * modules/ctype-tests: New file.
34861         * modules/dirent-tests: Likewise.
34862         * modules/spawn-tests: Likewise.
34863         * modules/sys_file-tests: Likewise.
34864         * modules/sys_ioctl-tests: Likewise.
34865         * modules/sys_wait-tests: Likewise.
34866         * tests/test-ctype.c: Likewise.
34867         * tests/test-dirent.c: Likewise.
34868         * tests/test-spawn.c: Likewise.
34869         * tests/test-sys_file.c: Likewise.
34870         * tests/test-sys_ioctl.c: Likewise.
34871         * tests/test-sys_wait.c: Likewise.
34872         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34873         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34874         whether or not flock is in use.
34875
34876         tests: remove License section from module
34877         * modules/arpa_inet-tests: Remove unneeded section.
34878         * modules/byteswap-tests: Likewise.
34879         * modules/ceilf-tests: Likewise.
34880         * modules/ceill-tests: Likewise.
34881         * modules/crypto/des-tests: Likewise.
34882         * modules/crypto/gc-arcfour-tests: Likewise.
34883         * modules/crypto/gc-arctwo-tests: Likewise.
34884         * modules/crypto/gc-des-tests: Likewise.
34885         * modules/crypto/gc-hmac-md5-tests: Likewise.
34886         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34887         * modules/crypto/gc-md2-tests: Likewise.
34888         * modules/crypto/gc-md4-tests: Likewise.
34889         * modules/crypto/gc-md5-tests: Likewise.
34890         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34891         * modules/crypto/gc-rijndael-tests: Likewise.
34892         * modules/crypto/gc-sha1-tests: Likewise.
34893         * modules/crypto/gc-tests: Likewise.
34894         * modules/crypto/md2-tests: Likewise.
34895         * modules/crypto/md4-tests: Likewise.
34896         * modules/fcntl-h-tests: Likewise.
34897         * modules/floorf-tests: Likewise.
34898         * modules/floorl-tests: Likewise.
34899         * modules/frexp-nolibm-tests: Likewise.
34900         * modules/frexp-tests: Likewise.
34901         * modules/frexpl-nolibm-tests: Likewise.
34902         * modules/frexpl-tests: Likewise.
34903         * modules/getaddrinfo-tests: Likewise.
34904         * modules/inttypes-tests: Likewise.
34905         * modules/isfinite-tests: Likewise.
34906         * modules/isinf-tests: Likewise.
34907         * modules/ldexpl-tests: Likewise.
34908         * modules/locale-tests: Likewise.
34909         * modules/math-tests: Likewise.
34910         * modules/netdb-tests: Likewise.
34911         * modules/netinet_in-tests: Likewise.
34912         * modules/printf-frexp-tests: Likewise.
34913         * modules/printf-frexpl-tests: Likewise.
34914         * modules/priv-set-tests: Likewise.
34915         * modules/random_r-tests: Likewise.
34916         * modules/round-tests: Likewise.
34917         * modules/roundf-tests: Likewise.
34918         * modules/roundl-tests: Likewise.
34919         * modules/search-tests: Likewise.
34920         * modules/select-tests: Likewise.
34921         * modules/signal-tests: Likewise.
34922         * modules/stdbool-tests: Likewise.
34923         * modules/stddef-tests: Likewise.
34924         * modules/stdint-tests: Likewise.
34925         * modules/stdio-tests: Likewise.
34926         * modules/stdlib-tests: Likewise.
34927         * modules/string-tests: Likewise.
34928         * modules/strings-tests: Likewise.
34929         * modules/sys_select-tests: Likewise.
34930         * modules/sys_socket-tests: Likewise.
34931         * modules/sys_stat-tests: Likewise.
34932         * modules/sys_time-tests: Likewise.
34933         * modules/sys_utsname-tests: Likewise.
34934         * modules/sysexits-tests: Likewise.
34935         * modules/time-tests: Likewise.
34936         * modules/trunc-tests: Likewise.
34937         * modules/truncf-tests: Likewise.
34938         * modules/truncl-tests: Likewise.
34939         * modules/tsearch-tests: Likewise.
34940         * modules/unistd-tests: Likewise.
34941         * modules/wchar-tests: Likewise.
34942         * modules/wctype-tests: Likewise.
34943
34944         tests: fix license on several tests
34945         * tests/test-des.c: Update to GPLv3+.
34946         * tests/test-flock.c: Likewise.
34947         * tests/test-fsync.c: Likewise.
34948         * tests/test-futimens.h: Likewise.
34949         * tests/test-gc-arcfour.c: Likewise.
34950         * tests/test-gc-arctwo.c: Likewise.
34951         * tests/test-gc-des.c: Likewise.
34952         * tests/test-gc-hmac-md5.c: Likewise.
34953         * tests/test-gc-hmac-sha1.c: Likewise.
34954         * tests/test-gc-md2.c: Likewise.
34955         * tests/test-gc-md4.c: Likewise.
34956         * tests/test-gc-md5.c: Likewise.
34957         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34958         * tests/test-gc-rijndael.c: Likewise.
34959         * tests/test-gc-sha1.c: Likewise.
34960         * tests/test-gc.c: Likewise.
34961         * tests/test-getcwd.c: Likewise.
34962         * tests/test-link.c: Likewise.
34963         * tests/test-link.h: Likewise.
34964         * tests/test-lutimens.h: Likewise.
34965         * tests/test-md2.c: Likewise.
34966         * tests/test-md4.c: Likewise.
34967         * tests/test-mkdir.h: Likewise.
34968         * tests/test-rename.c: Likewise.
34969         * tests/test-rename.h: Likewise.
34970         * tests/test-safe-alloc.c: Likewise.
34971         * tests/test-utimens-common.h: Likewise.
34972         * tests/test-utimens.h: Likewise.
34973
34974         maint: sync license texts
34975         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34976         * doc/gpl-3.0.texi: Revert copyright year update.
34977         * doc/lgpl-3.0.texi: Likewise.
34978
34979 2009-12-29  Jim Meyering  <meyering@redhat.com>
34980
34981         update nearly all FSF copyright year lists to include 2009
34982         The files named by the following are exempted:
34983             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34984               test -f "$dst" && { echo "$dst"; continue; }
34985               test -d "$dst" || continue
34986               echo "$dst"/$(basename "$src")
34987             done > exempt
34988             git ls-files tests/unictype >> exempt
34989         In the remaining files, convert to all-interval notation if
34990         - there is already at least one year interval like 2000-2003
34991         - the file is maintained by me
34992         - the file is in lib/uni*/, where that style already prevails
34993         Otherwise, use update-copyright's default.
34994
34995 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34996         and Eric Blake  <ebb9@byu.net>
34997
34998         tests: don't require debug system() to pass
34999         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35000         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35001         * tests/test-unlink.h (test_unlink_func): Likewise.
35002         * tests/test-fstatat.c (main): ...into callers.
35003         * tests/test-lstat.c (main): Likewise.
35004         * tests/test-rmdir.c (main): Likewise.
35005         * tests/test-unlink.c (main): Likewise.
35006         * tests/test-unlinkat.c (main): Likewise.
35007         * tests/test-areadlink-with-size.c (main): Don't require a
35008         debug-only system call to pass, aiding cross-testing to mingw.
35009         * tests/test-areadlink.c (main): Likewise.
35010         * tests/test-areadlinkat-with-size.c (main): Likewise.
35011         * tests/test-areadlinkat.c (main): Likewise.
35012         * tests/test-canonicalize-lgpl.c (main): Likewise.
35013         * tests/test-canonicalize.c (main): Likewise.
35014         * tests/test-chown.c (main): Likewise.
35015         * tests/test-fchownat.c (main): Likewise.
35016         * tests/test-lchown.c (main): Likewise.
35017         * tests/test-fdutimensat.c (main): Likewise.
35018         * tests/test-futimens.c (main): Likewise.
35019         * tests/test-link.c (main): Likewise.
35020         * tests/test-linkat.c (main): Likewise.
35021         * tests/test-mkdir.c (main): Likewise.
35022         * tests/test-mkdirat.c (main): Likewise.
35023         * tests/test-mkfifo.c (main): Likewise.
35024         * tests/test-mkfifoat.c (main): Likewise.
35025         * tests/test-mknod.c (main): Likewise.
35026         * tests/test-readlink.c (main): Likewise.
35027         * tests/test-remove.c (main): Likewise.
35028         * tests/test-rename.c (main): Likewise.
35029         * tests/test-renameat.c (main): Likewise.
35030         * tests/test-symlink.c (main): Likewise.
35031         * tests/test-symlinkat.c (main): Likewise.
35032         * tests/test-utimens.c (main): Likewise.
35033         * tests/test-utimensat.c (main): Likewise.
35034
35035 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35036
35037         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35038         on $(UNUSED_PARAMETER_H) to avoid build failure.
35039
35040 2009-12-28  Jim Meyering  <meyering@redhat.com>
35041
35042         update-copyright: you may specify a max. line length other than 72
35043         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35044
35045         maint: use consistent FSF copyright line syntax
35046         * lib/posixtm.c: Add missing comma in FSF copyright line.
35047         * lib/posixtm.h: Likewise.
35048         * lib/getugroups.c: Add missing ", Inc.".
35049
35050         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35051         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35052         FSF copyright line.  Remove trailing blanks.
35053
35054 2009-12-28  Eric Blake  <ebb9@byu.net>
35055
35056         test-dup2: reduce dependencies
35057         * modules/cloexec (Configure.ac): Set witness.
35058         * modules/dup2-tests (Depends-on): Drop cloexec.
35059         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35060         not present.
35061         Suggested by Bruno Haible.
35062
35063 2009-12-26  Bruno Haible  <bruno@clisp.org>
35064
35065         Remove an unneeded dependency.
35066         * modules/fseterr (Depends-on): Remove dup2.
35067
35068 2009-12-26  Eric Blake  <ebb9@byu.net>
35069
35070         tests: use macros.h in more places
35071         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35072         (ASSERT_STREAM): Provide default of stderr.
35073         * tests/test-dirent-safer.c: Include macros.h, using alternate
35074         stream for assertions.
35075         * tests/test-dup-safer.c: Likewise.
35076         * tests/test-freopen-safer.c: Likewise.
35077         * tests/test-getopt.c: Likewise.
35078         * tests/test-openat-safer.c: Likewise.
35079         * tests/test-pipe.c: Likewise.
35080         * tests/test-popen-safer.c: Likewise.
35081         * modules/dirent-safer-tests (Files): Include macros.h.
35082         * modules/unistd-safer-tests (Files): Likewise.
35083         * modules/freopen-safer-tests (Files): Likewise.
35084         * modules/getopt-posix-tests (Files): Likewise.
35085         * modules/openat-safer-tests (Files): Likewise.
35086         * modules/pipe-tests (Files): Likewise.
35087
35088 2009-12-26  Bruno Haible  <bruno@clisp.org>
35089
35090         javacomp: Portability fix.
35091         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35092         that it also works on Solaris.
35093
35094 2009-12-26  Bruno Haible  <bruno@clisp.org>
35095
35096         localename: Fix storage allocation of gl_locale_name_thread's result.
35097         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35098         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35099         all platforms that have 'uselocale'.
35100         (gl_locale_name_thread_unsafe): New function, extracted from
35101         gl_locale_name_thread.
35102         (gl_locale_name_thread): Call struniq on all platforms that have
35103         'uselocale'.
35104         * tests/test-localename.c (test_locale_name_thread): Check that the
35105         resulting strings are permanently allocated.
35106         * modules/localename-tests (Depends-on): Add strdup.
35107
35108 2009-12-26  Bruno Haible  <bruno@clisp.org>
35109
35110         * tests/test-localename.c (categories): Fill in the strings.
35111
35112 2009-12-26  Jim Meyering  <meyering@redhat.com>
35113
35114         isdir: complete the removal of m4/isdir.m4
35115         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35116
35117         isdir: clean up, since at least grep still uses it
35118         * lib/isdir.c: Include "isdir.h".
35119         (S_ISDIR): Remove now-unneeded definition.
35120         * modules/isdir (Files): Add lib/isdir.h.
35121         * lib/isdir.h: New file, with declaration.
35122         * m4/isdir.m4: Remove file -- unneeded.
35123
35124 2009-12-25  Bruno Haible  <bruno@clisp.org>
35125
35126         selinux-h: Make generated .h files standalone.
35127         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35128         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35129         * lib/se-selinux.in.h: Likewise.
35130         * modules/selinux-h (Depends-on): Add unused-parameter.
35131         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35132         selinux/selinux.h and selinux/context.h.
35133         Suggested by Eric Blake.
35134
35135 2009-12-25  Bruno Haible  <bruno@clisp.org>
35136
35137         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35138         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35139         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35140         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35141         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35142
35143 2009-12-24  Bruno Haible  <bruno@clisp.org>
35144
35145         openat: Fix warning.
35146         * lib/openat-proc.c: Include <unistd.h>.
35147
35148 2009-12-24  Bruno Haible  <bruno@clisp.org>
35149
35150         New module 'unused-parameter'.
35151         * build-aux/unused-parameter.h: New file, extracted from earlier
35152         gnulib-common.m4.
35153         * modules/unused-parameter: New file.
35154         * lib/unistr.h: Include unused-parameter.h.
35155         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35156         _GL_UNUSED.
35157         * modules/unistr/base (Depends-on): Add unused-parameter.
35158
35159 2009-12-24  Bruno Haible  <bruno@clisp.org>
35160
35161         Add missing dependencies to 'extensions' module.
35162         * m4/extensions.m4: Add comment.
35163         * modules/accept4 (Depends-on): Add extensions.
35164         * modules/dup3 (Depends-on): Likewise.
35165         * modules/fcntl (Depends-on): Likewise.
35166         * modules/futimens (Depends-on): Likewise.
35167         * modules/mknod (Depends-on): Likewise.
35168         * modules/pipe2 (Depends-on): Likewise.
35169         * modules/stat-time (Depends-on): Likewise.
35170         * modules/strcasestr-simple (Depends-on): Likewise.
35171         * modules/strsignal (Depends-on): Likewise.
35172         * modules/utimensat (Depends-on): Likewise.
35173         * modules/localcharset (Depends-on): Likewise. Needed because of
35174         gl_FCNTL_O_FLAGS.
35175         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35176         AC_TYPE_MBSTATE_T.
35177         * modules/wcsnrtombs (Depends-on): Likewise.
35178         * modules/wcsrtombs (Depends-on): Likewise.
35179
35180 2009-12-24  Bruno Haible  <bruno@clisp.org>
35181
35182         binary-io: Avoid gcc warning due to SET_BINARY.
35183         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35184         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35185
35186 2009-12-24  Bruno Haible  <bruno@clisp.org>
35187
35188         Avoid future namespace pollution on glibc systems.
35189         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35190         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35191         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35192         glibc systems.
35193
35194 2009-12-24  Bruno Haible  <bruno@clisp.org>
35195
35196         Refactor common macros used in tests.
35197         * tests/macros.h: New file.
35198         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35199         and/or <stdlib.h>, if appropriate.
35200         (ASSERT, SIZEOF): Remove macros.
35201         * tests/test-areadlink-with-size.c: Likewise.
35202         * tests/test-areadlinkat.c: Likewise.
35203         * tests/test-areadlinkat-with-size.c: Likewise.
35204         * tests/test-argmatch.c: Likewise.
35205         * tests/test-argv-iter.c: Likewise.
35206         * tests/test-array-mergesort.c: Likewise.
35207         * tests/test-array_list.c: Likewise.
35208         * tests/test-array_oset.c: Likewise.
35209         * tests/test-avltree_list.c: Likewise.
35210         * tests/test-avltree_oset.c: Likewise.
35211         * tests/test-avltreehash_list.c: Likewise.
35212         * tests/test-base64.c: Likewise.
35213         * tests/test-binary-io.c: Likewise.
35214         * tests/test-bitrotate.c: Likewise.
35215         * tests/test-btowc.c: Likewise.
35216         * tests/test-byteswap.c: Likewise.
35217         * tests/test-c-ctype.c: Likewise.
35218         * tests/test-c-stack.c: Likewise.
35219         * tests/test-c-strcasecmp.c: Likewise.
35220         * tests/test-c-strcasestr.c: Likewise.
35221         * tests/test-c-strncasecmp.c: Likewise.
35222         * tests/test-c-strstr.c: Likewise.
35223         * tests/test-canonicalize-lgpl.c: Likewise.
35224         * tests/test-canonicalize.c: Likewise.
35225         * tests/test-carray_list.c: Likewise.
35226         * tests/test-ceilf1.c: Likewise.
35227         * tests/test-ceilf2.c: Likewise.
35228         * tests/test-ceill.c: Likewise.
35229         * tests/test-chown.c: Likewise.
35230         * tests/test-cloexec.c: Likewise.
35231         * tests/test-copy-acl.c: Likewise.
35232         * tests/test-copy-file.c: Likewise.
35233         * tests/test-count-one-bits.c: Likewise.
35234         * tests/test-dprintf-posix.c: Likewise.
35235         * tests/test-dup2.c: Likewise.
35236         * tests/test-dup3.c: Likewise.
35237         * tests/test-duplocale.c: Likewise.
35238         * tests/test-fbufmode.c: Likewise.
35239         * tests/test-fchdir.c: Likewise.
35240         * tests/test-fchownat.c: Likewise.
35241         * tests/test-fcntl-safer.c: Likewise.
35242         * tests/test-fcntl.c: Likewise.
35243         * tests/test-fdopendir.c: Likewise.
35244         * tests/test-fdutimensat.c: Likewise.
35245         * tests/test-fflush2.c: Likewise.
35246         * tests/test-file-has-acl.c: Likewise.
35247         * tests/test-filevercmp.c: Likewise.
35248         * tests/test-flock.c: Likewise.
35249         * tests/test-floorf1.c: Likewise.
35250         * tests/test-floorf2.c: Likewise.
35251         * tests/test-floorl.c: Likewise.
35252         * tests/test-fnmatch.c: Likewise.
35253         * tests/test-fopen.h: Likewise.
35254         * tests/test-fpending.c: Likewise.
35255         * tests/test-fprintf-posix.c: Likewise.
35256         * tests/test-fpurge.c: Likewise.
35257         * tests/test-freadable.c: Likewise.
35258         * tests/test-freadahead.c: Likewise.
35259         * tests/test-freading.c: Likewise.
35260         * tests/test-freadptr.c: Likewise.
35261         * tests/test-freadptr2.c: Likewise.
35262         * tests/test-freadseek.c: Likewise.
35263         * tests/test-freopen.c: Likewise.
35264         * tests/test-frexp.c: Likewise.
35265         * tests/test-frexpl.c: Likewise.
35266         * tests/test-fseek.c: Likewise.
35267         * tests/test-fseeko.c: Likewise.
35268         * tests/test-fstatat.c: Likewise.
35269         * tests/test-fstrcmp.c: Likewise.
35270         * tests/test-fsync.c: Likewise.
35271         * tests/test-ftell.c: Likewise.
35272         * tests/test-ftello.c: Likewise.
35273         * tests/test-func.c: Likewise.
35274         * tests/test-futimens.c: Likewise.
35275         * tests/test-fwritable.c: Likewise.
35276         * tests/test-fwriting.c: Likewise.
35277         * tests/test-getcwd.c: Likewise.
35278         * tests/test-getdate.c: Likewise.
35279         * tests/test-getdelim.c: Likewise.
35280         * tests/test-getdtablesize.c: Likewise.
35281         * tests/test-getgroups.c: Likewise.
35282         * tests/test-getline.c: Likewise.
35283         * tests/test-getndelim2.c: Likewise.
35284         * tests/test-glob.c: Likewise.
35285         * tests/test-hash.c: Likewise.
35286         * tests/test-i-ring.c: Likewise.
35287         * tests/test-iconv-utf.c: Likewise.
35288         * tests/test-iconv.c: Likewise.
35289         * tests/test-idpriv-drop.c: Likewise.
35290         * tests/test-idpriv-droptemp.c: Likewise.
35291         * tests/test-inet_ntop.c: Likewise.
35292         * tests/test-inet_pton.c: Likewise.
35293         * tests/test-isblank.c: Likewise.
35294         * tests/test-isfinite.c: Likewise.
35295         * tests/test-isinf.c: Likewise.
35296         * tests/test-isnan.c: Likewise.
35297         * tests/test-isnand.h: Likewise.
35298         * tests/test-isnanf.h: Likewise.
35299         * tests/test-isnanl.h: Likewise.
35300         * tests/test-lchown.c: Likewise.
35301         * tests/test-ldexpl.c: Likewise.
35302         * tests/test-link.c: Likewise.
35303         * tests/test-linkat.c: Likewise.
35304         * tests/test-linked_list.c: Likewise.
35305         * tests/test-linkedhash_list.c: Likewise.
35306         * tests/test-localename.c: Likewise.
35307         * tests/test-lseek.c: Likewise.
35308         * tests/test-lstat.c: Likewise.
35309         * tests/test-mbmemcasecmp.c: Likewise.
35310         * tests/test-mbmemcasecoll.c: Likewise.
35311         * tests/test-mbrtowc.c: Likewise.
35312         * tests/test-mbscasecmp.c: Likewise.
35313         * tests/test-mbscasestr1.c: Likewise.
35314         * tests/test-mbscasestr2.c: Likewise.
35315         * tests/test-mbscasestr3.c: Likewise.
35316         * tests/test-mbscasestr4.c: Likewise.
35317         * tests/test-mbschr.c: Likewise.
35318         * tests/test-mbscspn.c: Likewise.
35319         * tests/test-mbsinit.c: Likewise.
35320         * tests/test-mbsncasecmp.c: Likewise.
35321         * tests/test-mbsnrtowcs.c: Likewise.
35322         * tests/test-mbspbrk.c: Likewise.
35323         * tests/test-mbspcasecmp.c: Likewise.
35324         * tests/test-mbsrchr.c: Likewise.
35325         * tests/test-mbsrtowcs.c: Likewise.
35326         * tests/test-mbsspn.c: Likewise.
35327         * tests/test-mbsstr1.c: Likewise.
35328         * tests/test-mbsstr2.c: Likewise.
35329         * tests/test-mbsstr3.c: Likewise.
35330         * tests/test-memchr.c: Likewise.
35331         * tests/test-memchr2.c: Likewise.
35332         * tests/test-memcmp.c: Likewise.
35333         * tests/test-memmem.c: Likewise.
35334         * tests/test-memrchr.c: Likewise.
35335         * tests/test-mkdir.c: Likewise.
35336         * tests/test-mkdirat.c: Likewise.
35337         * tests/test-mkfifo.c: Likewise.
35338         * tests/test-mkfifoat.c: Likewise.
35339         * tests/test-mknod.c: Likewise.
35340         * tests/test-nanosleep.c: Likewise.
35341         * tests/test-nl_langinfo.c: Likewise.
35342         * tests/test-obstack-printf.c: Likewise.
35343         * tests/test-open.c: Likewise.
35344         * tests/test-openat.c: Likewise.
35345         * tests/test-pipe-filter-gi1.c: Likewise.
35346         * tests/test-pipe-filter-gi2-main.c: Likewise.
35347         * tests/test-pipe-filter-ii1.c: Likewise.
35348         * tests/test-pipe-filter-ii2-main.c: Likewise.
35349         * tests/test-pipe2.c: Likewise.
35350         * tests/test-popen.h: Likewise.
35351         * tests/test-posixtm.c: Likewise.
35352         * tests/test-pread.c: Likewise.
35353         * tests/test-printf-frexp.c: Likewise.
35354         * tests/test-printf-frexpl.c: Likewise.
35355         * tests/test-printf-posix.c: Likewise.
35356         * tests/test-priv-set.c: Likewise.
35357         * tests/test-quotearg.c: Likewise.
35358         * tests/test-random_r.c: Likewise.
35359         * tests/test-rawmemchr.c: Likewise.
35360         * tests/test-rbtree_list.c: Likewise.
35361         * tests/test-rbtree_oset.c: Likewise.
35362         * tests/test-rbtreehash_list.c: Likewise.
35363         * tests/test-readlink.c: Likewise.
35364         * tests/test-remove.c: Likewise.
35365         * tests/test-rename.c: Likewise.
35366         * tests/test-renameat.c: Likewise.
35367         * tests/test-rmdir.c: Likewise.
35368         * tests/test-round1.c: Likewise.
35369         * tests/test-roundf1.c: Likewise.
35370         * tests/test-roundl.c: Likewise.
35371         * tests/test-safe-alloc.c: Likewise.
35372         * tests/test-sameacls.c: Likewise.
35373         * tests/test-set-mode-acl.c: Likewise.
35374         * tests/test-setenv.c: Likewise.
35375         * tests/test-sigaction.c: Likewise.
35376         * tests/test-signbit.c: Likewise.
35377         * tests/test-sleep.c: Likewise.
35378         * tests/test-snprintf-posix.c: Likewise.
35379         * tests/test-snprintf.c: Likewise.
35380         * tests/test-sprintf-posix.c: Likewise.
35381         * tests/test-stat-time.c: Likewise.
35382         * tests/test-stat.c: Likewise.
35383         * tests/test-strcasestr.c: Likewise.
35384         * tests/test-strchrnul.c: Likewise.
35385         * tests/test-strerror.c: Likewise.
35386         * tests/test-striconv.c: Likewise.
35387         * tests/test-striconveh.c: Likewise.
35388         * tests/test-striconveha.c: Likewise.
35389         * tests/test-strsignal.c: Likewise.
35390         * tests/test-strstr.c: Likewise.
35391         * tests/test-strtod.c: Likewise.
35392         * tests/test-strverscmp.c: Likewise.
35393         * tests/test-symlink.c: Likewise.
35394         * tests/test-symlinkat.c: Likewise.
35395         * tests/test-trunc1.c: Likewise.
35396         * tests/test-trunc2.c: Likewise.
35397         * tests/test-truncf1.c: Likewise.
35398         * tests/test-truncf2.c: Likewise.
35399         * tests/test-truncl.c: Likewise.
35400         * tests/test-uname.c: Likewise.
35401         * tests/test-unlink.c: Likewise.
35402         * tests/test-unlinkat.c: Likewise.
35403         * tests/test-unsetenv.c: Likewise.
35404         * tests/test-usleep.c: Likewise.
35405         * tests/test-utimens.c: Likewise.
35406         * tests/test-utimensat.c: Likewise.
35407         * tests/test-vasnprintf-posix.c: Likewise.
35408         * tests/test-vasnprintf-posix2.c: Likewise.
35409         * tests/test-vasnprintf.c: Likewise.
35410         * tests/test-vasprintf-posix.c: Likewise.
35411         * tests/test-vasprintf.c: Likewise.
35412         * tests/test-vdprintf-posix.c: Likewise.
35413         * tests/test-vfprintf-posix.c: Likewise.
35414         * tests/test-vprintf-posix.c: Likewise.
35415         * tests/test-vsnprintf-posix.c: Likewise.
35416         * tests/test-vsnprintf.c: Likewise.
35417         * tests/test-vsprintf-posix.c: Likewise.
35418         * tests/test-wcrtomb.c: Likewise.
35419         * tests/test-wcsnrtombs.c: Likewise.
35420         * tests/test-wcsrtombs.c: Likewise.
35421         * tests/test-wctype.c: Likewise.
35422         * tests/test-wcwidth.c: Likewise.
35423         * tests/test-xfprintf-posix.c: Likewise.
35424         * tests/test-xmemdup0.c: Likewise.
35425         * tests/test-xprintf-posix.c: Likewise.
35426         * tests/test-xvasprintf.c: Likewise.
35427         * tests/unicase/test-locale-language.c: Likewise.
35428         * tests/unicase/test-mapping-part1.h: Likewise.
35429         * tests/unicase/test-predicate-part1.h: Likewise.
35430         * tests/unicase/test-u8-casecmp.c: Likewise.
35431         * tests/unicase/test-u8-casecoll.c: Likewise.
35432         * tests/unicase/test-u8-casefold.c: Likewise.
35433         * tests/unicase/test-u8-is-cased.c: Likewise.
35434         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35435         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35436         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35437         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35438         * tests/unicase/test-u8-tolower.c: Likewise.
35439         * tests/unicase/test-u8-totitle.c: Likewise.
35440         * tests/unicase/test-u8-toupper.c: Likewise.
35441         * tests/unicase/test-u16-casecmp.c: Likewise.
35442         * tests/unicase/test-u16-casecoll.c: Likewise.
35443         * tests/unicase/test-u16-casefold.c: Likewise.
35444         * tests/unicase/test-u16-is-cased.c: Likewise.
35445         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35446         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35447         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35448         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35449         * tests/unicase/test-u16-tolower.c: Likewise.
35450         * tests/unicase/test-u16-totitle.c: Likewise.
35451         * tests/unicase/test-u16-toupper.c: Likewise.
35452         * tests/unicase/test-u32-casecmp.c: Likewise.
35453         * tests/unicase/test-u32-casecoll.c: Likewise.
35454         * tests/unicase/test-u32-casefold.c: Likewise.
35455         * tests/unicase/test-u32-is-cased.c: Likewise.
35456         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35457         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35458         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35459         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35460         * tests/unicase/test-u32-tolower.c: Likewise.
35461         * tests/unicase/test-u32-totitle.c: Likewise.
35462         * tests/unicase/test-u32-toupper.c: Likewise.
35463         * tests/unicase/test-ulc-casecmp.c: Likewise.
35464         * tests/unicase/test-ulc-casecoll.c: Likewise.
35465         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35466         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35467         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35468         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35469         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35470         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35471         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35472         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35473         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35474         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35475         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35476         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35477         * tests/unictype/test-bidi_byname.c: Likewise.
35478         * tests/unictype/test-bidi_name.c: Likewise.
35479         * tests/unictype/test-bidi_of.c: Likewise.
35480         * tests/unictype/test-bidi_test.c: Likewise.
35481         * tests/unictype/test-block_list.c: Likewise.
35482         * tests/unictype/test-block_of.c: Likewise.
35483         * tests/unictype/test-block_test.c: Likewise.
35484         * tests/unictype/test-categ_and.c: Likewise.
35485         * tests/unictype/test-categ_and_not.c: Likewise.
35486         * tests/unictype/test-categ_byname.c: Likewise.
35487         * tests/unictype/test-categ_name.c: Likewise.
35488         * tests/unictype/test-categ_none.c: Likewise.
35489         * tests/unictype/test-categ_of.c: Likewise.
35490         * tests/unictype/test-categ_or.c: Likewise.
35491         * tests/unictype/test-categ_test_withtable.c: Likewise.
35492         * tests/unictype/test-combining.c: Likewise.
35493         * tests/unictype/test-decdigit.c: Likewise.
35494         * tests/unictype/test-digit.c: Likewise.
35495         * tests/unictype/test-mirror.c: Likewise.
35496         * tests/unictype/test-numeric.c: Likewise.
35497         * tests/unictype/test-pr_byname.c: Likewise.
35498         * tests/unictype/test-pr_test.c: Likewise.
35499         * tests/unictype/test-predicate-part1.h: Likewise.
35500         * tests/unictype/test-scripts.c: Likewise.
35501         * tests/unictype/test-sy_c_ident.c: Likewise.
35502         * tests/unictype/test-sy_java_ident.c: Likewise.
35503         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35504         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35505         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35506         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35507         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35508         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35509         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35510         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35511         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35512         * tests/uninorm/test-compat-decomposition.c: Likewise.
35513         * tests/uninorm/test-composition.c: Likewise.
35514         * tests/uninorm/test-decomposing-form.c: Likewise.
35515         * tests/uninorm/test-decomposition.c: Likewise.
35516         * tests/uninorm/test-u8-nfc.c: Likewise.
35517         * tests/uninorm/test-u8-nfd.c: Likewise.
35518         * tests/uninorm/test-u8-nfkc.c: Likewise.
35519         * tests/uninorm/test-u8-nfkd.c: Likewise.
35520         * tests/uninorm/test-u8-normcmp.c: Likewise.
35521         * tests/uninorm/test-u8-normcoll.c: Likewise.
35522         * tests/uninorm/test-u16-nfc.c: Likewise.
35523         * tests/uninorm/test-u16-nfd.c: Likewise.
35524         * tests/uninorm/test-u16-nfkc.c: Likewise.
35525         * tests/uninorm/test-u16-nfkd.c: Likewise.
35526         * tests/uninorm/test-u16-normcmp.c: Likewise.
35527         * tests/uninorm/test-u16-normcoll.c: Likewise.
35528         * tests/uninorm/test-u32-nfc.c: Likewise.
35529         * tests/uninorm/test-u32-nfd.c: Likewise.
35530         * tests/uninorm/test-u32-nfkc.c: Likewise.
35531         * tests/uninorm/test-u32-nfkd.c: Likewise.
35532         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35533         * tests/uninorm/test-u32-normcmp.c: Likewise.
35534         * tests/uninorm/test-u32-normcoll.c: Likewise.
35535         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35536         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35537         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35538         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35539         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35540         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35541         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35542         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35543         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35544         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35545         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35546         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35547         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35548         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35549         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35550         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35551         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35552         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35553         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35554         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35555         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35556         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35557         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35558         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35559         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35560         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35561         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35562         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35563         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35564         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35565         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35566         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35567         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35568         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35569         * tests/uniwidth/test-u8-width.c: Likewise.
35570         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35571         * tests/uniwidth/test-u16-width.c: Likewise.
35572         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35573         * tests/uniwidth/test-u32-width.c: Likewise.
35574         * tests/uniwidth/test-uc_width.c: Likewise.
35575         * tests/uniwidth/test-uc_width2.c: Likewise.
35576         * modules/acl-tests (Files): Add tests/macros.h.
35577         * modules/areadlink-tests (Files): Likewise.
35578         * modules/areadlink-with-size-tests (Files): Likewise.
35579         * modules/areadlinkat-tests (Files): Likewise.
35580         * modules/areadlinkat-with-size-tests (Files): Likewise.
35581         * modules/argmatch-tests (Files): Likewise.
35582         * modules/argv-iter-tests (Files): Likewise.
35583         * modules/array-list-tests (Files): Likewise.
35584         * modules/array-mergesort-tests (Files): Likewise.
35585         * modules/array-oset-tests (Files): Likewise.
35586         * modules/avltree-list-tests (Files): Likewise.
35587         * modules/avltree-oset-tests (Files): Likewise.
35588         * modules/avltreehash-list-tests (Files): Likewise.
35589         * modules/base64-tests (Files): Likewise.
35590         * modules/binary-io-tests (Files): Likewise.
35591         * modules/bitrotate-tests (Files): Likewise.
35592         * modules/btowc-tests (Files): Likewise.
35593         * modules/byteswap-tests (Files): Likewise.
35594         * modules/c-ctype-tests (Files): Likewise.
35595         * modules/c-stack-tests (Files): Likewise.
35596         * modules/c-strcase-tests (Files): Likewise.
35597         * modules/c-strcasestr-tests (Files): Likewise.
35598         * modules/c-strstr-tests (Files): Likewise.
35599         * modules/canonicalize-lgpl-tests (Files): Likewise.
35600         * modules/canonicalize-tests (Files): Likewise.
35601         * modules/carray-list-tests (Files): Likewise.
35602         * modules/ceilf-tests (Files): Likewise.
35603         * modules/ceill-tests (Files): Likewise.
35604         * modules/chown-tests (Files): Likewise.
35605         * modules/cloexec-tests (Files): Likewise.
35606         * modules/copy-file-tests (Files): Likewise.
35607         * modules/count-one-bits-tests (Files): Likewise.
35608         * modules/dprintf-posix-tests (Files): Likewise.
35609         * modules/dup2-tests (Files): Likewise.
35610         * modules/dup3-tests (Files): Likewise.
35611         * modules/duplocale-tests (Files): Likewise.
35612         * modules/fbufmode-tests (Files): Likewise.
35613         * modules/fchdir-tests (Files): Likewise.
35614         * modules/fcntl-safer-tests (Files): Likewise.
35615         * modules/fcntl-tests (Files): Likewise.
35616         * modules/fdopendir-tests (Files): Likewise.
35617         * modules/fdutimensat-tests (Files): Likewise.
35618         * modules/fflush-tests (Files): Likewise.
35619         * modules/filevercmp-tests (Files): Likewise.
35620         * modules/flock-tests (Files): Likewise.
35621         * modules/floorf-tests (Files): Likewise.
35622         * modules/floorl-tests (Files): Likewise.
35623         * modules/fnmatch-tests (Files): Likewise.
35624         * modules/fopen-safer-tests (Files): Likewise.
35625         * modules/fopen-tests (Files): Likewise.
35626         * modules/fpending-tests (Files): Likewise.
35627         * modules/fprintf-posix-tests (Files): Likewise.
35628         * modules/fpurge-tests (Files): Likewise.
35629         * modules/freadable-tests (Files): Likewise.
35630         * modules/freadahead-tests (Files): Likewise.
35631         * modules/freading-tests (Files): Likewise.
35632         * modules/freadptr-tests (Files): Likewise.
35633         * modules/freadseek-tests (Files): Likewise.
35634         * modules/freopen-tests (Files): Likewise.
35635         * modules/frexp-nolibm-tests (Files): Likewise.
35636         * modules/frexp-tests (Files): Likewise.
35637         * modules/frexpl-nolibm-tests (Files): Likewise.
35638         * modules/frexpl-tests (Files): Likewise.
35639         * modules/fseek-tests (Files): Likewise.
35640         * modules/fseeko-tests (Files): Likewise.
35641         * modules/fstrcmp-tests (Files): Likewise.
35642         * modules/fsync-tests (Files): Likewise.
35643         * modules/ftell-tests (Files): Likewise.
35644         * modules/ftello-tests (Files): Likewise.
35645         * modules/func-tests (Files): Likewise.
35646         * modules/futimens-tests (Files): Likewise.
35647         * modules/fwritable-tests (Files): Likewise.
35648         * modules/fwriting-tests (Files): Likewise.
35649         * modules/getcwd-tests (Files): Likewise.
35650         * modules/getdate-tests (Files): Likewise.
35651         * modules/getdelim-tests (Files): Likewise.
35652         * modules/getdtablesize-tests (Files): Likewise.
35653         * modules/getgroups-tests (Files): Likewise.
35654         * modules/getline-tests (Files): Likewise.
35655         * modules/getndelim2-tests (Files): Likewise.
35656         * modules/glob-tests (Files): Likewise.
35657         * modules/hash-tests (Files): Likewise.
35658         * modules/i-ring-tests (Files): Likewise.
35659         * modules/iconv-tests (Files): Likewise.
35660         * modules/iconv_open-utf-tests (Files): Likewise.
35661         * modules/idpriv-drop-tests (Files): Likewise.
35662         * modules/idpriv-droptemp-tests (Files): Likewise.
35663         * modules/inet_ntop-tests (Files): Likewise.
35664         * modules/inet_pton-tests (Files): Likewise.
35665         * modules/isblank-tests (Files): Likewise.
35666         * modules/isfinite-tests (Files): Likewise.
35667         * modules/isinf-tests (Files): Likewise.
35668         * modules/isnan-tests (Files): Likewise.
35669         * modules/isnand-nolibm-tests (Files): Likewise.
35670         * modules/isnand-tests (Files): Likewise.
35671         * modules/isnanf-nolibm-tests (Files): Likewise.
35672         * modules/isnanf-tests (Files): Likewise.
35673         * modules/isnanl-nolibm-tests (Files): Likewise.
35674         * modules/isnanl-tests (Files): Likewise.
35675         * modules/lchown-tests (Files): Likewise.
35676         * modules/ldexpl-tests (Files): Likewise.
35677         * modules/link-tests (Files): Likewise.
35678         * modules/linkat-tests (Files): Likewise.
35679         * modules/linked-list-tests (Files): Likewise.
35680         * modules/linkedhash-list-tests (Files): Likewise.
35681         * modules/localename-tests (Files): Likewise.
35682         * modules/lseek-tests (Files): Likewise.
35683         * modules/lstat-tests (Files): Likewise.
35684         * modules/mbmemcasecmp-tests (Files): Likewise.
35685         * modules/mbmemcasecoll-tests (Files): Likewise.
35686         * modules/mbrtowc-tests (Files): Likewise.
35687         * modules/mbscasecmp-tests (Files): Likewise.
35688         * modules/mbscasestr-tests (Files): Likewise.
35689         * modules/mbschr-tests (Files): Likewise.
35690         * modules/mbscspn-tests (Files): Likewise.
35691         * modules/mbsinit-tests (Files): Likewise.
35692         * modules/mbsncasecmp-tests (Files): Likewise.
35693         * modules/mbsnrtowcs-tests (Files): Likewise.
35694         * modules/mbspbrk-tests (Files): Likewise.
35695         * modules/mbspcasecmp-tests (Files): Likewise.
35696         * modules/mbsrchr-tests (Files): Likewise.
35697         * modules/mbsrtowcs-tests (Files): Likewise.
35698         * modules/mbsspn-tests (Files): Likewise.
35699         * modules/mbsstr-tests (Files): Likewise.
35700         * modules/memchr-tests (Files): Likewise.
35701         * modules/memchr2-tests (Files): Likewise.
35702         * modules/memcmp-tests (Files): Likewise.
35703         * modules/memmem-tests (Files): Likewise.
35704         * modules/memrchr-tests (Files): Likewise.
35705         * modules/mkdir-tests (Files): Likewise.
35706         * modules/mkfifo-tests (Files): Likewise.
35707         * modules/mkfifoat-tests (Files): Likewise.
35708         * modules/mknod-tests (Files): Likewise.
35709         * modules/nanosleep-tests (Files): Likewise.
35710         * modules/nl_langinfo-tests (Files): Likewise.
35711         * modules/obstack-printf-tests (Files): Likewise.
35712         * modules/open-tests (Files): Likewise.
35713         * modules/openat-tests (Files): Likewise.
35714         * modules/pipe-filter-gi-tests (Files): Likewise.
35715         * modules/pipe-filter-ii-tests (Files): Likewise.
35716         * modules/pipe2-tests (Files): Likewise.
35717         * modules/popen-safer-tests (Files): Likewise.
35718         * modules/popen-tests (Files): Likewise.
35719         * modules/posixtm-tests (Files): Likewise.
35720         * modules/pread-tests (Files): Likewise.
35721         * modules/printf-frexp-tests (Files): Likewise.
35722         * modules/printf-frexpl-tests (Files): Likewise.
35723         * modules/printf-posix-tests (Files): Likewise.
35724         * modules/priv-set-tests (Files): Likewise.
35725         * modules/quotearg-tests (Files): Likewise.
35726         * modules/random_r-tests (Files): Likewise.
35727         * modules/rawmemchr-tests (Files): Likewise.
35728         * modules/rbtree-list-tests (Files): Likewise.
35729         * modules/rbtree-oset-tests (Files): Likewise.
35730         * modules/rbtreehash-list-tests (Files): Likewise.
35731         * modules/readlink-tests (Files): Likewise.
35732         * modules/remove-tests (Files): Likewise.
35733         * modules/rename-tests (Files): Likewise.
35734         * modules/renameat-tests (Files): Likewise.
35735         * modules/rmdir-tests (Files): Likewise.
35736         * modules/round-tests (Files): Likewise.
35737         * modules/roundf-tests (Files): Likewise.
35738         * modules/roundl-tests (Files): Likewise.
35739         * modules/safe-alloc-tests (Files): Likewise.
35740         * modules/setenv-tests (Files): Likewise.
35741         * modules/sigaction-tests (Files): Likewise.
35742         * modules/signbit-tests (Files): Likewise.
35743         * modules/sleep-tests (Files): Likewise.
35744         * modules/snprintf-posix-tests (Files): Likewise.
35745         * modules/snprintf-tests (Files): Likewise.
35746         * modules/sprintf-posix-tests (Files): Likewise.
35747         * modules/stat-tests (Files): Likewise.
35748         * modules/stat-time-tests (Files): Likewise.
35749         * modules/strcasestr-tests (Files): Likewise.
35750         * modules/strchrnul-tests (Files): Likewise.
35751         * modules/strerror-tests (Files): Likewise.
35752         * modules/striconv-tests (Files): Likewise.
35753         * modules/striconveh-tests (Files): Likewise.
35754         * modules/striconveha-tests (Files): Likewise.
35755         * modules/strsignal-tests (Files): Likewise.
35756         * modules/strstr-tests (Files): Likewise.
35757         * modules/strtod-tests (Files): Likewise.
35758         * modules/strverscmp-tests (Files): Likewise.
35759         * modules/symlink-tests (Files): Likewise.
35760         * modules/symlinkat-tests (Files): Likewise.
35761         * modules/trunc-tests (Files): Likewise.
35762         * modules/truncf-tests (Files): Likewise.
35763         * modules/truncl-tests (Files): Likewise.
35764         * modules/uname-tests (Files): Likewise.
35765         * modules/unicase/cased-tests (Files): Likewise.
35766         * modules/unicase/ignorable-tests (Files): Likewise.
35767         * modules/unicase/locale-language-tests (Files): Likewise.
35768         * modules/unicase/tolower-tests (Files): Likewise.
35769         * modules/unicase/totitle-tests (Files): Likewise.
35770         * modules/unicase/toupper-tests (Files): Likewise.
35771         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35772         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35773         * modules/unicase/u8-casefold-tests (Files): Likewise.
35774         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35775         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35776         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35777         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35778         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35779         * modules/unicase/u8-tolower-tests (Files): Likewise.
35780         * modules/unicase/u8-totitle-tests (Files): Likewise.
35781         * modules/unicase/u8-toupper-tests (Files): Likewise.
35782         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35783         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35784         * modules/unicase/u16-casefold-tests (Files): Likewise.
35785         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35786         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35787         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35788         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35789         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35790         * modules/unicase/u16-tolower-tests (Files): Likewise.
35791         * modules/unicase/u16-totitle-tests (Files): Likewise.
35792         * modules/unicase/u16-toupper-tests (Files): Likewise.
35793         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35794         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35795         * modules/unicase/u32-casefold-tests (Files): Likewise.
35796         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35797         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35798         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35799         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35800         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35801         * modules/unicase/u32-tolower-tests (Files): Likewise.
35802         * modules/unicase/u32-totitle-tests (Files): Likewise.
35803         * modules/unicase/u32-toupper-tests (Files): Likewise.
35804         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35805         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35806         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35807         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35808         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35809         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35810         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35811         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35812         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35813         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35814         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35815         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35816         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35817         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35818         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35819         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35820         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35821         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35822         * modules/unictype/block-list-tests (Files): Likewise.
35823         * modules/unictype/block-of-tests (Files): Likewise.
35824         * modules/unictype/block-test-tests (Files): Likewise.
35825         * modules/unictype/category-C-tests (Files): Likewise.
35826         * modules/unictype/category-Cc-tests (Files): Likewise.
35827         * modules/unictype/category-Cf-tests (Files): Likewise.
35828         * modules/unictype/category-Cn-tests (Files): Likewise.
35829         * modules/unictype/category-Co-tests (Files): Likewise.
35830         * modules/unictype/category-Cs-tests (Files): Likewise.
35831         * modules/unictype/category-L-tests (Files): Likewise.
35832         * modules/unictype/category-Ll-tests (Files): Likewise.
35833         * modules/unictype/category-Lm-tests (Files): Likewise.
35834         * modules/unictype/category-Lo-tests (Files): Likewise.
35835         * modules/unictype/category-Lt-tests (Files): Likewise.
35836         * modules/unictype/category-Lu-tests (Files): Likewise.
35837         * modules/unictype/category-M-tests (Files): Likewise.
35838         * modules/unictype/category-Mc-tests (Files): Likewise.
35839         * modules/unictype/category-Me-tests (Files): Likewise.
35840         * modules/unictype/category-Mn-tests (Files): Likewise.
35841         * modules/unictype/category-N-tests (Files): Likewise.
35842         * modules/unictype/category-Nd-tests (Files): Likewise.
35843         * modules/unictype/category-Nl-tests (Files): Likewise.
35844         * modules/unictype/category-No-tests (Files): Likewise.
35845         * modules/unictype/category-P-tests (Files): Likewise.
35846         * modules/unictype/category-Pc-tests (Files): Likewise.
35847         * modules/unictype/category-Pd-tests (Files): Likewise.
35848         * modules/unictype/category-Pe-tests (Files): Likewise.
35849         * modules/unictype/category-Pf-tests (Files): Likewise.
35850         * modules/unictype/category-Pi-tests (Files): Likewise.
35851         * modules/unictype/category-Po-tests (Files): Likewise.
35852         * modules/unictype/category-Ps-tests (Files): Likewise.
35853         * modules/unictype/category-S-tests (Files): Likewise.
35854         * modules/unictype/category-Sc-tests (Files): Likewise.
35855         * modules/unictype/category-Sk-tests (Files): Likewise.
35856         * modules/unictype/category-Sm-tests (Files): Likewise.
35857         * modules/unictype/category-So-tests (Files): Likewise.
35858         * modules/unictype/category-Z-tests (Files): Likewise.
35859         * modules/unictype/category-Zl-tests (Files): Likewise.
35860         * modules/unictype/category-Zp-tests (Files): Likewise.
35861         * modules/unictype/category-Zs-tests (Files): Likewise.
35862         * modules/unictype/category-and-not-tests (Files): Likewise.
35863         * modules/unictype/category-and-tests (Files): Likewise.
35864         * modules/unictype/category-byname-tests (Files): Likewise.
35865         * modules/unictype/category-name-tests (Files): Likewise.
35866         * modules/unictype/category-none-tests (Files): Likewise.
35867         * modules/unictype/category-of-tests (Files): Likewise.
35868         * modules/unictype/category-or-tests (Files): Likewise.
35869         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35870         * modules/unictype/combining-class-tests (Files): Likewise.
35871         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35872         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35873         * modules/unictype/ctype-blank-tests (Files): Likewise.
35874         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35875         * modules/unictype/ctype-digit-tests (Files): Likewise.
35876         * modules/unictype/ctype-graph-tests (Files): Likewise.
35877         * modules/unictype/ctype-lower-tests (Files): Likewise.
35878         * modules/unictype/ctype-print-tests (Files): Likewise.
35879         * modules/unictype/ctype-punct-tests (Files): Likewise.
35880         * modules/unictype/ctype-space-tests (Files): Likewise.
35881         * modules/unictype/ctype-upper-tests (Files): Likewise.
35882         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35883         * modules/unictype/decimal-digit-tests (Files): Likewise.
35884         * modules/unictype/digit-tests (Files): Likewise.
35885         * modules/unictype/mirror-tests (Files): Likewise.
35886         * modules/unictype/numeric-tests (Files): Likewise.
35887         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35888         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35889         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35890         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35891         Likewise.
35892         * modules/unictype/property-bidi-block-separator-tests (Files):
35893         Likewise.
35894         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35895         Likewise.
35896         * modules/unictype/property-bidi-common-separator-tests (Files):
35897         Likewise.
35898         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35899         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35900         Likewise.
35901         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35902         Likewise.
35903         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35904         Likewise.
35905         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35906         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35907         Likewise.
35908         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35909         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35910         Likewise.
35911         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35912         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35913         * modules/unictype/property-bidi-segment-separator-tests (Files):
35914         Likewise.
35915         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35916         * modules/unictype/property-byname-tests (Files): Likewise.
35917         * modules/unictype/property-combining-tests (Files): Likewise.
35918         * modules/unictype/property-composite-tests (Files): Likewise.
35919         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35920         * modules/unictype/property-dash-tests (Files): Likewise.
35921         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35922         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35923         Likewise.
35924         * modules/unictype/property-deprecated-tests (Files): Likewise.
35925         * modules/unictype/property-diacritic-tests (Files): Likewise.
35926         * modules/unictype/property-extender-tests (Files): Likewise.
35927         * modules/unictype/property-format-control-tests (Files): Likewise.
35928         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35929         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35930         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35931         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35932         * modules/unictype/property-hyphen-tests (Files): Likewise.
35933         * modules/unictype/property-id-continue-tests (Files): Likewise.
35934         * modules/unictype/property-id-start-tests (Files): Likewise.
35935         * modules/unictype/property-ideographic-tests (Files): Likewise.
35936         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35937         * modules/unictype/property-ids-trinary-operator-tests (Files):
35938         Likewise.
35939         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35940         * modules/unictype/property-iso-control-tests (Files): Likewise.
35941         * modules/unictype/property-join-control-tests (Files): Likewise.
35942         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35943         * modules/unictype/property-line-separator-tests (Files): Likewise.
35944         * modules/unictype/property-logical-order-exception-tests (Files):
35945         Likewise.
35946         * modules/unictype/property-lowercase-tests (Files): Likewise.
35947         * modules/unictype/property-math-tests (Files): Likewise.
35948         * modules/unictype/property-non-break-tests (Files): Likewise.
35949         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35950         * modules/unictype/property-numeric-tests (Files): Likewise.
35951         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35952         * modules/unictype/property-other-default-ignorable-code-point-tests
35953         (Files): Likewise.
35954         * modules/unictype/property-other-grapheme-extend-tests (Files):
35955         Likewise.
35956         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35957         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35958         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35959         * modules/unictype/property-other-math-tests (Files): Likewise.
35960         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35961         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35962         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35963         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35964         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35965         * modules/unictype/property-private-use-tests (Files): Likewise.
35966         * modules/unictype/property-punctuation-tests (Files): Likewise.
35967         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35968         * modules/unictype/property-radical-tests (Files): Likewise.
35969         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35970         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35971         * modules/unictype/property-space-tests (Files): Likewise.
35972         * modules/unictype/property-terminal-punctuation-tests (Files):
35973         Likewise.
35974         * modules/unictype/property-test-tests (Files): Likewise.
35975         * modules/unictype/property-titlecase-tests (Files): Likewise.
35976         * modules/unictype/property-unassigned-code-value-tests (Files):
35977         Likewise.
35978         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35979         * modules/unictype/property-uppercase-tests (Files): Likewise.
35980         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35981         * modules/unictype/property-white-space-tests (Files): Likewise.
35982         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35983         * modules/unictype/property-xid-start-tests (Files): Likewise.
35984         * modules/unictype/property-zero-width-tests (Files): Likewise.
35985         * modules/unictype/scripts-tests (Files): Likewise.
35986         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35987         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35988         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35989         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35990         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35991         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35992         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35993         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35994         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35995         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35996         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35997         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35998         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35999         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36000         * modules/uninorm/composition-tests (Files): Likewise.
36001         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36002         * modules/uninorm/decomposition-tests (Files): Likewise.
36003         * modules/uninorm/filter-tests (Files): Likewise.
36004         * modules/uninorm/nfc-tests (Files): Likewise.
36005         * modules/uninorm/nfd-tests (Files): Likewise.
36006         * modules/uninorm/nfkc-tests (Files): Likewise.
36007         * modules/uninorm/nfkd-tests (Files): Likewise.
36008         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36009         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36010         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36011         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36012         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36013         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36014         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36015         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36016         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36017         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36018         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36019         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36020         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36021         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36022         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36023         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36024         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36025         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36026         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36027         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36028         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36029         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36030         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36031         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36032         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36033         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36034         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36035         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36036         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36037         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36038         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36039         * modules/uniwidth/u8-width-tests (Files): Likewise.
36040         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36041         * modules/uniwidth/u16-width-tests (Files): Likewise.
36042         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36043         * modules/uniwidth/u32-width-tests (Files): Likewise.
36044         * modules/uniwidth/width-tests (Files): Likewise.
36045         * modules/unlink-tests (Files): Likewise.
36046         * modules/unsetenv-tests (Files): Likewise.
36047         * modules/usleep-tests (Files): Likewise.
36048         * modules/utimens-tests (Files): Likewise.
36049         * modules/utimensat-tests (Files): Likewise.
36050         * modules/vasnprintf-posix-tests (Files): Likewise.
36051         * modules/vasnprintf-tests (Files): Likewise.
36052         * modules/vasprintf-posix-tests (Files): Likewise.
36053         * modules/vasprintf-tests (Files): Likewise.
36054         * modules/vdprintf-posix-tests (Files): Likewise.
36055         * modules/vfprintf-posix-tests (Files): Likewise.
36056         * modules/vprintf-posix-tests (Files): Likewise.
36057         * modules/vsnprintf-posix-tests (Files): Likewise.
36058         * modules/vsnprintf-tests (Files): Likewise.
36059         * modules/vsprintf-posix-tests (Files): Likewise.
36060         * modules/wcrtomb-tests (Files): Likewise.
36061         * modules/wcsnrtombs-tests (Files): Likewise.
36062         * modules/wcsrtombs-tests (Files): Likewise.
36063         * modules/wctype-tests (Files): Likewise.
36064         * modules/wcwidth-tests (Files): Likewise.
36065         * modules/xmemdup0-tests (Files): Likewise.
36066         * modules/xprintf-posix-tests (Files): Likewise.
36067         * modules/xvasprintf-tests (Files): Likewise.
36068
36069 2009-12-24  Eric Blake  <ebb9@byu.net>
36070
36071         test-nanosleep: fix typo
36072         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36073         patch.
36074         Reported by Bruno Haible.
36075
36076 2009-12-24  Bruno Haible  <bruno@clisp.org>
36077
36078         Reduce namespace pollution on glibc systems.
36079         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36080         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36081         systems.
36082         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36083         <getopt.h> on glibc systems.
36084         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36085         systems.
36086         * lib/fcntl.c: Include <unistd.h> here instead.
36087
36088 2009-12-24  Bruno Haible  <bruno@clisp.org>
36089
36090         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36091
36092 2009-12-24  Eric Blake  <ebb9@byu.net>
36093
36094         tests: add signature checks
36095         * tests/signature.h (SIGNATURE_CHECK): New file.
36096         * modules/atexit-tests (Files): Use it.
36097         * modules/btowc-tests (Files): Likewise.
36098         * modules/canonicalize-lgpl-tests (Files): Likewise.
36099         * modules/ceilf-tests (Files): Likewise.
36100         * modules/ceill-tests (Files): Likewise.
36101         * modules/chown-tests (Files): Likewise.
36102         * modules/dprintf-posix-tests (Files): Likewise.
36103         * modules/dup2-tests (Files): Likewise.
36104         * modules/dup3-tests (Files): Likewise.
36105         * modules/duplocale-tests (Files): Likewise.
36106         * modules/fchdir-tests (Files): Likewise.
36107         * modules/fcntl-tests (Files): Likewise.
36108         * modules/fdopendir-tests (Files): Likewise.
36109         * modules/fflush-tests (Files): Likewise.
36110         * modules/flock-tests (Files): Likewise.
36111         * modules/floorf-tests (Files): Likewise.
36112         * modules/floorl-tests (Files): Likewise.
36113         * modules/fnmatch-tests (Files): Likewise.
36114         * modules/fopen-tests (Files): Likewise.
36115         * modules/fprintf-posix-tests (Files): Likewise.
36116         * modules/freopen-tests (Files): Likewise.
36117         * modules/frexp-nolibm-tests (Files): Likewise.
36118         * modules/frexp-tests (Files): Likewise.
36119         * modules/frexpl-nolibm-tests (Files): Likewise.
36120         * modules/frexpl-tests (Files): Likewise.
36121         * modules/fseek-tests (Files): Likewise.
36122         * modules/fseeko-tests (Files): Likewise.
36123         * modules/fsync-tests (Files): Likewise.
36124         * modules/ftell-tests (Files): Likewise.
36125         * modules/ftello-tests (Files): Likewise.
36126         * modules/futimens-tests (Files): Likewise.
36127         * modules/getaddrinfo-tests (Files): Likewise.
36128         * modules/getcwd-tests (Files): Likewise.
36129         * modules/getdelim-tests (Files): Likewise.
36130         * modules/getdtablesize-tests (Files): Likewise.
36131         * modules/getgroups-tests (Files): Likewise.
36132         * modules/gethostname-tests (Files): Likewise.
36133         * modules/getline-tests (Files): Likewise.
36134         * modules/getopt-posix-tests (Files): Likewise.
36135         * modules/gettimeofday-tests (Files): Likewise.
36136         * modules/glob-tests (Files): Likewise.
36137         * modules/iconv-tests (Files): Likewise.
36138         * modules/inet_ntop-tests (Files): Likewise.
36139         * modules/inet_pton-tests (Files): Likewise.
36140         * modules/isblank-tests (Files): Likewise.
36141         * modules/lchown-tests (Files): Likewise.
36142         * modules/ldexpl-tests (Files): Likewise.
36143         * modules/link-tests (Files): Likewise.
36144         * modules/linkat-tests (Files): Likewise.
36145         * modules/lseek-tests (Files): Likewise.
36146         * modules/lstat-tests (Files): Likewise.
36147         * modules/mbrtowc-tests (Files): Likewise.
36148         * modules/mbsinit-tests (Files): Likewise.
36149         * modules/mbsnrtowcs-tests (Files): Likewise.
36150         * modules/mbsrtowcs-tests (Files): Likewise.
36151         * modules/memchr-tests (Files): Likewise.
36152         * modules/memcmp-tests (Files): Likewise.
36153         * modules/memmem-tests (Files): Likewise.
36154         * modules/memrchr-tests (Files): Likewise.
36155         * modules/mkdir-tests (Files): Likewise.
36156         * modules/mkfifo-tests (Files): Likewise.
36157         * modules/mkfifoat-tests (Files): Likewise.
36158         * modules/mknod-tests (Files): Likewise.
36159         * modules/nanosleep-tests (Files): Likewise.
36160         * modules/nl_langinfo-tests (Files): Likewise.
36161         * modules/obstack-printf-tests (Files): Likewise.
36162         * modules/open-tests (Files): Likewise.
36163         * modules/openat-tests (Files): Likewise.
36164         * modules/perror-tests (Files): Likewise.
36165         * modules/pipe2-tests (Files): Likewise.
36166         * modules/poll-tests (Files): Likewise.
36167         * modules/popen-tests (Files): Likewise.
36168         * modules/posix_spawn-tests (Files): Likewise.
36169         * modules/posix_spawnp-tests (Files): Likewise.
36170         * modules/pread-tests (Files): Likewise.
36171         * modules/printf-posix-tests (Files): Likewise.
36172         * modules/pty-tests (Files): Likewise.
36173         * modules/random_r-tests (Files): Likewise.
36174         * modules/rawmemchr-tests (Files): Likewise.
36175         * modules/readlink-tests (Files): Likewise.
36176         * modules/remove-tests (Files): Likewise.
36177         * modules/rename-tests (Files): Likewise.
36178         * modules/renameat-tests (Files): Likewise.
36179         * modules/rmdir-tests (Files): Likewise.
36180         * modules/round-tests (Files): Likewise.
36181         * modules/roundf-tests (Files): Likewise.
36182         * modules/roundl-tests (Files): Likewise.
36183         * modules/select-tests (Files): Likewise.
36184         * modules/setenv-tests (Files): Likewise.
36185         * modules/sigaction-tests (Files): Likewise.
36186         * modules/sleep-tests (Files): Likewise.
36187         * modules/snprintf-posix-tests (Files): Likewise.
36188         * modules/snprintf-tests (Files): Likewise.
36189         * modules/sprintf-posix-tests (Files): Likewise.
36190         * modules/stat-tests (Files): Likewise.
36191         * modules/strcasestr-tests (Files): Likewise.
36192         * modules/strchrnul-tests (Files): Likewise.
36193         * modules/strerror-tests (Files): Likewise.
36194         * modules/strsignal-tests (Files): Likewise.
36195         * modules/strstr-tests (Files): Likewise.
36196         * modules/strtod-tests (Files): Likewise.
36197         * modules/strverscmp-tests (Files): Likewise.
36198         * modules/symlink-tests (Files): Likewise.
36199         * modules/symlinkat-tests (Files): Likewise.
36200         * modules/times-tests (Files): Likewise.
36201         * modules/trunc-tests (Files): Likewise.
36202         * modules/truncf-tests (Files): Likewise.
36203         * modules/truncl-tests (Files): Likewise.
36204         * modules/tsearch-tests (Files): Likewise.
36205         * modules/uname-tests (Files): Likewise.
36206         * modules/unlink-tests (Files): Likewise.
36207         * modules/unsetenv-tests (Files): Likewise.
36208         * modules/usleep-tests (Files): Likewise.
36209         * modules/utimensat-tests (Files): Likewise.
36210         * modules/vasprintf-tests (Files): Likewise.
36211         * modules/vdprintf-posix-tests (Files): Likewise.
36212         * modules/vfprintf-posix-tests (Files): Likewise.
36213         * modules/vprintf-posix-tests (Files): Likewise.
36214         * modules/vsnprintf-posix-tests (Files): Likewise.
36215         * modules/vsnprintf-tests (Files): Likewise.
36216         * modules/vsprintf-posix-tests (Files): Likewise.
36217         * modules/wcrtomb-tests (Files): Likewise.
36218         * modules/wcsnrtombs-tests (Files): Likewise.
36219         * modules/wcsrtombs-tests (Files): Likewise.
36220         * modules/wcwidth-tests (Files): Likewise.
36221         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36222         * tests/test-isinf.c (isinf): Likewise.
36223         * tests/test-isnan.c (isnan): Likewise.
36224         * tests/test-signbit.c (signbit): Likewise.
36225         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36226         declaration, either as macro or with correct signature.
36227         (select): Ensure function under test is declared with correct
36228         signature in correct header.
36229         * tests/test-atexit.c (atexit): Likewise.
36230         * tests/test-btowc.c (btowc): Likewise.
36231         * tests/test-canonicalize-lgpl.c (realpath)
36232         (canonicalize_file_name): Likewise.
36233         * tests/test-ceilf1.c (ceilf): Likewise.
36234         * tests/test-ceill.c (ceill): Likewise.
36235         * tests/test-chown.c (chown): Likewise.
36236         * tests/test-dprintf-posix.c (dprintf): Likewise.
36237         * tests/test-dup2.c (dup2): Likewise.
36238         * tests/test-dup3.c (dup3): Likewise.
36239         * tests/test-duplocale.c (duplocale): Likewise.
36240         * tests/test-fchdir.c (fchdir): Likewise.
36241         * tests/test-fchownat.c (fchownat): Likewise.
36242         * tests/test-fcntl.c (fcntl): Likewise.
36243         * tests/test-fdopendir.c (fdopendir): Likewise.
36244         * tests/test-fflush.c (fflush): Likewise.
36245         * tests/test-flock.c (flock): Likewise.
36246         * tests/test-floorf1.c (floorf): Likewise.
36247         * tests/test-floorl.c (floorl): Likewise.
36248         * tests/test-fnmatch.c (fnmatch): Likewise.
36249         * tests/test-fopen.c (fopen): Likewise.
36250         * tests/test-fprintf-posix.c (fprintf): Likewise.
36251         * tests/test-freopen.c (freopen): Likewise.
36252         * tests/test-frexp.c (frexp): Likewise.
36253         * tests/test-frexpl.c (frexpl): Likewise.
36254         * tests/test-fseek.c (fseek): Likewise.
36255         * tests/test-fseeko.c (fseeko): Likewise.
36256         * tests/test-fstatat.c (fstatat): Likewise.
36257         * tests/test-fsync.c (fsync): Likewise.
36258         * tests/test-ftell.c (ftell): Likewise.
36259         * tests/test-ftello.c (ftello): Likewise.
36260         * tests/test-futimens.c (futimens): Likewise.
36261         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36262         (gai_strerror): Likewise.
36263         * tests/test-getcwd.c (getcwd): Likewise.
36264         * tests/test-getdelim.c (getdelim): Likewise.
36265         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36266         * tests/test-getgroups.c (getgroups): Likewise.
36267         * tests/test-gethostname.c (gethostname): Likewise.
36268         * tests/test-getline.c (getline): Likewise.
36269         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36270         Likewise.
36271         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36272         * tests/test-glob.c (glob, globfree): Likewise.
36273         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36274         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36275         * tests/test-inet_pton.c (inet_pton): Likewise.
36276         * tests/test-isblank.c (isblank): Likewise.
36277         * tests/test-lchown.c (lchown): Likewise.
36278         * tests/test-ldexpl.c (ldexpl): Likewise.
36279         * tests/test-link.c (link): Likewise.
36280         * tests/test-linkat.c (linkat): Likewise.
36281         * tests/test-lseek.c (lseek): Likewise.
36282         * tests/test-lstat.c (lstat): Likewise.
36283         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36284         * tests/test-mbsinit.c (mbsinit): Likewise.
36285         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36286         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36287         * tests/test-memchr.c (memchr): Likewise.
36288         * tests/test-memcmp.c (memcmp): Likewise.
36289         * tests/test-memmem.c (memmem): Likewise.
36290         * tests/test-memrchr.c (memrchr): Likewise.
36291         * tests/test-mkdir.c (mkdir): Likewise.
36292         * tests/test-mkdirat.c (mkdirat): Likewise.
36293         * tests/test-mkfifo.c (mkfifo): Likewise.
36294         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36295         * tests/test-mknod.c (mknod): Likewise.
36296         * tests/test-nanosleep.c (nanosleep): Likewise.
36297         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36298         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36299         Likewise.
36300         * tests/test-open.c (open): Likewise.
36301         * tests/test-openat.c (openat): Likewise.
36302         * tests/test-perror.c (perror): Likewise.
36303         * tests/test-pipe2.c (pipe2): Likewise.
36304         * tests/test-poll.c (poll): Likewise.
36305         * tests/test-popen.c (popen, pclose): Likewise.
36306         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36307         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36308         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36309         (posix_spawn_file_actions_destroy)
36310         (posix_spawn_file_actions_addclose)
36311         (posix_spawn_file_actions_addopen)
36312         (posix_spawn_file_actions_adddup2): Likewise.
36313         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36314         * tests/test-pread.c (pread): Likewise.
36315         * tests/test-printf-posix.c (printf): Likewise.
36316         * tests/test-pty.c (openpty, forkpty): Likewise.
36317         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36318         (random_r): Likewise.
36319         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36320         * tests/test-readlink.c (readlink): Likewise.
36321         * tests/test-remove.c (remove): Likewise.
36322         * tests/test-rename.c (rename): Likewise.
36323         * tests/test-renameat.c (renameat): Likewise.
36324         * tests/test-rmdir.c (rmdir): Likewise.
36325         * tests/test-round1.c (round): Likewise.
36326         * tests/test-roundf1.c (roundf): Likewise.
36327         * tests/test-roundl.c (roundl): Likewise.
36328         * tests/test-setenv.c (setenv): Likewise.
36329         * tests/test-sigaction.c (sigaction): Likewise.
36330         * tests/test-sleep.c (sleep): Likewise.
36331         * tests/test-snprintf.c (snprintf): Likewise.
36332         * tests/test-sprintf-posix.c (sprintf): Likewise.
36333         * tests/test-stat.c (stat): Likewise.
36334         * tests/test-stpncpy.c (stpncpy): Likewise.
36335         * tests/test-strcasestr.c (strcasestr): Likewise.
36336         * tests/test-strchrnul.c (strchrnul): Likewise.
36337         * tests/test-strerror.c (strerror): Likewise.
36338         * tests/test-strsignal.c (strsignal): Likewise.
36339         * tests/test-strstr.c (strstr): Likewise.
36340         * tests/test-strtod.c (strtod): Likewise.
36341         * tests/test-strverscmp.c (strverscmp): Likewise.
36342         * tests/test-symlink.c (symlink): Likewise.
36343         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36344         * tests/test-times.c (times): Likewise.
36345         * tests/test-trunc1.c (trunc): Likewise.
36346         * tests/test-truncf1.c (truncf): Likewise.
36347         * tests/test-truncl.c (truncl): Likewise.
36348         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36349         Likewise.
36350         * tests/test-uname.c (uname): Likewise.
36351         * tests/test-unlink.c (unlink): Likewise.
36352         * tests/test-unlinkat.c (unlinkat): Likewise.
36353         * tests/test-unsetenv.c (unsetenv): Likewise.
36354         * tests/test-usleep.c (usleep): Likewise.
36355         * tests/test-utimensat.c (utimensat): Likewise.
36356         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36357         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36358         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36359         * tests/test-vprintf-posix.c (vprintf): Likewise.
36360         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36361         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36362         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36363         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36364         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36365         * tests/test-wcwidth.c (wcwidth): Likewise.
36366
36367         build: pull in conditional headers during GNULIB_POSIXCHECK
36368         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36369         definitions from any conditionally-included headers.
36370         * lib/stdlib.in.h (includes): Likewise.
36371         * lib/unistd.in.h (includes): Likewise.
36372
36373 2009-12-24  Bruno Haible  <bruno@clisp.org>
36374
36375         * tests/test-argv-iter.c: Include header file being tested immediately
36376         after config.h.
36377         * tests/test-base64.c: Likewise.
36378         * tests/test-flock.c: Likewise.
36379         * tests/test-fsync.c: Likewise.
36380         * tests/test-getdate.c: Likewise.
36381         * tests/test-getndelim2.c: Likewise.
36382         * tests/test-isfinite.c: Likewise.
36383         * tests/test-isinf.c: Likewise.
36384         * tests/test-strerror.c: Likewise.
36385         * tests/test-strsignal.c: Likewise.
36386
36387 2009-12-23  Eric Blake  <ebb9@byu.net>
36388
36389         unistd: work around cygwin bug
36390         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36391         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36392         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36393
36394 2009-12-23  Bruno Haible  <bruno@clisp.org>
36395
36396         localename: More tests.
36397         * tests/test-localename.c (SIZEOF): New macro.
36398         (categories): New variable.
36399         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36400         test_locale_name_default): Add test w.r.t. thread locale.
36401         (test_locale_name_thread): New function.
36402         (main): Invoke it.
36403
36404         localename: Make aware of thread locale.
36405         * lib/localename.h (gl_locale_name_thread): New declaration.
36406         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36407         behaviour with respect to thread locale.
36408         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36409         <langinfo.h>, glthread/lock.h.
36410         (SIZE_BITS): New macro.
36411         (string_hash): New function.
36412         (struct hash_node): New type.
36413         (HASH_TABLE_SIZE): New macro.
36414         (struniq_hash_table, struniq_lock): New variables.
36415         (struniq): New function.
36416         (gl_locale_name_thread): New function.
36417         (gl_locale_name): Invoke it.
36418         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36419         * modules/localename (Depends-on): Add lock.
36420         Reported by Mike Gran <spk121@yahoo.com>.
36421
36422 2009-12-23  Eric Blake  <ebb9@byu.net>
36423
36424         va-args: new module
36425         * modules/va-args: New file.
36426         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36427         * MODULES.html.sh (Core language properties): Mention it.
36428
36429         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36430         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36431         named alias for __attribute__((__unused__)).
36432         * lib/chown.c: Update client.
36433         * lib/fchmodat.c: Likewise.
36434         * lib/fts.c: Likewise.
36435         * lib/getdate.y: Likewise.
36436         * lib/getgroups.c: Likewise.
36437         * lib/getopt.c: Likewise.
36438         * lib/getugroups.c: Likewise.
36439         * lib/mkdir.c: Likewise.
36440         * lib/mkfifo.c: Likewise.
36441         * lib/mkfifoat.c: Likewise.
36442         * lib/mknod.c: Likewise.
36443         * lib/mknodat.c: Likewise.
36444         * lib/readlink.c: Likewise.
36445         * lib/se-context.in.h: Likewise.
36446         * lib/se-selinux.in.h: Likewise.
36447         * lib/sockets.c: Likewise.
36448         * lib/symlink.c: Likewise.
36449         * lib/symlinkat.c: Likewise.
36450         * lib/unicodeio.c: Likewise.
36451         * lib/unistr.h: Likewise.
36452         * tests/test-areadlink.c: Likewise.
36453         * tests/test-areadlinkat.c: Likewise.
36454         * tests/test-filenamecat.c: Likewise.
36455         * tests/test-fseeko.c: Likewise.
36456         * tests/test-ftello.c: Likewise.
36457         * tests/test-getdate.c: Likewise.
36458         * tests/test-getgroups.c: Likewise.
36459         * tests/test-gethostname.c: Likewise.
36460         * tests/test-quotearg.c: Likewise.
36461         * tests/test-version-etc.c: Likewise.
36462         * tests/test-xalloc-die.c: Likewise.
36463         * tests/test-xfprintf-posix.c: Likewise.
36464         * tests/test-xprintf-posix.c: Likewise.
36465         * tests/test-xvasprintf.c: Likewise.
36466
36467         tests: avoid compiler warnings
36468         * tests/test-fcntl.c (main): Delete unused parameters.
36469         * tests/test-freopen-safer.c (main): Likewise.
36470         * tests/test-xalloc-die.c (main): Mark unused parameters.
36471         * tests/test-fseeko.c (main): Likewise.
36472         * tests/test-ftello.c (main): Likewise.
36473         * tests/test-nanosleep.c (main): Avoid declaration warning.
36474         * tests/test-sleep.c (main): Likewise.
36475         * tests/test-unsetenv.c (main): Silence warning about string
36476         literal.
36477         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36478
36479 2009-12-23  Bruno Haible  <bruno@clisp.org>
36480
36481         * tests/test-localename.c (test_locale_name): New function, extracted
36482         from main. Also test mixed situations.
36483         (test_locale_name_posix, test_locale_name_environ,
36484         test_locale_name_default): New functions.
36485         (main): Invoke them all.
36486         * modules/localename-tests (configure.ac): Test for newlocale.
36487
36488 2009-12-23  Bruno Haible  <bruno@clisp.org>
36489
36490         unistd: Ensure getcwd gets declared before being overridden.
36491         * lib/unistd.in.h: Conditionally include <io.h>.
36492
36493 2009-12-22  Bruno Haible  <bruno@clisp.org>
36494
36495         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36496         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36497         (gl_WCHAR_H): Invoke it.
36498         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36499         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36500         Reported by Karl Berry <karl@freefriends.org>.
36501
36502 2009-12-22  Eric Blake  <ebb9@byu.net>
36503
36504         math, unistd: avoid redundant includes
36505         * lib/math.in.h (isnan): No need to re-include <math.h>.
36506         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36507
36508         getsubopt: work around cygwin bug
36509         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36510         avoid conflicting with system getsubopt.
36511         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36512         bug.
36513
36514         getopt: synchronize from glibc
36515         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36516         parameter order.  Adjust all callers.
36517         (_getopt_internal_r, main): Adjust quoting in error messages.
36518         Drop considerations for outdated POSIX 1003.2 error message.
36519         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36520         callers.
36521         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36522
36523         test-getopt: test stderr behavior
36524         * modules/getopt-posix-tests (Depends-on): Add dup2.
36525         * tests/test-getopt.c (ASSERT): Avoid stderr.
36526         (main): Move stderr to a temporary file.
36527         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36528         Instead, add parameter to inform caller if output occurred.
36529         (test_getopt): Adjust all existing tests to expect silence, and
36530         add new tests of leading ":".
36531         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36532         glibc shortcomings with leading "-:" or "+:" in optstring.
36533         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36534         Likewise.
36535         * doc/posix-functions/getopt.texi (getopt): Likewise.
36536
36537         test-getopt: enhance test
36538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36539         supports optind=0.
36540         * tests/test-getopt.c (OPTIND_MIN): Move...
36541         * tests/test-getopt.h (OPTIND_MIN): ...here.
36542         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36543         Require that optind=0 works, since modern BSD supports it in
36544         addition to optreset, and since coreutils expects it.
36545         (test_getopt_long_only): New test.
36546         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36547         glibc shortcomings with 'W;', and enforcement of optind=0.
36548         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36549         Likewise.
36550
36551 2009-12-21  Bruno Haible  <bruno@clisp.org>
36552
36553         localename: Improvements for MacOS X and Cygwin.
36554         * lib/localename.h (gl_locale_name_environ): New declaration.
36555         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36556         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36557         (gl_locale_name_posix): Invoke it.
36558         (gl_locale_name_default): Add comments. Use Windows native API also on
36559         Cygwin.
36560
36561 2009-12-21  Bruno Haible  <bruno@clisp.org>
36562
36563         Update list of Win32 locale ids.
36564         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36565         (LANG_SAMI): Renamed from LANG_SAAMI.
36566         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36567         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36568         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36569         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36570         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36571         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36572         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36573         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36574         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36575         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36576         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36577         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36578         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36579         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36580         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36581         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36582         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36583         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36584         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36585         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36586         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36587         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36588         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36589         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36590         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36591         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36592         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36593         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36594         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36595         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36596         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36597         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36598         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36599         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36600         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36601         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36602         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36603         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36604         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36605         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36606         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36607         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36608         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36609         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36610         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36611         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36612         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36613         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36614         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36615         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36616         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36617         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36618         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36619         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36620         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36621         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36622         Add more languages and countries for Sami, Sorbian. Add more countries
36623         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36624         for Pashto. Change country for Syriac, Tswana.
36625
36626 2009-12-21  Eric Blake  <ebb9@byu.net>
36627
36628         test-utimens: avoid spurious failure
36629         * tests/test-chown.h (nap): Factor...
36630         * tests/nap.h: ...into new file.
36631         * tests/test-lchown.h (nap): Avoid duplication.
36632         * tests/test-utimens-common.h (nap): Use shared implementation,
36633         necessary on file systems with 1-second resolution.
36634         * modules/chown-tests (Files): Include new file.
36635         * modules/fdutimensat-tests (Files): Likewise.
36636         * modules/futimens-tests (Files): Likewise.
36637         * modules/lchown-tests (Files): Likewise.
36638         * modules/openat-tests (Files): Likewise.
36639         * modules/utimens-tests (Files): Likewise.
36640         * modules/utimensat-tests (Files): Likewise.
36641
36642 2009-12-19  Eric Blake  <ebb9@byu.net>
36643
36644         futimens, utimensat: work around Linux bug
36645         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36646         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36647         * lib/utimensat.c (rpl_utimensat): Work around it.
36648         * lib/futimens.c (rpl_futimens): Adjust comment.
36649
36650         utimens: work around Linux ctime bug
36651         * lib/utimens.c (detect_ctime_bug): New helper function.
36652         (update_timespec): Differentiate between workaround needed for
36653         this bug vs. what is needed for systems that lack utimensat.
36654         (fdutimens, lutimens): Work around bug.
36655
36656         utimens: check for ctime update
36657         * tests/test-utimens-common.h (check_ctime): Define.
36658         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36659         * tests/test-futimens.h (test_futimens): Likewise.
36660         * tests/test-lutimens.h (test_lutimens): Likewise.
36661         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36662         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36663
36664 2009-12-19  Bruno Haible  <bruno@clisp.org>
36665
36666         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36667         * tests/test-dprintf-posix2.sh: New file.
36668         * tests/test-dprintf-posix2.c: New file.
36669         * modules/dprintf-posix-tests (Files): Add them.
36670         (configure.ac): Check for getrlimit and setrlimit.
36671         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36672
36673 2009-12-19  Bruno Haible  <bruno@clisp.org>
36674
36675         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36676         * tests/test-fprintf-posix3.sh: New file.
36677         * tests/test-fprintf-posix3.c: New file.
36678         * modules/fprintf-posix-tests (Files): Add them.
36679         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36680
36681 2009-12-19  Eric Blake  <ebb9@byu.net>
36682
36683         dirfd: fix prototype
36684         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36685         * lib/dirfd.c (dirfd): Likewise.
36686
36687         canonicalize: reduce memory usage
36688         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36689         allocation to size.
36690         Reported by Solar Designer <solar@openwall.com>.
36691
36692 2009-12-19  Bruno Haible  <bruno@clisp.org>
36693
36694         New module attribute 'Applicability'.
36695         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36696         * gnulib-tool: New option --extract-applicability.
36697         (func_usage): Document it.
36698         (sed_extract_prog): Recognize it.
36699         (func_get_applicability): New function.
36700         (func_import): Generalize handling of 'link-warning' module.
36701         * modules/link-warning (Applicability): New section.
36702         * modules/arg-nonnull (Applicability): New section.
36703         Repoted by Simon Josefsson <simon@josefsson.org>.
36704
36705 2009-12-19  Bruno Haible  <bruno@clisp.org>
36706
36707         fflush: tweak
36708         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36709         * lib/fseeko.c (rpl_fseeko): Likewise.
36710
36711 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36712
36713         * lib/gl_list.h: Fix typo in comment.
36714
36715 2009-12-16  Eric Blake  <ebb9@byu.net>
36716
36717         fcntl: use to simplify other modules
36718         * modules/cloexec (Depends-on): Add fcntl.
36719         * modules/fchdir (Depends-on): Likewise.
36720         * modules/fd-safer-flag (Depends-on): Likewise.
36721         * modules/unistd-safer (Depends-on): Likewise.
36722         * modules/dup3 (configure.ac): Set module indicator.
36723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36724         missing.
36725         * lib/fchdir.c (_gl_register_dup): Fix comment.
36726         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36727         * lib/dup-safer.c (dup_safer): Likewise.
36728         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36729         * lib/dup3.c (dup3): Likewise.
36730         * tests/test-fchdir.c (main): Enhance test.
36731         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36732
36733         fcntl: port portions of fcntl to mingw
36734         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36735         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36736         replacement for mingw.
36737         * modules/fcntl (Description): Update.
36738         (Depends-on): Add dup2.
36739         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36740         * modules/fcntl-h (Makefile.am): Substitute it.
36741         * lib/fcntl.in.h (fcntl): Update declaration.
36742         (F_DUPFD, F_GETFD): New macros, when needed.
36743         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36744         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36745         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36746         we now guarantee.
36747
36748         fcntl: work around cygwin bug in F_DUPFD
36749         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36750         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36751         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36752         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36753         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36754
36755         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36756         * modules/fcntl (Files): List new files.
36757         (configure.ac): Run a test.
36758         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36759         * lib/fcntl.c (rpl_fcntl): Likewise.
36760         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36761         (gl_FCNTL_H): Always replace fcntl.h.
36762         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36763         * lib/fcntl.in.h (fcntl): Declare replacement.
36764         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36765         needed, plus a witness.
36766         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36767         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36768         * tests/test-fcntl.c: New file.
36769         * modules/fcntl-tests: Likewise.
36770
36771         binary-io: avoid potential compilation warning
36772         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36773         directives.
36774
36775         fflush: avoid compilation error on NetBSD
36776         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36777         between off_t and fpos_t, since the latter is sometimes a struct.
36778         * lib/fseeko.c (rpl_fseeko): Likewise.
36779         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36780
36781 2009-12-15  Eric Blake  <ebb9@byu.net>
36782
36783         fcntl-h, stdio, sys_ioctl: fix declarations
36784         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36785         function must not take arguments.
36786         * lib/sys_ioctl.in.h (ioctl): Likewise.
36787         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36788         (open): Add a link warning.
36789
36790 2009-12-15  Jim Meyering  <meyering@redhat.com>
36791
36792         areadlink, areadlink-with-size: relax license to LGPLv2+
36793         * modules/areadlink (License): Relax to LGPLv2+.
36794         * modules/areadlink-with-size (License): Likewise.
36795
36796 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36797             Bruno Haible  <bruno@clisp.org>
36798
36799         *printf: Fix memory leak.
36800         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36801         * lib/vfprintf.c (vfprintf): Likewise.
36802         * lib/dprintf.c (dprintf): Likewise.
36803         * lib/vdprintf.c (vdprintf): Likewise.
36804
36805 2009-12-14  Eric Blake  <ebb9@byu.net>
36806
36807         accept4: adjust module dependencies
36808         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36809
36810         utimens: one more try at avoiding compiler warning
36811         * lib/utimens.c (lutimens): Lower scope of result.
36812
36813 2009-12-13  Bruno Haible  <bruno@clisp.org>
36814
36815         Move the malloc checking from module 'list' to new module 'xlist'.
36816         * modules/xlist: New file.
36817         * lib/gl_xlist.h: New file.
36818         * lib/gl_xlist.c: New file.
36819         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36820         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36821         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36822         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36823         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36824         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36825         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36826         gl_sortedlist_nx_add): New declarations.
36827         (struct gl_list_implementation): Rename and change methods accordingly.
36828         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36829         (gl_list_nx_create): Renamed from gl_list_create.
36830         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36831         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36832         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36833         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36834         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36835         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36836         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36837         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36838         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36839         gl_list_create_empty.
36840         (gl_list_nx_create): Renamed from gl_list_create.
36841         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36842         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36843         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36844         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36845         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36846         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36847         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36848         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36849         * lib/gl_array_list.c: Don't include xalloc.h.
36850         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36851         NULL upon out-of-memory.
36852         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36853         out-of-memory.
36854         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36855         Change return type to 'int'.
36856         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36857         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36858         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36859         upon out-of-memory.
36860         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36861         upon out-of-memory.
36862         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36863         upon out-of-memory.
36864         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36865         upon out-of-memory.
36866         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36867         out-of-memory.
36868         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36869         Update.
36870         (gl_array_list_implementation): Update.
36871         * lib/gl_carray_list.c: Don't include xalloc.h.
36872         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36873         Return NULL upon out-of-memory.
36874         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36875         out-of-memory.
36876         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36877         Change return type to 'int'.
36878         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36879         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36880         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36881         upon out-of-memory.
36882         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36883         upon out-of-memory.
36884         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36885         out-of-memory.
36886         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36887         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36888         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36889         Update.
36890         (gl_carray_list_implementation): Update.
36891         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36892         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36893         gl_linked_create_empty. Return NULL upon out-of-memory.
36894         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36895         out-of-memory.
36896         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36897         Change return type to 'int'. Return -1 upon out-of-memory.
36898         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36899         out-of-memory.
36900         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36901         upon out-of-memory.
36902         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36903         upon out-of-memory.
36904         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36905         NULL upon out-of-memory.
36906         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36907         upon out-of-memory.
36908         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36909         out-of-memory.
36910         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36911         Update.
36912         * lib/gl_linked_list.c: Don't include xalloc.h.
36913         (gl_linked_list_implementation): Update.
36914         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36915         (add_to_bucket): Change return type to 'int'.
36916         (gl_linkedhash_list_implementation): Update.
36917         * lib/gl_anytree_list1.h (free_subtree): New function.
36918         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36919         gl_tree_create_empty. Return NULL upon out-of-memory.
36920         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36921         Change return type to 'int'. Return -1 upon out-of-memory.
36922         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36923         out-of-memory.
36924         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36925         (gl_tree_remove_node): New function, moved here from
36926         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36927         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36928         Update.
36929         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36930         malloc, not xmalloc. Return NULL upon out-of-memory.
36931         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36932         out-of-memory.
36933         (gl_tree_remove_node_from_tree): New function, extracted from
36934         gl_tree_remove_node.
36935         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36936         upon out-of-memory.
36937         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36938         out-of-memory.
36939         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36940         upon out-of-memory.
36941         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36942         upon out-of-memory.
36943         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36944         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36945         not xmalloc. Return NULL upon out-of-memory.
36946         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36947         out-of-memory.
36948         (gl_tree_remove_node_from_tree): New function, extracted from
36949         gl_tree_remove_node.
36950         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36951         upon out-of-memory.
36952         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36953         out-of-memory.
36954         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36955         upon out-of-memory.
36956         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36957         upon out-of-memory.
36958         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36959         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36960         gl_anytree_list1.h before gl_anyavltree_list2.h.
36961         (gl_avltree_list_implementation): Update.
36962         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36963         gl_anytree_list1.h before gl_anyavltree_list2.h.
36964         (gl_rbtree_list_implementation): Update.
36965         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36966         Change return type to 'int'. Return -1 upon out-of-memory. Use
36967         __builtin_expect.
36968         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36969         (gl_avltreehash_list_implementation): Update.
36970         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36971         (gl_rbtreehash_list_implementation): Update.
36972         * modules/array-list (Depends-on): Remove xalloc.
36973         * modules/carray-list (Depends-on): Likewise.
36974         * modules/linked-list (Depends-on): Likewise.
36975         * modules/linkedhash-list (Depends-on): Likewise.
36976         * modules/avltree-list (Depends-on): Likewise.
36977         * modules/rbtree-list (Depends-on): Likewise.
36978         * modules/avltreehash-list (Depends-on): Likewise.
36979         * modules/rbtreehash-list (Depends-on): Likewise.
36980
36981         * modules/xsublist: New file.
36982         * lib/gl_xsublist.h: New file.
36983         * lib/gl_xsublist.c: New file.
36984         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36985         (gl_sublist_nx_create): New declaration.
36986         * lib/gl_sublist.c: Don't include xalloc.h.
36987         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36988         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36989         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36990         Change return type to 'int'. Return -1 upon out-of-memory.
36991         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36992         upon out-of-memory.
36993         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36994         NULL upon out-of-memory.
36995         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36996         upon out-of-memory.
36997         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36998         NULL upon out-of-memory.
36999         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37000         NULL upon out-of-memory.
37001         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37002         upon out-of-memory.
37003         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37004         (gl_sublist_list_implementation): Update.
37005         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37006         upon out-of-memory.
37007         * modules/sublist (Depends-on): Remove xalloc.
37008
37009         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37010         * tests/test-carray_list.c: Likewise.
37011         * tests/test-linked_list.c: Likewise.
37012         * tests/test-linkedhash_list.c: Likewise.
37013         * tests/test-avltree_list.c: Likewise.
37014         * tests/test-rbtree_list.c: Likewise.
37015         * tests/test-avltreehash_list.c: Likewise.
37016         * tests/test-rbtreehash_list.c: Likewise.
37017         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37018         * modules/carray-list-tests (Makefile.am): Likewise.
37019         * modules/linked-list-tests (Makefile.am): Likewise.
37020         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37021         * modules/avltree-list-tests (Makefile.am): Likewise.
37022         * modules/rbtree-list-tests (Makefile.am): Likewise.
37023         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37024         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37025
37026         * NEWS: Mention the changes.
37027
37028         * lib/clean-temp.c: Include gl_xlist.h.
37029         * modules/clean-temp (Depends-on): Add xlist.
37030
37031         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37032         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37033
37034         * tests/test-array_oset.c: Include gl_xlist.h.
37035         * modules/array-oset-tests (Depends-on): Add xlist.
37036
37037         Reported by José E. Marchesi <jemarch@gnu.org>.
37038
37039 2009-12-13  Bruno Haible  <bruno@clisp.org>
37040
37041         Move the malloc checking from module 'oset' to new module 'xoset'.
37042         * modules/xoset: New file.
37043         * lib/gl_xoset.h: New file.
37044         * lib/gl_xoset.c: New file.
37045         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37046         declarations.
37047         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37048         (struct gl_oset_implementation): Rename and change methods accordingly.
37049         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37050         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37051         'int'. Mark as __warn_unused_result__.
37052         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37053         gl_oset_create_empty.
37054         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37055         'int'.
37056         * lib/gl_array_oset.c: Don't include xalloc.h.
37057         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37058         malloc, not xmalloc.
37059         (grow): Change return type to 'int'. Don't call xalloc_die.
37060         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37061         to 'int'.
37062         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37063         'int'.
37064         (gl_array_oset_implementation): Update.
37065         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37066         gl_tree_create_empty.
37067         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37068         'int'.
37069         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37070         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37071         xmalloc.
37072         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37073         not xmalloc.
37074         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37075         xmalloc.
37076         (gl_avltree_oset_implementation): Update.
37077         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37078         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37079         xmalloc.
37080         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37081         not xmalloc.
37082         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37083         xmalloc.
37084         (gl_rbtree_oset_implementation): Update.
37085         * modules/array-oset (Depends-on): Remove xalloc.
37086         * modules/avltree-oset (Depends-on): Likewise.
37087         * modules/rbtree-oset (Depends-on): Likewise.
37088         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37089         * tests/test-avltree_oset.c: Likewise.
37090         * tests/test-rbtree_oset.c: Likewise.
37091         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37092         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37093         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37094         * NEWS: Mention the change.
37095
37096 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37097
37098         maint.mk: allow a project to override release-prep commands
37099         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37100         commands into a new rule.
37101         (release-prep): New rule.
37102         (release-prep-hook): New overridable variable.
37103
37104 2009-12-13  Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37107
37108 2009-12-13  Jim Meyering  <meyering@redhat.com>
37109
37110         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37111         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37112
37113 2009-12-12  Bruno Haible  <bruno@clisp.org>
37114
37115         duplocale: Tweak.
37116         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37117
37118 2009-12-12  Karl Berry  <karl@gnu.org>
37119
37120         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37121
37122 2009-12-12  Bruno Haible  <bruno@clisp.org>
37123
37124         * m4/po.m4: Undo incorrect untabification.
37125
37126 2009-12-12  Bruno Haible  <bruno@clisp.org>
37127
37128         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37129         * modules/c-strtod (Depends-on): Add locale.
37130         * modules/c-strtold (Depends-on): Likewise.
37131
37132 2009-12-12  Bruno Haible  <bruno@clisp.org>
37133
37134         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37135
37136 2009-12-11  Eric Blake  <ebb9@byu.net>
37137
37138         setenv: relax requirement in light of POSIX ruling
37139         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37140         not NULL.
37141         * tests/test-setenv.c (main): Relax test.
37142         * tests/test-unsetenv.c (main): Likewise.
37143         * doc/posix-functions/setenv.texi (setenv): Document this.
37144         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37145
37146 2009-12-11  Bruno Haible  <bruno@clisp.org>
37147
37148         New module 'fd-safer-flag'.
37149         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37150         * lib/dup-safer.c (dup_safer_flag): Remove function.
37151         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37152         * lib/fd-safer.c (fd_safer_flag): Remove function.
37153         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37154         * modules/cloexec (configure.ac): Drop indicator macro.
37155         * modules/fd-safer-flag: New file.
37156         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37157         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37158         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37159
37160 2009-12-11  Bruno Haible  <bruno@clisp.org>
37161
37162         Tests for module 'nl_langinfo'.
37163         * modules/nl_langinfo-tests: New file.
37164         * tests/test-nl_langinfo.sh: New file.
37165         * tests/test-nl_langinfo.c: New file.
37166
37167         New module 'nl_langinfo'.
37168         * lib/nl_langinfo.c: New file.
37169         * m4/nl_langinfo.m4: New file.
37170         * modules/nl_langinfo: New file.
37171         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37172
37173 2009-12-11  Bruno Haible  <bruno@clisp.org>
37174
37175         Tests for module 'langinfo'.
37176         * modules/langinfo-tests: New file.
37177         * tests/test-langinfo.c: New file.
37178
37179         New module 'langinfo'.
37180         * lib/langinfo.in.h: New file.
37181         * m4/langinfo_h.m4: New file.
37182         * modules/langinfo: New file.
37183         * doc/posix-headers/langinfo.texi: Mention the new module.
37184
37185 2009-12-11  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/config.charset: Untabify.
37188
37189 2009-12-11  Bruno Haible  <bruno@clisp.org>
37190
37191         * modules/unistd-safer (configure.ac): Drop indicator macro.
37192
37193 2009-12-11  Bruno Haible  <bruno@clisp.org>
37194
37195         Move pipe2-safer code to its own file.
37196         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37197         * lib/pipe-safer.c (pipe2_safer): Remove function.
37198         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37199         (Makefile.am): Add it to lib_SOURCES.
37200
37201 2009-12-10  Bruno Haible  <bruno@clisp.org>
37202
37203         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37204
37205 2009-12-10  Bruno Haible  <bruno@clisp.org>
37206
37207         Declare which arguments expect non-NULL values, for GCC and clang.
37208         * build-aux/arg-nonnull.h: New file.
37209         * modules/arg-nonnull: New file.
37210         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37211         (inet_ntop, inet_pton): Use it.
37212         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37213         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37214         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37215         (open, openat): Use it.
37216         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37217         (fnmatch): Use it.
37218         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37219         (getopt, getopt_long, getopt_long_only): Use it.
37220         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37221         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37222         Use it.
37223         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37224         (iconv_open): Use it.
37225         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37226         (strtoimax, strtoumax): Use it.
37227         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37228         (duplocale): Use it.
37229         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37230         (frexp, frexpl): Use it.
37231         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37232         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37233         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37234         (tsearch, tfind, tdelete, twalk): Use it.
37235         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37236         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37237         sigpending): Use it.
37238         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37239         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37240         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37241         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37242         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37243         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37244         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37245         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37246         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37247         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37248         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37249         Use it.
37250         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37251         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37252         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37253         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37254         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37255         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37256         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37257         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37258         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37259         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37260         strtoull, unsetenv): Use it.
37261         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37262         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37263         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37264         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37265         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37266         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37267         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37268         (strcasecmp, strncasecmp): Use it.
37269         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37270         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37271         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37272         rpl_setsockopt): Use it.
37273         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37274         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37275         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37276         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37277         (gettimeofday): Use it.
37278         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37279         (times): Use it.
37280         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37281         (uname): Use it.
37282         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37283         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37284         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37285         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37286         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37287         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37288         unlinkat, write): Use it.
37289         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37290         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37291         * lib/argv-iter.h: Include arg-nonnull.h.
37292         (_ATTRIBUTE_NONNULL_): Remove macro.
37293         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37294         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37295         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37296         optimization.
37297         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37298         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37299         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37300         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37301         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37302         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37303         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37304         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37305         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37306         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37307         * modules/dirent (Depends-on): Add arg-nonnull.
37308         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37309         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37310         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37311         * modules/fnmatch (Depends-on): Add arg-nonnull.
37312         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37313         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37314         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37315         * modules/glob (Depends-on): Add arg-nonnull.
37316         (Makefile.am): Insert arg-nonnull.h into glob.h.
37317         * modules/iconv_open (Depends-on): Add arg-nonnull.
37318         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37319         * modules/inttypes (Depends-on): Add arg-nonnull.
37320         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37321         * modules/locale (Depends-on): Add arg-nonnull.
37322         (Makefile.am): Insert arg-nonnull.h into locale.h.
37323         * modules/math (Depends-on): Add arg-nonnull.
37324         (Makefile.am): Insert arg-nonnull.h into math.h.
37325         * modules/netdb (Depends-on): Add arg-nonnull.
37326         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37327         * modules/search (Depends-on): Add arg-nonnull.
37328         (Makefile.am): Insert arg-nonnull.h into search.h.
37329         * modules/signal (Depends-on): Add arg-nonnull.
37330         (Makefile.am): Insert arg-nonnull.h into signal.h.
37331         * modules/spawn (Depends-on): Add arg-nonnull.
37332         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37333         * modules/stdio (Depends-on): Add arg-nonnull.
37334         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37335         * modules/stdlib (Depends-on): Add arg-nonnull.
37336         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37337         * modules/string (Depends-on): Add arg-nonnull.
37338         (Makefile.am): Insert arg-nonnull.h into string.h.
37339         * modules/strings (Depends-on): Add arg-nonnull.
37340         (Makefile.am): Insert arg-nonnull.h into strings.h.
37341         * modules/sys_socket (Depends-on): Add arg-nonnull.
37342         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37343         * modules/sys_stat (Depends-on): Add arg-nonnull.
37344         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37345         * modules/sys_time (Depends-on): Add arg-nonnull.
37346         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37347         * modules/sys_times (Depends-on): Add arg-nonnull.
37348         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37349         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37350         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37351         * modules/time (Depends-on): Add arg-nonnull.
37352         (Makefile.am): Insert arg-nonnull.h into time.h.
37353         * modules/unistd (Depends-on): Add arg-nonnull.
37354         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37355         * modules/wchar (Depends-on): Add arg-nonnull.
37356         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37357         * modules/argv-iter (Depends-on): Add arg-nonnull.
37358         * tests/test-canonicalize.c (null_ptr): New function.
37359         (main): Use it.
37360         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37361         (main): Use it.
37362         * tests/test-memmem.c (null_ptr): New function.
37363         (main): Use it.
37364         Reported by Jim Meyering.
37365
37366 2009-12-10  Bruno Haible  <bruno@clisp.org>
37367
37368         Use spaces for indentation, not tabs.
37369         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37370         * m4/*.m4: Untabify.
37371         * build-aux/*.h: Untabify.
37372         * tests/**/*.[hc]: Untabify.
37373         * README: New section "Indent with spaces, not TABs", based on
37374         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37375         * NEWS: Mention the change.
37376
37377 2009-12-10  Bruno Haible  <bruno@clisp.org>
37378
37379         pty test: Fix link error.
37380         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37381         test_pty_LDADD.
37382
37383 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37384
37385         * modules/pty: New file.
37386         * modules/pty-tests: New file.
37387         * m4/pty.m4: New file.
37388         * tests/test-pty.c: New file.
37389         * doc/glibc-headers/pty.texi: Modified.
37390         * doc/glibc-functions/forkpty.texi: Modified.
37391         * doc/glibc-functions/openpty.texi: Modified.
37392
37393 2009-12-10  Bruno Haible  <bruno@clisp.org>
37394
37395         Avoid syntax error in C++ mode.
37396         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37397
37398 2009-12-10  Bruno Haible  <bruno@clisp.org>
37399
37400         Use sed with option -e.
37401         * gnulib-tool (func_version, func_emit_copyright_notice,
37402         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37403         option -e to sed.
37404         * modules/link-warning (Makefile.am): Likewise.
37405
37406 2009-12-10  Jim Meyering  <meyering@redhat.com>
37407
37408         mgetgroups: do not write bytes beyond end of malloc'd buffer
37409         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37410         username, we call getgroups with a one-element-shorter buffer,
37411         but still told it the length was original, max_n_groups.
37412
37413 2009-12-09  Eric Blake  <ebb9@byu.net>
37414
37415         cloexec: relax license
37416         * modules/cloexec (Maintainer): Add myself.
37417         (License): Use LGPL, not GPL.
37418
37419         link-warning: optimize generation
37420         * modules/link-warning (Makefile.am): Reduce process usage.
37421
37422 2009-12-09  Bruno Haible  <bruno@clisp.org>
37423
37424         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37425         workaround was added on 2009-11-17.
37426
37427 2009-12-09  Jim Meyering  <meyering@redhat.com>
37428             Bruno Haible  <bruno@clisp.org>
37429
37430         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37431         * modules/link-warning (Makefile.am): Make the comment-removing sed
37432         command more robust in the face of bootstrap-prepended comment lines.
37433
37434 2009-12-09  Bruno Haible  <bruno@clisp.org>
37435
37436         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37437         most one group.
37438
37439 2009-12-09  Simon Josefsson <simon@josefsson.org>
37440             Bruno Haible  <bruno@clisp.org>
37441
37442         * build-aux/link-warning.h: Add copyright notice.
37443         * modules/link-warning (Makefile.am): Generate link-warning.h from
37444         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37445         * NEWS: Mention change in link-warning module.
37446         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37447         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37448         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37449         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37450         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37451         * modules/math (Makefile.am): Add dependency to math.h.
37452         * modules/search (Makefile.am): Add dependency to search.h.
37453         * modules/signal (Makefile.am): Add dependency to signal.h.
37454         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37455         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37456         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37457         * modules/string (Makefile.am): Add dependency to string.h.
37458         * modules/strings (Makefile.am): Add dependency to strings.h.
37459         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37460         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37461         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37462         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37463         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37464         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37465         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37466         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37467         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37468
37469 2009-12-09  Bruno Haible  <bruno@clisp.org>
37470
37471         fchdir: Optimize away rpl_fstat when possible.
37472         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37473         REPLACE_OPEN_DIRECTORY.
37474         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37475
37476 2009-12-09  Bruno Haible  <bruno@clisp.org>
37477
37478         * lib/fchdir.c: Update comment.
37479
37480 2009-12-09  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37483
37484 2009-12-08  Eric Blake  <ebb9@byu.net>
37485
37486         fchdir: avoid memory leak on re-registration.
37487         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37488
37489 2009-12-08  Jim Meyering  <meyering@redhat.com>
37490
37491         init.sh: avoid Solaris 10 /bin/sh portability problem
37492         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37493         sourced script:
37494           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37495           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37496           bar
37497         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37498         and two tests used that idiom.
37499         * tests/init.sh: Update suggested usage comments.
37500         (path_prepend_): New function, to be used in place
37501         of the --src-path=DIR option.
37502         (setup_): Move PATH-prepending code into path_prepend_.
37503         * tests/test-pread.sh: Adapt to new usage.
37504         * tests/test-xalloc-die.sh: Likewise.
37505
37506 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37507
37508         * doc/gnulib.texi (Glibc pty.h): Add.
37509         * doc/glibc-functions/forkpty.texi: Add.
37510         * doc/glibc-functions/openpty.texi: Add.
37511         Suggested by Bruno Haible.
37512
37513 2009-12-08  Eric Blake  <ebb9@byu.net>
37514
37515         fchdir: fix logic bugs
37516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37517         * tests/test-fchdir.c (main): Enhance test.
37518         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37519         is in use.
37520
37521         dup2: fix logic bugs
37522         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37523         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37524         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37525         exists.
37526         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37527
37528 2009-12-07  Eric Blake  <ebb9@byu.net>
37529
37530         unlink: fix m4 detection
37531         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37532
37533         unistd-safer: add unit test
37534         * modules/unistd-safer-tests: New file.
37535         * tests/test-dup-safer.c: Likewise.
37536         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37537         * tests/test-dup2.c (setmode): Likewise.
37538         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37539
37540         cloexec: preserve text vs. binary across dup_cloexec
37541         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37542         mode.
37543         * modules/dup2-tests (Depends-on): Add binary-io.
37544         * modules/cloexec-tests (Depends-on): Likewise.
37545         * tests/test-dup2.c (setmode, is_mode): New helpers.
37546         (main): Add tests that translation mode is preserved.
37547         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37548         Reported by Bruno Haible.
37549
37550         mgetgroups: reduce duplicate listings
37551         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37552         resulting array.
37553         * tests/test-chown.h (test_chown): Simplify client.
37554         * tests/test-lchown.h (test_lchown): Likewise.
37555
37556 2009-12-06  Bruno Haible  <bruno@clisp.org>
37557
37558         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37559         value.
37560
37561 2009-12-06  Bruno Haible  <bruno@clisp.org>
37562
37563         * lib/progname.c: Include stdio.h, stdlib.h.
37564         (set_program_name): Reject a NULL argument.
37565
37566 2009-12-05  Eric Blake  <ebb9@byu.net>
37567
37568         pipe2-safer: new module
37569         * modules/pipe2-safer: New file.
37570         * lib/unistd-safer.h (pipe2_safer): New prototype.
37571         * lib/unistd--.h (pipe2): New wrapper.
37572         * lib/pipe-safer.c (pipe2_safer): New function.
37573         * modules/pipe (Depends-on): Add pipe2-safer.
37574         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37575
37576         stdlib-safer: preserve cloexec flag for mkostemp[s]
37577         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37578         fd_safer_flag.
37579
37580         unistd-safer: allow preservation of cloexec status via flag
37581         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37582         prototypes.
37583         * lib/dup-safer.c (dup_safer_flag): New function.
37584         * lib/fd-safer.c (fd_safer_flag): Likewise.
37585         * modules/cloexec (configure.ac): Set witness.
37586
37587         test-dup2: enhance test
37588         * modules/dup2-tests (Depends-on): Add cloexec.
37589         * tests/test-dup2.c (main): Enhance test.
37590
37591         cloexec: add dup_cloexec
37592         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37593         header and comments.
37594         * lib/cloexec.c (set_cloexec_flag): Add comments.
37595         (dup_cloexec): New function, with mingw implementation borrowed
37596         from...
37597         * lib/w32spawn.h (dup_noinherit): ...here.
37598         * modules/execute (Depends-on): Add cloexec.
37599         * modules/pipe (Depends-on): Likewise.
37600         * modules/cloexec (Depends-on): Add dup2.
37601         * modules/cloexec-tests (Files): New file.
37602         * tests/test-cloexec.c: Likewise.
37603
37604         test-xalloc-die: fix test for mingw
37605         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37606         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37607         directory and .exe suffix off argv[0] output.
37608
37609         test-fseeko: fix test for mingw
37610         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37611         than undefining fseek, so test will pass on mingw.
37612
37613 2009-12-05  Bruno Haible  <bruno@clisp.org>
37614
37615         * lib/progname.h (set_program_name): Clarify specification.
37616         * lib/progname.c (set_program_name): Likewise.
37617         Reported by Jim Meyering.
37618
37619 2009-12-05  Jim Meyering  <meyering@redhat.com>
37620
37621         maint.mk: backslash-escape parens in default regexp
37622         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37623         backslash-escape the literal parentheses.
37624
37625         maint.mk: news-date-check: use grep -E
37626         * top/maint.mk (today): Define a Make variable, not a...
37627         (news-date-check): ...shell variable.
37628         (news-date-regexp): Use the Make variable.
37629         Use grep's -E option.  Change the failing diagnostic to mention
37630         the variable, $(news-date-regexp).
37631
37632 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37633
37634         maintainer-makefile: allow customization of NEWS entry format
37635         * top/maint.mk (news-date-regexp): New overridable variable.
37636         (news-date-check): Use it.
37637
37638 2009-12-04  Eric Blake  <ebb9@byu.net>
37639
37640         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37641         * lib/mgetgroups.h (xgetgroups): New prototype.
37642         * lib/mgetgroups.c (xgetgroups): New wrapper.
37643         (mgetgroups): Handle ENOSYS.
37644         * modules/mgetgroups (Depends-on): Add realloc.
37645         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37646
37647         mgetgroups: avoid argument promotion issues with -1
37648         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37649         for invalid gid_t.
37650         * tests/test-chown.h (getegid, test_chown): Likewise.
37651         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37652
37653 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37654
37655         exclude: Fix header file problems.
37656         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37657
37658 2009-12-01  Jim Meyering  <meyering@redhat.com>
37659
37660         fts: fts_open: do not let an empty string cause immediate failure
37661         This is required in support of GNU rm, for which the command
37662         "rm A '' B" must process and remove both A and B, in spite of
37663         the empty string argument.
37664         * lib/fts.c (fts_open): Do not let the presence of an empty string
37665         cause fts_open to fail immediately.  Most fts-using tools must be
37666         able to process all arguments, in order, and can be expected to
37667         diagnose such arguments themselves.
37668
37669 2009-11-30  Eric Blake  <ebb9@byu.net>
37670
37671         utimens: fix compilation error
37672         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37673         Declare variable at right scope.
37674
37675 2009-11-29  Jim Meyering  <meyering@redhat.com>
37676
37677         bootstrap: handle perl-5.11's changed --version output
37678         * build-aux/bootstrap (get_version): Handle perl separately,
37679         since perl-5.11's --version output is different.
37680
37681 2009-11-28  Jim Meyering  <meyering@redhat.com>
37682
37683         userspec: depend on the inttostr module, too
37684         * modules/userspec (Depends-on): Add inttostr.
37685
37686         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37687         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37688         number of MAXUID when it evaluates to (uid_t) -1.
37689         Likewise for group ID.  Reported by Matt McCutchen in
37690         <http://savannah.gnu.org/bugs/?28113>
37691
37692         userspec: reformat to use spaces, not TABs
37693         * lib/userspec.c: Expand TABs to spaces.
37694         Add Emacs' "indent-tabs-mode: nil" hint.
37695
37696 2009-11-27  Eric Blake  <ebb9@byu.net>
37697
37698         getopt-gnu: flush out another BSD bug
37699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37700         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37701         flush out BSD bug.
37702         * tests/test-getopt.h (test_getopt): End lists with NULL.
37703         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37704         (test_getopt_long_posix): Enhance test.
37705         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37706         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37707         getopt-gnu.
37708         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37709         Likewise.
37710
37711 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37712
37713         * modules/idpriv-droptemp-tests (Notice): Fix text.
37714
37715 2009-11-27  Jim Meyering  <meyering@redhat.com>
37716
37717         test-xalloc-die: avoid spurious failure due to libtool argv difference
37718         In a libtool-enabled project, this test would fail due to a difference
37719         in the emitted program name, e.g.,
37720         -test-xalloc-die: memory exhausted
37721         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37722         Use program to avoid that.
37723         * modules/xalloc-die-tests (Depends-on): Add progname.
37724         * tests/test-xalloc-die.c: Include progname.h".
37725         (program_name): Remove decl.
37726         (main): Call set_program_name.
37727         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37728
37729 2009-11-26  Richard Jones  <rjones@redhat.com>
37730
37731         w32sock: leave win32 error in place.
37732         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37733
37734 2009-11-26  Eric Blake  <ebb9@byu.net>
37735
37736         init.sh: suggest to use skip_ and fail_ functions in comments
37737         * tests/init.sh: Add a sentence.
37738
37739 2009-11-25  Bruno Haible  <bruno@clisp.org>
37740
37741         init.sh: add documentation in comments
37742         * tests/init.sh: Add some developer and user documentation.
37743
37744 2009-11-26  Jim Meyering  <meyering@redhat.com>
37745
37746         init.sh: accommodate even those who specify bogus srcdir manually
37747         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37748         configure-time tests to be sanitized, so that there is no need to
37749         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37750         (with no double quotes) suffices.  However, since tests may be
37751         invoked manually, and since you may explicitly set srcdir to the
37752         name of a directory containing spaces, do quote its uses here.
37753         * tests/test-pread.sh: Likewise.
37754         Suggested by Bruno Haible.
37755
37756         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37757         * tests/test-pread.sh: Write no data into the pipe, because
37758         test-pread actually reads none.  This avoids a diagnostic,
37759         "bash: echo: write error: Broken pipe", that arises in the unusual
37760         event something is ignoring SIGPIPE, and might be interpreted
37761         as some sort of failure.  Reported by Bruno Haible.
37762
37763 2009-11-25  Jim Meyering  <meyering@redhat.com>
37764
37765         test-pread: cover failure with ESPIPE and EINVAL
37766         * tests/test-pread.c (main): Test for failure, too.
37767         * tests/test-pread.sh: Invoke with stdin on a pipe.
37768         Suggested by Eric Blake.
37769
37770         pread: improvement and fix
37771         * modules/pread (Depends-on): Depend on lseek, for portability to
37772         e.g., mingw.  Suggested by Eric Blake.
37773         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37774
37775         unistd.in.h: correct declaration of pread
37776         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37777         Reported by Richard W.M. Jones.
37778
37779         test-pread.sh: distribute the test script
37780         * modules/pread-tests (Files): Include test-pread.sh.
37781
37782         test-pread.sh: clean up
37783         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37784         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37785         That is unnecessary, since it's always ".".
37786         Suggestion from Eric Blake.
37787
37788         test-pread.sh: make executable
37789         * tests/test-pread.sh: Set executable bit.
37790         Reported by Eric Blake.
37791
37792         correct typo in test-pread.sh
37793         * tests/test-pread.sh: Add #! line.
37794
37795         test pread
37796         * tests/test-pread.c: New file.
37797         * tests/test-pread.sh: Likewise.
37798         * modules/pread-tests: Likewise.
37799
37800         pread: new module
37801         * modules/pread: New file.
37802         * lib/unistd.in.h (pread): Define/declare.
37803         * lib/pread.c (pread): New file.
37804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37805         * modules/unistd (Makefile.am): Substitute witnesses.
37806         * doc/posix-functions/pread.texi (pread): Update.
37807         * MODULES.html.sh: Add pread.
37808
37809 2009-11-25  Jim Meyering  <meyering@redhat.com>
37810
37811         tests/init.sh: new file to be used via most *.sh tests
37812         * tests/init.sh: New file.
37813
37814 2009-11-25  Eric Blake  <ebb9@byu.net>
37815
37816         utimens: work around older Linux failure with symlinks
37817         * lib/utimens.c (lutimensat_works_really): New variable.
37818         (fdutimens, lutimens): Use it to manage kernels that support
37819         nanosecond times on files, but not on symlinks.
37820         Reported by OndÅ™ej Vašík.
37821
37822         utimes: fix configure grammar
37823         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37824
37825 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37826
37827         regex: Fix fastmap for multibyte character ranges.
37828         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37829         characters when a multibyte character range is included.
37830
37831 2009-11-22  Andy Wingo  <wingo@pobox.com>
37832
37833         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37834         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37835
37836 2009-11-24  Bruno Haible  <bruno@clisp.org>
37837
37838         doc: Most *_l functions exist in MacOS X 10.5.
37839         * doc/posix-functions/duplocale.texi: Update platforms list.
37840         * doc/posix-functions/freelocale.texi: Likewise.
37841         * doc/posix-functions/newlocale.texi: Likewise.
37842         * doc/posix-functions/uselocale.texi: Likewise.
37843         * doc/posix-functions/isalnum_l.texi: Likewise.
37844         * doc/posix-functions/isalpha_l.texi: Likewise.
37845         * doc/posix-functions/isblank_l.texi: Likewise.
37846         * doc/posix-functions/iscntrl_l.texi: Likewise.
37847         * doc/posix-functions/isdigit_l.texi: Likewise.
37848         * doc/posix-functions/isgraph_l.texi: Likewise.
37849         * doc/posix-functions/islower_l.texi: Likewise.
37850         * doc/posix-functions/isprint_l.texi: Likewise.
37851         * doc/posix-functions/ispunct_l.texi: Likewise.
37852         * doc/posix-functions/isspace_l.texi: Likewise.
37853         * doc/posix-functions/isupper_l.texi: Likewise.
37854         * doc/posix-functions/iswalnum_l.texi: Likewise.
37855         * doc/posix-functions/iswalpha_l.texi: Likewise.
37856         * doc/posix-functions/iswblank_l.texi: Likewise.
37857         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37858         * doc/posix-functions/iswctype_l.texi: Likewise.
37859         * doc/posix-functions/iswdigit_l.texi: Likewise.
37860         * doc/posix-functions/iswgraph_l.texi: Likewise.
37861         * doc/posix-functions/iswlower_l.texi: Likewise.
37862         * doc/posix-functions/iswprint_l.texi: Likewise.
37863         * doc/posix-functions/iswpunct_l.texi: Likewise.
37864         * doc/posix-functions/iswspace_l.texi: Likewise.
37865         * doc/posix-functions/iswupper_l.texi: Likewise.
37866         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37867         * doc/posix-functions/isxdigit_l.texi: Likewise.
37868         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37869         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37870         * doc/posix-functions/strcoll_l.texi: Likewise.
37871         * doc/posix-functions/strfmon_l.texi: Likewise.
37872         * doc/posix-functions/strftime_l.texi: Likewise.
37873         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37874         * doc/posix-functions/strxfrm_l.texi: Likewise.
37875         * doc/posix-functions/tolower_l.texi: Likewise.
37876         * doc/posix-functions/toupper_l.texi: Likewise.
37877         * doc/posix-functions/towctrans_l.texi: Likewise.
37878         * doc/posix-functions/towlower_l.texi: Likewise.
37879         * doc/posix-functions/towupper_l.texi: Likewise.
37880         * doc/posix-functions/wcscoll_l.texi: Likewise.
37881         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37882         * doc/posix-functions/wctrans_l.texi: Likewise.
37883         * doc/posix-functions/wctype_l.texi: Likewise.
37884         * doc/glibc-functions/strptime_l.texi: Likewise.
37885         * doc/glibc-functions/strtod_l.texi: Likewise.
37886         * doc/glibc-functions/strtof_l.texi: Likewise.
37887         * doc/glibc-functions/strtol_l.texi: Likewise.
37888         * doc/glibc-functions/strtold_l.texi: Likewise.
37889         * doc/glibc-functions/strtoll_l.texi: Likewise.
37890         * doc/glibc-functions/strtoul_l.texi: Likewise.
37891         * doc/glibc-functions/strtoull_l.texi: Likewise.
37892         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37893         * doc/glibc-functions/wcstod_l.texi: Likewise.
37894         * doc/glibc-functions/wcstof_l.texi: Likewise.
37895         * doc/glibc-functions/wcstol_l.texi: Likewise.
37896         * doc/glibc-functions/wcstold_l.texi: Likewise.
37897         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37898         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37899         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37900
37901 2009-11-24  Bruno Haible  <bruno@clisp.org>
37902
37903         duplocale: Fix logic bug.
37904         * lib/duplocale.c: Don't include <langinfo.h>.
37905         (_NL_LOCALE_NAME): Remove macro.
37906         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37907         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37908
37909 2009-11-23  Jim Meyering  <meyering@redhat.com>
37910
37911         test-update-copyright: don't hard-code /usr/bin/perl
37912         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37913         perl to print the current year.  Gilles Espinasse reported that
37914         the replaced use of perl was hard-coded as /usr/bin/perl.
37915
37916 2009-11-23  Bruno Haible  <bruno@clisp.org>
37917
37918         duplocale: Add support for glibc 2.3.x.
37919         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37920
37921 2009-11-22  Bruno Haible  <bruno@clisp.org>
37922
37923         vasnprintf: Tiny optimization.
37924         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37925         MacOS X.
37926
37927 2009-11-22  Bruno Haible  <bruno@clisp.org>
37928
37929         Tests for module 'duplocale'.
37930         * modules/duplocale-tests: New file.
37931         * tests/test-duplocale.c: New file.
37932
37933         New module 'duplocale'.
37934         * m4/duplocale.m4: New file.
37935         * lib/locale.in.h (duplocale): New declaration.
37936         * lib/duplocale.c: New file.
37937         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37938         gl_LOCALE_H_DEFAULTS): New macros.
37939         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37940         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37941         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37942         REPLACE_DUPLOCALE.
37943         * modules/duplocale: New file.
37944         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37945
37946 2009-11-22  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/locale-tests (configure.ac): Test for newlocale function.
37949         * tests/test-locale.c: When the system has extended locale functions,
37950         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37951
37952         locale: Make locale_t available when possible.
37953         * lib/locale.in.h: Include <xlocale.h> when it exists.
37954         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37955         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37956         * modules/locale (Depends-on): Add extensions.
37957         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37958         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37959
37960 2009-11-22  Bruno Haible  <bruno@clisp.org>
37961
37962         Add comments.
37963         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37964         invocation.
37965         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37966         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37967         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37968
37969 2009-11-22  Bruno Haible  <bruno@clisp.org>
37970
37971         error: account for the possibility of freopen (stdout).
37972         * lib/error.c: Include <unistd.h>.
37973         (flush_stdout): New function, extracted from error and error_at_line.
37974         Determine stdout's fd dynamically.
37975         (error, error_at_line): Invoke flush_stdout.
37976         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37977         * modules/error (Depends-on): Add unistd.
37978
37979 2009-11-22  Bruno Haible  <bruno@clisp.org>
37980
37981         diffseq: Add comment.
37982         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37983
37984 2009-11-22  Jim Meyering  <meyering@redhat.com>
37985
37986         c-stack: avoid defining an unused static function
37987         * lib/c-stack.c (find_stack_direction): Do not define this function
37988         when it will not be used.
37989
37990         diffseq: avoid spurious gcc warnings
37991         * lib/diffseq.h (IF_LINT2): Define.
37992         (compareseq): Use it to initialize two members of "part".
37993         This avoids two used-uninitialized warnings.
37994
37995 2009-11-21  Jim Meyering  <meyering@redhat.com>
37996
37997         c-stack: avoid "ignoring return value of `write'" warning
37998         * lib/c-stack.c: Include "ignore-value.h".
37999         (die): Explicitly ignore each write return value.
38000         * modules/c-stack (Depends-on): Add ignore-value.
38001
38002 2009-11-21  Bruno Haible  <bruno@clisp.org>
38003
38004         diffseq: reduce scope of variable 'best'.
38005         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38006         variable, earlier used for two different purposes.
38007
38008 2009-11-21  Jim Meyering  <meyering@redhat.com>
38009
38010         diffseq: remove useless assignment to "best"
38011         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38012         assignment.  At that point "best" is already guaranteed to be zero.
38013
38014 2009-11-20  Eric Blake  <ebb9@byu.net>
38015
38016         build: mention ftp redirector in release announcements
38017         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38018         values that used to come from cfg.mk; mention FTP redirect URL.
38019         * build-aux/announce-gen: Mention the mirror list.
38020         Suggested by Karl Berry.
38021
38022         nanosleep: improve port to mingw
38023         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38025         LIB_NANOSLEEP, but only when needed.
38026         * modules/select (Link): Document LIBSOCKET.
38027         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38028         enough.
38029
38030         nanosleep: work around cygwin bug
38031         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38032         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38033         bug.
38034         (getnow): Delete, not needed.
38035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38036         LIB_CLOCK_GETTIME.
38037         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38038         clock-time, gettime.
38039         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38040         bug.
38041         * modules/nanosleep-tests: New test.
38042         * tests/test-nanosleep.c: New file.
38043
38044         sleep: work around cygwin bug
38045         * lib/sleep.c (rpl_sleep): Work around the bug.
38046         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38047         (gl_PREREQ_SLEEP): Delete unused macro.
38048         * modules/sleep (Depends-on): Add verify.
38049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38050         * modules/unistd (Makefile.am): Substitute witness.
38051         * lib/unistd.in.h (sleep): Update prototype.
38052         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38053         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38054         * modules/sleep-tests (Depends-on): Check for alarm.
38055
38056 2009-11-20  Jim Meyering  <meyering@redhat.com>
38057
38058         maint.mk: improve sc_prohibit_magic_number_exit
38059         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38060         so it does not match uses like System.exit(1).
38061         Add comments showing how to correct all offenders.
38062
38063 2009-11-19  Eric Blake  <ebb9@byu.net>
38064
38065         xalloc-die-tests: add missing library
38066         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38067
38068         test-xvasprintf: silence compiler warnings
38069         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38070         empty string from gcc.
38071
38072 2009-11-19  Jim Meyering  <meyering@redhat.com>
38073
38074         xfreopen: new module, from coreutils
38075         * modules/xfreopen: New module.
38076         * lib/xfreopen.c: New file.
38077         * lib/xfreopen.h: New file.
38078         * MODULES.html.sh (File stream based Input/Output"): Add it.
38079
38080 2009-11-19  Eric Blake  <ebb9@byu.net>
38081
38082         manywarnings: depend on warnings
38083         * modules/manywarnings (Depends-on): Add warnings.
38084
38085         build: avoid compiler warnings
38086         * lib/select.c (rpl_select): Delete unused variable.
38087         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38088
38089 2009-11-18  Eric Blake  <ebb9@byu.net>
38090
38091         tests: avoid false negative with --with-packager
38092         * tests/test-version-etc.sh: Discard packager information.
38093         * tests/test-argp-version-etc-1.sh: Likewise.
38094         Reported by Mike Frysinger.
38095
38096         utimens: fix regression on Solaris
38097         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38098         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38099         can only change fd timestamps via futimesat.  Instead, use an
38100         additional witness macro to avoid BSD bug.
38101         Reported by Jim Meyering.
38102
38103 2009-11-17  Eric Blake  <ebb9@byu.net>
38104
38105         usleep: use it to simplify tests
38106         * modules/stat-time-tests (Depends-on): Add usleep.
38107         (configure.ac): Drop usleep check.
38108         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38109         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38110         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38111         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38112         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38113         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38114         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38115         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38116         Likewise.
38117         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38118         * tests/test-lchown.h (nap): Likewise.
38119         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38120         * tests/test-stat-time.c (nap): Likewise.
38121         * tests/test-utimens-common.h (nap): Update comments.
38122
38123         usleep: new module
38124         * modules/usleep: New file.
38125         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38126         * lib/usleep.c (usleep): Likewise.
38127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38128         * modules/unistd (Makefile.am): Substitute witnesses.
38129         * lib/unistd.in.h (usleep): Add declaration.
38130         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38131         * MODULES.html.sh (Date and time): Likewise.
38132         * modules/usleep-tests (Depends-on): New test.
38133         * tests/test-usleep.c: New file.
38134
38135         chown: work around OpenBSD bug
38136         * lib/chown.c (rpl_chown): Work around the bug.
38137         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38138         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38140         * modules/chown (Depends-on): Add stdbool.
38141         * modules/lchown (Depends-on): Likewise.
38142         * doc/posix-functions/chown.texi (chown): Document the bug.
38143         * doc/posix-functions/lchown.texi (lchown): Likewise.
38144         * tests/test-lchown.h (test_chown): Relax test.
38145
38146         mkstemp: avoid conflict with C++ keyword template
38147         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38148         * lib/mkostemp.c (mkostemp): Likewise.
38149         * lib/mkostemps.c (mkostemps): Likewise.
38150         * lib/mkstemp.c (mkstemp): Likewise.
38151         * lib/mkstemps.c (mkstemps): Likewise.
38152
38153         xalloc-die-tests: optimize
38154         * tests/test-xalloc-die.sh: Reduce number of processes.
38155
38156 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38157
38158         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38159         patch from ludo@gnu.org (Ludovic Courtès).
38160
38161 2009-11-17  Jim Meyering  <meyering@redhat.com>
38162
38163         version-etc: use proper license string
38164         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38165         * modules/version-etc-fsf: Likewise.
38166
38167 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38168
38169         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38170         printed to stdout.  Deal with EOL differences.
38171
38172 2009-11-17  Eric Blake  <ebb9@byu.net>
38173
38174         unsetenv: work around Solaris bug
38175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38176         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38177         Reported by Jim Meyering.
38178
38179         vasnprintf: avoid compiler warnings
38180         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38181         variables.
38182         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38183
38184 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38185
38186         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38187         settings since xalloc-die is no longer the self test,
38188         xalloc-die.sh is.
38189
38190 2009-11-17  Jim Meyering  <meyering@redhat.com>
38191
38192         test-xalloc-die.sh: make the code agree with the commit log
38193         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38194         at the end, just in case you happen to have a test-xalloc-die
38195         program in some other PATH directory.
38196
38197         test-xalloc-die.sh: fix a portability bug
38198         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38199         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38200         Otherwise, argv[0] (as often seen in diagnostics) would be too
38201         system-dependent, sometimes with, and sometimes without the leading "./".
38202
38203         version-etc-fsf: relax license to LGPLv3+
38204         * modules/version-etc-fsf (License): Relax license.
38205
38206 2009-11-16  Eric Blake  <ebb9@byu.net>
38207
38208         xalloc-die-tests: avoid printing null pointer
38209         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38210         shell script.
38211         * tests/test-xalloc-die.c (program_name): Declare.
38212         * tests/test-xalloc-die.sh (tmpfiles): New file.
38213
38214         setenv, unsetenv: work around various bugs
38215         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38216         (setenv) [HAVE_SETENV]: Work around bugs.
38217         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38218         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38219         for bugs.
38220         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38221         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38223         * modules/stdlib (Makefile.am): Update substitutions.
38224         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38225         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38226         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38227         * modules/setenv-tests: New test.
38228         * modules/unsetenv-tests: Likewise.
38229         * tests/test-setenv.c: New file.
38230         * tests/test-unsetenv.c: Likewise.
38231
38232 2009-11-16  Jim Meyering  <meyering@redhat.com>
38233
38234         version-etc: relax license to LGPLv3+
38235         * modules/version-etc (License): Relax license.
38236
38237         better AC_REQUIRE expanded-before-required-warning avoidance
38238         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38239         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38240         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38241         which is no longer needed.
38242
38243 2009-11-16  Eric Blake  <ebb9@byu.net>
38244
38245         test-freading: clean up temporary file
38246         * tests/test-freading.c (main): Remove file on success, and use
38247         ASSERT more liberally.
38248         Reported by Jim Meyering.
38249
38250 2009-11-16  Jim Meyering  <meyering@redhat.com>
38251
38252         avoid new AC_REQUIRE expanded-before-required warnings
38253         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38254         merely using it.
38255         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38256         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38257
38258 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38259
38260         * tests/test-xalloc-die.c: New file.
38261         * modules/xalloc-die-tests: New file.
38262         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38263         XFAIL_TESTS so it can be appended by modules.
38264
38265 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38266
38267         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38268         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38269
38270 2009-11-14  Eric Blake  <ebb9@byu.net>
38271
38272         fnmatch: avoid compiler warning
38273         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38274         to silence compiler warning about mismatch signedness in ?:.
38275         Reported by Robert Millan.
38276
38277         intprops: add double-inclusion guard
38278         * lib/intprops.h: Allow idempotent includes.
38279         Suggested by Bruce Korb.
38280
38281         openat: detect Solaris fchownat bug
38282         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38283         penalizing glibc chownat when only lchownat is broken.
38284         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38285         trailing slash bugs.
38286         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38287         * modules/openat-tests (Files): Include more files.
38288         (Depends-on): Add mgetgroups, sleep, stat-time.
38289         (configure.ac): Add additional checks.
38290         (Makefile.am): Build new test.
38291         * tests/test-fchownat.c: New file.
38292
38293         lchown: detect Solaris and FreeBSD bug
38294         * lib/lchown.c (rpl_lchown): Work around bug.
38295         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38297         * modules/unistd (Makefile.am): Populate it.
38298         * lib/unistd.in.h (lchown): Update declaration.
38299         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38300         * modules/lchown-tests: New file.
38301         * tests/test-lchown.h (test_lchown): Likewise.
38302         * tests/test-lchown.c (main): Likewise.
38303
38304         chown: detect Solaris and FreeBSD bug
38305         * lib/chown.c (rpl_chown): Work around bug.
38306         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38307         (gl_PREREQ_CHOWN): Delete.
38308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38309         * modules/unistd (Makefile.am): Populate it.
38310         * lib/unistd.in.h (chown): Update declaration.
38311         * lib/lchown.c (chown): Update client.
38312         * modules/lchown (Depends-on): Add lstat.
38313         * doc/posix-functions/chown.texi (chown): Document the bug.
38314         * doc/posix-functions/getgroups.texi (getgroups): Document
38315         getgroups pitfall.
38316         * modules/chown-tests: New file.
38317         * tests/test-chown.h (test_chown): Likewise.
38318         * tests/test-chown.c (main): Likewise.
38319
38320 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38321
38322         gnulib-tool: correctly detect absence of m4 directories
38323         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38324
38325 2009-11-14  Jim Meyering  <meyering@redhat.com>
38326
38327         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38328         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38329
38330 2009-11-14  John W. Eaton  <jwe@gnu.org>
38331
38332         strftime.h: wrap funtion declaration in extern "C" block
38333         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38334
38335 2009-11-13  Eric Blake  <ebb9@byu.net>
38336
38337         getgroups: avoid compiler warning
38338         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38339
38340         getgroups: work around FreeBSD bug
38341         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38342         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38343         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38344         * tests/test-getgroups.c (main): Fix buffer overrun.
38345
38346         getgroups: avoid compilation failure
38347         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38348         * modules/getgroups (Depends-on): Add stdint.
38349
38350 2009-11-13  Jim Meyering  <meyering@redhat.com>
38351
38352         test-getgroups: avoid compilation failure
38353         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38354
38355 2009-11-13  Eric Blake  <ebb9@byu.net>
38356
38357         mgetgroups: new module, taken from coreutils
38358         * modules/mgetgroups: New file.
38359         * lib/mgetgroups.h: Likewise.
38360         * lib/mgetgroups.c (mgetgroups): Likewise.
38361         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38362         * MODULES.html.sh (Users and groups): Mention it.
38363
38364         getgroups: don't expose GETGROUPS_T to user
38365         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38366         an element at a time if GETGROUPS_T is wrong size.
38367         * lib/getugroups.h (getugroups): Change signature.
38368         * lib/unistd.in.h (getgroups): Likewise.
38369         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38370         signature needs fixing.
38371         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38372         AC_TYPE_GETGROUPS.
38373         * modules/group-member (Depends-on): Add getgroups.
38374         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38375         (group_member): Rely on getgroups replacement.
38376         * lib/getugroups.c (getugroups): Use gid_t.
38377         * tests/test-getgroups.c (main): Likewise.
38378         * NEWS: Mention the signature change.
38379         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38380         problem with signature.
38381         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38382         GETGROUPS_T is still useful for setgroups.
38383
38384         getgroups, getugroups: provide stubs for mingw
38385         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38386         * lib/getugroups.c (getugroups): Likewise.
38387         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38388         function.  Modernize replacement scheme.
38389         (gl_PREREQ_GETGROUPS): Delete.
38390         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38391         * modules/getgroups (configure.ac): Declare witness.
38392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38393         * modules/unistd (Depends-on): Substitute witness.
38394         * lib/unistd.in.h (getgroups): Declare replacement.
38395
38396         getgroups: avoid calling exit
38397         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38398         drop xalloc.
38399         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38400         dependencies.
38401         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38402         exiting, in the rare case of malloc failure.
38403
38404         getgroups: fix logic error
38405         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38406         has more than 20 groups.
38407         * modules/getgroups-tests: New test.
38408         * tests/test-getgroups.c: New file.
38409
38410 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38411
38412         * tests/test-base64.c: Improve.
38413
38414 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38415
38416         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38417         Blake <ebb9@byu.net>.
38418
38419 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38420
38421         * tests/test-xvasprintf.c: Add %s%s related checks.
38422
38423 2009-11-12  Eric Blake  <ebb9@byu.net>
38424
38425         version-etc: match standards.texi style
38426         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38427         and use <> only for URLs.
38428
38429 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38430
38431         fts: do not fail on a submount during traversal
38432         * lib/fts.c (fts_build): Read the stat info again after opening
38433         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38434         Original report at http://bugzilla.redhat.com/501848.
38435
38436 2009-11-12  Jim Meyering  <meyering@redhat.com>
38437
38438         bootstrap: sync from coreutils
38439         * build-aux/bootstrap (bootstrap_epilogue): New function.
38440         Use git_modules_config in one more place.  This make bootstrap's
38441         --gnulib-srcdir option more useful for testing.
38442
38443         bootstrap: generalize autoheader check
38444         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38445         AC_CONFIG_HEADERS.
38446
38447 2009-11-11  Eric Blake  <ebb9@byu.net>
38448
38449         mkfifoat: use new modules for Solaris and BSD bugs
38450         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38451         * lib/mkfifoat.c (mknodat): Split...
38452         * lib/mknodat.c (mknodat): ...into new file.
38453         * modules/mkfifoat (Files): Ship new file.
38454         (Depends-on): Add mkfifo, mknod.
38455         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38456         (Depends-on): Add symlink.
38457         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38458         redundant with test_mkfifo.h.
38459         (do_mkfifoat, do_mknodat): New helpers.
38460
38461         mknod: new module
38462         * modules/mknod: New file.
38463         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38464         * lib/mknod.c (mknod): Likewise.
38465         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38466         defaults.
38467         * modules/sys_stat (Makefile.am): Substitute them.
38468         * lib/sys_stat.in.h (mknod): Declare replacement.
38469         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38470         Document it.
38471         * doc/posix-functions/mknod.texi (mknod): Likewise.
38472         * modules/mknod-tests: New test.
38473         * tests/test-mknod.c: Likewise.
38474
38475         mkfifo: new module
38476         * modules/mkfifo: New file.
38477         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38478         * lib/mkfifo.c (mkfifo): Likewise.
38479         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38480         defaults.
38481         * modules/sys_stat (Makefile.am): Substitute them.
38482         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38483         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38484         Document it.
38485         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38486         * modules/mkfifo-tests: New test.
38487         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38488         from test-mkfifoat.c.
38489         * tests/test-mkfifo.c: New file.
38490
38491         readlink: detect FreeBSD bug
38492         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38493         slash on symlink.
38494         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38495         * tests/test-readlink.h (test_readlink): Enhance test.
38496
38497         symlink: detect FreeBSD bug
38498         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38499         slash on symlink.
38500         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38501         * tests/test-symlink.h (test_symlink): Enhance test.
38502
38503 2009-11-10  Eric Blake  <ebb9@byu.net>
38504
38505         link: detect FreeBSD bug
38506         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38507         symlink.
38508         * doc/posix-functions/link.texi (link): Document the bug.
38509         * tests/test-link.h (test_link): Enhance test.
38510         * tests/test-linkat.c (main): Update caller.
38511
38512         unlink, remove: detect FreeBSD bug
38513         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38514         slash on symlink.
38515         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38516         * doc/posix-functions/remove.texi (remove): Likewise.
38517         * tests/test-unlink.h (test_unlink): Enhance test.
38518         * tests/test-remove.c (main): Likewise.
38519
38520 2009-11-09  Eric Blake  <ebb9@byu.net>
38521
38522         rename: detect FreeBSD bug
38523         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38524         slash on symlink.
38525         * modules/renameat-tests (Depends-on): Add filenamecat.
38526         * tests/test-rename.h (test_rename): Allow one more errno.
38527         * tests/test-renameat.c (main): Likewise.
38528         * doc/posix-functions/rename.texi (rename): Document the bug.
38529
38530         open: detect FreeBSD bug
38531         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38532         symlink.
38533         * doc/posix-functions/open.texi (open): Document the bug.
38534         * doc/posix-functions/utimes.texi (utimes): Likewise.
38535         * tests/test-open.h (test_open): Add parameters, and test symlink
38536         handling.
38537         * tests/test-open.c (main): Adjust caller.
38538         * tests/test-fcntl-safer.c (main): Likewise.
38539         * modules/open-tests (Depends-on): Add stdbool, symlink.
38540         * modules/fcntl-safer-tests (Depends-on): Likewise.
38541         * tests/test-openat.c (main): Add test-open tests.
38542
38543         stat: detect FreeBSD bug
38544         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38545         symlink.
38546         * doc/posix-functions/stat.texi (stat): Document the bug.
38547         * tests/test-stat.h (test_stat_func): Add argument.
38548         * tests/test-stat.c (main): Adjust caller.
38549         * tests/test-fstatat.c (main): Likewise.
38550         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38551         Reported by Jim Meyering.
38552
38553 2009-11-09  James Youngman  <jay@gnu.org>
38554
38555         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38556         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38557
38558 2009-11-08  Jim Meyering  <meyering@redhat.com>
38559
38560         utimens: remove invalid futimesat call
38561         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38562         It used the file descriptor of the target file as the DIR_FD
38563         parameter and NULL as the file name.  That caused failure with
38564         errno == EFAULT on FreeBSD-8.0-rc2
38565
38566 2009-11-07  Eric Blake  <ebb9@byu.net>
38567
38568         fflush, freadseek: use fseeko, not fseek
38569         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38570         (clear_ungetc_buffer): Avoid potential problems on large files.
38571         * lib/freadseek.c (freadseek): Likewise.
38572         * modules/freadseek (Depends-on): Add fseeko.
38573         * modules/fseek (configure.ac): Set a witness.
38574         * tests/test-fflush.c (main): Use fseeko.
38575         * tests/test-fpurge.c (fseek): Disable link warning.
38576         * tests/test-freadable.c (fseek): Likewise.
38577         * tests/test-freading.c (fseek): Likewise.
38578         * tests/test-fseeko.c (fseek): Likewise.
38579         * tests/test-ftell.c (fseek): Likewise.
38580         * tests/test-ftello.c (fseek): Likewise.
38581         * tests/test-fwritable.c (fseek): Likewise.
38582         * tests/test-fwriting.c (fseek): Likewise.
38583
38584 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38585
38586         * modules/memchr (Depends-on): Drop getpagesize dependency.
38587
38588 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38589
38590         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38591         Reported by Ludovic Courtès.
38592         * build-aux/pmccabe2html: Improve example usage.
38593         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38594
38595 2009-11-06  Jim Meyering  <meyering@redhat.com>
38596
38597         do-release-commit-and-tag: New module.
38598         Automate the release-commit and tag process.
38599         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38600         * modules/do-release-commit-and-tag: New file.
38601         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38602
38603 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38604
38605         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38606         because test-select.c uses inet_pton.
38607
38608 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38609
38610         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38611         GETADDRINFO_LIB.  Bump serial number.
38612         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38613         Suggested by Eric Blake <ebb9@byu.net>.
38614
38615 2009-11-05  Eric Blake  <ebb9@byu.net>
38616
38617         strtod: detect darwin bug
38618         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38619         Reported by Leo Davis.
38620
38621         freopen-safer: new module
38622         * modules/freopen-safer: New module.
38623         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38624         * lib/freopen-safer.c (freopen_safer): New file.
38625         * lib/stdio-safer.h (freopen_safer): New declaration.
38626         * lib/stdio--.h (freopen): New override.
38627         * MODULES.html.sh (File stream based Input/Output): Mention it.
38628         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38629         freopen-safer module.
38630         * doc/posix-functions/stderr.texi (stderr): Likewise.
38631         * doc/posix-functions/stdin.texi (stdin): Likewise.
38632         * doc/posix-functions/stdout.texi (stdout): Likewise.
38633         * modules/freopen-safer-tests: New test.
38634         * tests/test-reopen-safer.c: New file.
38635
38636 2009-11-05  Jim Meyering  <meyering@redhat.com>
38637
38638         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38639         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38640
38641 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38642
38643         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38644
38645 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38646
38647         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38648
38649 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38650
38651         Fix link error.
38652         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38653         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38654
38655 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38656
38657         * tests/test-func.c: Also test value of __func__.
38658
38659 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38660
38661         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38662         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38663
38664 2009-11-05  Bruno Haible  <bruno@clisp.org>
38665
38666         Fix link error.
38667         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38668         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38669         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38670
38671 2009-11-05  Bruno Haible  <bruno@clisp.org>
38672
38673         Tests for module 'inet_pton'.
38674         * modules/inet_pton-tests: New file.
38675         * tests/test-inet_pton.c: New file.
38676
38677 2009-11-05  Bruno Haible  <bruno@clisp.org>
38678
38679         Tests for module 'inet_ntop'.
38680         * modules/inet_ntop-tests: New file.
38681         * tests/test-inet_ntop.c: New file.
38682
38683 2009-11-04  Eric Blake  <ebb9@byu.net>
38684
38685         stdlib-safer: wrap all mkstemp variants
38686         * modules/mkostemp (configure.ac): Set witness.
38687         * modules/mkostemps (configure.ac): Likewise.
38688         * modules/mkstemps (configure.ac): Likewise.
38689         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38690         (mkstemps_safer): Wrap more functions.
38691         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38692         wrapping.
38693         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38694         (mkstemps_safer): Implement the wrappers.
38695
38696         mkstemps, mkostemps: new modules
38697         * modules/mkostemps: New module.
38698         * modules/mkstemps: Likewise.
38699         * lib/mkostemps.c (mkostemps): New file.
38700         * lib/mkstemps.c (mkstemps): Likewise.
38701         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38702         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38704         * modules/stdlib (Makefile.am): Substitute them.
38705         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38706         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38707         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38708         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38709         * MODULES.html.sh (File system functions): Mention them.
38710
38711         tempname: resync from glibc
38712         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38713         same values for __GT_FILE as glibc.  Abort even when assertions
38714         are disabled.
38715         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38716         match its value otherwise.  Allow idempotent inclusion.
38717         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38718         * lib/mkostemp.c (mkostemp): Likewise.
38719         * lib/mkstemp.c (mkstemp): Likewise.
38720         * lib/tmpfile.c (tmpfile): Likewise.
38721         * NEWS: Document this.
38722
38723         utimens: fix use of futimens on older Linux
38724         * lib/utimens.c (fdutimens): Use updated, rather than original,
38725         timespec to avoid bug in older Linux kernel.
38726         Reported by Simon Josefsson.
38727
38728 2009-11-04  Bruno Haible  <bruno@clisp.org>
38729
38730         Make num_processors more flexible and consistent.
38731         * lib/nproc.h (enum nproc_query): New type.
38732         (num_processors): Add a 'query' argument.
38733         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38734         (num_processors): Add a 'query' argument. Test the value of the
38735         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38736         mingw, count the number of CPUs available for the current process.
38737         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38738         Check for sched_getaffinity and sched_getaffinity_np.
38739         * modules/nproc (Depends-on): Add c-ctype, extensions.
38740         * NEWS: Mention the change.
38741
38742 2009-11-03  Bruno Haible  <bruno@clisp.org>
38743
38744         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38745
38746 2009-11-03  Jim Meyering  <meyering@redhat.com>
38747
38748         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38749         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38750         if it is defined.
38751
38752 2009-11-02  Eric Blake  <ebb9@byu.net>
38753
38754         mktime, timegm: share common declaration
38755         * lib/mktime-internal.h: New file.
38756         * lib/mktime.c: Use it rather than open-coding a declaration.
38757         * lib/timegm.c: Likewise.
38758         * modules/mktime (Files): Ship it.
38759         * modules/timegm (Files): Likewise.
38760         Suggested by Bruno Haible.
38761
38762         test-update-copyright: update test to match script changes
38763         * tests/test-update-copyright.sh: Avoid hard-coding perl
38764         location.  Don't update *.bak created by earlier runs.
38765
38766 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38767             Simon Josefsson  <simon@josefsson.org>
38768             Bruno Haible  <bruno@clisp.org>
38769
38770         Fix link error on Solaris 8.
38771         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38772         also in libnsl. Define also INET_PTON_LIB.
38773         * modules/inet_pton (Link): New section.
38774
38775 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38776             Bruno Haible  <bruno@clisp.org>
38777
38778         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38779         * modules/inet_ntop (Link): New section.
38780         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38781
38782 2009-11-02  Eric Blake  <ebb9@byu.net>
38783
38784         maint: avoid compiler warnings in m4 macros
38785         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38786         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38787
38788 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38789
38790         * m4/pmccabe2html.m4: Remove file.
38791         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38792         function.  Change maintainer.
38793         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38794         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38795         Courtès).
38796
38797 2009-10-31  Eric Blake  <ebb9@byu.net>
38798
38799         fseeko: fix m4 regression
38800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38801         regression from 2009-10-27.
38802         Reported by Ralf Wildenhues.
38803
38804 2009-10-31  Jim Meyering  <meyering@redhat.com>
38805
38806         inttostr: aesthetics and improved (compile-time) safety
38807         Define inttype_is_signed rather than inttype_is_unsigned,
38808         since the sole use is via "#if inttype_is_signed".
38809         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38810         inttype_is_unsigned.
38811         * lib/offtostr.c (inttype_is_signed): Likewise.
38812         * lib/uinttostr.c (inttype_is_signed): Likewise.
38813         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38814         * lib/inttostr.c (inttostr): Use verify to cross-check the
38815         inttype_is_signed value and the signedness of the actual type.
38816         * modules/inttostr (Depends-on): Add verify.
38817
38818 2009-10-30  Eric Blake  <ebb9@byu.net>
38819
38820         build: avoid compiler warnings
38821         * lib/fchmodat.c (lchmod): Mark unused variables.
38822         * lib/getopt.c (_getopt_initialize): Likewise.
38823         * lib/mktime.c (__mktime_internal): Provide prototype.
38824         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38825         older gcc that do not understand #pragma GCC diagnostic.
38826         * lib/uinttostr.c (inttype_is_unsigned): Define.
38827         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38828
38829 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38830
38831         stat: fix compilation on AIX
38832         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38833         only see struct stat64.
38834
38835 2009-10-30  Eric Blake  <ebb9@byu.net>
38836
38837         exclude: make more robust
38838         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38839         rather than masking a coding bug.
38840         Suggested by Bruno Haible.
38841
38842 2009-10-30  Jim Meyering  <meyering@redhat.com>
38843
38844         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38845         Rather than putting #!/usr/bin/perl on the first line,
38846         start with a variant of what's recommended by "man perlrun" that
38847         invokes the first "perl" program from your shell's search path.
38848         * build-aux/gitlog-to-changelog: Replace #!... as above.
38849         Add a "Local Variables" perl mode setting.
38850         Prompted by a patch from Ludovic Courtès.
38851         Improved by Eric Blake.
38852         * build-aux/useless-if-before-free: Likewise.
38853         * build-aux/announce-gen: Likewise.
38854         * build-aux/update-copyright: Likewise.
38855
38856 2009-10-29  Eric Blake  <ebb9@byu.net>
38857
38858         filenamecat-lgpl: adjust clients
38859         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38860         filenamecat.
38861         * modules/renameat (Depends-on): Likewise.
38862
38863         filenamecat: split into filenamecat-lgpl
38864         * modules/filenamecat-lgpl: New module.
38865         * modules/filenamecat (Files): Move library-safe files into
38866         filenamecat-lgpl.
38867         (Depends-on): Add filenamecat-lgpl.
38868         (configure.ac): Declare witness.
38869         * lib/filenamecat.h (file_name_concat): Only declare when using
38870         GPL module.
38871         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38872         Move...
38873         * lib/filenamecat-lgpl.c: ...into new file.
38874         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38875         (gl_FILE_NAME_CONCAT): Use it.
38876         * MODULES.html.sh (File system functions): Mention new module.
38877
38878         argp: avoid memory leak
38879         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38880         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38881         base_name, since the latter malloc()s and can call exit().
38882         Leak introduced 2006-07-03.
38883
38884         dirname-lgpl: adjust clients that don't need full dirname
38885         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38886         * modules/filenamecat (Depends-on): Likewise.
38887         * modules/linkat (Depends-on): Likewise.
38888         * modules/mkancesdirs (Depends-on): Likewise.
38889         * modules/mkdir (Depends-on): Likewise.
38890         * modules/openat (Depends-on): Likewise.
38891         * modules/savewd (Depends-on): Likewise.
38892         * modules/rename (Depends-on): Likewise.
38893         (License): Relax license.
38894         * modules/mkdir-tests (Depends-on): Drop progname.
38895         (Makefile.am): Delete unneeded LDADD.
38896         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38897
38898         dirname: split into dirname-lgpl
38899         * modules/dirname-lgpl: New module.
38900         * modules/dirname (Files): Move library-safe files into
38901         dirname-lgpl.
38902         (Depends-on): Add dirname-lgpl.
38903         (configure.ac): Declare witness.
38904         * modules/double-slash-root (License): Relax license.
38905         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38906         module.
38907         * lib/dirname.c (dir_len, mdir_name): Move...
38908         * lib/dirname-lgpl.c: ...into new file.
38909         * lib/basename.c (last_component, base_len): Move...
38910         * lib/basename-lgpl.c: ...into new file.
38911         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38912         (gl_DIRNAME): Use it.
38913         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38914         Mention new module.
38915         * modules/dirname-tests (Depends-on): Add progname.
38916         * tests/test-dirname.c (program_name): Delete.
38917
38918         mkdir: make safe for libraries
38919         * modules/mkdir (Depends-on): Drop xalloc.
38920         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38921         exit.
38922
38923         tests: avoid some compiler warnings
38924         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38925         literals.
38926         * tests/test-memchr.c (main): Avoid type mismatch.
38927         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38928         * tests/test-base64.c (main): Likewise.
38929         * tests/test-getdelim.c (main): Likewise.
38930         * tests/test-gethostname.c (main): Likewise.
38931         * tests/test-getline.c (main): Likewise.
38932         * tests/test-netinet_in.c (main): Likewise.
38933         * tests/test-select.c (open_server_socket, main): Likewise.
38934         * tests/test-select-stdin.c (main): Likewise.
38935         * tests/test-sockets.c (main): Likewise.
38936         * tests/test-strsignal.c (main): Likewise.
38937         * tests/test-sys_select.c (main): Likewise.
38938         * tests/test-sys_socket.c (main): Likewise.
38939         * tests/test-u64.c (main): Likewise.
38940         * tests/test-xfprintf-posix.c (main): Likewise.
38941         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38942
38943         sockets: avoid compiler warning
38944         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38945
38946         maint: detect usage(1) and other suspicious exits
38947         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38948
38949 2009-10-29  Jim Meyering  <meyering@redhat.com>
38950
38951         timespec: long-to-int truncation could make timespec_cmp malfunction
38952         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38953         a multiple of 2^32 nanoseconds as no difference.
38954
38955 2009-10-28  Jim Meyering  <meyering@redhat.com>
38956
38957         fprintftime: wrap macro code argument in "do {...} while(0)"
38958         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38959         cpy macro must be a statement that can be followed by a semicolon.
38960         Now that the else clause contains a comment and is hence longer
38961         than one line, I require curly braces.  That in turn requires
38962         that we wrap this code block in the standard do...while(0).
38963
38964         fprintftime: remove stray semicolon from previous change
38965         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38966
38967         fprintftime: avoid a warning about ignored fwrite return value
38968         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38969         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38970         that is unsafe.
38971         * modules/fprintftime (Depends-on): Add ignore-value.
38972
38973         exclude: avoid an unwarranted warning
38974         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38975
38976 2009-10-27  Eric Blake  <ebb9@byu.net>
38977
38978         fseek: avoid compilation failure when fflush is replaced
38979         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38980         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38981         module is in use.
38982         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38983         module is not in use; since REPLACE_FSEEK worked otherwise.
38984         (GNULIB_FTELLO): Likewise for ftell.
38985         Reported by Ian Beckwith and others.
38986
38987 2009-10-27  Bruno Haible  <bruno@clisp.org>
38988
38989         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38990         Reported by Jim Meyering.
38991
38992 2009-10-27  Jim Meyering  <jim@meyering.net>
38993             Bruno Haible  <bruno@clisp.org>
38994
38995         Avoid warning despite dropping the return value of fwrite.
38996         * lib/unicodeio.c: Include ignore-value.h.
38997         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38998         * modules/unicodeio (Depends-on): Add ignore-value.
38999
39000 2009-10-26  Eric Blake  <ebb9@byu.net>
39001
39002         areadlinkat: fix fallback path
39003         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39004         pointer and zero.
39005
39006 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39007
39008         Use a better IO block size for modern systems
39009         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39010         * lib/md2.c: Likewise.
39011         * lib/md4.c: Likewise.
39012         * lib/md5.c: Likewise.
39013         * lib/sha1.c: Likewise.
39014         * lib/sha256.c: Likewise.
39015         * lib/sha512.c: Likewise.
39016
39017 2009-10-22  Eric Blake  <ebb9@byu.net>
39018
39019         tests: avoid several compiler warnings
39020         * tests/test-getcwd.c (main): Avoid buffer underflow.
39021         * tests/test-getdate.c (main): String literals are not safe with
39022         putenv, so use setenv.  Declare unused argument.
39023         * modules/getdate-tests (Depends-on): Add setenv.
39024         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39025         problems with string literals in char *.
39026         * tests/test-hash.c (main): Avoid shadowing declaration.
39027         (insert_new): Treat string literals as char const *.
39028         * tests/test-getopt.h (test_getopt): Likewise.
39029         (getopt_loop): Alter types to minimize casting elsewhere.
39030         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39031         (test_getopt_long_posix): Likewise.
39032         (do_getopt_long): Add wrapper to minimize casting.
39033         * tests/test-atexit.c (clear_temp_file): Use void.
39034         * tests/test-areadlink-with-size.c (main): Declare unused
39035         arguments.
39036         * tests/test-areadlink.c (main): Likewise.
39037         * tests/test-areadlinkat-with-size.c (main): Likewise.
39038         * tests/test-areadlinkat.c (main): Likewise.
39039         * tests/test-canonicalize-lgpl.c (main): Likewise.
39040         * tests/test-canonicalize.c (main): Likewise.
39041         * tests/test-dirent-safer.c (main): Likewise.
39042         * tests/test-dirname.c (main): Likewise.
39043         * tests/test-dup2.c (main): Likewise.
39044         * tests/test-fchdir.c (main): Likewise.
39045         * tests/test-fcntl-h.c (main): Likewise.
39046         * tests/test-fcntl-safer.c (main): Likewise.
39047         * tests/test-fdopendir.c (main): Likewise.
39048         * tests/test-fdutimensat.c (main): Likewise.
39049         * tests/test-fflush.c (main): Likewise.
39050         * tests/test-filenamecat.c (main): Likewise.
39051         * tests/test-filevercmp.c (main): Likewise.
39052         * tests/test-fopen-safer.c (main): Likewise.
39053         * tests/test-fopen.c (main): Likewise.
39054         * tests/test-fpending.c (main): Likewise.
39055         * tests/test-fpurge.c (main): Likewise.
39056         * tests/test-freading.c (main): Likewise.
39057         * tests/test-fstatat.c (main): Likewise.
39058         * tests/test-fsync.c (main): Likewise.
39059         * tests/test-futimens.c (main): Likewise.
39060         * tests/test-getndelim2.c (main): Likewise.
39061         * tests/test-gettimeofday.c (main): Likewise.
39062         * tests/test-getopt.c (main): Likewise.
39063         * tests/test-i-ring.c (main): Likewise.
39064         * tests/test-inttypes.c (main): Likewise.
39065         * tests/test-link.c (main): Likewise.
39066         * tests/test-lstat.c (main): Likewise.
39067         * tests/test-math.c (main): Likewise.
39068         * tests/test-md5.c (main): Likewise.
39069         * tests/test-memchr2.c (main): Likewise.
39070         * tests/test-memrchr.c (main): Likewise.
39071         * tests/test-mkdir.c (main): Likewise.
39072         * tests/test-mkdirat.c (main): Likewise.
39073         * tests/test-mkfifoat.c (main): Likewise.
39074         * tests/test-open.c (main): Likewise.
39075         * tests/test-openat-safer.c (main): Likewise.
39076         * tests/test-openat.c (main): Likewise.
39077         * tests/test-quotearg.c (main): Likewise.
39078         * tests/test-rawmemchr.c (main): Likewise.
39079         * tests/test-readlink.c (main): Likewise.
39080         * tests/test-remove.c (main): Likewise.
39081         * tests/test-rename.c (main): Likewise.
39082         * tests/test-renameat.c (main): Likewise.
39083         * tests/test-rmdir.c (main): Likewise.
39084         * tests/test-sha1.c (main): Likewise.
39085         * tests/test-signal.c (main): Likewise.
39086         * tests/test-sigaction.c (main): Likewise.
39087         * tests/test-stat.c (main): Likewise.
39088         * tests/test-stat-time.c (main): Likewise.
39089         * tests/test-stddef.c (main): Likewise.
39090         * tests/test-stdint.c (main): Likewise.
39091         * tests/test-stdio.c (main): Likewise.
39092         * tests/test-stdlib.c (main): Likewise.
39093         * tests/test-strchrnul.c (main): Likewise.
39094         * tests/test-strerror.c (main): Likewise.
39095         * tests/test-string.c (main): Likewise.
39096         * tests/test-strtod.c (main): Likewise.
39097         * tests/test-strverscmp.c (main): Likewise.
39098         * tests/test-symlink.c (main): Likewise.
39099         * tests/test-symlinkat.c (main): Likewise.
39100         * tests/test-sys_stat.c (main): Likewise.
39101         * tests/test-sys_time.c (main): Likewise.
39102         * tests/test-time.c (main): Likewise.
39103         * tests/test-unistd.c (main): Likewise.
39104         * tests/test-unlink.c (main): Likewise.
39105         * tests/test-unlinkat.c (main): Likewise.
39106         * tests/test-utimens.c (main): Likewise.
39107         * tests/test-utimensat.c (main): Likewise.
39108         * tests/test-version-etc.c (main): Likewise.
39109         * tests/test-wchar.c (main): Likewise.
39110         * tests/test-wctype.c (main): Likewise.
39111         * tests/test-xprintf-posix.c (main): Likewise.
39112         * tests/test-posixtm.c (main): Likewise.
39113         (STREQ): Delete unused macro.
39114         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39115         shadowed variables.
39116         * tests/test-memchr.c (main): Likewise.
39117
39118 2009-10-21  Eric Blake  <ebb9@byu.net>
39119
39120         areadlinkat: avoid failure on older glibc
39121         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39122         rather than mis-comparing 0 against FUNC_RESULT of char*.
39123
39124 2009-10-21  Bruno Haible  <bruno@clisp.org>
39125
39126         * modules/stpncpy (License): Relicense under LGPLv2+.
39127         Reported by David Lutterkort <lutter@redhat.com>.
39128
39129 2009-10-20  Eric Blake  <ebb9@byu.net>
39130
39131         utimensat: work around Solaris 9 bug
39132         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39133         has trailing slash bugs.
39134         * tests/test-lutimens.h (test_lutimens): Enhance test.
39135         * tests/test-utimens.h (test_utimens): Likewise.
39136         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39137         * doc/posix-functions/utimes.texi (utimes): Likewise.
39138         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39139         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39140         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39141         * doc/posix-functions/futimens.texi (futimens): Likewise.
39142
39143         fdutimensat: new module
39144         * modules/fdutimensat: New file.
39145         * lib/fdutimensat.c (fdutimensat): Likewise.
39146         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39147         * MODULES.html.sh (File system functions): Mention module.
39148         * modules/fdutimensat-tests: New test.
39149         * tests/test-fdutimensat.c: Likewise.
39150
39151         doc: regenerate INSTALL
39152         * doc/INSTALL: Reflect recent autoconf update.
39153         * doc/INSTALL.ISO: Likewise.
39154         * doc/INSTALL.UTF-8: Likewise.
39155
39156 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39157
39158         acl: warn if ACL support is not detected
39159         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39160
39161 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39162
39163         * lib/nproc.h: Add extern "C" block for C++.
39164
39165 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39166             Bruno Haible  <bruno@clisp.org>
39167
39168         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39169         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39170         * doc/posix-functions/isalpha.texi: Likewise.
39171         * doc/posix-functions/isblank.texi: Likewise.
39172         * doc/posix-functions/iscntrl.texi: Likewise.
39173         * doc/posix-functions/isdigit.texi: Likewise.
39174         * doc/posix-functions/isgraph.texi: Likewise.
39175         * doc/posix-functions/islower.texi: Likewise.
39176         * doc/posix-functions/isprint.texi: Likewise.
39177         * doc/posix-functions/ispunct.texi: Likewise.
39178         * doc/posix-functions/isspace.texi: Likewise.
39179         * doc/posix-functions/isupper.texi: Likewise.
39180         * doc/posix-functions/isxdigit.texi: Likewise.
39181
39182 2009-10-18  Bruno Haible  <bruno@clisp.org>
39183
39184         Tests for module 'isblank'.
39185         * modules/isblank-tests: New file.
39186         * tests/test-isblank.c: New file.
39187
39188         New module 'isblank'.
39189         * lib/isblank.c: New file.
39190         * m4/isblank.m4: New file.
39191         * modules/isblank: New file.
39192         * doc/posix-functions/isblank.texi: Mention the new module.
39193
39194 2009-10-18  Bruno Haible  <bruno@clisp.org>
39195
39196         New module 'ctype'.
39197         * lib/ctype.in.h: New file.
39198         * m4/ctype.m4: New file.
39199         * modules/ctype: New file.
39200         * doc/posix-headers/ctype.texi: Mention the new module.
39201
39202 2009-10-18  Jim Meyering  <meyering@redhat.com>
39203
39204         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39205         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39206         right after its initialization, rather than farther down.
39207         Keeping these in close proximity makes it easier to ensure
39208         that each such variable is initialized.  E.g.,
39209
39210             LIB_CLOCK_GETTIME=
39211             AC_SUBST([LIB_CLOCK_GETTIME])
39212
39213         This change also increments these serial numbers.
39214         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39215         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39217
39218 2009-10-18  Bruno Haible  <bruno@clisp.org>
39219
39220         Don't let environment variables perturb build.
39221         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39222         (gl_PREREQ_GETHRXTIME): ... not here.
39223
39224 2009-10-18  Bruno Haible  <bruno@clisp.org>
39225
39226         Avoid symlink attack in localcharset module.
39227         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39228         (O_NOFOLLOW): Define fallback.
39229         (get_charset_aliases): Don't open the file if it is a symbolic link.
39230         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39231         gl_FCNTL_H.
39232         (gl_FCNTL_H): Require it.
39233         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39234         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39235         Reported by Fergal Glynn <fglynn@veracode.com>.
39236
39237 2009-10-18  Bruno Haible  <bruno@clisp.org>
39238
39239         Implement nproc for mingw.
39240         * lib/nproc.c: Include <windows.h>
39241         (num_processors): On native Windows platforms, try GetSystemInfo.
39242
39243 2009-10-18  Bruno Haible  <bruno@clisp.org>
39244
39245         Implement nproc for IRIX.
39246         * lib/nproc.c: Include <sys/sysmp.h>.
39247         (num_processors): On IRIX systems, try sysmp.
39248         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39249
39250 2009-10-18  Bruno Haible  <bruno@clisp.org>
39251
39252         Implement nproc for HP-UX.
39253         * lib/nproc.c: Include <sys/pstat.h>
39254         (num_processors): On HP-UX systems, try pstat_getdynamic.
39255         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39256         pstat_getdynamic.
39257
39258 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39259             Bruno Haible  <bruno@clisp.org>
39260
39261         Implement nproc for NetBSD, OpenBSD.
39262         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39263         (ARRAY_SIZE): New macro.
39264         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39265         * m4/nproc.m4: New file.
39266         * modules/nproc (Files): Add m4/nproc.m4.
39267         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39268         (Makefile.am): Instead, augment lib_SOURCES.
39269
39270 2009-10-18  Bruno Haible  <bruno@clisp.org>
39271
39272         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39273         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39274         sys/param.h.
39275
39276 2009-10-16  Eric Blake  <ebb9@byu.net>
39277
39278         utimensat: new module
39279         * modules/utimensat: New file.
39280         * lib/utimensat.c (utimensat): Likewise.
39281         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39282         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39283         so we can work around Linux bugs.
39284         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39285         * modules/sys_stat (Makefile.am): Substitute them.
39286         * lib/sys_stat.in.h (utimensat): Declare it.
39287         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39288         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39289         * modules/utimensat-tests: New test.
39290         * tests/test-utimensat.c: Likewise.
39291
39292         utimens: let lutimens work on non-symlinks
39293         * lib/utimens.c (lutimens): Fall back to utimens rather than
39294         failing with ENOSYS, when file is not a symlink.
39295         (utimens): Reduce redirection.
39296         * tests/test-lutimens.h (test_lutimens): Update test to cover
39297         non-symlinks.
39298         * tests/test-utimens.h (test_utimens): Update test to cover
39299         symlinks.
39300         * tests/test-utimens.c (main): Update caller.
39301
39302         utimens: cache whether utimensat syscall works
39303         * lib/utimens.c (utimensat_works_really): New cache variable.
39304         (fdutimens, lutimens): Use it to avoid failing syscall.
39305
39306         test-stat-time, test-utimens: improve portability
39307         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39308         ext4 on alpha, and for cygwin.
39309         * tests/test-utimens-common.h: New file.
39310         (nap): Factor delays into single function.
39311         * tests/test-lutimens.h (test_lutimens): Use new header.
39312         * tests/test-futimens.h (test_futimens): Likewise.
39313         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39314         timestamps to occur from same machine, as was done previously for
39315         test_utimens.
39316         * modules/utimens-tests (Files): Ship new file.
39317         * modules/futimens-tests (Files): Likewise.
39318         Reported in part by Jim Meyering.
39319
39320         sys_stat: sort replacement declarations
39321         * lib/sys_stat.in.h: Sort declarations.
39322         * lib/futimens.c (futimens): Fix typo.
39323
39324 2009-10-15  Jim Meyering  <meyering@redhat.com>
39325
39326         don't let environment settings perturb build
39327         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39328         could cause a configure-time and/or build-time malfunction.
39329         Typically, a configure-time function-in-library test is performed
39330         via code like this:
39331
39332           LIB_VAR=
39333           AC_SUBST([LIB_VAR])
39334           prefix_saved_LIBS=$LIBS
39335             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39336                        [test "$ac_cv_search_FUNC" = "none required" ||
39337                         LIB_VAR=$ac_cv_search_FUNC])
39338           LIBS=$prefix_saved_LIBS
39339
39340         However, in each of the files affected by this change, the LIB_VAR=
39341         initialization was omitted.  Thus, when set in the environment, its
39342         value would propagate into generated Makefiles when FUNC is not found
39343         in LIB_NAME.
39344         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39345         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39347
39348 2009-10-14  Eric Blake  <ebb9@byu.net>
39349
39350         fchdir: avoid infinite recursion in mingw
39351         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39352         recursing.
39353
39354         test-stat-time: port to mingw
39355         * tests/test-stat-time.c (force_unlink): Return a value.
39356         (test_ctime) [W32]: Fix compilation error.
39357         (nap): Don't call usleep with too large an argument.  Use
39358         force_unlink.
39359         * doc/pastposix-functions/usleep.texi (usleep): Document the
39360         portability issue.
39361
39362 2009-10-13  Jim Meyering  <meyering@redhat.com>
39363
39364         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39365         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39366         * modules/pipe-filter-ii: Likewise.
39367         * modules/sys_socket-tests: Likewise.
39368         * modules/tsearch-tests: Likewise.
39369         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39370         (check): Depend on it.
39371
39372 2009-10-12  Eric Blake  <ebb9@byu.net>
39373
39374         utimens-tests: port to NFS file systems
39375         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39376         comparisons to avoid spurious failures from timestamp drift
39377         between NFS machines.
39378
39379 2009-10-12  Eric Blake  <ebb9@byu.net>
39380
39381         stat-time-tests: minor cleanups
39382         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39383         * tests/test-stat-time.c (nap): Separate assignment from call.
39384         Suggested by Paolo Bonzini and Bruno Haible.
39385
39386         sys_stat: guarantee struct timespec
39387         * lib/sys_stat.in.h (includes): Always include <time.h>
39388         * modules/sys_stat (Depends-on): Add time.
39389         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39390         mode_t permission values.
39391         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39392         get at subsecond timestamps.
39393
39394 2009-10-10  Eric Blake  <ebb9@byu.net>
39395
39396         futimens: new module
39397         * modules/futimens: New file.
39398         * lib/futimens.c (futimens): Likewise.
39399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39400         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39401         we can work around Linux bugs.
39402         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39403         * modules/sys_stat (Makefile.am): Substitute them.
39404         * lib/sys_stat.in.h (futimens): Declare it.
39405         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39406         * doc/posix-functions/futimens.texi (futimens): Likewise.
39407         * modules/futimens-tests: New test.
39408         * tests/test-futimens.c: Likewise.
39409
39410         utimens: introduce fdutimens
39411         * lib/utimens.h (fdutimens): New prototype.
39412         * lib/utimens.c (gl_futimens): Move guts...
39413         (fdutimens): ...to new interface.
39414         * tests/test-utimens.c (do_fdutimens): Use it.
39415
39416         utimens: add UTIME_NOW and UTIME_OMIT support
39417         * lib/utimens.c (validate_timespec, update_timespec): New helper
39418         functions.
39419         (gl_futimens, lutimens): Use them.
39420         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39421         stdbool, sys_stat.
39422         (Link): Mention resulting library dependency.
39423         * modules/utimecmp (Link): Likewise.
39424         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39425         (Makefile.am): Pick up library dependency.
39426         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39427         definition.
39428         * tests/test-sys_stat.c: Test the definitions.
39429         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39430         * NEWS: Document library dependency.
39431
39432         utimecmp: support symlink timestamps
39433         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39434         hashing when possible.  Use pathconf when available.
39435         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39436         * modules/utimecmp (Depends-on): Add lstat.
39437
39438         utimens: add lutimens interface
39439         * lib/utimens.c (lutimens): New function.
39440         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39441         * lib/utimens.h (lutimens): Declare new interface.
39442         * tests/test-utimens.c (main): Enhance test.
39443         * tests/test-lutimens.h (test_lutimens): New file.
39444         * modules/utimens-tests (Files): Distribute it.
39445         (Depends-on): Add symlink.
39446         (configure.ac): Check for usleep.
39447
39448         utimens: validate futimens usage
39449         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39450         fewer syscalls on failure later on.  Avoid compiler warning on
39451         mingw.
39452         * modules/utimens (Depends-on): Add dup2.
39453
39454         utimens: add test
39455         * modules/utimens-tests: New test.
39456         * tests/test-utimens.h: New file.
39457         * tests/test-futimens.h: Likewise.
39458         * tests/test-utimens.c: Likewise.
39459
39460         doc: mention timestamp portability issues
39461         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39462         instead.
39463         * doc/posix-functions/utime.texi (utime): Likewise.
39464         * doc/posix-functions/utimes.texi (utimes): Likewise.
39465         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39466         instead.
39467         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39468         module.
39469         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39470         Mention weakness with symlink timestamps.
39471         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39472         to utimensat/futimens instead.
39473         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39474
39475         test-dup2: enhance test
39476         * tests/test-dup2.c (main): Also check AT_FDCWD.
39477
39478         test-stat-time: avoid more spurious failures
39479         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39480         xfs; and avoid race if the two timestamps cross quantization edge.
39481
39482         relocatable: prefer 'file system' over 'filesystem'
39483         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39484         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39485         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39486         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39487         * lib/relocatable.c (compute_curr_prefix): Likewise.
39488
39489 2009-10-10  Jim Meyering  <meyering@redhat.com>
39490
39491         stat-time-tests: check for the usleep function
39492         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39493
39494 2009-10-10  Bruno Haible  <bruno@clisp.org>
39495
39496         * modules/xnanosleep: Put the Link section after the Include section.
39497
39498 2009-10-09  Eric Blake  <ebb9@byu.net>
39499
39500         dup2: work around FreeBSD 6.1 bug
39501         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39502         * doc/posix-functions/dup2.texi (dup2): Document it.
39503         Reported by Nelson H. F. Beebe and Jim Meyering.
39504
39505         test-stat-time: port to buggy NFS clients
39506         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39507         (test_ctime): Also skip test if mtime and ctime are skewed.
39508
39509         maint: prefer 'file system' over 'filesystem'
39510         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39511         * doc/posix-functions/lstat.texi (lstat): Likewise.
39512         * lib/file-has-acl.c (file_has_acl): Likewise.
39513         * lib/fwriteerror.c [TEST]: Likewise.
39514         * tests/test-areadlink.h (test_areadlink): Likewise.
39515         * tests/test-areadlinkat-with-size.c (main): Likewise.
39516         * tests/test-areadlinkat.c (main): Likewise.
39517         * tests/test-canonicalize-lgpl.c (main): Likewise.
39518         * tests/test-canonicalize.c (main): Likewise.
39519         * tests/test-fstatat.c (main): Likewise.
39520         * tests/test-linkat.c (main): Likewise.
39521         * tests/test-lstat.h (test_lstat_func): Likewise.
39522         * tests/test-mkdir.h (test_mkdir): Likewise.
39523         * tests/test-readlink.h (test_readlink): Likewise.
39524         * tests/test-remove.c (main): Likewise.
39525         * tests/test-rename.h (test_rename): Likewise.
39526         * tests/test-renameat.c (main): Likewise.
39527         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39528         * tests/test-symlink.h (test_symlink): Likewise.
39529         * tests/test-symlinkat.c (main): Likewise.
39530         * tests/test-unlink.h (test_unlink_func): Likewise.
39531         * tests/test-unlinkat.c (main): Likewise.
39532
39533         maint: make realtime library usage explicit
39534         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39535         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39536         * modules/settime (Link): Likewise.
39537         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39538
39539         test-stat-time: speed up execution
39540         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39541         warning on mingw.
39542         (nap): New helper function.
39543         (prepare_test): Use it to reduce sleep time.
39544         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39545         execution.
39546         * modules/stat-time-tests (configure.ac): Check for usleep.
39547
39548 2009-10-09  Jim Meyering  <meyering@redhat.com>
39549
39550         selinux-h: always use getfilecon wrappers
39551         * lib/getfilecon.c: New file.
39552         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39553         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39554         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39555         (fgetfilecon): Provide a stub.
39556         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39557         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39558         file unconditionally.
39559         When <selinux/selinux.h> is found, arrange to use wrappers.
39560         * modules/selinux-h (Files): Add getfilecon.c.
39561         (Makefile.am): Substitute include-next-related bits
39562         into the now-always-generated selinux/selinux.h file.
39563         * doc/glibc-functions/lgetfilecon.texi: New file.
39564         * doc/glibc-functions/fgetfilecon.texi: New file.
39565         * doc/glibc-functions/getfilecon.texi: New file.
39566         * doc/glibc-functions/getfilecon-desc.texi: New file.
39567         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39568         which to pull in the new files.
39569         * MODULES.html.sh (Misc): Add selinux-h.
39570
39571 2009-10-08  Jim Meyering  <meyering@redhat.com>
39572
39573         unistd: fix comment typo
39574         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39575
39576 2009-10-08  Eric Blake  <ebb9@byu.net>
39577
39578         areadlink: use SIZE_MAX consistently
39579         * modules/areadlink (Depends-on): Add stdint.
39580         * modules/areadlink-with-size (Depends-on): Likewise.
39581         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39582         gives NULL; drop sys/types, since unistd gives size_t; and add
39583         stdint for SIZE_MAX.
39584         (SIZE_MAX): Rely on headers.
39585         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39586         and add stdint.
39587         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39588         (SIZE_MAX): Likewise.
39589         (INITIAL_BUF_SIZE): Turn into enum.
39590         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39591
39592 2009-10-08  Jim Meyering  <meyering@redhat.com>
39593
39594         areadlinkat: avoid compilation failure
39595         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39596         Fix typo in comment.
39597
39598 2009-10-07  Eric Blake  <ebb9@byu.net>
39599
39600         areadlinkat-with-size: new module
39601         * modules/areadlinkat-with-size: New module.
39602         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39603         * lib/areadlink.h (areadlinkat): Declare it.
39604         * MODULES.html.sh (File system functions): Mention it.
39605         * modules/areadlinkat-with-size-tests: New test.
39606         * tests/test-areadlinkat-with-size.c: New file.
39607
39608         xreadlinkat: new module
39609         * modules/xreadlinkat: New module.
39610         * lib/xreadlinkat.c (xreadlinkat): New file.
39611         * lib/xreadlink.h (xreadlinkat): Declare it.
39612         * MODULES.html.sh (File system functions): Mention it.
39613
39614         areadlinkat: new module
39615         * lib/at-func.c (FUNC_FAIL): New define.
39616         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39617         * modules/areadlinkat: New module.
39618         * lib/linkat.c (areadlinkat): Move...
39619         * lib/areadlinkat.c (areadlinkat): ...to new file.
39620         * lib/areadlink.h (areadlinkat): Declare it.
39621         * modules/linkat (Depends-on): Add areadlinkat.
39622         * MODULES.html.sh (File system functions): Mention it.
39623         * modules/areadlinkat-tests: New test.
39624         * tests/test-areadlinkat.c: New file.
39625
39626         areadlink, areadlink-with-size: add tests
39627         * modules/areadlink-tests: New test.
39628         * modules/areadlink-with-size-tests: Likewise.
39629         * tests/test-areadlink.h: New file.
39630         * tests/test-areadlink.c: Likewise.
39631         * tests/test-areadlink-with-size.c: Likewise.
39632
39633         maint: minor cleanups
39634         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39635         _UNUSED_PARAMETER_ instead.
39636         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39637         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39638         * modules/linkat-tests (Files): Distribute test-link.h.
39639
39640         openat, utimens: whitespace cleanup
39641         * lib/openat.c: Prefer space throughout, rather than mix of 8
39642         spaces vs. tabs.
39643         * lib/at-func.c: Likewise.
39644         * lib/utimens.c: Likewise.
39645
39646         openat: avoid using wrong fd
39647         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39648         working directory chooses same fd.
39649         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39650
39651         mkdir, mkdirat: fix cygwin 1.5.x bug
39652         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39653         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39654         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39655         bug.
39656         (gl_PREREQ_MKDIR): Delete unused macro.
39657         * modules/mkdir (Files): Track file rename.
39658         (configure.ac): Update macro name.
39659         * modules/openat (Depends-on): Add mkdir.
39660         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39661
39662         mkdir, mkdirat: add tests
39663         * modules/mkdir-tests: New test.
39664         * tests/test-mkdir.h: New file.
39665         * tests/test-mkdir.c: Likewise.
39666         * tests/test-mkdirat.c: Likewise.
39667         * modules/openat-tests (Files): Add new files.
39668         (Makefile.am): Run new test.
39669
39670 2009-10-06  Eric Blake  <ebb9@byu.net>
39671
39672         doc: tweak *at function documentation
39673         * doc/posix-functions/faccessat.texi (faccessat): Mention
39674         known issue with replacement.
39675         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39676         * doc/posix-functions/linkat.texi (linkat): Likewise.
39677         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39678         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39679         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39680         * doc/posix-functions/renameat.texi (renameat): Likewise.
39681         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39682
39683         openat: fix GNU/Hurd bug in unlinkat
39684         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39685         broken.
39686         * doc/posix-functions/unlink.texi (unlink): Document this.
39687         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39688
39689         fdopendir: fix GNU/Hurd bug
39690         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39691         allowing non-directory fds.
39692         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39693         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39694         * modules/dirent (Makefile.am): Substitute it.
39695         * lib/dirent.in.h (fdopendir): Declare replacement.
39696         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39697         * tests/test-fdopendir.c (main): Test something other than
39698         /dev/null, since on Hurd that behaves like a directory.
39699
39700         test-symlink: port to GNU/Hurd
39701         * tests/test-symlink.h (test_symlink): Relax expected errno.
39702
39703         doc: tweak more cygwin information
39704         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39705         now compatible with glibc.
39706         * doc/posix-functions/getopt.texi (getopt): Likewise.
39707
39708         getopt-gnu: add another test
39709         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39710         guarantee behavior relied on by m4.
39711         * tests/test-getopt.c (main): Use it.
39712         * modules/getopt-posix-tests (Depends-on): Add setenv.
39713         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39714
39715         getopt: fix compilation on darwin
39716         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39717         include.
39718         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39719         Reported by Ludovic Courtès.
39720
39721 2009-10-06  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/size_max (Description): Discourage its use.
39724         Reported by Simon Josefsson.
39725
39726 2009-10-06  Jim Meyering  <meyering@redhat.com>
39727
39728         linkat: avoid compilation failure
39729         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39730
39731 2009-10-05  Eric Blake  <ebb9@byu.net>
39732
39733         linkat: support Linux 2.6.17
39734         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39735         linkat on Linux, but allow cache variable override.
39736         * lib/linkat.c (rpl_linkat): Define override.
39737         * modules/linkat (Depends-on): Add symlinkat.
39738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39739         * modules/unistd (Makefile.am): Substitute it.
39740         * lib/unistd.in.h (linkat): Declare replacement.
39741         Reported by Pádraig Brady.
39742
39743         quotearg: port test to systems with C.UTF-8 locale
39744         * tests/test-quotearg.c (struct result_strings): Add another
39745         member, differentiating between C.ASCII and C.UTF-8 handling.
39746         (compare_strings): Add parameter.
39747         (main): Adjust all callers.
39748
39749         getopt: avoid clash with FreeBSD _getopt_internal
39750         * lib/getopt.in.h (_getopt_internal): Override the name.
39751         * lib/getopt_int.h (includes): Pick up any overrides.
39752         Reported by Reuben Thomas.
39753
39754         hash: allow C89 compilation
39755         * lib/hash.c (check_tuning): Move declaration before statement.
39756         Reported by Reuben Thomas.
39757
39758 2009-10-05  Karl Berry  <karl@gnu.org>
39759
39760         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39761
39762 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39763             Bruno Haible  <bruno@clisp.org>
39764
39765         * lib/uname.c (uname): Use a table-driven algorithm to compute
39766         Windows NT versions.
39767
39768 2009-10-04  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39771         program_invocation_short_name.
39772         * modules/progname (configure.ac): Test for presence of
39773         program_invocation_short_name.
39774         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39775
39776 2009-10-04  Bruno Haible  <bruno@clisp.org>
39777
39778         * lib/progname.c (set_program_name): Fix comment.
39779         Reported by Jim Meyering.
39780
39781 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39782             Bruno Haible  <bruno@clisp.org>
39783
39784         * lib/uname.c: Include <string.h>.
39785         (uname): Do only one call to GetVersionEx in the common case.
39786
39787 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39788             Bruno Haible  <bruno@clisp.org>
39789
39790         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39791         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39792         (uname): Add support for Windows CE and various non-x86 CPU types.
39793
39794 2009-10-03  Bruno Haible  <bruno@clisp.org>
39795
39796         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39797         invocation to tests/configure.ac.
39798         Reported by Ian Beckwith <ianb@erislabs.net>.
39799
39800 2009-10-02  Eric Blake  <ebb9@byu.net>
39801
39802         fchdir: avoid compiler warning
39803         * lib/fchdir.c (canonicalize_file_name)
39804         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39805
39806         test-open: support mingw errno values
39807         * tests/test-open.h (test_open): Relax test.
39808         * tests/test-fopen.h (test_fopen): Likewise.
39809         * tests/test-openat-safer.c (main): Likewise.
39810
39811         open: fix opening directory on mingw
39812         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39813
39814         test-open: on GNU/Hurd, /dev/null is a directory
39815         * tests/test-fopen.h (main): Rename...
39816         (test_fopen): ...to this.  Use a guaranteed non-directory when
39817         confirming open behavior on trailing slash.
39818         * tests/test-openat-safer.c (main): Likewise.
39819         * tests/test-open.h (main): Likewise....
39820         (test_open): ...to this.
39821         * tests/test-fopen.c (main): Adjust caller.
39822         * tests/test-fopen-safer.c (main): Likewise.
39823         * tests/test-open.c (main): Likewise.
39824         * tests/test-fcntl-safer.c (main): Likewise.
39825         Reported by Samuel Thibault.
39826
39827         rename, fchdir: don't ignore chdir failure
39828         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39829         * lib/rename.c (rpl_rename) [W32]: Likewise.
39830         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39831         an empty destination directory if source cannot be renamed,
39832         although there is still possibility for failure.
39833         * doc/posix-functions/rename.texi (rename): Document the race.
39834         Reported by Jim Meyering.
39835
39836         maint: cleanup whitespace in recent commits
39837         * lib/rename.c (rpl_rename): Remove tabs.
39838         * tests/test-link.h (test_link): Likewise.
39839         * lib/fchdir.c (get_name): Likewise.
39840         Reported by Jim Meyering.
39841
39842 2009-10-02  Ben Pfaff  <blp@gnu.org>
39843
39844         relocatable-prog-wrapper: Add missing dependency on
39845         double-slash-root.
39846         * modules/relocatable-prog-wrapper: Add dependency.
39847         Reported by Ian Beckwith <ianb@erislabs.net>.
39848
39849 2009-10-02  Eric Blake  <ebb9@byu.net>
39850
39851         renameat: fix Solaris bugs
39852         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39853         needed fixing.
39854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39855         * modules/stdio (Makefile.am): Substitute it.
39856         * lib/stdio.in.h (renameat): Declare replacement.
39857         * lib/renameat.c (rpl_renameat): Implement fix.
39858
39859         renameat: new module
39860         * modules/renameat: New file.
39861         * lib/renameat.c (renameat): Likewise.
39862         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39864         * modules/stdio (Makefile.am): Substitute them.
39865         * lib/stdio.in.h (renameat): Declare it.
39866         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39867         * doc/posix-functions/renameat.texi (renameat): Likewise.
39868         * modules/renameat-tests: New test.
39869         * tests/test-renameat.c: Likewise.
39870
39871         rename: fix mingw bugs
39872         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39873         directory overwrite bugs.
39874
39875         rename: fix another cygwin 1.5 bug
39876         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39877         checks.
39878         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39879         unnecessary cygwin workarounds.  Also work around bug with moving
39880         full directory onto an empty one.
39881         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39882
39883         rename-dest-slash: merge into rename module
39884         * modules/rename-dest-slash (Status): Mark obsolete.
39885         (Depends-on): Add rename.
39886         (Files): Let rename do it all.
39887         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39888         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39889         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39890         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39891         * lib/rename.c (rpl_rename): Update comments.
39892
39893         rename: fix cygwin 1.5.x bugs
39894         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39895         * lib/rename.c (rpl_rename): Work around them.
39896         * modules/rename (Depends-on): Add same-inode.
39897
39898         rename: fix Solaris 10 bug
39899         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39900         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39901         was the only bug.
39902
39903         rename: fix Solaris 9 bug
39904         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39905         on non-directory.  Avoid calling exit.
39906         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39907         strdup.
39908         * modules/rename-tests (Depends-on): Drop lstat.
39909         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39910         (gl_PREREQ_RENAME): Delete unused macro.
39911
39912         rename-dest-slash: fix NetBSD bug
39913         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39914         links.
39915         * modules/rename-dest-slash (Depends-on): Add same-inode.
39916
39917         rename-tests: new test, exposes several platform bugs
39918         * modules/rename-tests: New file.
39919         * tests/test-rename.h: Likewise.
39920         * tests/test-rename.c: Likewise.
39921         * doc/posix-functions/rename.texi (rename): Improve documentation,
39922         including bugs that will eventually be fixed in gnulib.
39923
39924 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39925
39926         * lib/uname.c: Include <stdlib.h>
39927         (uname): Assume version info is available.
39928
39929 2009-10-02  Jim Meyering  <meyering@redhat.com>
39930
39931         gnu-web-doc-update: correct --help output
39932         * build-aux/gnu-web-doc-update: Make --help output relevant.
39933
39934         gnu-web-doc-update: add standard options
39935         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39936
39937         gnu-web-doc-update: New module.
39938         Use this script to automatically update the on-line web documentation
39939         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39940         * modules/gnu-web-doc-update: New file, from coreutils.
39941         * build-aux/gnu-web-doc-update: New script.
39942
39943 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39944
39945         link: LoadLibrary is not needed.
39946         * lib/link.c: Use GetModuleHandle.
39947
39948 2009-10-01  Eric Blake  <ebb9@byu.net>
39949
39950         getopt: bump serial number
39951         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39952         change.
39953
39954         tests: tighten link, rmdir, and remove tests
39955         * tests/test-link.h (includes): No need to use <config.h> here.
39956         Clean up if directory hard link was created, otherwise test for
39957         trailing '.'.
39958         * tests/test-linkat.c (main): Simplify.
39959         * tests/test-remove.c (main): Enhance test for trailing '.'.
39960         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39961
39962 2009-10-01  Jim Meyering  <meyering@redhat.com>
39963
39964         maint.mk: requiring "make major" was annoying, for a "minor" release.
39965         What is intended is "stable", to contrast with alpha and beta,
39966         so require "make stable", not "make major".
39967         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39968         (get_tool_versions): Likewise.
39969         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39970
39971 2009-09-30  Ben Pfaff  <blp@gnu.org>
39972
39973         Fix broken build of replacement for Windows tmpfile().
39974         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39975         flags argument added along with the 'mkostemp' module.
39976
39977 2009-09-28  Bruno Haible  <bruno@clisp.org>
39978
39979         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39980         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39981         to 'remove_elt'.
39982         (gl_list_remove): Update.
39983         * lib/gl_list.c (gl_list_remove): Update.
39984         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39985         to 'remove_elt'.
39986         (gl_oset_remove): Update.
39987         * lib/gl_list.c (gl_oset_remove): Update.
39988         Reported by Eric Blake.
39989
39990 2009-09-28  Eric Blake  <ebb9@byu.net>
39991
39992         doc: mention yet more cygwin 1.7 status
39993         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39994         cygwin.
39995         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39996         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39997
39998         argp: fix test failure
39999         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40000         that are not upper-case.  Pass correct range to tolower.
40001
40002 2009-09-27  Jim Meyering  <meyering@redhat.com>
40003
40004         test-yesno: work around sparc-dash here-document infelicity
40005         Without this change, the literal \177 byte in a here document
40006         would make dash 0.5.5.1-3 access uninitialized memory.
40007         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40008         Instead, use a marker, "@", and filter through tr to create the desired
40009         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40010
40011 2009-09-27  Bruno Haible  <bruno@clisp.org>
40012
40013         Disable untested support for new flavours of ACLs on AIX.
40014         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40015         progress.
40016         * lib/set-mode-acl.c (qset_acl): Likewise.
40017
40018 2008-12-07  Bruno Haible  <bruno@clisp.org>
40019
40020         Add support for new flavours of ACLs on AIX. (Untested.)
40021         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40022         (file_has_acl): Add support for newer AIX.
40023         * lib/set-mode-acl.c (qset_acl): Likewise.
40024         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40025         Rainer Tammer <tammer@tammer.net>.
40026
40027 2009-09-26  Eric Blake  <ebb9@byu.net>
40028
40029         argp: fix compilation of getopt
40030         * lib/getopt.in.h (includes): Use different guard than glibc.
40031         Reported by Sergey Poznyakoff.
40032
40033         doc: mention more cygwin 1.7 status
40034         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40035         bug.
40036         * doc/posix-functions/execl.texi (execl): Likewise.
40037         * doc/posix-functions/execle.texi (execle): Likewise.
40038         * doc/posix-functions/execlp.texi (execlp): Likewise.
40039         * doc/posix-functions/execv.texi (execv): Likewise.
40040         * doc/posix-functions/execve.texi (execve): Likewise.
40041         * doc/posix-functions/execvp.texi (execvp): Likewise.
40042         * doc/glibc-functions/canonicalize_file_name.texi
40043         (canonicalize_file_name): Cygwin 1.7 now provides this.
40044         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40045         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40046         on AT_SYMLINK_NOFOLLOW.
40047
40048 2009-09-24  Eric Blake  <ebb9@byu.net>
40049
40050         test-linkat: make test more robust
40051         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40052
40053         getopt: fix inclusion guards for cygwin
40054         * modules/getopt-posix (Depends-on): Add include-next.
40055         (Makefile.am): Substitute more items in replacement header.
40056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40057         <getopt.h>.
40058         * lib/getopt.in.h (includes): Use split inclusion guard, and
40059         prefer <getopt.h> over include <unistd.h> when one is present.
40060         (option): Also override name of 'struct option'.
40061
40062         same-inode: revert prior change; it is not yet ready
40063         * NEWS: Undo mention of this change.
40064         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40065         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40066         * lib/cycle-check.c (cycle_check): Likewise.
40067         * lib/same.c (same_name): Likewise.
40068         * lib/at-func2.c (at_func2): Likewise.
40069
40070 2009-09-23  Eric Blake  <ebb9@byu.net>
40071
40072         linkat: new module
40073         * modules/linkat: New file.
40074         * lib/at-func2.c (at_func2): Likewise.
40075         * lib/linkat.c (linkat): Likewise.
40076         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40077         * lib/openat-priv.h (at_func2): Add declaration.
40078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40079         * modules/unistd (Makefile.am): Substitute them.
40080         * lib/unistd.in.h (linkat): Declare it.
40081         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40082         * doc/posix-functions/linkat.texi (linkat): Likewise.
40083         * doc/posix-functions/link.texi (link): Tweak wording.
40084         * tests/test-link.c (main): Move guts...
40085         * tests/test-link.h (test_link): ...into new file.
40086         * modules/linkat-tests: New test.
40087         * tests/test-linkat.c: Likewise.
40088         * modules/link-tests (Files): Ship new file.
40089         (Depends-on): Add stdbool.
40090
40091         dirname: add library-safe mdir_name
40092         * lib/dirname.h (mdir_name): New prototype.
40093         * lib/dirname.c (dir_name): Move guts...
40094         (mdir_name): ...to new function that avoids xalloc_die.
40095
40096         fchdir: another mingw fix
40097         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40098         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40099         on mingw (where it has not yet been ported), and make it optional
40100         elsewhere.
40101         (_gl_register_fd): Use it.
40102
40103         same-inode: make SAME_INODE tri-state, to port to mingw
40104         * NEWS: Mention this change.
40105         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40106         st_ino always being 0.
40107         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40108         * lib/cycle-check.c (cycle_check): Likewise.
40109         * lib/same.c (same_name): Likewise.
40110
40111         lstat: avoid mingw compilation error
40112         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40113         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40114         lstat ourselves.
40115         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40116         was adequate.
40117         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40118         the checks for lstat.
40119         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40120
40121         link: fix test failure on Solaris 9
40122         * lib/link.c (rpl_link): Don't assume link will catch bogus
40123         trailing slash on source.
40124
40125         test-symlinkat: enhance test
40126         * tests/test-readlink.c (main): Move guts...
40127         * tests/test-readlink.h (test_readlink): ...into new file.
40128         * tests/test-symlink.c (main): Move guts...
40129         * tests/test-symlink.h (test_symlink): ...into new file.
40130         * tests/test-symlinkat.c (main): Use new files for further
40131         coverage.
40132         (do_symlink, do_readlink): New helper functions.
40133         * modules/symlink-tests (Files): Ship new file.
40134         (Depends-on): Add stdbool.
40135         * modules/readlink-tests (Files): Ship new file.
40136         (Depends-on): Add stdbool.
40137         * modules/symlinkat-tests (Files): Use new files.
40138
40139 2009-09-23  Eric Blake  <ebb9@byu.net>
40140
40141         readlink: document portability issue with symlink length
40142         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40143         systems have bogus st_size on symlinks, and mention the
40144         areadlink-with-size module.
40145         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40146         * doc/posix-functions/readlink.texi (readlink): Mention the
40147         areadlink module, and ERANGE failure.
40148         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40149         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40150
40151         readlink: fix Solaris 9 bug with trailing slash
40152         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40153         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40154         * doc/posix-functions/readlink.texi (readlink): Document this.
40155         * modules/readlink-tests: New test.
40156         * tests/test-readlink.c: Likewise.
40157
40158         readlink: fix cygwin 1.5.x bug with return type
40159         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40160         * lib/unistd.in.h (readlink): Use ssize_t.
40161         * lib/readlink.c (readlink): Likewise.
40162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40163         * modules/unistd (Makefile.am): Substitute it.
40164         * lib/unistd.in.h (readlink): Declare replacement.
40165         * doc/posix-functions/readlink.texi (readlink): Document this.
40166
40167         symlink: use throughout gnulib
40168         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40169         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40170         symlink is not used.
40171         * modules/symlinkat (Depends-on): Add symlink.
40172         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40173         * modules/canonicalize-tests (Depends-on): Likewise.
40174         * modules/lstat-tests (Depends-on): Likewise.
40175         * modules/openat-tests (Depends-on): Likewise.
40176         * modules/remove-tests (Depends-on): Likewise.
40177         * modules/rmdir-tests (Depends-on): Likewise.
40178         * modules/unlink-tests (Depends-on): Likewise.
40179         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40180         * tests/test-canonicalize.c (symlink): Likewise.
40181         * tests/test-fstatat.c (symlink): Likewise.
40182         * tests/test-lstat.c (symlink): Likewise.
40183         * tests/test-remove.c (symlink): Likewise.
40184         * tests/test-rmdir.c (symlink): Likewise.
40185         * tests/test-unlink.c (symlink): Likewise.
40186         * tests/test-unlinkat.c (symlink): Likewise.
40187
40188         symlink: new module, for Solaris 9 bug
40189         * modules/symlink: New file.
40190         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40191         * lib/symlink.c: Likewise.
40192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40193         * modules/unistd (Makefile.am): Substitute them.
40194         * lib/unistd.in.h (symlink): Declare replacement.
40195         * MODULES.html.sh (File system functions): Mention it.
40196         * doc/posix-functions/symlink.texi (symlink): Likewise.
40197         * modules/symlink-tests: New test.
40198         * tests/test-symlink.c: Likewise.
40199
40200 2009-09-23  Bruno Haible  <bruno@clisp.org>
40201
40202         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40203         when needed.
40204         Test case: gnulib-tool --import --with-tests atexit inttypes.
40205         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40206
40207 2009-09-23  Bruno Haible  <bruno@clisp.org>
40208
40209         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40210         subcommand, not in a subshell.
40211
40212 2009-09-22  Eric Blake  <ebb9@byu.net>
40213
40214         unistd: sort replacement declarations
40215         * lib/unistd.in.h: Sort declarations.
40216
40217         open, openat: minor optimization
40218         * lib/open.c (open): If open succeeded, len is non-zero.
40219         * lib/openat.c (rpl_openat): Likewise.
40220
40221         link-follow: ensure correct result
40222         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40223         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40224         distinguish between possible failures.
40225
40226 2009-09-21  Eric Blake  <ebb9@byu.net>
40227
40228         fts: avoid compiler warning
40229         * lib/fts.c (dirent_inode_sort_may_be_useful)
40230         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40231
40232 2009-09-19  Bruno Haible  <bruno@clisp.org>
40233
40234         * lib/progreloc.c (canonicalize_file_name): New declaration.
40235
40236 2009-09-19  Eric Blake  <ebb9@byu.net>
40237
40238         link: fix quoting
40239         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40240
40241         openat: fix openat bugs on Solaris 9
40242         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40243         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40244         * modules/openat (Depends-on): Add open.
40245         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40246         * modules/fcntl-h (Makefile.am): Substitute it.
40247         * lib/fcntl.in.h (openat): Declare replacement.
40248         * doc/posix-functions/openat.texi (openat): Document this.
40249
40250         openat: move fstatat and unlinkat into correct files
40251         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40252         compiled.
40253         * lib/openat.c (fstatat, unlinkat): Move...
40254         * lib/fstatat.c (fstatat): ...into correct files.
40255         * lib/unlinkat.c (unlinkat): Likewise.
40256
40257         openat: fix unlinkat bugs on Solaris 9
40258         * lib/unlinkat.c (unlinkat): New file.
40259         * modules/openat (Depends-on): Add unlink.
40260         (Files): Distribute it.
40261         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40262         trailing slash behavior is broken.
40263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40264         * modules/unistd (Makefile.am): Substitute it.
40265         * lib/unistd.in.h (unlinkat): Declare replacement.
40266         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40267
40268         openat: fix fstatat bugs on Solaris 9
40269         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40270         stat.
40271         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40272
40273         test-unlinkat: enhance test, to expose Solaris 9 bug
40274         * tests/test-unlink.c (main): Factor guts...
40275         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40276         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40277         * tests/test-rmdir.c (main): Adjust caller.
40278         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40279         (unlinker): New helper function.
40280         (rmdirat): Enhance check.
40281         * modules/rmdir-tests (Depends-on): Add stdbool.
40282         * modules/unlink-tests (Depends-on): Likewise.
40283         (Files): Add test-unlink.h.
40284         * modules/openat-tests (Files): Likewise.
40285         (Depends-on): Add unlinkdir.
40286
40287         test-fstatat: new test, to expose Solaris 9 bugs
40288         * tests/test-stat.c (main): Factor guts...
40289         * tests/test-stat.h (test_stat_func): ...into new file.
40290         * tests/test-lstat.c (main): Factor guts...
40291         * tests/test-lstat.h (test_lstat_func): ...into new file.
40292         * tests/test-fstatat.c: New file.
40293         * modules/stat-tests (Files): Add test-stat.h.
40294         * modules/lstat-tests (Files): Add test-lstat.h.
40295         (Depends-on): Add stdbool.
40296         * modules/openat-tests (Depends-on): Add pathmax.
40297         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40298         (Makefile.am): Run new test.
40299
40300         remove: new module, for mingw and Solaris 9 bugs
40301         * modules/remove: New file.
40302         * lib/remove.c: Likewise.
40303         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40305         * modules/stdio (Makefile.am): Use them.
40306         * lib/stdio.in.h (remove): Declare replacement.
40307         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40308         * doc/posix-functions/remove.texi (remove): Likewise.
40309         * modules/remove-tests: New test.
40310         * tests/test-remove.c: Likewise.
40311
40312         unlink: new module, for Solaris 9 bug
40313         * modules/unlink: New file.
40314         * lib/unlink.c: Likewise.
40315         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40317         * modules/unistd (Makefile.am): Use them.
40318         * lib/unistd.in.h (stat): Declare replacement.
40319         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40320         * doc/posix-functions/unlink.texi (unlink): Likewise.
40321         * modules/unlink-tests: New test.
40322         * tests/test-unlink.c: Likewise.
40323
40324         lstat: fix Solaris 9 bug
40325         * lib/lstat.c (lstat): Also check for trailing slash on
40326         non-symlink, non-directories.  Use stat module to simplify logic.
40327         * doc/posix-functions/lstat.texi (lstat): Document it.
40328         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40329         (configure.ac): Check for symlink.
40330         * tests/test-lstat.c (main): Add more tests.
40331
40332         stat: add as dependency to other modules
40333         * modules/chown (Depends-on): Add stat.
40334         * modules/euidaccess (Depends-on): Likewise.
40335         * modules/fchdir (Depends-on): Likewise.
40336         * modules/isdir (Depends-on): Likewise.
40337         * modules/link (Depends-on): Likewise.
40338         * modules/lstat (Depends-on): Likewise.
40339         * modules/mkdir-p (Depends-on): Likewise.
40340         * modules/modechange (Depends-on): Likewise.
40341         * modules/open (Depends-on): Likewise.
40342         * modules/readlink (Depends-on): Likewise.
40343         * modules/same (Depends-on): Likewise.
40344
40345         stat: fix Solaris 9 bug
40346         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40347         slash.
40348         * lib/stat.c (rpl_stat): Work around it.
40349         * doc/posix-functions/stat.texi (stat): Update documentation.
40350
40351         stat: new module, for mingw bug
40352         * modules/stat: New file.
40353         * lib/stat.c: Likewise.
40354         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40355         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40356         * modules/sys_stat (Makefile.am): Use them.
40357         * lib/sys_stat.in.h (stat): Declare replacement.
40358         * lib/openat.c (fstatat): Deal with lstat and stat being function
40359         macros.
40360         * modules/openat (Depends-on): Add inline.
40361         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40362         * doc/posix-functions/stat.texi (stat): Likewise.
40363         * modules/stat-tests: New test.
40364         * tests/test-stat.c: Likewise.
40365
40366 2009-09-19  Jim Meyering  <meyering@redhat.com>
40367
40368         syntax-check: detect unnecessary inclusion of canonicalize.h
40369         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40370
40371 2009-09-19  Eric Blake  <ebb9@byu.net>
40372
40373         canonicalize-lgpl: adjust clients to use correct header
40374         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40375         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40376         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40377         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40378         * lib/progreloc.c (includes): Likewise.
40379
40380 2009-09-19  Jim Meyering  <meyering@redhat.com>
40381
40382         test-posixtm.c: correct a comment
40383         * tests/test-posixtm.c: Correct first-line comment.
40384         Spotted by Eric Blake.
40385
40386 2009-09-16  Jim Meyering  <meyering@redhat.com>
40387
40388         posixtm-tests: make T const-correct; add a test case
40389         * tests/test-posixtm.c (T): Declare const.
40390         Add a test for -(2^31+1).
40391         Remove useless can-succeed-only-in-2002 test.
40392
40393         posixtm-tests: adjust the sole failing test
40394         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40395         expected output matches what mktime now produces.  Cross-checked via
40396         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40397
40398         posixtm: move #ifdef'd tests into a new module
40399         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40400         * tests/test-posixtm.c: ... this new file.
40401         * modules/posixtm-tests: New module.
40402
40403 2009-09-19  Eric Blake  <ebb9@byu.net>
40404
40405         openat: simplify use of at-func.c
40406         * lib/at-func.c (includes): Include prerequisites here, to
40407         simplify requirements on client files.
40408         * lib/openat-priv.h: Add double-inclusion guard.
40409         * lib/faccessat.c (includes): Simplify.
40410         * lib/fchmodat.c (includes): Likewise.
40411         * lib/fchownat.c (includes): Likewise.
40412         * lib/mkdirat.c (includes): Likewise.
40413         * lib/mkfifoat.c (includes): Likewise.
40414         * lib/symlinkat.c (includes): Likewise.
40415
40416         openat: allow return of fd 0
40417         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40418         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40419         unistd-safer.
40420         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40421         <fcntl.h>; this module does not leak fds.
40422         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40423         must be allowed to return 0, leaving openat_safer to add the
40424         safety.
40425         (openat_permissive): Avoid writing to just-opened fd 2 if
40426         restoring the current directory fails.
40427         * lib/openat-die.c (openat_restore_fail): Add comment.
40428         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40429         (save_cwd): Guarantee safe fd, but without use of open_safer.
40430         * tests/test-openat.c: New test.
40431         * modules/openat-tests (Files, Makefile.am): Distribute and build
40432         new file.
40433
40434         relocatable-prog-wrapper: fix build
40435         * modules/relocatable-prog-wrapper (Files): Update name of
40436         canonicalize m4 file, broken on 2009-09-17.
40437         Reported by emad hajjar <aleppos@hotmail.com>.
40438
40439 2009-09-19  Bruno Haible  <bruno@clisp.org>
40440
40441         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40442         * lib/safe-alloc.c: Likewise.
40443         Reported by Ian Beckwith <ianb@erislabs.net>.
40444
40445 2009-09-18  Bruno Haible  <bruno@clisp.org>
40446
40447         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40448         Reported by <erobles@sensacd.com.mx>.
40449
40450 2009-09-17  Eric Blake  <ebb9@byu.net>
40451
40452         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40453         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40454         slashes when checking if last component is missing.
40455         * tests/test-canonicalize.c (main): Test this.
40456
40457         canonicalize, canonicalize-lgpl: honor // if distinct from /
40458         * modules/canonicalize (Files): Add double-slash-root.m4.
40459         * modules/canonicalize-lgpl (Files): Likewise.
40460         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40461         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40462         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40463         fallback definition.
40464         (canonicalize_filename_mode): Use it to protect //.
40465         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40466         (__realpath): Likewise.
40467         * tests/test-canonicalize.c (main): Test this.
40468         * tests/test-canonicalize-lgpl.c (main): Likewise.
40469         * modules/canonicalize-tests (Depends-on): Add same-inode.
40470         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40471
40472         canonicalize-lgpl: fix glibc bug with trailing slash
40473         * m4/canonicalize-lgpl.m4: Move contents...
40474         * m4/canonicalize.m4: ...here.
40475         (gl_CANONICALIZE_LGPL): Factor realpath check...
40476         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40477         glibc 2.3.5 bug, fixed 2005-04-27.
40478         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40479         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40480         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40481         * modules/canonicalize-lgpl (Files): Manage file rename.
40482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40483         * modules/stdlib (Makefile.am): Substitute witness.
40484         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40485         is needed.
40486         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40487         replacement is required.
40488         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40489         * doc/glibc-functions/canonicalize_file_name.texi
40490         (canonicalize_file_name): Document this.
40491         * doc/posix-functions/realpath.texi (realpath): Likewise.
40492
40493         canonicalize-lgpl: reject non-directory with trailing slash
40494         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40495         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40496         catches failures in glibc 2.3.5.
40497         * tests/test-canonicalize.c (main): Likewise.
40498
40499         canonicalize-lgpl: use native realpath if it works
40500         * lib/canonicalize-lgpl.c (realpath): Guard with
40501         FUNC_REALPATH_WORKS.
40502         * lib/stdlib.in.h (realpath): Make declaration optional based on
40503         HAVE_REALPATH.
40504         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40505         native realpath works.
40506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40507         * modules/stdlib (Makefile.am): Substitute witness.
40508
40509         canonicalize, canonicalize-lgpl: use <stdlib.h>
40510         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40511         (Include): Mention <stdlib.h>.
40512         (configure.ac): Mention functions we provide.
40513         * modules/canonicalize (configure.ac): Likewise.
40514         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40515         realpath if canonicalize_file_name is missing.
40516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40517         * modules/stdlib (Makefile.am): Substitute witnesses.
40518         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40519         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40520         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40521         * NEWS: Document this.
40522         * doc/glibc-functions/canonicalize_file_name.texi
40523         (canonicalize_file_name): Likewise.
40524         * doc/posix-functions/realpath.texi (realpath): Likewise.
40525         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40526
40527         test-canonicalize: consolidate into single C program
40528         * tests/test-canonicalize.sh: Delete; move setup into...
40529         * tests/test-canonicalize.c (main): ...the program, making it
40530         easier to run in debugger.  Add some tests.
40531         * modules/canonicalize-tests (Files): Remove unused file.
40532         (Depends-on): Add progname.
40533         (configure.ac, Makefile.am): Simplify.
40534
40535         test-canonicalize-lgpl: consolidate into single C program
40536         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40537         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40538         easier to run in debugger.  Add some tests.
40539         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40540         (configure.ac, Makefile.am): Simplify.
40541
40542         canonicalize: avoid resolvepath
40543         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40544         unnecessary checks.
40545         * lib/canonicalize.c (includes): Simplify.
40546         (canonicalize_file_name): Drop resolvepath implementation.
40547         * modules/canonicalize (Depends-on): Drop filenamecat.
40548
40549         canonicalize: don't lose errno
40550         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40551         over calls to free.
40552
40553         canonicalize: simplify errno handling
40554         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40555         assignment.
40556
40557         canonicalize, canonicalize-lgpl: update module dependencies
40558         * modules/canonicalize (Depends-on): Add extensions, lstat,
40559         pathmax, stdlib.
40560         (Files): Drop pathmax.h.
40561         (configure.ac): Adjust macro name.
40562         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40563         lstat, stdlib, sys_stat.
40564         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40565         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40566         extensions.
40567         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40568         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40569         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40570         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40571         declaration, if available.
40572         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40573         we can rely on the readlink module.
40574         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40575         (includes): Use <unistd.h> unconditionally.
40576
40577 2009-09-17  Eric Blake  <ebb9@byu.net>
40578
40579         maint: make Include sections of modules consistent
40580         * modules/alloca: Use only header name; no need to list #include.
40581         * modules/alloca-opt: Likewise.
40582         * modules/arpa_inet: Likewise.
40583         * modules/canon-host: Likewise.
40584         * modules/configmake: Likewise.
40585         * modules/dirent: Likewise.
40586         * modules/eealloc: Likewise.
40587         * modules/environ: Likewise.
40588         * modules/fchdir: Likewise.
40589         * modules/fcntl: Likewise.
40590         * modules/fcntl-h: Likewise.
40591         * modules/gethrxtime: Likewise.
40592         * modules/gettime: Likewise.
40593         * modules/ignore-value: Likewise.
40594         * modules/inet_ntop: Likewise.
40595         * modules/inet_pton: Likewise.
40596         * modules/inttypes: Likewise.
40597         * modules/isnand-nolibm: Likewise.
40598         * modules/isnanf-nolibm: Likewise.
40599         * modules/mbchar: Likewise.
40600         * modules/mbfile: Likewise.
40601         * modules/mbiter: Likewise.
40602         * modules/mbuiter: Likewise.
40603         * modules/netdb: Likewise.
40604         * modules/netinet_in: Likewise.
40605         * modules/nproc: Likewise.
40606         * modules/pagealign_alloc: Likewise.
40607         * modules/poll: Likewise.
40608         * modules/printf-frexp: Likewise.
40609         * modules/pthread: Likewise.
40610         * modules/putenv: Likewise.
40611         * modules/random_r: Likewise.
40612         * modules/relocatable-prog: Likewise.
40613         * modules/search: Likewise.
40614         * modules/select: Likewise.
40615         * modules/selinux-h: Likewise.
40616         * modules/settime: Likewise.
40617         * modules/signal: Likewise.
40618         * modules/size_max: Likewise.
40619         * modules/socklen: Likewise.
40620         * modules/ssize_t: Likewise.
40621         * modules/stdarg: Likewise.
40622         * modules/stdbool: Likewise.
40623         * modules/stddef: Likewise.
40624         * modules/stdint: Likewise.
40625         * modules/stdio: Likewise.
40626         * modules/stdlib: Likewise.
40627         * modules/string: Likewise.
40628         * modules/strings: Likewise.
40629         * modules/sys_file: Likewise.
40630         * modules/sys_ioctl: Likewise.
40631         * modules/sys_select: Likewise.
40632         * modules/sys_socket: Likewise.
40633         * modules/sys_stat: Likewise.
40634         * modules/sys_time: Likewise.
40635         * modules/sys_times: Likewise.
40636         * modules/sys_utsname: Likewise.
40637         * modules/sys_wait: Likewise.
40638         * modules/sysexits: Likewise.
40639         * modules/time: Likewise.
40640         * modules/times: Likewise.
40641         * modules/tmpfile: Likewise.
40642         * modules/trim: Likewise.
40643         * modules/unistd: Likewise.
40644         * modules/wchar: Likewise.
40645         * modules/wctype: Likewise.
40646
40647 2009-09-17  Bruno Haible  <bruno@clisp.org>
40648
40649         Make getdate.y compile on QNX and NetBSD 5 / i386.
40650         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40651         TIME_T_FITS_IN_LONG_INT.
40652         * lib/getdate.y (long_time_t): New type.
40653         (relative_time): Change type of 'seconds' field to long_time_t.
40654         (get_date): Update types of local variables. Check against overflow
40655         during conversion from long_time_t to time_t.
40656         Reported by Matt Kraai <kraai@ftbfs.org>
40657         and Hasso Tepper <hasso@netbsd.org>.
40658
40659 2009-09-17  Bruno Haible  <bruno@clisp.org>
40660
40661         * modules/COPYING: Update copyright years.
40662         * modules/README: Likeiwse.
40663         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40664         Reported by Ian Beckwith <ianb@erislabs.net>.
40665
40666 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40667
40668         * users.txt: Update references for gnuit package.
40669
40670 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40671
40672         * m4/getdelim.m4: Fix typo in copyright line.
40673
40674 2009-09-17  Bruno Haible  <bruno@clisp.org>
40675
40676         * lib/atoll.c: Use the standard header with GPL copyright.
40677         * lib/argz.in.h: Likewise.
40678         * lib/glob.c: Likewise.
40679         * lib/glob-libc.h: Likewise.
40680         * lib/random_r.c: Likewise.
40681         * lib/siglist.h: Likewise.
40682         * lib/strsignal.c: Likewise.
40683         Reported by Ian Beckwith <ianb@erislabs.net>.
40684
40685 2009-09-17  Eric Blake  <ebb9@byu.net>
40686
40687         rmdir: ensure correct dependency order
40688         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40689
40690 2009-09-17  Bruno Haible  <bruno@clisp.org>
40691
40692         Disable assertion that fails on NetBSD 5 / i386.
40693         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40694         Reported by Sam Steingold <sds@gnu.org>
40695         and Hasso Tepper <hasso@netbsd.org>.
40696
40697 2009-09-16  Eric Blake  <ebb9@byu.net>
40698
40699         unlinkdir: port to mingw
40700         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40701         on which no one can unlink a directory.
40702
40703         stdlib: sort witness names
40704         * modules/stdlib (Makefile.am): Sort replacements.
40705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40706         * lib/stdlib.in.h: Likewise.
40707
40708         parse-duration-tests: avoid link failure
40709         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40710         LIBINTL.
40711         Reported by Tom G. Christensen.
40712
40713         openat-tests: ensure unlinkat behaves like rmdir
40714         * tests/test-rmdir.c (main): Factor guts...
40715         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40716         * modules/rmdir-tests (Files): Ship new file.
40717         * modules/openat-tests: New test.
40718         * tests/test-unlinkat.c: Likewise.
40719
40720         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40721         * modules/rmdir-errno (Status, Notice): Now obsolete.
40722
40723         rmdir: work around cygwin 1.5.x and mingw bugs
40724         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40725         * lib/rmdir.c (rmdir): Work around it.
40726         * modules/rmdir (Status, Notice): No longer obsolete.
40727         (Files): Add dos.m4.
40728         (Depends-on): Add unistd.
40729         (configure.ac): Set witnesses.
40730         (License): Relax to LGPLv2+.
40731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40732         * modules/unistd (Makefile.am): Substitute witnesses.
40733         * lib/unistd.in.h (rmdir): Declare replacement.
40734         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40735         * modules/rmdir-tests: New tests.
40736         * tests/test-rmdir.c: Likewise.
40737
40738 2009-09-15  Eric Blake  <ebb9@byu.net>
40739
40740         fchdir: improve use of replacement functions
40741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40742         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40743         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40744         REPLACE_CLOSEDIR.
40745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40746         * modules/sys_stat (Makefile.am): Substitute correct witness.
40747         * modules/dirent (Makefile.am): Likewise.
40748         * modules/unistd (Makefile.am): Likewise.
40749         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40750         * lib/unistd.in.h (dup): Likewise.
40751         * lib/sys_stat.in.h (fstat): Likewise.
40752
40753         maint: ignore gnulib-tool temp files
40754         * .gitignore: Ignore files created during gnulib-tool --test.
40755
40756 2009-09-13  Jim Meyering  <meyering@redhat.com>
40757
40758         posixtm: don't reject a time that specify "60" as the number of seconds
40759         * lib/posixtm.c (posixtime): The code to reject invalid dates
40760         would also reject a time specified with the .60 suffix.
40761         But POSIX allows that, in order to accommodate leap seconds.
40762         So don't reject it.
40763         (main): Adjust tests accordingly.
40764         * modules/posixtm (Depends-on): Add stpcpy.
40765
40766 2009-09-11  Jim Meyering  <meyering@redhat.com>
40767
40768         announce-gen: include [$release_type] in emitted Subject:
40769         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40770         e.g., [stable] in the emitted Subject: line.
40771
40772 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40773
40774         Remove obsolete macros from several modules.
40775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40776         obsolete Autoconf macros with their modern counterparts.
40777         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40778         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40779         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40780         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40781         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40783         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40784         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40785         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40786         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40787         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40789         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40790         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40791         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40792         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40793         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40794         * m4/time_r.m4 (gl_TIME_R): Likewise.
40795         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40796         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40797         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40798
40799         Fix copyright header in build-aux scripts.
40800         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40801         recommendation.
40802         * build-aux/ncftpput-ftp: Likewise.
40803         * build-aux/update-copyright: Likewise.
40804
40805 2009-09-09  Eric Blake  <ebb9@byu.net>
40806
40807         test-link: allow Linux choice of errno
40808         * tests/test-link.c (main): Relax test for alternate error.
40809
40810         strndup: fix improper m4 caching
40811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40812         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40813         (gl_PREREQ_STRNDUP): Delete.
40814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40815         * modules/string (Makefile.am): Substitute it.
40816         * lib/string.in.h (strndup): Modernize prototype.
40817
40818         getcwd: port to mingw
40819         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40820         different from the POSIX assumptions made throughout the getcwd
40821         module; fortunately, the mingw getcwd does not need replacement.
40822         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40823         * modules/getcwd-tests: New test.
40824         * tests/test-getcwd.c: Likewise.
40825
40826         link: fix platform bugs
40827         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40828         * lib/link.c (link): Work around them.  Fix related mingw bug.
40829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40830         * modules/unistd (Makefile.am): Substitute it.
40831         * lib/unistd.in.h (link): Declare replacement.
40832         * doc/posix-functions/link.texi (link): Document this.
40833         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40834
40835         test-link: consolidate into single C program, test more cases
40836         * tests/test-link.sh: Delete.
40837         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40838         at least Cygwin and Solaris.
40839         * modules/link-tests (Files): Remove unused file.
40840         (Depends-on): Add errno, sys_stat.
40841         (Makefile.am): Simplify.
40842
40843 2009-09-08  Bruno Haible  <bruno@clisp.org>
40844
40845         Work around towlower, towupper bug on mingw.
40846         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40847         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40848         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40849         * doc/posix-functions/towupper.texi: Likewise.
40850         Reported by Eric Blake.
40851
40852 2009-09-08  Jim Meyering  <meyering@redhat.com>
40853
40854         build: don't try to run autoheader if we don't use it
40855         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40856         is not used in configure.ac.
40857
40858 2009-09-08  Eric Blake  <ebb9@byu.net>
40859
40860         euidaccess: fix compilation error
40861         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40862
40863         rawmemchr: relax license
40864         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40865         okay.
40866         Reported by Jim Meyering.
40867
40868         mkfifoat: new module
40869         * modules/mkfifoat: New file.
40870         * lib/mkfifoat.c: Likewise.
40871         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40873         * modules/sys_stat (Makefile.am): Use them.
40874         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40875         * MODULES.html.sh (File system functions): Mention module.
40876         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40877         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40878         * modules/mkfifoat-tests: New test.
40879         * tests/test-mkfifoat.c: Likewise.
40880
40881         strchrnul: relax license
40882         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40883         okay.
40884         Reported by Jim Meyering.
40885
40886 2009-09-08  Eric Blake  <ebb9@byu.net>
40887
40888         fstatat: fix compilation on Solaris
40889         * lib/fstatat.c (includes): Add fcntl.h.
40890         Reported by Pádraig Brady.
40891
40892 2009-09-07  Eric Blake  <ebb9@byu.net>
40893
40894         rename: modernize replacement
40895         * modules/rename (Depends-on): Add stdio.
40896         (configure.ac): Declare witness.
40897         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40898         stdio take care of replacement.
40899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40900         * modules/stdio (Makefile.am): Substitute them.
40901         * lib/stdio.in.h (rename): Declare replacement.
40902         * lib/rename.c (includes): Allow cross-compilation to non-windows
40903         machines.
40904         * doc/posix-functions/rename.texi (rename): Improve
40905         documentation.
40906
40907         stdio: sort witness names
40908         * modules/stdio (Makefile.am): Sort replacements.
40909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40910         * lib/stdio.in.h: Likewise.
40911
40912         getcwd: minor cleanups
40913         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40914         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40915
40916         openat: provide more convenience names
40917         * modules/faccessat (configure.ac): Add C witness.
40918         * lib/unistd.in.h (readlinkat): Fix typo.
40919         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40920         convenience wrappers.
40921         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40922         wrappers in syntax checks.
40923
40924 2009-09-06  Eric Blake  <ebb9@byu.net>
40925
40926         doc: fix comments in recent patches
40927         * lib/faccessat.c: Mention correct function.
40928         * lib/fchmodat.c: Likewise.
40929         * lib/fchownat.c: Likewise.
40930         * lib/symlinkat.c: Likewise.
40931         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40932         constants.
40933
40934         faccessat, symlinkat: continue cleanup of previous patch
40935         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40936         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40937         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40939         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40940         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40941         set.
40942
40943 2009-09-06  Bruno Haible  <bruno@clisp.org>
40944
40945         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40946         (fstatat): Declare if GNULIB_FSTATAT is set.
40947         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40948         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40949         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40950         * modules/fcntl-h (Files): Remove m4/openat.m4.
40951         * modules/sys_stat (Files): Remove m4/openat.m4.
40952         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40953         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40954         * modules/unistd (Files): Remove m4/openat.m4.
40955         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40956         GNULIB_OPENAT.
40957         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40958         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40960         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40961         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40962         gl_OPENAT_DEFAULTS.
40963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40964         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40965         Don't require gl_OPENAT_DEFAULTS.
40966         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40967         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40968         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40969         (gl_OPENAT_DEFAULTS): Remove macro.
40970
40971 2009-09-06  Bruno Haible  <bruno@clisp.org>
40972
40973         * modules/openat (configure.ac): Remove unneeded witness.
40974
40975 2009-09-06  Bruno Haible  <bruno@clisp.org>
40976
40977         Set errno to ENOSYS when a function is entirely unsupported.
40978         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40979         EOPNOTSUPP.
40980         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40981         * modules/chown (Depends-on): Remove errno.
40982
40983 2009-09-06  Bruno Haible  <bruno@clisp.org>
40984
40985         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40986
40987 2009-09-06  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40990
40991 2009-09-06  Ben Pfaff  <blp@gnu.org>
40992             Bruno Haible  <bruno@clisp.org>
40993
40994         Work around a glibc bug in strtok_r.
40995         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40996         Undefine if UNDEFINE_STRTOK_R is set.
40997         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40998         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40999         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41000         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41001         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41002         UNDEFINE_STRTOK_R.
41003         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41004
41005 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41006
41007         exclude: minor fix
41008         * lib/exclude.c: Include wctype.h
41009
41010 2009-09-06  Akim Demaille  <demaille@gostai.com>
41011
41012         bootstrap: improve error message
41013         * build-aux/bootstrap (find_tool): Upon failure, report the list
41014         of candidates.
41015         Honor the initial value of the envvar.
41016
41017 2009-09-05  Eric Blake  <ebb9@byu.net>
41018
41019         symlinkat: new module
41020         * modules/symlinkat: New file.
41021         * lib/symlinkat.c: Likewise.
41022         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41024         * modules/unistd (Makefile.am): Use them.
41025         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41026         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41027         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41028         * MODULES.html.sh (File system functions): Mention module.
41029         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41030         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41031         * modules/symlinkat-tests: New test.
41032         * tests/test-symlinkat.c: Likewise.
41033
41034         test-openat-safer: add more checks
41035         * tests/test-openat-safer.c (main): Check more code paths.
41036
41037 2009-09-05  Jim Meyering  <meyering@redhat.com>
41038
41039         syntax-check: detect unnecessary inclusion of openat.h
41040         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41041
41042 2009-09-05  Bruno Haible  <bruno@clisp.org>
41043
41044         Support towlower, towupper.
41045         * doc/posix-functions/towlower.texi: Mention module wctype.
41046         * doc/posix-functions/towupper.texi: Likewise.
41047         * lib/wctype.in.h (towlower, towupper): New functions.
41048         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41049         (ASSERT): New macro.
41050         (e): New variable.
41051         (main): Test also towlower, towupper. Test WEOF argument.
41052         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41053
41054 2009-09-05  Bruno Haible  <bruno@clisp.org>
41055
41056         Fix conversion behaviour when the input is invalid.
41057         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41058         mark occurring in first pass of indirect conversion.
41059         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41060         input.
41061         Found by clang's static analyzer.
41062
41063 2009-09-05  Bruno Haible  <bruno@clisp.org>
41064
41065         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41066         where direct conversion is possible.
41067
41068 2009-09-04  Eric Blake  <ebb9@byu.net>
41069
41070         openat: fail with ENOENT on empty name
41071         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41072         buffer.
41073
41074         link-follow: fix logic bug in prior patch
41075         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41076         reversed sense of yes and no in prior patch.  Avoid confusing
41077         compilation failure with desired semantics.
41078
41079         link-follow: accomodate mingw and cross-compilation
41080         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41081         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41082         cross-compilation results to -1, to make linkat easier to
41083         implement when cross-compiling.  Trivially support mingw.
41084         * modules/link-follow (configure.ac): Call new name.
41085         * NEWS: Mention this.
41086
41087 2009-09-03  Eric Blake  <ebb9@byu.net>
41088
41089         faccessat: compile replacement
41090         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41091         needed.
41092
41093         fts: fix compilation error
41094         * lib/fts.c (includes): Re-add "openat.h", for
41095         openat_needs_fchdir.
41096
41097         faccessat: new module
41098         * modules/faccessat: New file.
41099         * lib/faccessat.c: Likewise.
41100         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41102         * modules/unistd (Makefile.am): Use it.
41103         * lib/unistd.in.h (faccessat): Declare it.
41104         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41105         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41106         * MODULES.html.sh (File system functions): Mention it.
41107         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41108         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41109
41110         euidaccess: prefer POSIX over non-standard implementation
41111         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41112         * lib/euidaccess.c (euidaccess): Use it if available.
41113
41114         openat: make template easier to use
41115         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41116         AT_FUNC_F2 to be undefined.
41117         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41118         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41119         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41120         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41121         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41122         Likewise.
41123         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41124         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41125         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41126         Likewise.
41127
41128         openat: declare in POSIX headers
41129         * NEWS: Mention this.
41130         * modules/openat (configure.ac): Declare witnesses.
41131         (Depends-on): Add fcntl-h, sys_stat, unistd.
41132         (Include): Mention correct headers.
41133         * modules/fcntl-h (Depends-on): Add link-warning.
41134         (Files): Add openat.m4.
41135         (Makefile.am): Substitute witnesses.
41136         * modules/sys_stat (Files, Makefile.am): Likewise.
41137         * modules/unistd (Files, Makefile.am): Likewise.
41138         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41139         (gl_OPENAT_DEFAULTS): New macro.
41140         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41143         (SYS_STAT_H): Remove unused variable.
41144         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41145         * lib/fcntl--.h (includes): Remove unneeded header.
41146         * lib/openat-safer.c (includes): Likewise.
41147         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41148         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41149         appropriate headers.
41150         (__OPENAT_PREFIX): Delete.
41151         * lib/fcntl.in.h (openat): Provide declaration.
41152         (AT_FDCWD): Fix Solaris bug.
41153         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41154         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41155         * lib/fchmodat.c (includes):  Adjust to find declaration.
41156         * lib/fchownat.c (includes): Likewise.
41157         * lib/mkdirat.c (includes): Likewise.
41158         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41159         still visible.
41160
41161 2009-09-02  Eric Blake  <ebb9@byu.net>
41162
41163         errno: use consistently
41164         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41165         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41166         * lib/canonicalize.c (ELOOP): Likewise.
41167         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41168         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41169         * lib/lchown.c (EOPNOTSUPP): Likewise.
41170         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41171         * lib/savewd.c (ESTALE): Likewise.
41172         * lib/settime.c (ENOSYS): Likewise.
41173         * lib/utimens.c (ENOSYS): Likewise.
41174         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41175         * lib/chdir-safer.c (ELOOP): Likewise.
41176         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41177         * modules/c-stack (Depends-on): Add errno.
41178         * modules/canonicalize (Depends-on): Likewise.
41179         * modules/chdir-safer (Depends-on): Likewise.
41180         * modules/fdopendir (Depends-on): Likewise.
41181         * modules/inet_ntop (Depends-on): Likewise.
41182         * modules/inet_pton (Depends-on): Likewise.
41183         * modules/lchown (Depends-on): Likewise.
41184         * modules/openat (Depends-on): Likewise.
41185         * modules/savewd (Depends-on): Likewise.
41186         * modules/settime (Depends-on): Likewise.
41187         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41188
41189         fts: avoid leaking fds
41190         * modules/fts (Depends-on): Add cloexec.
41191         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41192         flag.
41193
41194         fts: make directory fds more robust
41195         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41196         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41197
41198         backupfile, chdir-long, fts, savedir: make safer
41199         * lib/backupfile.c (includes): Use "dirent--.h", since
41200         numbered_backup can write to stderr during readdir.
41201         * lib/savedir.c (includes): Likewise.
41202         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41203         emulation can write to stderr on failure.
41204         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41205         * lib/getcwd.c: Document why opendir_safer is unused.
41206         * lib/glob.c: Likewise.
41207         * lib/scandir.c: Likewise.
41208         * lib/openat-proc.c: Likewise, for open_safer.
41209         * modules/backupfile (Depends-on): Add dirent-safer.
41210         * modules/savedir (Depends-on): Likewise.
41211         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41212         * modules/chdir-long (Depends-on): Add openat-safer.
41213
41214         openat-safer: new module
41215         * modules/openat-safer: New file.
41216         * lib/openat-safer.c: Likewise.
41217         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41218         * lib/fcntl-safer.h (openat_safer): Declare.
41219         * lib/fcntl--.h (openat): Override.
41220         * MODULES.html.sh (File descriptor based I/O): Mention it.
41221         * lib/openat.h: Add double-inclusion guards.
41222         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41223         "fcntl--.h", so we can implement openat.
41224         * modules/openat-safer-tests: New test.
41225         * tests/test-openat-safer.c: New file.
41226
41227         dirent-safer: new module
41228         * modules/dirent-safer: New file.
41229         * lib/dirent--.h: Likewise.
41230         * lib/dirent-safer.h: Likewise.
41231         * lib/opendir-safer.c: Likewise.
41232         * m4/dirent-safer.m4: Likewise.
41233         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41234         * modules/dirent-safer-tests: New test.
41235         * tests/test-dirent-safer.c: New file.
41236         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41237
41238         fdopendir: optimize on mingw
41239         * lib/unistd.in.h (_gl_directory_name): New prototype.
41240         * lib/fchdir.c (_gl_directory_name): Implement it.
41241         (fchdir): Use it to simplify implementation.
41242         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41243         fchdir, when available, to avoid calling [f]chdir().
41244
41245         fdopendir: split into its own module
41246         * lib/openat.c (fdopendir): Move...
41247         * lib/fdopendir.c: ...into new file.
41248         * modules/fdopendir: New module.
41249         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41250         * modules/openat (Depends-on): Add fdopendir.
41251         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41252         fdopendir here.
41253         * modules/savedir (Depends-on): Only need fdopendir, not full
41254         openat.
41255         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41256         * lib/openat.h (fdopendir): Drop prototype.
41257         * lib/dirent.in.h (fdopendir): Provide prototype.
41258         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41259         * modules/dirent (Makefile.am): Substitute them.
41260         * MODULES.html.sh (File system functions): Mention it.
41261         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41262         * modules/fdopendir-tests: New file.
41263         * tests/test-fdopendir.c: Likewise.
41264
41265         fchdir: use more consistent macro convention
41266         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41267         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41268         REPLACE_FCHDIR, rather than relying on config.h macros.
41269         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41270         inside a single make-time REPLACE_FCHDIR block, rather than using
41271         the config.h FCHDIR_REPLACEMENT.
41272         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41273         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41274         Manage fstat replacement.
41275         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41276         REPLACE_FCHDIR.
41277         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41278         (Makefile.am): Substitute REPLACE_FCHDIR.
41279         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41280         FCHDIR_REPLACEMENT.
41281         * lib/dup-safer.c (dup_safer): Likewise.
41282         * lib/dup2.c (rpl_dup2): Likewise.
41283         * lib/dup3.c (rpl_dup3): Likewise.
41284         * lib/open.c (rpl_open): Likewise.
41285
41286         fchdir: simplify error handling, and support dup3
41287         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41288         stdbool, malloc-posix, realloc-posix.
41289         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41290         (ensure_dirs_slot): Return false on allocation failure.
41291         (rpl_dup2): Delete.
41292         (_gl_register_dup): New function.
41293         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41294         (_gl_register_fd): Close fd on allocation failure.
41295         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41296         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41297         prototype.
41298         (rpl_dup2_fchdir): Delete prototype.
41299         * lib/open.c (open): Update caller.
41300         * lib/dup2.c (dup2): Track fchdir metadata.
41301         * lib/dup3.c (dup3): Likewise.
41302         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41304
41305 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41306
41307         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41308         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41309         don't pass arguments to AC_OUTPUT.
41310
41311 2009-09-02  Bruno Haible  <bruno@clisp.org>
41312
41313         * modules/mkdtemp (License): Relicense under LGPLv2+.
41314         Reported by Paolo Bonzini.
41315
41316 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41317
41318         Replace uses of obsolete autoconf macros in Jim's modules.
41319         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41320         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41321         can evoke a warning from autoconf when run with -Wobsolete
41322         enabled.  They were declared obsolete for good reasons (see
41323         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41324         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41325         should not continue using the deprecated macros.
41326         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41327         obsolete Autoconf macros with modern counterparts.
41328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41329         * m4/dos.m4 (gl_AC_DOS): Likewise.
41330         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41332         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41333         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41334         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41335         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41336         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41337         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41338         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41339         Likewise.
41340         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41341         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41342         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41343         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41344         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41345         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41346
41347 2009-09-01  Eric Blake  <ebb9@byu.net>
41348
41349         fchdir: fix off-by-one bug in previous patch
41350         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41351         (_gl_unregister_fd): Delete useless if.
41352
41353 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41354
41355         maint.mk: sort the list of syntax-check rules
41356         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41357         easier to get a sense of progress when the rules are run sequentially
41358         and take a long time.
41359
41360 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41361
41362         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41363         * modules/netinet_in: Likewise.
41364         * modules/sys_file: Likewise.
41365         * modules/sys_ioctl: Likewise.
41366         * modules/sys_select: Likewise.
41367         * modules/sys_socket: Likewise.
41368         * modules/sys_stat: Likewise.
41369         * modules/sys_time: Likewise.
41370         * modules/sys_times: Likewise.
41371         * modules/sys_utsname: Likewise.
41372         * modules/sys_wait: Likewise.
41373
41374 2009-09-01  Jim Meyering  <meyering@redhat.com>
41375
41376         fts: help ensure that return values are not ignored
41377         * lib/fts_.h (__GNUC_PREREQ): Define.
41378         (__attribute_warn_unused_result__): Define.
41379         (fts_children, fts_close, fts_open, fts_read): Declare with
41380         __attribute_warn_unused_result__.
41381
41382         fts: fts_close now fails also when closing a dir file descriptor fails
41383         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41384         and propagate to caller, along with errno.
41385
41386         announce-gen: correct formatting in --help output
41387         * build-aux/announce-gen (usage): Move the one-line description in
41388         --help output "up", to where it belongs, just after Usage:.
41389
41390 2009-08-31  Eric Blake  <ebb9@byu.net>
41391
41392         fchdir: port to mingw
41393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41394         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41395         opened, then use a substitute.
41396         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41397         replacement.
41398         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41399         (_gl_register_fd): No need to check stat if open already filters
41400         all directories.
41401         (fchdir): Fix error condition to match POSIX.
41402         * modules/fchdir (Depends-on): Add sys_stat.
41403         * doc/posix-functions/open.texi (open): Document the limitation.
41404         * modules/fchdir-tests: New file.
41405         * tests/test-fchdir.c: Likewise.
41406
41407         canonicalize: allow cross-testing from cygwin to mingw
41408         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41409         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41410         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41411         Likewise.
41412         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41413         target does not support symlinks.
41414         * tests/test-canonicalize-lgpl.sh: Likewise.
41415
41416         chown: avoid compilation warning on mingw
41417         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41418         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41419         mingw.
41420         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41421         * modules/chown (Depends-on): Add errno.
41422
41423 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41424
41425         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41426         command.
41427
41428 2009-08-31  Jim Meyering  <meyering@redhat.com>
41429
41430         canonicalize: remove useless initialization
41431         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41432         initialization of local, "end".
41433
41434 2009-08-30  Bruno Haible  <bruno@clisp.org>
41435
41436         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41437         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41438         ENOSYS.
41439
41440 2009-08-30  Bruno Haible  <bruno@clisp.org>
41441
41442         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41443         /usr/xpg4/bin/tr when it exists.
41444         * tests/test-pipe-filter-gi1.sh: Likewise.
41445
41446 2009-08-30  Bruno Haible  <bruno@clisp.org>
41447
41448         Work around deficient /usr/bin/id program on Solaris.
41449         * tests/test-file-has-acl.sh (ID): New variable.
41450         * tests/test-set-mode-acl.sh (ID): Likewise.
41451         * tests/test-copy-acl.sh (ID): Likewise.
41452         * tests/test-copy-file.sh (ID): Likewise.
41453
41454 2009-08-30  Bruno Haible  <bruno@clisp.org>
41455
41456         New module 'xstriconveh'.
41457         * lib/xstriconveh.h: New file.
41458         * lib/xstriconveh.c: New file.
41459         * modules/xstriconveh: New file.
41460
41461 2009-08-30  Bruno Haible  <bruno@clisp.org>
41462
41463         Make it easier to use mem_cd_iconveh.
41464         * lib/striconveh.h (iconveh_t): New type.
41465         (iconveh_open, iconveh_close): New declarations.
41466         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41467         with a single 'const iconveh_t *' argument.
41468         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41469         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41470         with a single 'const iconveh_t *' argument.
41471         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41472         * tests/test-striconveh.c (main): Update.
41473         * NEWS: Mention the change.
41474
41475 2009-08-30  Bruno Haible  <bruno@clisp.org>
41476
41477         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41478         problem.
41479
41480 2009-08-30  Bruno Haible  <bruno@clisp.org>
41481
41482         Work around iconv_open problem on Solaris.
41483         * lib/iconv_open-solaris.gperf: New file.
41484         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41485         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41486         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41487         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41488         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41489         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41490
41491 2009-08-29  Jim Meyering  <meyering@redhat.com>
41492
41493         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41494         * top/maint.mk (cvs-check): Remove target; it was just an alias
41495         to the better-named vc-diff-check.
41496         (maintainer-distcheck): Remove rule.  It was used only from
41497         the (alpha/beta/major) target, and all of its commands but one
41498         were coreutils-specific.
41499         (vc-dist): Remove rule.
41500         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41501         Run vc-diff-check, not vc-dist.
41502         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41503
41504 2009-08-27  Bruno Haible  <bruno@clisp.org>
41505
41506         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41507         of 0.
41508
41509 2009-08-27  Bruno Haible  <bruno@clisp.org>
41510
41511         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41512         compilers.
41513         * doc/func.texi: Document the SunPRO C bug.
41514
41515 2009-08-27  Bruno Haible  <bruno@clisp.org>
41516
41517         Fix link error on Solaris.
41518         * tests/test-parse-duration.c (xstrdup): Remove function.
41519
41520 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41521
41522         ignore-value: handle pointer types, too
41523         * lib/ignore-value.h (__attribute__): Remove definition.
41524         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41525         of a more concise and more-often effective "(void) i" statement.
41526         (ignore_ptr): New function to suppress warnings from functions that
41527         return pointers, and to make it explicit that one function doesn't
41528         handle all cases.
41529
41530 2009-08-25  Bruno Haible  <bruno@clisp.org>
41531
41532         dup2: work around a Linux bug.
41533         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41534         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41535         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41536         Reported by Simon Josefsson.
41537
41538 2009-08-25  Jim Meyering  <meyering@redhat.com>
41539
41540         libguestfs uses gnulib
41541         * users.txt: Add libguestfs.
41542
41543 2009-08-24  Eric Blake  <ebb9@byu.net>
41544
41545         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41546         * lib/pipe2.c (includes): Add binary-io.h.
41547         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41548
41549 2009-08-24  Bruno Haible  <bruno@clisp.org>
41550
41551         Tolerate declared but missing accept4 syscall.
41552         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41553         available.
41554         * lib/sys_socket.in.h (accept4): If the function is already present,
41555         override it.
41556         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41557         * modules/accept4 (Makefile.am): Compile accept4.c always.
41558         Reported by Paolo Bonzini and Eric Blake.
41559
41560 2009-08-23  Bruno Haible  <bruno@clisp.org>
41561
41562         New module 'accept4'.
41563         * lib/sys_socket.in.h (accept4): New declaration.
41564         * lib/accept4.c: New file.
41565         * m4/accept4.m4: New file.
41566         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41567         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41568         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41569         HAVE_ACCEPT4.
41570         * modules/accept4: New file.
41571         * doc/glibc-functions/accept4.texi: Mention the new module.
41572
41573 2009-08-24  Jim Meyering  <meyering@redhat.com>
41574
41575         progname: also set global program_invocation_name, when possible
41576         Before this change, a libtool-enabled program that calls glibc's
41577         error function would report the program name as
41578         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41579         * modules/progname (configure.ac): Check for a declaration of
41580         program_invocation_name.
41581         * lib/progname.c:  Include <errno.h>.
41582         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41583         Set program_invocation_name.
41584
41585 2009-08-23  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/dup3.c: Include <string.h>.
41588
41589 2009-08-23  Bruno Haible  <bruno@clisp.org>
41590
41591         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41592         * lib/pipe2.c (pipe2): Likewise.
41593         Suggested by Eric Blake.
41594
41595 2009-08-23  Bruno Haible  <bruno@clisp.org>
41596
41597         Tolerate declared but missing dup3 syscall.
41598         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41599         * lib/unistd.in.h (dup3): If the function is already present,
41600         override it.
41601         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41602         * modules/dup3 (Makefile.am): Compile dup3.c always.
41603         Reported by Paolo Bonzini.
41604
41605 2009-08-23  Bruno Haible  <bruno@clisp.org>
41606
41607         Tolerate declared but missing pipe2 syscall.
41608         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41609         available.
41610         * lib/unistd.in.h (pipe2): If the function is already present,
41611         override it.
41612         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41613         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41614         Reported by Paolo Bonzini.
41615
41616 2009-08-23  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/pipe2.c (pipe2): Move #ifs inside function.
41619
41620 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41621
41622         quotearg: document limitations of quote_these_too
41623         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41624         those limitations are created.
41625         * lib/quotearg.h (set_char_quoting): Document that digits and
41626         letters that are special after backslash are not permitted.
41627         (quotearg_char): Cross-reference set_char_quoting documentation.
41628
41629 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41630
41631         quotearg: implement custom_quoting_style
41632         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41633         right_quote fields.
41634         (set_custom_quoting): New public function.
41635         (quotearg_buffer_restyled): Add left_quote and right_quote
41636         arguments, handle them very much like locale quoting, and update
41637         all uses.
41638         (quotearg_n_custom): New public function.
41639         (quotearg_n_custom_mem): New public function.
41640         (quotearg_custom): New public function.
41641         (quotearg_custom_mem): New public function.
41642         * lib/quotearg.h: Prototype and document new public functions.
41643         (enum quoting_style): For escape_quoting_style and
41644         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41645         ignored even though they're otherwise like c_quoting_style.
41646         Add custom_quoting_style member and document with comparison to
41647         clocale_quoting_style.
41648         * tests/test-quotearg.c (custom_quotes): New array.
41649         (custom_results): New array.
41650         (main): Extend to test custom quoting.
41651
41652 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41653
41654         quotearg: fix right quote escaping when it's in quote_these_too
41655         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41656         quote, be sure to prepend only one backslash.
41657         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41658         (main): Test it.
41659
41660 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41661
41662         quotearg-tests: test escaping of embedded locale quotes
41663         * tests/test-quotearg.c (struct result_strings): Add member for
41664         new input.
41665         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41666         (inputs): Add new input.
41667         (results_g): Add expected results.
41668         (flag_results): Likewise.
41669         (locale_results): Likewise.
41670         (compare_strings): Check those.
41671
41672 2009-08-23  Bruno Haible  <bruno@clisp.org>
41673
41674         Tests for module 'dup3'.
41675         * modules/dup3-tests: New file.
41676         * tests/test-dup3.c: New file.
41677
41678         New module 'dup3'.
41679         * lib/unistd.in.h (dup3): New declaration.
41680         * lib/dup3.c: New file.
41681         * m4/dup3.m4: New file.
41682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41683         HAVE_DUP3.
41684         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41685         * modules/dup3: New file.
41686         * doc/glibc-functions/dup3.texi: Mention the new module.
41687
41688 2009-08-23  Bruno Haible  <bruno@clisp.org>
41689
41690         Tweak the dup2 test.
41691         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41692         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41693         the test file is still empty. Fix argument order of lseek.
41694
41695 2009-08-23  Bruno Haible  <bruno@clisp.org>
41696
41697         Avoid test link errors when the modules getopt-gnu, gettext are used.
41698         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41700
41701 2009-08-23  Bruno Haible  <bruno@clisp.org>
41702
41703         Fix getdtablesize() on mingw.
41704         * lib/getdtablesize.c (getdtablesize): Implement differently.
41705         * lib/unistd.in.h (getdtablesize): Improve comment.
41706
41707 2009-08-23  Bruno Haible  <bruno@clisp.org>
41708
41709         New module 'mkostemp'.
41710         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41711         * lib/stdlib.in.h (mksotemp): New declaration.
41712         * lib/mkostemp.c: New file, from glibc with modifications.
41713         * lib/tempname.h (GT_FILE): Remove outdated comment.
41714         (gen_tempname): Add flags argument.
41715         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41716         (__GT_FILE): Map to 1.
41717         (small_open, large_open): Remove macros.
41718         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41719         * lib/mkstemp.c (mkstemp): Update.
41720         * lib/mkdtemp.c (mkdtemp): Likewise.
41721         * m4/mkostemp.m4: New file.
41722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41723         HAVE_MKOSTEMP.
41724         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41725         HAVE_MKOSTEMP.
41726         * modules/mkostemp: New file, based on modules/mkstemp.
41727         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41728         * NEWS: Mention the change.
41729
41730 2009-08-23  Bruno Haible  <bruno@clisp.org>
41731
41732         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41733         Reported by Eric Blake.
41734
41735 2009-08-23  Bruno Haible  <bruno@clisp.org>
41736
41737         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41738         Reported by Eric Blake.
41739
41740 2009-08-23  Bruno Haible  <bruno@clisp.org>
41741
41742         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41743         * modules/pipe2 (Depends-on): Likewise.
41744
41745 2009-08-23  Eric Blake  <ebb9@byu.net>
41746
41747         fcntl-h: add O_TTY_INIT support
41748         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41749         * tests/test-fcntl-h.c (o): Test it.
41750         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41751
41752         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41753         * modules/fcntl: Move <fcntl.h> header replacement...
41754         * modules/fcntl-h: ...to new name, so as not to collide with
41755         like-named function.
41756         * tests/test-fcntl.c: Rename...
41757         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41758         * modules/fcntl-tests: Rename...
41759         * modules/fcntl-h-tests: ...to this.  Update test file name.
41760         * modules/chdir-long (Depends-on): Update clients.
41761         * modules/chdir-safer (Depends-on): Likewise.
41762         * modules/fcntl-safer (Depends-on): Likewise.
41763         * modules/fts (Depends-on): Likewise.
41764         * modules/mkancesdirs (Depends-on): Likewise.
41765         * modules/mkdir-p (Depends-on): Likewise.
41766         * modules/open (Depends-on): Likewise.
41767         * modules/savewd (Depends-on): Likewise.
41768         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41769         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41770
41771 2009-08-22  Bruno Haible  <bruno@clisp.org>
41772
41773         * modules/binary-io (License): Relicense under LGPL.
41774         * modules/pipe2 (License): Likewise.
41775
41776 2009-08-22  Bruno Haible  <bruno@clisp.org>
41777
41778         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41779         return value.
41780         * lib/pipe-filter-gi.c (filter_init): Likewise.
41781         Reported by Eric Blake.
41782
41783 2009-08-22  Bruno Haible  <bruno@clisp.org>
41784
41785         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41786         * modules/pipe (Depends-on): Add pipe2.
41787
41788 2009-08-22  Bruno Haible  <bruno@clisp.org>
41789
41790         Tests for module 'pipe2'.
41791         * modules/pipe2-tests: New file.
41792         * tests/test-pipe2.c: New file.
41793
41794         New module 'pipe2'.
41795         * lib/unistd.in.h (pipe2): New declaration.
41796         * lib/pipe2.c: New file.
41797         * m4/pipe2.m4: New file.
41798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41799         HAVE_PIPE2.
41800         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41801         * modules/pipe2: New file.
41802         * doc/glibc-functions/pipe2.texi: Mention the new module.
41803
41804 2009-08-22  Bruno Haible  <bruno@clisp.org>
41805
41806         Reference some new glibc functions.
41807         * doc/glibc-functions/accept4.texi: New file.
41808         * doc/glibc-functions/dup3.texi: New file.
41809         * doc/glibc-functions/mkostemp.texi: New file.
41810         * doc/glibc-functions/pipe2.texi: New file.
41811         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41812         (Glibc sys/socket.h): Refer to accept4.
41813         (Glibc unistd.h): Refer to dup3, pipe2.
41814         Reported by Eric Blake.
41815
41816 2009-08-22  Jim Meyering  <meyering@redhat.com>
41817             Bruno Haible  <bruno@clisp.org>
41818
41819         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41820         This makes it so packages using automake-1.11's silent-rules option
41821         can print e.g., a single "GEN    configmake.h" line, rather than
41822         the 30+ statements that perform the job.  If you want to see the
41823         actual commands, you can still run "make V=1".
41824         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41825         so that make output is abbreviated when those variables are defined
41826         appropriately.
41827         * modules/argz: Likewise.
41828         * modules/arpa_inet: Likewise.
41829         * modules/byteswap: Likewise.
41830         * modules/configmake: Likewise.
41831         * modules/dirent: Likewise.
41832         * modules/errno: Likewise.
41833         * modules/fcntl: Likewise.
41834         * modules/float: Likewise.
41835         * modules/fnmatch: Likewise.
41836         * modules/getopt-posix: Likewise.
41837         * modules/glob: Likewise.
41838         * modules/iconv_open: Likewise.
41839         * modules/inttypes: Likewise.
41840         * modules/localcharset: Likewise.
41841         * modules/locale: Likewise.
41842         * modules/math: Likewise.
41843         * modules/netdb: Likewise.
41844         * modules/netinet_in: Likewise.
41845         * modules/poll: Likewise.
41846         * modules/posix_spawnp-tests: Likewise.
41847         * modules/sched: Likewise.
41848         * modules/search: Likewise.
41849         * modules/selinux-h: Likewise.
41850         * modules/signal: Likewise.
41851         * modules/spawn: Likewise.
41852         * modules/stdarg: Likewise.
41853         * modules/stdbool: Likewise.
41854         * modules/stddef: Likewise.
41855         * modules/stdint: Likewise.
41856         * modules/stdio: Likewise.
41857         * modules/stdlib: Likewise.
41858         * modules/string: Likewise.
41859         * modules/strings: Likewise.
41860         * modules/sys_file: Likewise.
41861         * modules/sys_ioctl: Likewise.
41862         * modules/sys_select: Likewise.
41863         * modules/sys_socket: Likewise.
41864         * modules/sys_stat: Likewise.
41865         * modules/sys_time: Likewise.
41866         * modules/sys_times: Likewise.
41867         * modules/sys_utsname: Likewise.
41868         * modules/sys_wait: Likewise.
41869         * modules/sysexits: Likewise.
41870         * modules/time: Likewise.
41871         * modules/unistd: Likewise.
41872         * modules/wchar: Likewise.
41873         * modules/wctype: Likewise.
41874
41875 2009-08-22  Jim Meyering  <meyering@redhat.com>
41876
41877         announce-gen: detect write failure
41878         * build-aux/announce-gen: Add Coda at end.
41879         Remove equivalent-but-more-verbose block at top.
41880
41881 2009-08-19  Akim Demaille  <demaille@gostai.com>
41882
41883         bootstrap: --help to stdout.
41884         * bootstrap (usage): Don't send --help to stderr.
41885         Use a here doc instead of a long string.
41886
41887 2009-08-21  Eric Blake  <ebb9@byu.net>
41888
41889         test-popen-safer: split from test-popen
41890         * tests/test-popen.c (main): Move...
41891         * tests/test-popen.h: ...into new file.
41892         * tests/test-popen-safer2.c: New file.
41893         * modules/popen-tests (Files): Add test-popen.h.
41894         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41895         Suggested by Bruno Haible.
41896
41897         test-fcntl-safer: split from test-open
41898         * tests/test-open.c (main): Move...
41899         * tests/test-open.h: ...into new file.
41900         * tests/test-fcntl-safer.c: New file.
41901         * modules/open-tests (Files): Add test-open.h.
41902         * modules/fcntl-safer-tests: New file.
41903         Suggested by Bruno Haible.
41904
41905         test-fopen-safer: split from test-fopen
41906         * tests/test-fopen.c (main): Move...
41907         * tests/test-fopen.h: ...into new file.
41908         * tests/test-fopen-safer.c: New file.
41909         * modules/fopen-tests (Files): Add test-fopen.h.
41910         * modules/fopen-safer-tests: New file.
41911         Suggested by Bruno Haible.
41912
41913 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41914
41915         popen-safer: test O_CLOEXEC at run-time.
41916         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41917
41918 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41919
41920         fcntl: move more flags to the header
41921         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41922         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41923         * lib/fcntl.in.h: Do both things here.
41924
41925 2009-08-21  Jim Meyering  <meyering@redhat.com>
41926
41927         consistently remove $@-t before redirecting to it
41928         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41929         * modules/alloca-opt: Likewise.
41930         * modules/byteswap: Likewise.
41931         * modules/fnmatch: Likewise.
41932         * modules/getopt-posix: Likewise.
41933         * modules/glob: Likewise.
41934         * modules/poll: Likewise.
41935         * modules/posix_spawnp-tests: Likewise.
41936         * modules/sys_socket: Likewise.
41937         * modules/sysexits: Likewise.
41938
41939 2009-08-21  Eric Blake  <ebb9@byu.net>
41940
41941         popen: simplify access to original popen
41942         * lib/popen.c (rpl_popen): No need to worry about popen being a
41943         macro.
41944         Reported by Bruno Haible.
41945
41946 2009-08-20  Eric Blake  <ebb9@byu.net>
41947
41948         build: avoid some compiler warnings
41949         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41950         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41951         type.
41952         (new_exclude_segment, excluded_file_pattern_p)
41953         (excluded_file_name_p): Reduce scope.
41954         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41955         old-style declaration.
41956
41957 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41958
41959         * tests/test-exclude1.sh: Handle Windows EOL.
41960         * tests/test-exclude2.sh: Likewise.
41961         * tests/test-exclude3.sh: Likewise.
41962         * tests/test-exclude4.sh: Likewise.
41963         * tests/test-exclude5.sh: Likewise.
41964         * tests/test-exclude6.sh: Likewise.
41965         * tests/test-exclude7.sh: Likewise.
41966
41967 2009-08-19  Akim Demaille  <demaille@gostai.com>
41968
41969         bootstrap: find sha1sum when named gsha1sum.
41970         * bootstrap (find_tool): New.
41971         ($SHA1SUM): New.
41972         Use it.
41973
41974 2009-08-20  Jim Meyering  <meyering@redhat.com>
41975
41976         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41977         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41978         expression that converts "." in a file name to "\." in the resulting
41979         regexp.  Start with a dummy statement, so that prior shell variable
41980         definitions are expanded portably.  Reported by Simon Josefsson.
41981
41982 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41983
41984         Fix polling for writeability of a screen buffer.
41985         * lib/poll.c: Distinguish input and screen buffers for the
41986         Win32 implementation.
41987         * lib/select.c: Likewise.
41988
41989 2009-08-19  Eric Blake  <ebb9@byu.net>
41990
41991         popen-safer: prevent popen from clobbering std descriptors
41992         * modules/popen-safer: New file.
41993         * lib/popen-safer.c: Likewise.
41994         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41995         * lib/stdio--.h (popen): Provide override.
41996         * lib/stdio-safer.h (popen_safer): Provide declaration.
41997         * tests/test-popen.c (includes): Partially test this.
41998         * modules/popen-safer-tests: New file, for more tests.
41999         * tests/test-popen-safer.c: Likewise.
42000         * MODULES.html.sh (file stream based Input/Output): Mention it.
42001
42002         tests: test some of the *-safer modules
42003         * modules/fopen-safer (Depends-on): Add fopen.
42004         * modules/fcntl-safer (Depends-on): Add fcntl.
42005         * modules/stdlib-safer (Depends-on): Add stdlib.
42006         (configure.ac): Set indicator.
42007         * modules/unistd-safer (configure.ac): Likewise.
42008         * modules/tmpfile-safer (configure.ac): Likewise.
42009         (Depends-on): Add tmpfile.
42010         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42011         active.
42012         * tests/test-fopen.c (includes): Test safer versions when they are
42013         in use.
42014         * tests/test-open.c (includes): Likewise.
42015
42016         popen: fix cygwin 1.5 bug when stdin closed
42017         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42018         * modules/popen: New file.
42019         * modules/popen-tests: Likewise.
42020         * tests/test-popen.c: Likewise.
42021         * m4/popen.m4: Likewise.
42022         * lib/popen.c: Likewise.
42023         * lib/stdio.in.h (popen): New declaration.
42024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42025         * modules/stdio (Makefile.am): Likewise.
42026         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42027
42028 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42029
42030         maint.mk: give full control over update-copyright exclusions
42031         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42032         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42033         (update-copyright): Don't force inclusion of top-level
42034         ChangeLog.  Don't force exclusion of all COPYING files, but make
42035         them the default exclusion instead.
42036
42037 2009-08-16  Bruno Haible  <bruno@clisp.org>
42038
42039         Fix test failures on Solaris 10.
42040         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42041         tests when Solaris iconv() is used.
42042         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42043         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42044         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42045         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42046         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42047
42048 2009-08-16  Bruno Haible  <bruno@clisp.org>
42049
42050         Fix test failures on Solaris 10.
42051         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42052         'tr' program and pass it as first argument.
42053         * tests/test-pipe-filter-gi1.sh: Likewise.
42054         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42055         program as first argument.
42056         * tests/test-pipe-filter-gi1.c (main): Likewise.
42057
42058 2009-08-16  Eric Blake  <ebb9@byu.net>
42059
42060         fpurge: fix previous commits
42061         * modules/fpurge (Makefile.am): Make replacement conditional,
42062         partially reverting 2007-04-29 change; missed in previous
42063         attempt.
42064         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42065         is missing.
42066
42067 2009-08-16  Bruno Haible  <bruno@clisp.org>
42068
42069         Clarify fpurge's effect on the file position.
42070         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42071         * tests/test-fpurge.c (main): Make a second pass for checking the file
42072         position.
42073
42074 2009-08-16  Bruno Haible  <bruno@clisp.org>
42075
42076         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42077         declaration of fpurge is missing.
42078         * tests/test-fpurge.c (main): Check that the file has not more contents
42079         than expected. Close the file before removing it.
42080
42081 2009-08-15  Eric Blake  <ebb9@byu.net>
42082
42083         fpurge: don't wrap working cygwin implementation
42084         * lib/fpurge.c (fpurge): Fix comment typo.
42085         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42086         1.7 to avoid replacement.
42087         * tests/test-fpurge.c (main): Enhance test.
42088
42089 2009-08-15  Eric Blake  <ebb9@byu.net>
42090         and Jim Meyering  <meyering@redhat.com>
42091
42092         test-update-copyright: skip if perl is insufficient
42093         * tests/test-update-copyright.sh: Failure to run maintainer tool
42094         should not cause testsuite failure on cygwin 1.5.
42095
42096 2009-08-14  Eric Blake  <ebb9@byu.net>
42097
42098         doc: mention more functions added in cygwin 1.7.0
42099         * doc/posix-headers/limits.texi (limits.h): Update for recent
42100         cygwin additions.
42101         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42102         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42103         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42104         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42105         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42106
42107 2009-08-14  Eric Blake  <ebb9@byu.net>
42108
42109         maint.mk: simplify update-copyright rule
42110         * top/maint.mk (update-copyright-local): Delete, and document how
42111         to do it in cfg.mk instead.
42112         (update-copyright-exclude-regexp): Delete, and document how to do
42113         it in .x-update-copyright instead.
42114         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42115         exclude ChangeLog.
42116
42117 2009-08-14  Bruno Haible  <bruno@clisp.org>
42118
42119         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42120
42121 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42122
42123         maint.mk: support update-copyright-env
42124         * top/maint.mk (update-copyright-env): Define place-holder.
42125         (update-copyright): Expand $(update-copyright-env) before
42126         invoking update-copyright.
42127
42128 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42129
42130         update-copyright: implement forced reformatting
42131         * build-aux/update-copyright: Implement and document
42132         UPDATE_COPYRIGHT_FORCE.
42133         * tests/test-update-copyright.sh: Test it.
42134
42135 2009-08-14  Eric Blake  <ebb9@byu.net>
42136         and Bruno Haible  <bruno@clisp.org>
42137
42138         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42139         * tests/test-locale.c: Revert previous patch related to NULL.
42140         * tests/test-stdio.c: Likewise.
42141         * tests/test-stdlib.c: Likewise.
42142         * tests/test-string.c: Likewise.
42143         * tests/test-unistd.c: Likewise.
42144         * modules/time-tests (Depends-on): Add verify.
42145         * modules/wchar-tests (Depends-on): Likewise.
42146         * tests/test-time.c: Test for NULL compliance.
42147         * tests/test-wchar.c: Likewise.
42148         * modules/locale (Depends-on): Add stddef.
42149         * modules/stdio (Depends-on): Likewise.
42150         * modules/stdlib (Depends-on): Likewise.
42151         * modules/string (Depends-on): Likewise.
42152         * modules/time (Depends-on): Likewise.
42153         * modules/unistd (Depends-on): Likewise.
42154         * modules/wchar (Depends-on): Likewise.
42155         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42156         * lib/stdlib.in.h (includes): Likewise.
42157         * lib/string.in.h (includes): Likewise.
42158         * lib/time.in.h (includes): Likewise.
42159         * lib/unistd.in.h (includes): Likewise.
42160         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42161         replaced.
42162         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42163         * m4/stddef_h.m4: New file.
42164         * modules/stddef: Likewise.
42165         * lib/stddef.in.h: Likewise.
42166         * modules/stddef-tests: Likewise.
42167         * tests/test-stddef.c: Likewise.
42168         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42169         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42170         * doc/posix-headers/locale.texi (locale.h): Likewise.
42171         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42172         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42173         * doc/posix-headers/string.texi (string.h): Likewise.
42174         * doc/posix-headers/time.texi (time.h): Likewise.
42175         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42176         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42177
42178 2009-08-14  Eric Blake  <ebb9@byu.net>
42179
42180         doc: improve git diff of texinfo files
42181         * .gitattributes: Add rule for *.texi files, with hint on how to
42182         use it.
42183         Copied from m4, and based on a report by Bruno Haible.
42184
42185 2009-08-14  Bruno Haible  <bruno@clisp.org>
42186
42187         Disable multithread support by default on Cygwin 1.5.x for real.
42188         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42189
42190 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42191
42192         update-copyright: much ado about intervals
42193         * build-aux/update-copyright: Implement and document
42194         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42195         of copyright year intervals.
42196         Also, document UPDATE_COPYRIGHT_YEAR.
42197         * tests/test-update-copyright.sh: Test it.
42198
42199         update-copyright: convert 2-digit to 4-digit years
42200         * build-aux/update-copyright: Implement and document.
42201         * tests/test-update-copyright.sh: Update.
42202
42203 2009-08-14  Jim Meyering  <meyering@redhat.com>
42204
42205         test-exclude: avoid coreutils "make check" failure
42206         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42207         just as in test-argmatch.c.
42208
42209 2009-08-13  Eric Blake  <ebb9@byu.net>
42210
42211         test-dup2: fix bad assumption
42212         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42213         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42214
42215         test-version-etc: fix CRLF portability issue
42216         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42217         recognize \r.
42218         * tests/test-argp-version-etc-1.sh: Likewise.
42219
42220         getopt: update client modules
42221         * modules/argp (Depends-on): Use getopt-gnu.
42222         * modules/git-merge-changelog (Depends-on): Likewise.
42223         * modules/long-options (Depends-on): Likewise.
42224         * modules/xstrtol (Depends-on): Likewise.
42225
42226 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42227
42228         * tests/test-version-etc.sh: Don't fail on different
42229         project/version.  Don't fail on CRLF differences.  Rewrite to use
42230         multiple -e instead of multiple sed forks, suggested by Eric Blake
42231         <ebb9@byu.net>.
42232         * tests/test-argp-version-etc-1.sh: Likewise.
42233
42234 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42235
42236         * tests/test-version-etc.sh: Don't fail on different
42237         project/version.
42238
42239 2009-08-12  Bruno Haible  <bruno@clisp.org>
42240
42241         Tests for modules 'getopt-posix', 'getopt-gnu'.
42242         * modules/getopt-posix-tests: New file.
42243         * tests/test-getopt.c: New file.
42244         * tests/test-getopt.h: New file.
42245         * tests/test-getopt_long.h: New file.
42246
42247         New modules 'getopt-posix', 'getopt-gnu'.
42248         * modules/getopt-gnu: New file, renamed from modules/getopt.
42249         * modules/getopt-posix: New file.
42250         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42251         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42252         (gl_GETOPT): Remove macro.
42253         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42254         Disable the test against BSD systems that declare optreset. Test
42255         against mingw bug. Test against lack of support of optional arguments
42256         on many platforms.
42257         * doc/glibc-headers/getopt.texi: Update module name and list of
42258         relevant platforms.
42259         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42260         'getopt-gnu' and more portability problems.
42261         * NEWS: Mention the changes.
42262
42263 2009-08-12  Bruno Haible  <bruno@clisp.org>
42264
42265         Ensure that optarg etc. get declared by <unistd.h>.
42266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42267         AC_USE_SYSTEM_EXTENSIONS.
42268         * modules/getopt (Depends-on): Add 'extensions'.
42269
42270 2009-08-12  Bruno Haible  <bruno@clisp.org>
42271
42272         Avoid test link errors.
42273         * modules/pipe-filter-ii-tests (Makefile.am): Define
42274         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42275         * modules/pipe-filter-gi-tests (Makefile.am): Define
42276         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42278
42279 2009-08-12  Bruno Haible  <bruno@clisp.org>
42280
42281         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42282         gl_GETOPT_SUBSTITUTE before.
42283         (gl_GETOPT): Use it.
42284         * m4/argp.m4 (gl_ARGP): Update.
42285         Reported by Sergey Poznyakoff.
42286
42287         * m4/getopt.m4: Reorder macros.
42288         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42289         (gl_GETOPT_SUBSTITUTE): Remove macro.
42290
42291 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42292
42293         Minor improvement in gitlog-to-changelog
42294
42295         * build-aux/gitlog-to-changelog: New option `--format' makes
42296         output format string configurable.
42297
42298 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42299
42300         Optimize exclude: use hash tables for non-wildcard patterns.
42301
42302         * lib/exclude.c: Include hash.h and mbuiter.h
42303         (struct exclude_pattern, exclude_segment): New data types.
42304         (struct exclude): Rewrite.
42305         (fnmatch_pattern_has_wildcards): New function.
42306         (new_exclude_segment, free_exclude_segment): New functions.
42307         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42308         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42309         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42310         * modules/exclude: Depend on hash and mbuiter.
42311
42312         * modules/exclude-tests: New file.
42313         * tests/test-exclude.c: New file.
42314         * tests/test-exclude1.sh: New file.
42315         * tests/test-exclude2.sh: New file.
42316         * tests/test-exclude3.sh: New file.
42317         * tests/test-exclude4.sh: New file.
42318         * tests/test-exclude5.sh: New file.
42319         * tests/test-exclude6.sh: New file.
42320         * tests/test-exclude7.sh: New file.
42321
42322 2009-08-12  Bruno Haible  <bruno@clisp.org>
42323
42324         Ensure that getopt() gets declared by <unistd.h>.
42325         * lib/unistd.in.h: Conditionally include getopt.h.
42326         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42327         Set GNULIB_UNISTD_H_GETOPT.
42328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42329         GNULIB_UNISTD_H_GETOPT.
42330         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42331
42332 2009-08-12  Bruno Haible  <bruno@clisp.org>
42333
42334         Clarify logic.
42335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42336         gl_replace_getopt instead of GETOPT_H.
42337
42338 2009-08-12  Bruno Haible  <bruno@clisp.org>
42339
42340         * m4/getopt.m4: Add comments.
42341
42342 2009-08-12  Bruno Haible  <bruno@clisp.org>
42343
42344         Disable multithread support by default on Cygwin 1.5.x.
42345         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42346         set gl_use_threads=no if not specified otherwise.
42347
42348 2009-08-11  Bruno Haible  <bruno@clisp.org>
42349
42350         Avoid compilation error on NetBSD 5.0.
42351         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42352         * tests/test-stdio.c: Likewise.
42353         * tests/test-stdlib.c: Likewise.
42354         * tests/test-string.c: Likewise.
42355         * tests/test-unistd.c: Likewise.
42356         Reported by Greg Troxel <gdt@ir.bbn.com>
42357         at <https://savannah.gnu.org/support/?106973>.
42358
42359 2009-08-11  Bruno Haible  <bruno@clisp.org>
42360
42361         * modules/dup2-tests (Depends-on): Remove close.
42362
42363         Undo 2009-07-19 commit.
42364         * modules/acl-tests (Depends-on): Remove close.
42365         * modules/binary-io-tests (Depends-on): Likewise.
42366         * modules/closein-tests (Depends-on): Likewise.
42367         * modules/flock-tests (Depends-on): Likewise.
42368         * modules/fsync-tests (Depends-on): Likewise.
42369         * modules/lseek-tests (Depends-on): Likewise.
42370         * modules/pipe-tests (Depends-on): Likewise.
42371         * modules/posix_spawn-tests (Depends-on): Likewise.
42372         * modules/posix_spawnp-tests (Depends-on): Likewise.
42373         * modules/stat-time-tests (Depends-on): Likewise.
42374         * modules/yesno-tests (Depends-on): Likewise.
42375
42376 2009-08-10  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42379
42380 2009-08-10  Bruno Haible  <bruno@clisp.org>
42381
42382         Fix a gcc warning.
42383         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42384
42385 2009-08-10  Bruno Haible  <bruno@clisp.org>
42386
42387         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42388         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42389         not only the first time.
42390         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42391         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42392         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42393         is 1, not only the the first time.
42394
42395 2009-08-10  Bruno Haible  <bruno@clisp.org>
42396
42397         Make it possible to use module 'gethostname' without module 'close'.
42398         * lib/unistd.in.h (close): Evoke a link error only if
42399         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42401         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42402         * modules/unistd (Makefile.am): Substitute
42403         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42404         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42405         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42406         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42407         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42408         * modules/sys_ioctl (Makefile.am): Substitute
42409         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42410         * modules/socket (configure.ac): On native Windows, set
42411         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42412         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42413         Reported by Sam Steingold <sds@gnu.org>.
42414
42415 2009-08-10  Bruno Haible  <bruno@clisp.org>
42416
42417         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42418         * modules/ioctl (configure.ac): Likewise.
42419
42420 2009-08-10  Bruno Haible  <bruno@clisp.org>
42421
42422         Avoid collision between gnulib wrapper and libintl wrapper.
42423         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42424         already defined in intl/printf.c.
42425         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42426         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42427
42428 2009-08-09  Bruno Haible  <bruno@clisp.org>
42429
42430         Make <sys/select.h> really self-contained, also on Solaris 10.
42431         * lib/sys_select.in.h: Include <string.h>.
42432         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42433         Solaris 10 problem.
42434         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42435         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42436         Reported by Jim Meyering.
42437
42438 2009-08-09  Bruno Haible  <bruno@clisp.org>
42439
42440         Avoid warnings from 'aclocal' that are due to a use of macro name
42441         AM_XGETTEXT_OPTION that is not defined in automake.
42442         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42443         automake.
42444         * modules/error (configure.ac): Likewise.
42445         * modules/propername (configure.ac): Likewise.
42446         * modules/vasprintf (configure.ac): Likewise.
42447         * modules/verror (configure.ac): Likewise.
42448         * modules/xprintf (configure.ac): Likewise.
42449         * modules/xvasprintf (configure.ac): Likewise.
42450
42451 2009-08-08  Bruno Haible  <bruno@clisp.org>
42452
42453         Avoid compilation error in C++ mode.
42454         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42455         Reported by Sam Steingold <sds@gnu.org>.
42456
42457 2009-08-08  Bruno Haible  <bruno@clisp.org>
42458
42459         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42460         for the various Unix platforms.
42461         * doc/posix-headers/limits.texi: Update platforms list regarding
42462         HOST_NAME_MAX.
42463         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42464
42465 2009-08-07  Jim Meyering  <meyering@redhat.com>
42466
42467         selinux-at: fix typo in a comment
42468         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42469         Spotted by Paolo Bonzini.
42470
42471         selinux-at: remove redundant m4 code, add documentation
42472         * modules/selinux-at (configure.ac): Remove redundant code.
42473         LIB_SELINUX is already set via the dependent module, selinux-h.
42474         (Include): Add quotes around selinux-at.h.
42475         * lib/selinux-at.h: Add documentation.
42476         Reported by Bruno Haible in
42477         http://marc.info/?l=gnulib-bug&m=124958988300749
42478
42479 2009-08-07  Bruno Haible  <bruno@clisp.org>
42480
42481         Avoid link error on MacOS X 10.3 and 10.4.
42482         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42483         on non-ELF systems.
42484         * lib/argp-pv.c (argp_program_version): Likewise.
42485         Reported by Simon Josefsson.
42486
42487 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42488
42489         * tests/test-version-etc.sh: Use $EXEEXT.
42490
42491 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42492
42493         update-copyright: update documentation to point to maint.mk
42494         * build-aux/update-copyright: Here.
42495
42496 2009-08-06  Jim Meyering  <meyering@redhat.com>
42497
42498         maint.mk: support update-copyright-local
42499         * top/maint.mk (update-copyright-local): Define place-holder.
42500         (update-copyright): Depend on $(update-copyright-local).
42501
42502 2009-08-06  Jim Meyering  <meyering@redhat.com>
42503
42504         selinux-at: new module
42505         Initially written for coreutils, this module will soon be
42506         used by findutils, too.
42507         * MODULES.html.sh [Misc]: Add selinux-at.
42508         * lib/selinux-at.h: New file, from coreutils.
42509         * lib/selinux-at.c: Likewise.
42510         * modules/selinux-at: Likewise.
42511         (License): Change from LGPL to GPL, since it depends
42512         on the GPL'd openat module.
42513
42514         doc: update README
42515         * README: Remove references to cogito.
42516         Remove cvs-repo-updating instructions from 2007.
42517         Don't imply that CVS is better if you have limited disk space.
42518
42519 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42520
42521         update-copyright: support C-style comments
42522         * build-aux/update-copyright: Implement and document.
42523         * tests/test-update-copyright.sh: Test.
42524
42525 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42526
42527         update-copyright: support omitted "(C)"
42528         * build-aux/update-copyright: Implement and document.  Also,
42529         allow variable whitespace before "(C)".
42530         * tests/test-update-copyright.sh: Test.
42531
42532 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42533
42534         update-copyright: don't trip on non-FSF copyright statements
42535         * build-aux/update-copyright: Fix so that the first correctly
42536         formatted FSF copyright statement is recognized no matter what
42537         appears before it.  Update documentation.
42538         * tests/test-update-copyright.sh: Test that.
42539
42540 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42541
42542         update-copyright: clean up code a little
42543         * build-aux/update-copyright: Append "_re" to the name of any
42544         variable holding a regular expression.
42545         Replace "old" and "new" with "stmt" in variable names.
42546         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42547         handled correctly.
42548         Format code more consistently.
42549
42550 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42551
42552         update-copyright-tests: improve portability
42553         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42554         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42555
42556 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42557
42558         update-copyright: support @copyright{} and &copy;
42559         * build-aux/update-copyright: Implement and document.
42560         * tests/test-update-copyright.sh: Test.
42561
42562 2009-08-04  Jim Meyering  <meyering@redhat.com>
42563
42564         update-copyright-tests: correctly test EOL=\r\n handling
42565         * tests/test-update-copyright.sh: Put \r at the end of some lines
42566         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42567
42568         maint.mk: make update-copyright exclusion list more configurable
42569         * top/maint.mk (update-copyright): Default to excluding COPYING,
42570         but allow an override, in case someone does want to update that file.
42571
42572         maint.mk: don't update copyright date in COPYING
42573         * top/maint.mk (update-copyright): Exclude COPYING.
42574
42575         maint.mk: add a copyright-updating rule
42576         * top/maint.mk (update-copyright): New rule.
42577         Derived from coreutils/Makefile.am.
42578
42579         update-copyright: rename some variables
42580         * build-aux/update-copyright: Rename a few variables for clarity.
42581         Tweak syntax.  List Joel E. Denny as coauthor.
42582
42583 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42584
42585         update-copyright: fix bug for 2-digit last year and add tests
42586         * build-aux/update-copyright: Fix bug.
42587         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42588         specified.
42589         * modules/update-copyright-tests: New
42590         * tests/test-update-copyright.sh: New.
42591
42592 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42593
42594         update-copyright: handle leading tabs in line prefix
42595         * build-aux/update-copyright: Count leading tabs as 8 spaces
42596         when computing margin.  This helps with the formatting of
42597         ChangeLogs, for example.
42598         Fix documentation a little.
42599
42600 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42601
42602         update-copyright: support EOL=\r\n
42603         * build-aux/update-copyright: Implement that.
42604
42605 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42606
42607         update-copyright: automatically format copyright statements
42608         * build-aux/update-copyright: Implement that.
42609         Also, be a little more predictable and safer by always failing
42610         when the full copyright format is not perfectly recognized as an
42611         unbroken whole.  Discussed at
42612         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42613         Rewrite documentation.
42614
42615 2009-08-03  Bruno Haible  <bruno@clisp.org>
42616
42617         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42618
42619 2009-08-02  Bruno Haible  <bruno@clisp.org>
42620
42621         Tests for module 'uname'.
42622         * modules/uname-tests: New file.
42623         * tests/test-uname.c: New file.
42624
42625         New module 'uname'.
42626         * lib/uname.c: New file.
42627         * m4/uname.m4: New file.
42628         * modules/uname: New file.
42629         * doc/posix-functions/uname.texi: Mention the new module.
42630
42631 2009-08-02  Bruno Haible  <bruno@clisp.org>
42632
42633         Tests for module 'sys_utsname'.
42634         * modules/sys_utsname-tests: New file.
42635         * tests/test-sys_utsname.c: New file.
42636
42637         New module 'sys_utsname'.
42638         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42639         * m4/sys_utsname_h.m4: New file.
42640         * modules/sys_utsname: New file.
42641         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42642
42643 2009-08-02  Bruno Haible  <bruno@clisp.org>
42644
42645         Implicitly initialize the sockets library.
42646         * lib/gethostname.c: Include sockets.h.
42647         (rpl_gethostname): Invoke gl_sockets_startup.
42648         * lib/socket.c: Include sockets.h.
42649         (rpl_socket): Invoke gl_sockets_startup.
42650         * modules/gethostname (Depends-on): Add sockets.
42651         * modules/socket (Depends-on): Likewise.
42652         * tests/test-poll.c: Don't include sockets.h.
42653         (main): Don't invoke gl_sockets_startup.
42654         * tests/test-select.c: Don't include sockets.h.
42655         (main): Don't invoke gl_sockets_startup.
42656
42657 2009-08-02  Bruno Haible  <bruno@clisp.org>
42658
42659         Allow multiple calls to gl_sockets_startup.
42660         * lib/sockets.c (initialized_sockets_version): New variable.
42661         (gl_sockets_startup): Do nothing if already called for this or a higher
42662         version.
42663         (gl_sockets_cleanup): Reset initialized_sockets_version.
42664
42665 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42666
42667         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42668         different project/version.
42669
42670 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42671             Bruno Haible  <bruno@clisp.org>
42672
42673         Tests for module 'pipe-filter-gi'.
42674         * modules/pipe-filter-gi-tests: New file.
42675         * tests/test-pipe-filter-gi1.sh: New file.
42676         * tests/test-pipe-filter-gi1.c: New file.
42677         * tests/test-pipe-filter-gi2.sh: New file.
42678         * tests/test-pipe-filter-gi2-main.c: New file.
42679         * tests/test-pipe-filter-gi2-child.c: New file.
42680
42681         New module 'pipe-filter-gi'.
42682         * lib/pipe-filter-gi.c: New file.
42683         * modules/pipe-filter-gi: New file.
42684
42685 2009-08-02  Bruno Haible  <bruno@clisp.org>
42686             Paolo Bonzini  <bonzini@gnu.org>
42687
42688         Tests for module 'pipe-filter-ii'.
42689         * modules/pipe-filter-ii-tests: New file.
42690         * tests/test-pipe-filter-ii1.sh: New file.
42691         * tests/test-pipe-filter-ii1.c: New file.
42692         * tests/test-pipe-filter-ii2.sh: New file.
42693         * tests/test-pipe-filter-ii2-main.c: New file.
42694         * tests/test-pipe-filter-ii2-child.c: New file.
42695
42696         New module 'pipe-filter-ii'.
42697         * lib/pipe-filter.h: New file.
42698         * lib/pipe-filter-ii.c: New file.
42699         * lib/pipe-filter-aux.h: New file.
42700         * modules/pipe-filter-ii: New file.
42701
42702 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42703
42704         * lib/gc-libgcrypt.c: Change copyright to FSF.
42705         * lib/gc-gnulib.c: Likewise.
42706
42707 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42708
42709         * lib/gethostname.c: Include limits.h.
42710
42711 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42712             Bruno Haible  <bruno@clisp.org>
42713
42714         Ensure HOST_NAME_MAX as part of the gethostname module.
42715         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42716         define also HOST_NAME_MAX.
42717         * tests/test-gethostname.c: Include <limits.h>.
42718         (main): Check also HOST_NAME_MAX.
42719         * doc/posix-headers/limits.texi: Document the mingw problem.
42720
42721 2009-08-02  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42724         Add comments.
42725
42726 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42727
42728         * lib/gethostname.c: Add Windows wrapper.
42729         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42730         * modules/gethostname: Depend on sys_socket & errno, for also
42731         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42732         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42733
42734 2009-07-31  Jim Meyering  <meyering@redhat.com>
42735
42736         getloadavg: fix symbol name in comment
42737         * lib/getloadavg.c: Correct a typo I introduced when adding
42738         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42739         Matt Kraai spotted the problem.
42740
42741 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42742
42743         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42744         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42745         code also if ! defined N_NAME_POINTER.
42746         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42747         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42748         but the n_name member is a 12-byte array.
42749
42750 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42751
42752         update-copyright: generalize comment handling
42753         * build-aux/update-copyright: Handle copyright statements
42754         within more comment styles.
42755         Document usage.
42756         Report any file with an external copyright holder or parse failure.
42757
42758 2009-07-29  Jim Meyering  <meyering@redhat.com>
42759
42760         mktime: correct setting of REPLACE_MKTIME
42761         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42762
42763         update-copyright: new module
42764         * modules/update-copyright: New file.
42765         * build-aux/update-copyright: New file.
42766         * MODULES.html.sh (maint+release support): Add update-copyright.
42767
42768 2009-07-27  Bruno Haible  <bruno@clisp.org>
42769
42770         Fix compilation error when <ctime> is used and mktime is replaced.
42771         * lib/time.in.h (mktime): New declaration.
42772         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42773         REPLACE_MKTIME instead of defining mktime in config.h.
42774         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42775         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42776         Reported by Ross McFarland <rwmcfa1@neces.com>.
42777
42778 2009-07-27  Bruno Haible  <bruno@clisp.org>
42779
42780         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42781         Reported by Matt Kraai <mkraai@beckman.com>.
42782
42783 2009-07-25  Jim Meyering  <meyering@redhat.com>
42784
42785         maint.mk: avoid warnings about missing files
42786         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42787         diagnostic when .prev-version does not exist.
42788         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42789         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42790         nonexistent cfg.mk.
42791         Suggestions from Simon Josefsson.
42792
42793 2009-07-25  Bruno Haible  <bruno@clisp.org>
42794
42795         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42796         defined as macros. Needed on QNX 6.4.1.
42797         Reported by Matt Kraai <mkraai@beckman.com>.
42798
42799 2009-07-23  Jim Meyering  <meyering@redhat.com>
42800
42801         maint.mk: invoke "make dist" with a working value of XZ_OPT
42802         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42803
42804 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42805
42806         Make fseeko.c compile on QNX.
42807         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42808
42809 2009-07-22  Peter Simons  <simons@cryp.to>
42810
42811         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42812         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42813         * lib/md4.h: Likewise.
42814         * lib/md5.h: Likewise.
42815         * lib/sha1.h: Likewise.
42816         * lib/sha256.h: Likewise.
42817         * lib/sha512.h: Likewise.
42818
42819         tests-sha1: don't assign literal string to 'char *' variable
42820         * tests/test-sha1.c (main): Declare locals with "const" to match
42821         attributes of the right hand side.
42822
42823 2009-07-21  Eric Blake  <ebb9@byu.net>
42824
42825         dup2: fix more mingw problems
42826         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42827         fd to itself.
42828         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42829         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42830         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42831         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42832         care of mingw bugs.
42833
42834 2009-07-21  Jim Meyering  <meyering@redhat.com>
42835
42836         vc-list-files: avoid failure when /bin/sh is dash
42837         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42838         On some Debian based systems, /bin/sh is a symlink to dash, and running
42839         this command would omit the "/" following each 'tests' prefix:
42840           dash -x build-aux/vc-list-files -C . tests
42841         That is because bash and dash work differently:
42842           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42843           bash ok
42844           dash odd
42845
42846 2009-07-21  Eric Blake  <ebb9@byu.net>
42847
42848         dup2-tests: test previous patch
42849         * modules/dup2-tests: New file.
42850         * tests/test-dup2.c: Likewise.
42851         * tests/test-open.c (main): Avoid unspecified behavior.
42852         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42853         test.
42854
42855         dup2: work around mingw and cygwin 1.5 bug
42856         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42858         * modules/unistd (Makefile.am): Substitute it.
42859         * lib/unistd.in.h (dup2): Declare the replacement.
42860         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42861         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42862         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42863         * modules/execute (Depends-on): Add dup2.
42864         * modules/fseterr (Depends-on): Likewise.
42865         * modules/pipe (Depends-on): Likewise.
42866         * modules/posix_spawn-internal (Depends-on): Likewise.
42867
42868 2009-07-21  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/.gitattributes: New file.
42871
42872 2009-07-20  Bruno Haible  <bruno@clisp.org>
42873
42874         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42875         (main): Use it.
42876
42877 2009-07-20  Eric Blake  <ebb9@byu.net>
42878
42879         test-pipe: make a bit more robust.
42880         * tests/test-pipe.c (myerr): Allow error messages regardless of
42881         what we do to stderr.
42882         (test_pipe): Rearrange to avoid deadlock.
42883         (child_main): Try a larger read, to ensure we avoided deadlock.
42884         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42885         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42886         if misused.
42887
42888 2009-07-19  Jim Meyering  <meyering@redhat.com>
42889
42890         fts: avoid false-positive cycle-detection
42891         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42892         for each new command line argument.
42893
42894 2009-07-19  Bruno Haible  <bruno@clisp.org>
42895
42896         Fix build error on mingw with the modules sys_select and unistd.
42897         * modules/acl-tests (Depends-on): Add close.
42898         * modules/binary-io-tests (Depends-on): Likewise.
42899         * modules/closein-tests (Depends-on): Likewise.
42900         * modules/flock-tests (Depends-on): Likewise.
42901         * modules/fsync-tests (Depends-on): Likewise.
42902         * modules/lseek-tests (Depends-on): Likewise.
42903         * modules/pipe-tests (Depends-on): Likewise.
42904         * modules/posix_spawn-tests (Depends-on): Likewise.
42905         * modules/posix_spawnp-tests (Depends-on): Likewise.
42906         * modules/stat-time-tests (Depends-on): Likewise.
42907         * modules/yesno-tests (Depends-on): Likewise.
42908
42909 2009-07-19  Bruno Haible  <bruno@clisp.org>
42910
42911         Unify conditionals.
42912         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42913         macros, not at the compiler macros.
42914         * lib/pipe.c: Likewise.
42915         * lib/execute.c: Likewise.
42916         * lib/spawni.c: Likewise.
42917
42918 2009-07-19  Bruno Haible  <bruno@clisp.org>
42919
42920         Fix handling of closed stdin/stdout/stderr on mingw.
42921         * lib/w32spawn.h: Include unistd.h.
42922         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42923         file descriptor with O_NOINHERIT flag.
42924         (fd_safer_noinherit): New function, based on fd-safer.c.
42925         (dup_safer_noinherit): New function, based on dup-safer.c.
42926         (undup_safer_noinherit): New function.
42927         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42928         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42929         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42930         instead of fd_safer.
42931         * tests/test-pipe.c: Include <windows.h>.
42932         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42933         result.
42934
42935         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42936         from main.
42937         (test_pipe): Pass an extra argument for disambiguation.
42938         (main): Invoke parent_main or child_main.
42939
42940         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42941         consistently.
42942
42943 2009-07-18  Eric Blake  <ebb9@byu.net>
42944
42945         test-pipe: fix mingw build
42946         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42947
42948 2009-07-18  Bruno Haible  <bruno@clisp.org>
42949
42950         * modules/pipe-tests (Makefile.am): Fix typo.
42951
42952 2009-07-18  Eric Blake  <ebb9@byu.net>
42953
42954         error: fix mingw build
42955         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42956         Reported by Bruno Haible.
42957
42958         error: avoid undefined use of stdout
42959         * lib/error.c (error, error_at_line): Check that fd 1 is open
42960         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42961         is handling faults and the close_stdout module wants to report the
42962         detection of closed stdout as an error.
42963
42964 2009-07-17  Eric Blake  <ebb9@byu.net>
42965
42966         pipe: be robust in face of closed fds
42967         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42968         should cause child to misbehave.
42969         * modules/pipe-tests: New module.
42970         * tests/test-pipe.c: New file.
42971         * tests/test-pipe.sh: New file.
42972         Reported by Akim Demaille.
42973
42974 2009-07-14  Bruno Haible  <bruno@clisp.org>
42975
42976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42977         Reported by anonymous kc.
42978
42979 2009-07-07  Jim Meyering  <meyering@redhat.com>
42980
42981         maint.mk: don't look for translatable strings in *.m4 or *.mk
42982         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42983         when searching for translatable strings.
42984
42985 2009-07-05  Jim Meyering  <meyering@redhat.com>
42986
42987         remove superfluous parentheses in STREQ definition
42988         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42989         * lib/getugroups.c (STREQ): Likewise.
42990         * lib/fnmatch.c (STREQ): Likewise.
42991         Spotted by Bruno Haible.
42992
42993 2009-07-04  Jim Meyering  <meyering@redhat.com>
42994
42995         argv-iter: new module
42996         * MODULES.html.sh: Add argv-iter.
42997         * lib/argv-iter.c, lib/argv-iter.h: New files.
42998         * modules/argv-iter: New file.
42999         * modules/argv-iter-tests: New file.
43000         * tests/test-argv-iter.c: Test it.
43001
43002 2009-07-04  Bruno Haible  <bruno@clisp.org>
43003
43004         Fix assertion.
43005         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43006         contains more exact copies of a given entry than file2, leave the extra
43007         copies unpaired rather than aborting.
43008         Reported by Eric Blake.
43009
43010 2009-07-02  Bruno Haible  <bruno@clisp.org>
43011
43012         Speedup git-merge-changelog for git cherry-pick.
43013         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43014         (entries_mapping_get): New function, extracted from compute_mapping.
43015         (entries_mapping_reverse_get): New function.
43016         (compute_mapping): Add a 'full' argument. Return the result in a
43017         'struct entries_mapping'.
43018         (main): Update. Access the mappings through entries_mapping_get.
43019         Reported by Eric Blake.
43020
43021 2009-07-02  Bruno Haible  <bruno@clisp.org>
43022
43023         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43024         best_i.
43025
43026 2009-07-02  Bruno Haible  <bruno@clisp.org>
43027
43028         Speed up approximate search for matching ChangeLog entries.
43029         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43030         argument. Call fstrcmp_bounded instead of fstrcmp.
43031         (compute_mapping, try_split_merged_entry, main): Update callers.
43032
43033 2009-07-02  Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43036
43037 2009-06-30  Bruno Haible  <bruno@clisp.org>
43038
43039         Reduce the number of uc_is_cased calls.
43040         * lib/unicase.h (casing_suffix_context_t): Add
43041         'first_char_except_ignorable' field.
43042         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43043         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43044         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43045         Update initializer.
43046         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43047         case-ignorable characters.
43048         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43049         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43050         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43051         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43052         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43053
43054 2009-06-30  Bruno Haible  <bruno@clisp.org>
43055
43056         Tests for module 'unicase/ignorable'.
43057         * modules/unicase/ignorable-tests: New file.
43058         * tests/unicase/test-ignorable.c: New file, generated by
43059         gen-uni-tables.
43060
43061         Tests for module 'unicase/cased'.
43062         * modules/unicase/cased-tests: New file.
43063         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43064         * tests/unicase/test-predicate-part1.h: New file, derived from
43065         tests/unictype/test-predicate-part1.h.
43066         * tests/unicase/test-predicate-part2.h: New file, same as
43067         tests/unictype/test-predicate-part2.h.
43068
43069         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43070         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43071         (output_casing_properties): New function.
43072         (main): Call it.
43073         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43074         * lib/unicase/cased.c: Include unictype/bitmap.h.
43075         (uc_is_cased): Define through a bitmap lookup.
43076         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43077         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43078         (uc_is_case_ignorable): Define through a bitmap lookup.
43079         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43080         lib/unictype/bitmap.h.
43081         (Depends-on): Add inline. Clean up.
43082         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43083         lib/unictype/bitmap.h.
43084         (Depends-on): Add inline. Clean up.
43085         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43086         recognition.
43087         * tests/unicase/test-u16-tolower.c (main): Likewise.
43088         * tests/unicase/test-u32-tolower.c (main): Likewise.
43089
43090 2009-06-30  Bruno Haible  <bruno@clisp.org>
43091
43092         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43093         * lib/unicase/u16-casemap.c: Likewise.
43094         * lib/unicase/u32-casemap.c: Likewise.
43095
43096 2009-06-29  Bruno Haible  <bruno@clisp.org>
43097
43098         Define u32_casefold as a wrapper around u32_ct_casefold.
43099         * lib/unicase/u32-casefold.c: Update.
43100         * modules/unicase/u32-casefold (Depends-on): Add
43101         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43102         unicase/empty-suffix-context. Clean up.
43103
43104         Define u16_casefold as a wrapper around u16_ct_casefold.
43105         * lib/unicase/u16-casefold.c: Update.
43106         * modules/unicase/u16-casefold (Depends-on): Add
43107         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43108         unicase/empty-suffix-context. Clean up.
43109
43110         Define u8_casefold as a wrapper around u8_ct_casefold.
43111         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43112         * lib/unicase/u8-casefold.c: Update.
43113         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43114         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43115
43116         Define u32_totitle as a wrapper around u32_ct_totitle.
43117         * lib/unicase/u32-totitle.c: Update.
43118         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43119         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43120
43121         Define u16_totitle as a wrapper around u16_ct_totitle.
43122         * lib/unicase/u16-totitle.c: Update.
43123         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43124         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43125
43126         Define u8_totitle as a wrapper around u8_ct_totitle.
43127         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43128         functions.
43129         (FUNC): Delegate to U_CT_TOTITLE.
43130         * lib/unicase/u8-totitle.c: Update.
43131         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43132         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43133
43134         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43135         invocation.
43136         * modules/unicase/u32-tolower (Depends-on): Add
43137         unicase/empty-prefix-context, unicase/empty-suffix-context.
43138
43139         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43140         invocation.
43141         * modules/unicase/u16-tolower (Depends-on): Add
43142         unicase/empty-prefix-context, unicase/empty-suffix-context.
43143
43144         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43145         * modules/unicase/u8-tolower (Depends-on): Add
43146         unicase/empty-prefix-context, unicase/empty-suffix-context.
43147
43148         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43149         invocation.
43150         * modules/unicase/u32-toupper (Depends-on): Add
43151         unicase/empty-prefix-context, unicase/empty-suffix-context.
43152
43153         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43154         invocation.
43155         * modules/unicase/u16-toupper (Depends-on): Add
43156         unicase/empty-prefix-context, unicase/empty-suffix-context.
43157
43158         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43159         * modules/unicase/u8-toupper (Depends-on): Add
43160         unicase/empty-prefix-context, unicase/empty-suffix-context.
43161
43162         New module 'unicase/u32-ct-casefold'.
43163         * lib/unicase/u32-ct-casefold.c: New file.
43164         * modules/unicase/u32-ct-casefold: New file.
43165
43166         New module 'unicase/u16-ct-casefold'.
43167         * lib/unicase/u16-ct-casefold.c: New file.
43168         * modules/unicase/u16-ct-casefold: New file.
43169
43170         New module 'unicase/u8-ct-casefold'.
43171         * lib/unicase/u8-ct-casefold.c: New file.
43172         * lib/unicase/u-ct-casefold.h: New file, derived from
43173         lib/unicase/u-casefold.h.
43174         * modules/unicase/u8-ct-casefold: New file.
43175
43176         New module 'unicase/u32-ct-totitle'.
43177         * lib/unicase/u32-ct-totitle.c: New file.
43178         * modules/unicase/u32-ct-totitle: New file.
43179
43180         New module 'unicase/u16-ct-totitle'.
43181         * lib/unicase/u16-ct-totitle.c: New file.
43182         * modules/unicase/u16-ct-totitle: New file.
43183
43184         New module 'unicase/u8-ct-totitle'.
43185         * lib/unicase/u8-ct-totitle.c: New file.
43186         * lib/unicase/u-ct-totitle.h: New file, derived from
43187         lib/unicase/u-totitle.h.
43188         * modules/unicase/u8-ct-totitle: New file.
43189
43190         New module 'unicase/u32-ct-tolower'.
43191         * lib/unicase/u32-ct-tolower.c: New file.
43192         * modules/unicase/u32-ct-tolower: New file.
43193
43194         New module 'unicase/u16-ct-tolower'.
43195         * lib/unicase/u16-ct-tolower.c: New file.
43196         * modules/unicase/u16-ct-tolower: New file.
43197
43198         New module 'unicase/u8-ct-tolower'.
43199         * lib/unicase/u8-ct-tolower.c: New file.
43200         * modules/unicase/u8-ct-tolower: New file.
43201
43202         New module 'unicase/u32-ct-toupper'.
43203         * lib/unicase/u32-ct-toupper.c: New file.
43204         * modules/unicase/u32-ct-toupper: New file.
43205
43206         New module 'unicase/u16-ct-toupper'.
43207         * lib/unicase/u16-ct-toupper.c: New file.
43208         * modules/unicase/u16-ct-toupper: New file.
43209
43210         New module 'unicase/u8-ct-toupper'.
43211         * lib/unicase/u8-ct-toupper.c: New file.
43212         * modules/unicase/u8-ct-toupper: New file.
43213
43214         Add context arguments to u*_casemap functions.
43215         * lib/unicase/unicasemap.h: Include unicase.h.
43216         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43217         suffix_context arguments.
43218         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43219         functions.
43220         (FUNC): Add prefix_context and suffix_context arguments. Use
43221         uc_is_cased and uc_is_case_ignorable.
43222         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43223         * lib/unicase/u16-casemap.c: Likewise.
43224         * lib/unicase/u32-casemap.c: Likewise.
43225         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43226         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43227         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43228         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43229         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43230         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43231
43232         New module 'unicase/u32-suffix-context'.
43233         * lib/unicase/u32-suffix-context.c: New file.
43234         * modules/unicase/u32-suffix-context: New file.
43235
43236         New module 'unicase/u16-suffix-context'.
43237         * lib/unicase/u16-suffix-context.c: New file.
43238         * modules/unicase/u16-suffix-context: New file.
43239
43240         New module 'unicase/u8-suffix-context'.
43241         * lib/unicase/u8-suffix-context.c: New file.
43242         * lib/unicase/u-suffix-context.h: New file.
43243         * modules/unicase/u8-suffix-context: New file.
43244
43245         New module 'unicase/empty-suffix-context'.
43246         * lib/unicase/empty-suffix-context.c: New file.
43247         * modules/unicase/empty-suffix-context: New file.
43248
43249         New module 'unicase/u32-prefix-context'.
43250         * lib/unicase/u32-prefix-context.c: New file.
43251         * modules/unicase/u32-prefix-context: New file.
43252
43253         New module 'unicase/u16-prefix-context'.
43254         * lib/unicase/u16-prefix-context.c: New file.
43255         * modules/unicase/u16-prefix-context: New file.
43256
43257         New module 'unicase/u8-prefix-context'.
43258         * lib/unicase/u8-prefix-context.c: New file.
43259         * lib/unicase/u-prefix-context.h: New file.
43260         * lib/unicase/context.h: New file.
43261         * modules/unicase/u8-prefix-context: New file.
43262
43263         New module 'unicase/empty-prefix-context'.
43264         * lib/unicase/empty-prefix-context.c: New file.
43265         * modules/unicase/empty-prefix-context: New file.
43266
43267         New module 'unicase/ignorable'.
43268         * lib/unicase/ignorable.c: New file.
43269         * modules/unicase/ignorable: New file.
43270
43271         New module 'unicase/cased'.
43272         * lib/unicase/caseprop.h: New file.
43273         * lib/unicase/cased.c: New file.
43274         * modules/unicase/cased: New file.
43275
43276         New functions for case mapping of substrings.
43277         * lib/unicase.h (casing_prefix_context_t): New type.
43278         (unicase_empty_prefix_context): New variable.
43279         (u8_casing_prefix_context, u16_casing_prefix_context,
43280         u32_casing_prefix_context, u8_casing_prefixes_context,
43281         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43282         declarations.
43283         (casing_suffix_context_t): New type.
43284         (unicase_empty_suffix_context): New variable.
43285         (u8_casing_suffix_context, u16_casing_suffix_context,
43286         u32_casing_suffix_context, u8_casing_suffixes_context,
43287         u16_casing_suffixes_context, u32_casing_suffixes_context,
43288         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43289         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43290         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43291         declarations.
43292
43293 2009-06-28  Jim Meyering  <meyering@redhat.com>
43294
43295         boostrap: indent only with spaces
43296         * build-aux/bootstrap: Indent only with spaces, never TABs.
43297
43298         bootstrap: split long lines
43299         * build-aux/bootstrap: Keep line length < 80.
43300
43301         bootstrap: sync from coreutils
43302         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43303         just as autoreconf does.  Verify a list of prerequisite
43304         package-name,version-number pairs if defined in bootstrap.conf.
43305         Refer to README-prereq, if prerequisites are not satisfied.
43306
43307 2009-06-27  Eric Blake  <ebb9@byu.net>
43308
43309         tests: add test for bogus NULL definition
43310         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43311         * tests/test-stdlib.c: Likewise.
43312         * tests/test-string.c: Likewise.
43313         * tests/test-locale.c: Likewise.
43314         * tests/test-unistd.c: Likewise.
43315         * modules/stdio-tests (Depends-on): Add verify.
43316         * modules/stdlib-tests (Depends-on): Likewise.
43317         * modules/string-tests (Depends-on): Likewise.
43318         * modules/locale-tests (Depends-on): Likewise.
43319         * modules/unistd-tests (Depends-on): Likewise.
43320
43321 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43322
43323         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43324         self-explaining comment.
43325         * m4/selinux-selinux-h: Update serial.
43326         (gl_LIBSELINUX): New macro, adding a warning for missing development
43327         packages to code extracted from...
43328         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43329         Add warning for missing development packages here, too.
43330
43331 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43332
43333         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43334
43335 2009-06-25  Eric Blake  <ebb9@byu.net>
43336
43337         version-etc: fix regression
43338         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43339         gcc.
43340         (version_etc): Use it, to catch bugs with trailing NULL.
43341         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43342         (version_etc_va): Fix logic bug.
43343         * modules/version-etc-tests: Add test.
43344         * tests/test-version-etc.c: New file.
43345         * tests/test-version-etc.sh: Likewise.
43346
43347 2009-06-25  Sam Steingold  <sds@gnu.org>
43348
43349         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43350         mbtowc declaration.
43351
43352 2009-06-25  Eric Blake  <ebb9@byu.net>
43353
43354         fpurge: migrate into <stdio.h>
43355         * lib/fpurge.h: Delete...
43356         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43357         * lib/fpurge.c (fpurge): Change declaring header.
43358         * modules/fpurge (Files): Drop deleted file.
43359         (Depends-on): Add stdio.
43360         (configure.ac): Set witness.
43361         * modules/stdio (Makefile.am): Support fpurge macros.
43362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43363         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43364         * lib/fflush.c: Update client.
43365         * tests/test-fpurge.c: Likewise.
43366         * NEWS: Mention the change.
43367
43368 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43369
43370         * lib/argp-version-etc.c (program_authors): Add const
43371         qualifier.
43372         * lib/version-etc.c: Fix typos in the comments.
43373         * modules/argp-version-etc: Depends on version-etc.
43374
43375 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43376
43377         argp-version-etc: new module.
43378
43379         * lib/argp-version-etc.c: New file.
43380         * lib/argp-version-etc.h: New file.
43381         * modules/argp-version-etc: New file.
43382         * modules/argp-version-etc-tests: New file.
43383         * tests/test-argp-version-etc.c: New test.
43384         * tests/test-argp-version-etc-1.sh: New test.
43385
43386 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43387
43388         Provide additional interfaces and documentation for version-etc
43389         module.
43390
43391         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43392         interfaces.
43393         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43394         prototypes.
43395
43396 2009-06-24  Bruno Haible  <bruno@clisp.org>
43397
43398         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43399         HAVE_LIB${NAME} macro.
43400         Reported by Sam Steingold <sds@gnu.org>.
43401
43402 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43403
43404         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43405         needed.
43406
43407 2009-06-21  Bruno Haible  <bruno@clisp.org>
43408
43409         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43410         work.
43411         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43412         together with LIB${NAME}, LTLIB${NAME}.
43413         Reported by Sam Steingold <sds@gnu.org>.
43414
43415 2009-06-20  Jim Meyering  <meyering@redhat.com>
43416
43417         tests: make sc_require_test_exit_idiom more generic
43418         * top/maint.mk (Exit_witness_file): New overridable variable.
43419         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43420         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43421
43422 2009-06-19  Jim Meyering  <meyering@redhat.com>
43423
43424         hash: reverse order of src/dst parameters in an internal interface
43425         * lib/hash.c (transfer_entries): Reverse order of parameters to
43426         put DST before SRC.  Adjust callers.
43427
43428         tests: test-hash: avoid wholesale duplication
43429         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43430         Instead, use a loop and add a single conditional.
43431
43432         tests: test-hash: allow seed selection via a command line argument
43433         * tests/test-hash.c (get_seed): New function.
43434         (main): Use it.
43435
43436 2009-06-19  Eric Blake  <ebb9@byu.net>
43437
43438         hash: avoid memory leak on allocation failure
43439         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43440         failure.  Factor repeated algorithm...
43441         (transfer_entries): ...into new helper routine.
43442         (hash_delete): React to hash_rehash return value.
43443
43444         hash: reduce memory pressure in hash_rehash no-op case
43445         * lib/hash.c (next_prime): Avoid overflow.
43446         (hash_initialize): Factor bucket size computation...
43447         (compute_bucket_size): ...into new helper function.
43448         (hash_rehash): Use new function and open coding to reduce memory
43449         pressure, and avoid a memory leak in USE_OBSTACK code.
43450         Reported by Jim Meyering.
43451
43452 2009-06-18  Eric Blake  <ebb9@byu.net>
43453
43454         hash: make rotation more obvious
43455         * modules/hash (Depends-on): Add bitrotate and stdint.
43456         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43457         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43458         (SIZE_MAX): Rely on headers for definition.
43459         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43460         (raw_hasher): Use rotr_sz.
43461         Suggested by Jim Meyering.
43462
43463         hash: fix memory leak in last patch
43464         * lib/hash.c (hash_rehash): Avoid memory leak.
43465
43466         hash: avoid no-op rehashing
43467         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43468
43469         hash: provide default callback functions
43470         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43471         (hash_initialize): Use them as defaults.
43472         * tests/test-hash.c (main): Test this.
43473
43474         hash: minor optimization
43475         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43476         when possible.
43477         (hash_initialize): Document this promise.
43478         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43479         * tests/test-hash.c (hash_compare_strings): Test this.
43480
43481 2009-06-18  Bruno Haible  <bruno@clisp.org>
43482
43483         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43484         going to be replaced anyway.
43485
43486 2009-06-18  Bruno Haible  <bruno@clisp.org>
43487
43488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43489         in one place.
43490         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43491         be replaced anyway.
43492
43493 2009-06-18  Eric Blake  <ebb9@byu.net>
43494
43495         hash: check for resize before insertion
43496         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43497         threshold before insertion, so that a pathological hash_rehash
43498         that fills every bucket can still trigger another rehash.
43499
43500 2009-06-18  Jim Meyering  <meyering@redhat.com>
43501
43502         hash-tests: add a loop around the small tests
43503         * tests/test-hash.c (main): Repeat small tests with selected
43504         small initial table sizes.
43505
43506 2009-06-17  Eric Blake  <ebb9@byu.net>
43507
43508         hash: minor cleanups
43509         * lib/hash.h (hash_entry): Make opaque, by moving...
43510         * lib/hash.c (hash_entry): ...here.
43511         (hash_insert): Clarify restrictions on what can be inserted.
43512         (hash_get_next): Clarify when it is safe to remove an element
43513         during traversal.
43514         (check_tuning): Skip verification when tuning is known safe.
43515         (hash_initialize): Clarify restrictions on tuning.
43516
43517 2009-06-17  Jim Meyering  <jim@meyering.net>
43518         and Eric Blake  <ebb9@byu.net>
43519
43520         hash-tests: new module
43521         * modules/hash-tests: New file.
43522         * tests/test-hash.c: New file.
43523
43524 2009-06-17  Eric Blake  <ebb9@byu.net>
43525
43526         strstr-simple: document new module
43527         * MODULES.html.sh: Document new module.
43528
43529         strstr, strcasestr: replace on platforms with broken memchr
43530         * modules/strstr: Split into...
43531         * modules/strstr-simple: ...new module that does not care about
43532         performance, but does care about glibc bug.
43533         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43534         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43535         if platform memchr is broken, per Debian bug 521737.
43536         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43537         memchr.
43538         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43539         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43540         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43541         * modules/mountlist (Depends-on): Add strstr-simple.
43542         * modules/gen-uni-tables (Depends-on): Likewise.
43543         * modules/argz (Depends-on): Add strstr.
43544
43545 2009-06-17  Bruno Haible  <bruno@clisp.org>
43546
43547         * modules/posix_spawn-internal (Depends-on): Add errno.
43548
43549 2009-06-17  Bruno Haible  <bruno@clisp.org>
43550
43551         Define missing ESTALE on Interix 3.5.
43552         * lib/errno.in.h (ESTALE): Assign a value if missing.
43553         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43554         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43555         missing.
43556         * doc/posix-headers/errno.texi: Mention the Interix bug.
43557         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43558
43559 2009-06-15  Eric Blake  <ebb9@byu.net>
43560
43561         memchr, memchr2: add valgrind exception
43562         * lib/memchr.valgrind: New file.
43563         * lib/memchr2.valgrind: New file.
43564         * modules/memchr (Files): Distribute valgrind file.
43565         * modules/memchr2 (Files): Likewise.
43566
43567         docs: memchr is no longer obsolete
43568         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43569         * lib/string.in.h (memchr): Simplify logic.
43570
43571 2009-06-14  Jim Meyering  <meyering@redhat.com>
43572
43573         link-follow: fix the "checking..." message to not mention trailing slash
43574         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43575         never considered trailing slashes.
43576
43577 2009-06-14  Bruno Haible  <bruno@clisp.org>
43578
43579         * m4/memchr.m4: Mention also the bug on IA-64.
43580         * doc/posix-functions/memchr.texi: Likewise.
43581
43582 2009-06-12  Eric Blake  <ebb9@byu.net>
43583
43584         memchr: detect broken x86_64 and alpha implementations
43585         * modules/memchr-tests (Depends-on): Move mmap detection...
43586         * modules/memchr (Depends-on): ...here.
43587         (configure.ac): Set indicator.
43588         * lib/string.in.h (memchr): Declare replacement.
43589         * modules/string (Makefile.am): Trigger replacement.
43590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43591         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43592         bugs.
43593         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43594         * modules/getpagesize (License): Relax license.
43595
43596 2009-06-11  Bruno Haible  <bruno@clisp.org>
43597
43598         * lib/idpriv.h: Add more references.
43599
43600 2009-06-08  Bruno Haible  <bruno@clisp.org>
43601
43602         Tests for module 'idpriv-droptemp'.
43603         * modules/idpriv-droptemp-tests: New file.
43604         * tests/test-idpriv-droptemp.sh: New file.
43605         * tests/test-idpriv-droptemp.su.sh: New file.
43606         * tests/test-idpriv-droptemp.c: New file.
43607
43608         New module 'idpriv-droptemp'.
43609         * lib/idpriv-droptemp.c: New file.
43610         * modules/idpriv-droptemp: New file.
43611
43612 2009-06-08  Bruno Haible  <bruno@clisp.org>
43613
43614         Tests for module 'idpriv-drop'.
43615         * modules/idpriv-drop-tests: New file.
43616         * tests/test-idpriv-drop.sh: New file.
43617         * tests/test-idpriv-drop.su.sh: New file.
43618         * tests/test-idpriv-drop.c: New file.
43619
43620         New module 'idpriv-drop'.
43621         * lib/idpriv.h: New file.
43622         * lib-idpriv-drop.c: New file.
43623         * m4/idpriv.m4: New file.
43624         * modules/idpriv-drop: New file.
43625
43626 2009-06-08  Bruno Haible  <bruno@clisp.org>
43627
43628         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43629         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43630         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43631         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43632         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43635
43636 2009-06-08  Eric Blake  <ebb9@byu.net>
43637
43638         test-strstr: use memory fence, when possible
43639         * tests/test-strstr.c (main): Use memory fence, in order to be
43640         more likely to trigger Debian bug 521737.
43641         * modules/strstr-tests (Files): Pull in additional files.
43642
43643         memchr: no longer obsolete, for wider field testing
43644         * modules/memchr (Status, Notice): Delete, this module is no
43645         longer obsolete.
43646         * modules/vasnprintf (Depends-on): Add memchr.
43647
43648 2009-06-07  Jim Meyering  <meyering@redhat.com>
43649
43650         hash: declare some functions with the warn_unused_result attribute
43651         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43652
43653 2009-06-07  Bruno Haible  <bruno@clisp.org>
43654
43655         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43656         Reported by Eric Blake.
43657
43658 2009-06-06  Eric Blake  <ebb9@byu.net>
43659
43660         test-alignof: fix typo with long double
43661         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43662         compiler error.
43663
43664 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43665
43666         Escape non-texinfo { and }s.
43667         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43668         markup error.
43669
43670 2009-06-04  Jim Meyering  <meyering@redhat.com>
43671
43672         gitlog-to-changelog: don't infloop on an empty commit log
43673         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43674         Reported by Boris Petersen <transacid@centerim.org>.
43675
43676 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43677
43678         version-etc: extend for packagers
43679         Add three new configure options, intended for packagers:
43680           --with-packager="packager name"
43681           --with-packager-version="packager-specific version"
43682           --with-packager-bug-reports="packager bug reporting"
43683         An example with coreutils:
43684           $ ./configure \
43685             --with-packager=Gentoo \
43686             --with-packager-bug-report=http://bugs.gentoo.org/ \
43687             --with-packager-version="patchset 1.6"
43688           $ ./src/ls --version | head -n2
43689           ls (GNU coreutils) 7.1-dirty
43690           Packaged by Gentoo (patchset 1.6)
43691         Note that the bug reporting info via --help doesn't show up because
43692         coreutils uses its own custom emit_bug_reporting_address() implementation
43693         in src/system.h.  If it didn't, it'd look like:
43694           $ ./src/ls --help | tail -n4
43695           Report bugs to <bug-coreutils@gnu.org>.
43696           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43697           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43698           General help using GNU software: <http://www.gnu.org/gethelp/>.
43699         * lib/version-etc.c: Print new information, if provided.
43700         * m4/version-etc.m4: New file.
43701         * modules/version-etc (Files): Add m4/version-etc.m4.
43702         (configure.ac): Add gl_VERSION_ETC.
43703
43704 2009-05-31  Bruno Haible  <bruno@clisp.org>
43705
43706         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43707         and 'int64_t'.
43708         * modules/alignof-tests (Dependencies): Add stdint.
43709         Reported by Eric Blake.
43710
43711 2009-05-31  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43714         restriction due to compiler bugs.
43715         Reported by Eric Blake.
43716
43717 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43718             Bruno Haible  <bruno@clisp.org>
43719
43720         Fix test-alignof failure.
43721         * lib/alignof.h (alignof_slot): New macro.
43722         (alignof_type): New macro, with the same semantics as the previous
43723         'alignof'.
43724         (alignof): Alias to alignof_slot.
43725         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43726         check that the results are usable as constant expressions.
43727
43728 2009-05-31  Bruno Haible  <bruno@clisp.org>
43729
43730         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43731         * tests/test-memchr.c (main): Check that memchr does not read past the
43732         first occurrence of the byte.
43733         * tests/test-strstr.c (main): Update comment.
43734         Suggested by Eric Blake.
43735
43736 2009-05-30  Bruno Haible  <bruno@clisp.org>
43737
43738         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43739         detail how to use dumpbin.
43740         Reported by David Byron <dbyron@dbyron.com>.
43741
43742 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43743
43744         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43745
43746 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43747
43748         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43749
43750 2009-05-28  Bruno Haible  <bruno@clisp.org>
43751
43752         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43753         build-aux/ files.
43754
43755 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43756
43757         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43758
43759 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43760
43761         * gnulib-tool (sed_transform_main_lib_file)
43762         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43763         regexps.
43764
43765 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43766
43767         * tests/test-strstr.c: Add another self-test.
43768         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43769         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43770
43771 2009-05-23  Bruno Haible  <bruno@clisp.org>
43772
43773         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43774         change.
43775
43776 2009-05-21  Bruno Haible  <bruno@clisp.org>
43777
43778         Simplify use of mode_t varargs.
43779         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43780         uses 'mode_t' or 'int'.
43781         * lib/openat.c (openat): Likewise.
43782         * lib/open-safer.c (open_safer): Likewise.
43783         * m4/mode_t.m4: New file.
43784         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43785         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43787         * modules/open (Files): Add m4/mode_t.m4.
43788         * modules/openat (Files): Likewise.
43789         * modules/fcntl-safer (Files): Likewise.
43790         Suggested by Eric Blake.
43791
43792 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43793
43794         * doc/glibc-functions/fallocate.texi: New file.
43795         * doc/gnulib.texi: Include it.
43796
43797 2009-05-21  Eric Blake  <ebb9@byu.net>
43798             Bruno Haible  <bruno@clisp.org>
43799
43800         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43801         invocations.
43802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43803
43804 2009-05-21  Eric Blake  <ebb9@byu.net>
43805             Bruno Haible  <bruno@clisp.org>
43806
43807         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43808         include_next. Fix of 2008-11-20 commit.
43809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43810         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43811         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43812         NEXT_MATH_H.
43813         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43814         instead of NEXT_MATH_H.
43815
43816 2009-05-21  Bruno Haible  <bruno@clisp.org>
43817
43818         Avoid redefinition warnings for SIZE_MAX.
43819         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43820         Reported by Simon Josefsson.
43821
43822 2009-05-21  Bruno Haible  <bruno@clisp.org>
43823
43824         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43825         AC_CACHE_VAL.
43826
43827 2009-05-20  Bruno Haible  <bruno@clisp.org>
43828
43829         Make zeroptr.h work on mingw.
43830         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43831         mprotect.
43832         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43833         * modules/memchr2-tests (configure.ac): Likewise.
43834         * modules/memcmp-tests (configure.ac): Likewise.
43835         * modules/memmem-tests (configure.ac): Likewise.
43836         * modules/memrchr-tests (configure.ac): Likewise.
43837         Reported by Simon Josefsson.
43838
43839 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43840
43841         * tests/test-glob.c: Include string.h for strcmp prototype.
43842
43843 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43844
43845         * modules/getdelim (Depends-on): Add explicit stdint, although it
43846         was implicitly already pulled in via realloc-posix.
43847         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43848
43849 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43850
43851         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43852         G. Christensen" <tgc@jupiterrise.com>.
43853         * m4/sys_socket_h.m4: Check for sa_family_t.
43854         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43855         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43856         * tests/test-sys_socket.c: Check that sa_family_t works.
43857
43858 2009-05-18  Eric Blake  <ebb9@byu.net>
43859
43860         maint.mk: allow gnulib_dir in VPATH build
43861         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43862
43863 2009-05-15  Jim Meyering  <meyering@redhat.com>
43864
43865         maint.mk: Give gnulib_dir a default definition.
43866         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43867         Thus, most packages no longer need to specify this variable in cfg.mk
43868
43869 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43870
43871         rename.m4: fix typos that would make non-mingw cross-configure fail
43872         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43873
43874 2009-05-13  Eric Blake  <ebb9@byu.net>
43875
43876         mmap-anon: avoid out-of-order autoconf expansion
43877         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43878         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43879         * modules/memchr-tests (Depends-on): Add extensions.
43880         * modules/memchr2-tests (Depends-on): Add extensions.
43881         * modules/memcmp-tests (Depends-on): Add extensions.
43882         * modules/memmem-tests (Depends-on): Add extensions.
43883         * modules/memrchr-tests (Depends-on): Add extensions.
43884
43885 2009-05-13  Bruno Haible  <bruno@clisp.org>
43886
43887         Make some tests ISO C 99 compliant.
43888         * tests/zerosize-ptr.h: New file.
43889         * tests/test-memchr.c: Include zerosize-ptr.h.
43890         (main): Use a zero-size object pointer instead of NULL.
43891         * tests/test-memchr2.c: Include zerosize-ptr.h.
43892         (main): Use a zero-size object pointer instead of NULL.
43893         * tests/test-memcmp.c: Include zerosize-ptr.h.
43894         (main): Use a zero-size object pointer instead of NULL.
43895         * tests/test-memmem.c: Include zerosize-ptr.h.
43896         (main): Use a zero-size object pointer instead of NULL.
43897         * tests/test-memrchr.c: Include zerosize-ptr.h.
43898         (main): Use a zero-size object pointer instead of NULL.
43899         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43900         m4/mmap-anon.m4.
43901         (Depends-on): Add getpagesize.
43902         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43903         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43904         m4/mmap-anon.m4.
43905         (Depends-on): Add getpagesize.
43906         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43907         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43908         m4/mmap-anon.m4.
43909         (Depends-on): Add getpagesize.
43910         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43911         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43912         m4/mmap-anon.m4.
43913         (Depends-on): Add getpagesize.
43914         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43915         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43916         m4/mmap-anon.m4.
43917         (Depends-on): Add getpagesize.
43918         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43919
43920 2009-05-12  Bruno Haible  <bruno@clisp.org>
43921
43922         Tests for module 'alignof'.
43923         * modules/alignof-tests: New file.
43924         * tests/test-alignof.c: New file.
43925
43926 2009-05-12  Bruno Haible  <bruno@clisp.org>
43927
43928         Fix alignof macro.
43929         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43930         vendor compilers that are always correct.
43931
43932 2009-05-12  Bruno Haible  <bruno@clisp.org>
43933
43934         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43935         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43936         not whether its fully works.
43937
43938 2009-05-12  Bruno Haible  <bruno@clisp.org>
43939
43940         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43941
43942 2009-05-12  Jim Meyering  <meyering@redhat.com>
43943
43944         * top/maint.mk: Adjust backslash alignment.
43945
43946 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43947
43948         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43949
43950 2009-05-11  Eric Blake  <ebb9@byu.net>
43951
43952         argp: avoid undefined behavior
43953         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43954         macros.
43955
43956 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43957
43958         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43959         user.name to prevent git commit from complaining.
43960
43961 2009-05-10  Bruno Haible  <bruno@clisp.org>
43962
43963         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43964         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43965         it rewrites every file name only once.
43966         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43967
43968 2009-05-08  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43971         instead of 'max'.
43972
43973 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43974
43975         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43976         sockaddr_storage test.
43977
43978 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43979
43980         * modules/sys_socket (Makefile.am): Substitute
43981         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43982         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43983         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43984         * tests/test-sys_socket.c: Check sockaddr_storage.
43985
43986 2009-05-08  Bruno Haible  <bruno@clisp.org>
43987
43988         New module 'alignof'.
43989         * lib/alignof.h: New file.
43990         * modules/alignof: New file.
43991
43992 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43993             Bruno Haible  <bruno@clisp.org>
43994
43995         Fix test-file-has-acl on FreeBSD.
43996         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43997         mask is implicitly added.
43998         * tests/test-file-has-acl.c: Include <signal.h>.
43999         (main): Terminate the test after 5 seconds.
44000         * modules/acl-tests (configure.ac): Check for alarm function.
44001
44002 2009-05-04  Bruno Haible  <bruno@clisp.org>
44003
44004         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44006         * modules/errno (configure.ac): Drop AC_REQUIRE.
44007         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44008         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44009
44010 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44011
44012         * modules/glob-tests: New module.
44013         * tests/test-glob.c: Add.
44014
44015 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44016
44017         * modules/fnmatch-tests: New module.
44018         * tests/test-fnmatch.c: Add.
44019
44020 2009-05-04  Eric Blake  <ebb9@byu.net>
44021
44022         maint: make the new no-submodule-changes rule VPATH-safe
44023         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44024
44025 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44026             Bruno Haible  <bruno@clisp.org>
44027
44028         acl: Fix infinite loop on FreeBSD.
44029         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44030         of return value from acl_get_entry.
44031         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44032         Likewise.
44033
44034 2009-05-03  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/acl-internal.h (acl_entries): Clarify return value.
44037         * lib/acl_entries.c (acl_entries): Likewise.
44038
44039 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44040
44041         Bug fix in acl module.
44042         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44043
44044 2009-05-03  Bruno Haible  <bruno@clisp.org>
44045
44046         Create gperf-generated file in the source dir, not in the build dir.
44047         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44048         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44049         * modules/unicase/locale-language (unicase/locale-languages.h):
44050         Likewise.
44051         * modules/unicase/special-casing (unicase/special-casing-table.h):
44052         Likewise.
44053         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44054         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44055         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44056         Reported by Ralf Wildenhues.
44057
44058 2009-05-03  Bruno Haible  <bruno@clisp.org>
44059
44060         * modules/fnmatch (Description, configure.ac): Taken from
44061         fnmatch-posix.
44062         * modules/fnmatch-posix: Turn into a symbolic reference to the
44063         'fnmatch' module, and deprecate.
44064         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44065
44066 2009-05-03  Bruno Haible  <bruno@clisp.org>
44067
44068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44069         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44070         Reported by Ralf Wildenhues.
44071
44072 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44073
44074         * m4/fnmatch.m4: Fix fnmatch re-define.
44075
44076 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44077
44078         priv-set: new module and tests; adapt write-any-file
44079         * lib/priv-set.c: New file.
44080         * lib/priv-set.h: New file.
44081         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44082         * lib/write-any-file.c: Simplify by using priv-set module.
44083         * m4/priv-set.m4: New file.
44084         * modules/priv-set: New file.
44085         * modules/unlinkdir: Add dependency on priv-set module.
44086         * modules/write-any-file: Likewise.
44087
44088         Tests for module 'priv-set'.
44089         * modules/priv-set-tests: New file.
44090         * tests/test-priv-set.c: New file.
44091
44092 2009-05-03  Jim Meyering  <meyering@redhat.com>
44093             Bruno Haible  <bruno@clisp.org>
44094
44095         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44096         use the converted UTF-8 variant of the name instead.
44097
44098 2009-05-03  Jim Meyering  <meyering@redhat.com>
44099
44100         tests: tighten some getdate tests
44101         * tests/test-getdate.c (main): Tighten tests: require equality,
44102         not just greater than.  Set TZ envvar to UTC0.
44103
44104 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44105
44106         getdate: correctly interpret "next monday" when run on a Monday
44107         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44108         that e.g., "next tues" (when run on a tuesday) results in a date
44109         that is one week in the future, and not today's date.
44110         I.e., add a week when the wday is the same as the current one.
44111         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44112         and earlier by Martin Bernreuther and Jan Minář.
44113         * tests/test-getdate.c (main): Check that "next DAY" is always in
44114         the future and that "last DAY" is always in the past.
44115
44116 2009-05-02  Jim Meyering  <meyering@redhat.com>
44117
44118         build: ensure that a release build fails when a submodule is unclean
44119         * top/maint.mk (no-submodule-changes): New rule.
44120         (alpha beta major): Depend on it.
44121
44122 2009-05-02  Bruno Haible  <bruno@clisp.org>
44123
44124         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44125         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44126         shell variable gl_fnmatch_required to detect which variant is
44127         requested.
44128         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44129         gl_FUNC_FNMATCH_POSIX.
44130         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44131         exclude fnmatch-posix.
44132
44133 2009-05-02  Bruno Haible  <bruno@clisp.org>
44134
44135         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44136         * modules/mbsrtowcs (License): Change to LGPLv2+.
44137         * modules/strnlen1 (License): Likewise.
44138         Reported by Simon Josefsson.
44139
44140 2009-05-02  Bruno Haible  <bruno@clisp.org>
44141
44142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44143         "cross".
44144         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44145         gnulib-tool was called with option --source-base=lib.
44146
44147 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44148
44149         Use automake *-local hooks without commands, for extensibility.
44150         * modules/localcharset (Makefile.am): Rename install-exec-local
44151         rule to install-exec-localcharset, and make it a prerequisite of
44152         install-exec-local.  Likewise, rename the uninstall-local rule to
44153         uninstall-localcharset, and make it a prerequisite of the former.
44154
44155 2009-05-01  Bruno Haible  <bruno@clisp.org>
44156
44157         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44158         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44159         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44161         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44162         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44163         m4/locale-zh.m4, m4/codeset.m4.
44164
44165         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44166         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44167         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44168         m4/locale-zh.m4.
44169
44170         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44171         REPLACE_WCRTOMB if mbstate_t must be replaced.
44172         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44173         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44174
44175 2009-05-01  Bruno Haible  <bruno@clisp.org>
44176
44177         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44178         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44179         dngettext, dcngettext, textdomain, bindtextdomain,
44180         bind_textdomain_codeset): Undefine before redefining.
44181
44182 2009-04-30  Bruno Haible  <bruno@clisp.org>
44183
44184         Fix bug introduced on 2009-04-25.
44185         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44186         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44187         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44188         is defined.
44189         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44190         is defined.
44191         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44192         is defined.
44193         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44194
44195 2009-04-28  Bruno Haible  <bruno@clisp.org>
44196
44197         Comment tweaks.
44198         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44199         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44200         * lib/unicase.h (u*_casexfrm): Likewise.
44201         Reported by Paolo Bonzini.
44202
44203 2009-04-28  Bruno Haible  <bruno@clisp.org>
44204
44205         Fix a compilation error.
44206         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44207         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44208         Reported by Jim Meyering.
44209
44210 2009-04-27  Bruno Haible  <bruno@clisp.org>
44211
44212         New module 'libunistring'.
44213         * modules/libunistring: New file.
44214         * m4/libunistring.m4: New file.
44215         * MODULES.html.sh (Unicode string functions): Add it.
44216
44217 2009-04-27  Eric Blake  <ebb9@byu.net>
44218
44219         maint.mk: allow package-specific header to provide <config.h>
44220         * top/maint.mk (sc_require_config_h): New variable.
44221         (sc_require_config_h, sc_require_config_h_first): Use it.
44222
44223 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44224
44225         * top/maint.mk (sc_avoid_if_before_free): Except
44226         useless-if-before-free script.
44227
44228 2009-04-27  Eric Blake  <ebb9@byu.net>
44229
44230         maintainer-makefile: depend on all required helper scripts
44231         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44232         useless-if-before-free.
44233         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44234         version, rather than assuming gnulib checkout is available.
44235         Reported by Simen Josefsson.
44236
44237 2009-04-26  Bruno Haible  <bruno@clisp.org>
44238
44239         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44240         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44241         "../" or "..".
44242
44243 2009-04-26  Bruno Haible  <bruno@clisp.org>
44244
44245         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44246         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44247         AC_LIB_HAVE_LINKFLAGS.
44248
44249 2009-04-26  Bruno Haible  <bruno@clisp.org>
44250
44251         Simplify calling convention of u*_conv_from_encoding.
44252         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44253         u32_conv_from_encoding): Expect a resultbuf argument and return the
44254         result directly as a pointer.
44255         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44256         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44257         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44258         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44259         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44260         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44261         Update.
44262         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44263         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44264         * lib/vasnprintf.c (VASNPRINTF): Update.
44265         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44266         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44267         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44268         * NEWS: Mention the change.
44269
44270 2009-04-26  Bruno Haible  <bruno@clisp.org>
44271
44272         Simplify calling convention of u*_conv_to_encoding.
44273         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44274         u32_conv_to_encoding): Expect a resultbuf argument and return the
44275         result directly as a pointer.
44276         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44277         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44278         freeing scaled_offsets if mem_iconveha failed.
44279         * lib/unicase/u-casexfrm.h (FUNC): Update.
44280         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44281         * lib/vasnprintf.c (VASNPRINTF): Update.
44282         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44283         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44284         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44285         * NEWS: Mention the change.
44286
44287 2009-04-26  Bruno Haible  <bruno@clisp.org>
44288
44289         Avoid test failures on AIX and OSF/1.
44290         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44291         malloc(0).
44292         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44293         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44294         Likewise.
44295         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44296         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44297         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44298         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44299         * doc/posix-functions/malloc.texi: Document the portability problem
44300         related to malloc(0).
44301
44302 2009-04-26  Bruno Haible  <bruno@clisp.org>
44303
44304         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44305         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44306         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44307
44308 2009-04-25  Bruno Haible  <bruno@clisp.org>
44309
44310         Avoid link error when creating a namespace clean library.
44311         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44312         as macro with arguments if already defined as an alias.
44313         * lib/signbitf.c (gl_signbitf): Don't undefine.
44314         * lib/signbitd.c (gl_signbitd): Don't undefine.
44315         * lib/signbitl.c (gl_signbitl): Don't undefine.
44316
44317 2009-04-25  Jim Meyering  <meyering@redhat.com>
44318
44319         vc-list-files: fix another quoting bug
44320         * build-aux/vc-list-files: Avoid sed backslash expansion
44321         of pathological directory names.
44322
44323 2009-04-25  Eric Blake  <ebb9@byu.net>
44324
44325         vc-list-files: fix shell quoting error
44326         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44327         timestamp.
44328
44329 2009-04-25  Jim Meyering  <meyering@redhat.com>
44330
44331         vc-list-files: restore lost functionality with subdir argument
44332         * build-aux/vc-list-files: When given a non-"." sub-directory
44333         argument, substitute the $dir/ prefix back onto each resulting name.
44334         Otherwise, coreutils' root_tests check would fail.
44335
44336 2009-04-24  Eric Blake  <ebb9@byu.net>
44337
44338         vc-list-files: ignore git symlinks
44339         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44340         than ls-files, to ignore git symlinks.
44341
44342         maint.mk: import improvements from m4
44343         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44344         (move_if_change): Delete unused macro.
44345         (news-date-check, vc-diff-check): Support VPATH builds.
44346         (announcement): Likewise.  Split --bootstrap-tools list...
44347         (boostrap-tools): ...into separate list, which can be overridden
44348         in cfg.mk.
44349         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44350         requiring dependency on useless-if-before-free module.
44351         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44352         Support VPATH builds.
44353
44354 2009-04-24  Jim Meyering  <meyering@redhat.com>
44355
44356         maint.mk: remove coreutils-specific rules and variables
44357         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44358         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44359         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44360
44361         maint.mk: remove obsolete rule
44362         * top/maint.mk (rel-check): Remove rule.
44363         (WGET, WGETFLAGS): Remove now-unused variables.
44364
44365 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44366
44367         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44368         consistency.
44369
44370         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44371         '$(PATH_SEPARATOR)' instead of ':'.
44372
44373 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44374
44375         * lib/getopt1.c (main): Use 'const' for static array.
44376
44377 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44378
44379         * top/maint.mk: Sync with coreutils.
44380         * NEWS: Explain incompatibilities.
44381
44382 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44383             Bruno Haible  <bruno@clisp.org>
44384
44385         Fix cross-compilation results.
44386         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44387         statement, as third argument of AC_TRY_RUN.
44388         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44389         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44390         Likewise.
44391         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44392         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44393         Likewise.
44394         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44395         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44396         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44397
44398 2009-04-20  Bruno Haible  <bruno@clisp.org>
44399
44400         Avoid test failure on mingw.
44401         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44402
44403 2009-04-20  Bruno Haible  <bruno@clisp.org>
44404
44405         Avoid compilation error on mingw.
44406         * modules/localename-tests (Depends-on): Add locale.
44407
44408 2009-04-19  Bruno Haible  <bruno@clisp.org>
44409
44410         Support for building a shared library on Windows platforms.
44411         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44412         (main): Test the presence of UNINORM_NFC here.
44413         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44414         (main): Test the presence of UNINORM_NFD here.
44415         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44416         (main): Test the presence of UNINORM_NFKC here.
44417         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44418         (main): Test the presence of UNINORM_NFKD here.
44419
44420 2009-04-19  Bruno Haible  <bruno@clisp.org>
44421
44422         Avoid a compiler warning.
44423         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44424         Change type of variable 'sequence'.
44425
44426 2009-04-19  Bruno Haible  <bruno@clisp.org>
44427
44428         * modules/configmake (Makefile.am): When the contents of configmake.h
44429         does not change, arrange to preserve its modification time.
44430
44431 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44432
44433         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44434         gettext domain.
44435
44436 2009-04-16  Jim Meyering  <meyering@redhat.com>
44437
44438         useless-if-before-free: improve conversion code
44439         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44440         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44441
44442 2009-04-14  Bruno Haible  <bruno@clisp.org>
44443
44444         * modules/fcntl (Depends-on): Add extensions.
44445         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44446
44447 2009-04-12  Ben Pfaff  <blp@gnu.org>
44448
44449         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44450         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44451
44452 2009-03-20  Ben Pfaff  <blp@gnu.org>
44453
44454         Make rename replace existing destinations on Windows.
44455         * m4/rename.m4: Add test for Mingw.
44456         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44457         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44458         * doc/posix-functions/rename.texi: Document.
44459
44460 2009-04-10  Bruno Haible  <bruno@clisp.org>
44461
44462         New include file "iconveh.h".
44463         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44464         * lib/striconveh.h: Include it.
44465         (enum iconv_ilseq_handler): Remove definition.
44466         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44467         striconveh.h.
44468         * lib/striconveha.c: Include striconveh.h.
44469         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44470         * modules/striconveh (Files): Add lib/iconveh.h.
44471         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44472         lib/striconveh.h.
44473
44474 2009-04-10  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/uniconv.h: Update comment.
44477
44478 2009-04-10  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44481         always.
44482         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44483         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44484         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44485         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44486         "unistring-notinline.h", so that the function gets defined always.
44487         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44488         * lib/unistr/u8-uctomb.c: Likewise.
44489         * lib/unistr/u16-mbtouc.c: Likewise.
44490         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44491         * lib/unistr/u16-uctomb.c: Likewise.
44492         * lib/unistr/u32-mbtouc.c: Likewise.
44493         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44494         * lib/unistr/u32-uctomb.c: Likewise.
44495
44496 2009-04-10  Bruno Haible  <bruno@clisp.org>
44497
44498         Mark 'utime' obsolete.
44499         * modules/utime (Status, Notice): New sections.
44500         Suggested by Jim Meyering.
44501
44502         Fix cross-compile guess for utime test.
44503         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44504         autoconf.
44505         * doc/posix-functions/utime.texi: Give more precisions.
44506         Reported by Jan <ipif@ymail.com>.
44507
44508 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44509
44510         filevercmp: correct today's change
44511         * lib/filevercmp.c: Also handle coreutils' test inputs.
44512         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44513
44514         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44515         for reporting it.
44516         * lib/filevercmp.c: Special handle for "", "." and "..".
44517         * tests/test-filevercmp.c: Enlarge the set suite.
44518
44519 2009-04-07  Jim Meyering  <meyering@redhat.com>
44520
44521         useless-if-before-free: show how to remove braced useless free, too
44522         * build-aux/useless-if-before-free: still only in a comment, though.
44523
44524 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44525
44526         maint.mk: import changes to syntax-check macros from coreutils
44527         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44528         Use them in the relevant macros.
44529
44530 2009-04-06  Bruno Haible  <bruno@clisp.org>
44531
44532         Fix unportable use of bit-fields.
44533         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44534         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44535         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44536
44537 2009-04-06  Bruno Haible  <bruno@clisp.org>
44538
44539         Avoid test failures on AIX and OSF/1.
44540         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44541         that malloc(0) = NULL.
44542         * tests/unicase/test-u8-tolower.c (check): Likewise.
44543         * tests/unicase/test-u8-totitle.c (check): Likewise.
44544         * tests/unicase/test-u8-toupper.c (check): Likewise.
44545         * tests/unicase/test-u16-casefold.c (check): Likewise.
44546         * tests/unicase/test-u16-tolower.c (check): Likewise.
44547         * tests/unicase/test-u16-totitle.c (check): Likewise.
44548         * tests/unicase/test-u16-toupper.c (check): Likewise.
44549         * tests/unicase/test-u32-casefold.c (check): Likewise.
44550         * tests/unicase/test-u32-tolower.c (check): Likewise.
44551         * tests/unicase/test-u32-totitle.c (check): Likewise.
44552         * tests/unicase/test-u32-toupper.c (check): Likewise.
44553         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44554         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44555         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44556         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44557         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44558         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44559         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44560         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44561         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44562         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44563         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44564         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44565
44566 2009-04-05  Bruno Haible  <bruno@clisp.org>
44567
44568         Work around an autoconf limitation.
44569         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44570         comment line if it would be longer than 3 KB.
44571
44572 2009-04-05  Bruno Haible  <bruno@clisp.org>
44573
44574         Avoid test failure with libiconv-1.13.
44575         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44576         of the expected test results.
44577
44578 2009-04-05  Bruno Haible  <bruno@clisp.org>
44579
44580         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44581         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44582         that it should be installed.
44583
44584 2009-04-05  Bruno Haible  <bruno@clisp.org>
44585
44586         * gnulib-tool: New option --copy-file.
44587         (func_usage): Document it.
44588         (func_dest_tmpfilename): Moved out of func_import.
44589         (func_add_file, func_update_file): New functions, extracted from
44590         func_import.
44591         (func_import): Update.
44592
44593 2009-04-05  Karl Berry  <karl@gnu.org>
44594
44595         * README: prominently mention gnulib-tool.
44596         Rearrange sections so getting the code is near the top.
44597
44598 2009-04-05  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/unicase.h: Mention u*_cmp2.
44601         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44602         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44603         * lib/unicase/ulc-casecmp.c: Likewise.
44604         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44605         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44606         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44607         unistr/u8-cmp.
44608         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44609         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44610         unistr/u16-cmp.
44611         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44612         unistr/u32-cmp.
44613
44614         * lib/uninorm.h: Mention u*_cmp2.
44615         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44616         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44617         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44618         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44619         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44620         unistr/u8-cmp.
44621         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44622         unistr/u16-cmp.
44623         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44624         unistr/u32-cmp.
44625
44626         New module 'unistr/u32-cmp2'.
44627         * lib/unistr/u32-cmp2.c: New file.
44628         * modules/unistr/u32-cmp2: New file.
44629
44630         New module 'unistr/u16-cmp2'.
44631         * lib/unistr/u16-cmp2.c: New file.
44632         * modules/unistr/u16-cmp2: New file.
44633
44634         New module 'unistr/u8-cmp2'.
44635         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44636         * lib/unistr/u8-cmp2.c: New file.
44637         * lib/unistr/u-cmp2.h: New file.
44638         * modules/unistr/u8-cmp2: New file.
44639
44640 2009-04-05  Bruno Haible  <bruno@clisp.org>
44641
44642         * lib/unictype.h (uc_property_is_valid): New macro.
44643         * tests/unictype/test-pr_byname.c (main): Use it.
44644
44645         * lib/unistr.h: Doc fixes.
44646         * lib/uniconv.h: Doc fixes.
44647         * lib/unictype.h: Doc fixes.
44648
44649 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44650
44651         Port coreutils 7.2 to Solaris 8.
44652
44653         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44654         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44655         for Solaris 8.  This is a bit of a hack, as it means it's the
44656         caller's responsibility to add -lnsl if needed, but most likely it
44657         won't be needed since only getaddrinfo uses this and getaddrinfo
44658         isn't needed on Solaris 8.
44659
44660         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44661         problem to Solaris 8 encountered with coreutils 7.2, which
44662         resulted in a message "fnmatch.c:292: warning: passing argument 4
44663         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44664         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44665
44666 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44667
44668         * m4/ld-version-script.m4: Add FIXME comment.
44669
44670 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44671
44672         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44673         SOVERSION variable.
44674
44675 2009-04-02  Bruno Haible  <bruno@clisp.org>
44676
44677         * Makefile (info, html, dvi, pdf): Combine the rules.
44678         Suggested by Jim Meyering.
44679
44680 2009-04-01  Bruno Haible  <bruno@clisp.org>
44681
44682         * Makefile (info, html, dvi, pdf): New targets.
44683         Reported by Reuben Thomas <rrt@sc3d.org>.
44684
44685 2009-04-01  Bruno Haible  <bruno@clisp.org>
44686
44687         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44688         can be put into PATH.
44689         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44690
44691 2009-04-01  Bruno Haible  <bruno@clisp.org>
44692
44693         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44694
44695 2009-04-01  Bruno Haible  <bruno@clisp.org>
44696
44697         Rename module 'visibility'.
44698         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44699         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44700         * doc/gnulib.texi: Update.
44701         * MODULES.html.sh (Misc): Update.
44702         * NEWS: Mention the change.
44703
44704 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44705
44706         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44707         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44708         Eric Blake <ebb9@byu.net> for review.
44709         * MODULES.html.sh: Add lib-msvc-compat.
44710         * doc/gnulib.texi: Link to new section.
44711         * m4/ld-output-def.m4: New file.
44712         * doc/ld-output-def.texi: New file.
44713
44714 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44715
44716         Rename ld-version-script to lib-symbol-versions.  Suggested by
44717         Bruno Haible <bruno@clisp.org>.
44718         * modules/ld-version-script: Renamed to lib-symbol-versions.
44719         * doc/ld-version-script.texi: Fix module name.
44720         * MODULES.html.sh: Add lib-symbol-versions.
44721
44722 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44723
44724         * modules/u64-tests: New file.
44725         * tests/test-u64.c: New file.
44726
44727 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44728
44729         * MODULES.html.sh: Mention u64.
44730         * modules/u64: New module.
44731         * modules/crypto/sha512: Depend on u64 module instead of providing
44732         u64.h.
44733
44734 2009-03-27  Eric Blake  <ebb9@byu.net>
44735
44736         test-strerror: make debugging EAI_SYSTEM easier
44737         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44738         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44739         failure was EAI_SYSTEM.
44740
44741 2009-03-25  Bruno Haible  <bruno@clisp.org>
44742
44743         Fix a problem with --enable-relocatable on Solaris 7.
44744         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44745         since 2008-02-24.
44746
44747 2009-03-25  Eric Blake  <ebb9@byu.net>
44748
44749         test-sockets: avoid gcc warning
44750         * tests/test-sockets.c (main): Silence compiler warning.
44751
44752 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44753
44754         New modules nproc, pthread, contributed by Glen Lenker.
44755
44756         * MODULES.html.sh: Add pthread, nproc.
44757         * lib/nproc.c: New file.
44758         * lib/nproc.h: New file.
44759         * lib/pthread.in.h: New file.
44760         * m4/pthread.m4: New file.
44761         * modules/nproc: New file.
44762         * modules/pthread: New file.
44763
44764 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44765
44766         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44767         New variable.
44768
44769 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44770
44771         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44772         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44773         * tests/test-filevercmp.c: Add tests for backup suffixes.
44774
44775 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44776
44777         * modules/stdlib (Depends-on): Add stdint, needed when defining
44778         struct random_data on, for example, HP-UX 10.20.  Reported by
44779         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44780
44781 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44782
44783         * lib/readline.c (readline): Call fflush on stdout after printing
44784         prompt.
44785
44786 2009-03-20  Bruno Haible  <bruno@clisp.org>
44787
44788         Remove dependency from 'close' module to -lws2_32 on native Windows.
44789         * lib/close-hook.h: New file.
44790         * lib/close-hook.c: New file.
44791         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44792         w32sock.h.
44793         (_gl_close_fd_maybe_socket): Remove function.
44794         (rpl_close): Invoke execute_all_close_hooks instead of
44795         _gl_close_fd_maybe_socket.
44796         * lib/sockets.c: Include close-hook.h, w32sock.h.
44797         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44798         (close_sockets_hook): New variable.
44799         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44800         (gl_sockets_cleanup): Unregister it.
44801         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44802         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44803         * modules/close-hook: New file.
44804         * modules/close (Files): Remove lib/w32sock.h.
44805         (Depends-on): Add close-hook.
44806         (Link): Remove section.
44807         * modules/sockets (Files): Add lib/w32sock.h.
44808         (Depends-on): Add close-hook.
44809         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44810         invocation.
44811         * NEWS: Mention that LIB_CLOSE is gone.
44812
44813 2009-03-23  Eric Blake  <ebb9@byu.net>
44814
44815         signal-tests: test previous patch
44816         * tests/test-signal.c: New file.
44817         * modules/signal-tests: Likewise.
44818
44819         signal.h: always support 'volatile sig_atomic_t'
44820         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44821         (gl_SIGNAL_H_DEFAULTS): Add a default.
44822         * modules/signal (Makefile.am): Substitute if needed.
44823         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44824         users can blindly add volatile.
44825         * doc/posix-headers/signal.texi (signal.h): Document it.
44826         Reported by Matthew Woehlke.
44827
44828 2009-03-23  Jim Meyering  <meyering@redhat.com>
44829
44830         pathmax: PATH_MAX: use pathconf only when available
44831         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44832         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44833         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44834         This avoids a link failure in a PSP cross-compilation environment
44835         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44836
44837         * lib/vasnprintf.c (divide): Fix typo in comment.
44838
44839 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44840
44841         * gnulib-tool (func_filter_filelist): Fix comment.
44842
44843 2009-03-20  Bruno Haible  <bruno@clisp.org>
44844
44845         Make sockets.h self-contained.
44846         * lib/sockets.c: Include sockets.h first.
44847         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44848
44849 2009-03-19  Eric Blake  <ebb9@byu.net>
44850
44851         doc: mention more functions added in cygwin 1.7.0
44852         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44853         addition.
44854         * doc/posix-functions/log2f.texi: Likewise.
44855
44856 2009-03-19  Jim Meyering  <meyering@redhat.com>
44857
44858         fsusage: avoid syntax error due to statement-before-declaration
44859         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44860         after all declarations.  Reported by Matthew Woehlke in
44861         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44862
44863 2009-03-18  Eric Blake  <ebb9@byu.net>
44864
44865         build-aux/compile: sync from automake
44866         * build-aux/compile: New file, from automake.
44867         * config/srclist.txt: Mention build-aux/compile.
44868
44869 2009-03-17  Bruno Haible  <bruno@clisp.org>
44870
44871         * lib/git-merge-changelog.c: Fix typo in comment.
44872         Reported by Reuben Thomas <rrt@sc3d.org>.
44873
44874 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44875
44876         * m4/regex.m4: update and improve help for
44877         --without-included-regex.
44878
44879 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44880
44881         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44882         failure on missing include files.
44883
44884 2009-03-17  Eric Blake  <ebb9@byu.net>
44885
44886         doc: mention more functions added in cygwin 1.7.0
44887         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44888         addition.
44889         * doc/posix-functions/fwscanf.texi: Likewise.
44890         * doc/posix-functions/swprintf.texi: Likewise.
44891         * doc/posix-functions/swscanf.texi: Likewise.
44892         * doc/posix-functions/vfwprintf.texi: Likewise.
44893         * doc/posix-functions/vfwscanf.texi: Likewise.
44894         * doc/posix-functions/vswprintf.texi: Likewise.
44895         * doc/posix-functions/vswscanf.texi: Likewise.
44896         * doc/posix-functions/vwprintf.texi: Likewise.
44897         * doc/posix-functions/vwscanf.texi: Likewise.
44898         * doc/posix-functions/wcscasecmp.texi: Likewise.
44899         * doc/posix-functions/wcsdup.texi: Likewise.
44900         * doc/posix-functions/wcsftime.texi: Likewise.
44901         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44902         * doc/posix-functions/wprintf.texi: Likewise.
44903         * doc/posix-functions/wscanf.texi: Likewise.
44904         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44905
44906 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44907
44908         maint.mk: really add $(AM_MAKEFLAGS)
44909         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44910         was inadvertently omitted in the last commit.
44911         Spotted by Bruno Haible.
44912
44913         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44914         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44915         $(AM_MAKEFLAGS)' rather than plain `make'.
44916
44917         gnulib-tool: execute $MAKE not make
44918         * gnulib-tool: Default $MAKE to 'make'.
44919         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44920         than make.  Initialize $MAKE in the do-autobuild script.
44921
44922         gnulib-tool: use $MAKE not make in generated files
44923         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44924         make, in generated files.  Initialize $MAKE in the do-autobuild
44925         script.
44926
44927         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44928
44929         GNUmakefile: disable parallelism only for multiple, recursive targets
44930         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44931         additions in the Makefile.
44932         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44933         by Automake.
44934         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44935         are listed on the command line and at least one of them is
44936         listed in $(ALL_RECURSIVE_TARGETS).
44937
44938 2009-03-14  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44941         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44942         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44943         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44944         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44945         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44946         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44947         unistr/u8-uctomb.
44948         * modules/unistr/u8-strchr (Depends-on): Likewise.
44949         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44950         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44951         unistr/u16-uctomb.
44952         * modules/unistr/u16-strchr (Depends-on): Likewise.
44953         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44954
44955 2009-03-12  Bruno Haible  <bruno@clisp.org>
44956
44957         Work around select() bug on Interix 3.5.
44958         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44959         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44960         * m4/select.m4: New file.
44961         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44962         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44963         * modules/select (Files): Add m4/select.m4.
44964         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44965         * modules/nanosleep (Depends-on): Add select.
44966         * modules/poll (Depends-on): Likewise.
44967         * doc/posix-functions/select.texi: Mention the Interix bug.
44968         Reported by Markus Duft <mduft@gentoo.org>.
44969
44970         * lib/select.c: Renamed from lib/winsock-select.c.
44971         * modules/select (Files): Add lib/select.c, remove
44972         lib/winsock-select.c.
44973         (configure.ac): Update.
44974
44975 2009-03-12  Jim Meyering  <meyering@redhat.com>
44976
44977         avoid gcc warnings about unused macro definitions
44978         * lib/readtokens.c (STREQ): Remove unused definition.
44979         * lib/xmalloc.c (SIZE_MAX): Likewise.
44980         * lib/openat-die.c (N_): Likewise.
44981         * lib/mountlist.c (SIZE_MAX): Remove definition.
44982         Instead, include <stdint.h>.
44983         * lib/readutmp.c: Likewise.
44984         * modules/readutmp (Depends-on): Add stdint.
44985         * modules/mountlist (Depends-on): Add stdint.
44986         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44987
44988 2009-03-10  Bruno Haible  <bruno@clisp.org>
44989
44990         Tests for module 'mbmemcasecoll'.
44991         * modules/mbmemcasecoll-tests: New file.
44992         * tests/test-mbmemcasecoll1.sh: New file.
44993         * tests/test-mbmemcasecoll2.sh: New file.
44994         * tests/test-mbmemcasecoll3.sh: New file.
44995         * tests/test-mbmemcasecoll.c: New file.
44996
44997         New module 'mbmemcasecoll'.
44998         * lib/mbmemcasecoll.h: New file.
44999         * lib/mbmemcasecoll.c: New file.
45000         * modules/mbmemcasecoll: New file.
45001
45002         * tests/test-mbmemcasecmp.h: New file, extracted from
45003         tests/test-mbmemcasecmp.c.
45004         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45005         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45006         (main): Update.
45007         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45008
45009 2009-03-09  Bruno Haible  <bruno@clisp.org>
45010
45011         Tests for module 'mbmemcasecmp'.
45012         * modules/mbmemcasecmp-tests: New file.
45013         * tests/test-mbmemcasecmp1.sh: New file.
45014         * tests/test-mbmemcasecmp2.sh: New file.
45015         * tests/test-mbmemcasecmp3.sh: New file.
45016         * tests/test-mbmemcasecmp.c: New file.
45017
45018         New module 'mbmemcasecmp'.
45019         * lib/mbmemcasecmp.h: New file.
45020         * lib/mbmemcasecmp.c: New file.
45021         * modules/mbmemcasecmp: New file.
45022
45023 2009-03-09  Bruno Haible  <bruno@clisp.org>
45024
45025         Tests for module 'unicase/ulc-casecoll'.
45026         * modules/unicase/ulc-casecoll-tests: New file.
45027         * tests/unicase/test-ulc-casecoll1.sh: New file.
45028         * tests/unicase/test-ulc-casecoll2.sh: New file.
45029         * tests/unicase/test-ulc-casecoll.c: New file.
45030
45031         New module 'unicase/ulc-casecoll'.
45032         * lib/unicase.h (ulc_casecoll): New declaration.
45033         * lib/unicase/ulc-casecoll.c: New file.
45034         * modules/unicase/ulc-casecoll: New file.
45035
45036         New module 'unicase/ulc-casexfrm'.
45037         * lib/unicase.h (ulc_casexfrm): New declaration.
45038         * lib/unicase/ulc-casexfrm.c: New file.
45039         * modules/unicase/ulc-casexfrm: New file.
45040
45041 2009-03-09  Bruno Haible  <bruno@clisp.org>
45042
45043         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45044         invocations.
45045
45046         * m4/mbscasecmp.m4: Remove file.
45047         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45048         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45049
45050         * m4/mbscasestr.m4: Remove file.
45051         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45052         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45053
45054         * m4/mbschr.m4: Remove file.
45055         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45056         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45057
45058         * m4/mbscspn.m4: Remove file.
45059         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45060         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45061
45062         * m4/mbslen.m4: Remove file.
45063         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45064         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45065
45066         * m4/mbsncasecmp.m4: Remove file.
45067         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45068         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45069
45070         * m4/mbsnlen.m4: Remove file.
45071         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45072         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45073
45074         * m4/mbspbrk.m4: Remove file.
45075         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45076         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45077
45078         * m4/mbspcasecmp.m4: Remove file.
45079         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45080         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45081
45082         * m4/mbsrchr.m4: Remove file.
45083         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45084         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45085
45086         * m4/mbssep.m4: Remove file.
45087         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45088         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45089
45090         * m4/mbsspn.m4: Remove file.
45091         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45092         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45093
45094         * m4/mbsstr.m4: Remove file.
45095         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45096         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45097
45098         * m4/mbstok_r.m4: Remove file.
45099         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45100         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45101
45102         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45103
45104         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45105         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45106
45107         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45108
45109 2009-03-08  Bruno Haible  <bruno@clisp.org>
45110
45111         Tests for module 'unicase/ulc-casecmp'.
45112         * modules/unicase/ulc-casecmp-tests: New file.
45113         * tests/unicase/test-ulc-casecmp1.sh: New file.
45114         * tests/unicase/test-ulc-casecmp2.sh: New file.
45115         * tests/unicase/test-ulc-casecmp.c: New file.
45116
45117         New module 'unicase/ulc-casecmp'.
45118         * lib/unicase.h (ulc_casecmp): New declaration.
45119         * lib/unicase/ulc-casecmp.c: New file.
45120         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45121         'const SRC_UNIT *'.
45122         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45123         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45124         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45125         * modules/unicase/ulc-casecmp: New file.
45126
45127         Tests for module 'unicase/u32-is-cased'.
45128         * modules/unicase/u32-is-cased-tests: New file.
45129         * tests/unicase/test-u32-is-cased.c: New file.
45130
45131         Tests for module 'unicase/u16-is-cased'.
45132         * modules/unicase/u16-is-cased-tests: New file.
45133         * tests/unicase/test-u16-is-cased.c: New file.
45134
45135         Tests for module 'unicase/u8-is-cased'.
45136         * modules/unicase/u8-is-cased-tests: New file.
45137         * tests/unicase/test-u8-is-cased.c: New file.
45138         * tests/unicase/test-is-cased.h: New file.
45139
45140         New module 'unicase/u32-is-cased'.
45141         * lib/unicase/u32-is-cased.c: New file.
45142         * modules/unicase/u32-is-cased: New file.
45143
45144         New module 'unicase/u16-is-cased'.
45145         * lib/unicase/u16-is-cased.c: New file.
45146         * modules/unicase/u16-is-cased: New file.
45147
45148         New module 'unicase/u8-is-cased'.
45149         * lib/unicase/u8-is-cased.c: New file.
45150         * lib/unicase/u-is-cased.h: New file.
45151         * modules/unicase/u8-is-cased: New file.
45152
45153         Tests for module 'unicase/u32-is-casefolded'.
45154         * modules/unicase/u32-is-casefolded-tests: New file.
45155         * tests/unicase/test-u32-is-casefolded.c: New file.
45156
45157         Tests for module 'unicase/u16-is-casefolded'.
45158         * modules/unicase/u16-is-casefolded-tests: New file.
45159         * tests/unicase/test-u16-is-casefolded.c: New file.
45160
45161         Tests for module 'unicase/u8-is-casefolded'.
45162         * modules/unicase/u8-is-casefolded-tests: New file.
45163         * tests/unicase/test-u8-is-casefolded.c: New file.
45164         * tests/unicase/test-is-casefolded.h: New file.
45165
45166         New module 'unicase/u32-is-casefolded'.
45167         * lib/unicase/u32-is-casefolded.c: New file.
45168         * modules/unicase/u32-is-casefolded: New file.
45169
45170         New module 'unicase/u16-is-casefolded'.
45171         * lib/unicase/u16-is-casefolded.c: New file.
45172         * modules/unicase/u16-is-casefolded: New file.
45173
45174         New module 'unicase/u8-is-casefolded'.
45175         * lib/unicase/u8-is-casefolded.c: New file.
45176         * modules/unicase/u8-is-casefolded: New file.
45177
45178         Tests for module 'unicase/u32-is-titlecase'.
45179         * modules/unicase/u32-is-titlecase-tests: New file.
45180         * tests/unicase/test-u32-is-titlecase.c: New file.
45181
45182         Tests for module 'unicase/u16-is-titlecase'.
45183         * modules/unicase/u16-is-titlecase-tests: New file.
45184         * tests/unicase/test-u16-is-titlecase.c: New file.
45185
45186         Tests for module 'unicase/u8-is-titlecase'.
45187         * modules/unicase/u8-is-titlecase-tests: New file.
45188         * tests/unicase/test-u8-is-titlecase.c: New file.
45189         * tests/unicase/test-is-titlecase.h: New file.
45190
45191         New module 'unicase/u32-is-titlecase'.
45192         * lib/unicase/u32-is-titlecase.c: New file.
45193         * modules/unicase/u32-is-titlecase: New file.
45194
45195         New module 'unicase/u16-is-titlecase'.
45196         * lib/unicase/u16-is-titlecase.c: New file.
45197         * modules/unicase/u16-is-titlecase: New file.
45198
45199         New module 'unicase/u8-is-titlecase'.
45200         * lib/unicase/u8-is-titlecase.c: New file.
45201         * modules/unicase/u8-is-titlecase: New file.
45202
45203         Tests for module 'unicase/u32-is-lowercase'.
45204         * modules/unicase/u32-is-lowercase-tests: New file.
45205         * tests/unicase/test-u32-is-lowercase.c: New file.
45206
45207         Tests for module 'unicase/u16-is-lowercase'.
45208         * modules/unicase/u16-is-lowercase-tests: New file.
45209         * tests/unicase/test-u16-is-lowercase.c: New file.
45210
45211         Tests for module 'unicase/u8-is-lowercase'.
45212         * modules/unicase/u8-is-lowercase-tests: New file.
45213         * tests/unicase/test-u8-is-lowercase.c: New file.
45214         * tests/unicase/test-is-lowercase.h: New file.
45215
45216         New module 'unicase/u32-is-lowercase'.
45217         * lib/unicase/u32-is-lowercase.c: New file.
45218         * modules/unicase/u32-is-lowercase: New file.
45219
45220         New module 'unicase/u16-is-lowercase'.
45221         * lib/unicase/u16-is-lowercase.c: New file.
45222         * modules/unicase/u16-is-lowercase: New file.
45223
45224         New module 'unicase/u8-is-lowercase'.
45225         * lib/unicase/u8-is-lowercase.c: New file.
45226         * modules/unicase/u8-is-lowercase: New file.
45227
45228         Tests for module 'unicase/u32-is-uppercase'.
45229         * modules/unicase/u32-is-uppercase-tests: New file.
45230         * tests/unicase/test-u32-is-uppercase.c: New file.
45231
45232         Tests for module 'unicase/u16-is-uppercase'.
45233         * modules/unicase/u16-is-uppercase-tests: New file.
45234         * tests/unicase/test-u16-is-uppercase.c: New file.
45235
45236         Tests for module 'unicase/u8-is-uppercase'.
45237         * modules/unicase/u8-is-uppercase-tests: New file.
45238         * tests/unicase/test-u8-is-uppercase.c: New file.
45239         * tests/unicase/test-is-uppercase.h: New file.
45240
45241         New module 'unicase/u32-is-uppercase'.
45242         * lib/unicase/u32-is-uppercase.c: New file.
45243         * modules/unicase/u32-is-uppercase: New file.
45244
45245         New module 'unicase/u16-is-uppercase'.
45246         * lib/unicase/u16-is-uppercase.c: New file.
45247         * modules/unicase/u16-is-uppercase: New file.
45248
45249         New module 'unicase/u8-is-uppercase'.
45250         * lib/unicase/u8-is-uppercase.c: New file.
45251         * modules/unicase/u8-is-uppercase: New file.
45252
45253         New module 'unicase/u32-is-invariant'.
45254         * lib/unicase/u32-is-invariant.c: New file.
45255         * modules/unicase/u32-is-invariant: New file.
45256
45257         New module 'unicase/u16-is-invariant'.
45258         * lib/unicase/u16-is-invariant.c: New file.
45259         * modules/unicase/u16-is-invariant: New file.
45260
45261         New module 'unicase/u8-is-invariant'.
45262         * lib/unicase/u8-is-invariant.c: New file.
45263         * lib/unicase/invariant.h: New file.
45264         * lib/unicase/u-is-invariant.h: New file.
45265         * modules/unicase/u8-is-invariant: New file.
45266
45267         Tests for module 'unicase/u32-casecoll'.
45268         * modules/unicase/u32-casecoll-tests: New file.
45269         * tests/unicase/test-u32-casecoll.c: New file.
45270
45271         Tests for module 'unicase/u16-casecoll'.
45272         * modules/unicase/u16-casecoll-tests: New file.
45273         * tests/unicase/test-u16-casecoll.c: New file.
45274
45275         Tests for module 'unicase/u8-casecoll'.
45276         * modules/unicase/u8-casecoll-tests: New file.
45277         * tests/unicase/test-u8-casecoll.c: New file.
45278
45279         New module 'unicase/u32-casecoll'.
45280         * lib/unicase/u32-casecoll.c: New file.
45281         * modules/unicase/u32-casecoll: New file.
45282
45283         New module 'unicase/u16-casecoll'.
45284         * lib/unicase/u16-casecoll.c: New file.
45285         * modules/unicase/u16-casecoll: New file.
45286
45287         New module 'unicase/u8-casecoll'.
45288         * lib/unicase/u8-casecoll.c: New file.
45289         * lib/unicase/u-casecoll.h: New file.
45290         * modules/unicase/u8-casecoll: New file.
45291
45292         New module 'unicase/u32-casexfrm'.
45293         * lib/unicase/u32-casexfrm.c: New file.
45294         * modules/unicase/u32-casexfrm: New file.
45295
45296         New module 'unicase/u16-casexfrm'.
45297         * lib/unicase/u16-casexfrm.c: New file.
45298         * modules/unicase/u16-casexfrm: New file.
45299
45300         New module 'unicase/u8-casexfrm'.
45301         * lib/unicase/u8-casexfrm.c: New file.
45302         * lib/unicase/u-casexfrm.h: New file.
45303         * modules/unicase/u8-casexfrm: New file.
45304
45305         Tests for module 'unicase/u32-casecmp'.
45306         * modules/unicase/u32-casecmp-tests: New file.
45307         * tests/unicase/test-u32-casecmp.c: New file.
45308
45309         Tests for module 'unicase/u16-casecmp'.
45310         * modules/unicase/u16-casecmp-tests: New file.
45311         * tests/unicase/test-u16-casecmp.c: New file.
45312
45313         Tests for module 'unicase/u8-casecmp'.
45314         * modules/unicase/u8-casecmp-tests: New file.
45315         * tests/unicase/test-u8-casecmp.c: New file.
45316         * tests/unicase/test-casecmp.h: New file.
45317
45318         New module 'unicase/u32-casecmp'.
45319         * lib/unicase/u32-casecmp.c: New file.
45320         * modules/unicase/u32-casecmp: New file.
45321
45322         New module 'unicase/u16-casecmp'.
45323         * lib/unicase/u16-casecmp.c: New file.
45324         * modules/unicase/u16-casecmp: New file.
45325
45326         New module 'unicase/u8-casecmp'.
45327         * lib/unicase/u8-casecmp.c: New file.
45328         * lib/unicase/u-casecmp.h: New file.
45329         * modules/unicase/u8-casecmp: New file.
45330
45331         Tests for module 'unicase/u32-casefold'.
45332         * modules/unicase/u32-casefold-tests: New file.
45333         * tests/unicase/test-u32-casefold.c: New file.
45334
45335         Tests for module 'unicase/u16-casefold'.
45336         * modules/unicase/u16-casefold-tests: New file.
45337         * tests/unicase/test-u16-casefold.c: New file.
45338
45339         Tests for module 'unicase/u8-casefold'.
45340         * modules/unicase/u8-casefold-tests: New file.
45341         * tests/unicase/test-u8-casefold.c: New file.
45342
45343         New module 'unicase/u32-casefold'.
45344         * lib/unicase/u32-casefold.c: New file.
45345         * modules/unicase/u32-casefold: New file.
45346
45347         New module 'unicase/u16-casefold'.
45348         * lib/unicase/u16-casefold.c: New file.
45349         * modules/unicase/u16-casefold: New file.
45350
45351         New module 'unicase/u8-casefold'.
45352         * lib/unicase/u8-casefold.c: New file.
45353         * lib/unicase/u-casefold.h: New file.
45354         * modules/unicase/u8-casefold: New file.
45355
45356         New module 'unicase/tocasefold'.
45357         * lib/unicase/casefold.h: New file.
45358         * lib/unicase/tocasefold.c: New file.
45359         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45360         * modules/unicase/tocasefold: New file.
45361
45362         Tests for module 'unicase/u32-totitle'.
45363         * modules/unicase/u32-totitle-tests: New file.
45364         * tests/unicase/test-u32-totitle.c: New file.
45365
45366         Tests for module 'unicase/u16-totitle'.
45367         * modules/unicase/u16-totitle-tests: New file.
45368         * tests/unicase/test-u16-totitle.c: New file.
45369
45370         Tests for module 'unicase/u8-totitle'.
45371         * modules/unicase/u8-totitle-tests: New file.
45372         * tests/unicase/test-u8-totitle.c: New file.
45373
45374         New module 'unicase/u32-totitle'.
45375         * lib/unicase/u32-totitle.c: New file.
45376         * modules/unicase/u32-totitle: New file.
45377
45378         New module 'unicase/u16-totitle'.
45379         * lib/unicase/u16-totitle.c: New file.
45380         * modules/unicase/u16-totitle: New file.
45381
45382         New module 'unicase/u8-totitle'.
45383         * lib/unicase/u8-totitle.c: New file.
45384         * lib/unicase/u-totitle.h: New file.
45385         * modules/unicase/u8-totitle: New file.
45386
45387         Tests for module 'unicase/u32-tolower'.
45388         * modules/unicase/u32-tolower-tests: New file.
45389         * tests/unicase/test-u32-tolower.c: New file.
45390
45391         Tests for module 'unicase/u16-tolower'.
45392         * modules/unicase/u16-tolower-tests: New file.
45393         * tests/unicase/test-u16-tolower.c: New file.
45394
45395         Tests for module 'unicase/u8-tolower'.
45396         * modules/unicase/u8-tolower-tests: New file.
45397         * tests/unicase/test-u8-tolower.c: New file.
45398
45399         New module 'unicase/u32-tolower'.
45400         * lib/unicase/u32-tolower.c: New file.
45401         * modules/unicase/u32-tolower: New file.
45402
45403         New module 'unicase/u16-tolower'.
45404         * lib/unicase/u16-tolower.c: New file.
45405         * modules/unicase/u16-tolower: New file.
45406
45407         New module 'unicase/u8-tolower'.
45408         * lib/unicase/u8-tolower.c: New file.
45409         * modules/unicase/u8-tolower: New file.
45410
45411         Tests for module 'unicase/u32-toupper'.
45412         * modules/unicase/u32-toupper-tests: New file.
45413         * tests/unicase/test-u32-toupper.c: New file.
45414
45415         Tests for module 'unicase/u16-toupper'.
45416         * modules/unicase/u16-toupper-tests: New file.
45417         * tests/unicase/test-u16-toupper.c: New file.
45418
45419         Tests for module 'unicase/u8-toupper'.
45420         * modules/unicase/u8-toupper-tests: New file.
45421         * tests/unicase/test-u8-toupper.c: New file.
45422
45423         New module 'unicase/u32-toupper'.
45424         * lib/unicase/u32-toupper.c: New file.
45425         * modules/unicase/u32-toupper: New file.
45426
45427         New module 'unicase/u16-toupper'.
45428         * lib/unicase/u16-toupper.c: New file.
45429         * modules/unicase/u16-toupper: New file.
45430
45431         New module 'unicase/u8-toupper'.
45432         * lib/unicase/u8-toupper.c: New file.
45433         * modules/unicase/u8-toupper: New file.
45434
45435         New module 'unicase/u32-casemap'.
45436         * lib/unicase/u32-casemap.c: New file.
45437         * modules/unicase/u32-casemap: New file.
45438
45439         New module 'unicase/u16-casemap'.
45440         * lib/unicase/u16-casemap.c: New file.
45441         * modules/unicase/u16-casemap: New file.
45442
45443         New module 'unicase/u8-casemap'.
45444         * lib/unicase/unicasemap.h: New file.
45445         * lib/unicase/u8-casemap.c: New file.
45446         * lib/unicase/u-casemap.h: New file.
45447         * modules/unicase/u8-casemap: New file.
45448
45449         New module 'unicase/special-casing'.
45450         * lib/unicase/special-casing.h: New file.
45451         * lib/unicase/special-casing.c: New file.
45452         * lib/unicase/special-casing-table.gperf: New file, generated by
45453         gen-uni-tables.c.
45454         * modules/unicase/special-casing: New file.
45455
45456         Tests for module 'unicase/locale-language'.
45457         * modules/unicase/locale-language-tests: New file.
45458         * tests/unicase/test-locale-language.sh: New file.
45459         * tests/unicase/test-locale-language.c: New file.
45460
45461         New module 'unicase/locale-language'.
45462         * lib/unicase/locale-language.c: New file.
45463         * lib/unicase/locale-languages.gperf: New file.
45464         * modules/unicase/locale-language: New file.
45465
45466         Generate more tables for case conversion and case folding.
45467         * lib/gen-uni-tables.c (SCC_*): New enum items.
45468         (struct special_casing_rule): New type.
45469         (casing_rules, num_casing_rules, allocated_casing_rules): New
45470         variables.
45471         (add_casing_rule, fill_casing_rules): New functions.
45472         (struct casefold_rule): New type.
45473         (casefolding_rules, num_casefolding_rules,
45474         allocated_casefolding_rules): New variables.
45475         (fill_casefolding_rules): New function.
45476         (unicode_casefold): New variable.
45477         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45478         sort_casing_rules, output_casing_rules): New functions.
45479         (main): Accept to more arguments: SpecialCasing.txt and
45480         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45481         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45482         Output mapping for casefolding.
45483
45484         * lib/unicase.h: Include stdbool.h, uninorm.h.
45485         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45486         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45487         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45488         arguments.
45489         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45490         resultp arguments.
45491         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45492         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45493         resultp arguments.
45494         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45495         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45496         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45497         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45498         declarations.
45499         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45500
45501 2009-03-08  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45504         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45505         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45506         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45507
45508 2009-03-07  Bruno Haible  <bruno@clisp.org>
45509
45510         Adjust u*_normcmp, u*_normcoll API.
45511         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45512         u16_normcoll, u32_normcoll): Change failure conventions.
45513         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45514         errno and return -1.
45515         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45516
45517 2009-03-07  Bruno Haible  <bruno@clisp.org>
45518
45519         Tests for module 'uninorm/u32-normcoll'.
45520         * modules/uninorm/u32-normcoll-tests: New file.
45521         * tests/uninorm/test-u32-normcoll.c: New file.
45522
45523         Tests for module 'uninorm/u16-normcoll'.
45524         * modules/uninorm/u16-normcoll-tests: New file.
45525         * tests/uninorm/test-u16-normcoll.c: New file.
45526
45527         Tests for module 'uninorm/u8-normcoll'.
45528         * modules/uninorm/u8-normcoll-tests: New file.
45529         * tests/uninorm/test-u8-normcoll.c: New file.
45530
45531 2009-03-07  Bruno Haible  <bruno@clisp.org>
45532
45533         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45534         tests/uninorm/test-u32-normcmp.c.
45535         * tests/uninorm/test-u32-normcmp.c: Include it.
45536         (test_nonascii): New function, extracted from main. Add some more
45537         tests.
45538         (main): Invoke test_ascii and test_nonascii.
45539         * modules/uninorm/u32-normcmp-tests (Files): Add
45540         tests/uninorm/test-u32-normcmp.h.
45541         (Depends-on): Remove uninorm/u32-normcmp.
45542
45543         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45544         tests/uninorm/test-u16-normcmp.c.
45545         * tests/uninorm/test-u16-normcmp.c: Include it.
45546         (test_nonascii): New function, extracted from main. Add some more
45547         tests.
45548         (main): Invoke test_ascii and test_nonascii.
45549         * modules/uninorm/u16-normcmp-tests (Files): Add
45550         tests/uninorm/test-u16-normcmp.h.
45551         (Depends-on): Remove uninorm/u16-normcmp.
45552
45553         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45554         tests/uninorm/test-u8-normcmp.c.
45555         * tests/uninorm/test-u8-normcmp.c: Include it.
45556         (test_nonascii): New function, extracted from main. Add some more
45557         tests.
45558         (main): Invoke test_ascii and test_nonascii.
45559         * modules/uninorm/u8-normcmp-tests (Files): Add
45560         tests/uninorm/test-u8-normcmp.h.
45561         (Depends-on): Remove uninorm/u8-normcmp.
45562
45563 2009-03-07  Bruno Haible  <bruno@clisp.org>
45564
45565         New module 'uninorm/u32-normcoll'.
45566         * lib/uninorm/u32-normcoll.c: New file.
45567         * modules/uninorm/u32-normcoll: New file.
45568
45569         New module 'uninorm/u16-normcoll'.
45570         * lib/uninorm/u16-normcoll.c: New file.
45571         * modules/uninorm/u16-normcoll: New file.
45572
45573         New module 'uninorm/u8-normcoll'.
45574         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45575         declarations.
45576         * lib/uninorm/u8-normcoll.c: New file.
45577         * lib/uninorm/u-normcoll.h: New file.
45578         * modules/uninorm/u8-normcoll: New file.
45579
45580         New module 'uninorm/u32-normxfrm'.
45581         * lib/uninorm/u32-normxfrm.c: New file.
45582         * modules/uninorm/u32-normxfrm: New file.
45583
45584         New module 'uninorm/u16-normxfrm'.
45585         * lib/uninorm/u16-normxfrm.c: New file.
45586         * modules/uninorm/u16-normxfrm: New file.
45587
45588         New module 'uninorm/u8-normxfrm'.
45589         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45590         declarations.
45591         * lib/uninorm/u8-normxfrm.c: New file.
45592         * lib/uninorm/u-normxfrm.h: New file.
45593         * modules/uninorm/u8-normxfrm: New file.
45594
45595 2009-03-07  Bruno Haible  <bruno@clisp.org>
45596
45597         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45598         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45599         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45600
45601 2009-03-07  Bruno Haible  <bruno@clisp.org>
45602
45603         New module 'memxfrm'.
45604         * lib/memxfrm.h: New file.
45605         * lib/memxfrm.c: New file.
45606         * modules/memxfrm: New file.
45607
45608 2009-03-07  Bruno Haible  <bruno@clisp.org>
45609
45610         New module 'memcmp2'.
45611         * lib/memcmp2.h: New file.
45612         * lib/memcmp2.c: New file.
45613         * modules/memcmp2: New file.
45614
45615 2009-03-07  Bruno Haible  <bruno@clisp.org>
45616
45617         Tests for module 'uninorm/decomposing-form'.
45618         * modules/uninorm/decomposing-form-tests: New file.
45619         * tests/uninorm/test-decomposing-form.c: New file.
45620
45621         New module 'uninorm/decomposing-form'.
45622         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45623         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45624         Add 'decomposing_variant' field.
45625         * lib/uninorm/decomposing-form.c: New file.
45626         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45627         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45628         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45629         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45630         * modules/uninorm/decomposing-form: New file.
45631         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45632         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45633
45634 2009-03-07  Bruno Haible  <bruno@clisp.org>
45635
45636         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45637         strings.
45638
45639 2009-03-06  Bruno Haible  <bruno@clisp.org>
45640
45641         Tests for module 'uninorm/u32-normcmp'.
45642         * tests/uninorm/test-u32-normcmp.c: New file.
45643         * modules/uninorm/u32-normcmp-tests: New file.
45644
45645         Tests for module 'uninorm/u16-normcmp'.
45646         * tests/uninorm/test-u16-normcmp.c: New file.
45647         * modules/uninorm/u16-normcmp-tests: New file.
45648
45649         Tests for module 'uninorm/u8-normcmp'.
45650         * tests/uninorm/test-u8-normcmp.c: New file.
45651         * modules/uninorm/u8-normcmp-tests: New file.
45652
45653         New module 'uninorm/u32-normcmp'.
45654         * lib/uninorm/u32-normcmp.c: New file.
45655         * modules/uninorm/u32-normcmp: New file.
45656
45657         New module 'uninorm/u16-normcmp'.
45658         * lib/uninorm/u16-normcmp.c: New file.
45659         * modules/uninorm/u16-normcmp: New file.
45660
45661         New module 'uninorm/u8-normcmp'.
45662         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45663         declarations.
45664         * lib/uninorm/u8-normcmp.c: New file.
45665         * lib/uninorm/u-normcmp.h: New file.
45666         * modules/uninorm/u8-normcmp: New file.
45667
45668 2009-03-06  Bruno Haible  <bruno@clisp.org>
45669
45670         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45671         Reported by Eric Blake.
45672
45673 2009-03-06  Eric Blake  <ebb9@byu.net>
45674             Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45677         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45678         condition.
45679         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45680         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45681         condition.
45682         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45683
45684 2009-03-06  Eric Blake  <ebb9@byu.net>
45685
45686         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45687         to avoid compiler warnings.
45688         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45689
45690 2009-03-05  Bruno Haible  <bruno@clisp.org>
45691
45692         * tests/test-ftell.c (main): Disable test beyond end of file on
45693         FreeMiNT.
45694         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45695
45696 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45697
45698         * lib/filevercmp.c: Move hidden files up in ordering.
45699         * tests/test-filevercmp.c: Add tests for hidden files.
45700
45701 2009-03-04  Bruno Haible  <bruno@clisp.org>
45702
45703         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45704         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45705         AM_CFLAGS.
45706         Reported by Simon Josefsson.
45707
45708 2009-03-03  Bruno Haible  <bruno@clisp.org>
45709
45710         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45711         Reported by Simon Josefsson.
45712
45713         * doc/ld-version-script.texi: Update node reference.
45714
45715 2009-03-03  Bruno Haible  <bruno@clisp.org>
45716
45717         * modules/visibility (License): Change to 'unlimited'.
45718         Suggested by Simon Josefsson.
45719
45720 2009-03-03  Jim Meyering  <meyering@redhat.com>
45721
45722         unlinkdir: cannot_unlink_dir may modify process state
45723         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45724         it's neither thread-safe nor appropriate for use in a library.
45725
45726 2009-03-03  Eric Blake  <ebb9@byu.net>
45727
45728         test-closein: silence test under Darwin
45729         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45730         care if it dies from EPIPE or EBADF.
45731
45732 2009-03-03  Bruno Haible  <bruno@clisp.org>
45733
45734         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45735         earlier.
45736         * doc/visibility.texi: Fix @node and @section.
45737
45738 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45739
45740         * doc/gnulib.texi: Link to sections for ld version script and
45741         visibility.
45742         * doc/visibility.texi: Add @node and @section.
45743         * modules/ld-version-script: New module.
45744         * m4/ld-version-script.m4: New file.
45745         * doc/ld-version-script.texi: New file.
45746
45747 2009-03-02  David Lutterkort  <lutter@redhat.com>
45748
45749         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45751
45752 2009-03-02  Bruno Haible  <bruno@clisp.org>
45753
45754         * doc/visibility.texi: Mention libtool's -export-symbols option.
45755
45756 2009-03-02  Jim Meyering  <meyering@redhat.com>
45757
45758         announce-gen: new option: --no-print-checksums
45759         * build-aux/announce-gen (usage): Describe it.
45760         (print_checksums): Print a newline here, not in the [*] footnote.
45761         (main): Honor it.
45762
45763 2009-03-01  Bruno Haible  <bruno@clisp.org>
45764
45765         Use socklen_t in the native Windows replacements prototypes.
45766         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45767         instead of 'int'.
45768         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45769         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45770         * modules/getsockopt (Depends-on): Add socklen.
45771         * modules/setsockopt (Depends-on): Add socklen.
45772
45773 2009-03-01  Bruno Haible  <bruno@clisp.org>
45774
45775         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45776         least 4.2.
45777
45778 2009-03-01  Eric Blake  <ebb9@byu.net>
45779             Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45782         error messages.
45783         * lib/wait-process.c (wait_subprocess): Omit error message about
45784         deadly signal sent to the child of termsigp != NULL.
45785
45786 2009-03-01  Eric Blake  <ebb9@byu.net>
45787
45788         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45789
45790 2009-03-01  Bruno Haible  <bruno@clisp.org>
45791
45792         Avoid a gcc warning.
45793         * tests/test-sched.c (b): Make global.
45794         Reported by Eric Blake.
45795
45796 2009-01-19  Martin Lambers  <marlam@marlam.de>
45797
45798         Provide POSIX semantics for socket timeout options on W32.
45799         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45800         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45801         * modules/setsockopt: Depend on sys_time module for struct timeval.
45802         * modules/getsockopt: Depend on sys_time module for struct timeval.
45803
45804 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45805
45806         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45807         __USE_GNU, for consistency with netdb.in.h.
45808         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45809
45810 2009-03-01  Bruno Haible  <bruno@clisp.org>
45811
45812         More support for FreeMiNT.
45813         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45814         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45815
45816 2009-03-01  Bruno Haible  <bruno@clisp.org>
45817
45818         More support for FreeMiNT.
45819         * lib/fpurge.c (fpurge): Correct last commit.
45820         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45821
45822 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45823
45824         Fix unportable awk script in vc-list-files.
45825         * build-aux/vc-list-files: In the replacement awk script, use
45826         substr with a second argument of 1, not zero.
45827         Report by Simon Josefsson.
45828
45829 2009-02-28  Bruno Haible  <bruno@clisp.org>
45830
45831         More support for FreeMiNT.
45832         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45833         to FreeMiNT today.
45834         * lib/fwriting.c (fwriting): Likewise.
45835         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45836
45837 2009-02-28  Bruno Haible  <bruno@clisp.org>
45838
45839         * tests/test-freadseek.c (main): Disable test beyond end of file on
45840         FreeMiNT.
45841         * tests/test-ftello.c (main): Likewise.
45842         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45843
45844 2009-02-28  Bruno Haible  <bruno@clisp.org>
45845
45846         Add tentative support for FreeMiNT.
45847         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45848         * lib/fpurge.c (fpurge): Likewise.
45849         * lib/freadable.c (freadable): Likewise.
45850         * lib/freading.c (freading): Likewise.
45851         * lib/freadptr.c (freadptr): Likewise.
45852         * lib/freadseek.c (freadptrinc): Likewise.
45853         * lib/fseeko.c (rpl_fseeko): Likewise.
45854         * lib/fseterr.c (fseterr): Likewise.
45855         * lib/fwritable.c (fwritable): Likewise.
45856         * lib/fwriting.c (fwriting): Likewise.
45857         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45858         Hourihane.
45859         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45860
45861 2009-02-28  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45864         SIGCHLD.
45865         Reported by Jim Meyering.
45866
45867 2009-02-28  Bruno Haible  <bruno@clisp.org>
45868
45869         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45870         Mention the results of these tests on various platforms.
45871         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45872         order.
45873         * doc/posix-functions/printf.texi: Likewise.
45874         * doc/posix-functions/snprintf.texi: Likewise.
45875         * doc/posix-functions/sprintf.texi: Likewise.
45876         * doc/posix-functions/vfprintf.texi: Likewise.
45877         * doc/posix-functions/vprintf.texi: Likewise.
45878         * doc/posix-functions/vsnprintf.texi: Likewise.
45879         * doc/posix-functions/vsprintf.texi: Likewise.
45880         * doc/glibc-functions/obstack_printf.texi: Likewise.
45881         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45882
45883 2009-02-28  Bruno Haible  <bruno@clisp.org>
45884
45885         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45886         Reported by Loïc Minier <lool@dooz.org>.
45887
45888 2009-02-27  Bruno Haible  <bruno@clisp.org>
45889
45890         * gnulib-tool (func_import): Make the sed expression used to create the
45891         sed script for updating the .gitignore file POSIX compliant.
45892         Reported by Eric Blake.
45893
45894 2009-02-27  Bruno Haible  <bruno@clisp.org>
45895
45896         * gnulib-tool (sed): Don't alias as "sed --posix".
45897         Reported by Eric Blake.
45898
45899 2009-02-27  Bruno Haible  <bruno@clisp.org>
45900
45901         Avoid test link errors.
45902         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45903         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45904         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45905         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45907
45908 2009-02-27  Bruno Haible  <bruno@clisp.org>
45909
45910         Avoid spurious "(cached)" in configure output.
45911         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45912         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45913         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45914         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45915         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45916         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45917         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45918         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45919         Reported by Eric Blake.
45920
45921 2009-02-27  Eric Blake  <ebb9@byu.net>
45922
45923         printf: fix regression in previous patch
45924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45925
45926 2009-02-27  Bruno Haible  <bruno@clisp.org>
45927
45928         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45929         value.
45930         * lib/stdint.in.h: Likewise.
45931         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45932
45933 2009-02-27  Eric Blake  <ebb9@byu.net>
45934
45935         doc: mention more functions added in cygwin 1.7.0
45936         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45937         addition.
45938         * doc/posix-functions/open_wmemstream.texi: Likewise.
45939         * doc/posix-functions/wcsnlen.texi: Likewise.
45940         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45941         * doc/posix-functions/wcstod.texi: Likewise.
45942         * doc/posix-functions/wcstof.texi: Likewise.
45943         * doc/posix-functions/wcstoimax.texi: Likewise.
45944         * doc/posix-functions/wcstok.texi: Likewise.
45945         * doc/posix-functions/wcstoumax.texi: Likewise.
45946
45947         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45949         * doc/posix-functions/fprintf.texi: Update.
45950         * doc/posix-functions/printf.texi: Update.
45951         * doc/posix-functions/snprintf.texi: Update.
45952         * doc/posix-functions/sprintf.texi: Update.
45953         * doc/posix-functions/vfprintf.texi: Update.
45954         * doc/posix-functions/vprintf.texi: Update.
45955         * doc/posix-functions/vsnprintf.texi: Update.
45956         * doc/posix-functions/vsprintf.texi: Update.
45957         * doc/glibc-functions/obstack_printf.texi: Update.
45958         * doc/glibc-functions/obstack_vprintf.texi: Update.
45959
45960 2009-02-26  Eric Blake  <ebb9@byu.net>
45961
45962         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45963         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45964         compilation bug by using runtime conversion.
45965         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45966         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45967         * modules/ceill-tests (Files): Use nan.h.
45968         * modules/floorl-tests (Files): Likewise.
45969         * modules/frexpl-tests (Files): Likewise.
45970         * modules/isnanl-tests (Files): Likewise.
45971         * modules/ldexpl-tests (Files): Likewise.
45972         * modules/roundl-tests (Files): Likewise.
45973         * modules/truncl-tests (Files): Likewise.
45974         * tests/test-ceill.c (main): Use a working NaN.
45975         * tests/test-floorl.c (main): Likewise.
45976         * tests/test-frexpl.c (main): Likewise.
45977         * tests/test-isnan.c (test_long_double): Likewise.
45978         * tests/test-isnanl.h (main): Likewise.
45979         * tests/test-ldexpl.h (main): Likewise.
45980         * tests/test-roundl.h (main): Likewise.
45981         * tests/test-truncl.h (main): Likewise.
45982         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45983
45984 2009-02-26  Eric Blake  <ebb9@byu.net>
45985             Bruno Haible  <bruno@clisp.org>
45986
45987         Work around a *printf bug with %ls on Solaris.
45988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45989         precision is specified, sprintf stops converting the wide string
45990         argument when the number of bytes that have been produced by this
45991         conversion equals or exceeds the precision.
45992         * doc/posix-functions/fprintf.texi: Update.
45993         * doc/posix-functions/printf.texi: Update.
45994         * doc/posix-functions/snprintf.texi: Update.
45995         * doc/posix-functions/sprintf.texi: Update.
45996         * doc/posix-functions/vfprintf.texi: Update.
45997         * doc/posix-functions/vprintf.texi: Update.
45998         * doc/posix-functions/vsnprintf.texi: Update.
45999         * doc/posix-functions/vsprintf.texi: Update.
46000         * doc/glibc-functions/obstack_printf.texi: Update.
46001         * doc/glibc-functions/obstack_vprintf.texi: Update.
46002
46003 2009-02-26  Eric Blake  <ebb9@byu.net>
46004
46005         stdlib: favor compiler check of random.h
46006         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46007         to avoid an ObjC random.h installed by Swarm.
46008
46009 2009-02-26  Bruno Haible  <bruno@clisp.org>
46010
46011         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46012         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46013         Reported by Gary V. Vaughan <gary@gnu.org>.
46014
46015 2009-02-26  Bruno Haible  <bruno@clisp.org>
46016
46017         Fix *printf behaviour regarding the %ls directive.
46018         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46019         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46020         NEED_PRINTF_DIRECTIVE_LS.
46021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46022         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46024         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46025         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46026         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46029         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46032         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46036         * doc/posix-functions/fprintf.texi: Update.
46037         * doc/posix-functions/printf.texi: Update.
46038         * doc/posix-functions/snprintf.texi: Update.
46039         * doc/posix-functions/sprintf.texi: Update.
46040         * doc/posix-functions/vfprintf.texi: Update.
46041         * doc/posix-functions/vprintf.texi: Update.
46042         * doc/posix-functions/vsnprintf.texi: Update.
46043         * doc/posix-functions/vsprintf.texi: Update.
46044         * doc/glibc-functions/obstack_printf.texi: Update.
46045         * doc/glibc-functions/obstack_vprintf.texi: Update.
46046         Reported by Eric Blake.
46047
46048 2009-02-25  Bruno Haible  <bruno@clisp.org>
46049
46050         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46051         with known value.
46052         Reported by Gary V. Vaughan <gary@gnu.org>.
46053
46054 2009-02-25  Bruno Haible  <bruno@clisp.org>
46055
46056         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46057         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46058         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46059         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46060         Reported by Gary V. Vaughan <gary@gnu.org>.
46061
46062 2009-02-25  Bruno Haible  <bruno@clisp.org>
46063
46064         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46065         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46066         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46067         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46068         Reported by Gary V. Vaughan <gary@gnu.org>.
46069
46070 2009-02-25  Eric Blake  <ebb9@byu.net>
46071
46072         tests: skip fseek/ftell tests if ungetc is broken
46073         * m4/ungetc.m4: New file.
46074         * modules/fseek-tests: Split test, so ungetc dependency is
46075         separate from rest of test.
46076         * modules/fseeko-tests: Likewise.
46077         * modules/ftell-tests: Likewise.
46078         * modules/ftello-tests: Likewise.
46079         * tests/test-fseek.c (main): Isolate ungetc dependency.
46080         * tests/test-fseeko.c (main): Likewise.
46081         * tests/test-ftell.c (main): Likewise.
46082         * tests/test-ftello.c (main): Likewise.
46083         * tests/test-fseek2.sh: New file.
46084         * tests/test-fseeko2.sh: Likewise.
46085         * tests/test-ftell2.sh: Likewise.
46086         * tests/test-ftello2.sh: Likewise.
46087
46088 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46089
46090         test-getaddrinfo: fix usage of skip return code 77
46091         * tests/test-gettaddrinfo.c: Return skip code 77 only
46092         for first occurance of skip (4x77 is not 77)
46093
46094 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46095
46096         strtod: avoid C99 decl-after-statement
46097         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46098
46099 2009-02-24  Eric Blake  <ebb9@byu.net>
46100
46101         strtod: detect HP-UX 11.31 bug
46102         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46103         Reported by Gary V. Vaughan.
46104
46105 2009-02-23  Bruno Haible  <bruno@clisp.org>
46106
46107         Fix invalid read past end of memory block.
46108         * lib/vasnprintf.c (DCHAR_SET): Define.
46109         (local_wcslen): Define only when needed.
46110         (local_strnlen, local_wcsnlen): New functions.
46111         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46112         directives that involve a conversion ourselves.
46113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46114         wcsnlen, mbrtowc, wcrtomb.
46115         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46116         * tests/test-vasprintf-posix.c (test_function): Likewise.
46117         * tests/test-snprintf-posix.h (test_function): Likewise.
46118         * tests/test-sprintf-posix.h (test_function): Likewise.
46119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46120
46121 2009-02-22  Bruno Haible  <bruno@clisp.org>
46122
46123         Implement new clarified decomposition of Hangul syllables.
46124         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46125         of type LTV, return only a pairwise decomposition.
46126         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46127         Likewise.
46128         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46129         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46130         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46131
46132 2009-02-22  Bruno Haible  <bruno@clisp.org>
46133
46134         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46135         zero-length results and shrink excess allocated memory.
46136         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46137         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46138         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46139         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46140         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46141         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46142         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46143         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46144         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46145         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46146         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46147         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46148
46149 2009-02-21  Bruno Haible  <bruno@clisp.org>
46150
46151         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46152         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46153         spaces after a period. Put a space between a macro name and its
46154         argument list. Trivial rewordings.
46155         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46156         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46157         (main): Return 0 explicitly.
46158
46159 2009-02-21  Bruno Haible  <bruno@clisp.org>
46160
46161         Tests for module 'uninorm/filter'.
46162         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46163         * modules/uninorm/filter-tests: New file.
46164
46165         New module 'uninorm/filter'.
46166         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46167         uninorm_filter_flush, uninorm_filter_free): New declarations.
46168         * lib/uninorm/uninorm-filter.c: New file.
46169         * modules/uninorm/filter: New file.
46170
46171 2009-02-21  Bruno Haible  <bruno@clisp.org>
46172
46173         Tests for module 'uninorm/nfkc'.
46174         * tests/uninorm/test-nfkc.c: New file.
46175         * tests/uninorm/test-u8-nfkc.c: New file.
46176         * tests/uninorm/test-u16-nfkc.c: New file.
46177         * tests/uninorm/test-u32-nfkc.c: New file.
46178         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46179         * tests/uninorm/test-u32-nfkc-big.c: New file.
46180         * modules/uninorm/nfkc-tests: New file.
46181
46182         New module 'uninorm/nfkc'.
46183         * lib/uninorm/nfkc.c: New file.
46184         * modules/uninorm/nfkc: New file.
46185
46186         Tests for module 'uninorm/nfkd'.
46187         * tests/uninorm/test-nfkd.c: New file.
46188         * tests/uninorm/test-u8-nfkd.c: New file.
46189         * tests/uninorm/test-u16-nfkd.c: New file.
46190         * tests/uninorm/test-u32-nfkd.c: New file.
46191         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46192         * tests/uninorm/test-u32-nfkd-big.c: New file.
46193         * modules/uninorm/nfkd-tests: New file.
46194
46195         New module 'uninorm/nfkd'.
46196         * lib/uninorm/nfkd.c: New file.
46197         * modules/uninorm/nfkd: New file.
46198
46199         Tests for module 'uninorm/nfc'.
46200         * tests/uninorm/test-nfc.c: New file.
46201         * tests/uninorm/test-u8-nfc.c: New file.
46202         * tests/uninorm/test-u16-nfc.c: New file.
46203         * tests/uninorm/test-u32-nfc.c: New file.
46204         * tests/uninorm/test-u32-nfc-big.sh: New file.
46205         * tests/uninorm/test-u32-nfc-big.c: New file.
46206         * modules/uninorm/nfc-tests: New file.
46207
46208         New module 'uninorm/nfc'.
46209         * lib/uninorm/nfc.c: New file.
46210         * modules/uninorm/nfc: New file.
46211
46212         Tests for module 'uninorm/nfd'.
46213         * tests/uninorm/test-nfd.c: New file.
46214         * tests/uninorm/test-u8-nfd.c: New file.
46215         * tests/uninorm/test-u16-nfd.c: New file.
46216         * tests/uninorm/test-u32-nfd.c: New file.
46217         * tests/uninorm/test-u32-nfd-big.sh: New file.
46218         * tests/uninorm/test-u32-nfd-big.c: New file.
46219         * tests/uninorm/test-u32-normalize-big.h: New file.
46220         * tests/uninorm/test-u32-normalize-big.c: New file.
46221         * tests/uninorm/NormalizationTest.txt: New file, created from
46222         Unicode 5.1.0 NormalizationTest.txt.
46223         * modules/uninorm/nfd-tests: New file.
46224
46225         New module 'uninorm/nfd'.
46226         * lib/uninorm/nfd.c: New file.
46227         * modules/uninorm/nfd: New file.
46228
46229         New module 'uninorm/u32-normalize'.
46230         * lib/uninorm/u32-normalize.c: New file.
46231         * modules/uninorm/u32-normalize: New file.
46232
46233         New module 'uninorm/u16-normalize'.
46234         * lib/uninorm/u16-normalize.c: New file.
46235         * modules/uninorm/u16-normalize: New file.
46236
46237         New module 'uninorm/u8-normalize'.
46238         * lib/uninorm/u8-normalize.c: New file.
46239         * lib/uninorm/normalize-internal.h: New file.
46240         * lib/uninorm/u-normalize-internal.h: New file.
46241         * modules/uninorm/u8-normalize: New file.
46242
46243         New module 'uninorm/decompose-internal'.
46244         * lib/uninorm/decompose-internal.c: New file.
46245         * modules/uninorm/decompose-internal: New file.
46246
46247         Tests for module 'uninorm/composition'.
46248         * tests/uninorm/test-composition.c: New file.
46249         * modules/uninorm/composition-tests: New file.
46250
46251         New module 'uninorm/composition'.
46252         * lib/uninorm/composition.c: New file.
46253         * lib/uninorm/composition-table.gperf: New file, generated by
46254         gen-uni-tables.
46255         * modules/uninorm/composition: New file.
46256
46257         Tests for module 'uninorm/compat-decomposition'.
46258         * tests/uninorm/test-compat-decomposition.c: New file.
46259         * modules/uninorm/compat-decomposition-tests: New file.
46260
46261         New module 'uninorm/compat-decomposition'.
46262         * lib/uninorm/decompose-internal.h: New file.
46263         * lib/uninorm/compat-decomposition.c: New file.
46264         * modules/uninorm/compat-decomposition: New file.
46265
46266         Tests for module 'uninorm/canonical-decomposition'.
46267         * tests/uninorm/test-canonical-decomposition.c: New file.
46268         * modules/uninorm/canonical-decomposition-tests: New file.
46269
46270         New module 'uninorm/canonical-decomposition'.
46271         * lib/uninorm/canonical-decomposition.c: New file.
46272         * modules/uninorm/canonical-decomposition: New file.
46273
46274         Tests for module 'uninorm/decomposition'.
46275         * tests/uninorm/test-decomposition.c: New file.
46276         * modules/uninorm/decomposition-tests: New file.
46277
46278         New module 'uninorm/decomposition'.
46279         * lib/uninorm/decomposition.c: New file.
46280         * modules/uninorm/decomposition: New file.
46281
46282         New module 'uninorm/decomposition-table'.
46283         * lib/uninorm/decomposition-table.h: New file.
46284         * lib/uninorm/decomposition-table.c: New file.
46285         * lib/uninorm/decomposition-table1.h: New file, generated by
46286         gen-uni-tables.
46287         * lib/uninorm/decomposition-table2.h: New file, generated by
46288         gen-uni-tables.
46289         * modules/uninorm/decomposition-table: New file.
46290
46291         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46292         (UC_DECOMP_*): New enumeration items.
46293         (get_decomposition): New function.
46294         (struct decomp_table): New type.
46295         (output_decomposition, output_decomposition_tables): New functions.
46296         (unicode_composition_exclusions): New variable.
46297         (fill_composition_exclusions, debug_output_composition_tables): New
46298         functions.
46299         (main): Accept one more argument. Invoke fill_composition_exclusions.
46300         Output decomposition and composition tables.
46301
46302         New module 'uninorm/base'.
46303         * lib/uninorm.h: New file.
46304         * lib/unictype.h: Update comment.
46305         * modules/uninorm/base: New file.
46306
46307 2009-02-21  David Lutterkort  <lutter@redhat.com>
46308
46309         Tests for module 'safe-alloc'.
46310         * tests/test-safe-alloc.c: New file.
46311         * modules/safe-alloc-tests: New file.
46312
46313         New module 'safe-alloc'.
46314         * lib/safe-alloc.h: New file.
46315         * lib/safe-alloc.c: New file.
46316         * m4/safe-alloc.m4: New file.
46317         * modules/safe-alloc: New file.
46318         * doc/safe-alloc.texi: New file.
46319         * doc/gnulib.texi: Include it.
46320         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46321         safe-alloc.
46322
46323 2009-02-18  Bruno Haible  <bruno@clisp.org>
46324
46325         Fix link error on non-glibc systems.
46326         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46327         variable.
46328         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46329
46330 2009-02-18  Jim Meyering  <meyering@redhat.com>
46331
46332         fts: avoid used-uninitialized error due to recent change
46333         * lib/fts.c (fts_read): Guard uses of the new member,
46334         parent->fts_n_dirs_remaining, since it's not relevant for
46335         the parent of a directory specified on the command-line.
46336
46337 2009-02-17  James Youngman  <jay@gnu.org>
46338             Bruno Haible  <bruno@clisp.org>
46339
46340         * m4/include_next.m4: Reformulate comment.
46341
46342 2009-02-16  Jim Meyering  <meyering@redhat.com>
46343
46344         fts: add #if guards so that the fts_lgpl module still builds
46345         * lib/fts.c: Guard just-added hash-table-using parts with
46346         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46347         Reported by Simon Josefsson.
46348
46349 2009-02-15  Bruno Haible  <bruno@clisp.org>
46350
46351         * modules/array-mergesort-tests: New file.
46352         * tests/test-array-mergesort.c: New file.
46353
46354         New module 'array-mergesort'.
46355         * modules/array-mergesort: New file.
46356         * lib/array-mergesort.h: New file.
46357
46358 2009-02-15  Bruno Haible  <bruno@clisp.org>
46359
46360         Fix 2009-02-07 commit.
46361         * lib/gen-uni-tables.c (output_predicate, output_category,
46362         output_combclass, output_bidi_category, output_decimal_digit,
46363         output_digit, output_numeric, output_mirror, output_scripts,
46364         output_ident_category, output_simple_mapping): Fix format directives.
46365         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46366
46367 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46368
46369         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46370         fixes are available from IBM.
46371
46372 2009-02-13  Jim Meyering  <meyering@redhat.com>
46373
46374         fts: arrange not to stat non-directories in more cases
46375         This makes GNU find (when it doesn't need to stat each file)
46376         *much* more efficient at traversing reiserfs file systems.
46377         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46378         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46379         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46380         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46381         (leaf_optimization_applies): New function.
46382         (LCO_hash, LCO_compare): New helper functions.
46383         (link_count_optimize_ok): New function.
46384         (fts_stat): Initialize new member (if dir).
46385         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46386         we've just stat'ed a directory.  Skip the stat call when possible.
46387         ---
46388         Note this AFS-related exchange:
46389         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46390         and note find's pioctl call in find/fstype.c.
46391         But that is necessary only if you want to enable the
46392         optimization for AFS, and for now, I don't.
46393
46394         fts: move a function definition "up" (no semantic change)
46395         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46396         "up" to precede upcoming use of a related function.
46397
46398 2009-02-11  Jim Meyering  <meyering@redhat.com>
46399
46400         fts: correct internal computation of nlinks (optimization-related)
46401         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46402         whether the current entry is a directory, so don't test it.
46403
46404 2009-02-10  Bruno Haible  <bruno@clisp.org>
46405
46406         Tests for module 'uniwbrk/ulc-wordbreaks'.
46407         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46408         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46409         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46410
46411         Tests for module 'uniwbrk/u32-wordbreaks'.
46412         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46413         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46414
46415         Tests for module 'uniwbrk/u16-wordbreaks'.
46416         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46417         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46418
46419         Tests for module 'uniwbrk/u8-wordbreaks'.
46420         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46421         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46422
46423 2009-02-10  Bruno Haible  <bruno@clisp.org>
46424
46425         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46426         property.
46427         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46428         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46429         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46430
46431 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46432
46433         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46434         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46435
46436 2009-02-10  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46439         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46440         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46441         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46442         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46443         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46444
46445 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46446
46447         * lib/sockets.h (gl_fd_to_handle): New function.
46448
46449         * tests/test-sockets.c: Call gl_fd_to_handle.
46450
46451 2009-02-09  Bruno Haible  <bruno@clisp.org>
46452
46453         * doc/havelib.texi: Document the conventions on bi-arch systems.
46454
46455 2009-02-08  Bruno Haible  <bruno@clisp.org>
46456
46457         Document the AC_LIB_LINKFLAGS macro.
46458         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46459         * doc/gnulib.texi: Include it.
46460
46461 2009-02-08  Bruno Haible  <bruno@clisp.org>
46462
46463         Fix wrong order of sections, compared to TOC.
46464         * doc/gnulib.texi: Include relocatable-maint.texi after the
46465         "Regular expressions" node, not before.
46466
46467 2009-02-08  Bruno Haible  <bruno@clisp.org>
46468
46469         Tests for module 'unicase/totitle'.
46470         * modules/unicase/totitle-tests: New file.
46471
46472         Tests for module 'unicase/tolower'.
46473         * modules/unicase/tolower-tests: New file.
46474
46475         Tests for module 'unicase/toupper'.
46476         * modules/unicase/toupper-tests: New file.
46477         * tests/unicase/test-mapping-part1.h: New file.
46478         * tests/unicase/test-mapping-part2.h: New file.
46479
46480         New module 'unicase/totitle'.
46481         * modules/unicase/totitle: New file.
46482         * lib/unicase/totitle.c: New file.
46483
46484         New module 'unicase/tolower'.
46485         * modules/unicase/tolower: New file.
46486         * lib/unicase/tolower.c: New file.
46487
46488         New module 'unicase/toupper'.
46489         * modules/unicase/toupper: New file.
46490         * lib/unicase/toupper.c: New file.
46491         * lib/unicase/simple-mapping.h: New file.
46492
46493         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46494         (mapping_table): New structure.
46495         (output_simple_mapping): New function.
46496         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46497         * modules/gen-uni-tables (Description): Update.
46498         * lib/unicase/toupper.h: New file, automatically generated by
46499         gen-uni-tables.
46500         * lib/unicase/tolower.h: New file, automatically generated by
46501         gen-uni-tables.
46502         * lib/unicase/totitle.h: New file, automatically generated by
46503         gen-uni-tables.
46504         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46505         gen-uni-tables.
46506         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46507         gen-uni-tables.
46508         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46509         gen-uni-tables.
46510
46511         New module 'unicase/base'.
46512         * modules/unicase/base: New file.
46513         * lib/unicase.h: New file.
46514
46515 2009-02-08  Bruno Haible  <bruno@clisp.org>
46516
46517         New module 'uniwbrk/ulc-wordbreaks'.
46518         * modules/uniwbrk/ulc-wordbreaks: New file.
46519         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46520
46521         New module 'uniwbrk/u32-wordbreaks'.
46522         * modules/uniwbrk/u32-wordbreaks: New file.
46523         * lib/uniwbrk/u32-wordbreaks.c: New file.
46524
46525         New module 'uniwbrk/u16-wordbreaks'.
46526         * modules/uniwbrk/u16-wordbreaks: New file.
46527         * lib/uniwbrk/u16-wordbreaks.c: New file.
46528
46529         New module 'uniwbrk/u8-wordbreaks'.
46530         * modules/uniwbrk/u8-wordbreaks: New file.
46531         * lib/uniwbrk/u8-wordbreaks.c: New file.
46532         * lib/uniwbrk/u-wordbreaks.h: New file.
46533
46534         New module 'uniwbrk/table'.
46535         * modules/uniwbrk/table: New file.
46536         * lib/uniwbrk/wbrktable.h: New file.
46537         * lib/uniwbrk/wbrktable.c: New file.
46538
46539         New module 'uniwbrk/wordbreak-property'.
46540         * modules/uniwbrk/wordbreak-property: New file.
46541         * lib/uniwbrk/wordbreak-property.c: New file.
46542
46543         * lib/gen-uni-tables.c (WBP_*): New enum items.
46544         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46545         (unicode_org_wbp): New variable.
46546         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46547         New functions.
46548         (wbp_table): New structure.
46549         (output_wbp, output_wbrk_tables): New functions.
46550         (main): Accept additional argument. Invoke fill_org_wbp,
46551         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46552         output_wbrk_tables.
46553         * modules/gen-uni-tables (Description): Update.
46554         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46555         gen-uni-tables.
46556
46557         New module 'uniwbrk/base'.
46558         * modules/uniwbrk/base: New file.
46559         * lib/uniwbrk.h: New file.
46560
46561 2009-02-08  Bruno Haible  <bruno@clisp.org>
46562
46563         Update to Unicode 5.1.0.
46564         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46565         U+2185..U+2188.
46566         (is_property_default_ignorable_code_point): Don't include characters
46567         of category Cc or Cs and not-a-characters.
46568         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46569         U+0D79, U+109E, U+109F, U+A60C.
46570         * lib/unictype/bidi_of.h: Regenerated.
46571         * lib/unictype/blocks.h: Regenerated.
46572         * lib/unictype/categ_C.h: Regenerated.
46573         * lib/unictype/categ_Cf.h: Regenerated.
46574         * lib/unictype/categ_Cn.h: Regenerated.
46575         * lib/unictype/categ_L.h: Regenerated.
46576         * lib/unictype/categ_Ll.h: Regenerated.
46577         * lib/unictype/categ_Lm.h: Regenerated.
46578         * lib/unictype/categ_Lo.h: Regenerated.
46579         * lib/unictype/categ_Lu.h: Regenerated.
46580         * lib/unictype/categ_M.h: Regenerated.
46581         * lib/unictype/categ_Mc.h: Regenerated.
46582         * lib/unictype/categ_Me.h: Regenerated.
46583         * lib/unictype/categ_Mn.h: Regenerated.
46584         * lib/unictype/categ_N.h: Regenerated.
46585         * lib/unictype/categ_Nd.h: Regenerated.
46586         * lib/unictype/categ_Nl.h: Regenerated.
46587         * lib/unictype/categ_No.h: Regenerated.
46588         * lib/unictype/categ_P.h: Regenerated.
46589         * lib/unictype/categ_Pd.h: Regenerated.
46590         * lib/unictype/categ_Pe.h: Regenerated.
46591         * lib/unictype/categ_Pf.h: Regenerated.
46592         * lib/unictype/categ_Pi.h: Regenerated.
46593         * lib/unictype/categ_Po.h: Regenerated.
46594         * lib/unictype/categ_Ps.h: Regenerated.
46595         * lib/unictype/categ_S.h: Regenerated.
46596         * lib/unictype/categ_Sk.h: Regenerated.
46597         * lib/unictype/categ_Sm.h: Regenerated.
46598         * lib/unictype/categ_So.h: Regenerated.
46599         * lib/unictype/categ_of.h: Regenerated.
46600         * lib/unictype/combining.h: Regenerated.
46601         * lib/unictype/ctype_alnum.h: Regenerated.
46602         * lib/unictype/ctype_alpha.h: Regenerated.
46603         * lib/unictype/ctype_graph.h: Regenerated.
46604         * lib/unictype/ctype_lower.h: Regenerated.
46605         * lib/unictype/ctype_print.h: Regenerated.
46606         * lib/unictype/ctype_punct.h: Regenerated.
46607         * lib/unictype/ctype_upper.h: Regenerated.
46608         * lib/unictype/decdigit.h: Regenerated.
46609         * lib/unictype/digit.h: Regenerated.
46610         * lib/unictype/mirror.h: Regenerated.
46611         * lib/unictype/numeric.h: Regenerated.
46612         * lib/unictype/pr_alphabetic.h: Regenerated.
46613         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46614         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46615         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46616         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46617         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46618         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46619         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46620         * lib/unictype/pr_combining.h: Regenerated.
46621         * lib/unictype/pr_dash.h: Regenerated.
46622         * lib/unictype/pr_decimal_digit.h: Regenerated.
46623         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46624         * lib/unictype/pr_deprecated.h: Regenerated.
46625         * lib/unictype/pr_diacritic.h: Regenerated.
46626         * lib/unictype/pr_extender.h: Regenerated.
46627         * lib/unictype/pr_format_control.h: Regenerated.
46628         * lib/unictype/pr_grapheme_base.h: Regenerated.
46629         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46630         * lib/unictype/pr_grapheme_link.h: Regenerated.
46631         * lib/unictype/pr_id_continue.h: Regenerated.
46632         * lib/unictype/pr_id_start.h: Regenerated.
46633         * lib/unictype/pr_ideographic.h: Regenerated.
46634         * lib/unictype/pr_ignorable_control.h: Regenerated.
46635         * lib/unictype/pr_lowercase.h: Regenerated.
46636         * lib/unictype/pr_math.h: Regenerated.
46637         * lib/unictype/pr_numeric.h: Regenerated.
46638         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46639         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46640         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46641         * lib/unictype/pr_other_id_continue.h: Regenerated.
46642         * lib/unictype/pr_other_lowercase.h: Regenerated.
46643         * lib/unictype/pr_other_math.h: Regenerated.
46644         * lib/unictype/pr_punctuation.h: Regenerated.
46645         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46646         * lib/unictype/pr_soft_dotted.h: Regenerated.
46647         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46648         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46649         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46650         * lib/unictype/pr_uppercase.h: Regenerated.
46651         * lib/unictype/pr_xid_continue.h: Regenerated.
46652         * lib/unictype/pr_xid_start.h: Regenerated.
46653         * lib/unictype/pr_zero_width.h: Regenerated.
46654         * lib/unictype/scripts.h: Regenerated.
46655         * lib/unictype/scripts_byname.gperf: Regenerated.
46656         * lib/unictype/sy_java_ident.h: Regenerated.
46657         * lib/unilbrk/lbrkprop1.h: Regenerated.
46658         * lib/unilbrk/lbrkprop2.h: Regenerated.
46659         * tests/unictype/test-categ_C.c: Regenerated.
46660         * tests/unictype/test-categ_Cf.c: Regenerated.
46661         * tests/unictype/test-categ_Cn.c: Regenerated.
46662         * tests/unictype/test-categ_L.c: Regenerated.
46663         * tests/unictype/test-categ_Ll.c: Regenerated.
46664         * tests/unictype/test-categ_Lm.c: Regenerated.
46665         * tests/unictype/test-categ_Lo.c: Regenerated.
46666         * tests/unictype/test-categ_Lu.c: Regenerated.
46667         * tests/unictype/test-categ_M.c: Regenerated.
46668         * tests/unictype/test-categ_Mc.c: Regenerated.
46669         * tests/unictype/test-categ_Me.c: Regenerated.
46670         * tests/unictype/test-categ_Mn.c: Regenerated.
46671         * tests/unictype/test-categ_N.c: Regenerated.
46672         * tests/unictype/test-categ_Nd.c: Regenerated.
46673         * tests/unictype/test-categ_Nl.c: Regenerated.
46674         * tests/unictype/test-categ_No.c: Regenerated.
46675         * tests/unictype/test-categ_P.c: Regenerated.
46676         * tests/unictype/test-categ_Pd.c: Regenerated.
46677         * tests/unictype/test-categ_Pe.c: Regenerated.
46678         * tests/unictype/test-categ_Pf.c: Regenerated.
46679         * tests/unictype/test-categ_Pi.c: Regenerated.
46680         * tests/unictype/test-categ_Po.c: Regenerated.
46681         * tests/unictype/test-categ_Ps.c: Regenerated.
46682         * tests/unictype/test-categ_S.c: Regenerated.
46683         * tests/unictype/test-categ_Sk.c: Regenerated.
46684         * tests/unictype/test-categ_Sm.c: Regenerated.
46685         * tests/unictype/test-categ_So.c: Regenerated.
46686         * tests/unictype/test-ctype_alnum.c: Regenerated.
46687         * tests/unictype/test-ctype_alpha.c: Regenerated.
46688         * tests/unictype/test-ctype_graph.c: Regenerated.
46689         * tests/unictype/test-ctype_lower.c: Regenerated.
46690         * tests/unictype/test-ctype_print.c: Regenerated.
46691         * tests/unictype/test-ctype_punct.c: Regenerated.
46692         * tests/unictype/test-ctype_upper.c: Regenerated.
46693         * tests/unictype/test-decdigit.h: Regenerated.
46694         * tests/unictype/test-digit.h: Regenerated.
46695         * tests/unictype/test-numeric.h: Regenerated.
46696         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46697         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46698         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46699         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46700         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46701         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46702         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46703         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46704         * tests/unictype/test-pr_combining.c: Regenerated.
46705         * tests/unictype/test-pr_dash.c: Regenerated.
46706         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46707         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46708         * tests/unictype/test-pr_deprecated.c: Regenerated.
46709         * tests/unictype/test-pr_diacritic.c: Regenerated.
46710         * tests/unictype/test-pr_extender.c: Regenerated.
46711         * tests/unictype/test-pr_format_control.c: Regenerated.
46712         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46713         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46714         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46715         * tests/unictype/test-pr_id_continue.c: Regenerated.
46716         * tests/unictype/test-pr_id_start.c: Regenerated.
46717         * tests/unictype/test-pr_ideographic.c: Regenerated.
46718         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46719         * tests/unictype/test-pr_lowercase.c: Regenerated.
46720         * tests/unictype/test-pr_math.c: Regenerated.
46721         * tests/unictype/test-pr_numeric.c: Regenerated.
46722         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46723         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46724         Regenerated.
46725         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46726         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46727         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46728         * tests/unictype/test-pr_other_math.c: Regenerated.
46729         * tests/unictype/test-pr_punctuation.c: Regenerated.
46730         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46731         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46732         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46733         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46734         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46735         * tests/unictype/test-pr_uppercase.c: Regenerated.
46736         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46737         * tests/unictype/test-pr_xid_start.c: Regenerated.
46738         * tests/unictype/test-pr_zero_width.c: Regenerated.
46739
46740         Update to Unicode 5.1.0.
46741         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46742         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46743         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46744         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46745         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46746         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46747         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46748         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46749         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46750         (nonspacing_table_ind): Update.
46751         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46752
46753         Update to Unicode 5.1.0.
46754         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46755         code transform.
46756         * lib/uniname/uniname.c (unicode_character_name,
46757         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46758         * lib/uniname/uninames.h: Regenerated.
46759         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46760
46761 2009-02-07  Bruno Haible  <bruno@clisp.org>
46762
46763         Merge gen-ctype and gen-lbrk into a single program.
46764         * lib/gen-uni-tables.c: New file, incorporating
46765         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46766         Add directory prefixes to the names of the generated files.
46767         * lib/unictype/gen-ctype.c: Remove file.
46768         * lib/unilbrk/gen-lbrk.c: Remove file.
46769         * modules/gen-uni-tables: New file.
46770         * modules/unictype/gen-ctype: Remove file.
46771         * modules/unilbrk/gen-lbrk: Remove file.
46772
46773 2009-02-07  Bruno Haible  <bruno@clisp.org>
46774
46775         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46776
46777         New module 'unistr/u32-strcoll'.
46778         * modules/unistr/u32-strcoll: New file.
46779         * lib/unistr/u32-strcoll.c: New file.
46780
46781         New module 'unistr/u16-strcoll'.
46782         * modules/unistr/u16-strcoll: New file.
46783         * lib/unistr/u16-strcoll.c: New file.
46784
46785         New module 'unistr/u8-strcoll'.
46786         * modules/unistr/u8-strcoll: New file.
46787         * lib/unistr/u8-strcoll.c: New file.
46788         * lib/unistr/u-strcoll.h: New file.
46789
46790 2009-02-07  Bruno Haible  <bruno@clisp.org>
46791
46792         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46793         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46794         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46795         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46796         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46797         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46798
46799 2009-02-07  Bruno Haible  <bruno@clisp.org>
46800
46801         Make 64-bit clean.
46802         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46803         output_combclass, output_bidi_category, output_decimal_digit,
46804         output_digit, output_numeric, output_mirror, output_scripts,
46805         output_ident_category): Use proper width specifier in format strings.
46806
46807 2009-02-07  Bruno Haible  <bruno@clisp.org>
46808
46809         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46810         failure behaviour.
46811
46812 2009-02-07  Jim Meyering  <meyering@redhat.com>
46813
46814         regex: avoid compilation failure with upcoming gcc-4.4
46815         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46816         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46817         "... error: integer overflow in preprocessor expression".
46818
46819 2009-02-05  Ben Pfaff  <blp@gnu.org>
46820
46821         Fix link errors on Windows when close module is used.
46822         * modules/close: Add $(LIB_CLOSE) to Link section.
46823         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46824         $(LIB_CLOSE) on Windows.
46825
46826 2009-02-05  Jim Meyering  <meyering@redhat.com>
46827
46828         still avoid unused-parameter warnings, but do it cleanly
46829         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46830         (get_fs_usage): Cast to void instead.
46831         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46832         (dev_from_mount_options, read_file_system_list): Cast to void.
46833         Prompted by Bruno Haible.
46834
46835 2009-02-04  Jim Meyering  <meyering@redhat.com>
46836
46837         fsusage.c: correct copyright year
46838         * lib/fsusage.c: Reflect year in which the change is pushed into
46839
46840         avoid misc. warnings
46841         * lib/fsusage.c (UNUSED_PARAM): Define.
46842         (get_fs_usage): Mark parameter "disk" as unused.
46843         * lib/getugroups.c (getgrent): Use "void" in prototype.
46844         * lib/mountlist.c: Mark unused parameters.
46845         (read_file_system_list): Declare a local with "const".
46846         * lib/nanosleep.c (getnow): Declare static.
46847         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46848
46849         dirfd: set errno upon failure
46850         * lib/dirfd.c: Include <errno.h>.
46851         Set errno to ENOTSUP when returning -1.
46852         * modules/dirfd (Depends-on): Add errno.
46853         Suggested by John Kodis <kodis@comcast.net>.
46854
46855 2009-02-01  Bruno Haible  <bruno@clisp.org>
46856
46857         Don't assume sizeof (long) >= sizeof (void *).
46858         * lib/memcmp.c: Include stdint.h.
46859         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46860         srcp2 to 'const byte *'.
46861         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46862         types to uintptr_t.
46863         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46864         * modules/memcmp (Depends-on): Add stdint.
46865         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46866
46867 2009-01-30  Eric Blake  <ebb9@byu.net>
46868
46869         fix more require-before-expand issues
46870         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46871         expand, AC_PROG_AWK.
46872         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46873
46874 2009-01-28  Eric Blake  <ebb9@byu.net>
46875
46876         version-etc: use consistent URL formatting
46877         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46878         Improve formatting.  Use fputs for string without %.
46879
46880 2009-01-28  Jim Meyering  <meyering@redhat.com>
46881
46882         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46883         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46884         "underquoted definition of NAME" from autoconf-2.59.
46885
46886 2009-01-28  Bruno Haible  <bruno@clisp.org>
46887
46888         * doc/gnulib.texi: Add "Obsolete modules" to index.
46889
46890 2009-01-28  Jim Meyering  <meyering@redhat.com>
46891
46892         useless-if-before-free: recognize more variants
46893         * build-aux/useless-if-before-free: Also recognize e.g.,
46894         if (NULL != p) free (p);
46895
46896 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46897
46898         test-getaddrinfo: skip (don't fail) this test when there's no network
46899         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46900         on the presumption that it means you lack network access.
46901
46902 2009-01-26  Jim Meyering  <meyering@redhat.com>
46903
46904         fflush: avoid warnings on modern systems
46905         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46906         pos and result, into scopes where they're used.
46907
46908 2009-01-26  Eric Blake  <ebb9@byu.net>
46909
46910         Silence warning reintroduced by recent extensions patch.
46911         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46912         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46913         autoconf.
46914
46915         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46916         * m4/00gnulib.m4: New file.
46917         * gnulib-tool (func_get_filelist): Always use it.
46918         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46919         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46920
46921 2009-01-25  Bruno Haible  <bruno@clisp.org>
46922
46923         Make test-quotearg work on MacOS X and AIX.
46924         * tests/test-quotearg.sh: New file.
46925         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46926         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46927         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46928         include <libintl.h>.
46929         (fake_locale): Remove variable.
46930         (gettext, dgettext, dcgettext): Remove functions.
46931         (main): Instead of setting a fake locale, set a real locale. Call
46932         textdomain and bindtextdomain.
46933         * modules/quotearg-tests (Files): Add the new files.
46934         (Depends-on): Add gettext, setenv, unsetenv.
46935         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46936         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46937         Augment TESTS_ENVIRONMENT.
46938
46939 2009-01-25  Bruno Haible  <bruno@clisp.org>
46940
46941         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46942         fr_FR.ISO8859-1 locale on MacOS X.
46943         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46944         ja_JP.eucJP locale on MacOS X.
46945         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46946         zh_CN.GB18030 locale on MacOS X.
46947
46948 2009-01-25  Bruno Haible  <bruno@clisp.org>
46949
46950         Avoid link errors on MacOS X 10.3.
46951         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46952         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46953
46954 2009-01-25  Bruno Haible  <bruno@clisp.org>
46955
46956         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46957         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46958         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46959         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46960         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46961         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46962         posix_spawnattr_init, posix_spawnattr_setsigmask,
46963         posix_spawnattr_setflags, posix_spawnattr_destroy.
46964
46965         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46966         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46967         * modules/execute (Files): Remove m4/posix_spawn.m4.
46968         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46969         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46970         posix_spawnattr_init, posix_spawnattr_setsigmask,
46971         posix_spawnattr_setflags, posix_spawnattr_destroy.
46972
46973 2009-01-25  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/glthread/threadlib.c: Include <stdlib.h>.
46976
46977 2009-01-25  Bruno Haible  <bruno@clisp.org>
46978
46979         * lib/glthread/threadlib.c (dummy): New declaration.
46980
46981 2009-01-25  Bruno Haible  <bruno@clisp.org>
46982
46983         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46984         multibyte characters also for the GB18030 encoding. Don't crash when
46985         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46986
46987 2009-01-25  Bruno Haible  <bruno@clisp.org>
46988
46989         Avoid redefining 'struct random_data' on OSF/1 5.1.
46990         * lib/stdlib.in.h: Include <random.h> if it exists.
46991         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46992         HAVE_RANDOM_H. Include <random.h> when testing whether
46993         'struct random_data' exists.
46994         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46995
46996 2009-01-25  Bruno Haible  <bruno@clisp.org>
46997
46998         Don't install charset.alias on MacOS X >= 10.3.
46999         * lib/localcharset.c (DARWIN7): New macro.
47000         (get_charset_aliases): Hardcode the result for Darwin7.
47001         * modules/localcharset (install-exec-local): Don't install
47002         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47003
47004 2009-01-25  Bruno Haible  <bruno@clisp.org>
47005
47006         Don't install charset.alias on mingw and Cygwin.
47007         * modules/localcharset (install-exec-local): Don't install
47008         charset.alias on mingw and Cygwin, if the file does not yet exist.
47009         The result for these platforms is hardcoded in localcharset.c.
47010
47011 2009-01-25  Bruno Haible  <bruno@clisp.org>
47012
47013         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47015         before requiring AC_USE_SYSTEM_EXTENSIONS.
47016
47017 2009-01-25  Jim Meyering  <meyering@redhat.com>
47018
47019         c-strtod: avoid warnings
47020         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47021         "assignment discards qualifiers from pointer target type" warnings.
47022
47023 2009-01-24  Bruno Haible  <bruno@clisp.org>
47024
47025         Add support for non-UTF-8 locales on MacOS X.
47026         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47027         canonical encodings. For Darwin 7 and newer, don't map traditional
47028         encodings to UTF-8.
47029         Reported by Vincent Lefevre <vincent@vinc17.org>
47030         at <http://savannah.gnu.org/bugs/?25235>.
47031
47032 2009-01-24  Bruno Haible  <bruno@clisp.org>
47033
47034         * doc/gnulib.texi (Obsolete modules): New section.
47035         Reported by Mike Frysinger <vapier@gentoo.org>.
47036
47037 2009-01-24  Bruno Haible  <bruno@clisp.org>
47038
47039         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47040         (%.dvi): New rule.
47041
47042 2009-01-24  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47045         Reported by Eric Blake.
47046
47047 2009-01-24  Bruno Haible  <bruno@clisp.org>
47048
47049         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47050         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47051         Reported by Gary V. Vaughan <gary@gnu.org>.
47052
47053 2009-01-24  Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47056
47057 2009-01-23  Bruno Haible  <bruno@clisp.org>
47058
47059         Make c-strtod, c-strtold usable in libraries.
47060         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47061         (C_STRTOD): Call strdup instead of xstrdup.
47062         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47063         * modules/c-strtold (Depends-on): Likewise.
47064         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47065         * NEWS: Mention the change.
47066         Reported by Michael Gold <mgold@ncf.ca>.
47067
47068 2009-01-23  Jim Meyering  <meyering@redhat.com>
47069
47070         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47071         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47072         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47073
47074 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47075
47076         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47077         GNU CoreUtils.
47078         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47079         * modules/version-etc (Description): Update.
47080
47081 2009-01-22  Bruno Haible  <bruno@clisp.org>
47082
47083         Cache the C locale object.
47084         * lib/c-strtod.c (c_locale_cache): New variable.
47085         (c_locale): New function.
47086         (C_STRTOD): Use it, and don't call freelocale.
47087         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47088         Suggested by Paolo Bonzini.
47089
47090 2009-01-21  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47093         conditions other than overflow.
47094
47095 2009-01-21  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/c-strtod.c: Include errno.h.
47098         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47099         value from STRTOD_L and STRTOD.
47100
47101 2009-01-21  Bruno Haible  <bruno@clisp.org>
47102         and Jim Meyering  <meyering@redhat.com>
47103
47104         nanosleep: skip configure test (fail it) for apple universal builds
47105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47106         universal builds, assume that nanosleep does not work.
47107         * modules/nanosleep (Depends-on): Add multiarch.
47108
47109         mktime: skip configure test (fail it) for apple universal builds
47110         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47111         universal builds, assume that mktime does not work.
47112         * modules/mktime (Depends-on): Add multiarch.
47113
47114 2009-01-21  Eric Blake  <ebb9@byu.net>
47115
47116         multiarch: avoid expand-before-require warning
47117         * modules/multiarch (configure.ac): Require, rather than expand,
47118         gl_MULTIARCH.
47119         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47120         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47121         enforce that all clients require it.  Partial reversion of
47122         2008-12-29 patch.
47123
47124         error: avoid expand-before-require warning
47125         * modules/errno (configure.ac): Require, rather than expand,
47126         gl_HEADER_ERRNO_H.
47127         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47128         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47129         enforce that all clients require it.
47130
47131         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47132         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47133         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47134         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47135
47136 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47137
47138         Revert:
47139         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47140
47141         regex: do not depend on obsolete modules.
47142         * modules/regex: Remove memcmp and memmove.
47143
47144 2009-01-20  Bruno Haible  <bruno@clisp.org>
47145
47146         Make the 'link' module link on Windows NT 4.
47147         * lib/link.c (_WIN32_WINNT): Don't define.
47148         (CreateHardLinkFuncType): New type.
47149         (CreateHardLinkFunc, initialized): New variables.
47150         (initialize): New function.
47151         (link): Invoke CreateHardLink indirectly through the function pointer.
47152
47153 2009-01-20  Bruno Haible  <bruno@clisp.org>
47154
47155         Fix compilation failure on mingw.
47156         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47157
47158 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47159
47160         * doc/c-strtod.texi: Mention a couple of restrictions.
47161
47162 2009-01-20  Jim Meyering  <meyering@redhat.com>
47163
47164         gettimeofday: move more declarations out of functions
47165         * lib/gettimeofday.c: Move extern declarations of tzset and
47166         gmtime out of containing functions.  Prompted by Bruno Haible.
47167
47168 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47169
47170         regex: do not depend on obsolete modules.
47171         * modules/regex: Remove memcmp and memmove.
47172
47173 2009-01-19  Bruno Haible  <bruno@clisp.org>
47174
47175         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47176         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47177         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47178         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47179         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47180
47181 2009-01-19  Bruno Haible  <bruno@clisp.org>
47182
47183         * tests/test-link.c: Include <errno.h>.
47184         (main): Exit with code 77 when a hard link cannot be created due to
47185         the file system.
47186         * tests/test-link.sh: Skip test when a hard link cannot be created due
47187         to the file system.
47188         Suggested by Eric Blake.
47189
47190 2009-01-19  Martin Lambers  <marlam@marlam.de>
47191
47192         * modules/link-tests: New file.
47193         * tests/test-link.sh: New file.
47194         * tests/test-link.c: New file.
47195
47196 2009-01-19  Eric Blake  <ebb9@byu.net>
47197
47198         doc: mention another function added in cygwin 1.7.0
47199         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47200         Another new function in cygwin 1.7.
47201
47202 2009-01-19  Bruno Haible  <bruno@clisp.org>
47203
47204         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47205         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47206         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47207         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47208         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47209         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47210         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47211         * m4/md4.m4 (gl_MD4): Likewise.
47212         * m4/md5.m4 (gl_MD5): Likewise.
47213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47214         * m4/sha1.m4 (gl_SHA1): Likewise.
47215         * m4/sha256.m4 (gl_SHA256): Likewise.
47216         * m4/sha512.m4 (gl_SHA512): Likewise.
47217
47218 2009-01-19  Bruno Haible  <bruno@clisp.org>
47219
47220         * modules/uniname/uniname-tests (Depends-on): Add progname.
47221         * tests/uniname/test-uninames.c: Include progname.h.
47222         (main): Call set_program_name.
47223
47224         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47225         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47226         (main): Call set_program_name.
47227
47228         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47229         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47230         (main): Call set_program_name.
47231
47232         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47233         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47234         (main): Call set_program_name.
47235
47236         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47237         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47238         (main): Call set_program_name.
47239
47240         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47241         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47242         (main): Call set_program_name.
47243
47244         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47245         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47246         (main): Call set_program_name.
47247
47248         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47249         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47250         (main): Call set_program_name.
47251
47252         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47253         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47254         (main): Call set_program_name.
47255
47256 2009-01-19  Eric Blake  <ebb9@byu.net>
47257
47258         test-unistd: test previous patch
47259         * tests/test-unistd.c: Test *_FILENO macros.
47260
47261         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47262         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47263         Guarantee a definition.
47264         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47265         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47266         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47267         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47268         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47269         Likewise.
47270         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47271         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47272         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47273         Likewise.
47274         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47275         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47276         (STDERR_FILENO): Likewise.
47277         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47278         (STDERR_FILENO): Likewise.
47279         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47280         (STDERR_FILENO): Likewise.
47281         Reported by Elbert Pol.
47282
47283 2009-01-19  Eric Blake  <ebb9@byu.net>
47284
47285         doc: mention more functions added in cygwin 1.7.0
47286         * doc/posix-functions/abort.texi (abort): Update wording related
47287         to cygwin.
47288         * doc/posix-functions/daylight.texi (daylight): Likewise.
47289         * doc/posix-functions/optarg.texi (optarg): Likewise.
47290         * doc/posix-functions/optarg.texi (opterr): Likewise.
47291         * doc/posix-functions/optarg.texi (optind): Likewise.
47292         * doc/posix-functions/optarg.texi (optopt): Likewise.
47293         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47294         worked in 1.5.x, and was withdrawn in 1.7.
47295         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47296         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47297         cygwin versions.
47298         * doc/posix-functions/perror.texi (perror): Likewise.
47299         * doc/posix-functions/printf.texi (printf): Likewise.
47300         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47301         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47302         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47303         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47304         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47305         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47306         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47307         Likewise.
47308         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47309         Likewise.
47310         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47311         this function.
47312         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47313         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47314         Likewise.
47315         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47316         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47317         * doc/posix-functions/confstr.texi (confstr): Likewise.
47318         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47319         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47320         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47321         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47322         * doc/posix-functions/fputws.texi (fputws): Likewise.
47323         * doc/posix-functions/fwide.texi (fwide): Likewise.
47324         * doc/posix-functions/getwc.texi (getwc): Likewise.
47325         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47326         * doc/posix-functions/putwc.texi (putwc): Likewise.
47327         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47328         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47329         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47330         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47331         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47332         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47333         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47334         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47335         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47336         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47337         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47338
47339 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47340
47341         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47342         * lib/ioctl.c: Include <sys/ioctl.h>.
47343
47344 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47345
47346         * modules/getdate-tests (Depends-on): Add progname.
47347         * tests/test-getdate.c: Use progname module, to avoid link errors
47348         on non-glibc systems.
47349
47350 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47351
47352         * modules/filenamecat-tests (Depends-on): Add progname.
47353         * modules/fstrcmp-tests (Depends-on): Likewise.
47354
47355         * tests/test-filenamecat.c: Use progname module, to avoid link
47356         errors on non-glibc systems.
47357         * tests/test-fstrcmp.c: Likewise.
47358
47359 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47360
47361         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47362         * lib/gettimeofday.c: Move extern declaration out of function.
47363
47364 2009-01-18  Bruno Haible  <bruno@clisp.org>
47365
47366         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47367         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47368         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47369
47370 2009-01-18  Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/strftime.c (MEMPCPY): Remove unused macro.
47373         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47374
47375 2009-01-18  Martin Lambers  <marlam@marlam.de>
47376
47377         New module 'link'.
47378         * lib/unistd.in.h (link): New declaration.
47379         * lib/link.c: New file.
47380         * m4/link.m4: New file.
47381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47382         HAVE_LINK.
47383         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47384         * modules/link: New file.
47385         * doc/posix-functions/link.texi: Mention the new module.
47386
47387 2009-01-18  Bruno Haible  <bruno@clisp.org>
47388
47389         * tests/test-avltree_list.c (main): Call set_program_name.
47390         * tests/test-avltree_oset.c (main): Likewise.
47391         * tests/test-obstack-printf.c: Include progname.h.
47392         (main): Call set_program_name.
47393         * tests/test-quotearg.c: Include progname.h.
47394         (main): Call set_program_name.
47395         * tests/test-xmemdup0.c: Include progname.h.
47396         (main): Call set_program_name.
47397
47398 2009-01-18  Bruno Haible  <bruno@clisp.org>
47399
47400         New module 'alphasort'.
47401         * lib/dirent.in.h (alphasort): New declaration.
47402         * lib/alphasort.c: New file, from glibc with modifications.
47403         * m4/alphasort.m4: New file.
47404         * modules/alphasort: New file.
47405         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47406         HAVE_ALPHASORT.
47407         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47408         HAVE_ALPHASORT.
47409         * doc/posix-functions/alphasort.texi: Mention the new module and the
47410         portability problems.
47411
47412 2009-01-18  Bruno Haible  <bruno@clisp.org>
47413
47414         New module 'scandir'.
47415         * lib/dirent.in.h (scandir): New declaration.
47416         * lib/scandir.c: New file, from glibc with modifications.
47417         * m4/scandir.m4: New file.
47418         * modules/scandir: New file.
47419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47420         HAVE_SCANDIR.
47421         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47422         HAVE_SCANDIR.
47423         * doc/posix-functions/scandir.texi: Mention the new module and the
47424         portability problems.
47425
47426 2009-01-17  Bruno Haible  <bruno@clisp.org>
47427
47428         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47429         Update documentation.
47430         (func_remove_suffix): Escape all dots in the suffix. Update
47431         documentation.
47432         (func_filter_filelist): Update documentation.
47433         Reported by Ralf Wildenhues.
47434
47435 2009-01-17  Bruno Haible  <bruno@clisp.org>
47436
47437         * modules/dprintf-posix-tests: New file.
47438         * tests/test-dprintf-posix.sh: New file.
47439         * tests/test-dprintf-posix.c: New file.
47440
47441         New modules 'dprintf', 'dprintf-posix'.
47442         * lib/stdio.in.h (dprintf): New declaration.
47443         * lib/dprintf.c: New file.
47444         * m4/dprintf.m4: New file.
47445         * m4/dprintf-posix.m4: New file.
47446         * modules/dprintf: New file.
47447         * modules/dprintf-posix: New file.
47448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47449         HAVE_DPRINTF, REPLACE_DPRINTF.
47450         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47451         HAVE_DPRINTF, REPLACE_DPRINTF.
47452         * doc/posix-functions/dprintf.texi: Mention the new modules.
47453
47454 2009-01-17  Bruno Haible  <bruno@clisp.org>
47455
47456         * modules/vdprintf-posix-tests: New file.
47457         * tests/test-vdprintf-posix.sh: New file.
47458         * tests/test-vdprintf-posix.c: New file.
47459
47460         New modules 'vdprintf', 'vdprintf-posix'.
47461         * lib/stdio.in.h (vdprintf): New declaration.
47462         * lib/vdprintf.c: New file.
47463         * m4/vdprintf.m4: New file.
47464         * m4/vdprintf-posix.m4: New file.
47465         * modules/vdprintf: New file.
47466         * modules/vdprintf-posix: New file.
47467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47468         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47469         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47470         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47471         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47472
47473 2009-01-17  Bruno Haible  <bruno@clisp.org>
47474
47475         Fix replacement of fopen on mingw.
47476         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47477         mingw.
47478
47479 2009-01-17  Bruno Haible  <bruno@clisp.org>
47480
47481         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47482         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47483
47484 2009-01-17  Bruno Haible  <bruno@clisp.org>
47485
47486         Avoid test-fflush2.sh failure on mingw.
47487         * tests/test-fflush2.c: Include binary-io.h.
47488         (main): Put standard input into binary mode.
47489         * modules/fflush-tests (Depends-on): Add binary-io.
47490
47491 2009-01-17  Bruno Haible  <bruno@clisp.org>
47492
47493         * lib/wchar.in.h: In another particular situation, include only the
47494         system's <wchar.h> file.
47495         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47496         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47497         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47498
47499 2009-01-17  Bruno Haible  <bruno@clisp.org>
47500
47501         Support for stripping executables in --enable-relocatable.
47502         * build-aux/install-reloc: Expect one more argument, or an environment
47503         variable RELOC_STRIP_PROG. If set, strip the destination program and
47504         its wrapper.
47505         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47506         RELOC_STRIP_PROG.
47507         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47508         to set RELOCATABLE_STRIP.
47509         * NEWS: Mention the new Makefile requirement.
47510
47511 2009-01-17  Bruno Haible  <bruno@clisp.org>
47512
47513         * build-aux/install-reloc: Remove debugging information left over by
47514         C compiler on MacOS X.
47515
47516 2009-01-17  Bruno Haible  <bruno@clisp.org>
47517
47518         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47519         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47520         _NSGetExecutablePath.
47521
47522 2009-01-16  Jim Meyering  <meyering@redhat.com>
47523
47524         strerror: avoid warnings about discarding "const"
47525         * lib/strerror.c (rpl_strerror): Instead of returning a const
47526         string from each and every "case", use a variable, and add a single
47527         cast after the switch.
47528
47529 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47530
47531         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47532
47533 2009-01-16  Bruno Haible  <bruno@clisp.org>
47534
47535         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47536         array initializer syntax that also works in C++ mode.
47537         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47538
47539 2009-01-16  Jim Meyering  <meyering@redhat.com>
47540
47541         poll: suppress a warning
47542         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47543         to ignore "...unsigned expression < 0 is always false" warnings.
47544
47545 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47546
47547         poll: remove declarations of unused variables
47548         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47549         sockbuf and optlen.
47550
47551 2009-01-15  Bruno Haible  <bruno@clisp.org>
47552
47553         Make fflush-after-ungetc POSIX compliant on BSD systems.
47554         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47555         (clear_ungetc_buffer): Implement also for other systems.
47556         (rpl_fflush): On glibc systems, invoke
47557         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47558         clear_ungetc_buffer after fetching the stream's position, not before.
47559
47560 2009-01-15  Bruno Haible  <bruno@clisp.org>
47561
47562         Make fflush-after-ungetc POSIX compliant on glibc systems.
47563         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47564         after ungetc.
47565         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47566         (rpl_fflush): On glibc systems, simply call the system's fflush
47567         function after clearing the ungetc buffer.
47568         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47569         Instead, lseek only to the end of file, then use the system's fseeko
47570         for the rest. On glibc systems, reset the EOF indicator bit.
47571
47572 2009-01-15  Jim Meyering  <meyering@redhat.com>
47573
47574         openmp.m4: revert quote-adding change, for portability to older autoconf
47575         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47576         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47577         Simon Josefsson noticed the problem when using autoconf-2.61.
47578
47579 2009-01-15  Bruno Haible  <bruno@clisp.org>
47580
47581         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47582         * tests/test-fflush2.c (ASSERT): Always fail.
47583         (main): Add two tests for fflush() after ungetc(), taking into account
47584         the Austin Group's clarification.
47585         Suggested by Eric Blake.
47586
47587 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47588
47589         mktime.m4: remove K&R-style function prototypes
47590         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47591         for the Sun C++ compiler.
47592
47593 2009-01-14  Bruno Haible  <bruno@clisp.org>
47594
47595         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47596         while including <wchar.h>.
47597         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47598         the system's <wchar.h> file.
47599         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47600
47601 2009-01-14  Bruno Haible  <bruno@clisp.org>
47602
47603         * m4/csharp.m4: Don't mention gettext on the serial number line.
47604         * m4/csharpexec.m4: Likewise.
47605         * m4/eaccess.m4: Likewise.
47606         * m4/javaexec.m4: Likewise.
47607         * m4/sig_atomic_t.m4: Likewise.
47608         * m4/tmpdir.m4: Likewise.
47609         * m4/intldir.m4: Bump gettext version.
47610         * m4/lib-ld.m4: Likewise.
47611
47612 2009-01-14  Bruno Haible  <bruno@clisp.org>
47613
47614         * lib/progname.c (set_program_name): Add more comments.
47615         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47616
47617 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47618
47619         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47620         were sys/stat.h does not define it.
47621
47622 2009-01-14  Jim Meyering  <meyering@redhat.com>
47623
47624         many *.m4 files: improve m4 quoting
47625         99% of this change was performed by running the following commands:
47626         git ls-files | grep '\.m4$' | xargs perl -pi \
47627           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47628           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47629           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47630           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47631         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47632         The remainder were to add Copyright dates, increment serial numbers,
47633         undo some changes in comments, exclude m4/intl.m4, and add quotes
47634         around the "1" in ",1" where the unusual spacing prohibited the
47635         above regexps from doing the job.  For more details, see
47636         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47637         * m4/acl.m4: Modified.
47638         * m4/afs.m4: Likewise.
47639         * m4/alloca.m4: Likewise.
47640         * m4/argp.m4: Likewise.
47641         * m4/argz.m4: Likewise.
47642         * m4/atexit.m4: Likewise.
47643         * m4/bison-i18n.m4: Likewise.
47644         * m4/bison.m4: Likewise.
47645         * m4/byteswap.m4: Likewise.
47646         * m4/c-stack.m4: Likewise.
47647         * m4/c-strtod.m4: Likewise.
47648         * m4/calloc.m4: Likewise.
47649         * m4/canonicalize-lgpl.m4: Likewise.
47650         * m4/chown.m4: Likewise.
47651         * m4/clock_time.m4: Likewise.
47652         * m4/codeset.m4: Likewise.
47653         * m4/copy-file.m4: Likewise.
47654         * m4/csharp.m4: Likewise.
47655         * m4/csharpcomp.m4: Likewise.
47656         * m4/csharpexec.m4: Likewise.
47657         * m4/d-ino.m4: Likewise.
47658         * m4/d-type.m4: Likewise.
47659         * m4/dirfd.m4: Likewise.
47660         * m4/double-slash-root.m4: Likewise.
47661         * m4/eaccess.m4: Likewise.
47662         * m4/eealloc.m4: Likewise.
47663         * m4/environ.m4: Likewise.
47664         * m4/errno_h.m4: Likewise.
47665         * m4/euidaccess.m4: Likewise.
47666         * m4/execute.m4: Likewise.
47667         * m4/fatal-signal.m4: Likewise.
47668         * m4/fchdir.m4: Likewise.
47669         * m4/fcntl_h.m4: Likewise.
47670         * m4/fileblocks.m4: Likewise.
47671         * m4/filenamecat.m4: Likewise.
47672         * m4/findprog.m4: Likewise.
47673         * m4/flexmember.m4: Likewise.
47674         * m4/fnmatch.m4: Likewise.
47675         * m4/fopen.m4: Likewise.
47676         * m4/fpending.m4: Likewise.
47677         * m4/fprintf-posix.m4: Likewise.
47678         * m4/free.m4: Likewise.
47679         * m4/frexp.m4: Likewise.
47680         * m4/frexpl.m4: Likewise.
47681         * m4/fsusage.m4: Likewise.
47682         * m4/ftruncate.m4: Likewise.
47683         * m4/gc-camellia.m4: Likewise.
47684         * m4/gc-random.m4: Likewise.
47685         * m4/gc.m4: Likewise.
47686         * m4/getaddrinfo.m4: Likewise.
47687         * m4/getcwd-abort-bug.m4: Likewise.
47688         * m4/getcwd-path-max.m4: Likewise.
47689         * m4/getdate.m4: Likewise.
47690         * m4/getdomainname.m4: Likewise.
47691         * m4/getgroups.m4: Likewise.
47692         * m4/gethostname.m4: Likewise.
47693         * m4/gethrxtime.m4: Likewise.
47694         * m4/getline.m4: Likewise.
47695         * m4/getloadavg.m4: Likewise.
47696         * m4/getndelim2.m4: Likewise.
47697         * m4/getpass.m4: Likewise.
47698         * m4/gettext.m4: Likewise.
47699         * m4/gettime.m4: Likewise.
47700         * m4/gettimeofday.m4: Likewise.
47701         * m4/gnulib-common.m4: Likewise.
47702         * m4/group-member.m4: Likewise.
47703         * m4/host-os.m4: Likewise.
47704         * m4/iconv.m4: Likewise.
47705         * m4/iconv_open.m4: Likewise.
47706         * m4/inet_ntop.m4: Likewise.
47707         * m4/inet_pton.m4: Likewise.
47708         * m4/inline.m4: Likewise.
47709         * m4/intldir.m4: Likewise.
47710         * m4/intlmacosx.m4: Likewise.
47711         * m4/intmax.m4: Likewise.
47712         * m4/intmax_t.m4: Likewise.
47713         * m4/inttypes.m4: Likewise.
47714         * m4/inttypes_h.m4: Likewise.
47715         * m4/inttypes-pri.m4: Likewise.
47716         * m4/isapipe.m4: Likewise.
47717         * m4/isnand.m4: Likewise.
47718         * m4/isnanf.m4: Likewise.
47719         * m4/isnanl.m4: Likewise.
47720         * m4/javacomp.m4: Likewise.
47721         * m4/javaexec.m4: Likewise.
47722         * m4/jm-winsz1.m4: Likewise.
47723         * m4/jm-winsz2.m4: Likewise.
47724         * m4/lchown.m4: Likewise.
47725         * m4/lcmessage.m4: Likewise.
47726         * m4/ldexpl.m4: Likewise.
47727         * m4/lib-ld.m4: Likewise.
47728         * m4/lib-link.m4: Likewise.
47729         * m4/libsigsegv.m4: Likewise.
47730         * m4/link-follow.m4: Likewise.
47731         * m4/localcharset.m4: Likewise.
47732         * m4/locale-fr.m4: Likewise.
47733         * m4/locale-ja.m4: Likewise.
47734         * m4/locale-tr.m4: Likewise.
47735         * m4/locale-zh.m4: Likewise.
47736         * m4/lock.m4: Likewise.
47737         * m4/longlong.m4: Likewise.
47738         * m4/ls-mntd-fs.m4: Likewise.
47739         * m4/lstat.m4: Likewise.
47740         * m4/malloc.m4: Likewise.
47741         * m4/mathl.m4: Likewise.
47742         * m4/mbrtowc.m4: Likewise.
47743         * m4/mbstate_t.m4: Likewise.
47744         * m4/mbswidth.m4: Likewise.
47745         * m4/memchr.m4: Likewise.
47746         * m4/memcmp.m4: Likewise.
47747         * m4/memcpy.m4: Likewise.
47748         * m4/memmem.m4: Likewise.
47749         * m4/memmove.m4: Likewise.
47750         * m4/mempcpy.m4: Likewise.
47751         * m4/memrchr.m4: Likewise.
47752         * m4/memset.m4: Likewise.
47753         * m4/minmax.m4: Likewise.
47754         * m4/mkdir-slash.m4: Likewise.
47755         * m4/mkdtemp.m4: Likewise.
47756         * m4/mktime.m4: Likewise.
47757         * m4/mmap-anon.m4: Likewise.
47758         * m4/mountlist.m4: Likewise.
47759         * m4/nanosleep.m4: Likewise.
47760         * m4/nls.m4: Likewise.
47761         * m4/nocrash.m4: Likewise.
47762         * m4/open.m4: Likewise.
47763         * m4/openat.m4: Likewise.
47764         * m4/openmp.m4: Likewise.
47765         * m4/pathmax.m4: Likewise.
47766         * m4/perl.m4: Likewise.
47767         * m4/physmem.m4: Likewise.
47768         * m4/pipe.m4: Likewise.
47769         * m4/po.m4: Likewise.
47770         * m4/poll.m4: Likewise.
47771         * m4/posixtm.m4: Likewise.
47772         * m4/posixver.m4: Likewise.
47773         * m4/printf-frexp.m4: Likewise.
47774         * m4/printf-frexpl.m4: Likewise.
47775         * m4/printf-posix.m4: Likewise.
47776         * m4/printf-posix-rpl.m4: Likewise.
47777         * m4/printf.m4: Likewise.
47778         * m4/progtest.m4: Likewise.
47779         * m4/putenv.m4: Likewise.
47780         * m4/readline.m4: Likewise.
47781         * m4/readlink.m4: Likewise.
47782         * m4/readutmp.m4: Likewise.
47783         * m4/realloc.m4: Likewise.
47784         * m4/regex.m4: Likewise.
47785         * m4/relocatable.m4: Likewise.
47786         * m4/relocatable-lib.m4: Likewise.
47787         * m4/rename-dest-slash.m4: Likewise.
47788         * m4/rename.m4: Likewise.
47789         * m4/rmdir-errno.m4: Likewise.
47790         * m4/rmdir.m4: Likewise.
47791         * m4/roundf.m4: Likewise.
47792         * m4/roundl.m4: Likewise.
47793         * m4/rpmatch.m4: Likewise.
47794         * m4/save-cwd.m4: Likewise.
47795         * m4/selinux-selinux-h.m4: Likewise.
47796         * m4/setenv.m4: Likewise.
47797         * m4/settime.m4: Likewise.
47798         * m4/sig2str.m4: Likewise.
47799         * m4/sig_atomic_t.m4: Likewise.
47800         * m4/signalblocking.m4: Likewise.
47801         * m4/signbit.m4: Likewise.
47802         * m4/sigpipe.m4: Likewise.
47803         * m4/sockets.m4: Likewise.
47804         * m4/sockpfaf.m4: Likewise.
47805         * m4/st_dm_mode.m4: Likewise.
47806         * m4/stat-time.m4: Likewise.
47807         * m4/stdbool.m4: Likewise.
47808         * m4/stdint.m4: Likewise.
47809         * m4/stdint_h.m4: Likewise.
47810         * m4/stpcpy.m4: Likewise.
47811         * m4/stpncpy.m4: Likewise.
47812         * m4/strcase.m4: Likewise.
47813         * m4/strchrnul.m4: Likewise.
47814         * m4/strcspn.m4: Likewise.
47815         * m4/strdup.m4: Likewise.
47816         * m4/strftime.m4: Likewise.
47817         * m4/strndup.m4: Likewise.
47818         * m4/strnlen.m4: Likewise.
47819         * m4/strpbrk.m4: Likewise.
47820         * m4/strptime.m4: Likewise.
47821         * m4/strsep.m4: Likewise.
47822         * m4/strtod.m4: Likewise.
47823         * m4/strtoimax.m4: Likewise.
47824         * m4/strtok_r.m4: Likewise.
47825         * m4/strtol.m4: Likewise.
47826         * m4/strtoll.m4: Likewise.
47827         * m4/strtoul.m4: Likewise.
47828         * m4/strtoull.m4: Likewise.
47829         * m4/strtoumax.m4: Likewise.
47830         * m4/strverscmp.m4: Likewise.
47831         * m4/threadlib.m4: Likewise.
47832         * m4/timegm.m4: Likewise.
47833         * m4/tm_gmtoff.m4: Likewise.
47834         * m4/tmpdir.m4: Likewise.
47835         * m4/tmpfile.m4: Likewise.
47836         * m4/tzset.m4: Likewise.
47837         * m4/uintmax_t.m4: Likewise.
47838         * m4/unlinkdir.m4: Likewise.
47839         * m4/unlocked-io.m4: Likewise.
47840         * m4/uptime.m4: Likewise.
47841         * m4/userspec.m4: Likewise.
47842         * m4/utimbuf.m4: Likewise.
47843         * m4/utime.m4: Likewise.
47844         * m4/utimes-null.m4: Likewise.
47845         * m4/utimes.m4: Likewise.
47846         * m4/vararrays.m4: Likewise.
47847         * m4/vasnprintf.m4: Likewise.
47848         * m4/vfprintf-posix.m4: Likewise.
47849         * m4/vprintf-posix.m4: Likewise.
47850         * m4/wait-process.m4: Likewise.
47851         * m4/wchar_t.m4: Likewise.
47852         * m4/wint_t.m4: Likewise.
47853         * m4/write-any-file.m4: Likewise.
47854         * m4/yield.m4: Likewise.
47855
47856 2009-01-13  Bruno Haible  <bruno@clisp.org>
47857
47858         Avoid test-copy-file.sh failures when ACL support insufficient.
47859         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47860         TESTS_ENVIRONMENT.
47861         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47862         Reported by Jim Meyering.
47863
47864 2009-01-13  Bruno Haible  <bruno@clisp.org>
47865
47866         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47867         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47868         * modules/unistdio/u8-printf-parse (Files): Likewise.
47869         * modules/unistdio/u32-printf-parse (Files): Likewise.
47870         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47871
47872 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47873
47874         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47875         and m4/inttypes_h.m4 too.
47876
47877 2009-01-12  Eric Blake  <ebb9@byu.net>
47878
47879         tests: IRIX 6.2 cc can't compile -0.0 into .data
47880         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47881         rather than at compile-time.
47882         * tests/test-floorl.c (minus_zero): Likewise.
47883         * tests/test-frexpl.c (minus_zero): Likewise.
47884         * tests/test-isnan.c (minus_zerol): Likewise.
47885         * tests/test-isnanl.h (minus_zero): Likewise.
47886         * tests/test-ldexpl.c (minus_zero): Likewise.
47887         * tests/test-roundl.c (minus_zero): Likewise.
47888         * tests/test-signbit.c (minus_zerol): Likewise.
47889         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47890         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47891         * tests/test-truncl.c (minus_zero): Likewise.
47892         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47893         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47894         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47895
47896 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47897
47898         regex: fix glibc bug 9697
47899         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47900         handling.
47901
47902 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47903
47904         regex: fix glibc bug 697
47905         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47906         being NULL also if there are no backreferences.
47907
47908 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47909
47910         regex: merge glibc changes
47911         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47912         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47913         re_string_skip_chars, re_string_reconstruct): Likewise.
47914         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47915
47916 2009-01-07  Jim Meyering  <meyering@redhat.com>
47917
47918         poll: filter through cppi
47919         * lib/poll.c: Indent cpp directives to reflect nesting.
47920
47921 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47922
47923         poll: don't return uninitialized
47924         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47925
47926 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47927
47928         avoid compile failure on AIX 6.1
47929         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47930         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47931
47932 2009-01-04  Jim Meyering  <meyering@redhat.com>
47933
47934         remove duplicate inclusion of <stdio.h>
47935         * tests/test-fprintf-posix.c: Likewise.
47936         * tests/test-printf-posix.c: Likewise.
47937         * tests/test-snprintf-posix.c: Likewise.
47938         * tests/test-sprintf-posix.c: Likewise.
47939         * tests/test-vasprintf-posix.c: Likewise.
47940         * tests/test-vfprintf-posix.c: Likewise.
47941         * tests/test-vprintf-posix.c: Likewise.
47942         * tests/test-vsnprintf-posix.c: Likewise.
47943         * tests/test-vsprintf-posix.c: Likewise.
47944
47945 2009-01-03  Jim Meyering  <meyering@redhat.com>
47946
47947         gnulib-tool: fix sed-based filtering
47948         * gnulib-tool (func_filter_filelist): Remove extra backslash
47949         in sed_fff_filter definition.
47950
47951 2009-01-02  Jim Meyering  <meyering@redhat.com>
47952
47953         strftime: avoid compilation failure on Solaris 2.6
47954         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47955         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47956         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47957         be available.  Reported by Tom G. Christensen.  Details in
47958         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47959
47960 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47961             Bruno Haible  <bruno@clisp.org>
47962
47963         Speed up gnulib-tool by doing more string processing through shell
47964         built-ins.
47965         * gnulib-tool (fast_func_append): New variable.
47966         (func_remove_prefix, func_remove_suffix): New functions.
47967         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47968         (func_filter_filelist): New function.
47969         (func_get_dependencies): Use func_remove_suffix instead of sed.
47970         (func_get_automake_snippet): Use func_filter_filelist instead of a
47971         subshell and sed invocation.
47972
47973 2009-01-01  Bruno Haible  <bruno@clisp.org>
47974
47975         Fix a security bug.
47976         * gnulib-tool (func_import, import, update): Don't allow the characters
47977         '"', '$', '`', '\' in macro arguments that become part of commands that
47978         are evaluated.
47979
47980 2009-01-01  Bruno Haible  <bruno@clisp.org>
47981
47982         * gnulib-tool (func_reset_sigpipe): Add more comments.
47983
47984 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47985
47986         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47987         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47988         already know the answer.
47989
47990 2009-01-01  Jim Meyering  <meyering@redhat.com>
47991
47992         * lib/version-etc.c (version_etc_va): Update copyright year.
47993
47994 2008-12-30  Bruno Haible  <bruno@clisp.org>
47995
47996         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47997         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47998         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47999
48000 2008-12-29  Eric Blake  <ebb9@byu.net>
48001
48002         multiarch: avoid autoconf AC_REQUIRE bug
48003         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48004         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48005         2.63 and older.
48006         Reported by Bruno Haible, and analyzed in
48007         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48008
48009 2008-12-29  Bruno Haible  <bruno@clisp.org>
48010
48011         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48012         files in subdirectories correctly.
48013         Reported by Ralf Wildenhues.
48014
48015 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48016
48017         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48018         rather than 'join FILE -', for Solaris join.
48019
48020 2008-12-29  Bruno Haible  <bruno@clisp.org>
48021
48022         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48023         quoting.
48024         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48025         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48026         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48027         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48028         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48029         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48030         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48032         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48033         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48034         * m4/nls.m4 (AM_NLS): Likewise.
48035         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48036         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48038         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48039         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48040         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48041         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48042         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48043         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48044         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48045         * m4/xsize.m4 (gl_XSIZE): Likewise.
48046         Suggested by Jim Meyering.
48047
48048 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48049
48050         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48051         * lib/parse-duration.c: use a switch instead of cascading if's.
48052
48053 2008-12-29  Eric Blake  <ebb9@byu.net>
48054
48055         wchar.h: supply WEOF on Irix 5.3
48056         * lib/wchar.in.h (wint_t): Also supply WEOF.
48057         * lib/wctype.in.h (wint_t): Likewise.
48058         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48059         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48060         Reported by Tom G. Christensen.
48061
48062 2008-12-26  Bruno Haible  <bruno@clisp.org>
48063
48064         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48065         i486, i586, i686.
48066
48067 2008-12-26  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48070
48071 2008-12-26  Bruno Haible  <bruno@clisp.org>
48072
48073         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48074         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48075         not __STDC_CONSTANT_MACROS.
48076         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48077
48078 2008-12-25  Bruno Haible  <bruno@clisp.org>
48079
48080         Add support for universal builds to vasnprintf.
48081         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48082         universal builds, guess no.
48083         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48084         * modules/vasprintf-posix (Depends-on): Likewise.
48085         * modules/fprintf-posix (Depends-on): Likewise.
48086         * modules/vfprintf-posix (Depends-on): Likewise.
48087         * modules/snprintf-posix (Depends-on): Likewise.
48088         * modules/vsnprintf-posix (Depends-on): Likewise.
48089         * modules/sprintf-posix (Depends-on): Likewise.
48090         * modules/vsprintf-posix (Depends-on): Likewise.
48091         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48092         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48093         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48094         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48095         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48096         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48097         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48098
48099         Add support for universal builds to <inttypes.h>.
48100         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48101         _SCNu64_PREFIX): In Apple
48102         universal builds, define directly, using _LP64.
48103         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48104         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48105         * modules/inttypes (Depends-on): Add multiarch.
48106         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48107
48108         Add support for universal builds to <stdint.h>.
48109         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48110         universal builds, define directly, using _LP64.
48111         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48112         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48113         and size_t.
48114         * modules/stdint (Depends-on): Add multiarch.
48115         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48116
48117         New module 'multiarch'.
48118         * modules/multiarch: New file.
48119         * m4/multiarch.m4: New file.
48120
48121 2008-12-25  Bruno Haible  <bruno@clisp.org>
48122
48123         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48124
48125 2008-12-25  Bruno Haible  <bruno@clisp.org>
48126
48127         * modules/btowc (License): Relicense under LGPLv2+.
48128         * modules/mbsinit (License): Likewise.
48129         * modules/mbrtowc (License): Likewise.
48130         * modules/wcrtomb (License): Likewise.
48131         * modules/streq (License): Likewise.
48132         Reported by David Lutterkort <lutter@redhat.com>.
48133
48134 2008-12-23  Bruno Haible  <bruno@clisp.org>
48135
48136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48137
48138 2008-12-23  Bruno Haible  <bruno@clisp.org>
48139
48140         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48141         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48142         GETADDRINFO_LIB, not in LIBS.
48143         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48144         * modules/canon-host (Link): Likewise.
48145         * NEWS: Mention the change.
48146         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48147         GETADDRINFO_LIB.
48148
48149 2008-12-22  Bruno Haible  <bruno@clisp.org>
48150
48151         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48152         * doc/posix-functions/iswalpha_l.texi: Likewise.
48153         * doc/posix-functions/iswblank_l.texi: Likewise.
48154         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48155         * doc/posix-functions/iswctype_l.texi: Likewise.
48156         * doc/posix-functions/iswdigit_l.texi: Likewise.
48157         * doc/posix-functions/iswgraph_l.texi: Likewise.
48158         * doc/posix-functions/iswlower_l.texi: Likewise.
48159         * doc/posix-functions/iswprint_l.texi: Likewise.
48160         * doc/posix-functions/iswpunct_l.texi: Likewise.
48161         * doc/posix-functions/iswspace_l.texi: Likewise.
48162         * doc/posix-functions/iswupper_l.texi: Likewise.
48163         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48164         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48165         * doc/posix-functions/open_wmemstream.texi: Likewise.
48166         * doc/posix-functions/swscanf.texi: Likewise.
48167         * doc/posix-functions/towctrans_l.texi: Likewise.
48168         * doc/posix-functions/towlower.texi: Likewise.
48169         * doc/posix-functions/towlower_l.texi: Likewise.
48170         * doc/posix-functions/towupper.texi: Likewise.
48171         * doc/posix-functions/towupper_l.texi: Likewise.
48172         * doc/posix-functions/vfwprintf.texi: Likewise.
48173         * doc/posix-functions/vfwscanf.texi: Likewise.
48174         * doc/posix-functions/vswscanf.texi: Likewise.
48175         * doc/posix-functions/vwprintf.texi: Likewise.
48176         * doc/posix-functions/vwscanf.texi: Likewise.
48177         * doc/posix-functions/wcpcpy.texi: Likewise.
48178         * doc/posix-functions/wcpncpy.texi: Likewise.
48179         * doc/posix-functions/wcscasecmp.texi: Likewise.
48180         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48181         * doc/posix-functions/wcscoll_l.texi: Likewise.
48182         * doc/posix-functions/wcsdup.texi: Likewise.
48183         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48184         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48185         * doc/posix-functions/wcsnlen.texi: Likewise.
48186         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48187         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48188         * doc/posix-functions/wctrans_l.texi: Likewise.
48189         * doc/posix-functions/wctype_l.texi: Likewise.
48190         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48191         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48192         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48193         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48194         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48195         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48196         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48197         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48198         * doc/glibc-functions/wcschrnul.texi: Likewise.
48199         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48200         * doc/glibc-functions/wcstod_l.texi: Likewise.
48201         * doc/glibc-functions/wcstof_l.texi: Likewise.
48202         * doc/glibc-functions/wcstol_l.texi: Likewise.
48203         * doc/glibc-functions/wcstold_l.texi: Likewise.
48204         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48205         * doc/glibc-functions/wcstoq.texi: Likewise.
48206         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48207         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48208         * doc/glibc-functions/wcstouq.texi: Likewise.
48209         * doc/glibc-functions/wmempcpy.texi: Likewise.
48210
48211 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48212             Eric Blake  <ebb9@byu.net>
48213             Paolo Bonzini  <bonzini@gnu.org>
48214             Bruno Haible  <bruno@clisp.org>
48215
48216         Make c-stack work on Haiku.
48217         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48218         (c_stack_action): Use SA_ONSTACK flag.
48219
48220 2008-12-22  Bruno Haible  <bruno@clisp.org>
48221
48222         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48223
48224 2008-12-22  Bruno Haible  <bruno@clisp.org>
48225
48226         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48227         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48228         being overridden.
48229         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48230         New macros.
48231         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48233         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48234         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48235
48236 2008-12-22  Bruno Haible  <bruno@clisp.org>
48237
48238         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48239         from test code.
48240
48241 2008-12-22  Eric Blake  <ebb9@byu.net>
48242
48243         Avoid gcc warnings on cygwin.
48244         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48245         Avoid unused variable.
48246         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48247         Likewise.
48248
48249 2008-12-22  Bruno Haible  <bruno@clisp.org>
48250
48251         Remove HAVE_MBRTOWC conditionals.
48252         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48253         (mbscasecmp): Assume mbrtowc function.
48254         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48255         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48256         * lib/mbschr.c: Include mbuiter.h unconditionally.
48257         (mbschr): Assume mbrtowc function.
48258         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48259         (mbscspn): Assume mbrtowc function.
48260         * lib/mbslen.c: Include mbuiter.h unconditionally.
48261         (mbslen): Assume mbrtowc function.
48262         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48263         (mbsncasecmp): Assume mbrtowc function.
48264         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48265         (mbsnlen): Assume mbrtowc function.
48266         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48267         (mbspbrk): Assume mbrtowc function.
48268         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48269         (mbspcasecmp): Assume mbrtowc function.
48270         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48271         (mbsrchr): Assume mbrtowc function.
48272         * lib/mbssep.c: Include mbuiter.h unconditionally.
48273         (mbssep): Assume mbrtowc function.
48274         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48275         (mbsspn): Assume mbrtowc function.
48276         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48277         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48278         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48279         (mbstok_r): Assume mbrtowc function.
48280         * lib/propername.c: Include mbuiter.h unconditionally.
48281         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48282         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48283         (trim2): Assume mbrtowc function.
48284         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48285         (mbsnwidth): Assume mbrtowc function.
48286         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48287         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48288         fallback definitions.
48289         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48290
48291 2008-12-22  Bruno Haible  <bruno@clisp.org>
48292
48293         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48294
48295 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48296
48297         * modules/regex: Request emulations for the mb*/wc* functions we need.
48298         * m4/regex.m4: Don't look for those functions here.
48299         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48300
48301 2008-12-22  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48304
48305 2008-12-21  Bruno Haible  <bruno@clisp.org>
48306
48307         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48308         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48309         (Include): Remove conditionalization.
48310         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48311         (Include): Remove conditionalization.
48312         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48313         (Include): Remove conditionalization.
48314         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48315         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48316         * NEWS: Mention the change.
48317         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48318         via Sergey Poznyakoff <gray@gnu.org.ua>.
48319
48320 2008-12-21  Bruno Haible  <bruno@clisp.org>
48321
48322         * MODULES.html.sh (Extended multibyte and wide character utilities
48323         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48324         wcrtomb, wcsrtombs.
48325         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48326         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48327         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48328         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48329
48330 2008-12-21  Bruno Haible  <bruno@clisp.org>
48331
48332         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48333
48334 2008-12-21  Bruno Haible  <bruno@clisp.org>
48335
48336         * modules/wcsnrtombs-tests: New file.
48337         * tests/test-wcsnrtombs1.sh: New file.
48338         * tests/test-wcsnrtombs2.sh: New file.
48339         * tests/test-wcsnrtombs3.sh: New file.
48340         * tests/test-wcsnrtombs4.sh: New file.
48341         * tests/test-wcsnrtombs.c: New file.
48342
48343         New module 'wcsnrtombs'.
48344         * lib/wchar.in.h (wcsnrtombs): New declaration.
48345         * lib/wcsnrtombs.c: New file.
48346         * lib/wcsrtombs-state.c: New file.
48347         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48348         (internal_state): Remove variable.
48349         * m4/wcsnrtombs.m4: New file.
48350         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48351         compilation units.
48352         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48353         HAVE_WCSNRTOMBS.
48354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48355         HAVE_WCSNRTOMBS.
48356         * modules/wcsnrtombs: New file.
48357         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48358         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48359
48360 2008-12-21  Bruno Haible  <bruno@clisp.org>
48361
48362         * modules/wcsrtombs-tests: New file.
48363         * tests/test-wcsrtombs1.sh: New file.
48364         * tests/test-wcsrtombs2.sh: New file.
48365         * tests/test-wcsrtombs3.sh: New file.
48366         * tests/test-wcsrtombs4.sh: New file.
48367         * tests/test-wcsrtombs.c: New file.
48368
48369         New module 'wcsrtombs'.
48370         * lib/wchar.in.h (wcsrtombs): New declaration.
48371         * lib/wcsrtombs.c: New file.
48372         * m4/wcsrtombs.m4: New file.
48373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48374         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48376         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48377         * modules/wcsrtombs: New file.
48378         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48379         bugs.
48380
48381 2008-12-21  Bruno Haible  <bruno@clisp.org>
48382
48383         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48384         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48385         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48386         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48387         if not correct.
48388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48389         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48390         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48391         m4/locale-zh.m4, m4/codeset.m4.
48392         * doc/posix-functions/wcrtomb.texi: Document the bug.
48393
48394 2008-12-21  Bruno Haible  <bruno@clisp.org>
48395
48396         Work around a btowc() bug on IRIX 6.5.
48397         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48398         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48399         REPLACE_WTOBC if not.
48400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48401         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48402         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48403
48404 2008-12-21  Bruno Haible  <bruno@clisp.org>
48405
48406         * modules/wcrtomb-tests: New file.
48407         * tests/test-wcrtomb.sh: New file.
48408         * tests/test-wcrtomb.c: New file.
48409
48410         New module 'wcrtomb'.
48411         * lib/wchar.in.h (wcrtomb): New declaration.
48412         * lib/wcrtomb.c: New file.
48413         * m4/wcrtomb.m4: New file.
48414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48415         HAVE_WCRTOMB.
48416         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48417         HAVE_WCRTOMB.
48418         * modules/wcrtomb: New file.
48419         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48420
48421 2008-12-21  Bruno Haible  <bruno@clisp.org>
48422
48423         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48424         * modules/mbsrtowcs (Files): Likewise.
48425         * modules/wctob (Files): Likewise.
48426         * modules/c-strcase-tests (Files): Likewise.
48427         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48428         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48429         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48430         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48431         * modules/vasnprintf-posix-tests (Files): Likewise.
48432
48433 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48434
48435         gitlog-to-changelog: pass all command-line arguments to git-log
48436         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48437         it is sometimes convenient to filter the commits in various ways.
48438         gitlog-to-changelog only allows --since to specify a start date,
48439         but git-log itself supports many other filtering mechanisms.
48440         At the moment, I want to filter by branch name.  Rather than
48441         adding a --branch option to gitlog-to-changelog, it seems more
48442         flexible to simply pass all options directly to git-log and let
48443         git do the work.  Notice that this effectively makes --since a
48444         redundant option for gitlog-to-changelog, but removing it would
48445         require current usage to change since calls would then require
48446         an additional '--'.
48447
48448 2008-12-21  Bruno Haible  <bruno@clisp.org>
48449
48450         * modules/mbsnrtowcs-tests: New file.
48451         * tests/test-mbsnrtowcs1.sh: New file.
48452         * tests/test-mbsnrtowcs2.sh: New file.
48453         * tests/test-mbsnrtowcs3.sh: New file.
48454         * tests/test-mbsnrtowcs4.sh: New file.
48455         * tests/test-mbsnrtowcs.c: New file.
48456
48457         New module 'mbsnrtowcs'.
48458         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48459         * lib/mbsnrtowcs.c: New file.
48460         * lib/mbsrtowcs-state.c: New file.
48461         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48462         (internal_state): Remove variable.
48463         * m4/mbsnrtowcs.m4: New file.
48464         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48465         compilation units.
48466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48467         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48468         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48469         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48470         * modules/mbsnrtowcs: New file.
48471         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48472         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48473         portability problem.
48474
48475 2008-12-21  Bruno Haible  <bruno@clisp.org>
48476
48477         Work around mbsrtowcs bug.
48478         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48479         (gl_FUNC_MBSRTOWCS): Invoke it.
48480         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48481         m4/locale-zh.m4.
48482         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48483
48484 2008-12-21  Bruno Haible  <bruno@clisp.org>
48485
48486         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48487
48488 2008-12-21  Bruno Haible  <bruno@clisp.org>
48489
48490         Update doc for AIX.
48491         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48492         16-bit wchar_t type.
48493         * doc/posix-functions/btowc.texi: Likewise.
48494         * doc/posix-functions/fgetwc.texi: Likewise.
48495         * doc/posix-functions/fgetws.texi: Likewise.
48496         * doc/posix-functions/fputwc.texi: Likewise.
48497         * doc/posix-functions/fputws.texi: Likewise.
48498         * doc/posix-functions/fwide.texi: Likewise.
48499         * doc/posix-functions/fwprintf.texi: Likewise.
48500         * doc/posix-functions/fwscanf.texi: Likewise.
48501         * doc/posix-functions/getwchar.texi: Likewise.
48502         * doc/posix-functions/getwc.texi: Likewise.
48503         * doc/posix-functions/iswalnum.texi: Likewise.
48504         * doc/posix-functions/iswalpha.texi: Likewise.
48505         * doc/posix-functions/iswblank.texi: Likewise.
48506         * doc/posix-functions/iswcntrl.texi: Likewise.
48507         * doc/posix-functions/iswctype.texi: Likewise.
48508         * doc/posix-functions/iswdigit.texi: Likewise.
48509         * doc/posix-functions/iswgraph.texi: Likewise.
48510         * doc/posix-functions/iswlower.texi: Likewise.
48511         * doc/posix-functions/iswprint.texi: Likewise.
48512         * doc/posix-functions/iswpunct.texi: Likewise.
48513         * doc/posix-functions/iswspace.texi: Likewise.
48514         * doc/posix-functions/iswupper.texi: Likewise.
48515         * doc/posix-functions/iswxdigit.texi: Likewise.
48516         * doc/posix-functions/mbrtowc.texi: Likewise.
48517         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48518         * doc/posix-functions/mbstowcs.texi: Likewise.
48519         * doc/posix-functions/mbtowc.texi: Likewise.
48520         * doc/posix-functions/putwchar.texi: Likewise.
48521         * doc/posix-functions/putwc.texi: Likewise.
48522         * doc/posix-functions/swprintf.texi: Likewise.
48523         * doc/posix-functions/tolower.texi: Likewise.
48524         * doc/posix-functions/toupper.texi: Likewise.
48525         * doc/posix-functions/towctrans.texi: Likewise.
48526         * doc/posix-functions/ungetwc.texi: Likewise.
48527         * doc/posix-functions/vswprintf.texi: Likewise.
48528         * doc/posix-functions/wcrtomb.texi: Likewise.
48529         * doc/posix-functions/wcscat.texi: Likewise.
48530         * doc/posix-functions/wcschr.texi: Likewise.
48531         * doc/posix-functions/wcscmp.texi: Likewise.
48532         * doc/posix-functions/wcscoll.texi: Likewise.
48533         * doc/posix-functions/wcscpy.texi: Likewise.
48534         * doc/posix-functions/wcscspn.texi: Likewise.
48535         * doc/posix-functions/wcsftime.texi: Likewise.
48536         * doc/posix-functions/wcslen.texi: Likewise.
48537         * doc/posix-functions/wcsncat.texi: Likewise.
48538         * doc/posix-functions/wcsncmp.texi: Likewise.
48539         * doc/posix-functions/wcsncpy.texi: Likewise.
48540         * doc/posix-functions/wcspbrk.texi: Likewise.
48541         * doc/posix-functions/wcsrchr.texi: Likewise.
48542         * doc/posix-functions/wcsrtombs.texi: Likewise.
48543         * doc/posix-functions/wcsspn.texi: Likewise.
48544         * doc/posix-functions/wcsstr.texi: Likewise.
48545         * doc/posix-functions/wcstod.texi: Likewise.
48546         * doc/posix-functions/wcstof.texi: Likewise.
48547         * doc/posix-functions/wcstoimax.texi: Likewise.
48548         * doc/posix-functions/wcstok.texi: Likewise.
48549         * doc/posix-functions/wcstold.texi: Likewise.
48550         * doc/posix-functions/wcstoll.texi: Likewise.
48551         * doc/posix-functions/wcstol.texi: Likewise.
48552         * doc/posix-functions/wcstombs.texi: Likewise.
48553         * doc/posix-functions/wcstoull.texi: Likewise.
48554         * doc/posix-functions/wcstoul.texi: Likewise.
48555         * doc/posix-functions/wcstoumax.texi: Likewise.
48556         * doc/posix-functions/wcswidth.texi: Likewise.
48557         * doc/posix-functions/wcsxfrm.texi: Likewise.
48558         * doc/posix-functions/wctob.texi: Likewise.
48559         * doc/posix-functions/wctomb.texi: Likewise.
48560         * doc/posix-functions/wctrans.texi: Likewise.
48561         * doc/posix-functions/wctype.texi: Likewise.
48562         * doc/posix-functions/wcwidth.texi: Likewise.
48563         * doc/posix-functions/wmemchr.texi: Likewise.
48564         * doc/posix-functions/wmemcmp.texi: Likewise.
48565         * doc/posix-functions/wmemcpy.texi: Likewise.
48566         * doc/posix-functions/wmemmove.texi: Likewise.
48567         * doc/posix-functions/wmemset.texi: Likewise.
48568         * doc/posix-functions/wprintf.texi: Likewise.
48569         * doc/posix-functions/wscanf.texi: Likewise.
48570
48571 2008-12-21  Bruno Haible  <bruno@clisp.org>
48572
48573         Update doc for HP-UX 11.11.
48574         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48575         in HP-UX version 11.00, not in all versions of HP-UX 11.
48576         * doc/posix-functions/fwide.texi: Likewise.
48577         * doc/posix-functions/fwprintf.texi: Likewise.
48578         * doc/posix-functions/fwscanf.texi: Likewise.
48579         * doc/posix-functions/inet_ntop.texi: Likewise.
48580         * doc/posix-functions/inet_pton.texi: Likewise.
48581         * doc/posix-functions/mbrlen.texi: Likewise.
48582         * doc/posix-functions/mbrtowc.texi: Likewise.
48583         * doc/posix-functions/mbsinit.texi: Likewise.
48584         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48585         * doc/posix-functions/swprintf.texi: Likewise.
48586         * doc/posix-functions/swscanf.texi: Likewise.
48587         * doc/posix-functions/towctrans.texi: Likewise.
48588         * doc/posix-functions/vfwprintf.texi: Likewise.
48589         * doc/posix-functions/vswprintf.texi: Likewise.
48590         * doc/posix-functions/vwprintf.texi: Likewise.
48591         * doc/posix-functions/wcrtomb.texi: Likewise.
48592         * doc/posix-functions/wcsrtombs.texi: Likewise.
48593         * doc/posix-functions/wcsstr.texi: Likewise.
48594         * doc/posix-functions/wctob.texi: Likewise.
48595         * doc/posix-functions/wctrans.texi: Likewise.
48596         * doc/posix-functions/wmemchr.texi: Likewise.
48597         * doc/posix-functions/wmemcmp.texi: Likewise.
48598         * doc/posix-functions/wmemcpy.texi: Likewise.
48599         * doc/posix-functions/wmemmove.texi: Likewise.
48600         * doc/posix-functions/wmemset.texi: Likewise.
48601         * doc/posix-functions/wprintf.texi: Likewise.
48602         * doc/posix-functions/wscanf.texi: Likewise.
48603
48604 2008-12-21  Bruno Haible  <bruno@clisp.org>
48605
48606         Work around a portability problem.
48607         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48608         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48609
48610 2008-12-20  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48613         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48614         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48616         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48617
48618         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48619         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48620         set.
48621         (GNULIB_defined_mbstate_t): New macro.
48622         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48623         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48624         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48625         reuses the system's mbrtowc function but works around the bugs.
48626         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48627         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48628         macros.
48629         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48630         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48631         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48632         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48633         REPLACE_MBSINIT if mbsinit needs to be overridden.
48634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48635         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48636         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48637         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48638         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48639         m4/locale-zh.m4.
48640         (Depends): Add mbsinit.
48641         * modules/mbsinit (Depends): Add mbrtowc.
48642         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48643
48644 2008-12-20  Bruno Haible  <bruno@clisp.org>
48645
48646         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48647         so that there are no conversion errors on AIX.
48648         * tests/test-mbsrtowcs.c (main): LIkewise.
48649
48650 2008-12-20  Bruno Haible  <bruno@clisp.org>
48651
48652         Work around wctob bug on Solaris <= 9.
48653         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48654         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48656         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48657         * modules/wctob (Files): Add m4/locale-fr.m4.
48658         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48659
48660 2008-12-20  Bruno Haible  <bruno@clisp.org>
48661
48662         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48663         /dev/null.
48664         * tests/test-select-in.sh: Likewise.
48665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48666
48667 2008-12-20  Bruno Haible  <bruno@clisp.org>
48668
48669         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48670         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48671         Cygwin 1.5.x.
48672
48673 2008-12-20  Bruno Haible  <bruno@clisp.org>
48674
48675         Ensure mbstate_t is defined on HP-UX 11.11.
48676         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48677         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48678         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48679         AC_USE_SYSTEM_EXTENSIONS.
48680         * modules/fnmatch (Depends-on): Add extensions.
48681         * modules/mbrlen (Depends-on): Likewise.
48682         * modules/mbrtowc (Depends-on): Likewise.
48683         * modules/mbsinit (Depends-on): Likewise.
48684         * modules/mbsrtowcs (Depends-on): Likewise.
48685         * modules/mbswidth (Depends-on): Likewise.
48686         * modules/quotearg (Depends-on): Likewise.
48687         * modules/strftime (Depends-on): Likewise.
48688
48689 2008-12-20  Bruno Haible  <bruno@clisp.org>
48690
48691         Ensure wctob is declared on IRIX 6.5.
48692         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48693         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48694         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48696         of HAVE_WCTOB.
48697         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48698         HAVE_WCTOB.
48699         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48700
48701 2008-12-19  Bruno Haible  <bruno@clisp.org>
48702
48703         * modules/mbsrtowcs-tests: New file.
48704         * tests/test-mbsrtowcs1.sh: New file.
48705         * tests/test-mbsrtowcs2.sh: New file.
48706         * tests/test-mbsrtowcs3.sh: New file.
48707         * tests/test-mbsrtowcs4.sh: New file.
48708         * tests/test-mbsrtowcs.c: New file.
48709
48710         New module 'mbsrtowcs'.
48711         * lib/wchar.in.h (mbsrtowcs): New declaration.
48712         * lib/mbsrtowcs.c: New file.
48713         * m4/mbsrtowcs.m4: New file.
48714         * modules/mbsrtowcs: New file.
48715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48716         HAVE_MBSRTOWCS.
48717         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48718         HAVE_MBSRTOWCS.
48719         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48720
48721 2008-12-19  Bruno Haible  <bruno@clisp.org>
48722
48723         New module 'mbrlen'.
48724         * lib/wchar.in.h (mbrlen): New declaration.
48725         * lib/mbrlen.c: New file.
48726         * m4/mbrlen.m4: New file.
48727         * modules/mbrlen: New file.
48728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48729         HAVE_MBRLEN.
48730         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48731         HAVE_MBRLEN.
48732         * doc/posix-functions/mbrlen.texi: Document the new module.
48733
48734 2008-12-19  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48737         * modules/mbrtowc (Depends-on): Add verify.
48738         Suggested by Paul Eggert.
48739
48740 2008-12-18  Bruno Haible  <bruno@clisp.org>
48741
48742         * modules/mbsinit-tests: New file.
48743         * tests/test-mbsinit.sh: New file.
48744         * tests/test-mbsinit.c: New file.
48745
48746 2008-12-18  Bruno Haible  <bruno@clisp.org>
48747
48748         * modules/mbrtowc-tests: New file.
48749         * tests/test-mbrtowc1.sh: New file.
48750         * tests/test-mbrtowc2.sh: New file.
48751         * tests/test-mbrtowc3.sh: New file.
48752         * tests/test-mbrtowc4.sh: New file.
48753         * tests/test-mbrtowc.c: New file.
48754
48755         New module 'mbrtowc'.
48756         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48757         mbsinit and mbrtowc.
48758         (mbrtowc): New declaration.
48759         * lib/mbrtowc.c: New file.
48760         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48761         * modules/mbrtowc: New file.
48762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48763         HAVE_MBRTOWC.
48764         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48765         HAVE_MBRTOWC.
48766         * doc/posix-functions/mbrtowc.texi: Document the new module.
48767
48768 2008-12-18  Bruno Haible  <bruno@clisp.org>
48769
48770         New module 'wctob'.
48771         * lib/wchar.in.h (wctob): New declaration.
48772         * lib/wctob.c: New file.
48773         * m4/wctob.m4: New file.
48774         * modules/wctob: New file.
48775         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48776         HAVE_WCTOB.
48777         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48778         * doc/posix-functions/wctob.texi: Document the new module.
48779
48780 2008-12-18  Bruno Haible  <bruno@clisp.org>
48781
48782         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48783         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48784
48785 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48786
48787         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48788         G. Christensen" <tgc@jupiterrise.com>.
48789
48790         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48791         G. Christensen" <tgc@jupiterrise.com>.
48792
48793         * lib/flock.c: Need to include string.h.  Reported by "Tom
48794         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48795         <ebb9@byu.net>.
48796
48797 2008-12-18  Bruno Haible  <bruno@clisp.org>
48798
48799         * m4/locale-ja.m4: New file, from GNU gettext.
48800
48801 2008-12-17  Bruno Haible  <bruno@clisp.org>
48802
48803         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48804         Suggested by Eric Blake.
48805
48806 2008-12-17  Bruno Haible  <bruno@clisp.org>
48807
48808         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48809
48810 2008-12-17  Bruno Haible  <bruno@clisp.org>
48811
48812         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48813         * modules/mbsinit (Depends-on): Add verify.
48814         Suggested by Paul Eggert.
48815
48816 2008-12-17  Bruno Haible  <bruno@clisp.org>
48817
48818         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48819         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48820         gl_FUNC_MBRTOWC.
48821         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48822         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48823         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48824         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48825         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48826         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48827         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48828         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48829         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48830         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48831         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48832         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48833         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48834         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48835         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48836         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48837         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48838         * modules/trim (configure.ac): Likewise.
48839
48840 2008-12-17  Bruno Haible  <bruno@clisp.org>
48841
48842         * modules/btowc-tests: New file.
48843         * tests/test-btowc1.sh: New file.
48844         * tests/test-btowc2.sh: New file.
48845         * tests/test-btowc.c: New file.
48846
48847         New module 'btowc'.
48848         * lib/wchar.in.h (btowc): New declaration.
48849         * lib/btowc.c: New file.
48850         * m4/btowc.m4: New file.
48851         * modules/btowc: New file.
48852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48853         HAVE_BTOWC.
48854         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48855         * doc/posix-functions/btowc.texi: Document the new module.
48856
48857 2008-12-17  Bruno Haible  <bruno@clisp.org>
48858
48859         New module 'mbsinit'.
48860         * lib/wchar.in.h (mbsinit): New declaration.
48861         * lib/mbsinit.c: New file.
48862         * m4/mbsinit.m4: New file.
48863         * modules/mbsinit: New file.
48864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48865         HAVE_MBSINIT.
48866         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48867         HAVE_MBSINIT.
48868         * doc/posix-functions/mbsinit.texi: Document the new module.
48869
48870 2008-12-16  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/unistd.in.h: Add comment.
48873         * tests/test-environ.c: Don't include <stdlib.h>.
48874
48875 2008-12-16  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/parse-duration.h (parse_duration): Document return value
48878         convention.
48879         * lib/parse-duration.c: Include specification header first. Add
48880         comments.
48881         (_): Remove macro.
48882         (parse_year_month_day, parse_hour_minute_second): Move side effects
48883         outside of strchr call.
48884         (parse_non_iso8601): Move side effects outside of isspace call.
48885         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48886         call.
48887
48888 2008-12-16  Bruno Haible  <bruno@clisp.org>
48889
48890         * tests/test-parse-duration.sh: Produce no output when the test
48891         succeeds.
48892
48893 2008-12-16  Bruno Haible  <bruno@clisp.org>
48894
48895         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48896         expressions.
48897
48898 2008-12-15  Bruno Haible  <bruno@clisp.org>
48899
48900         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48901         * doc/glibc-functions/flistxattr.texi: Likewise.
48902         * doc/glibc-functions/fopencookie.texi: Likewise.
48903         * doc/glibc-functions/fremovexattr.texi: Likewise.
48904         * doc/glibc-functions/fsetxattr.texi: Likewise.
48905         * doc/glibc-functions/getxattr.texi: Likewise.
48906         * doc/glibc-functions/lgetxattr.texi: Likewise.
48907         * doc/glibc-functions/listxattr.texi: Likewise.
48908         * doc/glibc-functions/llistxattr.texi: Likewise.
48909         * doc/glibc-functions/lremovexattr.texi: Likewise.
48910         * doc/glibc-functions/lsetxattr.texi: Likewise.
48911         * doc/glibc-functions/removexattr.texi: Likewise.
48912         * doc/glibc-functions/setxattr.texi: Likewise.
48913         * doc/posix-functions/open_memstream.texi: Likewise.
48914
48915 2008-12-15  Eric Blake  <ebb9@byu.net>
48916
48917         Update doc for cygwin 1.7.
48918         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48919         functions.
48920         * doc/posix-functions/fchmodat.texi: Likewise.
48921         * doc/posix-functions/fchownat.texi: Likewise.
48922         * doc/posix-functions/fdopendir.texi: Likewise.
48923         * doc/posix-functions/fmemopen.texi: Likewise.
48924         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48925         * doc/posix-functions/fstatat.texi: Likewise.
48926         * doc/posix-functions/futimens.texi: Likewise.
48927         * doc/posix-functions/gai_strerror.texi: Likewise.
48928         * doc/posix-functions/getaddrinfo.texi: Likewise.
48929         * doc/posix-functions/getnameinfo.texi: Likewise.
48930         * doc/posix-functions/if_freenameindex.texi: Likewise.
48931         * doc/posix-functions/if_indextoname.texi: Likewise.
48932         * doc/posix-functions/if_nameindex.texi: Likewise.
48933         * doc/posix-functions/if_nametoindex.texi: Likewise.
48934         * doc/posix-functions/insque.texi: Likewise.
48935         * doc/posix-functions/linkat.texi: Likewise.
48936         * doc/posix-functions/llrint.texi: Likewise.
48937         * doc/posix-functions/llrintf.texi: Likewise.
48938         * doc/posix-functions/llrintl.texi: Likewise.
48939         * doc/posix-functions/lockf.texi: Likewise.
48940         * doc/posix-functions/lrintl.texi: Likewise.
48941         * doc/posix-functions/mkdirat.texi: Likewise.
48942         * doc/posix-functions/mkfifoat.texi: Likewise.
48943         * doc/posix-functions/mknodat.texi: Likewise.
48944         * doc/posix-functions/mq_close.texi: Likewise.
48945         * doc/posix-functions/mq_getattr.texi: Likewise.
48946         * doc/posix-functions/mq_notify.texi: Likewise.
48947         * doc/posix-functions/mq_open.texi: Likewise.
48948         * doc/posix-functions/mq_receive.texi: Likewise.
48949         * doc/posix-functions/mq_send.texi: Likewise.
48950         * doc/posix-functions/mq_setattr.texi: Likewise.
48951         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48952         * doc/posix-functions/mq_timedsend.texi: Likewise.
48953         * doc/posix-functions/mq_unlink.texi: Likewise.
48954         * doc/posix-functions/open_memstream.texi: Likewise.
48955         * doc/posix-functions/openat.texi: Likewise.
48956         * doc/posix-functions/posix_fadvise.texi: Likewise.
48957         * doc/posix-functions/posix_fallocate.texi: Likewise.
48958         * doc/posix-functions/posix_madvise.texi: Likewise.
48959         * doc/posix-functions/posix_memalign.texi: Likewise.
48960         * doc/posix-functions/posix_openpt.texi: Likewise.
48961         * doc/posix-functions/readlinkat.texi: Likewise.
48962         * doc/posix-functions/remque.texi: Likewise.
48963         * doc/posix-functions/renameat.texi: Likewise.
48964         * doc/posix-functions/rintl.texi: Likewise.
48965         * doc/posix-functions/sem_unlink.texi: Likewise.
48966         * doc/posix-functions/shm_open.texi: Likewise.
48967         * doc/posix-functions/shm_unlink.texi: Likewise.
48968         * doc/posix-functions/signgam.texi: Likewise.
48969         * doc/posix-functions/sigset.texi: Likewise.
48970         * doc/posix-functions/stpcpy.texi: Likewise.
48971         * doc/posix-functions/stpncpy.texi: Likewise.
48972         * doc/posix-functions/strerror.texi: Likewise.
48973         * doc/posix-functions/strtod.texi: Likewise.
48974         * doc/posix-functions/symlinkat.texi: Likewise.
48975         * doc/posix-functions/unlinkat.texi: Likewise.
48976         * doc/posix-functions/utimensat.texi: Likewise.
48977         * doc/glibc-functions/bindresvport.texi: Likewise.
48978         * doc/glibc-functions/dn_expand.texi: Likewise.
48979         * doc/glibc-functions/exp10.texi: Likewise.
48980         * doc/glibc-functions/exp10f.texi: Likewise.
48981         * doc/glibc-functions/fgetxattr.texi: Likewise.
48982         * doc/glibc-functions/flistxattr.texi: Likewise.
48983         * doc/glibc-functions/fopencookie.texi: Likewise.
48984         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48985         * doc/glibc-functions/fremovexattr.texi: Likewise.
48986         * doc/glibc-functions/fsetxattr.texi: Likewise.
48987         * doc/glibc-functions/getifaddrs.texi: Likewise.
48988         * doc/glibc-functions/getxattr.texi: Likewise.
48989         * doc/glibc-functions/lgetxattr.texi: Likewise.
48990         * doc/glibc-functions/listxattr.texi: Likewise.
48991         * doc/glibc-functions/llistxattr.texi: Likewise.
48992         * doc/glibc-functions/lremovexattr.texi: Likewise.
48993         * doc/glibc-functions/lsetxattr.texi: Likewise.
48994         * doc/glibc-functions/pow10.texi: Likewise.
48995         * doc/glibc-functions/pow10f.texi: Likewise.
48996         * doc/glibc-functions/rcmd_af.texi: Likewise.
48997         * doc/glibc-functions/removexattr.texi: Likewise.
48998         * doc/glibc-functions/res_init.texi: Likewise.
48999         * doc/glibc-functions/res_mkquery.texi: Likewise.
49000         * doc/glibc-functions/res_query.texi: Likewise.
49001         * doc/glibc-functions/res_querydomain.texi: Likewise.
49002         * doc/glibc-functions/res_send.texi: Likewise.
49003         * doc/glibc-functions/rresvport_af.texi: Likewise.
49004         * doc/glibc-functions/setxattr.texi: Likewise.
49005         * doc/glibc-functions/strcasestr.texi: Likewise.
49006
49007 2008-12-15  Bruno Haible  <bruno@clisp.org>
49008
49009         Fix compilation error on OSF/1 4.0.
49010         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49011         <sys/time.h>, simply delegate to the system header.
49012         Reported by Daniel Richard G. <oss@teragram.com>.
49013
49014 2008-12-15  Bruno Haible  <bruno@clisp.org>
49015
49016         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49017         * doc/posix-functions/fchmodat.texi: Likewise.
49018         * doc/posix-functions/fchownat.texi: Likewise.
49019         * doc/posix-functions/fdopendir.texi: Likewise.
49020         * doc/posix-functions/fstatat.texi: Likewise.
49021         * doc/posix-functions/mkdirat.texi: Likewise.
49022         * doc/posix-functions/unlinkat.texi: Likewise.
49023
49024 2008-12-14  Bruno Haible  <bruno@clisp.org>
49025
49026         Update doc for POSIX:2008.
49027         * doc/posix-functions/faccessat.texi: New file.
49028         * doc/posix-functions/fchmodat.texi: New file.
49029         * doc/posix-functions/fchownat.texi: New file.
49030         * doc/posix-functions/fdopendir.texi: New file.
49031         * doc/posix-functions/fstatat.texi: New file.
49032         * doc/posix-functions/futimens.texi: New file.
49033         * doc/posix-functions/linkat.texi: New file.
49034         * doc/posix-functions/mkdirat.texi: New file.
49035         * doc/posix-functions/mkfifoat.texi: New file.
49036         * doc/posix-functions/mknodat.texi: New file.
49037         * doc/posix-functions/open_wmemstream.texi: New file.
49038         * doc/posix-functions/openat.texi: New file.
49039         * doc/posix-functions/psiginfo.texi: New file.
49040         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49041         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49042         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49043         * doc/posix-functions/readlinkat.texi: New file.
49044         * doc/posix-functions/renameat.texi: New file.
49045         * doc/posix-functions/strerror_l.texi: New file.
49046         * doc/posix-functions/symlinkat.texi: New file.
49047         * doc/posix-functions/unlinkat.texi: New file.
49048         * doc/posix-functions/utimensat.texi: New file.
49049         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49050
49051 2008-12-14  Bruno Haible  <bruno@clisp.org>
49052
49053         Update doc for POSIX:2008.
49054         * doc/posix-functions/alphasort.texi: Renamed from
49055         doc/glibc-functions/alphasort.texi.
49056         * doc/posix-functions/dirfd.texi: Renamed from
49057         doc/glibc-functions/dirfd.texi.
49058         * doc/posix-functions/dprintf.texi: Renamed from
49059         doc/glibc-functions/dprintf.texi.
49060         * doc/posix-functions/duplocale.texi: Renamed from
49061         doc/glibc-functions/duplocale.texi.
49062         * doc/posix-functions/fexecve.texi: Renamed from
49063         doc/glibc-functions/fexecve.texi.
49064         * doc/posix-functions/fmemopen.texi: Renamed from
49065         doc/glibc-functions/fmemopen.texi.
49066         * doc/posix-functions/freelocale.texi: Renamed from
49067         doc/glibc-functions/freelocale.texi.
49068         * doc/posix-functions/getdate_err.texi: Renamed from
49069         doc/glibc-functions/getdate_err.texi.
49070         * doc/posix-functions/isalnum_l.texi: Renamed from
49071         doc/glibc-functions/isalnum_l.texi.
49072         * doc/posix-functions/isalpha_l.texi: Renamed from
49073         doc/glibc-functions/isalpha_l.texi.
49074         * doc/posix-functions/isblank_l.texi: Renamed from
49075         doc/glibc-functions/isblank_l.texi.
49076         * doc/posix-functions/iscntrl_l.texi: Renamed from
49077         doc/glibc-functions/iscntrl_l.texi.
49078         * doc/posix-functions/isdigit_l.texi: Renamed from
49079         doc/glibc-functions/isdigit_l.texi.
49080         * doc/posix-functions/isgraph_l.texi: Renamed from
49081         doc/glibc-functions/isgraph_l.texi.
49082         * doc/posix-functions/islower_l.texi: Renamed from
49083         doc/glibc-functions/islower_l.texi.
49084         * doc/posix-functions/isprint_l.texi: Renamed from
49085         doc/glibc-functions/isprint_l.texi.
49086         * doc/posix-functions/ispunct_l.texi: Renamed from
49087         doc/glibc-functions/ispunct_l.texi.
49088         * doc/posix-functions/isspace_l.texi: Renamed from
49089         doc/glibc-functions/isspace_l.texi.
49090         * doc/posix-functions/isupper_l.texi: Renamed from
49091         doc/glibc-functions/isupper_l.texi.
49092         * doc/posix-functions/iswalnum_l.texi: Renamed from
49093         doc/glibc-functions/iswalnum_l.texi.
49094         * doc/posix-functions/iswalpha_l.texi: Renamed from
49095         doc/glibc-functions/iswalpha_l.texi.
49096         * doc/posix-functions/iswblank_l.texi: Renamed from
49097         doc/glibc-functions/iswblank_l.texi.
49098         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49099         doc/glibc-functions/iswcntrl_l.texi.
49100         * doc/posix-functions/iswctype_l.texi: Renamed from
49101         doc/glibc-functions/iswctype_l.texi.
49102         * doc/posix-functions/iswdigit_l.texi: Renamed from
49103         doc/glibc-functions/iswdigit_l.texi.
49104         * doc/posix-functions/iswgraph_l.texi: Renamed from
49105         doc/glibc-functions/iswgraph_l.texi.
49106         * doc/posix-functions/iswlower_l.texi: Renamed from
49107         doc/glibc-functions/iswlower_l.texi.
49108         * doc/posix-functions/iswprint_l.texi: Renamed from
49109         doc/glibc-functions/iswprint_l.texi.
49110         * doc/posix-functions/iswpunct_l.texi: Renamed from
49111         doc/glibc-functions/iswpunct_l.texi.
49112         * doc/posix-functions/iswspace_l.texi: Renamed from
49113         doc/glibc-functions/iswspace_l.texi.
49114         * doc/posix-functions/iswupper_l.texi: Renamed from
49115         doc/glibc-functions/iswupper_l.texi.
49116         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49117         doc/glibc-functions/iswxdigit_l.texi.
49118         * doc/posix-functions/isxdigit_l.texi: Renamed from
49119         doc/glibc-functions/isxdigit_l.texi.
49120         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49121         doc/glibc-functions/mbsnrtowcs.texi.
49122         * doc/posix-functions/mkdtemp.texi: Renamed from
49123         doc/glibc-functions/mkdtemp.texi.
49124         * doc/posix-functions/newlocale.texi: Renamed from
49125         doc/glibc-functions/newlocale.texi.
49126         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49127         doc/glibc-functions/nl_langinfo_l.texi.
49128         * doc/posix-functions/open_memstream.texi: Renamed from
49129         doc/glibc-functions/open_memstream.texi.
49130         * doc/posix-functions/opterr.texi: Renamed from
49131         doc/glibc-functions/opterr.texi.
49132         * doc/posix-functions/optind.texi: Renamed from
49133         doc/glibc-functions/optind.texi.
49134         * doc/posix-functions/optopt.texi: Renamed from
49135         doc/glibc-functions/optopt.texi.
49136         * doc/posix-functions/psignal.texi: Renamed from
49137         doc/glibc-functions/psignal.texi.
49138         * doc/posix-functions/scandir.texi: Renamed from
49139         doc/glibc-functions/scandir.texi.
49140         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49141         doc/glibc-functions/sched_get_priority_min.texi.
49142         * doc/posix-functions/signgam.texi: Renamed from
49143         doc/glibc-functions/signgam.texi.
49144         * doc/posix-functions/stpcpy.texi: Renamed from
49145         doc/glibc-functions/stpcpy.texi.
49146         * doc/posix-functions/stpncpy.texi: Renamed from
49147         doc/glibc-functions/stpncpy.texi.
49148         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49149         doc/glibc-functions/strcasecmp_l.texi.
49150         * doc/posix-functions/strcoll_l.texi: Renamed from
49151         doc/glibc-functions/strcoll_l.texi.
49152         * doc/posix-functions/strfmon_l.texi: Renamed from
49153         doc/glibc-functions/strfmon_l.texi.
49154         * doc/posix-functions/strftime_l.texi: Renamed from
49155         doc/glibc-functions/strftime_l.texi.
49156         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49157         doc/glibc-functions/strncasecmp_l.texi.
49158         * doc/posix-functions/strndup.texi: Renamed from
49159         doc/glibc-functions/strndup.texi.
49160         * doc/posix-functions/strnlen.texi: Renamed from
49161         doc/glibc-functions/strnlen.texi.
49162         * doc/posix-functions/strsignal.texi: Renamed from
49163         doc/glibc-functions/strsignal.texi.
49164         * doc/posix-functions/strxfrm_l.texi: Renamed from
49165         doc/glibc-functions/strxfrm_l.texi.
49166         * doc/posix-functions/timer_gettime.texi: Renamed from
49167         doc/glibc-functions/timer_gettime.texi.
49168         * doc/posix-functions/tolower_l.texi: Renamed from
49169         doc/glibc-functions/tolower_l.texi.
49170         * doc/posix-functions/toupper_l.texi: Renamed from
49171         doc/glibc-functions/toupper_l.texi.
49172         * doc/posix-functions/towctrans_l.texi: Renamed from
49173         doc/glibc-functions/towctrans_l.texi.
49174         * doc/posix-functions/towlower_l.texi: Renamed from
49175         doc/glibc-functions/towlower_l.texi.
49176         * doc/posix-functions/towupper_l.texi: Renamed from
49177         doc/glibc-functions/towupper_l.texi.
49178         * doc/posix-functions/uselocale.texi: Renamed from
49179         doc/glibc-functions/uselocale.texi.
49180         * doc/posix-functions/vdprintf.texi: Renamed from
49181         doc/glibc-functions/vdprintf.texi.
49182         * doc/posix-functions/wcpcpy.texi:
49183         Renamed from doc/glibc-functions/wcpcpy.texi.
49184         * doc/posix-functions/wcpncpy.texi: Renamed from
49185         doc/glibc-functions/wcpncpy.texi.
49186         * doc/posix-functions/wcscasecmp.texi: Renamed from
49187         doc/glibc-functions/wcscasecmp.texi.
49188         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49189         doc/glibc-functions/wcscasecmp_l.texi.
49190         * doc/posix-functions/wcscoll_l.texi: Renamed from
49191         doc/glibc-functions/wcscoll_l.texi.
49192         * doc/posix-functions/wcsdup.texi: Renamed from
49193         doc/glibc-functions/wcsdup.texi.
49194         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49195         doc/glibc-functions/wcsncasecmp.texi.
49196         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49197         doc/glibc-functions/wcsncasecmp_l.texi.
49198         * doc/posix-functions/wcsnlen.texi: Renamed from
49199         doc/glibc-functions/wcsnlen.texi.
49200         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49201         doc/glibc-functions/wcsnrtombs.texi.
49202         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49203         doc/glibc-functions/wcsxfrm_l.texi.
49204         * doc/posix-functions/wctrans_l.texi: Renamed from
49205         doc/glibc-functions/wctrans_l.texi.
49206         * doc/posix-functions/wctype_l.texi: Renamed from
49207         doc/glibc-functions/wctype_l.texi.
49208         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49209         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49210         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49211         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49212         these subsections.
49213         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49214         Remove sections.
49215
49216 2008-12-14  Bruno Haible  <bruno@clisp.org>
49217
49218         Update doc for POSIX:2008.
49219         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49220
49221 2008-12-14  Bruno Haible  <bruno@clisp.org>
49222
49223         Update doc for POSIX:2008.
49224         * doc/pastposix-functions/bcmp.texi: Renamed from
49225         doc/posix-functions/bcmp.texi.
49226         * doc/pastposix-functions/bcopy.texi: Renamed from
49227         doc/posix-functions/bcopy.texi.
49228         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49229         doc/posix-functions/bsd_signal.texi.
49230         * doc/pastposix-functions/bzero.texi: Renamed from
49231         doc/posix-functions/bzero.texi.
49232         * doc/pastposix-functions/ecvt.texi: Renamed from
49233         doc/posix-functions/ecvt.texi.
49234         * doc/pastposix-functions/fcvt.texi: Renamed from
49235         doc/posix-functions/fcvt.texi.
49236         * doc/pastposix-functions/ftime.texi: Renamed from
49237         doc/posix-functions/ftime.texi.
49238         * doc/pastposix-functions/gcvt.texi: Renamed from
49239         doc/posix-functions/gcvt.texi.
49240         * doc/pastposix-functions/getcontext.texi: Renamed from
49241         doc/posix-functions/getcontext.texi.
49242         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49243         doc/posix-functions/gethostbyaddr.texi.
49244         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49245         doc/posix-functions/gethostbyname.texi.
49246         * doc/pastposix-functions/getwd.texi: Renamed from
49247         doc/posix-functions/getwd.texi.
49248         * doc/pastposix-functions/h_errno.texi: Renamed from
49249         doc/posix-functions/h_errno.texi.
49250         * doc/pastposix-functions/index.texi: Renamed from
49251         doc/posix-functions/index.texi.
49252         * doc/pastposix-functions/makecontext.texi: Renamed from
49253         doc/posix-functions/makecontext.texi.
49254         * doc/pastposix-functions/mktemp.texi: Renamed from
49255         doc/posix-functions/mktemp.texi.
49256         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49257         doc/posix-functions/pthread_attr_getstackaddr.texi.
49258         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49259         doc/posix-functions/pthread_attr_setstackaddr.texi.
49260         * doc/pastposix-functions/rindex.texi: Renamed from
49261         doc/posix-functions/rindex.texi.
49262         * doc/pastposix-functions/scalb.texi: Renamed from
49263         doc/posix-functions/scalb.texi.
49264         * doc/pastposix-functions/setcontext.texi: Renamed from
49265         doc/posix-functions/setcontext.texi.
49266         * doc/pastposix-functions/swapcontext.texi: Renamed from
49267         doc/posix-functions/swapcontext.texi.
49268         * doc/pastposix-functions/ualarm.texi: Renamed from
49269         doc/posix-functions/ualarm.texi.
49270         * doc/pastposix-functions/usleep.texi: Renamed from
49271         doc/posix-functions/usleep.texi.
49272         * doc/pastposix-functions/vfork.texi: Renamed from
49273         doc/posix-functions/vfork.texi.
49274         * doc/pastposix-functions/wcswcs.texi: Renamed from
49275         doc/posix-functions/wcswcs.texi.
49276         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49277         (Function Substitutes): Update.
49278
49279 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49280
49281         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49282         m4/strerror.m4.
49283
49284 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49285             Bruno Haible  <bruno@clisp.org>
49286
49287         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49288
49289 2008-12-13  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/strtoull (Depends-on): Remove unistd.
49292
49293 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49294
49295         * modules/strtoull (Depends-on): Add stdlib.
49296
49297 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49298
49299         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49300
49301 2008-12-10  Jim Meyering  <meyering@redhat.com>
49302
49303         gl_ASSERT: don't say assertions are disabled when they're not
49304         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49305         "checking whether to enable assertions... no", when they are in
49306         fact enabled.  This is solely a bug in the output of configure.
49307         In spite of saying "no", NDEBUG was not defined in that case.
49308         Also, as noted by Eric Blake, leave assertions enabled upon
49309         --enable-assert=INVALID.
49310
49311 2008-12-10  Bruno Haible  <bruno@clisp.org>
49312
49313         Change MODULES.html to refer to POSIX:2008 where possible.
49314         * MODULES.html.sh (POSIX2008_URL): New variable.
49315         (posix_headers): Remove sys/timeb, ucontext.
49316         (posix2001_headers): New variable.
49317         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49318         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49319         index, makecontext, mktemp, pthread_attr_getstackaddr,
49320         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49321         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49322         (posix2001_functions): New variable.
49323         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49324         otherwise.
49325
49326 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49327
49328         add missing include to parse-duration.c
49329         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49330         * modules/parse-duration (Depends-on): Add xalloc.
49331
49332         fix sed script reading maint.mk
49333         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49334         (syntax-check-rules): Use it.
49335
49336 2008-12-09  Bruno Haible  <bruno@clisp.org>
49337
49338         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49339         MacOS X 10.4/PowerPC.
49340         Reported by Simon Josefsson.
49341
49342 2008-12-08  Jim Meyering  <meyering@redhat.com>
49343
49344         work around mingw's lack of some S_IF definitions
49345         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49346         Reported by Simon Josefsson.
49347
49348 2008-12-08  Bruno Haible  <bruno@clisp.org>
49349
49350         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49351         applied to variables. Needed on MacOS X 10.4/PowerPC.
49352         Reported by Simon Josefsson.
49353
49354 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49355         and Eric Blake  <ebb9@byu.net>
49356
49357         assert: honor --enable-assert
49358         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49359         order to honor --enable-assert, rather than treating it as a
49360         synonym for --disable-assert.
49361
49362 2008-12-08  Jim Meyering  <meyering@redhat.com>
49363
49364         * lib/posixtm.c: Remove now-useless declaration of mktime.
49365
49366         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49367
49368 2008-12-07  Bruno Haible  <bruno@clisp.org>
49369
49370         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49371         test_once): Mark functions as static.
49372         * tests/test-tls.c (test_tls): Likewise.
49373
49374 2008-12-07  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49377         iconv_register_autodetect.
49378
49379 2008-12-07  Jim Meyering  <meyering@redhat.com>
49380
49381         posixtm.c: avoid a warning
49382         * lib/posixtm.c (posixtime): Don't initialize tm0.
49383         It's no longer needed to placate gcc4's -Wuninitialized,
49384         and the attempt to placate would elicit a new warning.
49385
49386         unicodeio.c: mark unused parameters
49387         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49388         (fallback_failure_callback): Likewise.
49389
49390 2008-12-07  Bruno Haible  <bruno@clisp.org>
49391
49392         * gnulib-tool (func_create_testdir): When building the tests
49393         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49394         Reported by Simon Josefsson.
49395
49396 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49397
49398         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49399
49400 2008-12-06  Bruno Haible  <bruno@clisp.org>
49401
49402         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49403         Suggested by Eric Blake.
49404
49405 2008-12-06  Bruno Haible  <bruno@clisp.org>
49406
49407         Fix a c-stack test failure on MacOS X.
49408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49409         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49410         handler for SIGBUS as well.
49411         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49412         install a signal handler for SIGBUS as well.
49413         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49414
49415 2008-12-06  Bruno Haible  <bruno@clisp.org>
49416
49417         Advocacy documentation.
49418         * doc/gnulib-intro.texi (Benefits): New section.
49419         * doc/gnulib.texi: Update.
49420
49421 2008-12-06  Bruno Haible  <bruno@clisp.org>
49422
49423         Document the 'manywarnings' module.
49424         * doc/manywarnings.texi: New file.
49425         * doc/gnulib.texi: Include it.
49426
49427 2008-12-05  Eric Blake  <ebb9@byu.net>
49428
49429         tests: silence some gcc warnings
49430         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49431         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49432         type mismatches.
49433
49434 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49435             Bruno Haible  <bruno@clisp.org>
49436
49437         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49438
49439 2008-11-29  Jim Meyering  <meyering@redhat.com>
49440
49441         unicodeio.c: mark unused parameters
49442         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49443         (fallback_failure_callback): Likewise.
49444
49445         fts: fix a thinko
49446         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49447         (set_stat_type): Return S_IF*-valued "type" directly.
49448         Prompted by James Youngman's spotting a related bug.
49449         Confirmed by further testing through find.
49450
49451         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49452         * lib/fts.c (D_TYPE): Define.
49453         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49454         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49455         (s_ifmt_shift_bits): New function.
49456         (set_stat_type): New function.
49457         (fts_build): When not calling fts_stat, call set_stat_type
49458         to propagate dirent.d_type info to fts_read caller.
49459         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49460         fts_statp->st_mode type information may be valid.
49461
49462 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49463
49464         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49465         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49466         <sds@gnu.org>.
49467
49468 2008-11-20  Bruno Haible  <bruno@clisp.org>
49469
49470         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49471         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49472         INCLUDE_NEXT.
49473         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49474         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49475         * modules/math (Makefile.am): Substitute
49476         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49478
49479 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49480             Bruno Haible  <bruno@clisp.org>
49481
49482         * lib/stdint.in.h: Define all type macros so that their expansion is
49483         a single typedef'ed token. Fixes a compilation failure in Boost which
49484         does "using ::int8_t;".
49485
49486 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49487
49488         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49489         gl_MANYWARN_ALL_GCC.
49490         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49491         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49492         * modules/manywarnings: New file.
49493         * MODULES.html.sh: Mention manywarnings module.
49494
49495 2008-11-18  Bruno Haible  <bruno@clisp.org>
49496
49497         * doc/gnulib-tool.texi (Unit tests): New section.
49498
49499 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49500
49501         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49502         paths like 'lib/po/foo.po'.
49503
49504 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49505
49506         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49507         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49508
49509 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49510
49511         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49512         parameter works.
49513
49514 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49515
49516         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49517
49518 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49519
49520         * modules/parse-duration-tests: New file.
49521         * tests/test-parse-duration.sh: New file.
49522         * tests/test-parse-duration.c: New file.
49523
49524         New module 'parse-duration'.
49525         * lib/parse-duration.h: New file.
49526         * lib/parse-duration.c: New file.
49527         * modules/parse-duration: New file.
49528
49529 2008-11-17  Bruno Haible  <bruno@clisp.org>
49530
49531         * tests/test-select-out.sh: Comment out the first pipe test.
49532         Reported by Simon Josefsson.
49533
49534 2008-11-17  Bruno Haible  <bruno@clisp.org>
49535
49536         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49538         gl_HOSTENT.
49539
49540 2008-11-17  Bruno Haible  <bruno@clisp.org>
49541
49542         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49543         -lnetwork and -lnet. Needed for Haiku and BeOS.
49544
49545 2008-11-16  Bruno Haible  <bruno@clisp.org>
49546
49547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49548
49549 2008-11-16  Bruno Haible  <bruno@clisp.org>
49550
49551         Avoid test failure on Haiku.
49552         * tests/test-fsync.c: Include <errno.h>.
49553         (main): Don't require that fsync (0) fails.
49554
49555 2008-11-15  Bruno Haible  <bruno@clisp.org>
49556
49557         New module 'hostent'.
49558         * modules/hostent: New file.
49559         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49560
49561 2008-11-15  Bruno Haible  <bruno@clisp.org>
49562
49563         New module 'servent'.
49564         * modules/servent: New file.
49565         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49566
49567 2008-11-15  Bruno Haible  <bruno@clisp.org>
49568
49569         Avoid generating same test program with two different rules.
49570         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49571         test-frexp to test-frexp-nolibm.
49572         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49573         test-frexpl to test-frexpl-nolibm.
49574
49575 2008-11-15  Bruno Haible  <bruno@clisp.org>
49576
49577         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49578         $(FREXPL_LIBM).
49579
49580 2008-11-15  Bruno Haible  <bruno@clisp.org>
49581
49582         * lib/netdb.in.h: Activate the definitions also when the system's
49583         <netdb.h> has 'struct addrinfo'.
49584         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49585         EAI_OVERFLOW or AI_NUMERICSERV.
49586         * doc/posix-headers/netdb.texi: Document the problem.
49587
49588 2008-11-15  Bruno Haible  <bruno@clisp.org>
49589
49590         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49591
49592         Make the 'sched' module work on platforms where <sched.h> exists but
49593         is incomplete (such as Haiku).
49594         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49595         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49596         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49597         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49598         HAVE_STRUCT_SCHED_PARAM.
49599         * modules/sched (Depends-on): Add include_next.
49600         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49601         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49602         * doc/posix-headers/sched.texi: Document the issue.
49603
49604 2008-11-13  Jim Meyering  <meyering@redhat.com>
49605
49606         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49607         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49608         test would fail due to the difference in the Report bugs to ...
49609         line.  The expected address is empty, "<>", while the actual
49610         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49611
49612 2008-11-12  Bruno Haible  <bruno@clisp.org>
49613
49614         lstat: don't compile lstat.c on systems lacking lstat
49615         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49616         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49617         Reported by Daniel P. Berrange via Jim Meyering.
49618
49619 2008-11-12  Jim Meyering  <meyering@redhat.com>
49620
49621         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49622
49623 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49624
49625         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49626         instead.
49627
49628 2008-11-12  Bruno Haible  <bruno@clisp.org>
49629
49630         * lib/unicodeio.c: Include unistr.h.
49631         (utf8_wctomb): Remove function.
49632         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49633
49634 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49635
49636         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49637         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49638         <bruno@clisp.org>.
49639         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49640
49641 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49642
49643         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49644         * doc/gnulib.texi: Add section for warnings.
49645
49646 2008-11-11  Bruno Haible  <bruno@clisp.org>
49647
49648         * lib/sockets.h: Add a comment.
49649
49650 2008-11-11  Karl Berry  <karl@gnu.org>
49651
49652         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49653
49654 2008-11-11  Eric Blake  <ebb9@byu.net>
49655
49656         fdl.texi: avoid git symlinks
49657         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49658
49659 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49660
49661         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49662
49663 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49664
49665         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49666         (gl_WARN_ADD): Substitute $2 if literal.
49667
49668 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49669
49670         * m4/warning.m4: Remove.
49671
49672 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49673
49674         * m4/warnings.m4: Almost complete rewrite. :-)
49675
49676 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49677
49678         * modules/warnings: New module.
49679         * m4/warnings.m4: New file.
49680         * MODULES.html.sh: Mention warnings module.
49681         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49682         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49683
49684 2008-11-10  Eric Blake  <ebb9@byu.net>
49685
49686         fdl.texi: make a symlink to the latest version
49687         * doc/standards.texi: Revert today's earlier change.
49688         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49689         * doc/fdl.texi: ...and replace this with a symlink to the newer
49690         fdl-1.3.texi.
49691
49692 2008-11-10  Bruno Haible  <bruno@clisp.org>
49693
49694         * tests/test-select-fd.c (main): Accept the result file name as fourth
49695         argument.
49696         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49697         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49698
49699 2008-11-10  Bruno Haible  <bruno@clisp.org>
49700
49701         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49702         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49703         as autoconf-substituted macros.
49704         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49706         gl_NETDB_H_DEFAULTS. Set these variables.
49707         * modules/netdb (Makefile.am): Substitute these variables.
49708
49709 2008-11-10  Eric Blake  <ebb9@byu.net>
49710
49711         standards.texi: include correct file for FDL 1.3
49712         * doc/standards.texi (GNU Free Documentation License): Change
49713         include file to pull in FDL 1.3, not 1.2.
49714
49715         fdl.texi: revert accidental change to license
49716         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49717
49718 2008-11-10  Bruno Haible  <bruno@clisp.org>
49719
49720         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49721         cross-compiling guesses also when the native compile gives no result.
49722
49723 2008-11-10  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/spawni.c (__spawni): Force variable into the stack.
49726
49727 2008-11-10  Bruno Haible  <bruno@clisp.org>
49728
49729         Add support for Haiku.
49730         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49731         glibc and BeOS, but also on Haiku.
49732         * lib/fpurge.c (fpurge): Likewise.
49733         * lib/freadable.c (freadable): Likewise.
49734         * lib/freadahead.c (freadahead): Likewise.
49735         * lib/freading.c (freading): Likewise.
49736         * lib/freadptr.c (freadptr): Likewise.
49737         * lib/freadseek.c (freadptrinc): Likewise.
49738         * lib/fseeko.c (rpl_fseeko): Likewise.
49739         * lib/fseterr.c (fseterr): Likewise.
49740         * lib/fwritable.c (fwritable): Likewise.
49741         * lib/fwriting.c (fwriting): Likewise.
49742         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49743
49744 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49745
49746         * lib/config.charset: Treat Haiku like BeOS.
49747
49748 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49749
49750         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49751         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49752
49753 2008-11-08  Bruno Haible  <bruno@clisp.org>
49754
49755         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49756         AC_CACHE_CHECK.
49757
49758 2008-11-08  Bruno Haible  <bruno@clisp.org>
49759
49760         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49761
49762 2008-11-08  Bruno Haible  <bruno@clisp.org>
49763
49764         * tests/test-select-fd.c: New file.
49765         * tests/test-select-in.sh: New file.
49766         * tests/test-select-out.sh: New file.
49767         * tests/test-select-stdin.c: New file.
49768         * modules/select-tests (Files): Add the new files.
49769         (Depends-on): Add gettimeofday.
49770         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49771         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49772         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49773
49774 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49775             Bruno Haible  <bruno@clisp.org>
49776
49777         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49778
49779 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49780
49781         * build-aux/pmccabe2html: Added support for C++ source files.
49782
49783 2008-11-05  Ben Pfaff  <blp@gnu.org>
49784
49785         Fix lib/close.c build on Windows.
49786         * modules/close (Files): Add lib/w32sock.h.
49787
49788 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49789
49790         Accept Bison's NEWS format.
49791         * build-aux/announce-gen (print_news_deltas): Tweak
49792         $re_prefix.
49793
49794 2008-11-04  Bruno Haible  <bruno@clisp.org>
49795
49796         * modules/random_r (Maintainer): Add glibc.
49797
49798 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49799
49800         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49801         by karl@freefriends.org (Karl Berry).
49802         * doc/alloca.texi: Likewise.
49803         * doc/c-ctype.texi: Likewise.
49804         * doc/c-strcase.texi: Likewise.
49805         * doc/c-strcaseeq.texi: Likewise.
49806         * doc/c-strcasestr.texi: Likewise.
49807         * doc/c-strstr.texi: Likewise.
49808         * doc/c-strtod.texi: Likewise.
49809         * doc/c-strtold.texi: Likewise.
49810         * doc/ctime.texi: Likewise.
49811         * doc/error.texi: Likewise.
49812         * doc/fdl.texi: Likewise.
49813         * doc/gcd.texi: Likewise.
49814         * doc/getdate.texi: Likewise.
49815         * doc/gnulib-intro.texi: Likewise.
49816         * doc/gnulib-tool.texi: Likewise.
49817         * doc/gnulib.texi: Likewise.
49818         * doc/inet_ntoa.texi: Likewise.
49819         * doc/maintain.texi: Likewise.
49820         * doc/make-stds.texi: Likewise.
49821         * doc/quote.texi: Likewise.
49822         * doc/regexprops-generic.texi: Likewise.
49823         * doc/standards.texi: Likewise.
49824         * doc/verify.texi: Likewise.
49825         * doc/visibility.texi: Likewise.
49826         * doc/gnulib.texi (GNU Free Documentation License): Include
49827         fdl-1.3.texi instead of fdl.texi.
49828
49829 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49830
49831         * doc/fdl-1.3.texi: New file, from
49832         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49833         * modules/fdl-1.3: Add.
49834         * MODULES.html.sh: Add fdl-1.3.
49835
49836 2008-11-03  Bruno Haible  <bruno@clisp.org>
49837
49838         Make determination of absolute name of header file work with AIX xlc.
49839         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49840         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49841         preprocessing.
49842         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49843         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49844
49845 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49846
49847         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49848         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49849         <ludo@gnu.org>.
49850
49851 2008-11-02  Bruno Haible  <bruno@clisp.org>
49852
49853         Mark 'strpbrk' obsolete.
49854         * modules/strpbrk (Status, Notice): New sections.
49855         * modules/strtok_r (Depends-on): Add strpbrk.
49856
49857 2008-11-02  Bruno Haible  <bruno@clisp.org>
49858
49859         Mark 'strdup' obsolete.
49860         * modules/strdup (Status, Notice): New sections.
49861         * modules/findprog (Depends-on): Add strdup.
49862         * modules/getaddrinfo (Depends-on): Likewise.
49863         * modules/localename (Depends-on): Likewise.
49864         * modules/relocatable-lib (Depends-on): Likewise.
49865         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49866         * modules/relocatable-prog (Depends-on): Likewise.
49867         * modules/trim (Depends-on): Likewise.
49868         * modules/unictype/gen-ctype (Depends-on): Likewise.
49869         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49870
49871 2008-11-02  Bruno Haible  <bruno@clisp.org>
49872
49873         Mark 'strcspn' obsolete.
49874         * modules/strcspn (Status, Notice): New sections.
49875
49876 2008-11-02  Bruno Haible  <bruno@clisp.org>
49877
49878         Mark 'rmdir' obsolete.
49879         * modules/rmdir (Status, Notice): New sections.
49880         * modules/clean-temp (Depends-on): Add rmdir.
49881         * modules/openat (Depends-on): Likewise.
49882
49883 2008-11-02  Bruno Haible  <bruno@clisp.org>
49884
49885         Mark 'raise' obsolete.
49886         * modules/raise (Status, Notice): New sections.
49887         (Include): Specify <signal.h>.
49888         * modules/stdio (Depends-on): Add raise.
49889         * modules/write (Depends-on): Likewise.
49890
49891 2008-11-02  Bruno Haible  <bruno@clisp.org>
49892
49893         Mark 'memset' obsolete.
49894         * modules/memset (Status, Notice): New sections.
49895
49896 2008-11-02  Bruno Haible  <bruno@clisp.org>
49897
49898         Mark 'memmove' obsolete.
49899         * modules/memmove (Status, Notice): New sections.
49900         * modules/argp (Depends-on): Add memmove.
49901         * modules/argz (Depends-on): Likewise.
49902         * modules/canonicalize (Depends-on): Likewise.
49903         * modules/canonicalize-lgpl (Depends-on): Likewise.
49904         * modules/fts (Depends-on): Likewise.
49905         * modules/getcwd (Depends-on): Likewise.
49906         * modules/human (Depends-on): Likewise.
49907         * modules/regex (Depends-on): Likewise.
49908         * modules/striconveh (Depends-on): Likewise.
49909         * modules/trim (Depends-on): Likewise.
49910         * modules/unistr/u8-move (Depends-on): Likewise.
49911         * modules/unistr/u16-move (Depends-on): Likewise.
49912         * modules/unistr/u32-move (Depends-on): Likewise.
49913
49914 2008-11-02  Bruno Haible  <bruno@clisp.org>
49915
49916         Mark 'memcpy' obsolete.
49917         * modules/memcpy (Status, Notice): New sections.
49918
49919 2008-11-02  Bruno Haible  <bruno@clisp.org>
49920
49921         Mark 'memcmp' obsolete.
49922         * modules/memcmp (Status, Notice): New sections.
49923         * modules/argmatch (Depends-on): Add memchr.
49924         * modules/backupfile (Depends-on): Likewise.
49925         * modules/c-strcasestr (Depends-on): Likewise.
49926         * modules/crypto/des (Depends-on): Likewise.
49927         * modules/csharpcomp (Depends-on): Likewise.
49928         * modules/fnmatch (Depends-on): Likewise.
49929         * modules/git-merge-changelog (Depends-on): Likewise.
49930         * modules/isnand (Depends-on): Likewise.
49931         * modules/isnand-nolibm (Depends-on): Likewise.
49932         * modules/isnanf (Depends-on): Likewise.
49933         * modules/isnanf-nolibm (Depends-on): Likewise.
49934         * modules/isnanl (Depends-on): Likewise.
49935         * modules/isnanl-nolibm (Depends-on): Likewise.
49936         * modules/mbchar (Depends-on): Likewise.
49937         * modules/memcoll (Depends-on): Likewise.
49938         * modules/quotearg (Depends-on): Likewise.
49939         * modules/regex (Depends-on): Likewise.
49940         * modules/relocatable-prog (Depends-on): Likewise.
49941         * modules/same (Depends-on): Likewise.
49942         * modules/signbit (Depends-on): Likewise.
49943         * modules/strcasestr-simple (Depends-on): Likewise.
49944         * modules/unictype/gen-ctype (Depends-on): Likewise.
49945         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49946         * modules/uniname/uniname (Depends-on): Likewise.
49947         * modules/unistr/u8-cmp (Depends-on): Likewise.
49948
49949 2008-11-02  Bruno Haible  <bruno@clisp.org>
49950
49951         Mark 'memchr' obsolete.
49952         * modules/memchr (Status, Notice): New sections.
49953         * modules/argp (Depends-on): Add memchr.
49954         * modules/base64 (Depends-on): Likewise.
49955         * modules/c-strcasestr (Depends-on): Likewise.
49956         * modules/chdir-long (Depends-on): Likewise.
49957         * modules/fnmatch (Depends-on): Likewise.
49958         * modules/getsubopt (Depends-on): Likewise.
49959         * modules/git-merge-changelog (Depends-on): Likewise.
49960         * modules/glob (Depends-on): Likewise.
49961         * modules/strcasestr-simple (Depends-on): Likewise.
49962         * modules/strnlen (Depends-on): Likewise.
49963
49964 2008-11-02  Bruno Haible  <bruno@clisp.org>
49965
49966         Mark 'atexit' obsolete.
49967         * modules/atexit (Status, Notice): New sections.
49968         * modules/chdir-long (Depends-on): Add atexit.
49969         * modules/wait-process (Depends-on): Likewise.
49970
49971 2008-11-02  Bruno Haible  <bruno@clisp.org>
49972
49973         * gnulib-tool: New option --with-obsolete.
49974         (func_usage): Document it.
49975         (func_modules_transitive_closure): Drop obsolete dependencies if
49976         incobsolete is not true.
49977         (func_import): Read and save the incobsolete variable to the cache.
49978
49979 2008-11-02  Bruno Haible  <bruno@clisp.org>
49980
49981         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49982         * gnulib-tool: New option --extract-status.
49983         (func_usage): Document it.
49984         (sed_extract_prog): Recognize it.
49985         (func_get_status): New function.
49986
49987 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49988
49989         * modules/sockets (License): Change from LGPL to LGPLv2+.
49990
49991 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49992
49993         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49994
49995 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49996
49997         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49998         Mention times and sys_times.
49999         * modules/sys_times, modules/sys_times-tests: New modules.
50000         * modules/times, modules/times-tests: Likewise
50001         * m4/sys_times_h.m4: New file.
50002         * lib/sys_times.in.h: Likewise
50003         * lib/times.c: Likewise.
50004         * tests/test-sys_times.c: Likewise.
50005         * tests/test-times.c: Likewise.
50006         * doc/posix-headers/sys_times.texi: Update.
50007         * doc/posix-functions/times.texi: Update.
50008
50009 2008-10-28  Jim Meyering  <meyering@redhat.com>
50010
50011         * modules/tempname (Depends-on): Add lstat.
50012
50013         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50014
50015 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50016
50017         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50018         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50019         using idiom used elsewhere in gnulib.
50020
50021 2008-10-27  Jim Meyering  <meyering@redhat.com>
50022
50023         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50024
50025 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50026
50027         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50028         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50029         programs.
50030         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50031
50032 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50033
50034         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50035
50036 2008-10-27  Bruno Haible  <bruno@clisp.org>
50037
50038         * tests/test-lstat.c: Include <stdio.h>.
50039
50040 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50041
50042         * modules/lstat-tests: New module.
50043         * tests/test-lstat.c: New file.
50044
50045 2008-10-26  Jim Meyering  <meyering@redhat.com>
50046
50047         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50048
50049 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50050             Bruno Haible  <bruno@clisp.org>
50051
50052         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50053         * modules/configmake (Include): Add a note that the include must come
50054         after all system headers.
50055         * lib/javaversion.c: Include configmake.h after all other includes.
50056
50057 2008-10-26  Bruno Haible  <bruno@clisp.org>
50058
50059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50060         HAVE_STRUCT_RANDOM_DATA to 1.
50061         (gl_STDLIB_H): Simplify.
50062
50063 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50064
50065         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50066         substitute HAVE_STRUCT_RANDOM_DATA.
50067         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50068         random_data.
50069         * modules/stdlib (Makefile.am): Substitute
50070         HAVE_STRUCT_RANDOM_DATA.
50071
50072 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50073
50074         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50075         * doc/gnulib-intro.texi (Copyright): Likewise.
50076
50077 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50078
50079         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50080         findings.
50081
50082 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50083             Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/unistd.in.h: Include <winsock2.h>.
50086         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50087         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50088         Provide dummy declarations.
50089         (gethostname): Override.
50090         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50091         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50092         gl_PREREQ_SYS_H_WINSOCK2.
50093         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50094         * doc/posix-functions/gethostname.texi: More details.
50095
50096 2008-10-25  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50099         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50100         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50101
50102         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50103         here ...
50104         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50106         gl_UNISTD_H_DEFAULTS.
50107
50108 2008-10-25  Eric Blake  <ebb9@byu.net>
50109
50110         signbit: avoid spurious compiler failure
50111         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50112         declarations inside function.
50113
50114 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50115             Bruno Haible  <bruno@clisp.org>
50116
50117         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50118         * modules/random_r (Depends-on): Add stdint.
50119
50120 2008-10-24  Bruno Haible  <bruno@clisp.org>
50121
50122         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50123         Eggert.
50124         * modules/strerror (License): Likewise.
50125
50126 2008-10-24  Jim Meyering  <meyering@redhat.com>
50127
50128         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50129         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50130
50131 2008-10-24  Eric Blake  <ebb9@byu.net>
50132
50133         getgroups: fix compilation when getgroups is available
50134         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50135         but with <config.h> override of getgroups disabled.
50136
50137 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50138
50139         * doc/gnulib.texi (Header files): Add note about C++ problems.
50140         Explained by Bruno Haible <bruno@clisp.org>.
50141
50142 2008-10-23  Bruno Haible  <bruno@clisp.org>
50143
50144         Define a dummy SA_NODEFER macro on Interix.
50145         * lib/signal.in.h (SA_NODEFER): Define fallback.
50146         Reported by Aleksey Cheusov <cheusov@tut.by> via
50147         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50148
50149 2008-10-23  Bruno Haible  <bruno@clisp.org>
50150
50151         * modules/freadahead (License): Change to LGPLv2+.
50152         Suggested by Simon Josefsson.
50153
50154 2008-10-23  Jim Meyering  <meyering@redhat.com>
50155
50156         random_r: new module
50157         * modules/random_r: New file.
50158         * m4/random_r.m4: New file.
50159         * lib/random_r.c: New file, from glibc.
50160         * modules/random_r-tests: New file.
50161         * tests/test-random_r.c: New file.
50162         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50163          Declare.
50164         (RAND_MAX): Define.
50165         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50166         * modules/stdlib: Substitute them, too.
50167         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50168         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50169         * doc/glibc-functions/random_r.texi: Likewise.
50170         * doc/glibc-functions/setstate_r.texi: Likewise.
50171         * doc/glibc-functions/srandom_r.texi: Likewise.
50172         * config/srclist.txt: Mention it.
50173
50174 2008-10-23  David Lutterkort  <lutter@redhat.com>
50175
50176         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50177         link requirement
50178
50179 2008-10-23  Jim Meyering  <meyering@redhat.com>
50180
50181         selinux-h: mark parameters of stub functions as intentionally unused
50182         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50183         * lib/se-context.in.h: Likewise.
50184
50185 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50186
50187         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50188
50189 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50190
50191         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50192
50193 2008-10-22  Eric Blake  <ebb9@byu.net>
50194
50195         glthread/thread: avoid compiler warning
50196         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50197         Add unreachable abort to silence compiler.
50198
50199 2008-10-22  Eric Blake  <ebb9@byu.net>
50200
50201         netdb: also supply struct addrinfo for cygwin 1.5.x
50202         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50203         older cygwin.
50204         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50205         cygwin.
50206         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50207
50208 2008-10-22  Bruno Haible  <bruno@clisp.org>
50209
50210         * users.txt: Update entry about pspp.
50211
50212 2008-10-21  Bruno Haible  <bruno@clisp.org>
50213
50214         Simplification.
50215         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50216         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50217
50218         Simplification.
50219         * lib/ioctl.c (ioctl): Don't undefine.
50220         * lib/socket.c (socket): Don't undefine.
50221
50222         Remove unused module indicator macros.
50223         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50224         GNULIB_$1 as a C macro.
50225
50226         * doc/posix-functions/close.texi: Undo last change.
50227         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50228         Windows platforms.
50229
50230 2008-10-21  Bruno Haible  <bruno@clisp.org>
50231
50232         Add gethostname() declaration to <unistd.h>.
50233         * lib/unistd.in.h (gethostname): New declaration.
50234         * lib/gethostname.c: Include <unistd.h>.
50235         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50236         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50238         and HAVE_GETHOSTNAME.
50239         * modules/gethostname (Depends-on): Add unistd.
50240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50241         (Include): Specify <unistd.h>.
50242         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50243         HAVE_GETHOSTNAME.
50244         * tests/test-gethostname.c: Include <unistd.h> first.
50245
50246 2008-10-21  Bruno Haible  <bruno@clisp.org>
50247
50248         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50249         * modules/select-tests (Depends-on): Likewise.
50250         Reported by Simon Josefsson.
50251
50252 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50253
50254         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50255         * lib/accept.c: New file, based on winsock.c.
50256         * lib/bind.c: New file, based on winsock.c.
50257         * lib/connect.c: New file, based on winsock.c.
50258         * lib/getpeername.c: New file, based on winsock.c.
50259         * lib/getsockname.c: New file, based on winsock.c.
50260         * lib/getsockopt.c: New file, based on winsock.c.
50261         * lib/ioctl.c: New file, based on winsock.c.
50262         * lib/listen.c: New file, based on winsock.c.
50263         * lib/recv.c: New file, based on winsock.c.
50264         * lib/recvfrom.c: New file, based on winsock.c.
50265         * lib/send.c: New file, based on winsock.c.
50266         * lib/sendto.c: New file, based on winsock.c.
50267         * lib/setsockopt.c: New file, based on winsock.c.
50268         * lib/shutdown.c: New file, based on winsock.c.
50269         * lib/socket.c: New file, based on winsock.c.
50270         * lib/w32sock.h: New file, based on winsock.c.
50271         * lib/winsock.c: Remove file.
50272         * modules/accept: Likewise.
50273         * modules/bind: Likewise.
50274         * modules/connect: Likewise.
50275         * modules/getpeername: Likewise.
50276         * modules/getsockname: Likewise.
50277         * modules/getsockopt: Likewise.
50278         * modules/ioctl: Likewise.
50279         * modules/listen: Likewise.
50280         * modules/recv: Likewise.
50281         * modules/recvfrom: Likewise.
50282         * modules/send: Likewise.
50283         * modules/sendto: Likewise.
50284         * modules/setsockopt: Likewise.
50285         * modules/shutdown: Likewise.
50286         * modules/socket: Use socket.c instead of winsock.c.
50287         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50288         * doc/posix-functions/accept.texi: Doc fix.
50289         * doc/posix-functions/bind.texi: Doc fix.
50290         * doc/posix-functions/close.texi: Doc fix.
50291         * doc/posix-functions/connect.texi: Doc fix.
50292         * doc/posix-functions/getpeername.texi: Doc fix.
50293         * doc/posix-functions/getsockname.texi: Doc fix.
50294         * doc/posix-functions/getsockopt.texi: Doc fix.
50295         * doc/posix-functions/ioctl.texi: Doc fix.
50296         * doc/posix-functions/listen.texi: Doc fix.
50297         * doc/posix-functions/recv.texi: Doc fix.
50298         * doc/posix-functions/recvfrom.texi: Doc fix.
50299         * doc/posix-functions/send.texi: Doc fix.
50300         * doc/posix-functions/sendto.texi: Doc fix.
50301         * doc/posix-functions/setsockopt.texi: Doc fix.
50302         * doc/posix-functions/shutdown.texi: Doc fix.
50303         * doc/posix-functions/socket.texi: Doc fix.
50304
50305 2008-10-20  Bruno Haible  <bruno@clisp.org>
50306
50307         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50308         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50309         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50310         as an alias for SIGABRT.
50311         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50312         (sigaction): Map it to SIGABRT.
50313         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50314
50315 2008-10-20  Bruno Haible  <bruno@clisp.org>
50316
50317         * lib/fts.c: Don't include lstat.h.
50318         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50319
50320         Move the lstat() declaration to <sys/stat.h>.
50321         * lib/lstat.h: Remove file.
50322         * lib/sys_stat.in.h: Add special invocation convention.
50323         (lstat): New declaration.
50324         * lib/lstat.c (orig_lstat): New function.
50325         (rpl_lstat): Use orig_lstat instead of lstat.
50326         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50327         AC_C_INLINE. Set REPLACE_LSTAT.
50328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50329         and REPLACE_LSTAT.
50330         * modules/lstat (Files): Remove lib/lstat.h.
50331         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50332         (Include): Specify <sys/stat.h> instead of lstat.h.
50333         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50334         REPLACE_LSTAT.
50335         * NEWS: Mention the change.
50336
50337 2008-10-20  Bruno Haible  <bruno@clisp.org>
50338
50339         * modules/posix_spawn-tests: New file.
50340         * tests/test-posix_spawn3.c: New file.
50341
50342 2008-10-20  Bruno Haible  <bruno@clisp.org>
50343
50344         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50345         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50346         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50347         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50348         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50349
50350 2008-10-20  Bruno Haible  <bruno@clisp.org>
50351
50352         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50353         of posix_spawn on AIX 5.3.
50354
50355 2008-10-20  Bruno Haible  <bruno@clisp.org>
50356
50357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50358
50359 2008-10-20  Bruno Haible  <bruno@clisp.org>
50360
50361         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50362         of AC_LANG_PROGRAM.
50363
50364 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50365
50366         * lib/netdb.in.h: Don't define GNU specific constants until they
50367         are supported or needed.  Reported by Bruno Haible
50368         <bruno@clisp.org>.
50369
50370 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50371
50372         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50373
50374 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50375
50376         * lib/getaddrinfo.h: Remove file.
50377         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50378         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50379         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50380         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50381         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50382         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50383         * tests/test-getaddrinfo.c: Likewise.
50384         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50385         * NEWS: Mention change.
50386
50387 2008-10-19  Bruno Haible  <bruno@clisp.org>
50388
50389         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50390
50391 2008-10-19  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/wait-process.c: Include simply <sys/wait.h>.
50394         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50395         WIFSTOPPED): Remove fallback definitions.
50396         * modules/wait-process (Depends-on): Add sys_wait.
50397
50398         New module 'sys_wait'.
50399         * modules/sys_wait: New file.
50400         * lib/sys_wait.in.h: New file, partially copied from
50401         lib/wait-process.c.
50402         * m4/sys_wait_h.m4: New file.
50403         * doc/posix-headers/sys_wait.texi: Mention the new module.
50404
50405 2008-10-19  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50408
50409 2008-10-19  Bruno Haible  <bruno@clisp.org>
50410
50411         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50412         * lib/wait-process.c (WAIT_T): Remove type.
50413         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50414         (wait_subprocess): Update.
50415
50416 2008-10-19  Bruno Haible  <bruno@clisp.org>
50417
50418         New module 'atoll'.
50419         * modules/atoll: New file.
50420         * lib/stdlib.in.h (atoll): New declaration.
50421         * lib/atoll.c: New file, from glibc with modifications.
50422         * m4/atoll.m4: New file.
50423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50424         HAVE_ATOLL.
50425         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50426         * doc/posix-functions/atoll.texi: Mention the new module.
50427
50428 2008-10-19  Bruno Haible  <bruno@clisp.org>
50429
50430         Add strtoull() declaration to <stdlib.h>.
50431         * lib/stdlib.in.h (strtoull): New declaration.
50432         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50433         Set HAVE_STRTOULL.
50434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50435         HAVE_STRTOULL.
50436         * modules/strtoull (Depends-on): Add stdlib.
50437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50438         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50439         HAVE_STRTOULL.
50440
50441 2008-10-19  Bruno Haible  <bruno@clisp.org>
50442
50443         Add strtoll() declaration to <stdlib.h>.
50444         * lib/stdlib.in.h (strtoll): New declaration.
50445         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50446         Set HAVE_STRTOLL.
50447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50448         HAVE_STRTOLL.
50449         * modules/strtoll (Depends-on): Add stdlib.
50450         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50451         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50452
50453 2008-10-19  Bruno Haible  <bruno@clisp.org>
50454
50455         * modules/bcopy (Depends-on): Add strings.
50456         (Include): Specify <strings.h>.
50457
50458 2008-10-19  Bruno Haible  <bruno@clisp.org>
50459
50460         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50461
50462 2008-10-19  Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50465         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50466         mingw.
50467
50468 2008-10-19  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/atanl.c: Don't include isnanl.h.
50471         * lib/cosl.c: Likewise.
50472         * lib/ldexpl.c: Likewise.
50473         * lib/logl.c: Likewise.
50474         * lib/sinl.c: Likewise.
50475         * lib/sqrtl.c: Likewise.
50476         * lib/tanl.c: Likewise.
50477
50478         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50479         * lib/isnanf.h: Remove file.
50480         * lib/isnand.h: Remove file.
50481         * lib/isnanl.h: Remove file.
50482         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50483         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50484         macros.
50485         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50486         HAVE_ISNANF, don't define it as a C macro.
50487         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50488         HAVE_ISNAND, don't define it as a C macro.
50489         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50490         HAVE_ISNANL, don't define it as a C macro.
50491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50492         HAVE_ISNAN[FDL].
50493         * modules/isnanf (Files): Remove lib/isnanf.h.
50494         (Depends-on): Add math.
50495         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50496         (Include): Specify <math.h> instead of isnanf.h.
50497         * modules/isnand (Files): Remove lib/isnand.h.
50498         (Depends-on): Add math.
50499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50500         (Include): Specify <math.h> instead of isnand.h.
50501         * modules/isnanl (Files): Remove lib/isnanl.h.
50502         (Depends-on): Add math.
50503         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50504         (Include): Specify <math.h> instead of isnanl.h.
50505         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50506         HAVE_ISNAN[FDL].
50507         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50508         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50509         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50510         * NEWS: Mention the change.
50511
50512 2008-10-18  Bruno Haible  <bruno@clisp.org>
50513
50514         Add getusershell(), setusershell(), endusershell() declarations to
50515         <unistd.h>.
50516         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50517         declarations.
50518         * lib/getusershell.c: Include unistd.h.
50519         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50520         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50521         HAVE_GETUSERSHELL.
50522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50523         and HAVE_GETUSERSHELL.
50524         * modules/getusershell (Depends-on): Add unistd, extensions.
50525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50526         (Include): Specify <unistd.h>.
50527         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50528         HAVE_GETUSERSHELL.
50529
50530 2008-10-18  Bruno Haible  <bruno@clisp.org>
50531
50532         Add a getloadavg() declaration to <stdlib.h>.
50533         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50534         getloadavg declaration.
50535         (getloadavg): New declaration.
50536         * lib/getloadavg.c: Include <stdlib.h> first.
50537         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50538         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50539         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50541         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50542         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50543         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50544         (Include): Specify <stdlib.h>.
50545         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50546         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50547
50548 2008-10-18  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/dirchownmod.c: Don't include lchmod.h.
50551
50552         Move the lchmod() declaration to <sys/stat.h>.
50553         * lib/lchmod.h: Remove file.
50554         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50555         (lchmod): New declaration, moved here from lib/lchown.h.
50556         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50557         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50559         and HAVE_LCHMOD.
50560         * modules/lchmod (Files): Remove lib/lchmod.h.
50561         (Depends-on): Add sys_stat, extensions.
50562         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50563         (Include): Specify <sys/stat.h> instead of lchmod.h.
50564         * modules/sys_stat (Depends-on): Add link-warning.
50565         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50566         definition of GL_LINK_WARNING.
50567         * NEWS: Mention the change.
50568
50569 2008-10-18  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/fchdir.c: Don't include dirfd.h.
50572         * lib/fts.c: Likewise.
50573         * lib/getcwd.c: Likewise.
50574         * lib/glob.c: Likewise.
50575
50576         Move the dirfd() declaration to <dirent.h>.
50577         * lib/dirfd.h: Remove file.
50578         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50579         (dirfd): New declaration.
50580         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50581         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50582         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50583         HAVE_DECL_DIRFD.
50584         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50585         HAVE_DECL_DIRFD.
50586         * modules/dirfd (Files): Remove lib/dirfd.h.
50587         (Depends-on): Add dirent, extensions.
50588         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50589         (Include): Specify <dirent.h> instead of dirfd.h.
50590         * modules/dirent (Depends-on): Add link-warning.
50591         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50592         definition of GL_LINK_WARNING.
50593         * NEWS: Mention the change.
50594
50595 2008-10-18  Bruno Haible  <bruno@clisp.org>
50596
50597         Move the euidaccess() declaration to <unistd.h>.
50598         * lib/euidaccess.h: Remove file.
50599         * lib/unistd.in.h (euidaccess): New declaration.
50600         * lib/euidaccess.c: Don't include euidaccess.h.
50601         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50602         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50604         and HAVE_EUIDACCESS.
50605         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50606         (Depends-on): Add unistd.
50607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50608         (Include): Specify <unistd.h> instead of euidaccess.h.
50609         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50610         HAVE_EUIDACCESS.
50611         * NEWS: Mention the change.
50612
50613 2008-10-18  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50616
50617         Move the getdomainname() declaration to <unistd.h>.
50618         * lib/getdomainname.h: Remove file.
50619         * lib/unistd.in.h (getdomainname): New declaration.
50620         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50621         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50622         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50623         HAVE_GETDOMAINNAME.
50624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50625         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50626         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50627         (Depends-on): Add unistd, extensions.
50628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50629         (Includes): Specify <unistd.h> instead of getdomainname.h.
50630         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50631         HAVE_GETDOMAINNAME.
50632         * NEWS: Mention the change.
50633
50634 2008-10-18  Bruno Haible  <bruno@clisp.org>
50635
50636         * modules/dirent: New file.
50637         * m4/dirent_h.m4: New file.
50638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50639         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50640         * modules/fchdir (Files): Remove lib/dirent.in.h.
50641         (Depends-on): Add dirent.
50642         (Makefile.am): Move rules to modules/dirent.
50643         * doc/posix-headers/dirent.texi: Mention the new module.
50644
50645 2008-10-18  Bruno Haible  <bruno@clisp.org>
50646
50647         Avoid -Wunused-parameter warnings in public gnulib header files.
50648         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50649         macro.
50650         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50651
50652 2008-10-18  Bruno Haible  <bruno@clisp.org>
50653
50654         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50655         * doc/glibc-functions/error.texi: Mention the module 'error'.
50656         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50657         * doc/glibc-functions/getdomainname.texi: Mention the module
50658         'getdomainname'.
50659         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50660         * doc/glibc-functions/getpagesize.texi: Mention the module
50661         'getpagesize'.
50662         * doc/glibc-functions/getusershell.texi: Mention the module
50663         'getusershell'.
50664         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50665         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50666         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50667         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50668         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50669         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50670         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50671         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50672         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50673         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50674         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50675         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50676         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50677         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50678
50679 2008-10-17  Bruno Haible  <bruno@clisp.org>
50680
50681         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50682         HP-UX and IRIX, use -0.0L.
50683         * tests/test-ceill.c (minus_zero): Likewise.
50684         * tests/test-floorl.c (minus_zero): Likewise.
50685         * tests/test-frexpl.c (minus_zero): Likewise.
50686         * tests/test-isnan.c (minus_zerol): Likewise.
50687         * tests/test-isnanl.h (minus_zero): Likewise.
50688         * tests/test-ldexpl.c (minus_zero): Likewise.
50689         * tests/test-roundl.c (minus_zero): Likewise.
50690         * tests/test-signbit.c (minus_zerol): Likewise.
50691         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50692         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50693         * tests/test-truncl.c (minus_zero): Likewise.
50694         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50695         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50696         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50697         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50698
50699 2008-10-17  Bruno Haible  <bruno@clisp.org>
50700
50701         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50702         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50703         that it gets activated only for gcc >= 3.0.
50704         * lib/dirent.in.h: Likewise.
50705         * lib/errno.in.h: Likewise.
50706         * lib/fcntl.in.h: Likewise.
50707         * lib/float.in.h: Likewise.
50708         * lib/iconv.in.h: Likewise.
50709         * lib/inttypes.in.h: Likewise.
50710         * lib/locale.in.h: Likewise.
50711         * lib/math.in.h: Likewise.
50712         * lib/netdb.in.h: Likewise.
50713         * lib/netinet_in.in.h: Likewise.
50714         * lib/search.in.h: Likewise.
50715         * lib/signal.in.h: Likewise.
50716         * lib/spawn.in.h: Likewise.
50717         * lib/stdarg.in.h: Likewise.
50718         * lib/stdint.in.h: Likewise.
50719         * lib/stdio.in.h: Likewise.
50720         * lib/stdlib.in.h: Likewise.
50721         * lib/string.in.h: Likewise.
50722         * lib/strings.in.h: Likewise.
50723         * lib/sys_file.in.h: Likewise.
50724         * lib/sys_ioctl.in.h: Likewise.
50725         * lib/sys_select.in.h: Likewise.
50726         * lib/sys_socket.in.h: Likewise.
50727         * lib/sys_stat.in.h: Likewise.
50728         * lib/sys_time.in.h: Likewise.
50729         * lib/sysexits.in.h: Likewise.
50730         * lib/time.in.h: Likewise.
50731         * lib/unistd.in.h: Likewise.
50732         * lib/wchar.in.h: Likewise.
50733         * lib/wctype.in.h: Likewise.
50734         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50735
50736 2008-10-17  Jim Meyering  <meyering@redhat.com>
50737
50738         ignore-value: don't depend on inline module
50739         * modules/ignore-value (Depends-on): Remove 'inline'.
50740         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50741         Suggestion from Bruno Haible.
50742
50743 2008-10-17  Bruno Haible  <bruno@clisp.org>
50744
50745         New implementation of condition variables for Win32.
50746         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50747         (gl_linked_waitqueue_t): New type.
50748         (gl_cond_t): Use it.
50749         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50750         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50751         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50752         (glthread_cond_init_func, glthread_cond_wait_func,
50753         glthread_cond_timedwait_func, glthread_cond_signal_func,
50754         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50755         Reimplemented on the basis of gl_linked_waitqueue_t.
50756         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50757         gl_waitqueue_t.
50758         (gl_rwlock_t): Update.
50759         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50760
50761 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50762
50763         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50764         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50765
50766 2008-10-17  Jim Meyering  <meyering@redhat.com>
50767
50768         ignore-value: new module
50769         * modules/ignore-value: New file.
50770         * lib/ignore-value.h: New file.
50771         * MODULES.html.sh (Compiler warning management): New section,
50772         just for this module.  More to come.
50773
50774 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50775
50776         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50777         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50778         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50779
50780 2008-10-16  Jim Meyering  <meyering@redhat.com>
50781
50782         openat-die.c: avoid 'no previous prototype' warning
50783         * lib/openat-die.c: Include "openat.h".
50784         Reported by Reuben Thomas <rrt@sc3d.org>.
50785
50786 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50787
50788         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50789         * lib/netdb.in.h: Fix typo.
50790         Reported by Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/netdb.in.h: Include sys/socket.h for platforms without
50793         netdb.h, to get structures like hostent on MinGW.
50794         * modules/netdb (Depends-on): Add sys_socket.
50795
50796 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50797
50798         * modules/netdb, modules/netdb-tests: New file.
50799         * m4/netdb_h.m4: New file.
50800         * lib/netdb.in.h: Add, currently just an empty file pending
50801         definitions.
50802         * tests/test-netdb.c: New file.
50803         * doc/posix-headers/netdb.texi: Mention that we replace it if
50804         needed.
50805         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50806         netdb.
50807
50808 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50809
50810         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50811         with code.
50812
50813 2008-10-13  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/glthread/cond.c (glthread_cond_wait_func,
50816         glthread_cond_timedwait_func): Add a comment.
50817
50818 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50819
50820         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50821         * tests/test-select.c: Likewise,
50822
50823 2008-10-13  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/glthread/cond.c (glthread_cond_wait_func,
50826         glthread_cond_timedwait_func): Fix variable name.
50827         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50828
50829 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50830
50831         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50833         struct sockaddr.sa_len.
50834         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50835
50836 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50837
50838         * build-aux/pmccabe2html: Add css and css_url parameters.
50839
50840 2008-10-12  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50843         calling aclx_get.
50844         Reported by Rainer Tammer <tammer@tammer.net>.
50845
50846 2008-10-12  Bruno Haible  <bruno@clisp.org>
50847
50848         Use msvcrt aware primitives for creation/termination of Win32 threads.
50849         * lib/glthread/thread.c: Include <process.h>.
50850         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50851         (wrapper_func): Update signature.
50852         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50853
50854 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50855             Bruno Haible  <bruno@clisp.org>
50856
50857         Provide a Win32 implementation of the 'cond' module.
50858         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50859         * lib/glthread/cond.c (glthread_cond_init_func,
50860         glthread_cond_wait_func, glthread_cond_timedwait_func,
50861         glthread_cond_signal_func, glthread_cond_broadcast_func,
50862         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50863         * modules/cond (Dependencies): Add gettimeofday.
50864
50865 2008-10-11  Bruno Haible  <bruno@clisp.org>
50866
50867         Make sleep work on older versions of mingw.
50868         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50869         only whether it exists.
50870         * doc/posix-functions/sleep.texi: Mention the problem with older
50871         versions of mingw.
50872
50873 2008-10-11  Bruno Haible  <bruno@clisp.org>
50874
50875         New module 'shutdown'.
50876         * modules/shutdown: New file.
50877         * lib/sys_socket.in.h (shutdown): New declaration.
50878         * lib/winsock.c (shutdown): New function.
50879         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50880         GNULIB_SHUTDOWN.
50881         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50882         * doc/posix-functions/shutdown.texi: Document the new module.
50883
50884 2008-10-11  Jim Meyering  <meyering@redhat.com>
50885
50886         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50887
50888 2008-10-11  Bruno Haible  <bruno@clisp.org>
50889
50890         New module 'fclose'.
50891         * modules/fclose: New file.
50892         * lib/stdio.in.h (fclose): New declaration.
50893         * lib/fclose.c: New file.
50894         * m4/fclose.m4: New file.
50895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50896         REPLACE_FCLOSE.
50897         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50898         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50899         REPLACE_FCLOSE.
50900         * modules/close (Depends-on): fclose.
50901         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50902
50903 2008-10-11  Bruno Haible  <bruno@clisp.org>
50904
50905         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50906         set errno and don't call _close.
50907
50908 2008-10-10  Bruno Haible  <bruno@clisp.org>
50909
50910         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50911         ACL, not afterwards. Fixes test failure on Cygwin.
50912
50913 2008-10-09  Ben Pfaff  <blp@gnu.org>
50914
50915         * build-aux/announce-gen: Fix gnulib version related part of usage
50916         message.  Die with a useful error message if no tarballs are
50917         found.
50918
50919 2008-10-10  Jim Meyering  <meyering@redhat.com>
50920
50921         bootstrap: use git's --depth=N option only if it's supported
50922         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50923         recognize the --depth option.  Reported by Pádraig Brady.
50924
50925 2008-10-09  Bruno Haible  <bruno@clisp.org>
50926
50927         New module 'ioctl'.
50928         * modules/ioctl: New file.
50929         * lib/sys_socket.in.h (ioctl): Remove declaration.
50930         * lib/winsock.c: Include <sys/ioctl.h>.
50931         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50932         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50933         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50934         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50935         * doc/posix-functions/ioctl.texi: Mention the new module.
50936
50937 2008-10-09  Bruno Haible  <bruno@clisp.org>
50938
50939         New module 'sys_ioctl'.
50940         * lib/sys_ioctl.in.h: New file.
50941         * m4/sys_ioctl_h.m4: New file.
50942         * modules/sys_ioctl: New file.
50943         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50944
50945 2008-10-09  Bruno Haible  <bruno@clisp.org>
50946
50947         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50948         * lib/winsock.c: Include <stdarg.h>.
50949         (rpl_ioctl): Change to second argument 'int' and then varargs.
50950
50951 2008-10-09  Bruno Haible  <bruno@clisp.org>
50952
50953         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50954         when the sys_socket module is present and the system has <winsock2.h>.
50955
50956 2008-10-09  Bruno Haible  <bruno@clisp.org>
50957
50958         * doc/posix-functions/close.texi: Mention module 'close' instead of
50959         module 'sys_socket'.
50960
50961 2008-10-09  Bruno Haible  <bruno@clisp.org>
50962
50963         * doc/glibc-headers/sys_ioctl.texi: New file.
50964         * doc/gnulib.texi: Include it.
50965
50966 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50967             Bruno Haible  <bruno@clisp.org>
50968
50969         Combine the two replacements of 'close'.
50970         * lib/sys_socket.in.h (close): Define to a reminder to include
50971         <unistd.h>.
50972         (_gl_close_fd_maybe_socket): New declaration.
50973         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50974         * lib/winsock.c (close): Remove undefinition.
50975         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50976         needed for the gnulib module 'close'.
50977         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50978         define to an error symbol or to a warning, if suitable.
50979         * lib/close.c: Include <sys/socket.h>.
50980         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50982         UNISTD_H_HAVE_WINSOCK2_H.
50983         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50985         UNISTD_H_HAVE_WINSOCK2_H.
50986         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50987         (configure.ac): Set a module indicator.
50988         (Makefile.am): Substitute GNULIB_CLOSE.
50989         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50990         * modules/poll-tests (Depends-on): Add close.
50991         * modules/select-tests (Depends-on): Likewise.
50992
50993 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50994             Bruno Haible  <bruno@clisp.org>
50995
50996         New module 'close'.
50997         * modules/close: New file.
50998         * lib/unistd.in.h (close): Move declaration out of the
50999         FCHDIR_REPLACEMENT scope.
51000         (_gl_unregister_fd): New declaration.
51001         * lib/close.c: New file.
51002         * lib/fchdir.c (rpl_close): Remove function.
51003         * m4/close.m4: New file.
51004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51005         close.
51006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51007         REPLACE_CLOSE.
51008         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51009         REPLACE_CLOSE.
51010         * modules/fchdir (Depends-on): Add close.
51011
51012 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51013             Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/fcntl.in.h (open): Simplify conditionals.
51016         (_gl_register_fd): New declaration.
51017         * lib/fchdir.c (rpl_open): Remove function.
51018         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51019         also.
51020         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51022         open.
51023
51024 2008-10-09  Jim Meyering  <meyering@redhat.com>
51025
51026         GNUmakefile: use the more name-space-friendly "_version"
51027         * top/GNUmakefile (_dummy): Update.
51028         (_version): Rename from "version".
51029
51030 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51031             Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51034         rpl_close.
51035         (_gl_register_fd): New function, extracted from rpl_open.
51036         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51037         (rpl_open, rpl_opendir): Use _gl_register_fd.
51038
51039 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51040
51041         Fix organization of 'open' replacement.
51042         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51043         (gl_FUNC_OPEN): Use it.
51044         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51045
51046 2008-10-08  Bruno Haible  <bruno@clisp.org>
51047
51048         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51049
51050 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51051
51052         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51053         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51054         listen).
51055
51056 2008-10-08  Eric Blake  <ebb9@byu.net>
51057
51058         GNUmakefile: add 'make version' target
51059         * top/GNUmakefile (_curr-ver): Split version update rules...
51060         (version): ...into a target.
51061
51062 2008-10-07  Bruno Haible  <bruno@clisp.org>
51063
51064         Use a more portable replacement expression for -0.0L.
51065         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51066         instead of -0.0L. Fix m4 quotation.
51067
51068         * tests/test-signbit.c: Include <float.h>.
51069         (minus_zero): New variable.
51070         (test_signbitl): Use minus_zero instead of -zero.
51071         * modules/signbit-tests (Depends-on): Add float.
51072
51073         * tests/test-ceill.c: Include <float.h>.
51074         (zero): Remove variable.
51075         (minus_zero): New variable.
51076         (main): Use minus_zero instead of -zero.
51077         * modules/ceill-tests (Depends-on): Add float.
51078
51079         * tests/test-floorl.c: Include <float.h>.
51080         (zero): Remove variable.
51081         (minus_zero): New variable.
51082         (main): Use minus_zero instead of -zero.
51083         * modules/floorl-tests (Depends-on): Add float.
51084
51085         * tests/test-roundl.c: Include <float.h>.
51086         (zero): Remove variable.
51087         (minus_zero): New variable.
51088         (main): Use minus_zero instead of -zero.
51089         * modules/roundl-tests (Depends-on): Add float.
51090
51091         * tests/test-truncl.c: Include <float.h>.
51092         (zero): Remove variable.
51093         (minus_zero): New variable.
51094         (main): Use minus_zero instead of -zero.
51095         * modules/truncl-tests (Depends-on): Add float.
51096
51097         * tests/test-frexpl.c (zero): Remove variable.
51098         (minus_zero): New variable.
51099         (main): Use minus_zero instead of -zero.
51100         * modules/frexpl-tests (Depends-on): Add float.
51101
51102         * tests/test-isnan.c (zerol): Remove variable.
51103         (minus_zerol): New variable.
51104         (test_long_double): Use minus_zerol instead of -zerol.
51105         * modules/isnan-tests (Depends-on): Add float.
51106
51107         * tests/test-isnanl.h (zero): Remove variable.
51108         (minus_zero): New variable.
51109         (main): Use minus_zero instead of -zero.
51110         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51111         * modules/isnanl-tests (Depends-on): Add float.
51112
51113         * tests/test-ldexpl.c (zero): Remove variable.
51114         (minus_zero): New variable.
51115         (main): Use minus_zero instead of -zero.
51116         * modules/ldexpl-tests (Depends-on): Add float.
51117
51118         * tests/test-snprintf-posix.h (zerol): Remove variable.
51119         (minus_zerol): New variable.
51120         (test_function): Use minus_zerol instead of -zerol.
51121         * modules/snprintf-posix-tests (Depends-on): Add float.
51122         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51123
51124         * tests/test-sprintf-posix.h (zerol): Remove variable.
51125         (minus_zerol): New variable.
51126         (test_function): Use minus_zerol instead of -zerol.
51127         * modules/sprintf-posix-tests (Depends-on): Add float.
51128         * modules/vsprintf-posix-tests (Depends-on): Add float.
51129
51130         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51131         (minus_zerol): New variable.
51132         (test_function): Use minus_zerol instead of -zerol.
51133         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51134
51135         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51136         (minus_zerol): New variable.
51137         (test_function): Use minus_zerol instead of -zerol.
51138         * modules/vasprintf-posix-tests (Depends-on): Add float.
51139
51140 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51141
51142         * MODULES.html.sh (Support for building documentation): Mention
51143         pmccabe2html.  Sort entries.
51144
51145         Add pmccabe2html module, from gnupdf.
51146         * build-aux/pmccabe.css: New file.
51147         * build-aux/pmccabe2html: New file.
51148         * m4/pmccabe2html.m4: New file.
51149         * modules/pmccabe2html: New file.
51150
51151 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51152
51153         flock: new module
51154         * MODULES.html.sh: Add to list of modules.
51155         * lib/flock.c: flock implementation for Windows and Unix systems
51156         which have fcntl.
51157         * doc/glibc-functions/flock.texi: Update documentation.
51158         * lib/sys_file.in.h: <sys/file.h> header file.
51159         * m4/flock.m4: M4 macros.
51160         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51161         * modules/flock: flock module.
51162         * modules/flock-tests: flock tests module.
51163         * modules/sys_file: sys/file.h module.
51164         * tests/test-flock.c: test suite for flock.
51165
51166 2008-10-06  Jim Meyering  <meyering@redhat.com>
51167
51168         bootstrap: check for LT_INIT more portably still ;-)
51169         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51170         Spotted by Bruno Haible.
51171
51172 2008-10-06  Eric Blake  <ebb9@byu.net>
51173
51174         test-signbit: avoid tripping Irix cc bug on -0.0L
51175         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51176         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51177         entire testsuite consistent and avoids an Irix 6.2 bug.
51178
51179 2008-10-05  Bruno Haible  <bruno@clisp.org>
51180             Jim Meyering  <jim@meyering.net>
51181
51182         Add an option for ignoring EPIPE during close_stdout.
51183         * lib/closeout.h: Include <stdbool.h>.
51184         (close_stdout_set_ignore_EPIPE): New declaration.
51185         * lib/closeout.c: Include <stdbool.h>.
51186         (ignore_EPIPE): New variable.
51187         (close_stdout_set_ignore_EPIPE): New function.
51188         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51189         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51190         failure.
51191         * modules/closeout (Depends-on): Add stdbool.
51192
51193 2008-10-05  Bruno Haible  <bruno@clisp.org>
51194
51195         * modules/accept: New file.
51196         * modules/bind: New file.
51197         * modules/connect: New file.
51198         * modules/getpeername: New file.
51199         * modules/getsockname: New file.
51200         * modules/getsockopt: New file.
51201         * modules/listen: New file.
51202         * modules/recv: New file.
51203         * modules/recvfrom: New file.
51204         * modules/send: New file.
51205         * modules/sendto: New file.
51206         * modules/setsockopt: New file.
51207         * modules/socket: New file.
51208         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51209         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51210         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51211         the particular module is requested. Add a link warning when the
51212         particular module is not requested.
51213         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51214         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51215         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51216         the particular module is requested.
51217         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51218         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51219         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51220         * modules/sys_socket (Depends-on): Add link-warning.
51221         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51222         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51223         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51224         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51225         GL_LINK_WARNING.
51226         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51227         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51228         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51229         * doc/posix-functions/getpeername.texi: Mention the new module
51230         'getpeername'.
51231         * doc/posix-functions/getsockname.texi: Mention the new module
51232         'getsockname'.
51233         * doc/posix-functions/getsockopt.texi: Mention the new module
51234         'getsockopt'.
51235         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51236         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51237         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51238         * doc/posix-functions/send.texi: Mention the new module 'send'.
51239         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51240         * doc/posix-functions/setsockopt.texi: Mention the new module
51241         'setsockopt'.
51242         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51243         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51244         listen, connect, accept.
51245         * modules/select-tests (Depends-on): Likewise.
51246
51247 2008-10-05  Bruno Haible  <bruno@clisp.org>
51248
51249         * lib/winsock.c (strerror): Remove unused #undef.
51250         (rpl_close): Remove unused local variable.
51251
51252         * modules/sys_socket (Depends-on); Add errno.
51253
51254 2008-10-05  Bruno Haible  <bruno@clisp.org>
51255
51256         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51257         (select): Add a link warning when the 'select' module is not used.
51258         * modules/sys_select (Depends-on): Add link-warning.
51259         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51260         Suggested by Paolo Bonzini.
51261
51262 2008-10-05  Jim Meyering  <meyering@redhat.com>
51263
51264         bootstrap: check for LT_INIT more portably
51265         * build-aux/bootstrap: Avoid using grep -E, since it's not
51266         portable enough.  Suggestion from Bruno Haible.
51267
51268 2008-10-05  Bruno Haible  <bruno@clisp.org>
51269
51270         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51271         as being fixed by gnulib.
51272
51273 2008-10-05  Bruno Haible  <bruno@clisp.org>
51274
51275         * modules/select-tests: New file, mostly copied from
51276         modules/sys_select-tests.
51277         * tests/test-select.c: New file, mostly copied from
51278         tests/test-sys_select.c.
51279         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51280         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51281         (Makefile.am): Remove test_sys_select_LDADD.
51282
51283         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51284         to an undefined symbol, for an error message.
51285         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51286         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51287         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51288         winsock-select.c here.
51289         * modules/sys_select (Files): Remove lib/winsock-select.c.
51290         (Depends-on): Remove alloca.
51291         (Makefile.am): Substitute GNULIB_SELECT.
51292         * modules/select: New file.
51293         * doc/posix-functions/select.texi: Update.
51294
51295 2008-10-05  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51298         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51299         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51300         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51301         getdtablesize.
51302         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51303         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51304
51305 2008-10-05  Bruno Haible  <bruno@clisp.org>
51306
51307         * modules/getdtablesize-tests: New file.
51308         * tests/test-getdtablesize.c: New file.
51309
51310         New module 'getdtablesize'.
51311         * lib/unistd.in.h (getdtablesize): New declaration.
51312         * lib/getdtablesize.c: New file.
51313         * m4/getdtablesize.m4: New file.
51314         * modules/getdtablesize: New file.
51315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51316         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51317         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51318         HAVE_GETDTABLESIZE.
51319         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51320
51321 2008-10-05  Bruno Haible  <bruno@clisp.org>
51322
51323         * modules/sched (Makefile.am): Fix typo.
51324         Reported by Simon Josefsson.
51325
51326 2008-10-05  Jim Meyering  <meyering@redhat.com>
51327
51328         bootstrap: check for LT_INIT, too
51329         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51330         are deprecated.  Suggestion from Ralf Wildenhues.
51331
51332 2008-10-05  Bruno Haible  <bruno@clisp.org>
51333
51334         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51335         overriding them by ours.
51336         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51337
51338 2008-10-05  Jim Meyering  <meyering@redhat.com>
51339
51340         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51341         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51342         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51343
51344 2008-10-04  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/dup2 (License): Change to LGPLv2+.
51347         * modules/sleep (License): Likewise.
51348         * modules/perror (License): Likewise.
51349         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51350         Blake.
51351         * modules/signal (License): Likewise.
51352         * modules/sigprocmask (License): Likewise.
51353         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51354         Meyering.
51355
51356 2008-10-04  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51359         Reported by Rainer Tammer <tammer@tammer.net>.
51360
51361 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51362             Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51365         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51366         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51367
51368 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51369
51370         filevercmp: new module
51371         * lib/filevercmp.h: New function filevercmp comparing version strings.
51372         * lib/filevercmp.c: Implementation of filevercmp function.
51373         * modules/filevercmp: Module metadata.
51374         * tests/test-filevercmp.c: Unit test for new module.
51375         * modules/filevercmp-tests: Unit test metadata.
51376         * MODULES.html.sh: Add filevercmp module.
51377
51378 2008-10-03  Bruno Haible  <bruno@clisp.org>
51379
51380         * lib/c-ctype.h: Add comment.
51381         Reported by Jim Meyering.
51382
51383 2008-10-02  Bruno Haible  <bruno@clisp.org>
51384
51385         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51386
51387 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51388
51389         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51390         name of bootstrap.conf accordingly.
51391
51392 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51393
51394         * build-aux/bootstrap: Install git-merge-changelog configuration
51395         items into .gitconfig if needed.
51396
51397 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51398
51399         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51400         git repository, and initialize/update it accordingly.
51401
51402 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51403
51404         * modules/fsync-tests: New file.
51405         * tests/test-fsync.c: New file.
51406
51407         New module 'fsync'.
51408         * lib/fsync.c: New file.
51409         * m4/fsync.m4: New file.
51410         * modules/fsync: New file.
51411         * lib/unistd.in.h (fsync): New declaration.
51412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51413         GNULIB_FSYNC and HAVE_FSYNC.
51414         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51415         * MODULES.html.sh (posix_functions): Add fsync.
51416         * doc/posix-functions/fsync.texi: Mention the new module.
51417
51418 2008-10-02  Jim Meyering  <meyering@redhat.com>
51419
51420         fts.c: sync with similar code from coreutils' remove.c
51421         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51422         Guard also with "#if defined __linux__", since for now at least,
51423         this code is Linux-kernel-specific.
51424
51425 2008-10-02  Jim Meyering  <meyering@redhat.com>
51426
51427         fts: bug fixes
51428         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51429         Include <sys/vfs.h>, not <sys/statfs.h>.
51430
51431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51432         Include <sys/vfs.h>, not <sys/statfs.h>.
51433
51434 2008-10-01  Bruno Haible  <bruno@clisp.org>
51435
51436         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51438         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51439         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51440         * doc/posix-functions/posix_spawnp.texi: Likewise.
51441         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51442         whether posix_spawn actually works.
51443         * m4/pipe.m4 (gl_PIPE): Likewise.
51444         * modules/execute (Files): Add m4/posix_spawn.m4.
51445         * modules/pipe (Files): Add m4/posix_spawn.m4.
51446         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51447
51448 2008-10-01  Jim Meyering  <meyering@redhat.com>
51449
51450         remove trailing spaces
51451         * NEWS: Likewise.
51452         * lib/poll.c (poll): Likewise.
51453         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51454         * lib/winsock.c (rpl_close): Likewise.
51455         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51456         * modules/yield: Likewise.
51457         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51458         * tests/test-sys_select.c (connect_to_socket): Likewise.
51459
51460         fts.c: adjust a new interface to be more generally useful
51461         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51462         (fts_build): Adjust caller.
51463
51464 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51465
51466         * modules/cond-tests: New file.
51467         * tests/test-cond.c: New file.
51468
51469 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51470             Bruno Haible  <bruno@clisp.org>
51471
51472         * modules/cond (Dependencies): Add errno, time.
51473         * lib/glthread/cond.h: Include <time.h>.
51474         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51475         across platforms.
51476
51477 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51478             Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51481
51482 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51483             Bruno Haible  <bruno@clisp.org>
51484
51485         * modules/tls-tests (Depends-on): Add thread, yield.
51486         (configure.ac): Remove all checks.
51487         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51488         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51489         gl_thread_self): Remove definitions. Include glthread/thread.h and
51490         glthread/yield.h instead.
51491         (test_tls): Pass an additional NULL argument to gl_thread_join.
51492
51493 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51494             Bruno Haible  <bruno@clisp.org>
51495
51496         * modules/lock-tests (Depends-on): Add thread, yield.
51497         (configure.ac): Remove all checks.
51498         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51499         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51500         gl_thread_self): Remove definitions. Include glthread/thread.h and
51501         glthread/yield.h instead.
51502         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51503         additional NULL argument to gl_thread_join.
51504
51505 2008-09-30  Bruno Haible  <bruno@clisp.org>
51506
51507         Fix the Win32 implementation of the 'thread' module.
51508         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51509         pointer type.
51510         (gl_thread_self): Invoke gl_thread_self_func.
51511         (gl_thread_self_func): New declaration.
51512         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51513         (do_init_self_key, init_self_key): New functions.
51514         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51515         Remove some fields.
51516         (running_threads, running_lock): Remove variables.
51517         (get_current_thread_handle): New function.
51518         (gl_thread_self_func, wrapper_func, glthread_create_func,
51519         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51520         simplified.
51521
51522 2008-09-30  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51525         files.
51526
51527 2008-09-30  Jim Meyering  <meyering@redhat.com>
51528
51529         fts.m4: correct the test for statfs.f_type
51530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51531         when checking for statfs.f_type.
51532
51533 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51534
51535         tests: avoid some compiler warnings
51536         * tests/test-memchr.c (main): Pass NULL indirectly.
51537         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51538
51539 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51540
51541         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51542         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51543         exactly specified dayshifts.
51544         (dayshift): New rule.
51545         (rel): Add dayshift.
51546         (relative_time_table) [tomorrow, yesterday, today, now]:
51547         Use tDAY_SHIFT in place of tDAY_UNIT.
51548         * tests/test-getdate.c: Add tests for now-disallowed countable
51549         dayshifts, e.g., "4 yesterday ago".
51550
51551 2008-09-29  Bruno Haible  <bruno@clisp.org>
51552
51553         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51554         * tests/test-posix_spawn1.in.sh: Renamed from
51555         tests/test-posix_spawn.in.sh.
51556         * tests/test-posix_spawn2.c: New file.
51557         * tests/test-posix_spawn2.in.sh: New file.
51558         * modules/posix_spawnp-tests (Files): Update.
51559         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51560
51561 2008-09-29  Bruno Haible  <bruno@clisp.org>
51562
51563         Propagate effects of putenv/setenv/unsetenv to child processes.
51564         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51565         * lib/pipe.c (create_pipe): Likewise.
51566
51567 2008-09-29  Bruno Haible  <bruno@clisp.org>
51568
51569         Enable use of shell scripts as executables in mingw.
51570         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51571         run the program as a shell script.
51572         * lib/pipe.c (create_pipe): Likewise.
51573         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51574         resulting array.
51575
51576 2008-09-29  Eric Blake  <ebb9@byu.net>
51577
51578         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51579
51580 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51581
51582         * doc/posix-functions/accept.texi: Update mingw problems.
51583         * doc/posix-functions/bind.texi: Update mingw problems.
51584         * doc/posix-functions/close.texi: Update mingw problems.
51585         * doc/posix-functions/connect.texi: Update mingw problems.
51586         * doc/posix-functions/getpeername.texi: Update mingw problems.
51587         * doc/posix-functions/getsockname.texi: Update mingw problems.
51588         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51589         * doc/posix-functions/ioctl.texi: Update mingw problems.
51590         * doc/posix-functions/listen.texi: Update mingw problems.
51591         * doc/posix-functions/recv.texi: Update mingw problems.
51592         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51593         * doc/posix-functions/select.texi: Update mingw problems.
51594         * doc/posix-functions/send.texi: Update mingw problems.
51595         * doc/posix-functions/sendto.texi: Update mingw problems.
51596         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51597         * doc/posix-functions/socket.texi: Update mingw problems.
51598
51599 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51600             Bruno Haible  <bruno@clisp.org>
51601
51602         * lib/sys_select.in.h: Include sys/time.h.
51603         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51604         * modules/sys_select: Depend on sys_time.
51605         * tests/test-sys_select.c: Test that sys/select.h defines struct
51606         timeval fully.
51607
51608 2008-09-29  Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51611         * lib/sys_select.in.h: Likewise.
51612
51613 2008-09-29  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51616
51617 2008-09-29  Bruno Haible  <bruno@clisp.org>
51618
51619         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51620         Set LIBSOCKET instead of augmenting LIBS.
51621         * modules/sockets (Link): New section.
51622         * modules/sockets-tests (test_sockets_LDADD): New variable.
51623         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51624         * modules/poll-tests (test_poll_LDADD): New variable.
51625         * NEWS: Document the change.
51626
51627 2008-09-29  Bruno Haible  <bruno@clisp.org>
51628
51629         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51630         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51631         ARPA_INET_H directly.
51632         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51633
51634 2008-09-28  Bruno Haible  <bruno@clisp.org>
51635
51636         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51637         from gl_HEADER_SYS_SOCKET.
51638         (gl_HEADER_SYS_SOCKET): Invoke it.
51639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51640
51641 2008-09-28  Bruno Haible  <bruno@clisp.org>
51642
51643         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51644         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51645         Needed on OSF/1 4.0.
51646
51647 2008-09-28  Bruno Haible  <bruno@clisp.org>
51648
51649         Override open more carefully.
51650         * lib/open.c (orig_open): New function.
51651         (rpl_open): Use orig_open instead of open.
51652         * lib/fcntl.in.h: Add special invocation convention.
51653         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51654         (gl_FUNC_OPEN): Invoke it.
51655
51656         Override freopen more carefully.
51657         * lib/freopen.c (orig_freopen): New function.
51658         (rpl_freopen): Use orig_freopen instead of freopen.
51659         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51660         (gl_FUNC_FREOPEN): Invoke it.
51661
51662         Override fopen more carefully.
51663         * lib/fopen.c (orig_fopen): New function.
51664         (rpl_fopen): Use orig_fopen instead of fopen.
51665         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51666         (gl_FUNC_FOPEN): Invoke it.
51667         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51668
51669 2008-09-28  Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51672         SIGPIPE.
51673
51674 2008-09-28  Bruno Haible  <bruno@clisp.org>
51675
51676         * tests/test-sigaction.c (handler, main): Disable the check whether
51677         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51678         glibc systems with LinuxThreads.
51679
51680 2008-09-28  Bruno Haible  <bruno@clisp.org>
51681
51682         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51683
51684         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51685         with AIX xlc.
51686         * lib/fcntl.in.h (open): Likewise.
51687         Reported by Rainer Tammer <tammer@tammer.net>.
51688
51689 2008-09-28  Bruno Haible  <bruno@clisp.org>
51690
51691         * modules/posix_spawnp-tests: New file.
51692         * tests/test-posix_spawn.c: New file.
51693         * tests/test-posix_spawn.in.sh: New file.
51694
51695         New module 'posix_spawnp'.
51696         * modules/posix_spawnp: New file.
51697         * lib/spawnp.c: New file, from GNU libc with modifications.
51698         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51699
51700         New module 'posix_spawn'.
51701         * modules/posix_spawn: New file.
51702         * lib/spawn.c: New file, from GNU libc with modifications.
51703         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51704
51705         New module 'posix_spawnattr_destroy'.
51706         * modules/posix_spawnattr_destroy: New file.
51707         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51708         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51709         module.
51710
51711         New module 'posix_spawnattr_setsigmask'.
51712         * modules/posix_spawnattr_setsigmask: New file.
51713         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51714         modifications.
51715         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51716         new module.
51717
51718         New module 'posix_spawnattr_getsigmask'.
51719         * modules/posix_spawnattr_getsigmask: New file.
51720         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51721         modifications.
51722         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51723         new module.
51724
51725         New module 'posix_spawnattr_setsigdefault'.
51726         * modules/posix_spawnattr_setsigdefault: New file.
51727         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51728         modifications.
51729         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51730         new module.
51731
51732         New module 'posix_spawnattr_getsigdefault'.
51733         * modules/posix_spawnattr_getsigdefault: New file.
51734         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51735         modifications.
51736         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51737         new module.
51738
51739         New module 'posix_spawnattr_setschedpolicy'.
51740         * modules/posix_spawnattr_setschedpolicy: New file.
51741         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51742         modifications.
51743         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51744         new module.
51745
51746         New module 'posix_spawnattr_getschedpolicy'.
51747         * modules/posix_spawnattr_getschedpolicy: New file.
51748         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51749         modifications.
51750         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51751         new module.
51752
51753         New module 'posix_spawnattr_setschedparam'.
51754         * modules/posix_spawnattr_setschedparam: New file.
51755         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51756         modifications.
51757         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51758         new module.
51759
51760         New module 'posix_spawnattr_getschedparam'.
51761         * modules/posix_spawnattr_getschedparam: New file.
51762         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51763         modifications.
51764         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51765         new module.
51766
51767         New module 'posix_spawnattr_setpgroup'.
51768         * modules/posix_spawnattr_setpgroup: New file.
51769         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51770         modifications.
51771         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51772         module.
51773
51774         New module 'posix_spawnattr_getpgroup'.
51775         * modules/posix_spawnattr_getpgroup: New file.
51776         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51777         modifications.
51778         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51779         module.
51780
51781         New module 'posix_spawnattr_setflags'.
51782         * modules/posix_spawnattr_setflags: New file.
51783         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51784         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51785         module.
51786
51787         New module 'posix_spawnattr_getflags'.
51788         * modules/posix_spawnattr_getflags: New file.
51789         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51790         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51791         module.
51792
51793         New module 'posix_spawnattr_init'.
51794         * modules/posix_spawnattr_init: New file.
51795         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51796         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51797         module.
51798
51799         New module 'posix_spawn_file_actions_destroy'.
51800         * modules/posix_spawn_file_actions_destroy: New file.
51801         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51802         modifications.
51803         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51804         the new module.
51805
51806         New module 'posix_spawn_file_actions_addopen'.
51807         * modules/posix_spawn_file_actions_addopen: New file.
51808         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51809         modifications.
51810         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51811         the new module.
51812
51813         New module 'posix_spawn_file_actions_adddup2'.
51814         * modules/posix_spawn_file_actions_adddup2: New file.
51815         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51816         modifications.
51817         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51818         the new module.
51819
51820         New module 'posix_spawn_file_actions_addclose'.
51821         * modules/posix_spawn_file_actions_addclose: New file.
51822         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51823         modifications.
51824         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51825         the new module.
51826
51827         New module 'posix_spawn_file_actions_init'.
51828         * modules/posix_spawn_file_actions_init: New file.
51829         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51830         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51831         new module.
51832
51833         New module 'posix_spawn-internal'.
51834         * modules/posix_spawn-internal: New file.
51835         * lib/spawn_int.h: New file, from GNU libc with modifications.
51836         * lib/spawni.c: New file, from GNU libc with modifications.
51837         * m4/posix_spawn.m4: New file.
51838
51839         New module 'spawn'.
51840         * modules/spawn: New file.
51841         * lib/spawn.in.h: New file, from GNU libc with modifications.
51842         * m4/spawn_h.m4: New file.
51843         * doc/posix-headers/spawn.texi: Mention the new module.
51844
51845 2008-09-28  Bruno Haible  <bruno@clisp.org>
51846
51847         * modules/sched-tests: New file.
51848         * tests/test-sched.c: New file.
51849
51850         New module 'sched'.
51851         * modules/sched: New file.
51852         * lib/sched.in.h: New file.
51853         * m4/sched_h.m4: New file.
51854         * doc/posix-headers/sched.texi: Mention the new module.
51855
51856 2008-09-27  Eric Blake  <ebb9@byu.net>
51857
51858         Fix previous patch, and tweak references to $0.
51859         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51860         (func_version, func_gnulib_dir): Don't call this program
51861         gnulib-tool.
51862         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51863         with using $0 in function.
51864         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51865         (func_fatal_error): Reuse the name the user invoked us with.
51866
51867 2008-09-27  Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51870         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51871         (gl_ICONV_H): Not here.
51872         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51873         instead of assigning ICONV_H directly.
51874
51875         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51877         WCHAR_H directly.
51878
51879 2008-09-27  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51882         * modules/arpa_inet (Depends-on): Add link-warning.
51883         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51884         * modules/unistd (Makefile.am): Likewise.
51885
51886 2008-09-26  Bruno Haible  <bruno@clisp.org>
51887
51888         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51889         variables.
51890         (func_version): Essentially copied from gnulib-tool.
51891         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51892         func_readlink): Copied from gnulib-tool.
51893
51894 2008-09-26  Bruno Haible  <bruno@clisp.org>
51895
51896         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51897         invoking git-version-gen.
51898
51899 2008-09-26  Bruno Haible  <bruno@clisp.org>
51900
51901         * posix-modules: Update to directory names changed on 2008-01-19.
51902         Remove commas in output before splitting into words. No more need to
51903         avoid 'ftruncate' since 2007-02-19.
51904
51905 2008-09-26  Bruno Haible  <bruno@clisp.org>
51906
51907         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51908
51909 2008-09-26  Bruno Haible  <bruno@clisp.org>
51910
51911         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51912         * modules/fwriteerror (Depends-on): Add errno.
51913
51914 2008-09-26  Bruno Haible  <bruno@clisp.org>
51915
51916         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51917         * tests/test-vc-list-files-cvs.sh: Likewise.
51918
51919 2008-09-26  Bruno Haible  <bruno@clisp.org>
51920
51921         * doc/posix-headers/sys_resource.texi: Reorder items.
51922
51923 2008-09-26  Jim Meyering  <meyering@redhat.com>
51924
51925         fts: tweak inode comparison function
51926         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51927         inode numbers, as documented.
51928
51929         fts: sort dirent entries on inode number before traversing
51930         This avoids a quadratic, seek-related performance penalty when
51931         operating on a directory containing many entries (measurable at 10k;
51932         3.5 hours at 2 million entries with a cold cache) on certain types
51933         of file systems, including ext3 and ext4, but not tmpfs.
51934         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51935         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51936         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51937         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51938         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51939         (fts_build): Set the stat.st_ino member from D_INO.
51940         If it is likely to be useful, sort dirent entries on inode number.
51941
51942         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51943         and the struct statfs.f_type member.
51944         * modules/fts (Depends-on): Add d-ino.
51945
51946 2008-09-26  Bruno Haible  <bruno@clisp.org>
51947
51948         * modules/sigpipe-die (Depends-on): Add sigpipe.
51949
51950         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51951         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51952         and GNULIB_STDIO_H_SIGPIPE are set.
51953         * lib/stdio-write.c: New file.
51954         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51955         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51956         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51957         REPLACE_STDIO_WRITE_FUNCS.
51958         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51959         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51960         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51961         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51962         * modules/stdio (Files): Add lib/stdio-write.c.
51963         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51964         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51965         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51966         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51967         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51968         REPLACE_FPRINTF_POSIX.
51969         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51970         REPLACE_PRINTF_POSIX.
51971         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51972         REPLACE_VFPRINTF_POSIX.
51973         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51974         REPLACE_VPRINTF_POSIX.
51975         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51976         SIGPIPE issue.
51977         * doc/posix-functions/fputc.texi: Likewise.
51978         * doc/posix-functions/fputs.texi: Likewise.
51979         * doc/posix-functions/fwrite.texi: Likewise.
51980         * doc/posix-functions/printf.texi: Likewise.
51981         * doc/posix-functions/putc.texi: Likewise.
51982         * doc/posix-functions/putchar.texi: Likewise.
51983         * doc/posix-functions/puts.texi: Likewise.
51984         * doc/posix-functions/vfprintf.texi: Likewise.
51985         * doc/posix-functions/vprintf.texi: Likewise.
51986
51987         * modules/safe-write (Depends-on): Add write.
51988
51989         * modules/sigpipe-tests: New file.
51990         * tests/test-sigpipe.c: New file.
51991         * tests/test-sigpipe.sh: New file.
51992
51993         * modules/write: New file.
51994         * lib/unistd.in.h: Include <sys/types.h>.
51995         (write): New declaration.
51996         * lib/write.c: New file.
51997         * m4/write.m4: New file.
51998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51999         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52000         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52001         GNULIB_WRITE, REPLACE_WRITE.
52002         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52003         and the SIGPIPE issue.
52004
52005         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52006         (raise): New declaration.
52007         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52008         (ext_signal): New function.
52009         (rpl_raise): New function.
52010         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52011         GNULIB_SIGNAL_H_SIGPIPE.
52012         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52013         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52014
52015         * modules/sigpipe: New file.
52016         * m4/sigpipe.m4: New file.
52017
52018 2008-09-25  Derek Price  <derek@ximbiot.com>
52019             Bruno Haible  <bruno@clisp.org>
52020
52021         * gnulib-tool (func_import): Report all license incompatibilities, not
52022         just the first one.
52023
52024 2008-09-25  Bruno Haible  <bruno@clisp.org>
52025
52026         * gnulib-tool (func_import): When computing the edits, consider not
52027         only the Makefile.ams that exist but also those that will be generated.
52028
52029 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52030
52031         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52032         fixes gnulib-tool --test warning about duplicate dependency.
52033
52034 2008-09-25  Bruno Haible  <bruno@clisp.org>
52035
52036         * gnulib-tool: Don't ask the user to perform edits in the generated
52037         Makefile.ams.
52038         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52039         apply to the Makefile.am being generated.
52040         (func_emit_tests_Makefile_am): Execute edits that apply to the
52041         Makefile.am being generated.
52042         (func_import): Setup list of Makefile.am edits before emitting the
52043         Makefile.ams, not at the end.
52044         (func_create_testdir): Update.
52045         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52046
52047 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52048
52049         * gnulib-tool (func_import): Store the --tests-base option in the
52050         comment in gnulib-cache.m4.
52051
52052 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52053
52054         * NEWS: Document increased portability that sys_select now provides.
52055
52056         * lib/sys_select.in.h: Install select wrapper.
52057         * lib/sys_socket.in.h: Use more descriptive name when there is no
52058         select wrapper.
52059         * lib/winsock-select.c: New.
52060         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52061         Require gl_HEADER_SYS_SOCKET.
52062         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52063         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52064         * tests/test-sys_select.c: Add functional tests.
52065
52066 2008-09-24  Eric Blake  <ebb9@byu.net>
52067
52068         open, fopen: close fd leak in last patch
52069         * lib/open.c (rpl_open): Close fd before returning error.
52070         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52071         * doc/posix-functions/open.texi (open): Document that Irix also
52072         has the bug.
52073         * doc/posix-functions/fopen.texi (fopen): Likewise.
52074         Reported by Paolo Bonzini.
52075
52076 2008-09-24  Bruno Haible  <bruno@clisp.org>
52077
52078         Ensure that a filename ending in a slash cannot be used to access a
52079         non-directory.
52080         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52081         to check whether it's really a directory.
52082         * lib/fopen.c: Include fcntl.h, unistd.h.
52083         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52084         and fdopen().
52085         * modules/fopen (Depends-on): Add unistd.
52086         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52087         * tests/test-fopen.c (main): Likewise.
52088         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52089         * doc/posix-functions/fopen.texi: Likewise.
52090         Reported by Eric Blake.
52091
52092 2008-09-23  Eric Blake  <ebb9@byu.net>
52093
52094         c-stack: avoid compiler optimizations when provoking overflow
52095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52096         recursion harder to optimize, to ensure a stack overflow occurs.
52097         * tests/test-c-stack.c (recurse): Likewise.
52098         Borrowed from libsigsegv.
52099
52100         c-stack: work around Irix sigaltstack bug
52101         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52102         whether sigaltstack uses wrong end of stack_t (copied in part from
52103         libsigsegv).
52104         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52105         Irix bug, without requiring an over-allocation.
52106         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52107         bug.
52108
52109         fopen: document mingw bug on directories
52110         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52111         not allowing a stream visiting a directory, even though reading
52112         from such a stream is not portable.
52113
52114 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52115
52116         * lib/poll.c: Rewrite.
52117         * modules/poll: Depend on alloca.
52118
52119 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52120
52121         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52122         instead define prototypes for a full set of wrappers.  Ensure
52123         that Cygwin does not use the compatibility code, which is only
52124         for MinGW.
52125         * lib/winsock.c: New.
52126         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52127         * modules/sys_socket: Add lib/winsock.c.
52128
52129         * modules/poll-tests: Add errno and perror.
52130         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52131
52132 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52133
52134         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52135
52136 2008-09-23  Bruno Haible  <bruno@clisp.org>
52137
52138         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52139         * doc/glibc-functions/*: Likewise.
52140
52141 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52142
52143         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52144         success.
52145
52146 2008-09-22  Eric Blake  <ebb9@byu.net>
52147             Bruno Haible  <bruno@clisp.org>
52148
52149         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52150         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52151         supply %A but mishandle pseudo-NaN.
52152         Reported by Simon Josefsson.
52153
52154 2008-09-21  Bruno Haible  <bruno@clisp.org>
52155
52156         * tests/test-lock.c (main): Tweak skip message.
52157         * tests/test-tls.c (main): Likewise.
52158
52159 2008-09-21  Bruno Haible  <bruno@clisp.org>
52160
52161         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52162         whether 'struct sigaction' has sa_sigaction here...
52163         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52164         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52165
52166 2008-09-21  Bruno Haible  <bruno@clisp.org>
52167
52168         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52169         section.
52170         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52171         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52172         the new section.
52173         (Support for obsolete systems lacking POSIX:2001): New section.
52174         (String handling <string.h>): Move strdup to the new section.
52175         Suggested by Simon Josefsson and Paolo Bonzini.
52176
52177 2008-09-21  Bruno Haible  <bruno@clisp.org>
52178
52179         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52180         exponents in %e and %g results on 'long double'. Needed for mingw's
52181         improved *printf functions.
52182         * tests/test-vasprintf-posix.c (test_function): Likewise.
52183         * tests/test-snprintf-posix.h (test_function): Likewise.
52184         * tests/test-sprintf-posix.h (test_function): Likewise.
52185         Reported by Eric Blake.
52186
52187 2008-09-21  Bruno Haible  <bruno@clisp.org>
52188
52189         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52190         * tests/test-sprintf-posix.h (test_function): Likewise.
52191
52192 2008-09-21  Bruno Haible  <bruno@clisp.org>
52193
52194         * modules/getpass (Depends-on): Add strdup-posix.
52195
52196         New module 'strdup-posix'.
52197         * modules/strdup-posix: New file.
52198         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52199         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52201         REPLACE_STRDUP.
52202         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52203         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52205         strdup-posix.
52206
52207         * modules/strdup (Depends-on): Remove malloc-posix.
52208
52209 2008-09-20  Bruno Haible  <bruno@clisp.org>
52210
52211         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52212         Wildenhues.
52213
52214 2008-09-20  Bruno Haible  <bruno@clisp.org>
52215
52216         Ensure that wint_t gets defined on IRIX 5.3.
52217         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52218         * lib/wctype.in.h (wint_t): Likewise.
52219         (__wctype_wint_t): Remove type.
52220         (isw*): Use wint_t instead of __wctype_wint_t.
52221         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52222         * modules/wchar (Files): Add m4/wint_t.m4.
52223         (Makefile.am): Substitute HAVE_WINT_T.
52224         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52225         * tests/test-wctype.c: Check that wint_t is defined.
52226         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52227         * doc/posix-headers/wctype.texi: Likewise.
52228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52229
52230 2008-09-18  Bruno Haible  <bruno@clisp.org>
52231
52232         * gnulib-tool (func_exit): Update comment.
52233
52234 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52235
52236         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52237         assumes strdup exists and does not depend on strdup to return
52238         ENOMEM on out of memory conditions.
52239
52240 2008-09-18  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52243         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52244         digits for the exponent.
52245
52246 2008-09-18  Jim Meyering  <meyering@redhat.com>
52247             Bruno Haible  <bruno@clisp.org>
52248
52249         * lib/vasnprintf.c (decimal_point_char): Define also if
52250         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52251
52252 2008-09-16  Bruno Haible  <bruno@clisp.org>
52253         and Eric Blake  <ebb9@byu.net>
52254
52255         vasnprintf: support Irix 5.3
52256         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52257         that mishandle long double infinity.
52258         Reported by Tom G. Christensen.
52259
52260 2008-09-16  Bruno Haible  <bruno@clisp.org>
52261
52262         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52263         Solaris 9.
52264         * doc/glibc-functions/alphasort.texi: Likewise.
52265         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52266
52267 2008-09-16  Jim Meyering  <meyering@redhat.com>
52268
52269         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52270         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52271         a umask modification leak out of a subshell.  Otherwise, the
52272         opensolaris /bin/sh would be accepted and thus cause unwarranted
52273         failures in the coreutils test suite.
52274
52275 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52276
52277         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52278         to succeed.
52279
52280 2008-09-16  Jim Meyering  <meyering@redhat.com>
52281
52282         avoid spurious test failure when library is built without ACL support
52283         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52284         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52285         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52286         * tests/test-copy-acl.sh: Likewise.
52287
52288 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52289
52290         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52291         based on character occurrence counts.
52292
52293 2008-09-15  Eric Blake  <ebb9@byu.net>
52294
52295         tests: avoid some compiler warnings
52296         * tests/test-memchr.c (main): Pass NULL indirectly.
52297         * tests/test-closein.c (main): Avoid unused variable.
52298
52299 2008-09-15  Bruno Haible  <bruno@clisp.org>
52300
52301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52302         are missing on OpenBSD 4.0 individually.
52303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52304
52305 2008-09-15  Bruno Haible  <bruno@clisp.org>
52306
52307         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52308         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52309         * doc/posix-functions/perror.texi: Likewise.
52310         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52311         is missing.
52312         Reported by Eric Blake.
52313
52314         * lib/errno.in.h: Use replacement values >= 2000.
52315         Reported by Eric Blake.
52316
52317 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52318
52319         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52320         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52321         limit.
52322         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52323         compareseq was aborted.
52324
52325 2008-09-14  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52328         yvec_edit_count.
52329         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52330         (fstrcmp_bounded): Simplify result computation accordingly.
52331
52332 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52333
52334         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52335         (fstrcmp): Define in terms of fstrcmp_bounded.
52336         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52337         lower_bound argument.
52338         Return quickly if the result is certainly < lower_bound.
52339         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52340
52341 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52342
52343         * lib/diffseq.h (EARLY_ABORT): New macro.
52344         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52345         evaluates to true.
52346
52347 2008-09-14  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/perror-tests: New file.
52350         * tests/test-perror.sh: New file.
52351         * tests/test-perror.c: New file.
52352
52353         New module 'perror'.
52354         * lib/stdio.in.h (perror): New declaration.
52355         * lib/perror.c: New file.
52356         * m4/perror.m4: New file.
52357         * modules/perror: New file.
52358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52359         * doc/posix-functions/perror.texi: Mention the perror module.
52360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52361         REPLACE_PERROR.
52362         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52363         REPLACE_PERROR.
52364
52365 2008-09-14  Bruno Haible  <bruno@clisp.org>
52366
52367         * modules/stdio (Makefile.am): Reorder to match the order in
52368         lib/stdio.in.h.
52369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52370
52371 2008-09-13  Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52374
52375 2008-09-13  Bruno Haible  <bruno@clisp.org>
52376
52377         Extend strerror to cover the added errno values.
52378         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52379         (rpl_strerror): Provide error messages for the added errno values and
52380         for the WSA* values.
52381         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52382         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52383         strerror.
52384         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52385         * modules/strerror (Depends-on): Add errno.
52386         * doc/posix-functions/strerror.texi: Document the change.
52387         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52388         and EOVERFLOW.
52389
52390 2008-09-13  Bruno Haible  <bruno@clisp.org>
52391
52392         * modules/EOVERFLOW: Remove file.
52393         * m4/eoverflow.m4: Remove file.
52394         * modules/EOVERFLOW-tests: Remove file.
52395         * tests/test-EOVERFLOW.c: Remove file.
52396         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52397         * modules/ftell (Depends-on): Likewise.
52398         * modules/getdelim (Depends-on): Likewise.
52399         * modules/getugroups (Depends-on): Likewise.
52400         * modules/poll (Depends-on): Likewise.
52401         * modules/snprintf (Depends-on): Likewise.
52402         * modules/sprintf-posix (Depends-on): Likewise.
52403         * modules/vasnprintf (Depends-on): Likewise.
52404         * modules/vasprintf (Depends-on): Likewise.
52405         * modules/vfprintf-posix (Depends-on): Likewise.
52406         * modules/vsnprintf (Depends-on): Likewise.
52407         * modules/vsprintf-posix (Depends-on): Likewise.
52408         * modules/xvasprintf (Depends-on): Likewise.
52409         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52410         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52411         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52412         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52413         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52414         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52415         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52416         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52417         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52418         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52419         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52420         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52421         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52422         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52423         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52424         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52425         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52426         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52427         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52428         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52429         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52430         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52431         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52432         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52433         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52434         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52435         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52436         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52437         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52438         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52439         * MODULES.html.sh: Remove EOVERFLOW.
52440         * NEWS: Mention the change.
52441
52442 2008-09-13  Bruno Haible  <bruno@clisp.org>
52443
52444         * modules/errno-tests: New file.
52445         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52446
52447         * lib/errno.in.h: New file.
52448         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52449         * modules/errno: New file.
52450         * doc/posix-headers/errno.texi: Update documentation.
52451         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52452
52453 2008-09-13  Bruno Haible  <bruno@clisp.org>
52454
52455         * tests/test-poll.c: Use #if for native Windows, rather than testing
52456         __MSVCRT__.
52457
52458 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52459             Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/glob.c: Don't include <pwd.h> on native Windows.
52462         (WINDOWS32): New macro.
52463         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52464
52465 2008-09-13  Bruno Haible  <bruno@clisp.org>
52466
52467         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52468         (ETIMEDOUT): Remove macro.
52469         (glthread_cond_timedwait_multithreaded): New declaration.
52470         (glthread_cond_timedwait): Use it.
52471         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52472         (glthread_cond_timedwait_multithreaded): New function.
52473
52474 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52475
52476         * modules/poll-tests: Do not check for io.h.
52477         * tests/test-poll.c: Check for __MSVCRT__ instead.
52478
52479 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52480
52481         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52482         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52483         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52484
52485 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52486
52487         * modules/poll-tests: New.
52488         * tests/test-poll.c: New.
52489
52490 2008-09-12  Eric Blake  <ebb9@byu.net>
52491
52492         frexp: test for NetBSD failure on -0.0
52493         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52494         not all, bugs from NetBSD 3.0 have been fixed.
52495         * doc/posix-functions/frexp.texi (frexp): Document bug.
52496         Reported by Thomas Klausner.
52497
52498         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52499         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52500         literal -0.0.
52501         Reported by Jonathan C. Patschke <jp@centtech.com>.
52502
52503 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52504
52505         * lib/glthread/cond.h: Use dummy implementation also if
52506         USE_WIN32_THREADS.
52507
52508 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52509
52510         * modules/fnmatch-posix (License): Change to LGPLv2+.
52511         * modules/fnmatch-gnu (License): Likewise.
52512
52513 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52514
52515         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52516
52517 2008-09-11  Jim Meyering  <meyering@redhat.com>
52518
52519         * users.txt: Add gtk-vnc.
52520
52521 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52522
52523         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52524         rotate amounts.
52525
52526         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52527         required for 16-bit and 8-bit rotates.
52528         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52529         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52530         UINT8_MAX instead of hard-coded constants.
52531         Suggested by Paul Eggert.
52532
52533 2008-09-07  Bruno Haible  <bruno@clisp.org>
52534
52535         * tests/test-striconveh.c (main): Check behaviour when converting from
52536         UTF-7.
52537
52538         Make striconveh work better with stateful encodings.
52539         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52540         that iconv does not increment the inptr when returning -1/EINVAL.
52541
52542 2008-09-07  Bruno Haible  <bruno@clisp.org>
52543
52544         * build-aux/config.rpath: Update according to libtool-2.2.6.
52545         * build-aux/config.libpath: Likewise.
52546
52547 2008-09-06  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52550         * lib/freadptr.c (freadptr): Likewise.
52551         * lib/freadseek.c (freadptrinc): Likewise.
52552         Reported by Simon Josefsson.
52553
52554 2008-09-06  Bruno Haible  <bruno@clisp.org>
52555
52556         * modules/freadptr (License): Change to LGPLv2+.
52557         * modules/freadseek (License): Likewise.
52558         Suggested by Eric Blake.
52559
52560         * modules/memchr2 (License): Change to LGPLv2+.
52561         Approved by Eric Blake.
52562
52563 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52564             Bruno Haible  <bruno@clisp.org>
52565
52566         Make gnulib-tool work with native 'sed' on AIX.
52567         * gnulib-tool (sed_noop): New variable.
52568         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52569         func_add_or_update, func_create_testdir): Use it to initialize sed
52570         script variables.
52571         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52572
52573 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52574             Bruno Haible  <bruno@clisp.org>
52575
52576         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52577         also works after #include directives.
52578
52579 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52580
52581         getdate.y: reject an out-of-range timezone value
52582         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52583         the range [-24...+24].  When specified with only one or two digits,
52584         * tests/test-getdate.c: Tests for the fix.
52585         * doc/getdate.texi: Document this change.
52586
52587 2008-09-03  Bruno Haible  <bruno@clisp.org>
52588
52589         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52590
52591 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52592
52593         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52594         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52595         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52596         Blake <ebb9@byu.net>.
52597
52598         * tests/test-bitrotate.c: Add more test vectors.
52599
52600 2008-09-02  Eric Blake  <ebb9@byu.net>
52601
52602         vasnprintf-posix: handle large precision via %.*d
52603         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52604         when handling it ourselves.
52605         * tests/test-vasnprintf-posix.c (test_function): Add test.
52606         * tests/test-snprintf-posix.h (test_function): Likewise.
52607         * tests/test-sprintf-posix.h (test_function): Likewise.
52608         * tests/test-vasprintf-posix.c (test_function): Likewise.
52609         Reported by Alain Guibert.
52610
52611 2008-09-01  Eric Blake  <ebb9@byu.net>
52612
52613         c-stack: make configure-time check more robust
52614         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52615         successful sigaction call.
52616         Reported by Tom G. Christensen.
52617
52618 2008-09-01  Bruno Haible  <bruno@clisp.org>
52619
52620         New module 'findprog-lgpl'.
52621         * modules/findprog-lgpl: New file.
52622         * lib/findprog-lgpl.c: New file.
52623         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52624         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52625         to decide whether to use strdup or xstrdup, concatenated_filename or
52626         xconcatenated_filename.
52627
52628 2008-09-01  Bruno Haible  <bruno@clisp.org>
52629
52630         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52631         'xconcat-filename' (GPL).
52632         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52633         (License): Change to LGPLv2+.
52634         * modules/xconcat-filename: New file.
52635         * lib/concat-filename.h (concatenated_filename): Change specification.
52636         (xconcatenated_filename): New declaration.
52637         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52638         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52639         memory situations.
52640         * lib/xconcat-filename.c: New file.
52641         * NEWS: Mention the change.
52642         * lib/findprog.c: Include concat-filename.h, not filename.h.
52643         (find_in_path): Use xconcatenated_filename instead of
52644         concatenated_filename.
52645         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52646         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52647         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52648         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52649         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52650         instead of concatenated_filename.
52651         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52652         (execute_java_class): Use xconcatenated_filename instead of
52653         concatenated_filename.
52654         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52655         * modules/javacomp (Depends-on): Likewise.
52656         * modules/javaexec (Depends-on): Likewise.
52657
52658 2008-09-01  Bruno Haible  <bruno@clisp.org>
52659
52660         Split module 'filename' into 'filename' and 'concat-filename'.
52661         * modules/filename: Keep only lib/filename.h.
52662         (License): Change to LGPLv2+.
52663         * modules/concat-filename: New file, extracted from modules/filename.
52664         * lib/filename.h (concatenated_filename): Remove declaration.
52665         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52666         * lib/concat-filename.c: Include concat-filename.h.
52667         * NEWS: Mention the change.
52668
52669 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52670
52671         * lib/bitrotate.h (rotl8, rotr8): Add.
52672
52673         * modules/bitrotate (configure.ac): Need
52674         AC_REQUIRE([AC_C_INLINE]).
52675         (Description): Mention stdint.h.  Reported by Bruno Haible
52676         <bruno@clisp.org>.
52677
52678         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52679         Paolo Bonzini <bonzini@gnu.org>.
52680
52681 2008-08-31  Bruno Haible  <bruno@clisp.org>
52682
52683         Assume Solaris specific bi-arch conventions on Solaris systems.
52684         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52685         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52687         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52688         like acl_libdirstem.
52689         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52690         acl_libdirstem.
52691         * NEWS: Mention the change.
52692         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52693
52694 2008-08-31  Jim Meyering  <meyering@redhat.com>
52695
52696         * lib/strftime.h: Add comments describing the two added arguments.
52697
52698         remove duplicate #include directives
52699         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52700         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52701
52702 2008-08-31  Bruno Haible  <bruno@clisp.org>
52703
52704         New module 'sigpipe-die'.
52705         * modules/sigpipe-die: New file.
52706         * lib/sigpipe-die.h: New file.
52707         * lib/sigpipe-die.c: New file.
52708         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52709
52710 2008-08-31  Bruno Haible  <bruno@clisp.org>
52711
52712         Don't override previously installed signal handlers.
52713         * lib/fatal-signal.c (saved_sigactions): New variable.
52714         (uninstall_handlers): Reset the signal to the saved handler, not
52715         to SIG_DFL (except when ignored).
52716         (install_handlers): Save the previous handlers.
52717
52718 2008-08-30  Bruno Haible  <bruno@clisp.org>
52719
52720         * gnulib-tool (func_reset_sigpipe): New function.
52721         (func_get_automake_snippet, func_modules_transitive_closure,
52722         func_import): Invoke it before a join command that reads from stdin,
52723         to avoid "echo: write error: Broken pipe" error messages on stderr.
52724         Reported by Sam Steingold <sds@gnu.org>.
52725
52726 2008-08-30  Bruno Haible  <bruno@clisp.org>
52727
52728         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52729         Code copied from m4/open.m4.
52730         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52731         access and the filename ends in a slash. Code copied from lib/open.c.
52732         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52733         * tests/test-fopen.c (main): Check against bug with trailing slash.
52734
52735 2008-08-29  Bruno Haible  <bruno@clisp.org>
52736
52737         Avoid some "gcc -pedantic" warnings.
52738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52739         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52740         * lib/dirent.in.h: Likewise.
52741         * lib/fcntl.in.h: Likewise.
52742         * lib/float.in.h: Likewise.
52743         * lib/iconv.in.h: Likewise.
52744         * lib/inttypes.in.h: Likewise.
52745         * lib/locale.in.h: Likewise.
52746         * lib/math.in.h: Likewise.
52747         * lib/netinet_in.in.h: Likewise.
52748         * lib/search.in.h: Likewise.
52749         * lib/signal.in.h: Likewise.
52750         * lib/stdarg.in.h: Likewise.
52751         * lib/stdint.in.h: Likewise.
52752         * lib/stdio.in.h: Likewise.
52753         * lib/stdlib.in.h: Likewise.
52754         * lib/string.in.h: Likewise.
52755         * lib/strings.in.h: Likewise.
52756         * lib/sys_select.in.h: Likewise.
52757         * lib/sys_socket.in.h: Likewise.
52758         * lib/sys_stat.in.h: Likewise.
52759         * lib/sys_time.in.h: Likewise.
52760         * lib/sysexits.in.h: Likewise.
52761         * lib/time.in.h: Likewise.
52762         * lib/unistd.in.h: Likewise.
52763         * lib/wchar.in.h: Likewise.
52764         * lib/wctype.in.h: Likewise.
52765         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52766         * modules/fchdir (Makefile.am): Likewise.
52767         * modules/fcntl (Makefile.am): Likewise.
52768         * modules/float (Makefile.am): Likewise.
52769         * modules/iconv_open (Makefile.am): Likewise.
52770         * modules/inttypes (Makefile.am): Likewise.
52771         * modules/locale (Makefile.am): Likewise.
52772         * modules/math (Makefile.am): Likewise.
52773         * modules/netinet_in (Makefile.am): Likewise.
52774         * modules/search (Makefile.am): Likewise.
52775         * modules/signal (Makefile.am): Likewise.
52776         * modules/stdarg (Makefile.am): Likewise.
52777         * modules/stdint (Makefile.am): Likewise.
52778         * modules/stdio (Makefile.am): Likewise.
52779         * modules/stdlib (Makefile.am): Likewise.
52780         * modules/string (Makefile.am): Likewise.
52781         * modules/strings (Makefile.am): Likewise.
52782         * modules/sys_select (Makefile.am): Likewise.
52783         * modules/sys_socket (Makefile.am): Likewise.
52784         * modules/sys_stat (Makefile.am): Likewise.
52785         * modules/sys_time (Makefile.am): Likewise.
52786         * modules/sysexits (Makefile.am): Likewise.
52787         * modules/time (Makefile.am): Likewise.
52788         * modules/unistd (Makefile.am): Likewise.
52789         * modules/wchar (Makefile.am): Likewise.
52790         * modules/wctype (Makefile.am): Likewise.
52791         Reported by Reuben Thomas <rrt@sc3d.org>.
52792
52793 2008-08-29  Bruno Haible  <bruno@clisp.org>
52794
52795         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52796         any more.
52797
52798 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52799
52800         * MODULES.html.sh (Misc): Add bitrotate.
52801
52802         * modules/bitrotate: New file.
52803
52804         * lib/bitrotate.h: New file.
52805
52806         * modules/bitrotate-tests: New file.
52807
52808         * tests/test-bitrotate.c: New file.
52809
52810         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52811         on the bitrotate module.
52812
52813         * lib/arctwo.c: Use new bitrotate module.
52814
52815 2008-08-29  Jim Meyering  <meyering@redhat.com>
52816
52817         bootstrap: merge changes from coreutils
52818         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52819         of copied files.  Remove a kludge, now that this is fixed.
52820         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52821         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52822         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52823
52824 2008-08-29  Bruno Haible  <bruno@clisp.org>
52825
52826         * MODULES.html.sh: Remove --cvs-urls option.
52827
52828 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52829
52830         maint.mk: adjust to file name change
52831         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52832
52833 2008-08-28  Jim Meyering  <meyering@redhat.com>
52834
52835         * modules/getndelim2 (License): Relicense to LGPLv2+.
52836         Approved by Richard Stallman for the version of 1995, and by
52837         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52838
52839 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52840
52841         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52842         dummy if one is not available.  Do not touch them if
52843         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52844         (getc_maybe_unlocked): New.
52845         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52846
52847 2008-08-26  Eric Blake  <ebb9@byu.net>
52848
52849         doc/INSTALL: resync from autoconf
52850         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52851         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52852         moving...
52853         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52854         * INSTALL: Regenerate.
52855         * INSTALL.ISO: New file.
52856         * INSTALL.UTF-8: Likewise.
52857
52858 2008-08-26  Jim Meyering  <meyering@redhat.com>
52859
52860         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52861         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52862         these definitions conditional, so that they may be overridden, too.
52863
52864 2008-08-26  Bruno Haible  <bruno@clisp.org>
52865
52866         Generate INSTALL file variants with prettier quotes.
52867         * doc/Makefile (INSTALL_PRELUDE): New macro.
52868         (INSTALL): Use it.
52869         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52870
52871 2008-08-26  Bruno Haible  <bruno@clisp.org>
52872
52873         Run makeinfo in an English locale.
52874         * doc/Makefile (MAKEINFO): New variable.
52875
52876 2008-08-26  Bruno Haible  <bruno@clisp.org>
52877
52878         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52879         Suggested by Eric Blake.
52880
52881 2008-08-25  Bruno Haible  <bruno@clisp.org>
52882
52883         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52884
52885 2008-08-25  Eric Blake  <ebb9@byu.net>
52886
52887         c-stack: test that stack overflow can be caught
52888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52889         that platform allows handling stack overflow; at least OS/2 EMX
52890         has sigaltstack, but crashes before transferring control to
52891         handler on stack overflow.
52892         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52893         check for HAVE_STACK_OVERFLOW_HANDLING.
52894         Reported by Elbert Pol.
52895
52896 2008-08-25  Bruno Haible  <bruno@clisp.org>
52897
52898         * doc/posix-functions/strftime.texi: Fix description of strftime
52899         module.
52900
52901 2008-08-24  Bruno Haible  <bruno@clisp.org>
52902
52903         * tests/uniwidth/test-uc_width2.c: New file.
52904         * tests/uniwidth/test-uc_width2.sh: New file.
52905         * modules/uniwidth/width-tests (Files): Add the new files.
52906         (TESTS): Add uniwidth/test-uc_width2.sh.
52907         (TESTS_ENVIRONMENT): New variable.
52908         (check_PROGRAMS): Add test-uc_width2.
52909         (test_uc_width2_SOURCES): New variable.
52910
52911         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52912         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52913         not 0x00AB.
52914         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52915
52916 2008-08-22  Eric Blake  <ebb9@byu.net>
52917
52918         test-lock, test-tls: mention why a test is skipped
52919         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52920         skipped.
52921         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52922
52923         count-one-bits: relax license
52924         * modules/count-one-bits (License): Relicense to LGPLv2+.
52925         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52926
52927 2008-08-22  Andreas Schwab  <schwab@suse.de>
52928
52929         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52930         Remove spurious space in assignment.
52931
52932 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52933
52934         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52935         Paul Eggert <eggert@CS.UCLA.EDU>.
52936
52937 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52938
52939         * modules/gettext: Add m4/threadlib.m4.
52940
52941 2008-08-19  Eric Blake  <ebb9@byu.net>
52942
52943         test-c-stack: fix compilation failure on FreeBSD 5.0
52944         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52945         headers before <sys/resource.h>.
52946         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52947         the bug.
52948         Reported by Nelson H. F. Beebe.
52949
52950         strverscmp: migrate from "strverscmp.h" to <string.h>
52951         * modules/string (Makefile.am): Add new hooks.
52952         * modules/strverscmp (Files): Remove strverscmp.h.
52953         (Depends-on): Add string.
52954         (configure.ac): Add indicator.
52955         (Include): Mention new header.
52956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52957         defaults.
52958         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52959         results.
52960         * lib/strverscmp.h: Delete.
52961         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52962         * tests/test-strverscmp.c (includes): Adjust client.
52963         * lib/check-version.c (includes): Likewise.
52964         * NEWS: Document the change.
52965
52966         strverscmp: add unit test
52967         * modules/strverscmp-tests: New file.
52968         * tests/test-strverscmp.c: Likewise.
52969
52970 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52971
52972         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52973         regarding Windows crypto stuff, from Mono.
52974
52975 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52976
52977         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52978         if present, for intel RND.  Return error on failures.
52979
52980 2008-08-18  Ben Pfaff  <blp@gnu.org>
52981
52982         gitlog-to-changelog: give better diagnostic for failed pipe-open
52983         * build-aux/gitlog-to-changelog: Improve error message: suggest
52984         that the version of Git may be too old.
52985
52986 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52987
52988         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52989         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52990
52991 2008-08-18  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52994         pthread_in_use().
52995
52996 2008-08-18  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/glthread/threadlib.c: Include <pthread.h>.
52999
53000 2008-08-18  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53003         glthread_recursive_lock_* macros.
53004         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53005         Fix syntax error.
53006
53007 2008-08-18  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/glthread/thread.c: Avoid forcing a context switch right after
53010         thread creation.
53011
53012 2008-08-17  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53015         * lib/glthread/thread.h: Provide Win32 specific implementation.
53016         * modules/thread (Files): Add lib/glthread/thread.c.
53017         (Depends-on): Add lock.
53018         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53019
53020 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53021
53022         New module 'yield'.
53023         * modules/yield: New file.
53024         * lib/glthread/yield.h: New file.
53025         * m4/yield.m4: New file.
53026         * MODULES.html.sh (Multithreading): Add yield.
53027
53028 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53029
53030         New module 'thread'.
53031         * modules/thread: New file.
53032         * lib/glthread/thread.h: New file.
53033         * m4/thread.m4: New file.
53034         * MODULES.html.sh (Multithreading): Add thread.
53035
53036 2008-08-17  Bruno Haible  <bruno@clisp.org>
53037
53038         * lib/glthread/lock.h: Include <stdlib.h> always.
53039         * lib/glthread/tls.h: Likewise.
53040         * lib/glthread/cond.h: Likewise.
53041
53042 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53043
53044         New module 'cond'.
53045         * modules/cond: New file.
53046         * lib/glthread/cond.h: New file.
53047         * lib/glthread/cond.c: New file.
53048         * m4/cond.m4: New file.
53049         * MODULES.html.sh (Multithreading): Add cond.
53050
53051 2008-08-16  Eric Blake  <ebb9@byu.net>
53052
53053         c-stack: fix regression on Irix 5.3 from 2008-06-21
53054         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53055         sa_sigaction...
53056         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53057         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53058         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53059         * modules/signal (Makefile.am): Use the value.
53060         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53061         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53062         * doc/posix-headers/signal.texi (signal.h): Document this
53063         portability issue.
53064         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53065         Reported by Tom G. Christensen.
53066
53067 2008-08-17  Bruno Haible  <bruno@clisp.org>
53068
53069         New module 'threadlib'.
53070         * modules/threadlib: New file.
53071         * lib/glthread/threadlib.c: New file, extracted from
53072         lib/glthread/lock.c.
53073         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53074         functions.
53075         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53076         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53077         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53078         macros.
53079         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53080         (gl_DISABLE_THREADS): Remove macro.
53081         * modules/lock (Files): Remove build-aux/config.rpath.
53082         (Depends-on): Remove havelib. Add threadlib.
53083         (configure.ac-early): Remove section.
53084         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53085         * modules/tls (Depends-on): Remove lock. Add threadlib.
53086         (Link): New section, copied from threadlib.
53087         * MODULES.html.sh (Multithreading): Add threadlib.
53088
53089 2008-08-14  Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53092         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53093         glthread_rwlock_unlock, glthread_rwlock_destroy,
53094         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53095         glthread_recursive_lock_destroy): Define as macros always.
53096         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53097         glthread_lock_lock.
53098         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53099         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53100         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53101         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53102         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53103         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53104         (glthread_recursive_lock_lock_func): Renamed from
53105         glthread_recursive_lock_lock.
53106         (glthread_recursive_lock_unlock_func): Renamed from
53107         glthread_recursive_lock_unlock.
53108         (glthread_recursive_lock_destroy_func): Renamed from
53109         glthread_recursive_lock_destroy.
53110
53111 2008-08-14  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/glthread/lock.h: Renamed from lib/lock.h.
53114         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53115         * lib/glthread/tls.h: Renamed from lib/tls.h.
53116         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53117         * lib/fstrcmp.c: Update includes.
53118         * lib/strsignal.c: Update includes.
53119         * modules/lock (Files, Makefile.am): Update.
53120         (Include): Change to "glthread/lock.h".
53121         * modules/tls (Files, Makefile.am): Update.
53122         (Include): Change to "glthread/tls.h".
53123         * tests/test-lock.c: Update includes.
53124         * tests/test-tls.c: Update includes.
53125         * NEWS: Mention the renamed header files.
53126
53127 2008-08-11  Jim Meyering  <meyering@redhat.com>
53128
53129         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53130
53131 2008-08-11  Eric Blake  <ebb9@byu.net>
53132
53133         test-c-stack: avoid C99-ism
53134         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53135         before statement.
53136         Reported by Alain Guibert.
53137
53138 2008-08-10  Jim Meyering  <meyering@redhat.com>
53139
53140         ensure that return value of uinttostr et al are not ignored
53141         * lib/inttostr.h (__GNUC_PREREQ): Define.
53142         (__attribute_warn_unused_result__): Define.
53143         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53144
53145 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53146
53147         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53148         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53149
53150 2008-08-07  Jim Meyering  <meyering@redhat.com>
53151
53152         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53153
53154         * modules/mkstemp (License): Relicense under LGPLv2+.
53155         * modules/tempname (License): Likewise.
53156
53157 2008-08-06  Bruno Haible  <bruno@clisp.org>
53158
53159         * lib/poll.c (poll): Further micro-optimization.
53160
53161 2008-08-06  Jim Meyering  <meyering@redhat.com>
53162
53163         inet_pton.c: use locale-independent tolower
53164         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53165         (inet_pton6): Use c_tolower rather than tolower.
53166         * modules/inet_pton (Depends-on): Add c-ctype.
53167
53168 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53169
53170         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53171         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53172
53173 2008-08-06  Jim Meyering  <meyering@redhat.com>
53174
53175         * modules/inet_pton (License): Relicense under LGPLv2+.
53176
53177 2008-08-03  Bruno Haible  <bruno@clisp.org>
53178
53179         Additional non-aborting API for lock and tls.
53180         * lib/lock.h: Include <errno.h>.
53181         (glthread_lock_init): New macro/function.
53182         (gl_lock_init): Define as wrapper around glthread_lock_init.
53183         (glthread_lock_lock): New macro/function.
53184         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53185         (glthread_lock_unlock): New macro/function.
53186         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53187         (glthread_lock_destroy): New macro/function.
53188         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53189         (glthread_rwlock_init): New macro/function.
53190         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53191         (glthread_rwlock_rdlock): New macro/function.
53192         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53193         (glthread_rwlock_wrlock): New macro/function.
53194         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53195         (glthread_rwlock_unlock): New macro/function.
53196         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53197         (glthread_rwlock_destroy): New macro/function.
53198         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53199         (glthread_recursive_lock_init): New macro/function.
53200         (gl_recursive_lock_init): Define as wrapper around
53201         glthread_recursive_lock_init.
53202         (glthread_recursive_lock_lock): New macro/function.
53203         (gl_recursive_lock_lock): Define as wrapper around
53204         glthread_recursive_lock_lock.
53205         (glthread_recursive_lock_unlock): New macro/function.
53206         (gl_recursive_lock_unlock): Define as wrapper around
53207         glthread_recursive_lock_unlock.
53208         (glthread_recursive_lock_destroy): New macro/function.
53209         (gl_recursive_lock_destroy): Define as wrapper around
53210         glthread_recursive_lock_destroy.
53211         (glthread_once): New macro/function.
53212         (gl_once): Define as wrapper around glthread_once.
53213         Update function declarations.
53214         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53215         glthread_rwlock_init. Return error code.
53216         (glthread_rwlock_rdlock_multithreaded): Renamed from
53217         glthread_rwlock_rdlock. Return error code.
53218         (glthread_rwlock_wrlock_multithreaded): Renamed from
53219         glthread_rwlock_wrlock. Return error code.
53220         (glthread_rwlock_unlock_multithreaded): Renamed from
53221         glthread_rwlock_unlock. Return error code.
53222         (glthread_rwlock_destroy_multithreaded): Renamed from
53223         glthread_rwlock_destroy. Return error code.
53224         (glthread_recursive_lock_init_multithreaded): Renamed from
53225         glthread_recursive_lock_init. Return error code.
53226         (glthread_recursive_lock_lock_multithreaded): Renamed from
53227         glthread_recursive_lock_lock. Return error code.
53228         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53229         glthread_recursive_lock_unlock. Return error code.
53230         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53231         glthread_recursive_lock_destroy. Return error code.
53232         (glthread_once_call): Make static.
53233         (glthread_once_multithreaded): Renamed from glthread_once.
53234         * lib/tls.h: Include <errno.h>.
53235         (glthread_tls_key_init): New macro/function.
53236         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53237         (glthread_tls_set): New macro/function.
53238         (gl_tls_set): Define as wrapper around glthread_tls_set.
53239         (glthread_tls_key_destroy): New macro/function.
53240         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53241         Update function declarations.
53242         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53243         glthread_tls_get.
53244         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53245
53246 2008-08-04  Eric Blake  <ebb9@byu.net>
53247
53248         gnumakefile: use space, not TAB, outside of targets
53249         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53250
53251 2008-08-02  Jim Meyering  <meyering@redhat.com>
53252
53253         getdate.y: avoid locale-dependent date parsing failure
53254         In Turkish locales, getdate would fail to recognize keywords
53255         containing a lowercase "i".  The solution is not to rely on
53256         locale-sensitive case-conversion.
53257         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53258         (lookup_word): Use c_toupper in place of toupper.
53259         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53260         Reported by Vefa Bicakci <bicave@superonline.com> in
53261         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53262         * modules/getdate (Depends-on): Add c-ctype.
53263
53264 2008-08-02  Bruno Haible  <bruno@clisp.org>
53265
53266         * gnulib-tool (func_import): When updating or creating a .gitignore
53267         file, prepend each added line with a slash, and ignore leading slashes
53268         from the existing lines.
53269         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53270
53271 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53272
53273         Portability fix for GNU make 3.79.1.
53274         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53275         versions do not understand.
53276
53277 2008-08-01  Bruno Haible  <bruno@clisp.org>
53278
53279         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53280         * tests/test-isnanf.h (zero): New variable.
53281         (main): Avoid literal -0.0f.
53282         * tests/test-isnand.h (zero): New variable.
53283         (main): Avoid literal -0.0.
53284         * tests/test-isnanl.h (zero): New variable.
53285         (main): Avoid literal -0.0L.
53286         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53287         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53288         -0.0, -0.0L.
53289         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53290         (test_signbitd): Avoid literal -0.0.
53291         (test_signbitl): Avoid literal -0.0L.
53292         * tests/test-ceilf1.c (zero): New variable.
53293         (main): Avoid literal -0.0f.
53294         * tests/test-ceill.c (zero): New variable.
53295         (main): Avoid literal -0.0L.
53296         * tests/test-floorf1.c (zero): New variable.
53297         (main): Avoid literal -0.0f.
53298         * tests/test-floorl.c (zero): New variable.
53299         (main): Avoid literal -0.0L.
53300         * tests/test-roundf1.c (zero): New variable.
53301         (main): Avoid literal -0.0f.
53302         * tests/test-round1.c (zero): New variable.
53303         (main): Avoid literal -0.0.
53304         * tests/test-roundl.c (zero): New variable.
53305         (main): Avoid literal -0.0L.
53306         * tests/test-truncf1.c (zero): New variable.
53307         (main): Avoid literal -0.0f.
53308         * tests/test-trunc1.c (zero): New variable.
53309         (main): Avoid literal -0.0.
53310         * tests/test-truncl.c (zero): New variable.
53311         (main): Avoid literal -0.0L.
53312         * tests/test-frexp.c (zero): New variable.
53313         (main): Avoid literal -0.0.
53314         * tests/test-frexpl.c (zero): New variable.
53315         (main): Avoid literal -0.0L.
53316         * tests/test-ldexpl.c (zero): New variable.
53317         (main): Avoid literal -0.0L.
53318         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53319         (zerod, zerol): New variables.
53320         (test_function): Avoid literals -0.0, -0.0L.
53321         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53322         (zerod, zerol): New variables.
53323         (test_function): Avoid literals -0.0, -0.0L.
53324         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53325         (zerod, zerol): New variables.
53326         (test_function): Avoid literals -0.0, -0.0L.
53327         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53328         (zerod, zerol): New variables.
53329         (test_function): Avoid literals -0.0, -0.0L.
53330         * tests/test-strtod.c (zero): New variable.
53331         (main): Avoid literal -0.0.
53332         Reported by Jonathan C. Patschke <jp@centtech.com>.
53333
53334 2008-07-31  Jim Meyering  <meyering@redhat.com>
53335
53336         sha256.h: correct definition of SHA224_DIGEST_SIZE
53337         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53338         Reported by Paulie Pena IV <paulie4@gmail.com>.
53339         Define as 224 / 8, rather than as a literal.
53340         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53341         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53342         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53343
53344 2008-07-31  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53347         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53348         Reported by Jonathan Patschke <jp@centtech.com>.
53349
53350 2008-07-31  Bruno Haible  <bruno@clisp.org>
53351
53352         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53353         Reported by Paolo Bonzini <bonzini@gnu.org>.
53354
53355 2008-07-30  Eric Blake  <ebb9@byu.net>
53356
53357         test-strtod: allow compilation without -lm
53358         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53359         Reported by Dennis Clarke <blastwave@gmail.com>.
53360
53361 2008-07-28  Jim Meyering  <meyering@redhat.com>
53362
53363         bootstrap: work also when there are no .po files in po/
53364         * build-aux/bootstrap (update_po_files): Complete the change
53365         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53366
53367 2008-07-27  Jim Meyering  <meyering@redhat.com>
53368
53369         * users.txt: Add zile.
53370
53371 2008-07-26  Ben Pfaff  <blp@gnu.org>
53372
53373         Add missing dependencies on new m4/exponent[fdl].m4 files.
53374         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53375         * modules/isnand-nolibm: Add m4/exponentd.m4.
53376         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53377         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53378         m4/isnan[fdl].m4, because the macros actually used moved.
53379         Reported by Jim Meyering.
53380
53381 2008-07-14  Ben Pfaff  <blp@gnu.org>
53382
53383         Add isinf module.
53384         * lib/isinf.c: New file.
53385         * lib/math.in.h: Define isinf macro if we have decided to replace
53386         it.
53387         * m4/isinf.m4: New file.
53388         * m4/math_h.m4: Initialize and substitute variables for isinf
53389         module.
53390         * modules/isinf: New file.
53391         * modules/isinf-tests: New file.
53392         * modules/math: Add substitutions for new module.
53393         * tests/test-isinf.c: New file.
53394         * doc/posix-functions/isinf.texi: Mention new module.
53395         * MODULES.html.sh: Mention new module.
53396
53397 2008-07-14  Ben Pfaff  <blp@gnu.org>
53398
53399         Factor out some macros for use by additional modules.
53400         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53401         exponentf.m4.
53402         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53403         exponentd.m4.
53404         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53405         file exponentl.m4.
53406         * m4/exponentf.m4: New file.
53407         * m4/exponentd.m4: New file.
53408         * m4/exponentl.m4: New file.
53409         * modules/isnanf: Use new file m4/exponentf.m4.
53410         * modules/isnand: Use new file m4/exponentd.m4.
53411         * modules/isnanl: Use new file m4/exponentl.m4.
53412
53413 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53414
53415         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53416         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53417         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53418         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53419
53420         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53421         readlink on platforms without PATH_MAX.
53422
53423 2008-07-21  Eric Blake  <ebb9@byu.net>
53424
53425         Warn, not fail, on stale version.
53426         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53427
53428         Don't allow installation with stale devel version number.
53429         * top/GNUmakefile (_is-install-target): New macro.
53430         (_curr-ver): Forbid installation with stale version number.
53431
53432 2008-07-20  Bruno Haible  <bruno@clisp.org>
53433
53434         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53435         TESTS_ENVIRONMENT.
53436         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53437
53438 2008-07-20  Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/c-stack.h (c_stack_action): Add documentation.
53441         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53442
53443 2008-07-20  Bruno Haible  <bruno@clisp.org>
53444
53445         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53446         * modules/readlink (License): Likewise.
53447
53448 2008-07-17  Eric Blake  <ebb9@byu.net>
53449
53450         * modules/c-stack (Link): Fix typo.
53451
53452         Make c-stack use libsigsegv, when available.
53453         * modules/c-stack (Depends-on): Add libsigsegv.
53454         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53455         needed.
53456         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53457         (segv_handler, overflow_handler, c_stack_action)
53458         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53459         implementation when libsigsegv is available, but only when using
53460         the library is necessary.
53461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53462         comment, explaining why XSI check fails on Linux.
53463         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53464         * tests/test-c-stack2.sh: Tweak skip message.
53465         * NEWS: Document new link-time requirements.
53466
53467 2008-07-16  Eric Blake  <ebb9@byu.net>
53468
53469         c-stack: Expose false positives when not using libsigsegv.
53470         * modules/c-stack-tests (Files): Expand test.
53471         * tests/test-c-stack.c (main): Add means to conditionally trigger
53472         non-overflow SIGSEGV.
53473         * tests/test-c-stack2.sh: New file.
53474
53475 2008-07-14  Bruno Haible  <bruno@clisp.org>
53476
53477         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53478         Reported by Eric Blake.
53479
53480 2008-07-14  Sam Steingold  <sds@gnu.org>
53481             Bruno Haible  <bruno@clisp.org>
53482
53483         New module libsigsegv.
53484         * modules/libsigsegv: New file.
53485         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53486         modifications.
53487         * MODULES.html.sh (Signal handling): New section.
53488
53489 2008-07-14  Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/unictype/ctype-* (Description): Add the word "function".
53492         Improves the resulting doc in MODULES.html.
53493
53494 2008-07-12  Ben Pfaff  <blp@gnu.org>
53495
53496         Add longlong module.
53497         * modules/longlong: New file.
53498
53499 2008-07-12  Bruno Haible  <bruno@clisp.org>
53500
53501         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53502         to empty.
53503
53504 2008-07-10  Ben Pfaff  <blp@gnu.org>
53505
53506         Add isnan module.
53507         * doc/posix-functions/isnan.texi: Mention new module.
53508         * lib/math.in.h: Define isnan macro if we have decided to replace
53509         it.
53510         * m4/isnan.m4: New file.
53511         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53512         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53513         also.
53514         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53515         redundancy.
53516         * m4/math_h.m4: Initialize and substitute variables for isnan
53517         module.
53518         * modules/isnan: New file.
53519         * modules/isnan-tests: New file.
53520         * modules/math: Add substitutions for new module.
53521         * tests/test-isnan.c: New file.
53522         * MODULES.html.sh: Mention new module.
53523
53524 2008-07-10  Ben Pfaff  <blp@gnu.org>
53525
53526         Add isnanf module.
53527         * lib/isnanf.m4: New file.
53528         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53529         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53530         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53531         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53532         * modules/isnanf: New file.
53533         * modules/isnanf-tests: New file.
53534         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53535         files.
53536         * tests/test-isnanf-nolibm.c: factored most of its contents into
53537         new file tests/test-isnanf.h.
53538         * tests/test-isnanf.h: New file.
53539         * tests/test-isnanf.c: New file.
53540         * MODULES.html.sh: Mention new module.
53541         * doc/glibc-functions/isnanf.texi: Mention new module.
53542
53543 2008-07-10  Ben Pfaff  <blp@gnu.org>
53544
53545         Add isnand module.
53546         * lib/isnand.h: New file.
53547         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53548         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53549         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53550         functionality also.
53551         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53552         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53553         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53554         * modules/isnand: New file.
53555         * modules/isnand-tests: New file.
53556         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53557         files.
53558         * tests/test-isnand-nolibm.c: factored most of its contents into
53559         new file tests/test-isnand.h.
53560         * tests/test-isnand.h: New file.
53561         * tests/test-isnand.c: New file.
53562         * MODULES.html.sh: Mention new module.
53563
53564 2008-07-10  Ben Pfaff  <blp@gnu.org>
53565
53566         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53567         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53568         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53569         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53570         * modules/isnanf-nolibm: Update references to renamed files.
53571         * modules/isnand-nolibm: Likewise.
53572         * modules/isnanf-nolibm-tests: Likewise.
53573         * modules/isnand-nolibm-tests: Likewise.
53574         * lib/frexp.c: Likewise.
53575         * lib/isfinite.c: Likewise.
53576         * lib/signbitd.c: Likewise.
53577         * lib/signbitf.c: Likewise.
53578         * lib/vasnprintf.c: Likewise.
53579         * tests/test-ceilf1.c: Likewise.
53580         * tests/test-ceilf2.c: Likewise.
53581         * tests/test-floorf1.c: Likewise.
53582         * tests/test-floorf2.c: Likewise.
53583         * tests/test-frexp.c: Likewise.
53584         * tests/test-round1.c: Likewise.
53585         * tests/test-round2.c: Likewise.
53586         * tests/test-roundf1.c: Likewise.
53587         * tests/test-strtod.c: Likewise.
53588         * tests/test-trunc1.c: Likewise.
53589         * tests/test-trunc2.c: Likewise.
53590         * tests/test-truncf1.c: Likewise.
53591         * tests/test-truncf2.c: Likewise.
53592         * NEWS: Mention the renamed header files.
53593
53594 2008-07-11  Jim Meyering  <meyering@redhat.com>
53595
53596         vc-list-files: make the last-resort awk code more portable
53597         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53598         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53599         does not support it.
53600
53601 2008-07-10  Eric Blake  <ebb9@byu.net>
53602
53603         Work with tar's bootstrap.
53604         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53605         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53606         an m4 comment.
53607
53608 2008-07-09  Jim Meyering  <meyering@redhat.com>
53609
53610         posix-shell.m4: fix typo that made this test malfunction
53611         * m4/posix-shell.m4: Remove capitalization in variable name.
53612
53613 2008-07-08  Bruno Haible  <bruno@clisp.org>
53614
53615         * m4/onceonly.m4: Update comments.
53616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53617
53618 2008-07-04  Jim Meyering  <meyering@redhat.com>
53619
53620         * users.txt: Add vc-dwim.
53621         (bison, coreutils): Use the gitweb URL.
53622
53623 2008-07-03  Jim Meyering  <meyering@redhat.com>
53624
53625         * users.txt: Add libffcall.  From Sam Steingold.
53626
53627 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53628
53629         getdate.y: do not ignore TZ with relative day, month or year offset
53630         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53631         relative-date-handling, since otherwise, the latter would clobber the
53632         sole output (an updated Start value) of the tz-handling block.
53633         * tests/test-getdate.c: Tests for the fix
53634
53635 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53636
53637         Recognize 'foo_LIBRARIES += libgnu.a'.
53638         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53639         makefile snippet has already specified an installation location,
53640         also using '+='.
53641
53642 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53643
53644         getdate.y: factor out common actions
53645         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53646         Use them in place of open-coded actions.
53647
53648 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53649
53650         Add self-test for getdate module.
53651         * modules/getdate-tests: New file.
53652         * tests/test-getdate.c: New file.
53653
53654 2008-06-29  Bruno Haible  <bruno@clisp.org>
53655
53656         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53657         .gitignore.
53658         Reported by Sylvain Beucler <beuc@beuc.net>.
53659
53660 2008-06-29  Bruno Haible  <bruno@clisp.org>
53661
53662         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53663         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53664
53665 2008-06-29  Bruno Haible  <bruno@clisp.org>
53666
53667         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53668         EXTRA_DIST.
53669         Reported by Sylvain Beucler <beuc@beuc.net>.
53670
53671 2008-06-26  Jim Meyering  <meyering@redhat.com>
53672
53673         make several modules depend on the "open" module
53674         This provides slightly increased consistency when opening-for-write
53675         the name of a non-directory spelled with a trailing slash.
53676         * modules/chdir-safer: Likewise.
53677         * modules/chown: Likewise.
53678         * modules/clean-temp: Likewise.
53679         * modules/copy-file: Likewise.
53680         * modules/fchdir: Likewise.
53681         * modules/fcntl-safer: Likewise.
53682         * modules/pipe: Likewise.
53683         * modules/utime: Likewise.
53684         Prompted by Eric Blake and Bruno Haible.
53685
53686 2008-06-24  Andreas Schwab  <schwab@suse.de>
53687
53688         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53689         literals can be used as initializers for global variables.
53690
53691 2008-06-23  Eric Blake  <ebb9@byu.net>
53692
53693         Make gnulib-cache.m4 easier to diff.
53694         * gnulib-tool (func_import): Allow newlines when reading cached
53695         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53696
53697 2008-06-23  Bruno Haible  <bruno@clisp.org>
53698
53699         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53700         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53701         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53702         m4/signalblocking.m4.
53703         (gl_PREREQ_SIGACTION): Don't invoke it.
53704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53705         gl_PREREQ_SIG_HANDLER_H.
53706         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53707         Don't check for sigaction here.
53708
53709 2008-06-23  Bruno Haible  <bruno@clisp.org>
53710
53711         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53712         (install_handlers): Don't set the SA_RESETHAND flag.
53713
53714 2008-06-23  Bruno Haible  <bruno@clisp.org>
53715
53716         * m4/sigaction.m4: Comment fixes.
53717         * lib/signal.in.h: Likewise.
53718
53719 2008-06-23  Eric Blake  <ebb9@byu.net>
53720
53721         Fix typo.
53722         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53723
53724         Avoid SA_ namespace.
53725         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53726         Reported by Ralf Wildenhues.
53727
53728         Avoid test failure due to SA_RESTORER.
53729         * tests/test-sigaction.c (SA_MASK): New macro.
53730         (main): Avoid failing due to extension flags being set.
53731         Reported by Jim Meyering.
53732
53733         Revert use of sig-handler.h in sigprocmask.c.
53734         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53735         it requires the existence of struct sigaction.
53736         * lib/sigprocmask.c (handler_t): Restore typedef.
53737         (rpl_signal, old_handlers): Use local type.
53738
53739 2008-06-22  Bruno Haible  <bruno@clisp.org>
53740
53741         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53742         conditionally.
53743         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53744
53745 2008-06-22  Bruno Haible  <bruno@clisp.org>
53746
53747         * doc/posix-functions/siginterrupt.texi: Move note.
53748
53749         * lib/signal.in.h (SA_RESTART): New macro.
53750         * lib/sigaction.c: Update comment.
53751
53752         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53753
53754         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53755         (gl_PREREQ_SIGPROCMASK): Invoke it.
53756         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53757
53758         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53759
53760         * lib/sigprocmask.c: Update a comment.
53761
53762 2008-06-21  Eric Blake  <ebb9@byu.net>
53763
53764         Use sigaction module rather than signal().
53765         * modules/c-stack (Depends-on): Add sigaction.
53766         * modules/fatal-signal (Depends-on): Likewise.
53767         * modules/nanosleep (Depends-on): Likewise.
53768         * modules/sigprocmask (Files): Add sig-handler.h.
53769         * modules/sigaction (Files): Likewise.
53770         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53771         Eggert.
53772         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53773         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53774         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53775         (init_fatal_signals): Likewise.
53776         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53777         (siginterrupt): Delete fallback.
53778         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53779         instead.
53780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53781         siginterrupt.
53782
53783         New module sigaction, for mingw.
53784         * modules/sigaction: New module...
53785         * modules/sigaction-tests: ...and its test.
53786         * m4/sigaction.m4: New file.
53787         * lib/sigaction.c: Likewise.
53788         * tests/test-sigaction.c: Likewise.
53789         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53790         * modules/signal (Makefile.am): Likewise.
53791         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53792         needed.
53793         * doc/posix-headers/signal.texi (signal.h): Mention provided
53794         types.
53795         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53796         that sigaction is preferable.
53797         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53798         module.
53799         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53800         sigaction.
53801
53802         Improve robustness of sigprocmask by overriding signal.
53803         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53804         is in use.
53805         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53806         (SIGKILL, SIGSTOP): Provide fallbacks.
53807         (rpl_signal): Implement.
53808         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53809         signal can be called inside handlers.
53810
53811         Fix nanosleep module on mingw.
53812         * modules/nanosleep (Depends-on): Add sys_select.
53813         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53814
53815         Fix licensing of sigprocmask.
53816         * modules/raise (License): Relicense as LGPL.
53817
53818 2008-06-21  Bruno Haible  <bruno@clisp.org>
53819
53820         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53821         result if it contains question marks.
53822         Reported by Michael Geng <linux@michaelgeng.de>.
53823
53824 2008-06-19  Bruno Haible  <bruno@clisp.org>
53825
53826         Fix CVS-ism.
53827         * doc/gnulib.texi: Include updated-stamp.texi.
53828         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53829         (updated-stamp.texi): New rule.
53830         (gnulib.info): Depend on it.
53831         * doc/.gitignore: Add updated-stamp.texi.
53832         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53833
53834 2008-06-19  Bruno Haible  <bruno@clisp.org>
53835
53836         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53837         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53838
53839 2008-06-19  Eric Blake  <ebb9@byu.net>
53840
53841         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53842         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53843         Reported by Stepan Kasal.
53844
53845 2008-06-18  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53848         Reported by Eric Blake.
53849
53850 2008-06-18  Eric Blake  <ebb9@byu.net>
53851
53852         Work around cygwin 1.5.25 strsignal bug.
53853         * tests/test-strsignal.c: Allow for const char *.
53854         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53855
53856 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53857
53858         * users.txt: Update URL to article and add author/date
53859         information.
53860
53861 2008-06-17  Bruno Haible  <bruno@clisp.org>
53862
53863         New macro gl_DISABLE_THREADS.
53864         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53865         if the user did not pass --enable-threads or --disable-threads option.
53866         (gl_DISABLE_THREADS): New macro.
53867         Reported by Eric Blake <ebb9@byu.net>.
53868
53869 2008-06-17  Bruno Haible  <bruno@clisp.org>
53870
53871         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53872         when the macro ignores it.
53873         Based on a patch by Eric Blake <ebb9@byu.net>.
53874
53875 2008-06-17  Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/tls (License): Change to LGPLv2+.
53878         Reported by Eric Blake.
53879
53880 2008-06-17  Eric Blake  <ebb9@byu.net>
53881
53882         Simplify c-stack prerequisites.
53883         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53885         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53886         check.
53887         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53888         <sys/resource.h>.
53889
53890         Move c-stack test into testsuite.
53891         * modules/c-stack-tests: New file.
53892         * lib/c-stack.c [DEBUG]: Move test program...
53893         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53894         fail test if sigaltstack is lacking.
53895         * tests/test-c-stack.sh: New driver file.
53896
53897 2008-06-16  Eric Blake  <ebb9@byu.net>
53898
53899         Use raise module consistently.
53900         * modules/fatal-signal (Depends-on): Add raise.
53901         * modules/sigprocmask (Depends-on): Likewise.
53902         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53903         * lib/sigprocmask.c (sigprocmask): Likewise.
53904         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53906
53907         Fix compliance bug in sigpending.
53908         * lib/sigprocmask.c (sigpending): Return pending array via
53909         parameter, not return value.
53910
53911 2008-06-14  Eric Blake  <ebb9@byu.net>
53912
53913         Improve obstack-printf test code.
53914         * tests/test-obstack-printf.c (test_function): Fix comment, and
53915         simplify usage of obstack_* in macros.  Add a test for coverage.
53916         Reported by Bruno Haible.
53917
53918 2008-06-14  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53921         array size as a constant, not as a const variable.
53922         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53923         AC_USE_SYSTEM_EXTENSIONS.
53924         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53925         Test whether the obstack_printf function actually exists.
53926         * modules/obstack-printf (Depends-on): Add extensions.
53927         (Include): Remove obstack.h.
53928         * modules/obstack-printf-posix (Depends-on): Add extensions.
53929         (Include): Remove obstack.h.
53930
53931 2008-06-13  Eric Blake  <ebb9@byu.net>
53932
53933         Add obstack-printf and obstack-printf-posix modules.
53934         * modules/obstack-printf: New file.
53935         * modules/obstack-printf-posix: Likewise.
53936         * MODULES.html.sh (Misc): Mention them.
53937         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53938         Likewise.
53939         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53940         Likewise.
53941         * modules/stdio (Makefile.am): Accomodate new modules.
53942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53943         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53944         Declare.
53945         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53946         functions.
53947         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53948         (gl_REPLACE_OBSTACK_PRINTF): New macros
53949         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53950         * tests/test-obstack-printf.c: New file.
53951         * modules/obstack-printf-tests: Likewise.
53952         * modules/obstack-printf-posix-tests: Likewise.
53953
53954 2008-06-11  Bruno Haible  <bruno@clisp.org>
53955
53956         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53957         * lib/open.c: Include errno.h.
53958         (open): Fail when attempting to write to a file that has a trailing
53959         slash.
53960         * tests/test-open.c (main): Test against trailing slash bug.
53961         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53962
53963 2008-06-10  Bruno Haible  <bruno@clisp.org>
53964
53965         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53966         for $? to work inside the trap command, with various /bin/sh-s.
53967         * tests/test-vc-list-files-cvs.sh: Likewise.
53968
53969 2008-06-10  Bruno Haible  <bruno@clisp.org>
53970
53971         * lib/acl-internal.h: Don't include gettext.h here.
53972         * lib/set-mode-acl.c: Include gettext.h here.
53973         * lib/copy-acl.c: Likewise.
53974
53975 2008-06-10  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53978         * lib/wait-process.c (wait_subprocess): Likewise.
53979         * lib/execute.h (execute): Add termsigp argument.
53980         * lib/execute.c (execute): Likewise.
53981         * lib/csharpcomp.c (compile_csharp_using_pnet,
53982         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53983         * lib/csharpexec.c (execute_csharp_using_pnet,
53984         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53985         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53986         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53987         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53988         is_jikes_present): Update.
53989         * lib/javaexec.c (execute_java_class): Update.
53990         * lib/javaversion.c (execute_and_read_line): Update.
53991         * NEWS: Document the changes.
53992         Reported by Eric Blake.
53993
53994 2008-06-10  Eric Blake  <ebb9@byu.net>
53995
53996         Add missing include.
53997         * tests/test-strstr.c (includes): Add <signal.h>.
53998         * tests/test-strcasestr.c (includes): Likewise.
53999         * tests/test-memmem.c (includes): Likewise.
54000
54001 2008-06-10  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/wait-process.c (wait_subprocess): Add an assertion.
54004
54005 2008-06-10  Bruno Haible  <bruno@clisp.org>
54006
54007         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54008
54009 2008-06-10  Bruno Haible  <bruno@clisp.org>
54010
54011         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54012         using alarm().
54013         * tests/test-strcasestr.c (main): Likewise.
54014         * tests/test-strstr.c (main): Likewise.
54015
54016 2008-06-09  Bruno Haible  <bruno@clisp.org>
54017
54018         Work around the Solaris 10 ACE ACLs ABI change.
54019         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54020         declare if ACL_NO_TRIVIAL is present.
54021         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54022         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54023         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54024         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54025         define if ACL_NO_TRIVIAL is present.
54026         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54027         and use the current ABI.
54028         (file_has_acl): Use same #if condition as elsewhere.
54029         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54030         in use, and use the current ABI.
54031         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54032         Reported by Jim Meyering.
54033
54034 2008-06-09  Eric Blake  <ebb9@byu.net>
54035
54036         Work around environments that (stupidly) ignore SIGALRM.
54037         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54038         before using alarm().
54039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54041         Reported by Ian Beckwith <ianb@erislabs.net>.
54042
54043         Produce autobuild blurb earlier in log.
54044         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54045
54046 2008-06-09  Jim Meyering  <meyering@redhat.com>
54047         and OndÅ™ej Vašík  <ovasik@redhat.com>
54048
54049         utimens.c: correct kernel bug work-around
54050         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54051         failure, not success, and the kernel bug we're trying to work
54052         around affects not just the utimensat call, but also the fallback
54053         futimens call.
54054         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54055         not success.
54056         [HAVE_FUTIMENS]: Use the same work-around, here.
54057
54058 2008-06-09  Jim Meyering  <meyering@redhat.com>
54059
54060         add more guards around definition of ACE_-related code
54061         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54062         ALLOW and ACE_OWNER are also defined.
54063
54064 2008-06-08  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/acl-internal.h: Add me as co-author.
54067         * lib/file-has-acl.c: Likewise.
54068         * lib/set-mode-acl.c: Likewise.
54069         * lib/copy-acl.c: Likewise.
54070
54071 2008-06-08  Bruno Haible  <bruno@clisp.org>
54072
54073         Add support for AIX ACLs.
54074         * lib/acl-internal.h (acl_nontrivial): New declaration.
54075         * lib/file-has-acl.c (acl_nontrivial): New function.
54076         (file_has_acl): Add implementation using AIX 4 ACL API.
54077         * lib/set-mode-acl.c (qset_acl): Likewise.
54078         * lib/copy-acl.c (qcopy_acl): Likewise.
54079
54080 2008-06-08  Bruno Haible  <bruno@clisp.org>
54081
54082         Add support for HP-UX ACLs.
54083         * lib/acl-internal.h (acl_nontrivial): New declaration.
54084         * lib/file-has-acl.c (acl_nontrivial): New function.
54085         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54086         * lib/set-mode-acl.c (qset_acl): Likewise.
54087         * lib/copy-acl.c (qcopy_acl): Likewise.
54088
54089 2008-06-08  Bruno Haible  <bruno@clisp.org>
54090
54091         Add support for Cygwin ACLs.
54092         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54093         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54094         the chmod_or_fchmod call.
54095         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54096
54097 2008-06-08  Bruno Haible  <bruno@clisp.org>
54098
54099         Fix bug with setuid modes in Solaris 10+ code.
54100         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54101         succeeded, when the mode contains some special bits.
54102
54103 2008-06-08  Bruno Haible  <bruno@clisp.org>
54104
54105         Add support for Solaris 7..10 ACLs.
54106         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54107         declarations.
54108         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54109         functions.
54110         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54111         * lib/set-mode-acl.c (qset_acl): Likewise.
54112         * lib/copy-acl.c (qcopy_acl): Likewise.
54113
54114 2008-06-08  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54117         declaration.
54118         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54119         (acl_access_nontrivial): Remove MacOS X case.
54120         (file_has_acl): Use acl_extended_nontrivial.
54121         * lib/copy-acl.c (qcopy_acl): Likewise.
54122
54123 2008-06-08  Bruno Haible  <bruno@clisp.org>
54124
54125         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54126
54127 2008-06-08  Jim Meyering  <meyering@redhat.com>
54128
54129         * modules/acl (Maintainer): Add Bruno Haible.
54130
54131 2008-06-07  Bruno Haible  <bruno@clisp.org>
54132
54133         Improve support for Tru64 ACLs.
54134         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54135         ACL on OSF/1.
54136
54137 2008-06-07  Bruno Haible  <bruno@clisp.org>
54138
54139         Add support for MacOS X ACLs.
54140         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54141         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54142         * lib/set-mode-acl.c (qset_acl): Likewise.
54143         * lib/copy-acl.c (qcopy_acl): Likewise.
54144
54145 2008-06-07  Bruno Haible  <bruno@clisp.org>
54146
54147         Fix memory leak introduced on 2008-05-22.
54148         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54149         use.
54150
54151 2008-06-07  Bruno Haible  <bruno@clisp.org>
54152
54153         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54154         to construct an empty ACL.
54155
54156 2008-06-07  Bruno Haible  <bruno@clisp.org>
54157
54158         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54159         precisely.
54160         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54161
54162 2008-06-07  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54165         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54166
54167 2008-06-07  Bruno Haible  <bruno@clisp.org>
54168
54169         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54170         regardless of POSIX.
54171         * doc/posix-functions/_longjmp.texi: Likewise.
54172         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54173         SystemV platform in this case.
54174
54175 2008-06-06  Eric Blake  <ebb9@byu.net>
54176
54177         Document abort() bugs.
54178         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54179
54180         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54181         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54182         sigsetjmp.
54183         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54184         siglongjmp, but only as a macro.
54185         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54186         is obsolete.
54187         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54188
54189         Tweak documentation to cover cygwin argz bugs.
54190         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54191         argz bug fix; no code change needed since no cygwin releases
54192         occurred between the last fix and the bug being tested.
54193         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54194         module and recently fixed cygwin bugs.
54195         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54196         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54197         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54198         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54199         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54200         Likewise.
54201         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54202         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54203         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54204         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54205         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54206         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54207         Likewise.
54208
54209         Avoid gcc warning on cygwin.
54210         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54211         !ACL_NO_TRIVIAL]: Avoid unused variable.
54212
54213 2008-06-05  Eric Blake  <ebb9@byu.net>
54214
54215         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54216         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54217         git-version-gen fails to come up with a version.
54218         Reported by Simon Josefsson.
54219
54220 2008-06-05  Jim Meyering  <meyering@redhat.com>
54221             Paul Eggert  <eggert@cs.ucla.edu>
54222
54223         utimens.c: work around a probable Linux kernel bug
54224         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54225         appears to be a kernel bug that causes utimensat to return 280
54226         instead of 0, indicating success.
54227
54228 2008-06-04  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54231         2008-06-01 commit.
54232
54233 2008-06-04  Bruno Haible  <bruno@clisp.org>
54234
54235         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54236         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54237         (file_has_acl): Use it. Save errno afterwards.
54238         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54239
54240 2008-06-03  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54243         draft code. Simplify #ifs.
54244         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54245         Put Solaris code after POSIX-draft code. Fix comments regarding
54246         Solaris 10, HP-UX. Mention Cygwin.
54247         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54248
54249 2008-06-03  Eric Blake  <ebb9@byu.net>
54250
54251         Provide fallback for older kernels.
54252         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54253         Provide runtime fallback if kernel lacks support.
54254         Reported by Mike Frysinger.
54255
54256 2008-06-02  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54259         it exists.
54260
54261 2008-06-02  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54264         * lib/copy-acl.c (qcopy_acl): Update comment.
54265
54266 2008-06-02  Bruno Haible  <bruno@clisp.org>
54267
54268         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54269         like ACL APIs.
54270
54271 2008-06-02  Bruno Haible  <bruno@clisp.org>
54272
54273         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54274         * tests/test-set-mode-acl.sh: Likewise.
54275         * tests/test-copy-acl.sh: Likewise.
54276         * tests/test-copy-file.sh: Likewise.
54277
54278 2008-06-02  Bruno Haible  <bruno@clisp.org>
54279
54280         * tests/test-file-has-acl.sh: Remove unused code.
54281
54282 2008-06-01  Bruno Haible  <bruno@clisp.org>
54283
54284         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54285         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54286         messages.
54287         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54288
54289 2008-06-01  Bruno Haible  <bruno@clisp.org>
54290
54291         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54292         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54293         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54294         APIs.
54295         * modules/acl-tests (configure.ac): Remove tests now contained in
54296         m4/acl.m4.
54297
54298 2008-06-02  Jim Meyering  <meyering@redhat.com>
54299
54300         announce-gen: use a better key-server host name
54301         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54302         it may be more consistently reliable.  Suggested by Werner Koch
54303         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54304
54305 2008-06-01  Bruno Haible  <bruno@clisp.org>
54306
54307         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54308         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54309
54310 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54311
54312         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54313
54314 2008-06-01  Bruno Haible  <bruno@clisp.org>
54315
54316         New ACL tests.
54317         * tests/test-file-has-acl.sh: New file.
54318         * tests/test-file-has-acl.c: New file.
54319         * tests/test-set-mode-acl.sh: New file.
54320         * tests/test-set-mode-acl.c: New file.
54321         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54322         * tests/test-copy-acl.c: New file.
54323         * modules/acl-tests: New file, based on modules/copy-file-tests.
54324         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54325         (Depends-on): Add acl-tests.
54326         (configure.ac): Remove checks.
54327         (Makefile.am): Don't create test-sameacls program here any more.
54328
54329 2008-06-01  Bruno Haible  <bruno@clisp.org>
54330
54331         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54332         * tests/test-sameacls.c: Include progname.h.
54333         (main): Invoke set_program_name. Portability fixes for MacOS X,
54334         Solaris, HP-UX.
54335
54336 2008-06-01  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54339         function.
54340         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54341
54342 2008-06-01  Bruno Haible  <bruno@clisp.org>
54343
54344         * modules/rpmatch (Depends-on): Add strdup.
54345
54346 2008-06-01  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/pipe.c: Include unistd-safer.h.
54349         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54350         * modules/pipe (Depends-on): Add unistd-safer.
54351
54352 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54353
54354         * modules/autobuild (configure.ac): Call AB_INIT.
54355
54356 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54357
54358         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54359         Suggested by Bruno Haible <bruno@clisp.org>.
54360
54361 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54362
54363         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54364         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54365         <bruno@clisp.org>.
54366
54367 2008-05-29  Eric Blake  <ebb9@byu.net>
54368
54369         Prefer new POSIX 200x interfaces over futimesat.
54370         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54371         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54372         when available.
54373         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54374
54375 2008-05-28  Bruno Haible  <bruno@clisp.org>
54376
54377         * modules/stpcpy (License): Change to LGPLv2+.
54378         Requested by David Lutterkort <dlutter@redhat.com>.
54379
54380 2008-05-27  Bruno Haible  <bruno@clisp.org>
54381
54382         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54383         current mingw.
54384         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54385
54386 2008-05-27  Bruno Haible  <bruno@clisp.org>
54387
54388         * modules/iconv_open (Link): New section, from module 'iconv'.
54389         * modules/striconv (Link): Likewise.
54390         * modules/striconveh (Link): Likewise.
54391         * modules/xstriconv (Link): Likewise.
54392         * modules/unicodeio (Link): Likewise.
54393         * modules/propername (Link): Likewise.
54394         Reported by Jim Meyering.
54395
54396 2008-05-26  Jim Meyering  <meyering@redhat.com>
54397
54398         sha256: do not artificially restrict buffer length to be < 2^32
54399         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54400         uint32_t to size_t.
54401         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54402         to match.
54403
54404         avoid unaligned access errors, e.g., on sparc
54405         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54406         direct access through a possibly-unaligned uint64* pointer.
54407         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54408         direct access through a possibly-unaligned uint32* pointer.
54409         Prompted by this patch from Tom "spot" Callaway:
54410         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54411
54412         sha512.c: fix typo in comment
54413         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54414
54415 2008-05-25  Bruno Haible  <bruno@clisp.org>
54416
54417         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54418         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54419         (Makefile.am): Update lib_SOURCES.
54420
54421 2008-05-25  Bruno Haible  <bruno@clisp.org>
54422
54423         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54424
54425 2008-05-25  Jim Meyering  <meyering@redhat.com>
54426
54427         useless-if-before-free: freed expr may have white-space differences
54428         * build-aux/useless-if-before-free: Recognize cases in which the
54429         freed expression differs from the tested one in embedded white
54430         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54431         $1 was used, so we can't make any regexp shy.  Improved tests now
54432         detect this.
54433
54434         useless-if-before-free: accept white space in the expression.
54435         * build-aux/useless-if-before-free: For now, any white space
54436         in the expression must be identical in the free argument.
54437
54438         useless-if-before-free: efficiency tweak
54439         * build-aux/useless-if-before-free: Make the expression-matching
54440         regexp "shy".
54441         Make the *outer* regexp shy, not the expr-matching one.
54442
54443         update code-in-comment to accept cast of free arg
54444         * build-aux/useless-if-before-free: Update regexp.
54445
54446 2008-05-25  Bruno Haible  <bruno@clisp.org>
54447
54448         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54449         * modules/copy-file-tests (Files, Makefile.am): Update.
54450         * tests/test-copy-file.c (func_test_copy): Update.
54451
54452 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54453
54454         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54455
54456 2008-05-23  Bruno Haible  <bruno@clisp.org>
54457
54458         Improve support for ACLs on OSF/1.
54459         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54460         Remove fallback for unknown flavors of ACLs.
54461
54462 2008-05-22  Bruno Haible  <bruno@clisp.org>
54463
54464         Add support for ACLs on OSF/1.
54465         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54466         replacements.
54467         (acl_free_text): New macro fallback.
54468         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54469         acl_free.
54470         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54471         acl_free_text function. Require AC_C_INLINE.
54472
54473 2008-05-22  Bruno Haible  <bruno@clisp.org>
54474
54475         Make copy_acl work on MacOS X 10.5.
54476         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54477         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54478         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54479         If MODE_INSIDE_ACL, don't assume that every system has the same text
54480         representation for ACLs as FreeBSD.
54481         * lib/copy-acl.c (copy_acl): Add support for platforms with
54482         !MODE_INSIDE_ACL.
54483         * lib/file-has-acl.c (file_has_acl): Likewise.
54484         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54485         FreeBSD, MacOS X, or IRIX, respectively.
54486
54487 2008-05-22  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/acl.h: Don't include <sys/acl.h>.
54490         (GETACLCNT): Move fallback to lib/acl-internal.h.
54491         * lib/acl-internal.h: Include <sys/acl.h> here.
54492         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54493
54494 2008-05-22  Bruno Haible  <bruno@clisp.org>
54495
54496         Split off copy_acl function to separate file.
54497         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54498         * lib/acl.c (copy_acl): Moved function to separate file.
54499         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54500         * modules/acl (Files): Add lib/copy-acl.c.
54501         (Makefiles.am): Augment lib_SOURCES.
54502
54503 2008-05-22  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/copy-file-tests: New file.
54506         * tests/test-copy-file.sh: New file.
54507         * tests/test-copy-file.c: New file.
54508         * tests/test-copy-file-sameacls.c: New file.
54509
54510 2008-05-22  Eric Blake  <ebb9@byu.net>
54511
54512         Avoid gcc warning.
54513         * tests/test-memcmp.c (main): Pass NULL indirectly.
54514
54515 2008-05-21  Bruno Haible  <bruno@clisp.org>
54516
54517         Add reference doc about ACLs.
54518         * doc/acl-resources.txt: New file.
54519         * doc/acl-cygwin.txt: New file.
54520
54521 2008-05-21  Bruno Haible  <bruno@clisp.org>
54522
54523         Avoid one more warning from gcc.
54524         * lib/vasnprintf.c (IF_LINT): Update comments.
54525         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54526
54527 2008-05-21  Jim Meyering  <meyering@redhat.com>
54528
54529         avoid a warning from gcc
54530         * lib/vasnprintf.c (IF_LINT): Define.
54531         (scale10_round_decimal_long_double):
54532         Use it to avoid a "may be used uninitialized" warning.
54533         (scale10_round_decimal_double): Likewise.
54534
54535 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54536
54537         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54538         declared.
54539
54540 2008-05-20  Bruno Haible  <bruno@clisp.org>
54541
54542         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54543         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54544
54545 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54546
54547         * modules/memcmp-tests: New file.
54548         * tests/test-memcmp.c: New file.
54549
54550 2008-05-19  Bruno Haible  <bruno@clisp.org>
54551
54552         * modules/propername (Notice, configure.ac): Put quoted "..." into
54553         --keyword option.
54554         * lib/propername.h: Update comments accordingly.
54555         Reported by Eric Blake.
54556
54557 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54558
54559         * modules/getpass-gnu (Depends-on): Add fseeko.
54560
54561 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54562
54563         * modules/base64-tests: New file.
54564
54565 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54566
54567         * lib/base64.c (base64_decode_ctx): If a decode context structure
54568         was passed in use it to ignore newlines.  If a context structure
54569         was _not_ passed in, continue to treat newlines as garbage (this
54570         is the historical behavior).  Formerly base64_decode.
54571         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54572         takes a decode context structure.
54573         * lib/base64.h (base64_decode): Macro for four-argument calls.
54574         (base64_decode_alloc): Likewise.
54575         * lib/base64.c (base64_decode_ctx): If a decode context structure
54576         was passed in use it to ignore newlines.  If a context structure
54577         was _not_ passed in, continue to treat newlines as garbage (this
54578         is the historical behavior).  Formerly base64_decode.
54579         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54580         takes a decode context structure.
54581         * lib/base64.h (base64_decode): Macro for four-argument calls.
54582         (base64_decode_alloc): Likewise.
54583
54584 2008-05-19  Jim Meyering  <meyering@redhat.com>
54585
54586         avoid a warning from gcc
54587         * lib/trim.c (IF_LINT): Define.
54588         (trim2): Use it to avoid a "may be used uninitialized" warning.
54589
54590         Fix doc typo.
54591         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54592
54593 2008-05-19  Bruno Haible  <bruno@clisp.org>
54594
54595         * doc/glibc-functions/getpass.texi: Document limits of other
54596         implementations.
54597
54598 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54599             Bruno Haible <bruno@clisp.org>
54600
54601         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54602
54603 2008-05-18  Bruno Haible  <bruno@clisp.org>
54604
54605         * modules/propername: New file, from GNU gettext.
54606         * lib/propername.h: New file, from GNU gettext.
54607         * lib/propername.c: New file, from GNU gettext.
54608         * MODULES.html.sh (Internationalization functions): Add propername.
54609
54610 2008-05-16  Jim Meyering  <meyering@redhat.com>
54611             Bruno Haible  <bruno@clisp.org>
54612
54613         Avoid some warnings from "gcc -Wshadow".
54614         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54615
54616 2008-05-15  Eric Blake  <ebb9@byu.net>
54617
54618         Extend previous patch to cygwin 1.7.0.
54619         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54620         fast implementation in cygwin >= 1.7.0.
54621         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54623
54624 2008-05-15  Bruno Haible  <bruno@clisp.org>
54625
54626         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54627         implementation in glibc >= 2.9.
54628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54630
54631 2008-05-15  Bruno Haible  <bruno@clisp.org>
54632
54633         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54634         (Unicode string functions): Add unilbrk/*.
54635         Reported by Karl Berry.
54636
54637 2008-05-15  Eric Blake  <ebb9@byu.net>
54638
54639         Fix violation of <stdbool.h> replacement in regex.
54640         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54641         * lib/regexec.c (re_search_internal): Likewise.
54642         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54643
54644 2008-05-15  Jim Meyering  <meyering@redhat.com>
54645
54646         avoid distracting test output when git or cvs is not found
54647         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54648         * tests/test-vc-list-files-git.sh: Likewise.
54649
54650 2008-05-15  Eric Blake  <ebb9@byu.net>
54651
54652         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54653         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54654         glibc version.
54655         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54656         * doc/posix-functions/strstr.texi (strstr): Likewise.
54657         * lib/str-two-way.h (MAX): Sychronize with glibc.
54658
54659 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54660
54661         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54662         opr.ctx_type.
54663         (calc_first): Initialize constraint field.
54664         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54665         Fix grammar.
54666         (duplicate_node): Merge constraint field for all node types.
54667         (calc_eclosure_iter): Look at constraint field for all node types.
54668         * lib/regex_internal.c (create_cd_newstate): Don't look at
54669         opr.ctx_type.
54670
54671 2008-05-14  Bruno Haible  <bruno@clisp.org>
54672
54673         Help GCC to do better code generation.
54674         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54675         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54676         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54677         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54678         Declare with attribute 'malloc' if supported.
54679
54680 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54681
54682         use "echo STR|wc -c" rather than unportable "expr length STR"
54683         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54684         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54685
54686 2008-05-14  Jim Meyering  <meyering@redhat.com>
54687
54688         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54689         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54690         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54691         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54692         via Collin Lasse.
54693
54694 2008-05-14  Eric Blake  <ebb9@byu.net>
54695
54696         Avoid quadratic growth in gl_LIBSOURCES.
54697         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54698         Suggested by Bruno Haible.
54699
54700         Test xmemdup0.
54701         * modules/xmemdup0-tests: New file.
54702         * tests/test-xmemdup0.c: Likewise.
54703
54704 2008-05-13  Eric Blake  <ebb9@byu.net>
54705
54706         Split xmemdup0 into its own module.
54707         * modules/xmemdup0: New file.
54708         * lib/xmemdup0.h: Likewise.
54709         * lib/xmemdup0.c: Likewise.
54710         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54711         * lib/xalloc.h (xmemdup0): Remove.
54712         * lib/xmalloc.c (xmemdup0): Likewise.
54713
54714 2008-05-13  Eric Blake  <ebb9@byu.net>
54715             Bruno Haible  <bruno@clisp.org>
54716
54717         Reduce number of forks required during autoconf.
54718         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54719         and gl_LIBSOURCES_DIR.
54720         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54721         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54722         m4_syscmd per file.
54723         <m4_foreach_w>: Move...
54724         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54725
54726 2008-05-13  Eric Blake  <ebb9@byu.net>
54727
54728         * gnulib-tool: Fix various comment typos.
54729
54730 2008-05-12  Bruno Haible  <bruno@clisp.org>
54731
54732         Tailor the linebreaking algorithm.
54733         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54734
54735 2008-05-12  Bruno Haible  <bruno@clisp.org>
54736
54737         Update to Unicode 5.0.0.
54738         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54739         LBP_JV, LBP_JT. Redistribute values.
54740         (unilbrk_table): Change size.
54741         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54742         Unicode TR#14 rev. 22.
54743         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54744         LBP_JV, LBP_JT. Redistribute values.
54745         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54746         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54747         Update.
54748         * lib/unilbrk/lbrkprop1.h: Regenerated.
54749         * lib/unilbrk/lbrkprop2.h: Regenerated.
54750         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54751         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54752         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54753         Likewise.
54754         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54755         Likewise.
54756         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54757         result.
54758         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54759         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54760         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54761         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54762         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54763         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54764
54765 2008-05-11  Bruno Haible  <bruno@clisp.org>
54766
54767         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54768
54769 2008-05-11  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54772         * modules/unilbrk/gen-lbrk: New file.
54773
54774 2008-05-11  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54777         * m4/sha512.m4 (gl_SHA512): Likewise.
54778
54779 2008-05-11  Jim Meyering  <meyering@redhat.com>
54780
54781         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54782         * modules/crypto/sha256: New file.
54783         * modules/crypto/sha512: Likewise.
54784         * lib/sha256.c: Likewise.
54785         * lib/sha256.h: Likewise.
54786         * lib/sha512.c: Likewise.
54787         * lib/sha512.h: Likewise.
54788         * lib/u64.h: Likewise.
54789         * m4/sha256.m4: Likewise.
54790         * m4/sha512.m4: Likewise.
54791         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54792
54793 2008-05-10  Bruno Haible  <bruno@clisp.org>
54794
54795         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54796         (Input/Output <stdio.h>): Add xprintf.
54797         (Signal handling <signal.h>): Add strsignal.
54798         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54799         (Core language properties): Add func.
54800         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54801         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54802         strings.
54803         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54804         (Input/output): New section.
54805         (File system functions): Add openat-die, stat-macros.
54806         (Networking functions): Add sockets.
54807         (Unicode string functions): Add unictype/*.
54808         (Support for building libraries and executables): Add gperf.
54809         (Support for building documentation): Add agpl-3.0.
54810         (Misc): Add nocrash.
54811
54812 2008-05-10  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/unictype/gen-ctype: New file.
54815
54816 2008-05-10  Jim Meyering  <meyering@redhat.com>
54817
54818         Make chdir-safer.c more efficient on a system with no symlinks.
54819         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54820         also if ELOOP is zero.  Suggested by Bruno Haible.
54821
54822         Make chdir-safer.c slightly safer.
54823         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54824         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54825
54826         Avoid compile failure on systems without ELOOP (like mingw).
54827         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54828         Reported by Bruno Haible.
54829
54830 2008-05-10  Bruno Haible  <bruno@clisp.org>
54831
54832         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54833         (is_utf8_encoding): Use a case-insensitive comparison.
54834         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54835         streq.
54836
54837 2008-05-10  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54840         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54841         * lib/unilbrk/ulc-common.h (iconv_string_length,
54842         iconv_string_keeping_offsets): Remove declarations.
54843         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54844         Don't include <iconv.h>, streq.h, xsize.h.
54845         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54846         conversion.
54847         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54848         <iconv.h>, streq.h, xsize.h.
54849         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54850         conversion.
54851         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54852         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54853         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54854         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54855
54856 2008-05-10  Bruno Haible  <bruno@clisp.org>
54857
54858         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54859         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54860
54861         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54862         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54863
54864         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54865         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54866
54867         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54868         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54869
54870         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54871         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54872
54873         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54874         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54875
54876         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54877         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54878
54879         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54880         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54881
54882 2008-05-10  Bruno Haible  <bruno@clisp.org>
54883
54884         Split up 'linebreak' module.
54885         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54886         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54887         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54888         modifications.
54889         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54890         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54891         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54892         lib/linebreak.c.
54893         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54894         lib/linebreak.c.
54895         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54896         lib/linebreak.c.
54897         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54898         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54899         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54900         lib/linebreak.c.
54901         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54902         lib/linebreak.c.
54903         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54904         lib/linebreak.c.
54905         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54906         lib/linebreak.c.
54907         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54908         lib/linebreak.c.
54909         * modules/unilbrk/base: New file.
54910         * modules/unilbrk/tables: New file.
54911         * modules/unilbrk/u8-possible-linebreaks: New file.
54912         * modules/unilbrk/u16-possible-linebreaks: New file.
54913         * modules/unilbrk/u32-possible-linebreaks: New file.
54914         * modules/unilbrk/ulc-common: New file.
54915         * modules/unilbrk/ulc-possible-linebreaks: New file.
54916         * modules/unilbrk/u8-width-linebreaks: New file.
54917         * modules/unilbrk/u16-width-linebreaks: New file.
54918         * modules/unilbrk/u32-width-linebreaks: New file.
54919         * modules/unilbrk/ulc-width-linebreaks: New file.
54920         * lib/linebreak.h: Remove file.
54921         * lib/linebreak.c: Remove file.
54922         * m4/linebreak.m4: Remove file.
54923         * modules/linebreak: Remove file.
54924         * NEWS: Mention the changes.
54925
54926 2008-05-09  Eric Blake  <ebb9@byu.net>
54927
54928         Add xmemdup0.
54929         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54930         implementation.
54931         * lib/xmalloc.c (xmemdup0): New C implementation.
54932
54933 2008-05-08  Bruno Haible  <bruno@clisp.org>
54934
54935         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54936
54937 2008-05-07  Eric Blake  <ebb9@byu.net>
54938
54939         Support cross-compilation of <wctype.h>.
54940         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54941         AC_CACHE_CHECK.
54942
54943 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54944
54945         * build-aux/vc-list-files: Add support for bzr.
54946
54947 2008-05-03  Jim Meyering  <meyering@redhat.com>
54948
54949         avoid failed assertion with tight malloc
54950         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54951
54952 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54953
54954         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54955         are needed from arpa/inet.h.
54956         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54957         Reported by Bruno Haible.
54958
54959 2008-05-02  Jim Meyering  <meyering@redhat.com>
54960
54961         avoid compilation error on FreeBSD 6
54962         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54963
54964 2008-05-01  Jim Meyering  <meyering@redhat.com>
54965
54966         useless-if-before-free: correct --help's exit status description
54967         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54968         for one or more matches, etc.  Reported by Bruno Haible.
54969
54970         vc-list-files: make the stand-alone gnulib test work
54971         * modules/vc-list-files-tests (configure.ac):
54972         Define and AC_SUBST abs_aux_dir.
54973         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54974         $(abs_top_srcdir) to each script and having each of them
54975         duplicate the work of setting PATH, set PATH here, using
54976         the new variable, abs_aux_dir instead.
54977         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54978         * tests/test-vc-list-files-git.sh: Likewise.
54979         Reported by Bruno Haible.
54980
54981 2008-05-01  Bruno Haible  <bruno@clisp.org>
54982
54983         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54984         reallocation. Rename 'done' to 'found_delimiter'.
54985
54986 2008-05-01  Jim Meyering  <meyering@redhat.com>
54987
54988         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54989         * build-aux/vc-list-files: Use `...`, not $(...).
54990
54991 2008-04-30  Jim Meyering  <meyering@redhat.com>
54992
54993         add tests for vc-list-files
54994         * modules/vc-list-files-tests: New module.
54995         * tests/test-vc-list-files-cvs.sh: New file.
54996         * tests/test-vc-list-files-git.sh: New file.
54997
54998         avoid a warning from gcc
54999         * lib/getndelim2.c (IF_LINT): Define.
55000         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55001
55002         vc-list-files: work properly with build-aux/cvsu, too
55003         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55004         to all cvs-based clauses.
55005
55006         vc-list-files: work properly in the CVS+awk case, too
55007         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55008
55009         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55010         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55011         take more than one file argument, so .  Add quotes, just in case $dir
55012         ever contains a shell meta-character.  Prompted by Soren Hansen in
55013         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55014
55015 2008-04-29  Eric Blake  <ebb9@byu.net>
55016
55017         Optimize getndelim2 to use block operations when possible.
55018         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55019         freadseek, and memchr2.
55020         * lib/getndelim2.c (getndelim2): Use them for block reads.
55021
55022 2008-04-29  Bruno Haible  <bruno@clisp.org>
55023
55024         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55025         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55026         * modules/inet_ntop (Depends-on): Add extensions.
55027         * modules/inet_pton (Depends-on): Likewise.
55028         Reported by Simon Josefsson.
55029
55030 2008-04-29  Jim Meyering  <meyering@redhat.com>
55031
55032         When the is more than one match in a block, match all of them.
55033         * build-aux/useless-if-before-free: Iterate through each block
55034         until there are no more matches.
55035
55036         Fix broken useless-if-before-free script.
55037         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55038         the expression to match cast of argument to free-like function.
55039
55040 2008-04-29  Eric Blake  <ebb9@byu.net>
55041
55042         Use new header.
55043         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55044
55045 2008-04-29  Jim Meyering  <meyering@redhat.com>
55046
55047         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55048         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55049         by gnulib to exist and to declare e.g., inet_ntop.
55050         Don't include "inet_ntop.h", now removed.
55051
55052         * m4/arpa_inet_h.m4: Remove trailing blanks.
55053
55054 2008-04-29  Eric Blake  <ebb9@byu.net>
55055
55056         Silence valgrind on safe reads beyond potential array bounds.
55057         * lib/rawmemchr.valgrind: New file.
55058         * lib/strchrnul.valgrind: Likewise.
55059         * modules/rawmemchr (Files): Distribute new file.
55060         * modules/strchrnul (Files): Likewise.
55061         Suggested by Bruno Haible.
55062
55063 2008-04-29  Bruno Haible  <bruno@clisp.org>
55064
55065         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55066         (inet_ntop, inet_pton): Change portability warning's wording.
55067         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55068         Invoke gl_CHECK_NEXT_HEADERS.
55069         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55070         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55071         set ARPA_INET_H.
55072         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55073         * modules/arpa_inet (Description): No longer only for systems that
55074         lack it.
55075         (Depends-on): Add include_next.
55076         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55077         HAVE_ARPA_INET_H.
55078
55079 2008-04-29  Jim Meyering  <meyering@redhat.com>
55080
55081         * modules/mkdir (License): Re-license as LGPLv2+.
55082
55083 2008-04-29  Bruno Haible  <bruno@clisp.org>
55084
55085         * modules/rawmemchr (Maintainer): Set to Eric.
55086         * modules/strchrnul (Maintainer): Likewise.
55087
55088 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55089
55090         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55091         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55092
55093         * modules/arpa_inet (arpa/inet.h): Use them.
55094
55095 2008-04-28  Eric Blake  <ebb9@byu.net>
55096
55097         Test getndelim2.
55098         * modules/getndelim2-tests: New file.
55099         * tests/test-getndelim2.c: Likewise.
55100         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55101         stream.
55102         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55103
55104         * MODULES.html.sh: Document new module.
55105
55106 2008-04-20  Bruno Haible  <bruno@clisp.org>
55107
55108         * lib/c-stack.c (die): Use raise.
55109         * modules/c-stack (Depends-on): Add raise.
55110
55111 2008-04-28  Bruno Haible  <bruno@clisp.org>
55112
55113         Expect rpmatch to be declared.
55114         * lib/yesno.c (rpmatch): Remove declaration.
55115
55116         Declare rpmatch.
55117         * lib/stdlib.in.h (rpmatch): New declaration.
55118         * lib/rpmatch.c: Include <stdlib.h> first.
55119         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55120         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55122         HAVE_RPMATCH.
55123         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55124         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55125         (Include): Set to <stdlib.h>.
55126         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55127         HAVE_RPMATCH.
55128         * NEWS: Document the change.
55129
55130 2008-04-28  Bruno Haible  <bruno@clisp.org>
55131
55132         Change rpmatch to use nl_langinfo when appropriate.
55133         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55134         (N_): New macro.
55135         (localized_pattern): New function/macro.
55136         (try): Remove match, nomatch arguments. Copy the pattern into safe
55137         memory before caching it.
55138         (rpmatch): Use localized_pattern. Add translator comments.
55139         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55140         Suggested by Eric Blake.
55141         * modules/rpmatch (Depends-on): Add stdbool.
55142
55143 2008-04-28  Eric Blake  <ebb9@byu.net>
55144
55145         Add rawmemchr module, matching glibc.
55146         * modules/string (Makefile.am): New indicator.
55147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55148         * lib/string.in.h (rawmemchr): Declare when appropriate.
55149         * modules/rawmemchr: New file.
55150         * m4/rawmemchr.m4: Likewise.
55151         * lib/rawmemchr.c: Likewise.
55152         * modules/rawmemchr-tests: Likewise.
55153         * tests/test-rawmemchr.c: Likewise.
55154         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55155         module.
55156         * modules/strchrnul (Depends-on): Add rawmemchr.
55157         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55158
55159         Whitespace cleanup.
55160         * tests/test-strchrnul.c: Reindent.
55161         * lib/strchrnul.c: Likewise.
55162
55163         Optimize and test strchrnul.
55164         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55165         * modules/strchrnul-tests: New file.
55166         * tests/test-strchrnul.c: Likewise.
55167
55168         Remove intprops dependency.
55169         * modules/memchr (Depends-on): Remove intprops.
55170         * modules/memrchr (Depends-on): Likewise.
55171         * modules/memchr2 (Depends-on): Likewise.
55172         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55173         * lib/memrchr.c (__memrchr): Likewise.
55174         * lib/memrchr2.c (memchr2): Likewise.
55175         Reported by Simon Josefsson.
55176
55177 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55178
55179         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55180         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55181
55182 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55183
55184         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55185
55186         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55187
55188         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55189
55190         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55191         declarations.
55192         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55193
55194         * m4/inet_pton.m4: Don't check for header files.
55195
55196         * m4/inet_ntop.m4: Don't check for header files.
55197
55198 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55199
55200         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55201         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55202         trigger for cygwin).
55203         Reported by Bruno Haible  <bruno@clisp.org>.
55204
55205 2008-04-28  Bruno Haible  <bruno@clisp.org>
55206
55207         * doc/posix-functions/strdup.texi: Mention mingw problem.
55208
55209 2008-04-27  Bruno Haible  <bruno@clisp.org>
55210
55211         * modules/stat-time-tests (Depends-on): Add sleep.
55212         * tests/test-stat-time.c (force_unlink): New function.
55213         (cleanup): Use it.
55214         (test_mtime): Remove the ctime related tests.
55215         (test_ctime): New function, containing the ctime related tests.
55216         (main): Call test_ctime, except on native Windows platforms.
55217
55218 2008-04-27  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/rpmatch.c (rpmatch): Add some comments.
55221         Reported by James Youngman <jay@gnu.org>.
55222
55223 2008-04-27  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55226         quiet NaNs.
55227
55228 2008-04-27  Bruno Haible  <bruno@clisp.org>
55229
55230         Make test-yesno.sh work on mingw.
55231         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55232         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55233         (main): Set stdin to binary mode.
55234         * modules/yesno-tests (Depends-on): Add binary-io.
55235
55236 2008-04-27  Bruno Haible  <bruno@clisp.org>
55237
55238         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55239         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55240         argument that lie outside the IEEE 854 domain.
55241         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55242         (gl_ISFINITE): Use it.
55243         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55244
55245 2008-04-27  Bruno Haible  <bruno@clisp.org>
55246
55247         Allow local renaming in config.h.
55248         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55249
55250 2008-04-27  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/memchr.c (__memchr): Change type of 'i'.
55253         * lib/memchr2.c (memchr2): Likewise.
55254
55255 2008-04-26  Eric Blake  <ebb9@byu.net>
55256         and Bruno Haible  <bruno@clisp.org>
55257
55258         Optimize and test memrchr.
55259         * modules/memrchr (Depends-on): Add intprops.
55260         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55261         * modules/memrchr-tests: New file.
55262         * tests/test-memrchr.c: New file.
55263
55264 2008-04-26  Bruno Haible  <bruno@clisp.org>
55265
55266         Add tentative support for DragonFly BSD.
55267         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55268         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55269         fp.
55270         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55271         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55272         * lib/fpurge.c (fpurge): Likewise.
55273         * lib/freadable.c (freaadable): Likewise.
55274         * lib/freadahead.c (freadahead): Likewise.
55275         * lib/freading.c (freading): Likewise.
55276         * lib/freadptr.c (freadptr): Likewise.
55277         * lib/freadseek.c (freadptrinc): Likewise.
55278         * lib/fseeko.c (fseeko): Likewise.
55279         * lib/fseterr.c (fseterr): Likewise.
55280         * lib/fwritable.c (fwritable): Likewise.
55281         * lib/fwriting.c (fwriting): Likewise.
55282
55283 2008-04-26  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/stdio-impl.h: New file.
55286         * lib/fbufmode.c: Include stdio-impl.h.
55287         (fbufmode): Use fp_, remove redundant #defines.
55288         * lib/fflush.c: Include stdio-impl.h.
55289         (clear_ungetc_buffer): Remove redundant #defines.
55290         * lib/fpurge.c: Include stdio-impl.h.
55291         (fpurge): Remove redundant #defines.
55292         * lib/freadable.c: Include stdio-impl.h.
55293         (freadable): Remove redundant #defines.
55294         * lib/freadahead.c: Include stdio-impl.h.
55295         (freadahead): Remove redundant #defines.
55296         * lib/freading.c: Include stdio-impl.h.
55297         (freading): Remove redundant #defines.
55298         * lib/freadptr.c: Include stdio-impl.h.
55299         (freadptr): Remove redundant #defines.
55300         * lib/freadseek.c: Include stdio-impl.h.
55301         (freadptrinc): Remove redundant #defines.
55302         * lib/fseeko.c: Include stdio-impl.h.
55303         (rpl_fseeko): Remove redundant #defines.
55304         * lib/fseterr.c: Include stdio-impl.h.
55305         (fseterr): Remove redundant #defines.
55306         * lib/fwritable.c: Include stdio-impl.h.
55307         (fwritable: Remove redundant #defines.
55308         * lib/fwriting.c: Include stdio-impl.h.
55309         (fwriting): Remove redundant #defines.
55310         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55311         * modules/fflush (Files): Likewise.
55312         * modules/fpurge (Files): Likewise.
55313         * modules/freadable (Files): Likewise.
55314         * modules/freadahead (Files): Likewise.
55315         * modules/freading (Files): Likewise.
55316         * modules/freadptr (Files): Likewise.
55317         * modules/freadseek (Files): Likewise.
55318         * modules/fseeko (Files): Likewise.
55319         * modules/fseterr (Files): Likewise.
55320         * modules/fwritable (Files): Likewise.
55321         * modules/fwriting (Files): Likewise.
55322
55323 2008-04-26  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55326         restore_seek_optimization, update_fpos_cache): New functions, extracted
55327         from rpl_fflush.
55328         (rpl_fflush): Use them.
55329         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55330         (gl_REPLACE_FFLUSH): Use it.
55331
55332 2008-04-26  Bruno Haible  <bruno@clisp.org>
55333
55334         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55335         on Solaris.
55336         * tests/test-xstrtoimax.sh: Likewise.
55337         * tests/test-xstrtoumax.sh: Likewise.
55338         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55339
55340 2008-04-26  Bruno Haible  <bruno@clisp.org>
55341
55342         * modules/memchr-tests: New file.
55343         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55344
55345 2008-04-26  Eric Blake  <ebb9@byu.net>
55346             Bruno Haible  <bruno@clisp.org>
55347
55348         * lib/memchr.c: Include intprops.h.
55349         (__memchr): Optimize parallel detection of matching bytes. Rename local
55350         variables. Add explanatory comments.
55351
55352 2008-04-26  Bruno Haible  <bruno@clisp.org>
55353
55354         Fix module 'memchr', broken since 2000-10-28.
55355         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55356
55357 2008-04-26  Bruno Haible  <bruno@clisp.org>
55358
55359         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55360         comments.
55361
55362 2008-04-25  Eric Blake  <ebb9@byu.net>
55363
55364         Use native fstatat on cygwin 1.7.0.
55365         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55366         first.
55367
55368 2008-04-23  Eric Blake  <ebb9@byu.net>
55369
55370         Improve memchr2 performance.
55371         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55372         NUL bytes.
55373         * modules/memchr2 (Depends-on): Use intprops.h.
55374
55375 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55376
55377         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55378         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55379         <blp@cs.stanford.edu>.
55380
55381 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55382
55383         * lib/arpa_inet.in.h: New file.
55384
55385         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55386         (Makefile.am): Sed in substitute header file.
55387
55388         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55389         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55390
55391         * modules/inet_ntop (configure.ac): Use
55392         gl_ARPA_INET_MODULE_INDICATOR.
55393
55394         * modules/inet_pton (configure.ac): Use
55395         gl_ARPA_INET_MODULE_INDICATOR.
55396
55397 2008-04-22  Jim Meyering  <meyering@redhat.com>
55398
55399         * modules/verify (License): Re-license as LGPLv2+.
55400
55401 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55402
55403         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55404         parameter to void* as per POSIX standard (MinGW uses char*).
55405
55406 2008-04-21  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55409         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55410         Define to replacements if REPLACE_ISWCNTRL is 1.
55411         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55412         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55413         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55414         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55415         what it fixes.
55416         * doc/posix-functions/iswalpha.texi: Likewise.
55417         * doc/posix-functions/iswblank.texi: Likewise.
55418         * doc/posix-functions/iswcntrl.texi: Likewise.
55419         * doc/posix-functions/iswdigit.texi: Likewise.
55420         * doc/posix-functions/iswgraph.texi: Likewise.
55421         * doc/posix-functions/iswlower.texi: Likewise.
55422         * doc/posix-functions/iswprint.texi: Likewise.
55423         * doc/posix-functions/iswpunct.texi: Likewise.
55424         * doc/posix-functions/iswspace.texi: Likewise.
55425         * doc/posix-functions/iswupper.texi: Likewise.
55426         * doc/posix-functions/iswxdigit.texi: Likewise.
55427         Reported by Alain Guibert.
55428
55429 2008-04-21  Bruno Haible  <bruno@clisp.org>
55430
55431         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55432         Patch by Alain Guibert.
55433
55434 2008-04-21  Bruno Haible  <bruno@clisp.org>
55435
55436         Fix test failures on mingw.
55437         * tests/test-xstrtol.c (print_no_progname): New function.
55438         (main): Install it in error_print_progname hook.
55439         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55440         * tests/test-xstrtoimax.sh: Likewise.
55441         * tests/test-xstrtoumax.sh: Likewise.
55442
55443 2008-04-21  Bruno Haible  <bruno@clisp.org>
55444
55445         Fix test failure on mingw.
55446         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55447
55448 2008-04-21  Bruno Haible  <bruno@clisp.org>
55449
55450         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55451         Actually assign a value.
55452
55453 2008-04-20  Bruno Haible  <bruno@clisp.org>
55454
55455         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55456         take 2.
55457         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55458         'canonicalize-lgpl' module is also used.
55459         * lib/canonicalize-lgpl.c: Undo last change.
55460         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55461
55462 2008-04-20  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55465         config.h. Provide _mkdir based fallback for mingw.
55466         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55467         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55468         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55469         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55470         rather than defining mkdir in config.h.
55471         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55472         (gl_SYS_STAT_H_DEFAULTS): New macro.
55473         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55474         HAVE_IO_H any more.
55475         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55476         HAVE_DECL_MKDIR and HAVE_IO_H.
55477
55478 2008-04-20  Bruno Haible  <bruno@clisp.org>
55479
55480         * lib/isapipe.c: Port to native Windows platforms.
55481
55482 2008-04-20  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55485
55486 2008-04-21  Eric Blake  <ebb9@byu.net>
55487
55488         Work around preprocessors that don't handle UINTMAX_MAX.
55489         * lib/memchr2.c (memchr2): Avoid embedded #if.
55490         Reported by Alain Guibert, fix suggested by Bruno Haible.
55491
55492 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55493
55494         * doc/posix-functions/strftime.texi (strftime): Explain better
55495         Windows incompatibility.  Suggested by Micah Cowan
55496         <micah@cowan.name>.
55497
55498 2008-04-20  Bruno Haible  <bruno@clisp.org>
55499
55500         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55501         unistr/u8-mblen.
55502
55503 2008-04-20  Bruno Haible  <bruno@clisp.org>
55504
55505         Fix test failure on platforms with non-GNU iconv.
55506         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55507         (U_TO_U8): Use it, rather than u16_to_u8.
55508         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55509         units at the end of the input string.
55510         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55511
55512 2008-04-20  Bruno Haible  <bruno@clisp.org>
55513
55514         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55515         when the resulting length is 0.
55516         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55517
55518 2008-04-20  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55521         works.
55522         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55523
55524 2008-04-20  Bruno Haible  <bruno@clisp.org>
55525
55526         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55527         * modules/tsearch-tests (configure.ac): Test for initstate function.
55528
55529 2008-04-20  Bruno Haible  <bruno@clisp.org>
55530
55531         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55532         for nlink_t if missing.
55533         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55534
55535 2008-04-19  Bruno Haible  <bruno@clisp.org>
55536
55537         Work around snprintf bug on Linux libc5.
55538         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55540         gl_SNPRINTF_SIZE1.
55541         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55542         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55543         that test failed.
55544         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55545         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55546         * modules/snprintf (Files): Add m4/printf.m4.
55547         * modules/vsnprintf (Files): Likewise.
55548         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55549         * doc/posix-functions/vsnprintf.texi: Likewise.
55550
55551 2008-04-19  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55554         from 0.0058 to less than 10^-7.
55555
55556 2008-04-19  Bruno Haible  <bruno@clisp.org>
55557
55558         Fix rounding when a precision is given.
55559         * lib/vasnprintf.c (is_borderline): New function.
55560         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55561         9...9x.
55562         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55563         %e, %g.
55564         * tests/test-vasprintf-posix.c (test_function): Likewise.
55565         * tests/test-snprintf-posix.h (test_function): Likewise.
55566         * tests/test-sprintf-posix.h (test_function): Likewise.
55567         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55568         * tests/test-printf-posix.h (test_function): Likewise.
55569         * tests/test-printf-posix.output: Update.
55570         Reported by John Darrington <john@darrington.wattle.id.au> via
55571         Ben Pfaff <blp@cs.stanford.edu>.
55572
55573 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55574
55575         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55576         Suggested by Bruno Haible <bruno@clisp.org>.
55577
55578 2008-04-17  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55581         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55582         implementation.
55583         Patch by Bruce Merry <bmerry@gmail.com>.
55584
55585 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55586
55587         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55588         doesn't work under Windows.
55589
55590 2008-04-16  Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55593         New macros.
55594         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55595         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55596         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55597         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55598         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55599         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55600         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55601         macros.
55602         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55603         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55604         Northern Sotho, Uighur.
55605
55606 2008-04-16  Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55609         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55610         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55611         Reported by Daniel Bergström <daniel@octocode.com>.
55612
55613 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55614             Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55617         function.
55618         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55619         New functions, mostly extracted from gl_locale_name_default.
55620         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55621
55622 2008-04-16  Eric Blake  <ebb9@byu.net>
55623
55624         Adjust strtod detection to catch glibc 2.7 bug.
55625         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55626         Reported by John Gatewood Ham.
55627
55628 2008-04-16  Bruno Haible  <bruno@clisp.org>
55629
55630         Add tentative support for Linux libc5.
55631         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55632         * lib/fpurge.c (fpurge): Likewise.
55633         * lib/freadable.c (freadable): Likewise.
55634         * lib/freadahead.c (freadahead): Likewise.
55635         * lib/freading.c (freading): Likewise.
55636         * lib/freadptr.c (freadptr): Likewise.
55637         * lib/freadseek.c (freadptrinc): Likewise.
55638         * lib/fseeko.c (rpl_fseeko): Likewise.
55639         * lib/fseterr.c (fseterr): Likewise.
55640         * lib/fwritable.c (fwritable): Likewise.
55641         * lib/fwriting.c (fwriting): Likewise.
55642         Reported by Alain Guibert <alguibert+bts@free.fr>.
55643
55644 2008-04-15  Bruno Haible  <bruno@clisp.org>
55645
55646         * modules/mathl (configure.ac): Define module indicator.
55647
55648 2008-04-15  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/logl.c (logl): Remove unused variables.
55651
55652 2008-04-15  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55655         fails.
55656
55657 2008-04-15  Bruno Haible  <bruno@clisp.org>
55658
55659         * lib/trim.c (trim2): Fix argument of isspace() macro.
55660
55661 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55662
55663         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55664         to 0.
55665         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55666
55667 2008-04-14  Bruno Haible  <bruno@clisp.org>
55668
55669         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55670         AC_LANG_PROGRAM argument.
55671         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55672         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55674         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55675         * m4/math_h.m4 (gl_MATH_H): Likewise.
55676         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55677         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55678         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55679         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55680         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55681         * m4/regex.m4 (gl_REGEX): Likewise.
55682         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55683         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55687         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55690
55691 2008-04-14  Jim Meyering  <meyering@redhat.com>
55692
55693         test-strtod: fix typos: s/abs/fabs/
55694         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55695
55696 2008-04-13  Bruno Haible  <bruno@clisp.org>
55697
55698         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55699         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55700         module is also used and while not building the reloc-wrapper.
55701
55702 2008-04-13  Bruno Haible  <bruno@clisp.org>
55703
55704         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55705
55706 2008-04-13  Bruno Haible  <bruno@clisp.org>
55707
55708         Fix AIX compilation failure introduced on 2008-04-02.
55709         * tests/test-frexp.c (exp): Undefine before redefining.
55710         * tests/test-frexpl.c (exp): Likewise.
55711
55712 2008-04-13  Bruno Haible  <bruno@clisp.org>
55713
55714         Work around a HP-UX stdio bug.
55715         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55716         * tests/test-ftello.c (main): Likewise.
55717         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55718         * doc/posix-functions/ftello.texi: Likewise.
55719
55720 2008-04-13  Bruno Haible  <bruno@clisp.org>
55721
55722         Make test-signbit pass on HP-UX/hppa.
55723         * tests/test-signbit.c (minus_zerol): New variable.
55724         (test_signbitl): Use it.
55725
55726 2008-04-13  Bruno Haible  <bruno@clisp.org>
55727
55728         Make truncl work on OSF/1 4.0.
55729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55730         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55731         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55733         HAVE_DECL_TRUNCL.
55734         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55735         HAVE_DECL_TRUNCL.
55736         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55737
55738 2008-04-13  Bruno Haible  <bruno@clisp.org>
55739
55740         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55741
55742 2008-04-13  Bruno Haible  <bruno@clisp.org>
55743
55744         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55745         expression, so as to avoid HP-UX 11 cc compiler bug.
55746
55747 2008-04-13  Bruno Haible  <bruno@clisp.org>
55748
55749         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55750
55751 2008-04-13  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/git-merge-changelog.c: Remove empty declaration outside of
55754         functions.
55755
55756 2008-04-13  Bruno Haible  <bruno@clisp.org>
55757
55758         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55759
55760 2008-04-13  Bruno Haible  <bruno@clisp.org>
55761
55762         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55763         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55765         also if it exists but lacks definitions of the SHUT_* macros.
55766         * modules/sys_socket (Description): Update.
55767         Reported by Elbert Pol <e.pol@chello.nl>.
55768
55769 2008-04-13  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/localcharset.c (OS2): Don't redefine if already defined.
55772         Reported by Elbert Pol <e.pol@chello.nl>.
55773
55774 2008-04-13  Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/binary-io.h [__EMX__]: Include <io.h>.
55777         Reported by Elbert Pol <e.pol@chello.nl>.
55778
55779 2008-04-12  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/fpucw.h: Enable the definitions also for x86_64.
55782         Needed for NetBSD/x86_64.
55783         Reported by Thomas Klausner <tk@giga.or.at>.
55784
55785 2008-04-12  Bruno Haible  <bruno@clisp.org>
55786
55787         * tests/test-strtod.c: Include isnand.h.
55788         (main): Use isnand instead of isnan.
55789         Reported by Jim Meyering.
55790
55791 2008-04-12  Bruno Haible  <bruno@clisp.org>
55792
55793         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55794         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55795
55796 2008-04-12  Jim Meyering  <meyering@redhat.com>
55797
55798         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55799
55800 2008-04-12  Bruno Haible  <bruno@clisp.org>
55801
55802         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55803         Reported by Elbert Pol <e.pol@chello.nl>.
55804
55805 2008-04-12  Eric Blake  <ebb9@byu.net>
55806
55807         Work around Solaris 10 math.h bug.
55808         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55809         (gl_MATH_H_DEFAULTS): Set up default.
55810         * modules/math (Makefile.am): Replace new indicators.
55811         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55812         * tests/test-math.c (main): Test this.
55813         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55814         * doc/posix-headers/math.texi (math.h): Mention bug.
55815         Reported by Nelson H. F. Beebe and Jim Meyering.
55816
55817 2008-04-11  Bruno Haible  <bruno@clisp.org>
55818
55819         Adapt to future versions of Apple GCC.
55820         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55821         Reported by Peter O'Gorman <peter@pogma.com>.
55822
55823 2008-04-11  Bruno Haible  <bruno@clisp.org>
55824
55825         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55826
55827 2008-04-11  Bruno Haible  <bruno@clisp.org>
55828
55829         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55830
55831         * modules/getaddrinfo-tests (Makefile.am): Define
55832         test_getaddrinfo_LDADD.
55833
55834 2008-04-11  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55837         (init): Fix syntax error.
55838         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55839         is declared.
55840
55841 2008-04-11  Bruno Haible  <bruno@clisp.org>
55842
55843         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55844         * modules/glob (Depends-on): Add stdbool.
55845
55846 2008-04-11  Bruno Haible  <bruno@clisp.org>
55847
55848         * lib/trim.c: Include <string.h>.
55849
55850 2008-04-11  Eric Blake  <ebb9@byu.net>
55851
55852         Avoid compile failure on OS/2.
55853         * lib/regex_internal.h (internal_function): Disable optimization
55854         on OS/2 (__EMX__), where it caused compiler error.
55855         Reported by Elbert Pol.
55856
55857 2008-04-11  Bruno Haible  <bruno@clisp.org>
55858
55859         Flush the standard error stream before aborting. Needed on mingw.
55860         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55861         * tests/test-array_list.c (ASSERT): Likewise.
55862         * tests/test-array_oset.c (ASSERT): Likewise.
55863         * tests/test-avltree_list.c (ASSERT): Likewise.
55864         * tests/test-avltree_oset.c (ASSERT): Likewise.
55865         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55866         * tests/test-binary-io.c (ASSERT): Likewise.
55867         * tests/test-byteswap.c (ASSERT): Likewise.
55868         * tests/test-c-ctype.c (ASSERT): Likewise.
55869         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55870         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55871         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55872         * tests/test-c-strstr.c (ASSERT): Likewise.
55873         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55874         * tests/test-canonicalize.c (ASSERT): Likewise.
55875         * tests/test-carray_list.c (ASSERT): Likewise.
55876         * tests/test-ceilf1.c (ASSERT): Likewise.
55877         * tests/test-ceilf2.c (ASSERT): Likewise.
55878         * tests/test-ceill.c (ASSERT): Likewise.
55879         * tests/test-count-one-bits.c (ASSERT): Likewise.
55880         * tests/test-fbufmode.c (ASSERT): Likewise.
55881         * tests/test-fflush2.c (ASSERT): Likewise.
55882         * tests/test-floorf1.c (ASSERT): Likewise.
55883         * tests/test-floorf2.c (ASSERT): Likewise.
55884         * tests/test-floorl.c (ASSERT): Likewise.
55885         * tests/test-fopen.c (ASSERT): Likewise.
55886         * tests/test-fpending.c (ASSERT): Likewise.
55887         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55888         * tests/test-fpurge.c (ASSERT): Likewise.
55889         * tests/test-freadable.c (ASSERT): Likewise.
55890         * tests/test-freadahead.c (ASSERT): Likewise.
55891         * tests/test-freading.c (ASSERT): Likewise.
55892         * tests/test-freadptr.c (ASSERT): Likewise.
55893         * tests/test-freadptr2.c (ASSERT): Likewise.
55894         * tests/test-freadseek.c (ASSERT): Likewise.
55895         * tests/test-freopen.c (ASSERT): Likewise.
55896         * tests/test-frexp.c (ASSERT): Likewise.
55897         * tests/test-frexpl.c (ASSERT): Likewise.
55898         * tests/test-fseek.c (ASSERT): Likewise.
55899         * tests/test-fseeko.c (ASSERT): Likewise.
55900         * tests/test-fstrcmp.c (ASSERT): Likewise.
55901         * tests/test-ftell.c (ASSERT): Likewise.
55902         * tests/test-ftello.c (ASSERT): Likewise.
55903         * tests/test-func.c (ASSERT): Likewise.
55904         * tests/test-fwritable.c (ASSERT): Likewise.
55905         * tests/test-fwriting.c (ASSERT): Likewise.
55906         * tests/test-getdelim.c (ASSERT): Likewise.
55907         * tests/test-getline.c (ASSERT): Likewise.
55908         * tests/test-i-ring.c (ASSERT): Likewise.
55909         * tests/test-iconv-utf.c (ASSERT): Likewise.
55910         * tests/test-iconv.c (ASSERT): Likewise.
55911         * tests/test-isfinite.c (ASSERT): Likewise.
55912         * tests/test-isnand.c (ASSERT): Likewise.
55913         * tests/test-isnanf.c (ASSERT): Likewise.
55914         * tests/test-isnanl.h (ASSERT): Likewise.
55915         * tests/test-ldexpl.c (ASSERT): Likewise.
55916         * tests/test-linked_list.c (ASSERT): Likewise.
55917         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55918         * tests/test-localename.c (ASSERT): Likewise.
55919         * tests/test-lseek.c (ASSERT): Likewise.
55920         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55921         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55922         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55923         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55924         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55925         * tests/test-mbschr.c (ASSERT): Likewise.
55926         * tests/test-mbscspn.c (ASSERT): Likewise.
55927         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55928         * tests/test-mbspbrk.c (ASSERT): Likewise.
55929         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55930         * tests/test-mbsrchr.c (ASSERT): Likewise.
55931         * tests/test-mbsspn.c (ASSERT): Likewise.
55932         * tests/test-mbsstr1.c (ASSERT): Likewise.
55933         * tests/test-mbsstr2.c (ASSERT): Likewise.
55934         * tests/test-mbsstr3.c (ASSERT): Likewise.
55935         * tests/test-memchr2.c (ASSERT): Likewise.
55936         * tests/test-memmem.c (ASSERT): Likewise.
55937         * tests/test-open.c (ASSERT): Likewise.
55938         * tests/test-printf-frexp.c (ASSERT): Likewise.
55939         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55940         * tests/test-printf-posix.c (ASSERT): Likewise.
55941         * tests/test-quotearg.c (ASSERT): Likewise.
55942         * tests/test-rbtree_list.c (ASSERT): Likewise.
55943         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55944         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55945         * tests/test-round1.c (ASSERT): Likewise.
55946         * tests/test-roundf1.c (ASSERT): Likewise.
55947         * tests/test-roundl.c (ASSERT): Likewise.
55948         * tests/test-signbit.c (ASSERT): Likewise.
55949         * tests/test-sleep.c (ASSERT): Likewise.
55950         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55951         * tests/test-snprintf.c (ASSERT): Likewise.
55952         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55953         * tests/test-stat-time.c (ASSERT): Likewise.
55954         * tests/test-strcasestr.c (ASSERT): Likewise.
55955         * tests/test-strerror.c (ASSERT): Likewise.
55956         * tests/test-striconv.c (ASSERT): Likewise.
55957         * tests/test-striconveh.c (ASSERT): Likewise.
55958         * tests/test-striconveha.c (ASSERT): Likewise.
55959         * tests/test-strsignal.c (ASSERT): Likewise.
55960         * tests/test-strstr.c (ASSERT): Likewise.
55961         * tests/test-strtod.c (ASSERT): Likewise.
55962         * tests/test-trunc1.c (ASSERT): Likewise.
55963         * tests/test-trunc2.c (ASSERT): Likewise.
55964         * tests/test-truncf1.c (ASSERT): Likewise.
55965         * tests/test-truncf2.c (ASSERT): Likewise.
55966         * tests/test-truncl.c (ASSERT): Likewise.
55967         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55968         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55969         * tests/test-vasnprintf.c (ASSERT): Likewise.
55970         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55971         * tests/test-vasprintf.c (ASSERT): Likewise.
55972         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55973         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55974         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55975         * tests/test-vsnprintf.c (ASSERT): Likewise.
55976         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55977         * tests/test-wcwidth.c (ASSERT): Likewise.
55978         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55979         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55980         * tests/test-xvasprintf.c (ASSERT): Likewise.
55981         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55982         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55983         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55984         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55985         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55986         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55987         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55988         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55989         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55990         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55991         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55992         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55993         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55994         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55995         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55996         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55997         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55998         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55999         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56000         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56001         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56002         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56003         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56004         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56005         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56006         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56007         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56008         * tests/unictype/test-combining.c (ASSERT): Likewise.
56009         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56010         * tests/unictype/test-digit.c (ASSERT): Likewise.
56011         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56012         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56013         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56014         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56015         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56016         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56017         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56018         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56019         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56020         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56021         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56022         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56023         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56024         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56025         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56026         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56027         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56028         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56029         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56030         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56031         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56032         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56033         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56034         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56035         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56036         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56037         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56038         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56039         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56040         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56041         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56042         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56043         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56044         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56045         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56046         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56047         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56048         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56049         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56050         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56051         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56052         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56053         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56054         Reported by Eric Blake.
56055
56056 2008-04-11  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/wchar.in.h: Tweak comment.
56059
56060 2008-04-11  Bruno Haible  <bruno@clisp.org>
56061
56062         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56063         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56064         gl_COMMON.
56065         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56066
56067 2008-04-11  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56070
56071 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56072
56073         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56074         of attempting to use non-existing /dev/*random.  Based on patch
56075         from Adam Strzelecki <ono@java.pl> in
56076         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56077
56078 2008-04-08  Bruno Haible  <bruno@clisp.org>
56079
56080         Add tentative support for emx+gcc.
56081         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56082         * lib/fpurge.c (fpurge): Likewise.
56083         * lib/freadable.c (freadable): Likewise.
56084         * lib/freadahead.c (freadahead): Likewise.
56085         * lib/freading.c (freading): Likewise.
56086         * lib/freadptr.c (freadptr): Likewise.
56087         * lib/freadseek.c (freadptrinc): Likewise.
56088         * lib/fseeko.c (rpl_fseeko): Likewise.
56089         * lib/fseterr.c (fseterr): Likewise.
56090         * lib/fwritable.c (fwritable): Likewise.
56091         * lib/fwriting.c (fwriting): Likewise.
56092         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56093
56094 2008-04-09  Eric Blake  <ebb9@byu.net>
56095
56096         Avoid some autoconf warnings.
56097         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56098         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56099         * m4/afs.m4 (gl_AFS): Likewise.
56100         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56101         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56103         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56104         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56105         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56106         (AC_CHECK_DECLS_ONCE): Likewise.
56107         Rename file...
56108         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56109         gnulib-tool requires autoconf 2.59 or better.
56110         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56111
56112 2008-04-08  Eric Blake  <ebb9@byu.net>
56113
56114         Use 'git describe --match' if present (added in git 1.5.5).
56115         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56116         if possible.
56117
56118 2008-04-08  Bruno Haible  <bruno@clisp.org>
56119
56120         Add tentative support for OpenServer.
56121         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56122         _ptr, _cnt.
56123         * lib/fpurge.c (fpurge): Likewise.
56124         * lib/freadable.c (freadable): Likewise.
56125         * lib/freadahead.c (freadahead): Likewise.
56126         * lib/freading.c (freading): Likewise.
56127         * lib/freadptr.c (freadptr): Likewise.
56128         * lib/freadseek.c (freadptrinc): Likewise.
56129         * lib/fseeko.c (rpl_fseeko): Likewise.
56130         * lib/fseterr.c (fseterr): Likewise.
56131         * lib/fwritable.c (fwritable): Likewise.
56132         * lib/fwriting.c (fwriting): Likewise.
56133         Reported by Roger Cornelius <rac@tenzing.org> and
56134         Brian K. White <brian@aljex.com>.
56135
56136 2008-04-06  Jim Meyering  <meyering@redhat.com>
56137
56138         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56139
56140 2008-04-06  Bruno Haible  <bruno@clisp.org>
56141
56142         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56143         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56144         * tests/test-printf-posix.sh: Likewise.
56145         * tests/test-vfprintf-posix.sh: Likewise.
56146         * tests/test-vprintf-posix.sh: Likewise.
56147         * tests/test-xprintf-posix.sh: Likewise.
56148
56149 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56150
56151         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56152         hide error from 'ls', needed on OS/2.
56153         Report by Elbert Pol <elbert.pol@gmail.com>.
56154
56155 2008-04-04  Eric Blake  <ebb9@byu.net>
56156
56157         Make test-fseeko.c failures meaningful.
56158         * tests/test-fseeko.c: Print line number on failure.
56159         * tests/test-fseek.c: Likewise.
56160         Reported by Nelson H. F. Beebe.
56161
56162         Improve strtod bug detection check.
56163         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56164         required for Solaris 10.
56165         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56166
56167 2008-04-04  Bruno Haible  <bruno@clisp.org>
56168
56169         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56170         by m4/setenv.m4.
56171
56172 2008-04-03  Eric Blake  <ebb9@byu.net>
56173
56174         Ensure sane .version contents.
56175         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56176         version string.
56177         * build-aux/git-version-gen: Improve documentation.
56178
56179         Make GNU make output nicer.
56180         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56181         MAKECMDGOALS to enforce message for all command line targets.  Set
56182         srcdir for use in maint.mk.
56183
56184         Another maintainer tweak.
56185         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56186         a target that regenerates version.
56187
56188 2008-04-03  Jim Meyering  <meyering@redhat.com>
56189
56190         vc-list-files: don't cause coreutils "make po-check" failure
56191         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56192
56193 2008-04-03  Eric Blake  <ebb9@byu.net>
56194
56195         Allow VPATH usage of vc-list-files.
56196         * build-aux/vc-list-files (scriptversion): Add timestamp.
56197         (options): Add --help, --version, -C.
56198         (CVS): Support installed cvsu.
56199
56200 2008-04-02  Bruno Haible  <bruno@clisp.org>
56201
56202         Avoid some "statement with no effect" warnings from gcc.
56203         * tests/test-wctype.c (main): Explicitly ignore unused values.
56204         Reported by Jim Meyering.
56205
56206 2008-04-02  Jim Meyering  <meyering@redhat.com>
56207
56208         Avoid some warnings from "gcc -Wshadow".
56209         * tests/test-frexp.c (exp): Define to a different identifier.
56210         * tests/test-frexpl.c (exp): Likewise.
56211
56212 2008-04-03  Jim Meyering  <meyering@redhat.com>
56213
56214         bootstrap: remove dangling *.[ch] symlinks from lib
56215         * build-aux/bootstrap [dangling symlink removal]: Move find's
56216         -depth option to precede all others, to avoid a warning.
56217         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56218
56219 2008-04-02  Bruno Haible  <bruno@clisp.org>
56220
56221         Avoid some warnings from "gcc -Wshadow".
56222         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56223         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56224         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56225         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56226         Reported by Jim Meyering.
56227
56228 2008-04-01  Bruno Haible  <bruno@clisp.org>
56229
56230         Fix test to work on IRIX 6.5 with cc.
56231         * tests/test-math.c (numeric_equal): New function.
56232         (main): Use it.
56233
56234 2008-04-01  Bruno Haible  <bruno@clisp.org>
56235
56236         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56237
56238 2008-04-01  Bruno Haible  <bruno@clisp.org>
56239
56240         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56241         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56242         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56243         (Depends-on): Remove math.
56244
56245         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56246         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56247         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56248         (Depends-on): Remove math.
56249
56250         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56251         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56252         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56253         (Depends-on): Remove math.
56254         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56255         (Depends-on): Remove math.
56256
56257         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56258         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56259         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56260         (Depends-on): Remove math.
56261         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56262         (Depends-on): Remove math.
56263
56264         * tests/test-round1.c: Include nan.h.
56265         (main): Use NaNd instead of NAN.
56266         * modules/round-tests (Files): Add tests/nan.h.
56267
56268         * tests/test-trunc1.c: Include nan.h.
56269         (main): Use NaNd instead of NAN.
56270         * modules/trunc-tests (Files): Add tests/nan.h.
56271
56272         * tests/test-roundf1.c: Include nan.h.
56273         (main): Use NaNf instead of NAN.
56274         * modules/roundf-tests (Files): Add tests/nan.h.
56275
56276         * tests/test-truncf1.c: Include nan.h.
56277         (main): Use NaNf instead of NAN.
56278         * modules/truncf-tests (Files): Add tests/nan.h.
56279
56280         * tests/test-ceilf1.c: Include nan.h.
56281         (main): Use NaNf instead of NAN.
56282         * modules/ceilf-tests (Files): Add tests/nan.h.
56283
56284         * tests/test-floorf1.c: Include nan.h.
56285         (main): Use NaNf instead of NAN.
56286         * modules/floorf-tests (Files): Add tests/nan.h.
56287
56288         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56289         (main): Use NaNf instead of NAN.
56290         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56291
56292         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56293         (main): Use NaNd instead of NAN.
56294         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56295
56296         * tests/test-frexp.c: Include nan.h.
56297         (main): Use NaNd instead of NAN.
56298         * modules/frexp-tests (Files): Add tests/nan.h.
56299
56300         * lib/isnan.c: Don't include <math.h>.
56301         (FUNC): Don't use NAN macro.
56302         * modules/isnand-nolibm (Depends-on): Remove math.
56303         * modules/isnanf-nolibm (Depends-on): Remove math.
56304         * modules/isnanl (Depends-on): Remove math.
56305         * modules/isnanl-nolibm (Depends-on): Remove math.
56306
56307         * tests/nan.h: New file.
56308
56309 2008-04-01  Eric Blake  <ebb9@byu.net>
56310
56311         Fix typos.
56312         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56313         values to be the right type.
56314
56315         For now, cater to gnulib strtod inaccuracies.
56316         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56317         fractional results.  While not as nice from a QoI perspective, it
56318         is a quicker patch than correctly implementing decimal to binary
56319         rounding.
56320
56321 2008-03-31  Eric Blake  <ebb9@byu.net>
56322
56323         Guarantee a definition of NAN.
56324         * lib/math.in.h (NAN): Define if missing.
56325         * tests/test-math.c (main): Test it.
56326         * doc/posix-headers/math.texi (math.h): Document this.
56327         * lib/isnan.c (rpl_isnand): Use it.
56328         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56329         * tests/test-floorf1.c (NaN): Likewise.
56330         * tests/test-frexp.c (NaN): Likewise.
56331         * tests/test-isnand.c (NaN): Likewise.
56332         * tests/test-isnanf.c (NaN): Likewise.
56333         * tests/test-round1.c (NaN): Likewise.
56334         * tests/test-roundf1.c (NaN): Likewise.
56335         * tests/test-snprintf-posix.h (NaN): Likewise.
56336         * tests/test-sprintf-posix.h (NaN): Likewise.
56337         * tests/test-trunc1.c (NaN): Likewise.
56338         * tests/test-truncf1.c (NaN): Likewise.
56339         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56340         * tests/test-vasprintf-posix.c (NaN): Likewise.
56341         * modules/isnand-nolibm (Depends-on): Add math.
56342         * modules/isnanf-nolibm (Depends-on): Likewise.
56343         * modules/isnanl (Depends-on): Likewise.
56344         * modules/isnanl-nolibm (Depends-on): Likewise.
56345         * modules/snprintf-posix-tests (Depends-on): Likewise.
56346         * modules/sprintf-posix-tests (Depends-on): Likewise.
56347         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56348         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56349         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56350         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56351
56352 2008-03-31  Bruno Haible  <bruno@clisp.org>
56353
56354         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56355         * doc/posix-functions/strtod.texi: Likewise.
56356
56357 2008-03-31  Bruno Haible  <bruno@clisp.org>
56358
56359         * tests/test-strtod.c (main): Don't use C99 syntax.
56360
56361 2008-03-31  Bruno Haible  <bruno@clisp.org>
56362
56363         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56364         Reported by Eric Blake.
56365
56366 2008-03-31  Jim Meyering  <meyering@redhat.com>
56367
56368         Don't compare actual signbit return values.
56369         * tests/test-strtod.c (main): Rather, compare only their
56370         zero/non-zero nature.
56371
56372 2008-03-31  Eric Blake  <ebb9@byu.net>
56373
56374         More strtod documentation.
56375         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56376         failures as distinct bugs.
56377
56378 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56379
56380         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56381         Problem reported by Erik Benada in
56382         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56383
56384 2008-03-30  Bruno Haible  <bruno@clisp.org>
56385
56386         * tests/test-strtod.c: Add comments about which assertion fails on which
56387         platform.
56388         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56389
56390 2008-03-30  Eric Blake  <ebb9@byu.net>
56391
56392         Test signbit behavior on zeros.
56393         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56394         (test_signbitd, test_signbitl): Likewise.
56395
56396         More strtod touchups.
56397         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56398         sign of negative underflow, for now.  Use .5, not .1.
56399         * doc/posix-functions/strtod.texi (strtod): Mention these
56400         limitations.
56401         Reported by Jim Meyering.
56402
56403 2008-03-30  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56406         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56407
56408 2008-03-30  Bruno Haible  <bruno@clisp.org>
56409
56410         Avoid failure when attempting to return empty iconv results on some
56411         platforms.
56412         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56413         allocation, don't report ENOMEM when the resulting string is empty.
56414
56415 2008-03-30  Bruno Haible  <bruno@clisp.org>
56416
56417         Fix buffer overrun.
56418         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56419         Don't consider the width for tmp_length. Check count against tmp_length
56420         before doing the padding. Ensure enough allocation during padding.
56421
56422 2008-03-30  Eric Blake  <ebb9@byu.net>
56423
56424         strtod touchups.
56425         * lib/strtod.c (strtod): Avoid compiler warnings.
56426         Reported by Jim Meyering.
56427
56428 2008-03-30  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56431         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56432         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56433         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56434         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56435         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56436         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56437         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56438
56439         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56440         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56441         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56442         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56443         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56444         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56445         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56446         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56447
56448         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56449         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56450         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56451         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56452         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56453         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56454         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56455         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56456
56457         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56458         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56459
56460         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56461         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56462
56463         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56464         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56465
56466         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56468         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56469
56470         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56471         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56472         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56473
56474         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56475         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56476         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56477
56478         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56479         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56480         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56481
56482         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56483         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56484         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56485         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56486         (Depends-on): Add EOVERFLOW.
56487         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56488         (Depends-on): Add EOVERFLOW.
56489         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56490         (Depends-on): Add EOVERFLOW.
56491         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56492         (Depends-on): Add EOVERFLOW.
56493         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56494         (Depends-on): Add EOVERFLOW.
56495         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56496         (Depends-on): Add EOVERFLOW.
56497         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56498         (Depends-on): Add EOVERFLOW.
56499         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56500         (Depends-on): Add EOVERFLOW.
56501
56502         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56503         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56504         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56505
56506         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56508         * modules/snprintf (Depends-on): Add EOVERFLOW.
56509
56510         * lib/poll.c (EOVERFLOW): Remove fallback.
56511         * modules/poll (Depends-on): Add EOVERFLOW.
56512
56513         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56514         * modules/getugroups (Depends-on): Add EOVERFLOW.
56515
56516         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56517         * modules/getdelim (Depends-on): Add EOVERFLOW.
56518
56519         * lib/ftell.c (EOVERFLOW): Remove fallback.
56520         * modules/ftell (Depends-on): Add EOVERFLOW.
56521
56522         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56524         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56525
56526         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56527
56528         * modules/EOVERFLOW-tests: New file.
56529         * tests/test-EOVERFLOW.c: New file.
56530
56531         * modules/EOVERFLOW: New file.
56532         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56533
56534 2008-03-30  Bruno Haible  <bruno@clisp.org>
56535
56536         Fix bug introduced on 2007-06-10.
56537         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56538         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56539
56540 2008-03-30  Bruno Haible  <bruno@clisp.org>
56541
56542         Improve freadseek's efficiency after ungetc.
56543         * lib/freadseek.c: Include freadahead.h.
56544         (freadptrinc): New function, extracted from freadseek.
56545         (freadseek): Use it in a loop. Use freadahead to determine the number
56546         of loop iterations.
56547         * modules/freadseek (Depends-on): Add freadahead.
56548         (configure.ac): Require AC_C_INLINE.
56549
56550 2008-03-30  Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/freadseek.c (freadseek): Don't ignore the return value of
56553         freadptr.
56554
56555 2008-03-29  Eric Blake  <ebb9@byu.net>
56556
56557         Add hex float support.
56558         * modules/strtod (Depends-on): Add c-ctype.
56559         (Link): Mention POW_LIB.
56560         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56561         whitespace between 'e' and exponent.
56562         * tests/test-strtod.c (main): Enable hex float tests.
56563         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56564         now provides.
56565
56566         Document various strtod bugs, with some fixes.
56567         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56568         "-0x", "inf", "nan", and hex constants.
56569         * doc/posix-functions/atof.texi (atof): Likewise.
56570         * modules/stdlib (Makefile.am): Support strtod.
56571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56572         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56573         detect additional strtod bugs.
56574         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56575         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56576         bool where appropriate.  Parse 'inf' and 'nan'.
56577         * tests/test-strtod.c: New file.
56578         * modules/strtod (Depends-on): Add stdbool, stdlib.
56579         (configure.ac): Turn on module indicator.
56580         * modules/strtod-tests: New module.
56581
56582 2008-03-29  Eric Blake  <ebb9@byu.net>
56583
56584         Fix ftell on mingw.
56585         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56586         * modules/ftell-tests (Depends-on): Add binary-io.
56587         * modules/ftello-tests (Depends-on): Likewise.
56588         * tests/test-ftell.c (main): Enhance test to cover behavior after
56589         ungetc.  Enforce binary mode.
56590         * tests/test-ftello.c (main): Likewise.
56591
56592         Pass test-freadseek on cygwin.
56593         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56594         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56595         ungetc buffer.
56596
56597         * tests/test-fflush2.c (main): Fix typo.
56598
56599 2008-03-29  Bruno Haible  <bruno@clisp.org>
56600
56601         * tests/test-fflush2.c (main): Temporarily disable the contents of
56602         this test.
56603         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56604         Reported by Eric Blake.
56605
56606 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56607
56608         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56609         (GC_SHA224_DIGEST_SIZE): Add.
56610
56611         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56612         (gc_hash_digest_length): Likewise.
56613         (gc_hash_buffer): Likewise.
56614
56615 2008-03-25  Bruno Haible  <bruno@clisp.org>
56616
56617         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56618         detail which gettext release to use.
56619         Reported by Simon Josefsson.
56620
56621 2008-03-26  Jim Meyering  <meyering@redhat.com>
56622
56623         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56624         * modules/gnumakefile (clean-GNUmakefile): Also, use
56625         test ... && ... || : syntax rather than if-then ... fi.
56626
56627         gnumakefile: Don't double-quote-expand $(VPATH) value.
56628         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56629
56630 2008-03-24  Eric Blake  <ebb9@byu.net>
56631
56632         Alter GNUmakefile to install into top directory.
56633         * modules/maintainer-makefile: Split, and add dependency...
56634         * modules/gnumakefile: to this new module.
56635         * build-aux/GNUmakefile: Move...
56636         * top/GNUmakefile: ...here.
56637         * build-aux/maint.mk: Move...
56638         * top/maint.mk: ...here.
56639         * MODULES.html.sh (Support for maintaining...): Document new
56640         module.
56641
56642 2008-03-23  Bruno Haible  <bruno@clisp.org>
56643
56644         * gnulib-tool: New options --vc-files, --no-vc-files.
56645         (func_usage): Document them.
56646         (vc_files): New variable.
56647         (func_import): Consider vc_files.
56648         (func_create_testdir): Set vc_files to empty.
56649         Suggested by Jim Meyering and Karl Berry.
56650
56651 2008-03-23  Bruno Haible  <bruno@clisp.org>
56652
56653         Fix regex compilation error on HP-UX 11.
56654         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56655         * modules/regex (Files): Add m4/mbstate_t.m4.
56656         Reported by Ton Voon <ton.voon@altinity.com>.
56657
56658 2008-03-23  Bruno Haible  <bruno@clisp.org>
56659
56660         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56661
56662 2008-03-23  Eric Blake  <ebb9@byu.net>
56663             Bruno Haible  <bruno@clisp.org>
56664
56665         Install files from top/ in the destination directory.
56666         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56667         augmentation also for the files from top/.
56668         (func_import, func_create_testdir): Rewrite file names:
56669         top/filename -> filename.
56670
56671 2008-03-23  Bruno Haible  <bruno@clisp.org>
56672
56673         Tweak "gnulib --version" output.
56674         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56675
56676 2008-03-23  Bruno Haible  <bruno@clisp.org>
56677
56678         Tweak "gnulib --version" output.
56679         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56680         rather than contents of ChangeLog, when possible.
56681
56682 2008-03-21  Eric Blake  <ebb9@byu.net>
56683
56684         More --version tweaks.
56685         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56686         date of last ChangeLog entry.
56687
56688 2008-03-21  Jim Meyering  <meyering@redhat.com>
56689
56690         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56691
56692 2008-03-20  Eric Blake  <ebb9@byu.net>
56693
56694         VPATH fix.
56695         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56696
56697 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56698
56699         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56700         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56701
56702 2008-03-20  Eric Blake  <ebb9@byu.net>
56703
56704         Sync GNUmakefile with coreutils.
56705         * build-aux/GNUmakefile (have-Makefile): Rename...
56706         (_have-Makefile): ...to this, for namespace consideration.
56707         (GNUmakefile.cfg): Include, if present.
56708         (_autoreconf): Define a default.
56709         (_is-dist-target): New rule for rebuilds to pick up intra-release
56710         version.
56711         (maint-cfg.mk): Rename...
56712         (cfg.mk): ...to this.
56713
56714 2008-03-18  Jim Meyering  <meyering@redhat.com>
56715
56716         New script and module: mktempd
56717         * MODULES.html.sh (maint+release support): Add mktempd.
56718         * build-aux/mktempd: New file.
56719         * modules/mktempd: New file.
56720
56721 2008-03-15  Jim Meyering  <meyering@redhat.com>
56722
56723         Undo last change.
56724         * lib/sha1.c, lib/md5.c: 63 != ~63.
56725         Reported by Andreas Schwab.
56726
56727         sha1.c, md5.c: Hoist a redundant expression.
56728         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56729         "ctx->buflen" only once, before calling *_process_block.
56730         * lib/md5.c (md5_process_bytes): Likewise.
56731
56732 2008-03-14  Eric Blake  <ebb9@byu.net>
56733
56734         Bump copyright year in files generated by gnulib-tool.
56735         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56736         gnulib-tool, rather than hard-coding it.
56737
56738         Fix 'gnulib-tool --version' output to work with git.
56739         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56740         (startup): ...here.
56741         (func_version): Use it to invoke git-version-gen, rather than
56742         relying on CVS keyword expansion.  Modernize wording.
56743         (cvsdatestamp, last_checkin_date, version): Kill unused
56744         variables.
56745
56746 2008-03-12  Jim Meyering  <meyering@redhat.com>
56747
56748         Recognize optional cast of the argument to free.
56749         * build-aux/useless-if-before-free: Update regexps.
56750
56751         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56752
56753 2008-03-11  Bruno Haible  <bruno@clisp.org>
56754
56755         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56756         by a single package.
56757         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56758         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56759         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56760         Reported by Sam Steingold <sds@gnu.org>.
56761
56762 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56763
56764         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56765         repositories.
56766
56767 2008-03-11  Bruno Haible  <bruno@clisp.org>
56768
56769         Avoid conflicts between local macro definitions.
56770         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56771         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56772
56773 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56774             Bruno Haible  <bruno@clisp.org>
56775
56776         Make va_copy work with some version of xlc on AIX 5.1.
56777         * lib/stdarg.in.h: New file.
56778         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56779         On AIX, use a <stdarg.h> file substitute.
56780         * modules/stdarg (Files): Add lib/stdarg.in.h.
56781         (Depends-on): Add include_next.
56782         (Makefile.am): Build a stdarg.h substitute if requested.
56783         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56784
56785 2008-03-10  Bruno Haible  <bruno@clisp.org>
56786
56787         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56789         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56790
56791 2008-03-10  Bruno Haible  <bruno@clisp.org>
56792
56793         * modules/stdlib (Depends-on): Add include_next, remove
56794         absolute-header.
56795
56796 2008-03-09  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/freadahead.h (freadahead): Document more precisely.
56799         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56800         the sum of both buffer sizes.
56801         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56802         * NEWS: Document the change.
56803
56804 2008-03-09  Bruno Haible  <bruno@clisp.org>
56805
56806         Extend freadptr to return also the buffer size.
56807         * lib/freadptr.h (freadptr): Add sizep argument.
56808         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56809         (freadptr): Add sizep argument. Determine buffer size like freadahead
56810         does.
56811         * tests/test-freadptr.c: Don't include freadahead.h.
56812         (main): Adapt for new calling convention of freadptr.
56813         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56814         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56815         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56816         tests/test-freadptr2.sh.
56817         (Depends): Remove freadahead.
56818         (TESTS): Add test-freadptr2.sh.
56819         (check_PROGRAMS): Add test-freadptr2.
56820
56821 2008-03-09  Bruno Haible  <bruno@clisp.org>
56822
56823         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56824         Report and solution by Simon Josefsson.
56825
56826 2008-03-06  Bruno Haible  <bruno@clisp.org>
56827
56828         Make fflush after ungetc work on BSD platforms.
56829         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56830         * tests/test-fflush2.c: New file.
56831         * tests/test-fflush2.sh: New file.
56832         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56833         tests/test-fflush2.c.
56834         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56835         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56836
56837 2008-03-06  Eric Blake  <ebb9@byu.net>
56838
56839         Likewise for ftello.
56840         * modules/ftello (Dependencies): Add extensions.
56841         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56842
56843 2008-03-06  Bruno Haible  <bruno@clisp.org>
56844
56845         * modules/fseeko (Dependencies): Add extensions.
56846         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56847         Needed on glibc systems.
56848
56849 2008-03-06  Bruno Haible  <bruno@clisp.org>
56850
56851         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56852         email address.
56853         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56854
56855 2008-03-06  Bruno Haible  <bruno@clisp.org>
56856
56857         * users.txt: Add libgnupdf.
56858
56859 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56860
56861         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56862         (Header File Substitutes, Function Substitutes,
56863         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56864         (Build robot for gnulib): Fix typo.
56865
56866 2008-03-06  Bruno Haible  <bruno@clisp.org>
56867
56868         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56869         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56870
56871 2008-03-06  Bruno Haible  <bruno@clisp.org>
56872
56873         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56874         * doc/gnulib.texi: Include it.
56875
56876 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56877
56878         * modules/func (License): Change license to unlimited; there was
56879         no LGPL parts in the module anyway.
56880
56881 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56882
56883         * modules/__func__: Renamed to modules/func.
56884         * modules/__func__-tests: Renamed to modules/func-tests.
56885         * tests/test-__func__.c: Renamed to tests/test-func.c.
56886         * m4/__func__.m4: Renamed to m4/func.m4.
56887         * doc/gnulib.texi (__func__): Section renamed to func.
56888         Suggested by Eric Blake <ebb9@byu.net>.
56889
56890 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56891
56892         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56893         about __func__.  Make example self-contained.  Suggested by Eric
56894         Blake <ebb9@byu.net>.
56895
56896         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56897         Suggested by Eric Blake <ebb9@byu.net>.
56898
56899 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56900
56901         * modules/__func__: New file.
56902         * modules/__func__-tests: New file.
56903         * tests/test-__func__.c: New file.
56904         * m4/__func__.m4: New file.
56905         * doc/gnulib.texi (__func__): Document __func__ module.
56906
56907 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56908
56909         * modules/byteswap (License): Re-license as LGPLv2+.
56910
56911 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56912
56913         * doc/Makefile: Add pdf target.
56914
56915 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56916
56917         * modules/inline (License): Use 'unlimited', since there are only
56918         *.m4 files in this module.
56919
56920 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56921             Bruno Haible  <bruno@clisp.org>
56922
56923         Add support for HP C 7.1 on OpenVMS 8.3.
56924         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56925
56926 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56927
56928         Update VMS specifics.
56929         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56930
56931 2008-03-02  Jim Meyering  <meyering@redhat.com>
56932
56933         Remove the last dependency on the "free" module.
56934         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56935         Reported by Bob Proulx.
56936
56937         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56938
56939         Remove useless "if" tests before free.  Deprecate "free" module.
56940         * doc/posix-functions/free.texi: Mention that this
56941         module is no longer useful.
56942         * modules/free (Notice): Say this module is obsolete.
56943         * modules/readutmp (Depends-on): Remove free.
56944         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56945         * lib/putenv.c (putenv): Likewise.
56946         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56947         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56948         * tests/test-c-strcasestr.c (main): Likewise.
56949         * tests/test-c-strstr.c (main): Likewise.
56950         * tests/test-mbscasestr1.c (main): Likewise.
56951         * tests/test-mbscasestr2.c (main): Likewise.
56952         * tests/test-mbsstr1.c (main): Likewise.
56953         * tests/test-mbsstr2.c (main): Likewise.
56954         * tests/test-memmem.c (main): Likewise.
56955         * tests/test-strcasestr.c (main): Likewise.
56956         * tests/test-striconv.c (main): Likewise.
56957         * tests/test-striconveh.c (main): Likewise.
56958         * tests/test-striconveha.c (main): Likewise.
56959         * tests/test-strstr.c (main): Likewise.
56960
56961         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56962
56963         bootstrap: sync from coreutils again
56964         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56965
56966 2008-03-01  Jim Meyering  <meyering@redhat.com>
56967
56968         bootstrap: sync from coreutils
56969         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56970         also when the target doesn't exist.
56971
56972 2008-03-01  Eric Blake  <ebb9@byu.net>
56973
56974         Fix bugs in last patch.
56975         * lib/memchr2.c (memchr2): Fix typo.
56976         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56977         extension.
56978         Reported by Bruce Korb.
56979
56980         New module 'memchr2'.
56981         * modules/memchr2: New file.
56982         * modules/memchr2-tests: Likewise.
56983         * lib/memchr2.h: Likewise.
56984         * lib/memchr2.c: Likewise, based on memchr.c.
56985         * tests/test-memchr2.c: New test.
56986         * MODULES.html.sh (String handling): Add memchr2.
56987
56988 2008-02-29  Bruno Haible  <bruno@clisp.org>
56989
56990         * modules/freadseek-tests: New file.
56991         * tests/test-freadseek.sh: New file.
56992         * tests/test-freadseek.c: New file.
56993
56994         New module 'freadseek'.
56995         * modules/freadseek: New file.
56996         * lib/freadseek.h: New file.
56997         * lib/freadseek.c: New file.
56998         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56999
57000 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57001
57002         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57003         wydawca.
57004
57005         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57006         program_invocation_name and program_invocation_short_name are
57007         present.
57008
57009 2008-02-28  Bruno Haible  <bruno@clisp.org>
57010
57011         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57012         * tests/test-freadptr.sh: Also test non-seekable stdin.
57013
57014 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57015
57016         * build-aux/bootstrap (source_base, m4_base)
57017         (doc_base, tests_base): New variables.
57018         (gnulib_tool_options): Do not hardcode base directories, use
57019         the above variables instead.
57020
57021 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57022
57023         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57024
57025 2008-02-28  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/freadptr-tests: New file.
57028         * tests/test-freadptr.sh: New file.
57029         * tests/test-freadptr.c: New file.
57030
57031         New module 'freadptr'.
57032         * modules/freadptr: New file.
57033         * lib/freadptr.h: New file.
57034         * lib/freadptr.c: New file.
57035         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57036
57037 2008-02-26  Karl Berry  <karl@freefriends.org>
57038
57039         Sync from Libtool:
57040         * libltdl/argz.c (argz_add, argz_count): New functions.
57041         * libltdl/argz.in.h: Declare them.
57042         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57043
57044 2008-02-22  Bruno Haible  <bruno@clisp.org>
57045
57046         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57047         is a pointer type.  Needed for HP-UX 10.
57048         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57049         * doc/posix-functions/gmtime_r.texi: Likewise.
57050         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57051
57052 2008-02-24  Bruno Haible  <bruno@clisp.org>
57053
57054         * modules/environ-tests: New file.
57055         * tests/test-environ.c: New file.
57056
57057         New module 'environ'.
57058         * modules/environ: New file.
57059         * lib/unistd.in.h (environ): New declaration.
57060         * m4/environ.m4: New file.
57061         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57062         after use.
57063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57064         HAVE_DECL_ENVIRON.
57065         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57066         HAVE_DECL_ENVIRON.
57067         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57068         wrong claim that 'environ' is missing on some systems.
57069         * modules/execute (Depends-on): Add environ.
57070         * lib/execute.c (environ): Remove fallback declaration.
57071         * modules/pipe (Depends-on): Add environ.
57072         * lib/pipe.c (environ): Remove fallback declaration.
57073         * modules/setenv (Depends-on): Add environ.
57074         * lib/setenv.c (environ): Remove fallback declaration.
57075         * modules/unsetenv (Depends-on): Add environ.
57076         * lib/unsetenv.c (environ): Remove fallback declaration.
57077         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57078         m4/environ.m4.
57079         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57080         (gl_PREREQ_UNSETENV): Likewise.
57081
57082 2008-02-24  Bruno Haible  <bruno@clisp.org>
57083
57084         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57085
57086 2008-02-20  Bob Proulx  <bob@proulx.com>
57087
57088         Enable use of older two part flavor 'git describe'.
57089         * build-aux/git-version-gen: If using the older two part flavor of
57090         git version then recreate the third part now present in the
57091         newer three part flavor of git describe.
57092
57093 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57094
57095         * lib/fts.c (fts_build): Typo correction to comment.
57096
57097 2008-02-17  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57100         generating no-op conflicts.
57101
57102 2008-02-17  Bruno Haible  <bruno@clisp.org>
57103
57104         Speed up by 10%.
57105         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57106         result_entries, rather than an index-based loop.
57107
57108 2008-02-17  Bruno Haible  <bruno@clisp.org>
57109
57110         Speed up by 25%.
57111         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57112         'hashcode_cached'.
57113         (entry_create): New function.
57114         (entry_hashcode): Use the cached hashcode if possible.
57115         (read_changelog_file, try_split_merged_entry): Use entry_create.
57116
57117 2008-02-17  Bruno Haible  <bruno@clisp.org>
57118
57119         Speed up from O(n^2) to O(n) for long ChangeLog files.
57120         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57121         (read_changelog_file): Change implementation of entries_reversed list
57122         to rbtreehash.
57123         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57124
57125 2008-02-17  Bruno Haible  <bruno@clisp.org>
57126
57127         New option --split-merged-entry.
57128         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57129         (find_paragraph_end, try_split_merged_entry): New functions.
57130         (long_options): Add option --split-merged-entry.
57131         (usage): Document option --split-merged-entry.
57132         (main): Implement option --split-merged-entry.
57133         Reported by Eric Blake.
57134
57135 2008-02-17  Bruno Haible  <bruno@clisp.org>
57136
57137         * lib/git-merge-changelog.c: Include c-strstr.h.
57138         (main): Support the "git pull --rebase" situation.
57139         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57140         Reported by Eric Blake.
57141
57142 2008-02-16  Eric Blake  <ebb9@byu.net>
57143
57144         Avoid doubling \ in common case of "c-maybe" quoting style.
57145         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57146         eliding outer quotes.
57147         * lib/quotearg.h: Document this.
57148         * tests/test-quotearg.c (result_strings, inputs, results_g)
57149         (flag_results, locale_results): Test it by adding a new string to
57150         each test group.
57151         (compare_strings): Test new string.
57152
57153 2008-02-13  Eric Blake  <ebb9@byu.net>
57154
57155         Avoid trigraph quoting in default output.
57156         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57157         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57158         unless explicitly requested.
57159         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57160
57161 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57162
57163         Don't rely on signed integer overflowing to negative value.
57164         * lib/getugroups.c (getugroups): Include <limits.h>.
57165         Instead, compare against INT_MAX, and increment only if the test passes.
57166
57167 2008-02-13  Jim Meyering  <meyering@redhat.com>
57168         and Eric Blake  <ebb9@byu.net>
57169
57170         Avoid shadowing warning and compile errors on Linux.
57171         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57172         forwarding macros on Linux.
57173         (dcgettext): Define a stub, for Linux.
57174         (results_g, main): Avoid warnings.
57175
57176 2008-02-12  Eric Blake  <ebb9@byu.net>
57177
57178         Silence warning in last patch.
57179         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57180
57181         Quotearg part 4: add tests, fix c-maybe colon quoting.
57182         * lib/quotearg.h: Improve documentation.
57183         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57184         escapes when adding outer quotes.  When quoting trigraphs, use
57185         valid C notation.  When quoting NUL, omit extra characters if next
57186         character is not digit.  Alter prototype.
57187         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57188         callers.
57189         * modules/quotearg-tests: New module.
57190         * tests/test-quotearg.c: New test.
57191
57192 2008-02-07  Eric Blake  <ebb9@byu.net>
57193
57194         Quotearg part 3: add flag to control outer quote elision.
57195         * lib/quotearg.h (c_maybe_quoting_style): New style.
57196         (enum quoting_flags): Better documentation of flags.
57197         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57198         c-maybe style.
57199         (quotearg_buffer_restyled): Handle new flag to elide outer
57200         quotes.
57201
57202         Quotearg part 2: add flag that can control NUL elision.
57203         * lib/quotearg.h (set_quoting_flags): New prototype.
57204         * lib/quotearg.c (struct quoting_options): Add flag field.
57205         (set_quoting_flags): New function.
57206         (quotearg_buffer_restyled): Add flags parameter.
57207         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57208         (quotearg_n_options): Set the flag, since length cannot be
57209         returned.
57210         (quoting_options_from_style): Default flags correctly.
57211
57212         Quotearg part 1: more wrappers, restore quotearg_char state.
57213         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57214         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57215         (quotearg_colon_mem): New wrappers.
57216         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57217         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57218         functions.
57219         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57220         (quotearg_colon_mem): New functions.
57221
57222 2008-02-11  Bruno Haible  <bruno@clisp.org>
57223
57224         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57225         library in the current directory: it does not work with parallel make.
57226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57227
57228 2008-02-11  Bruno Haible  <bruno@clisp.org>
57229
57230         * .gitattributes: New file.
57231
57232 2008-02-11  Jim Meyering  <meyering@redhat.com>
57233
57234         useless-if-before-free: Fix reversed exit values.
57235         * build-aux/useless-if-before-free: Use correct values
57236         for EXIT_MATCH and EXIT_NO_MATCH.
57237
57238         * build-aux/useless-if-before-free: Close stdout carefully.
57239
57240 2008-02-10  Bruno Haible  <bruno@clisp.org>
57241
57242         New module 'git-merge-changelog'.
57243         * modules/git-merge-changelog: New file.
57244         * lib/git-merge-changelog.c: New file.
57245
57246 2008-02-10  Jim Meyering  <meyering@redhat.com>
57247
57248         useless-if-before-free: New option: --list (-l).
57249
57250         useless-if-before-free: Don't exit immediately upon open failure.
57251         * build-aux/useless-if-before-free: Exit 2 for errors.
57252         Upon failure to open a file, don't exit immediately.
57253         Rather, just warn and continue with any remaining files.
57254
57255 2008-02-10  Bruno Haible  <bruno@clisp.org>
57256
57257         New abstract list operation 'node_set_value'.
57258         * lib/gl_list.h (gl_list_node_set_value): New function.
57259         (struct gl_list_implementation): New field node_set_value.
57260         * lib/gl_list.c (gl_list_node_set_value): New function.
57261         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57262         (gl_array_list_implementation): Update.
57263         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57264         (gl_carray_list_implementation): Update.
57265         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57266         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57267         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57268         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57269         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57270         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57271         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57272         Update.
57273         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57274         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57275         (gl_sublist_list_implementation): Update.
57276
57277 2008-02-10  Bruno Haible  <bruno@clisp.org>
57278
57279         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57280         Needed when ELEMENT is #defined to 'some_type *'.
57281
57282 2008-02-10  Jim Meyering  <meyering@redhat.com>
57283
57284         New script and module: useless-if-before-free
57285         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57286         * build-aux/useless-if-before-free: New file.
57287         * modules/useless-if-before-free: New file.
57288
57289         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57290
57291         xstrtol_error: Fix typo.
57292         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57293         s/exit_failure/exit_status/.
57294
57295 2008-02-09  Jim Meyering  <meyering@redhat.com>
57296
57297         New script and module: gitlog-to-changelog
57298         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57299         * modules/gitlog-to-changelog: New file.
57300         * build-aux/gitlog-to-changelog: New file.
57301
57302 2008-02-08  Jim Meyering  <meyering@redhat.com>
57303
57304         Avoid two "parameter unused" warnings.
57305         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57306         Mark "st" as used.
57307
57308         Use "git COMMAND", not "git-COMMAND".
57309         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57310         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57311         * build-aux/git-version-gen: Use "git status", not "git-status".
57312
57313 2008-02-07  Bruno Haible  <bruno@clisp.org>
57314
57315         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57316         Avoids a crash on Windows Vista.
57317         Reported by Adam Strzelecki <ono@java.pl> via
57318         Simon Josefsson <simon@josefsson.org>.
57319
57320 2008-02-06  Bruno Haible  <bruno@clisp.org>
57321
57322         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57323         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57324         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57326         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57328         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57329         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57337         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57338         left-adjust flag.
57339         * tests/test-snprintf-posix.h (test_function): Likewise.
57340         * tests/test-sprintf-posix.h (test_function): Likewise.
57341         * tests/test-vasprintf-posix.c (test_function): Likewise.
57342         * doc/posix-functions/fprintf.texi: Update.
57343         * doc/posix-functions/printf.texi: Update.
57344         * doc/posix-functions/snprintf.texi: Update.
57345         * doc/posix-functions/sprintf.texi: Update.
57346         * doc/posix-functions/vfprintf.texi: Update.
57347         * doc/posix-functions/vprintf.texi: Update.
57348         * doc/posix-functions/vsnprintf.texi: Update.
57349         * doc/posix-functions/vsprintf.texi: Update.
57350         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57351
57352 2008-02-06  Bruno Haible  <bruno@clisp.org>
57353
57354         Fix bug introduced on 2008-01-26.
57355         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57356
57357 2008-02-06  Bruno Haible  <bruno@clisp.org>
57358
57359         Fix bug introduced on 2007-06-10.
57360         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57361         !NEED_PRINTF_FLAG_ZERO.
57362
57363 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57364
57365         getloadavg: use libperfstat on AIX5
57366         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57367
57368 2008-02-03  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/diffseq.h: Add comments about required #includes.
57371         Reported by Michael Biggs <gnulib@doubleplum.net>.
57372
57373 2008-02-01  Bruno Haible  <bruno@clisp.org>
57374
57375         * users.txt: Add gnuit.
57376
57377 2008-01-31  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/md4.c (set_uint32): Mark as inline.
57380         * lib/md5.c (set_uint32): Likewise.
57381         * lib/sha1.c (set_uint32): Likewise.
57382         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57383         * m4/md5.m4 (gl_MD5): Likewise.
57384         * m4/sha1.m4 (gl_SHA1): Likewise.
57385
57386 2008-01-31  Jim Meyering  <meyering@redhat.com>
57387
57388         Use "sizeof VAR", rather than a literal "4".
57389         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57390         * lib/md4.c (md4_read_ctx): Likewise.
57391         * lib/sha1.c (sha1_read_ctx): Likewise.
57392
57393 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57394
57395         * tests/test-sha1.c: New file, based on test-md5.c.
57396
57397         * modules/crypto/sha1-tests: New file.
57398
57399 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57400
57401         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57402
57403 2008-01-31  Jim Meyering  <meyering@redhat.com>
57404
57405         Prefer "sizeof v" over the equivalent "4".
57406         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57407         * lib/md5.c (set_uint32): Likewise.
57408         * lib/sha1.c (set_uint32): Likewise.
57409
57410 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57411
57412         * lib/sha1.c (set_uint32): Mark function as static.
57413
57414 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57415
57416         md2: clarify comments to say that alignment is not required.
57417         * lib/md2.h: Remove warning about alignment in comment.
57418         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57419         never been required.
57420
57421 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57422
57423         md4: adapt alignment constraint fix from sha1.
57424         * lib/md4.c (set_uint32): New function, from sha1.c
57425         (md4_read_ctx): Use it.
57426         (md4_finish_ctx): Doc fix.
57427         * lib/md4.h: Doc fix.
57428
57429 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57430
57431         md5: adapt alignment constraint fix from sha1.
57432         * lib/md5.c (set_uint32): New function, from sha1.c
57433         (md5_read_ctx): Use it.
57434         (md5_finish_ctx): Doc fix.
57435         * lib/md5.h: Doc fix.
57436
57437 2008-01-30  Peter Palfrader  <weasel@debian.org>
57438
57439         sha1: remove the result buffer alignment constraint
57440         * lib/sha1.c (set_uint32): New function.
57441         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57442         constraint.
57443         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57444         * lib/sha1.h: Likewise.
57445
57446 2008-01-30  Andreas Schwab  <schwab@suse.de>
57447             Bruno Haible  <bruno@clisp.org>
57448
57449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57450         correct definition of LDBL_MIN_EXP.
57451
57452 2008-01-30  Karl Berry  <karl@gnu.org>
57453
57454         * config/srclist-update: try to preserve x bit on updates.
57455         * config/srclistvars.sh: update for karl.
57456
57457 2008-01-29  Jim Meyering  <meyering@redhat.com>
57458
57459         vasnprintf.c: Avoid warning about unused label
57460         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57461         "overflow" label definition and associated code with the
57462         same cpp condition that guards the sole use of that label.
57463
57464 2008-01-26  Bruno Haible  <bruno@clisp.org>
57465
57466         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57467         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57468         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57469         * lib/isnanl-nolibm.h (isnanl): Likewise.
57470         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57471
57472 2008-01-26  Bruno Haible  <bruno@clisp.org>
57473
57474         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57475         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57476
57477 2008-01-26  Bruno Haible  <bruno@clisp.org>
57478
57479         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57480         GCC >= 4.0 built-in.
57481         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57482
57483 2008-01-26  Bruno Haible  <bruno@clisp.org>
57484
57485         Rename isnan, applicable to 'double' only, to isnand.
57486         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57487         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57488         (configure.ac): Update.
57489         (Include): Replace "isnan.h" with "isnand.h".
57490         * m4/isnand.m4: Renamed from m4/isnan.m4.
57491         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57492         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57493         instead of isnan.c.
57494         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57495         instead of HAVE_ISNAN_IN_LIBC.
57496         (isnand): Renamed from isnan.
57497         * lib/isnand.c: New file.
57498         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57499         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57500         (Makefile.am): Update.
57501         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57502         Include isnand.h instead of isnan.h.
57503         (main): Test isnand instead of isnan.
57504         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57505         isnan-nolibm.
57506         * modules/frexp (Depends-on): Likewise.
57507         * modules/frexp-tests (Depends-on): Likewise.
57508         * modules/frexp-nolibm (Depends-on): Likewise.
57509         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57510         * modules/isfinite (Depends-on): Likewise.
57511         * modules/round-tests (Depends-on): Likewise.
57512         * modules/signbit (Depends-on): Likewise.
57513         * modules/signbit-tests (Depends-on): Likewise.
57514         * modules/snprintf-posix (Depends-on): Likewise.
57515         * modules/sprintf-posix (Depends-on): Likewise.
57516         * modules/trunc-tests (Depends-on): Likewise.
57517         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57518         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57519         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57520         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57521         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57522         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57523         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57524         * modules/vasnprintf-posix (Depends-on): Likewise.
57525         * modules/vasprintf-posix (Depends-on): Likewise.
57526         * modules/vfprintf-posix (Depends-on): Likewise.
57527         * modules/vsnprintf-posix (Depends-on): Likewise.
57528         * modules/vsprintf-posix (Depends-on): Likewise.
57529         * lib/frexp.c: Include isnand.h instead of isnan.h.
57530         (ISNAN): Set to isnand instead of isnan.
57531         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57532         (gl_isfinited): Use isnand instead of isnan.
57533         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57534         (gl_signbitd): Use isnand instead of isnan.
57535         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57536         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57537         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57538         (main): Use isnand instead of isnan.
57539         * tests/test-round1.c: Include isnand.h.
57540         (main): Use isnand instead of isnan.
57541         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57542         (ISNAN): Set to isnand instead of isnan.
57543         * tests/test-trunc1.c: Include isnand.h.
57544         (main): Use isnand instead of isnan.
57545         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57546         (equal): Use isnand instead of isnan.
57547         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57548         isnand-nolibm.
57549         * NEWS: Mention the change.
57550
57551 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57552             Bruno Haible  <bruno@clisp.org>
57553
57554         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57555         the GCC builtins for signbits are present and set
57556         REPLACE_SIGNBIT_USING_GCC if so.
57557         * lib/math.in.h (signbit): Define using GCC builtins if
57558         REPLACE_SIGNBIT_USING_GCC is set.
57559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57560         REPLACE_SIGNBIT_USING_GCC.
57561         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57562
57563 2008-01-25  Jim Meyering  <meyering@redhat.com>
57564
57565         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57566         * lib/poll.c: Include <config.h>, not "config.h".
57567         * tests/test-getaddrinfo.c: Likewise.
57568
57569 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57570
57571         * modules/sockets-tests: New file.
57572
57573 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57574
57575         * modules/sockets: New module, can be used to call WSA_Startup and
57576         WSA_Cleanup when needed.
57577
57578         * lib/sockets.h, lib/sockets.c: New files.
57579
57580         * m4/sockets.m4: New file.
57581
57582         * tests/test-sockets.c: New file.
57583
57584 2008-01-19  Bruno Haible  <bruno@clisp.org>
57585
57586         * doc/posix-headers: Renamed from doc/headers.
57587         * doc/posix-functions: Renamed from doc/functions.
57588         * doc/gnulib.texi: Update.
57589
57590 2008-01-19  Bruno Haible  <bruno@clisp.org>
57591
57592         * doc/glibc-functions/strcasestr.texi: Include contents of
57593         doc/functions/strcasestr.texi, fixing the list of platforms.
57594         * doc/functions/strcasestr.texi: Remove file.
57595
57596 2008-01-19  Bruno Haible  <bruno@clisp.org>
57597
57598         * doc/glibc-functions/memmem.texi: Include contents of
57599         doc/functions/memmem.texi.
57600         * doc/functions/memmem.texi: Remove file.
57601
57602 2008-01-18  Bruno Haible  <bruno@clisp.org>
57603
57604         * doc/glibc-functions/*.texi: New files.
57605         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57606         to use the new files.
57607
57608 2008-01-17  Bruno Haible  <bruno@clisp.org>
57609
57610         * tests/test-gethostname.c (main): Fix printf statement.
57611
57612 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57613
57614         * modules/gethostname-tests: New file.
57615
57616         * tests/test-gethostname.c: New file.
57617
57618 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57619
57620         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57621         used by the UNAME case.  Reported by Bruno Haible
57622         <bruno@clisp.org>.
57623
57624 2008-01-17  Eric Blake  <ebb9@byu.net>
57625
57626         Convert c-strcasestr to be more efficient.
57627         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57628         (Depends-on): Add c-strcase, remove malloca, strnlen.
57629         * tests/test-c-strcasestr.c (main): Enhance test.
57630         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57631
57632 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57633
57634         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57635         Use it in creating po/Makevars.
57636
57637 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57638
57639         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57640         Applications that requires it should initialize libgcrypt
57641         manually.
57642
57643 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57644
57645         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57646
57647 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         Fix problem with getdate on mingw32 reported by Simon Josefsson
57650         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57651         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57652         tzname", when deciding whether to declare tzname.
57653         * lib/strftime.c (tzname): Likewise.
57654
57655 2008-01-15  Bruno Haible  <bruno@clisp.org>
57656
57657         Work around a MacOS X 10.5 bug in frexpl().
57658         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57659         * doc/functions/frexpl.texi: Document the bug.
57660         Reported by Elias Pipping <pipping@gentoo.org>.
57661
57662 2008-01-14  Eric Blake  <ebb9@byu.net>
57663
57664         Touch up previous patch.
57665         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57666         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57667
57668         Convert strcasestr module to use Two-Way algorithm.
57669         * modules/strcasestr-simple: New module, based on the old
57670         strcasestr, but with Two-Way rather than KMP.
57671         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57672         * lib/string.in.h (rpl_strcasestr): Declare.
57673         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57674         performance.
57675         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57676         * modules/string (Makefile.am): Support strcasestr.
57677         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57678         * modules/strcasestr-tests (Depends-on): Check for alarm.
57679         * tests/test-strcasestr.c: Augment test.
57680         * lib/str-two-way.h: Clean up stray macro.
57681         * NEWS: Document new module.
57682         * MODULES.html.sh (string handling): Likewise.
57683         * doc/functions/strcasestr.texi: New file.
57684         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57685         here, since it is not a POSIX function.
57686
57687 2008-01-14  Colin Watson  <cjwatson@debian.org>
57688             Bruno Haible  <bruno@clisp.org>
57689
57690         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57691         works fine; if not, set REPLACE_STRSIGNAL.
57692         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57694         REPLACE_STRSIGNAL.
57695         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57696         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57697         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57698
57699 2008-01-14  Bruno Haible  <bruno@clisp.org>
57700
57701         * modules/strsignal (Include): Change to <string.h>.
57702
57703 2008-01-14  Colin Watson  <cjwatson@debian.org>
57704
57705         * modules/argp (Notice): Add a notice recommending to change
57706         XGETTEXT_OPTIONS.
57707         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57708
57709 2008-01-13  Colin Watson  <cjwatson@debian.org>
57710
57711         * modules/strsignal-tests: New file.
57712         * tests/test-strsignal.c: New file.
57713
57714         * lib/strsignal.c: New file, from glibc with modifications.
57715         * lib/siglist.h: New file, from glibc with modifications.
57716         * lib/string.in.h (strsignal): New declaration.
57717         * m4/strsignal.m4: New file.
57718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57719         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57720         * modules/strsignal: New file.
57721         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57722         HAVE_DECL_STRSIGNAL.
57723
57724 2008-01-13  Bruno Haible  <bruno@clisp.org>
57725
57726         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57727         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57728         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57729         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57730
57731 2008-01-13  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57734         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57735         * lib/argp.h (__attribute__): Likewise.
57736         * lib/c-stack.c (__attribute__): Likewise.
57737         * lib/error.h (__attribute__): Likewise.
57738         * lib/fts.c (__attribute__): Likewise.
57739         * lib/openat.h (__attribute__): Likewise.
57740         * lib/stdio.in.h (__attribute__): Likewise.
57741         * lib/string.in.h (__attribute__): Likewise.
57742         * lib/utimens.c (__attribute__): Likewise.
57743         * lib/vasnprintf.h (__attribute__): Likewise.
57744         * lib/xalloc.h (__attribute__): Likewise.
57745         * lib/xprintf.h (__attribute__): Likewise.
57746         * lib/xstrtol.h (__attribute__): Likewise.
57747         * lib/xvasprintf.h (__attribute__): Likewise.
57748
57749 2008-01-12  Bruno Haible  <bruno@clisp.org>
57750
57751         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57752         * doc/glibc-headers/a.out.texi: New file.
57753         * doc/glibc-headers/aliases.texi: New file.
57754         * doc/glibc-headers/alloca.texi: New file.
57755         * doc/glibc-headers/ar.texi: New file.
57756         * doc/glibc-headers/argp.texi: New file.
57757         * doc/glibc-headers/argz.texi: New file.
57758         * doc/glibc-headers/byteswap.texi: New file.
57759         * doc/glibc-headers/crypt.texi: New file.
57760         * doc/glibc-headers/endian.texi: New file.
57761         * doc/glibc-headers/envz.texi: New file.
57762         * doc/glibc-headers/err.texi: New file.
57763         * doc/glibc-headers/error.texi: New file.
57764         * doc/glibc-headers/execinfo.texi: New file.
57765         * doc/glibc-headers/fpu_control.texi: New file.
57766         * doc/glibc-headers/fstab.texi: New file.
57767         * doc/glibc-headers/fts.texi: New file.
57768         * doc/glibc-headers/getopt.texi: New file.
57769         * doc/glibc-headers/ieee754.texi: New file.
57770         * doc/glibc-headers/ifaddrs.texi: New file.
57771         * doc/glibc-headers/libintl.texi: New file.
57772         * doc/glibc-headers/mcheck.texi: New file.
57773         * doc/glibc-headers/mntent.texi: New file.
57774         * doc/glibc-headers/obstack.texi: New file.
57775         * doc/glibc-headers/paths.texi: New file.
57776         * doc/glibc-headers/printf.texi: New file.
57777         * doc/glibc-headers/pty.texi: New file.
57778         * doc/glibc-headers/resolv.texi: New file.
57779         * doc/glibc-headers/shadow.texi: New file.
57780         * doc/glibc-headers/sysexits.texi: New file.
57781         * doc/glibc-headers/ttyent.texi: New file.
57782
57783 2008-01-12  Jim Meyering  <meyering@redhat.com>
57784
57785         announce-gen: emit Gnulib's git-based version string.
57786         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57787         New option --gnulib-version=V, where V is expected to be
57788         the output of running git describe in the gnulib directory.
57789         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57790         not useful, and plan to stop publishing an xdelta file with each
57791         coreutils release.
57792
57793         * build-aux/announce-gen: Also check for lzma-compressed files.
57794
57795 2008-01-11  Bruno Haible  <bruno@clisp.org>
57796
57797         * tests/test-memmem.c (main): Increase maximum allowed time.
57798         * tests/test-strstr.c (main): Likewise.
57799
57800 2008-01-11  Bruno Haible  <bruno@clisp.org>
57801
57802         * doc/functions/memmem.texi: Add more precisions about platforms.
57803         * doc/functions/strstr.texi: Likewise.
57804
57805 2008-01-10  Eric Blake  <ebb9@byu.net>
57806
57807         * m4/strstr.m4: Delete cruft from copy-n-paste.
57808         Reported by Bruno Haible.
57809
57810 2008-01-10  Bruno Haible  <bruno@clisp.org>
57811
57812         Make c-strstr rely on strstr.
57813         * lib/c-strstr.c: Don't include str-kmp.h.
57814         (c_strstr): Define in terms of strstr.
57815         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57816         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57817
57818 2008-01-10  Bruno Haible  <bruno@clisp.org>
57819
57820         * doc/gnulib.texi (String Functions in C Locale): New section.
57821         * doc/c-ctype.texi: New file.
57822         * doc/c-strcase.texi: New file.
57823         * doc/c-strcaseeq.texi: New file.
57824         * doc/c-strcasestr.texi: New file.
57825         * doc/c-strstr.texi: New file.
57826         * doc/c-strtod.texi: New file.
57827         * doc/c-strtold.texi: New file.
57828
57829 2008-01-10  Eric Blake  <ebb9@byu.net>
57830
57831         * lib/relocatable.h: Fix a comment.
57832
57833 2008-01-10  Eric Blake  <ebb9@byu.net>
57834
57835         Share two-way algorithm.
57836         * lib/str-two-way.h: New file, merged from...
57837         * lib/memmem.c: ...here...
57838         * lib/strstr.c: ...and here.
57839         * modules/memmem (Files): Use it.
57840         * modules/strstr (Files): Likewise.
57841
57842         Avoid quadratic strstr implementations.
57843         * lib/strstr.c: New file.
57844         * m4/strstr.m4: Likewise.
57845         * modules/strstr: Likewise.
57846         * modules/strstr-tests: Likewise.
57847         * tests/test-strstr.c: Likewise.
57848         * lib/string.in.h (rpl_strstr): Declare.
57849         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57851         * modules/string (Makefile.am): Likewise.
57852         * MODULES.html.sh (string handling): Mention new module.
57853         * doc/functions/strstr.texi (strstr): Document the bug.
57854
57855 2008-01-10  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/relocatable.h (relocate): State whether result is freshly
57858         allocated or not.
57859         * lib/relocatable.c (relocate): Return a freshly allocated string
57860         instead of a pointer to a privately held string.
57861         Reported by Sylvain Beucler <beuc@gnu.org>.
57862
57863 2008-01-10  Colin Watson  <cjwatson@debian.org>
57864
57865         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57866         s/S_ISNLK/S_ISLNK/.
57867
57868 2008-01-09  Bruno Haible  <bruno@clisp.org>
57869
57870         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57871         and other files.
57872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57873         if it's only a guess.
57874         * modules/memmem: Simplify by depending on memmem-simple.
57875
57876 2008-01-09  Bruno Haible  <bruno@clisp.org>
57877
57878         Work around OpenBSD 4.0 tdelete() bug.
57879         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57880         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57881         macros and don't redefine the enum values.
57882         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57883         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57884         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57885
57886 2008-01-09  Bruno Haible  <bruno@clisp.org>
57887
57888         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57889         (main): Don't perform the tests if setlocale did not install a UTF-8
57890         locale. Needed on OpenBSD 4.0.
57891         * modules/wcwidth-tests (Depends-on): Add localcharset.
57892
57893 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57894
57895         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57896         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57897         * NEWS: announce this.
57898         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57899
57900 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57901         and Eric Blake  <ebb9@byu.net>
57902
57903         Add memmem-simple module.
57904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57905         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57906         * modules/memmem-simple: New file.
57907         * modules/memmem (Description): Tweak.
57908         * MODULES.html.sh (string handling): Mention new module.
57909         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57910         addressed by memmem-simple.
57911         * NEWS: Document the difference.
57912
57913 2008-01-09  Eric Blake  <ebb9@byu.net>
57914
57915         Give gcc some memmem optimization hints.
57916         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57917         (strcasestr): Declare as pure.
57918         * modules/memmem (Maintainer): Claim my implementation.
57919
57920 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57921
57922         Support AIX 6.1 and higher.
57923         * build-aux/config.libpath: Likewise.
57924         * build-aux/config.rpath: Likewise.
57925
57926 2008-01-08  Jim Meyering  <meyering@redhat.com>
57927             Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57930         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57931         Reported by Peter Fales in
57932         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57933
57934 2008-01-08  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/unictype/category-of (Depends-on): Add
57937         unictype/category-none.
57938         * modules/unictype/category-and-tests (Depends-on): Add
57939         unictype/category-{L,N,Lu,Nd}.
57940         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57941         * modules/unictype/category-or-tests (Depends-on): Add
57942         unictype/category-{L,N}.
57943         * modules/unictype/category-name-tests (Depends-on): Add
57944         unictype/category-{Z,Nl}.
57945         Reported by Simon Josefsson.
57946
57947 2008-01-08  Bruno Haible  <bruno@clisp.org>
57948
57949         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57950         convention better.
57951         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57952         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57953         Reported by Peter Miller <millerp@canb.auug.org.au>.
57954
57955 2008-01-08  Eric Blake  <ebb9@byu.net>
57956
57957         Rewrite memmem to guarantee linear complexity without malloc.
57958         * lib/memmem.c (memmem): Use Two-Way rather than
57959         Knuth-Morris-Pratt, to allow O(1) space usage.
57960         (critical_factorization, two_way_short_needle)
57961         (two_way_long_needle): New functions.
57962         (knuth_morris_pratt): Delete.
57963         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57964         Add stdint.
57965         * tests/test-memmem.c (main): Add tests for periodic needle and
57966         sublinear performance.
57967         * doc/functions/memmem.texi (memmem): Document other deficiencies
57968         in cygwin and older glibc.
57969
57970 2008-01-08  Bruno Haible  <bruno@clisp.org>
57971
57972         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57973         augmentation.
57974
57975 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57976
57977         Add a configure time option: --disable-acl.
57978         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57979         AC_ARG_ENABLE(acl).
57980
57981 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57982
57983         * tests/test-localename.c: Don't include obsolete "setenv.h".
57984
57985         * modules/localename-tests (Depends-on): Need unsetenv.
57986
57987 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57988
57989         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57990
57991 2008-01-06  Colin Watson  <cjwatson@debian.org>
57992
57993         * users.txt: Add man-db.
57994
57995 2008-01-07  Bruno Haible  <bruno@clisp.org>
57996
57997         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57998         previous section name.
57999
58000 2008-01-07  Bruno Haible  <bruno@clisp.org>
58001
58002         * lib/progname.c (set_program_name): Don't strip off a leading
58003         "lt-" prefix outside a .libs directory.
58004         Suggested by Paul Eggert.
58005
58006 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58007             Bruno Haible  <bruno@clisp.org>
58008
58009         Improve memory cleanup in 'relocatable' module.
58010         * lib/relocatable.h (compute_curr_prefix): Change return type to
58011         'char *'.
58012         * lib/relocatable.c (compute_curr_prefix): Change return type to
58013         'char *'. Free curr_installdir after use.
58014         (relocate): Free curr_prefix_better after use.
58015         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58016
58017 2008-01-01  Bruno Haible  <bruno@clisp.org>
58018
58019         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58020         failure on older glibc systems.
58021         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58022
58023 2008-01-05  Eric Blake  <ebb9@byu.net>
58024
58025         Avoid quadratic system memmem.
58026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58027         Reported by Ralf Wildenhues.
58028
58029         Fix memmem test for mingw.
58030         * modules/memmem-tests (configure.ac): Check for alarm.
58031         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58032         it.
58033         * doc/functions/memmem.texi: New file.
58034         * doc/gnulib.texi (Function Substitutes): Add memmem.
58035         Reported by Bruno Haible.
58036
58037 2008-01-04  Bruno Haible  <bruno@clisp.org>
58038
58039         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58040         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58041         gl_HEADER_STRING_H_DEFAULTS.
58042
58043 2008-01-04  Eric Blake  <ebb9@byu.net>
58044
58045         Shorten duration of memmem test.
58046         * tests/test-memmem.c (main): Use alarm to declare failure if test
58047         is taking too long.
58048         Reported by Ralf Wildenhues.
58049
58050 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58051
58052         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58053         string, needed by strerror.
58054
58055 2008-01-03  Colin Watson  <cjwatson@debian.org>
58056             Bruno Haible  <bruno@clisp.org>
58057
58058         * doc/gnulib-tool.texi (Localization): New section.
58059
58060 2008-01-02  Bruno Haible  <bruno@clisp.org>
58061
58062         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58063         variables to 'unsigned char *' type.
58064         Reported by Paul Eggert.
58065
58066 2008-01-02  Jim Meyering  <jim@meyering.net>
58067
58068         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58069
58070 2007-12-31  Jim Meyering  <jim@meyering.net>
58071
58072         Avoid use of private FTS type name.
58073         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58074
58075 2007-12-30  Karl Berry  <karl@gnu.org>
58076
58077         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58078         work around defect in Texinfo and/or the standalone Info browser.
58079
58080 2007-12-30  Bruno Haible  <bruno@clisp.org>
58081
58082         Unify 5 copies of the KMP code.
58083         * lib/str-kmp.h: New file.
58084         * lib/c-strcasestr.c: Include str-kmp.h.
58085         (knuth_morris_pratt): Remove function.
58086         (c_strcasestr): Update.
58087         * lib/c-strstr.c: Include str-kmp.h.
58088         (knuth_morris_pratt): Remove function.
58089         (c_strcasestr): Update.
58090         * lib/mbscasestr.c: Include str-kmp.h.
58091         (knuth_morris_pratt_unibyte): Remove function.
58092         * lib/mbsstr.c: Include str-kmp.h.
58093         (knuth_morris_pratt_unibyte): Remove function.
58094         * lib/strcasestr.c: Include str-kmp.h.
58095         (knuth_morris_pratt): Remove function.
58096         (strcasestr): Update.
58097         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58098         * modules/c-strstr (Files): Likewise.
58099         * modules/mbscasestr (Files): Likewise.
58100         * modules/mbsstr (Files): Likewise.
58101         * modules/strcasestr (Files): Likewise.
58102         Suggested by Paul Eggert.
58103
58104 2007-12-30  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58107         defined.
58108
58109 2007-12-30  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/xmalloca.h: Include xalloc.h.
58112         (xnmalloca): New macro.
58113
58114 2007-12-30  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/malloca.h (nmalloca): New macro.
58117         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58118         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58119         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58120         knuth_morris_pratt_multibyte): Likewise.
58121         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58122         knuth_morris_pratt_multibyte): Likewise.
58123         * lib/memmem.c (knuth_morris_pratt): Likewise.
58124         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58125
58126 2007-12-25  Bruno Haible  <bruno@clisp.org>
58127
58128         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58129         * lib/glob.c: Don't include openat.h.
58130         (link_exists2_p): Add back the code that deals with the
58131         !GLOB_ALTDIRFUNC case.
58132         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58133         let it do the filename concatenation.
58134         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58135         * modules/glob (Depends-on): Remove openat.
58136
58137 2007-12-31  Bruno Haible  <bruno@clisp.org>
58138
58139         * modules/dirfd (License): Change to LGPLv2+.
58140         Approved by Jim Meyering.
58141
58142 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58143
58144         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58145         when multiplying M by sizeof (size_t).
58146
58147 2007-12-10  Martin Lambers  <marlam@marlam.de>
58148
58149         Override getpagesize on mingw.
58150         * lib/getpagesize.c: New file.
58151         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58152         * modules/getpagesize (Files): Add lib/getpagesize.c.
58153         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58155         REPLACE_GETPAGESIZE.
58156         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58157
58158 2007-12-25  Bruno Haible  <bruno@clisp.org>
58159
58160         * modules/localcharset (Notice): New field.
58161         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58162         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58163
58164 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58165             Bruno Haible  <bruno@clisp.org>
58166
58167         Avoid using the syntax symbol() in formatted documentation.
58168         * MODULES.html.sh (func_module): When replacing symbol() with a
58169         hyperlink, remove the parentheses. Show an error if some remain.
58170         Recognize and render the '...' syntax.
58171         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58172         Rework. Add paragraph about GCC's inlining.
58173         * doc/alloca.texi: Likewise.
58174         * doc/error.texi: Remove parentheses from symbol reference.
58175         * doc/gnulib-intro.texi: Likewise.
58176         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58177         * modules/fnmatch (Description): Reword to say "the ... function".
58178         * modules/full-read (Description): Likewise.
58179         * modules/full-write (Description): Likewise.
58180         * modules/safe-read (Description): Likewise.
58181         * modules/safe-write (Description): Likewise.
58182         * modules/strchrnul (Description): Likewise.
58183         * modules/trim (Description): Likewise.
58184         * modules/error (Description): Remove parentheses from symbol
58185         references.
58186         * modules/verror (Description): Likewise.
58187         Reported by Karl Berry.
58188
58189 2007-12-25  Bruno Haible  <bruno@clisp.org>
58190
58191         Fixup after 2007-10-16 commit.
58192         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58193
58194 2007-12-24  Bruno Haible  <bruno@clisp.org>
58195
58196         Make --enable-relocatable work with DESTDIR.
58197         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58198         to compute installdir from destprog.
58199         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58200         also set the RELOC_DESTDIR variable.
58201         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58202
58203 2007-12-24  Bruno Haible  <bruno@clisp.org>
58204
58205         Fix link error due to xalloc_die().
58206         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58207         of xreadlink.
58208         * lib/relocwrapper.c: Update comments.
58209         * build-aux/install-reloc: Remove xreadlink.c from file list.
58210         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58211         xreadlink.c.
58212         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58213
58214 2007-12-24  Bruno Haible  <bruno@clisp.org>
58215
58216         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58217         * lib/setenv.h: Remove file.
58218         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58219         lib/setenv.h.
58220         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58221         (Depends-on): Add stdlib.
58222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58223         gl_FUNC_UNSETENV.
58224         (Include): Replace setenv.h with <stdlib.h>.
58225         * modules/unsetenv: New file.
58226         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58227         * lib/unsetenv.c: Include <stdlib.h> first.
58228         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58229         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58230         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58231         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58232         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58233         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58235         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58236         * doc/functions/unsetenv.texi: Update.
58237         * modules/xsetenv (Depends-on): Add unsetenv.
58238         * modules/getdate (Depends-on): Likewise.
58239         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58240         * lib/xsetenv.c: Don't include setenv.h.
58241         * lib/getdate.y: Likewise.
58242         * lib/relocwrapper.c: Likewise.
58243         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58244         (Depends-on): Add stdlib.
58245         * NEWS: Mention the changes.
58246         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58247
58248 2007-12-23  Bruno Haible  <bruno@clisp.org>
58249
58250         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58251         indentation.
58252
58253 2007-12-23  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/c-strcasestr.c: Add more comments.
58256         * lib/c-strstr.c: Likewise.
58257         * lib/mbscasestr.c: Likewise.
58258         * lib/mbsstr.c: Likewise.
58259         * lib/strcasestr.c: Likewise.
58260         * lib/memmem.c: Likewise.
58261
58262 2007-12-23  Bruno Haible  <bruno@clisp.org>
58263
58264         * tests/test-memmem.c: Include <string.h> first.
58265
58266 2007-12-22  Bruno Haible  <bruno@clisp.org>
58267
58268         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58269         the contents of $testsbase.
58270         Reported by Ralf Wildenhues.
58271
58272 2007-12-22  Bruno Haible  <bruno@clisp.org>
58273
58274         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58275         two variables local_ldadd_before, local_ldadd_last.
58276
58277 2007-12-20  Eric Blake  <ebb9@byu.net>
58278
58279         Work around circular library issue when cross-compiling.
58280         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58281         that progname.o does not need to pull in rpl_memcmp.
58282
58283 2007-12-19  Eric Blake  <ebb9@byu.net>
58284
58285         Fix memmem to avoid O(n^2) worst-case complexity.
58286         * lib/memmem.c (knuth_morris_pratt): New function.
58287         (memmem): Use it if first few naive iterations fail.
58288         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58289         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58290         * modules/memchr (License): Likewise.
58291         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58292         malloca.
58293         * tests/test-memmem.c: Rewrite, borrowing ideas from
58294         test-mbsstr1.c; the old version wouldn't even compile!
58295         * modules/memmem-tests: New file.
58296         * lib/string.in.h (rpl_memmem): Add declaration.
58297         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58299         REPLACE_MEMMEM.
58300
58301 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58302
58303         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58304         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58305         before any system include files, and undef after them all.  This
58306         should fix a problem on VMS reported by John E. Malmberg in
58307         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58308
58309 2007-12-17  Eric Blake  <ebb9@byu.net>
58310
58311         Revert addition of verify, for BSD/OS.
58312         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58313         can't handle large files, for the sake of obsolete platforms.
58314         * modules/fseeko (Depends-on): Remove verify.
58315         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58316         * doc/functions/ftello.texi (ftello): Likewise.
58317         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58318         Reported by Larry Jones.
58319
58320 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58321
58322         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58323         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58324
58325 2007-12-17  Jim Meyering  <meyering@redhat.com>
58326
58327         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58328         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58329         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58330         * modules/getcwd (Depends-on): Add openat.
58331         Reported by Petr Salinger.
58332
58333 2007-12-17  Bruno Haible  <bruno@clisp.org>
58334
58335         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58336         avoid a segmentation fault of the configure test on x86_64 systems.
58337
58338 2007-12-15  Jim Meyering  <meyering@redhat.com>
58339
58340         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58341
58342 2007-12-13  Eric Blake  <ebb9@byu.net>
58343
58344         Another fseek test.
58345         * tests/test-fseek.c (main): Also test ungetc handling.
58346         * tests/test-fseeko.c (main): Likewise.
58347         * modules/fseeko (Depends-on): Add verify.
58348         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58349         large.
58350         Reported by Larry Jones.
58351
58352         Fix fseeko on mingw.
58353         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58354         seek.
58355
58356         Beef up fseek tests.
58357         * tests/test-fseek.c (main): Also test eof handling.
58358         * tests/test-fseeko.c (main): Likewise.
58359         Reported by Larry Jones.
58360
58361 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58362
58363         Fix fseeko on BSD-based platforms.
58364         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58365         successful seek.
58366
58367 2007-12-12  Eric Blake  <ebb9@byu.net>
58368
58369         Allow circular dependency of separate libtests.a
58370         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58371         when use_libtests.
58372
58373 2007-12-11  Eric Blake  <ebb9@byu.net>
58374
58375         Fix bug with -0.0L in previous patch.
58376         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58377         * tests/test-isnan.c (main): Also test on zeroes.
58378         * tests/test-isnanf.c (main): Likewise.
58379         * tests/test-isnanl.h (main): Likewise.
58380
58381         Detect pseudo-denormals on x86 even when cross-compiling.
58382         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58383         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58384         invalid bit patterns that happen to satisfy ==.
58385
58386         Avoid link failures with separate libtests.a.
58387         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58388         last, to satisfy circular dependencies.
58389
58390 2007-12-11  Eric Blake  <ebb9@byu.net>
58391         and Bruno Haible  <bruno@clisp.org>
58392
58393         Fix OpenBSD 4.0 <float.h> handling of long double.
58394         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58395         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58396         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58397
58398 2007-12-11  Jim Meyering  <meyering@redhat.com>
58399
58400         * users.txt: Add libvirt.
58401
58402         Support versions of autoconf prior to 2.59c.
58403         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58404         if it is not already defined.
58405
58406 2007-12-09  Bruno Haible  <bruno@clisp.org>
58407
58408         Let 'gnulib-tool --import' collect sources needed for the tests in
58409         tests/ rather than in lib/.
58410         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58411         argument. If true, add rules to generate libtests.a, and put libtests.a
58412         into $(LDADD). Consider source files in subdirectories and set
58413         uses_subdirs.
58414         (func_emit_initmacro_start, func_emit_initmacro_end,
58415         func_emit_initmacro_done): Pass all arguments explicitly.
58416         (func_import): Determine two module lists main_modules,
58417         testsrelated_modules. Determine use_libtests. Determine two variables
58418         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58419         instead of just sed_transform_lib_file. Determine two variables
58420         main_files and testsrelated_files. Compute 'files' as the union of
58421         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58422         func_add_or_update. In the generated gnulib-comp.m4, collect the
58423         object files for tests/ in different variables than those for lib/.
58424         Substitute LIBTESTS_LIBDEPS.
58425         (func_create_testdir): Combine the uses_subdirs results from
58426         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58427
58428 2007-12-09  Bruno Haible  <bruno@clisp.org>
58429
58430         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58431         the build-aux directory.
58432
58433 2007-12-09  Bruno Haible  <bruno@clisp.org>
58434
58435         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58436         introduced on 2006-09-09.
58437
58438 2007-12-07  Jim Meyering  <meyering@redhat.com>
58439
58440         Let these macros work also with autoconf-2.59.
58441         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58442         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58444
58445 2007-12-06  Jim Meyering  <meyering@redhat.com>
58446
58447         Avoid a configure-time syntax error in gl_FUNC_ACL.
58448         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58449         function in each branch, before testing the cache variable.
58450
58451 2007-12-04  Eric Blake  <ebb9@byu.net>
58452
58453         Make scripts executable.
58454         * build-aux/config.guess: Add execute permissions.
58455         * build-aux/config.sub: Likewise.
58456         * build-aux/gendocs.sh: Likewise.
58457
58458         Fix frexp on mingw.
58459         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58460         cross-compiling.
58461         * doc/functions/frexp.texi (frexp): Document the bug.
58462
58463         Make cygwin fseeko check more reliable.
58464         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58465         version numbers, rather than unrelated feature check.
58466         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58467         * doc/functions/ftello.texi (ftello): Likewise.
58468         Reported by Bruno Haible.
58469
58470         * m4/strerror.m4: Bump version number.
58471
58472 2007-12-03  Bruno Haible  <bruno@clisp.org>
58473
58474         * doc/functions/mprotect.texi: Mention the mingw problem.
58475
58476 2007-12-03  Eric Blake  <ebb9@byu.net>
58477
58478         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58479         REPLACE_STRERROR is initialized before this macro.
58480
58481 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58482
58483         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58484         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58485         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58486         put -lsec in even for programs other than 'ls'.  This fixes a problem
58487         for gettext reported by Bruno Haible in
58488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58489         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58490         Add support for Solaris 10.  This isn't efficient, but should get the
58491         job done for now.
58492
58493 2007-12-03  James Youngman  <jay@gnu.org>
58494
58495         * doc/regexprops-generic.texi: change "an close-group" to "a
58496         close-group" and "illegal" to "not allowed".
58497
58498 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58499
58500         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58501         pr_byname.h. Needed for the rare case when the maintainer has done
58502         "make maintainer-clean" in the source directory and then attempts a
58503         build outside the source directory.
58504         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58505         scripts_byname.h.
58506
58507 2007-12-02  Martin Lambers <marlam@marlam.de>
58508             Bruno Haible  <bruno@clisp.org>
58509
58510         * lib/getpagesize.h: Remove file.
58511         * lib/unistd.in.h: Include declaration of getpagesize here.
58512         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58513         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58514         HAVE_SYS_PARAM_H.
58515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58516         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58517         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58518         (Depends-on): Add unistd.
58519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58520         (Include): Use <unistd.h> instead of getpagesize.h.
58521         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58522         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58523         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58524         gl_GETPAGESIZE invocation, already handled by module dependency.
58525         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58526
58527 2007-12-02  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/strings-tests: New file.
58530         * tests/test-strings.c: New file.
58531
58532         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58533         * lib/strings.in.h: New file.
58534         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58535         * m4/strings_h.m4: New file.
58536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58537         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58538         * modules/strings: New file.
58539         * modules/string (Makefile.am): Update.
58540         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58541         Reported by Karl Berry.
58542
58543 2007-12-01  Eric Blake  <ebb9@byu.net>
58544
58545         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58546         accomodate fix in cygwin 1.5.25.
58547
58548 2007-12-01  Jim Meyering  <meyering@redhat.com>
58549
58550         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58551         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58552         that would inhibit utf8-optimization of a regexp containing line-
58553         or buffer-anchors, e.g., `^', `$'.
58554
58555 2007-11-30  Bruno Haible  <bruno@clisp.org>
58556
58557         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58558         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58559         glthread_recursive_lock_init.
58560         * lib/lock.c (glthread_recursive_lock_init)
58561         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58563
58564 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58565
58566         New function qset_acl, like set_acl but with syscall semantics.
58567         * lib/acl.h (qset_acl): New decl.
58568         * lib/acl.c (qset_acl): New function.
58569         (set_acl): Use new function.  Use more-consistent diagnostics.
58570
58571 2007-11-28  Jim Meyering  <meyering@redhat.com>
58572
58573         * modules/physmem (License): Change from GPL to LGPLv2+.
58574
58575 2007-11-26  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58578         'long double' type has excess precision.
58579         Reported by Jim Meyering in
58580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58581
58582 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58583
58584         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58585         Sync from <http://gnu.org/licenses>.
58586         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58587         with license text from same location.
58588         * doc/maintain.texi, doc/standards.texi:  Sync from
58589         <http://savannah.gnu.org/projects/gnustandards>.
58590
58591 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58592         and Jim Meyering  <meyering@redhat.com>
58593
58594         Adjust getdate' grammar to accept a slightly more regular language.
58595         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58596         Before, the former was rejected.
58597         * lib/getdate.y (digits_to_date_time): New function, factored
58598         out of ...
58599         (number): ...here.  Just call digits_to_date_time.
58600         (hybrid): New non-terminal to handle an <unsigned number,
58601         signed relative offset> sequence consistently.
58602
58603 2007-11-18  Jim Meyering  <meyering@redhat.com>
58604
58605         Pull my changes from coreutils:
58606         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58607         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58608         use of $gnulib_tool_option_extras, so that it's separated from the
58609         preceding argument.
58610
58611         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58612         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58613         parent destination directories before copying a file into place.
58614
58615 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58616
58617         bootstrap: work also with 4-argument variant of AC_INIT
58618         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58619
58620 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         Port test-getaddrinfo to Solaris.
58623         Problem reported by Bruno Haible in
58624         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58625         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58626         explanation of setting 'hints'.
58627         Don't reject an implementation merely because it returns EAI_SERVICE.
58628         (EAI_SERVICE): Define to 0 if not defined.
58629
58630 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         The license of gnu-make and posix-shell is now "GPLed build tool".
58633         * modules/gnu-make (License): Likewise.
58634         * modules/posix-shell (License): Likewise.
58635
58636         New module posix-shell, for determining a POSIX shell
58637         or perhaps something that is close enough to a POSIX shell.
58638         * m4/posix-shell.m4: New file.
58639         * modules/posix-shell: New file.
58640
58641         * MODULES.html.sh: Mention new module.
58642
58643         New module gnu-make, for determining whether we're using GNU Make.
58644         * m4/gnu-make.m4: New file.
58645         * modules/gnu-make: New file.
58646         * MODULES.html.sh: Mention new module.
58647
58648 2007-11-14  Jim Meyering  <meyering@redhat.com>
58649
58650         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58651         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58652         use this macro to create a function _definition_.
58653         Remove useless "#undef ARGMATCH_DIE".
58654
58655 2007-11-14  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/config.charset: Update for OpenBSD 4.1.
58658         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58659
58660 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58661
58662         Document 64-bit #if problems in stdint.texi.
58663         * doc/headers/stdint.texi (stdint.h): Mention problems with
58664         64-bit-#if, and how to work around them.
58665
58666         Don't insist on 'long long int' support in the preprocessor.  It
58667         breaks too many things.  For example, PRIdMAX still uses a 'long
58668         long int' format with the latest Sun compiler, even though
58669         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58670         preprocessor problem.  This causes the latest coreutils to dump
58671         core on Solaris 10 sparc with the Sun C compiler.
58672         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58673         the troublesome expressions at configure-time, not at #if-time.
58674         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58675         preprocessor.
58676         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58677         compile-time C checks, done at 'configure'-time.
58678         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58679         * modules/inttypes (Makefile): Substitute the new symbols that
58680         gl_INTTYPES_H now generates.
58681         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58682
58683 2007-11-12  Bruno Haible  <bruno@clisp.org>
58684
58685         Tests for Unicode character classification functions.
58686
58687         * modules/unictype/bidicategory-byname-tests: New file.
58688         * modules/unictype/bidicategory-name-tests: New file.
58689         * modules/unictype/bidicategory-of-tests: New file.
58690         * modules/unictype/bidicategory-test-tests: New file.
58691         * modules/unictype/block-list-tests: New file.
58692         * modules/unictype/block-of-tests: New file.
58693         * modules/unictype/block-test-tests: New file.
58694         * modules/unictype/category-C-tests: New file.
58695         * modules/unictype/category-Cc-tests: New file.
58696         * modules/unictype/category-Cf-tests: New file.
58697         * modules/unictype/category-Cn-tests: New file.
58698         * modules/unictype/category-Co-tests: New file.
58699         * modules/unictype/category-Cs-tests: New file.
58700         * modules/unictype/category-L-tests: New file.
58701         * modules/unictype/category-Ll-tests: New file.
58702         * modules/unictype/category-Lm-tests: New file.
58703         * modules/unictype/category-Lo-tests: New file.
58704         * modules/unictype/category-Lt-tests: New file.
58705         * modules/unictype/category-Lu-tests: New file.
58706         * modules/unictype/category-M-tests: New file.
58707         * modules/unictype/category-Mc-tests: New file.
58708         * modules/unictype/category-Me-tests: New file.
58709         * modules/unictype/category-Mn-tests: New file.
58710         * modules/unictype/category-N-tests: New file.
58711         * modules/unictype/category-Nd-tests: New file.
58712         * modules/unictype/category-Nl-tests: New file.
58713         * modules/unictype/category-No-tests: New file.
58714         * modules/unictype/category-P-tests: New file.
58715         * modules/unictype/category-Pc-tests: New file.
58716         * modules/unictype/category-Pd-tests: New file.
58717         * modules/unictype/category-Pe-tests: New file.
58718         * modules/unictype/category-Pf-tests: New file.
58719         * modules/unictype/category-Pi-tests: New file.
58720         * modules/unictype/category-Po-tests: New file.
58721         * modules/unictype/category-Ps-tests: New file.
58722         * modules/unictype/category-S-tests: New file.
58723         * modules/unictype/category-Sc-tests: New file.
58724         * modules/unictype/category-Sk-tests: New file.
58725         * modules/unictype/category-Sm-tests: New file.
58726         * modules/unictype/category-So-tests: New file.
58727         * modules/unictype/category-Z-tests: New file.
58728         * modules/unictype/category-Zl-tests: New file.
58729         * modules/unictype/category-Zp-tests: New file.
58730         * modules/unictype/category-Zs-tests: New file.
58731         * modules/unictype/category-and-not-tests: New file.
58732         * modules/unictype/category-and-tests: New file.
58733         * modules/unictype/category-byname-tests: New file.
58734         * modules/unictype/category-name-tests: New file.
58735         * modules/unictype/category-none-tests: New file.
58736         * modules/unictype/category-of-tests: New file.
58737         * modules/unictype/category-or-tests: New file.
58738         * modules/unictype/category-test-withtable-tests: New file.
58739         * modules/unictype/combining-class-tests: New file.
58740         * modules/unictype/ctype-alnum-tests: New file.
58741         * modules/unictype/ctype-alpha-tests: New file.
58742         * modules/unictype/ctype-blank-tests: New file.
58743         * modules/unictype/ctype-cntrl-tests: New file.
58744         * modules/unictype/ctype-digit-tests: New file.
58745         * modules/unictype/ctype-graph-tests: New file.
58746         * modules/unictype/ctype-lower-tests: New file.
58747         * modules/unictype/ctype-print-tests: New file.
58748         * modules/unictype/ctype-punct-tests: New file.
58749         * modules/unictype/ctype-space-tests: New file.
58750         * modules/unictype/ctype-upper-tests: New file.
58751         * modules/unictype/ctype-xdigit-tests: New file.
58752         * modules/unictype/decimal-digit-tests: New file.
58753         * modules/unictype/digit-tests: New file.
58754         * modules/unictype/mirror-tests: New file.
58755         * modules/unictype/numeric-tests: New file.
58756         * modules/unictype/property-alphabetic-tests: New file.
58757         * modules/unictype/property-ascii-hex-digit-tests: New file.
58758         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58759         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58760         * modules/unictype/property-bidi-block-separator-tests: New file.
58761         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58762         * modules/unictype/property-bidi-common-separator-tests: New file.
58763         * modules/unictype/property-bidi-control-tests: New file.
58764         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58765         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58766         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58767         * modules/unictype/property-bidi-european-digit-tests: New file.
58768         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58769         * modules/unictype/property-bidi-left-to-right-tests: New file.
58770         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58771         * modules/unictype/property-bidi-other-neutral-tests: New file.
58772         * modules/unictype/property-bidi-pdf-tests: New file.
58773         * modules/unictype/property-bidi-segment-separator-tests: New file.
58774         * modules/unictype/property-bidi-whitespace-tests: New file.
58775         * modules/unictype/property-byname-tests: New file.
58776         * modules/unictype/property-combining-tests: New file.
58777         * modules/unictype/property-composite-tests: New file.
58778         * modules/unictype/property-currency-symbol-tests: New file.
58779         * modules/unictype/property-dash-tests: New file.
58780         * modules/unictype/property-decimal-digit-tests: New file.
58781         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58782         * modules/unictype/property-deprecated-tests: New file.
58783         * modules/unictype/property-diacritic-tests: New file.
58784         * modules/unictype/property-extender-tests: New file.
58785         * modules/unictype/property-format-control-tests: New file.
58786         * modules/unictype/property-grapheme-base-tests: New file.
58787         * modules/unictype/property-grapheme-extend-tests: New file.
58788         * modules/unictype/property-grapheme-link-tests: New file.
58789         * modules/unictype/property-hex-digit-tests: New file.
58790         * modules/unictype/property-hyphen-tests: New file.
58791         * modules/unictype/property-id-continue-tests: New file.
58792         * modules/unictype/property-id-start-tests: New file.
58793         * modules/unictype/property-ideographic-tests: New file.
58794         * modules/unictype/property-ids-binary-operator-tests: New file.
58795         * modules/unictype/property-ids-trinary-operator-tests: New file.
58796         * modules/unictype/property-ignorable-control-tests: New file.
58797         * modules/unictype/property-iso-control-tests: New file.
58798         * modules/unictype/property-join-control-tests: New file.
58799         * modules/unictype/property-left-of-pair-tests: New file.
58800         * modules/unictype/property-line-separator-tests: New file.
58801         * modules/unictype/property-logical-order-exception-tests: New file.
58802         * modules/unictype/property-lowercase-tests: New file.
58803         * modules/unictype/property-math-tests: New file.
58804         * modules/unictype/property-non-break-tests: New file.
58805         * modules/unictype/property-not-a-character-tests: New file.
58806         * modules/unictype/property-numeric-tests: New file.
58807         * modules/unictype/property-other-alphabetic-tests: New file.
58808         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58809         * modules/unictype/property-other-grapheme-extend-tests: New file.
58810         * modules/unictype/property-other-id-continue-tests: New file.
58811         * modules/unictype/property-other-id-start-tests: New file.
58812         * modules/unictype/property-other-lowercase-tests: New file.
58813         * modules/unictype/property-other-math-tests: New file.
58814         * modules/unictype/property-other-uppercase-tests: New file.
58815         * modules/unictype/property-paired-punctuation-tests: New file.
58816         * modules/unictype/property-paragraph-separator-tests: New file.
58817         * modules/unictype/property-pattern-syntax-tests: New file.
58818         * modules/unictype/property-pattern-white-space-tests: New file.
58819         * modules/unictype/property-private-use-tests: New file.
58820         * modules/unictype/property-punctuation-tests: New file.
58821         * modules/unictype/property-quotation-mark-tests: New file.
58822         * modules/unictype/property-radical-tests: New file.
58823         * modules/unictype/property-sentence-terminal-tests: New file.
58824         * modules/unictype/property-soft-dotted-tests: New file.
58825         * modules/unictype/property-space-tests: New file.
58826         * modules/unictype/property-terminal-punctuation-tests: New file.
58827         * modules/unictype/property-test-tests: New file.
58828         * modules/unictype/property-titlecase-tests: New file.
58829         * modules/unictype/property-unassigned-code-value-tests: New file.
58830         * modules/unictype/property-unified-ideograph-tests: New file.
58831         * modules/unictype/property-uppercase-tests: New file.
58832         * modules/unictype/property-variation-selector-tests: New file.
58833         * modules/unictype/property-white-space-tests: New file.
58834         * modules/unictype/property-xid-continue-tests: New file.
58835         * modules/unictype/property-xid-start-tests: New file.
58836         * modules/unictype/property-zero-width-tests: New file.
58837         * modules/unictype/scripts-tests: New file.
58838         * modules/unictype/syntax-c-ident-tests: New file.
58839         * modules/unictype/syntax-c-whitespace-tests: New file.
58840         * modules/unictype/syntax-java-ident-tests: New file.
58841         * modules/unictype/syntax-java-whitespace-tests: New file.
58842         * tests/unictype/test-bidi_byname.c: New file.
58843         * tests/unictype/test-bidi_name.c: New file.
58844         * tests/unictype/test-bidi_of.c: New file.
58845         * tests/unictype/test-bidi_test.c: New file.
58846         * tests/unictype/test-block_list.c: New file.
58847         * tests/unictype/test-block_of.c: New file.
58848         * tests/unictype/test-block_test.c: New file.
58849         * tests/unictype/test-categ_and.c: New file.
58850         * tests/unictype/test-categ_and_not.c: New file.
58851         * tests/unictype/test-categ_byname.c: New file.
58852         * tests/unictype/test-categ_name.c: New file.
58853         * tests/unictype/test-categ_none.c: New file.
58854         * tests/unictype/test-categ_of.c: New file.
58855         * tests/unictype/test-categ_or.c: New file.
58856         * tests/unictype/test-categ_test_withtable.c: New file.
58857         * tests/unictype/test-combining.c: New file.
58858         * tests/unictype/test-decdigit.c: New file.
58859         * tests/unictype/test-digit.c: New file.
58860         * tests/unictype/test-mirror.c: New file.
58861         * tests/unictype/test-numeric.c: New file.
58862         * tests/unictype/test-pr_byname.c: New file.
58863         * tests/unictype/test-pr_test.c: New file.
58864         * tests/unictype/test-predicate-part1.h: New file.
58865         * tests/unictype/test-predicate-part2.h: New file.
58866         * tests/unictype/test-scripts.c: New file.
58867         * tests/unictype/test-sy_c_ident.c: New file.
58868         * tests/unictype/test-sy_java_ident.c: New file.
58869
58870         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58871         for Unicode 5.0.0.
58872         * tests/unictype/test-categ_Cc.c: Likewise.
58873         * tests/unictype/test-categ_Cf.c: Likewise.
58874         * tests/unictype/test-categ_Cn.c: Likewise.
58875         * tests/unictype/test-categ_Co.c: Likewise.
58876         * tests/unictype/test-categ_Cs.c: Likewise.
58877         * tests/unictype/test-categ_L.c: Likewise.
58878         * tests/unictype/test-categ_Ll.c: Likewise.
58879         * tests/unictype/test-categ_Lm.c: Likewise.
58880         * tests/unictype/test-categ_Lo.c: Likewise.
58881         * tests/unictype/test-categ_Lt.c: Likewise.
58882         * tests/unictype/test-categ_Lu.c: Likewise.
58883         * tests/unictype/test-categ_M.c: Likewise.
58884         * tests/unictype/test-categ_Mc.c: Likewise.
58885         * tests/unictype/test-categ_Me.c: Likewise.
58886         * tests/unictype/test-categ_Mn.c: Likewise.
58887         * tests/unictype/test-categ_N.c: Likewise.
58888         * tests/unictype/test-categ_Nd.c: Likewise.
58889         * tests/unictype/test-categ_Nl.c: Likewise.
58890         * tests/unictype/test-categ_No.c: Likewise.
58891         * tests/unictype/test-categ_P.c: Likewise.
58892         * tests/unictype/test-categ_Pc.c: Likewise.
58893         * tests/unictype/test-categ_Pd.c: Likewise.
58894         * tests/unictype/test-categ_Pe.c: Likewise.
58895         * tests/unictype/test-categ_Pf.c: Likewise.
58896         * tests/unictype/test-categ_Pi.c: Likewise.
58897         * tests/unictype/test-categ_Po.c: Likewise.
58898         * tests/unictype/test-categ_Ps.c: Likewise.
58899         * tests/unictype/test-categ_S.c: Likewise.
58900         * tests/unictype/test-categ_Sc.c: Likewise.
58901         * tests/unictype/test-categ_Sk.c: Likewise.
58902         * tests/unictype/test-categ_Sm.c: Likewise.
58903         * tests/unictype/test-categ_So.c: Likewise.
58904         * tests/unictype/test-categ_Z.c: Likewise.
58905         * tests/unictype/test-categ_Zl.c: Likewise.
58906         * tests/unictype/test-categ_Zp.c: Likewise.
58907         * tests/unictype/test-categ_Zs.c: Likewise.
58908         * tests/unictype/test-ctype_alnum.c: Likewise.
58909         * tests/unictype/test-ctype_alpha.c: Likewise.
58910         * tests/unictype/test-ctype_blank.c: Likewise.
58911         * tests/unictype/test-ctype_cntrl.c: Likewise.
58912         * tests/unictype/test-ctype_digit.c: Likewise.
58913         * tests/unictype/test-ctype_graph.c: Likewise.
58914         * tests/unictype/test-ctype_lower.c: Likewise.
58915         * tests/unictype/test-ctype_print.c: Likewise.
58916         * tests/unictype/test-ctype_punct.c: Likewise.
58917         * tests/unictype/test-ctype_space.c: Likewise.
58918         * tests/unictype/test-ctype_upper.c: Likewise.
58919         * tests/unictype/test-ctype_xdigit.c: Likewise.
58920         * tests/unictype/test-decdigit.h: Likewise.
58921         * tests/unictype/test-digit.h: Likewise.
58922         * tests/unictype/test-numeric.h: Likewise.
58923         * tests/unictype/test-pr_alphabetic.c: Likewise.
58924         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58925         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58926         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58927         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58928         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58929         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58930         * tests/unictype/test-pr_bidi_control.c: Likewise.
58931         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58932         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58933         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58934         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58935         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58936         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58937         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58938         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58939         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58940         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58941         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58942         * tests/unictype/test-pr_combining.c: Likewise.
58943         * tests/unictype/test-pr_composite.c: Likewise.
58944         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58945         * tests/unictype/test-pr_dash.c: Likewise.
58946         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58947         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58948         * tests/unictype/test-pr_deprecated.c: Likewise.
58949         * tests/unictype/test-pr_diacritic.c: Likewise.
58950         * tests/unictype/test-pr_extender.c: Likewise.
58951         * tests/unictype/test-pr_format_control.c: Likewise.
58952         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58953         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58954         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58955         * tests/unictype/test-pr_hex_digit.c: Likewise.
58956         * tests/unictype/test-pr_hyphen.c: Likewise.
58957         * tests/unictype/test-pr_id_continue.c: Likewise.
58958         * tests/unictype/test-pr_id_start.c: Likewise.
58959         * tests/unictype/test-pr_ideographic.c: Likewise.
58960         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58961         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58962         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58963         * tests/unictype/test-pr_iso_control.c: Likewise.
58964         * tests/unictype/test-pr_join_control.c: Likewise.
58965         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58966         * tests/unictype/test-pr_line_separator.c: Likewise.
58967         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58968         * tests/unictype/test-pr_lowercase.c: Likewise.
58969         * tests/unictype/test-pr_math.c: Likewise.
58970         * tests/unictype/test-pr_non_break.c: Likewise.
58971         * tests/unictype/test-pr_not_a_character.c: Likewise.
58972         * tests/unictype/test-pr_numeric.c: Likewise.
58973         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58974         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58975         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58976         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58977         * tests/unictype/test-pr_other_id_start.c: Likewise.
58978         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58979         * tests/unictype/test-pr_other_math.c: Likewise.
58980         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58981         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58982         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58983         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58984         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58985         * tests/unictype/test-pr_private_use.c: Likewise.
58986         * tests/unictype/test-pr_punctuation.c: Likewise.
58987         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58988         * tests/unictype/test-pr_radical.c: Likewise.
58989         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58990         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58991         * tests/unictype/test-pr_space.c: Likewise.
58992         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58993         * tests/unictype/test-pr_titlecase.c: Likewise.
58994         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58995         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58996         * tests/unictype/test-pr_uppercase.c: Likewise.
58997         * tests/unictype/test-pr_variation_selector.c: Likewise.
58998         * tests/unictype/test-pr_white_space.c: Likewise.
58999         * tests/unictype/test-pr_xid_continue.c: Likewise.
59000         * tests/unictype/test-pr_xid_start.c: Likewise.
59001         * tests/unictype/test-pr_zero_width.c: Likewise.
59002         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59003         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59004
59005 2007-11-12  Bruno Haible  <bruno@clisp.org>
59006
59007         Unicode character classification functions.
59008         * lib/unictype.h: New file.
59009         * modules/unictype/base: New file.
59010         * modules/unictype/category-L: New file.
59011         * modules/unictype/category-Lu: New file.
59012         * modules/unictype/category-Ll: New file.
59013         * modules/unictype/category-Lt: New file.
59014         * modules/unictype/category-Lm: New file.
59015         * modules/unictype/category-Lo: New file.
59016         * modules/unictype/category-M: New file.
59017         * modules/unictype/category-Mn: New file.
59018         * modules/unictype/category-Mc: New file.
59019         * modules/unictype/category-Me: New file.
59020         * modules/unictype/category-N: New file.
59021         * modules/unictype/category-Nd: New file.
59022         * modules/unictype/category-Nl: New file.
59023         * modules/unictype/category-No: New file.
59024         * modules/unictype/category-P: New file.
59025         * modules/unictype/category-Pc: New file.
59026         * modules/unictype/category-Pd: New file.
59027         * modules/unictype/category-Ps: New file.
59028         * modules/unictype/category-Pe: New file.
59029         * modules/unictype/category-Pi: New file.
59030         * modules/unictype/category-Pf: New file.
59031         * modules/unictype/category-Po: New file.
59032         * modules/unictype/category-S: New file.
59033         * modules/unictype/category-Sm: New file.
59034         * modules/unictype/category-Sc: New file.
59035         * modules/unictype/category-Sk: New file.
59036         * modules/unictype/category-So: New file.
59037         * modules/unictype/category-Z: New file.
59038         * modules/unictype/category-Zs: New file.
59039         * modules/unictype/category-Zl: New file.
59040         * modules/unictype/category-Zp: New file.
59041         * modules/unictype/category-C: New file.
59042         * modules/unictype/category-Cc: New file.
59043         * modules/unictype/category-Cf: New file.
59044         * modules/unictype/category-Cs: New file.
59045         * modules/unictype/category-Co: New file.
59046         * modules/unictype/category-Cn: New file.
59047         * modules/unictype/category-or: New file.
59048         * modules/unictype/category-of: New file.
59049         * modules/unictype/category-test: New file.
59050         * modules/unictype/category-test-withtable: New file.
59051         * modules/unictype/category-byname: New file.
59052         * modules/unictype/category-none: New file.
59053         * modules/unictype/category-and: New file.
59054         * modules/unictype/category-and-not: New file.
59055         * modules/unictype/category-name: New file.
59056         * modules/unictype/combining-class: New file.
59057         * modules/unictype/category-all: New file.
59058         * modules/unictype/bidicategory-all: New file.
59059         * modules/unictype/bidicategory-byname: New file.
59060         * modules/unictype/bidicategory-name: New file.
59061         * modules/unictype/bidicategory-of: New file.
59062         * modules/unictype/bidicategory-test: New file.
59063         * modules/unictype/decimal-digit: New file.
59064         * modules/unictype/digit: New file.
59065         * modules/unictype/numeric: New file.
59066         * modules/unictype/mirror: New file.
59067         * modules/unictype/property-white-space: New file.
59068         * modules/unictype/property-alphabetic: New file.
59069         * modules/unictype/property-other-alphabetic: New file.
59070         * modules/unictype/property-not-a-character: New file.
59071         * modules/unictype/property-default-ignorable-code-point: New file.
59072         * modules/unictype/property-other-default-ignorable-code-point: New
59073         file.
59074         * modules/unictype/property-deprecated: New file.
59075         * modules/unictype/property-logical-order-exception: New file.
59076         * modules/unictype/property-variation-selector: New file.
59077         * modules/unictype/property-private-use: New file.
59078         * modules/unictype/property-unassigned-code-value: New file.
59079         * modules/unictype/property-uppercase: New file.
59080         * modules/unictype/property-other-uppercase: New file.
59081         * modules/unictype/property-lowercase: New file.
59082         * modules/unictype/property-other-lowercase: New file.
59083         * modules/unictype/property-titlecase: New file.
59084         * modules/unictype/property-soft-dotted: New file.
59085         * modules/unictype/property-id-start: New file.
59086         * modules/unictype/property-other-id-start: New file.
59087         * modules/unictype/property-id-continue: New file.
59088         * modules/unictype/property-other-id-continue: New file.
59089         * modules/unictype/property-xid-start: New file.
59090         * modules/unictype/property-xid-continue: New file.
59091         * modules/unictype/property-pattern-white-space: New file.
59092         * modules/unictype/property-pattern-syntax: New file.
59093         * modules/unictype/property-join-control: New file.
59094         * modules/unictype/property-grapheme-base: New file.
59095         * modules/unictype/property-grapheme-extend: New file.
59096         * modules/unictype/property-other-grapheme-extend: New file.
59097         * modules/unictype/property-grapheme-link: New file.
59098         * modules/unictype/property-bidi-control: New file.
59099         * modules/unictype/property-bidi-left-to-right: New file.
59100         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59101         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59102         * modules/unictype/property-bidi-european-digit: New file.
59103         * modules/unictype/property-bidi-eur-num-separator: New file.
59104         * modules/unictype/property-bidi-eur-num-terminator: New file.
59105         * modules/unictype/property-bidi-arabic-digit: New file.
59106         * modules/unictype/property-bidi-common-separator: New file.
59107         * modules/unictype/property-bidi-block-separator: New file.
59108         * modules/unictype/property-bidi-segment-separator: New file.
59109         * modules/unictype/property-bidi-whitespace: New file.
59110         * modules/unictype/property-bidi-non-spacing-mark: New file.
59111         * modules/unictype/property-bidi-boundary-neutral: New file.
59112         * modules/unictype/property-bidi-pdf: New file.
59113         * modules/unictype/property-bidi-embedding-or-override: New file.
59114         * modules/unictype/property-bidi-other-neutral: New file.
59115         * modules/unictype/property-hex-digit: New file.
59116         * modules/unictype/property-ascii-hex-digit: New file.
59117         * modules/unictype/property-ideographic: New file.
59118         * modules/unictype/property-unified-ideograph: New file.
59119         * modules/unictype/property-radical: New file.
59120         * modules/unictype/property-ids-binary-operator: New file.
59121         * modules/unictype/property-ids-trinary-operator: New file.
59122         * modules/unictype/property-zero-width: New file.
59123         * modules/unictype/property-space: New file.
59124         * modules/unictype/property-non-break: New file.
59125         * modules/unictype/property-iso-control: New file.
59126         * modules/unictype/property-format-control: New file.
59127         * modules/unictype/property-dash: New file.
59128         * modules/unictype/property-hyphen: New file.
59129         * modules/unictype/property-punctuation: New file.
59130         * modules/unictype/property-line-separator: New file.
59131         * modules/unictype/property-paragraph-separator: New file.
59132         * modules/unictype/property-quotation-mark: New file.
59133         * modules/unictype/property-sentence-terminal: New file.
59134         * modules/unictype/property-terminal-punctuation: New file.
59135         * modules/unictype/property-currency-symbol: New file.
59136         * modules/unictype/property-math: New file.
59137         * modules/unictype/property-other-math: New file.
59138         * modules/unictype/property-paired-punctuation: New file.
59139         * modules/unictype/property-left-of-pair: New file.
59140         * modules/unictype/property-combining: New file.
59141         * modules/unictype/property-composite: New file.
59142         * modules/unictype/property-decimal-digit: New file.
59143         * modules/unictype/property-numeric: New file.
59144         * modules/unictype/property-diacritic: New file.
59145         * modules/unictype/property-extender: New file.
59146         * modules/unictype/property-ignorable-control: New file.
59147         * modules/unictype/property-test: New file.
59148         * modules/unictype/property-byname: New file.
59149         * modules/unictype/property-all: New file.
59150         * modules/unictype/scripts: New file.
59151         * modules/unictype/scripts-all: New file.
59152         * modules/unictype/block-of: New file.
59153         * modules/unictype/block-test: New file.
59154         * modules/unictype/block-list: New file.
59155         * modules/unictype/block-all: New file.
59156         * modules/unictype/syntax-c-whitespace: New file.
59157         * modules/unictype/syntax-java-whitespace: New file.
59158         * modules/unictype/syntax-c-ident: New file.
59159         * modules/unictype/syntax-java-ident: New file.
59160         * modules/unictype/ctype-alnum: New file.
59161         * modules/unictype/ctype-alpha: New file.
59162         * modules/unictype/ctype-cntrl: New file.
59163         * modules/unictype/ctype-digit: New file.
59164         * modules/unictype/ctype-graph: New file.
59165         * modules/unictype/ctype-lower: New file.
59166         * modules/unictype/ctype-print: New file.
59167         * modules/unictype/ctype-punct: New file.
59168         * modules/unictype/ctype-space: New file.
59169         * modules/unictype/ctype-upper: New file.
59170         * modules/unictype/ctype-xdigit: New file.
59171         * modules/unictype/ctype-blank: New file.
59172         * lib/unictype/bidi_byname.c: New file.
59173         * lib/unictype/bidi_name.c: New file.
59174         * lib/unictype/bidi_of.c: New file.
59175         * lib/unictype/bidi_test.c: New file.
59176         * lib/unictype/bitmap.h: New file.
59177         * lib/unictype/block_test.c: New file.
59178         * lib/unictype/blocks.c: New file.
59179         * lib/unictype/categ_C.c: New file.
59180         * lib/unictype/categ_Cc.c: New file.
59181         * lib/unictype/categ_Cf.c: New file.
59182         * lib/unictype/categ_Cn.c: New file.
59183         * lib/unictype/categ_Co.c: New file.
59184         * lib/unictype/categ_Cs.c: New file.
59185         * lib/unictype/categ_L.c: New file.
59186         * lib/unictype/categ_Ll.c: New file.
59187         * lib/unictype/categ_Lm.c: New file.
59188         * lib/unictype/categ_Lo.c: New file.
59189         * lib/unictype/categ_Lt.c: New file.
59190         * lib/unictype/categ_Lu.c: New file.
59191         * lib/unictype/categ_M.c: New file.
59192         * lib/unictype/categ_Mc.c: New file.
59193         * lib/unictype/categ_Me.c: New file.
59194         * lib/unictype/categ_Mn.c: New file.
59195         * lib/unictype/categ_N.c: New file.
59196         * lib/unictype/categ_Nd.c: New file.
59197         * lib/unictype/categ_Nl.c: New file.
59198         * lib/unictype/categ_No.c: New file.
59199         * lib/unictype/categ_P.c: New file.
59200         * lib/unictype/categ_Pc.c: New file.
59201         * lib/unictype/categ_Pd.c: New file.
59202         * lib/unictype/categ_Pe.c: New file.
59203         * lib/unictype/categ_Pf.c: New file.
59204         * lib/unictype/categ_Pi.c: New file.
59205         * lib/unictype/categ_Po.c: New file.
59206         * lib/unictype/categ_Ps.c: New file.
59207         * lib/unictype/categ_S.c: New file.
59208         * lib/unictype/categ_Sc.c: New file.
59209         * lib/unictype/categ_Sk.c: New file.
59210         * lib/unictype/categ_Sm.c: New file.
59211         * lib/unictype/categ_So.c: New file.
59212         * lib/unictype/categ_Z.c: New file.
59213         * lib/unictype/categ_Zl.c: New file.
59214         * lib/unictype/categ_Zp.c: New file.
59215         * lib/unictype/categ_Zs.c: New file.
59216         * lib/unictype/categ_and.c: New file.
59217         * lib/unictype/categ_and_not.c: New file.
59218         * lib/unictype/categ_byname.c: New file.
59219         * lib/unictype/categ_name.c: New file.
59220         * lib/unictype/categ_none.c: New file.
59221         * lib/unictype/categ_of.c: New file.
59222         * lib/unictype/categ_or.c: New file.
59223         * lib/unictype/categ_test.c: New file.
59224         * lib/unictype/combining.c: New file.
59225         * lib/unictype/ctype_alnum.c: New file.
59226         * lib/unictype/ctype_alpha.c: New file.
59227         * lib/unictype/ctype_blank.c: New file.
59228         * lib/unictype/ctype_cntrl.c: New file.
59229         * lib/unictype/ctype_digit.c: New file.
59230         * lib/unictype/ctype_graph.c: New file.
59231         * lib/unictype/ctype_lower.c: New file.
59232         * lib/unictype/ctype_print.c: New file.
59233         * lib/unictype/ctype_punct.c: New file.
59234         * lib/unictype/ctype_space.c: New file.
59235         * lib/unictype/ctype_upper.c: New file.
59236         * lib/unictype/ctype_xdigit.c: New file.
59237         * lib/unictype/decdigit.c: New file.
59238         * lib/unictype/digit.c: New file.
59239         * lib/unictype/identsyntaxmap.h: New file.
59240         * lib/unictype/mirror.c: New file.
59241         * lib/unictype/numeric.c: New file.
59242         * lib/unictype/pr_alphabetic.c: New file.
59243         * lib/unictype/pr_ascii_hex_digit.c: New file.
59244         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59245         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59246         * lib/unictype/pr_bidi_block_separator.c: New file.
59247         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59248         * lib/unictype/pr_bidi_common_separator.c: New file.
59249         * lib/unictype/pr_bidi_control.c: New file.
59250         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59251         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59252         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59253         * lib/unictype/pr_bidi_european_digit.c: New file.
59254         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59255         * lib/unictype/pr_bidi_left_to_right.c: New file.
59256         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59257         * lib/unictype/pr_bidi_other_neutral.c: New file.
59258         * lib/unictype/pr_bidi_pdf.c: New file.
59259         * lib/unictype/pr_bidi_segment_separator.c: New file.
59260         * lib/unictype/pr_bidi_whitespace.c: New file.
59261         * lib/unictype/pr_byname.c: New file.
59262         * lib/unictype/pr_byname.gperf: New file.
59263         * lib/unictype/pr_combining.c: New file.
59264         * lib/unictype/pr_composite.c: New file.
59265         * lib/unictype/pr_currency_symbol.c: New file.
59266         * lib/unictype/pr_dash.c: New file.
59267         * lib/unictype/pr_decimal_digit.c: New file.
59268         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59269         * lib/unictype/pr_deprecated.c: New file.
59270         * lib/unictype/pr_diacritic.c: New file.
59271         * lib/unictype/pr_extender.c: New file.
59272         * lib/unictype/pr_format_control.c: New file.
59273         * lib/unictype/pr_grapheme_base.c: New file.
59274         * lib/unictype/pr_grapheme_extend.c: New file.
59275         * lib/unictype/pr_grapheme_link.c: New file.
59276         * lib/unictype/pr_hex_digit.c: New file.
59277         * lib/unictype/pr_hyphen.c: New file.
59278         * lib/unictype/pr_id_continue.c: New file.
59279         * lib/unictype/pr_id_start.c: New file.
59280         * lib/unictype/pr_ideographic.c: New file.
59281         * lib/unictype/pr_ids_binary_operator.c: New file.
59282         * lib/unictype/pr_ids_trinary_operator.c: New file.
59283         * lib/unictype/pr_ignorable_control.c: New file.
59284         * lib/unictype/pr_iso_control.c: New file.
59285         * lib/unictype/pr_join_control.c: New file.
59286         * lib/unictype/pr_left_of_pair.c: New file.
59287         * lib/unictype/pr_line_separator.c: New file.
59288         * lib/unictype/pr_logical_order_exception.c: New file.
59289         * lib/unictype/pr_lowercase.c: New file.
59290         * lib/unictype/pr_math.c: New file.
59291         * lib/unictype/pr_non_break.c: New file.
59292         * lib/unictype/pr_not_a_character.c: New file.
59293         * lib/unictype/pr_numeric.c: New file.
59294         * lib/unictype/pr_other_alphabetic.c: New file.
59295         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59296         * lib/unictype/pr_other_grapheme_extend.c: New file.
59297         * lib/unictype/pr_other_id_continue.c: New file.
59298         * lib/unictype/pr_other_id_start.c: New file.
59299         * lib/unictype/pr_other_lowercase.c: New file.
59300         * lib/unictype/pr_other_math.c: New file.
59301         * lib/unictype/pr_other_uppercase.c: New file.
59302         * lib/unictype/pr_paired_punctuation.c: New file.
59303         * lib/unictype/pr_paragraph_separator.c: New file.
59304         * lib/unictype/pr_pattern_syntax.c: New file.
59305         * lib/unictype/pr_pattern_white_space.c: New file.
59306         * lib/unictype/pr_private_use.c: New file.
59307         * lib/unictype/pr_punctuation.c: New file.
59308         * lib/unictype/pr_quotation_mark.c: New file.
59309         * lib/unictype/pr_radical.c: New file.
59310         * lib/unictype/pr_sentence_terminal.c: New file.
59311         * lib/unictype/pr_soft_dotted.c: New file.
59312         * lib/unictype/pr_space.c: New file.
59313         * lib/unictype/pr_terminal_punctuation.c: New file.
59314         * lib/unictype/pr_test.c: New file.
59315         * lib/unictype/pr_titlecase.c: New file.
59316         * lib/unictype/pr_unassigned_code_value.c: New file.
59317         * lib/unictype/pr_unified_ideograph.c: New file.
59318         * lib/unictype/pr_uppercase.c: New file.
59319         * lib/unictype/pr_variation_selector.c: New file.
59320         * lib/unictype/pr_white_space.c: New file.
59321         * lib/unictype/pr_xid_continue.c: New file.
59322         * lib/unictype/pr_xid_start.c: New file.
59323         * lib/unictype/pr_zero_width.c: New file.
59324         * lib/unictype/scripts.c: New file.
59325         * lib/unictype/sy_c_ident.c: New file.
59326         * lib/unictype/sy_c_whitespace.c: New file.
59327         * lib/unictype/sy_java_ident.c: New file.
59328         * lib/unictype/sy_java_whitespace.c: New file.
59329
59330         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59331         Unicode 5.0.0.
59332         * lib/unictype/blocks.h: Likewise.
59333         * lib/unictype/categ_C.h: Likewise.
59334         * lib/unictype/categ_Cc.h: Likewise.
59335         * lib/unictype/categ_Cf.h: Likewise.
59336         * lib/unictype/categ_Cn.h: Likewise.
59337         * lib/unictype/categ_Co.h: Likewise.
59338         * lib/unictype/categ_Cs.h: Likewise.
59339         * lib/unictype/categ_L.h: Likewise.
59340         * lib/unictype/categ_Ll.h: Likewise.
59341         * lib/unictype/categ_Lm.h: Likewise.
59342         * lib/unictype/categ_Lo.h: Likewise.
59343         * lib/unictype/categ_Lt.h: Likewise.
59344         * lib/unictype/categ_Lu.h: Likewise.
59345         * lib/unictype/categ_M.h: Likewise.
59346         * lib/unictype/categ_Mc.h: Likewise.
59347         * lib/unictype/categ_Me.h: Likewise.
59348         * lib/unictype/categ_Mn.h: Likewise.
59349         * lib/unictype/categ_N.h: Likewise.
59350         * lib/unictype/categ_Nd.h: Likewise.
59351         * lib/unictype/categ_Nl.h: Likewise.
59352         * lib/unictype/categ_No.h: Likewise.
59353         * lib/unictype/categ_P.h: Likewise.
59354         * lib/unictype/categ_Pc.h: Likewise.
59355         * lib/unictype/categ_Pd.h: Likewise.
59356         * lib/unictype/categ_Pe.h: Likewise.
59357         * lib/unictype/categ_Pf.h: Likewise.
59358         * lib/unictype/categ_Pi.h: Likewise.
59359         * lib/unictype/categ_Po.h: Likewise.
59360         * lib/unictype/categ_Ps.h: Likewise.
59361         * lib/unictype/categ_S.h: Likewise.
59362         * lib/unictype/categ_Sc.h: Likewise.
59363         * lib/unictype/categ_Sk.h: Likewise.
59364         * lib/unictype/categ_Sm.h: Likewise.
59365         * lib/unictype/categ_So.h: Likewise.
59366         * lib/unictype/categ_Z.h: Likewise.
59367         * lib/unictype/categ_Zl.h: Likewise.
59368         * lib/unictype/categ_Zp.h: Likewise.
59369         * lib/unictype/categ_Zs.h: Likewise.
59370         * lib/unictype/categ_of.h: Likewise.
59371         * lib/unictype/combining.h: Likewise.
59372         * lib/unictype/ctype_alnum.h: Likewise.
59373         * lib/unictype/ctype_alpha.h: Likewise.
59374         * lib/unictype/ctype_blank.h: Likewise.
59375         * lib/unictype/ctype_cntrl.h: Likewise.
59376         * lib/unictype/ctype_digit.h: Likewise.
59377         * lib/unictype/ctype_graph.h: Likewise.
59378         * lib/unictype/ctype_lower.h: Likewise.
59379         * lib/unictype/ctype_print.h: Likewise.
59380         * lib/unictype/ctype_punct.h: Likewise.
59381         * lib/unictype/ctype_space.h: Likewise.
59382         * lib/unictype/ctype_upper.h: Likewise.
59383         * lib/unictype/ctype_xdigit.h: Likewise.
59384         * lib/unictype/decdigit.h: Likewise.
59385         * lib/unictype/digit.h: Likewise.
59386         * lib/unictype/mirror.h: Likewise.
59387         * lib/unictype/numeric.h: Likewise.
59388         * lib/unictype/pr_alphabetic.h: Likewise.
59389         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59390         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59391         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59392         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59393         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59394         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59395         * lib/unictype/pr_bidi_control.h: Likewise.
59396         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59397         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59398         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59399         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59400         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59401         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59402         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59403         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59404         * lib/unictype/pr_bidi_pdf.h: Likewise.
59405         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59406         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59407         * lib/unictype/pr_combining.h: Likewise.
59408         * lib/unictype/pr_composite.h: Likewise.
59409         * lib/unictype/pr_currency_symbol.h: Likewise.
59410         * lib/unictype/pr_dash.h: Likewise.
59411         * lib/unictype/pr_decimal_digit.h: Likewise.
59412         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59413         * lib/unictype/pr_deprecated.h: Likewise.
59414         * lib/unictype/pr_diacritic.h: Likewise.
59415         * lib/unictype/pr_extender.h: Likewise.
59416         * lib/unictype/pr_format_control.h: Likewise.
59417         * lib/unictype/pr_grapheme_base.h: Likewise.
59418         * lib/unictype/pr_grapheme_extend.h: Likewise.
59419         * lib/unictype/pr_grapheme_link.h: Likewise.
59420         * lib/unictype/pr_hex_digit.h: Likewise.
59421         * lib/unictype/pr_hyphen.h: Likewise.
59422         * lib/unictype/pr_id_continue.h: Likewise.
59423         * lib/unictype/pr_id_start.h: Likewise.
59424         * lib/unictype/pr_ideographic.h: Likewise.
59425         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59426         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59427         * lib/unictype/pr_ignorable_control.h: Likewise.
59428         * lib/unictype/pr_iso_control.h: Likewise.
59429         * lib/unictype/pr_join_control.h: Likewise.
59430         * lib/unictype/pr_left_of_pair.h: Likewise.
59431         * lib/unictype/pr_line_separator.h: Likewise.
59432         * lib/unictype/pr_logical_order_exception.h: Likewise.
59433         * lib/unictype/pr_lowercase.h: Likewise.
59434         * lib/unictype/pr_math.h: Likewise.
59435         * lib/unictype/pr_non_break.h: Likewise.
59436         * lib/unictype/pr_not_a_character.h: Likewise.
59437         * lib/unictype/pr_numeric.h: Likewise.
59438         * lib/unictype/pr_other_alphabetic.h: Likewise.
59439         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59440         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59441         * lib/unictype/pr_other_id_continue.h: Likewise.
59442         * lib/unictype/pr_other_id_start.h: Likewise.
59443         * lib/unictype/pr_other_lowercase.h: Likewise.
59444         * lib/unictype/pr_other_math.h: Likewise.
59445         * lib/unictype/pr_other_uppercase.h: Likewise.
59446         * lib/unictype/pr_paired_punctuation.h: Likewise.
59447         * lib/unictype/pr_paragraph_separator.h: Likewise.
59448         * lib/unictype/pr_pattern_syntax.h: Likewise.
59449         * lib/unictype/pr_pattern_white_space.h: Likewise.
59450         * lib/unictype/pr_private_use.h: Likewise.
59451         * lib/unictype/pr_punctuation.h: Likewise.
59452         * lib/unictype/pr_quotation_mark.h: Likewise.
59453         * lib/unictype/pr_radical.h: Likewise.
59454         * lib/unictype/pr_sentence_terminal.h: Likewise.
59455         * lib/unictype/pr_soft_dotted.h: Likewise.
59456         * lib/unictype/pr_space.h: Likewise.
59457         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59458         * lib/unictype/pr_titlecase.h: Likewise.
59459         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59460         * lib/unictype/pr_unified_ideograph.h: Likewise.
59461         * lib/unictype/pr_uppercase.h: Likewise.
59462         * lib/unictype/pr_variation_selector.h: Likewise.
59463         * lib/unictype/pr_white_space.h: Likewise.
59464         * lib/unictype/pr_xid_continue.h: Likewise.
59465         * lib/unictype/pr_xid_start.h: Likewise.
59466         * lib/unictype/pr_zero_width.h: Likewise.
59467         * lib/unictype/scripts.h: Likewise.
59468         * lib/unictype/scripts_byname.gperf: Likewise.
59469         * lib/unictype/sy_c_ident.h: Likewise.
59470         * lib/unictype/sy_c_whitespace.h: Likewise.
59471         * lib/unictype/sy_java_ident.h: Likewise.
59472         * lib/unictype/sy_java_whitespace.h: Likewise.
59473
59474         * lib/unictype/Makefile: New file.
59475         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59476         glibc.
59477         * lib/unictype/3level.h: New file, copied from glibc.
59478         * lib/unictype/3levelbit.h: New file.
59479
59480 2007-11-11  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/gperf: New file.
59483         * modules/iconv_open (Depends-on): Add it.
59484         (Makefile.am): Remove the GPERF definition.
59485
59486 2007-11-11  Bruno Haible  <bruno@clisp.org>
59487
59488         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59489         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59490
59491 2007-11-11  Bruno Haible  <bruno@clisp.org>
59492
59493         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59494         (usage): Remove function.
59495
59496 2007-11-11  Bruno Haible  <bruno@clisp.org>
59497
59498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59499         gl_FUNC_CEILF_LIBS.
59500         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59501         gl_FUNC_CEIL_LIBS.
59502         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59503         gl_FUNC_CEILL_LIBS.
59504         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59505         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59506         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59507
59508 2007-11-11  Bruno Haible  <bruno@clisp.org>
59509
59510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59511         roundf were declared but do not exist on functions.
59512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59513         roundl were declared but do not exist on functions.
59514         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59515         HAVE_FLOORL_AND_CEILL, respectively.
59516         Needed for Sun C on Solaris 10.
59517
59518 2007-11-11  Bruno Haible  <bruno@clisp.org>
59519
59520         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59521         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59522         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59523         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59525         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59526         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59527         HAVE_DECL_ROUNDF.
59528         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59529         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59531         of HAVE_DECL_ROUND*.
59532         * modules/math (Makefile.am): Update.
59533
59534 2007-11-10  Bruno Haible  <bruno@clisp.org>
59535
59536         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59537         ptrdiff_t as m4/intl.m4.
59538
59539 2007-11-10  Jim Meyering  <meyering@redhat.com>
59540
59541         Avoid link failure for the argmatch test.
59542         * tests/test-argmatch.c (usage): Define function to avoid a link
59543         failure: argmatch_die requires a usage function.
59544
59545 2007-11-09  Bruno Haible  <bruno@clisp.org>
59546
59547         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59548         * doc/functions/vsnprintf.texi: Likewise.
59549         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59550         with a size argument < 2.
59551
59552 2007-11-09  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59555         buffer. Fixes an inefficiency introduced on 2007-11-03.
59556
59557 2007-11-09  Bruno Haible  <bruno@clisp.org>
59558
59559         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59560         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59561
59562 2007-11-08  Jim Meyering  <meyering@redhat.com>
59563
59564         Change cache variable name prefix "jm_" to "gl_" everywhere.
59565         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59566         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59567         * m4/uptime.m4: s/gl_/jm_/
59568
59569 2007-11-07  Bruno Haible  <bruno@clisp.org>
59570
59571         Update to GNU gettext 0.17.
59572         * m4/intl.m4: Update to GNU gettext 0.17.
59573         * m4/po.m4: Likewise.
59574         * modules/gettext (Files): Remove m4/ulonglong.m4.
59575         (configure.ac): Require gettext infrastructure from version 0.17.
59576
59577 2007-11-06  Bruno Haible  <bruno@clisp.org>
59578
59579         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59580         symbolic values are not defined in a public header.
59581         * lib/freadable.c (freadable) [QNX]: Likewise.
59582         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59583         * lib/freading.c (freading) [QNX]: Likewise.
59584         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59585         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59586         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59587         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59588         Reported by Alain Magloire.
59589
59590         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59591
59592 2007-11-05  Bruno Haible  <bruno@clisp.org>
59593
59594         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59595         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59596         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59597         Reported by Eric Blake.
59598
59599 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59600             Bruno Haible  <bruno@clisp.org>
59601
59602         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59603         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59604         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59605         (malloc): Undefine also before including <stdlib.h>.
59606         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59607         Needed on OSF/1 4.0.
59608
59609 2007-11-05  Jim Meyering  <meyering@redhat.com>
59610
59611         git-version-gen: sync from coreutils.
59612         * build-aux/git-version-gen: Add comments.
59613         Change the first '-' to '.' in the snapshot version string,
59614         e.g., 6.9-377-08144 -> 6.9.377-08144
59615         Remove first parameter.
59616         Don't declare a version "-dirty" merely because a time
59617         stamp has changed.
59618
59619 2007-11-04  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/lock.h: Protect all macro definitions containing an 'if'
59622         statement through a "do { ... } while (0)".
59623         * lib/tls.h: Likewise.
59624
59625 2007-11-04  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59628
59629 2007-11-04  Bruno Haible  <bruno@clisp.org>
59630
59631         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59632         * modules/fprintf-posix (Depends-on): Add nocrash.
59633         * modules/snprintf-posix (Depends-on): Likewise.
59634         * modules/sprintf-posix (Depends-on): Likewise.
59635         * modules/vasnprintf-posix (Depends-on): Likewise.
59636         * modules/vasprintf-posix (Depends-on): Likewise.
59637         * modules/vfprintf-posix (Depends-on): Likewise.
59638         * modules/vsnprintf-posix (Depends-on): Likewise.
59639         * modules/vsprintf-posix (Depends-on): Likewise.
59640         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59641         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59644         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59645         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59646         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59647
59648 2007-11-04  Bruno Haible  <bruno@clisp.org>
59649
59650         * modules/nocrash: New file.
59651         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59652         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59653
59654 2007-11-04  Bruno Haible  <bruno@clisp.org>
59655
59656         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59657         precision handling.
59658         * tests/test-vasprintf-posix.c (test_function): Likewise.
59659         * tests/test-snprintf-posix.h (test_function): Likewise.
59660         * tests/test-sprintf-posix.h (test_function): Likewise.
59661
59662         Fix *printf behaviour for large precisions on mingw and BeOS.
59663         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59664         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59666         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59668         gl_PRINTF_PRECISION and test its result. Invoke
59669         gl_PREREQ_VASNPRINTF_PRECISION.
59670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59677         * doc/functions/fprintf.texi: Update.
59678         * doc/functions/printf.texi: Update.
59679         * doc/functions/snprintf.texi: Update.
59680         * doc/functions/sprintf.texi: Update.
59681         * doc/functions/vfprintf.texi: Update.
59682         * doc/functions/vprintf.texi: Update.
59683         * doc/functions/vsnprintf.texi: Update.
59684         * doc/functions/vsprintf.texi: Update.
59685
59686 2007-11-04  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59689
59690 2007-11-04  Bruno Haible  <bruno@clisp.org>
59691
59692         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59693         Reported by Sylvain Beucler <beuc@gnu.org>.
59694
59695 2007-11-03  Bruno Haible  <bruno@clisp.org>
59696
59697         * tests/test-fprintf-posix2.sh: New file.
59698         * tests/test-fprintf-posix2.c: New file.
59699         * modules/fprintf-posix-tests (Files): Add them.
59700         (TESTS): Add test-fprintf-posix2.sh.
59701         (configure.ac): Check for getrlimit and setrlimit.
59702         (check_PROGRAMS): Add test-fprintf-posix2.
59703
59704         * tests/test-printf-posix2.sh: New file.
59705         * tests/test-printf-posix2.c: New file.
59706         * modules/printf-posix-tests (Files): Add them.
59707         (TESTS): Add test-printf-posix2.sh.
59708         (configure.ac): Check for getrlimit and setrlimit.
59709         (check_PROGRAMS): Add test-printf-posix2.
59710
59711         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59712         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59713         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59714         (decode_double): New function, copied from decode_long_double.
59715         (scale10_round_decimal_decoded): New function, extracted from
59716         scale10_round_decimal_long_double.
59717         (scale10_round_decimal_long_double): Use it.
59718         (scale10_round_decimal_double): New function.
59719         (floorlog10): New function.
59720         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59722         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59724         gl_PRINTF_ENOMEM and test its result. Invoke
59725         gl_PREREQ_VASNPRINTF_ENOMEM.
59726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59733         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59734         * modules/snprintf-posix (Depends-on): Likewise.
59735         * modules/sprintf-posix (Depends-on): Likewise.
59736         * modules/vasnprintf-posix (Depends-on): Likewise.
59737         * modules/vasprintf-posix (Depends-on): Likewise.
59738         * modules/vfprintf-posix (Depends-on): Likewise.
59739         * modules/vsnprintf-posix (Depends-on): Likewise.
59740         * modules/vsprintf-posix (Depends-on): Likewise.
59741         * doc/functions/fprintf.texi: Update.
59742         * doc/functions/printf.texi: Update.
59743         * doc/functions/snprintf.texi: Update.
59744         * doc/functions/sprintf.texi: Update.
59745         * doc/functions/vfprintf.texi: Update.
59746         * doc/functions/vprintf.texi: Update.
59747         * doc/functions/vsnprintf.texi: Update.
59748         * doc/functions/vsprintf.texi: Update.
59749
59750 2007-11-03  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/frexp-nolibm-tests: New file.
59753
59754         * modules/frexp-nolibm: New file.
59755         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59756
59757 2007-11-03  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59760         value is C99 compliant.
59761         Needed for OSF/1 5.1.
59762
59763 2007-11-03  Bruno Haible  <bruno@clisp.org>
59764
59765         Fix out-of-memory handling of vasnprintf.
59766         * lib/printf-parse.c: Include <errno.h>.
59767         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59768         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59769         is already set.
59770
59771 2007-11-02  Eric Blake  <ebb9@byu.net>
59772
59773         Fix tests on cygwin.
59774         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59775
59776 2007-11-01  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59779         warning.
59780         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59781         needed for POSIX compatibility.
59782
59783 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59786         for compatibility with GNU.
59787
59788 2007-11-01  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59791         (putenv): Renamed from rpl_putenv. Change argument type from
59792         'const char *' to 'char *'.
59793         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59794         of defining putenv in config.h, just set REPLACE_PUTENV.
59795         * modules/putenv (Depends-on): Add stdlib.
59796         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59797         (Include): Use <stdlib.h>.
59798         * lib/stdlib.in.h (putenv): New declaration.
59799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59800         REPLACE_PUTENV.
59801         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59802         REPLACE_PUTENV.
59803         Needed for MacOS X 10.5.0.
59804         Reported by Peter O'Gorman <peter@pogma.com>.
59805
59806 2007-11-01  Jim Meyering  <meyering@redhat.com>
59807
59808         Treat an empty date string exactly like "0".
59809         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59810         if the remaining date string (to be parsed) is empty, use "0".
59811         Reported by Mischa Molhoek and discussed in this thread:
59812         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59813
59814 2007-10-31  Bruno Haible  <bruno@clisp.org>
59815
59816         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59817         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59818         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59819         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59820         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59821         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59822
59823 2007-10-31  Bruno Haible  <bruno@clisp.org>
59824
59825         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59826         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59827         (AC_TYPE_LONG_LONG_INT): Use it.
59828         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59829         it as well.
59830         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59831         to m4/longlong.m4.
59832         * modules/stdint (Files): Remove m4/ulonglong.m4.
59833         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59834         m4/ulonglong.m4.
59835         * modules/strtoumax (Files): Likewise.
59836
59837 2007-10-30  Bruno Haible  <bruno@clisp.org>
59838
59839         * modules/xvasprintf-posix: New file.
59840         Suggested by Eric Blake.
59841
59842 2007-10-30  Bruno Haible  <bruno@clisp.org>
59843
59844         * modules/xprintf-posix-tests: New file.
59845         * tests/test-xprintf-posix.sh: New file.
59846         * tests/test-xprintf-posix.c: New file.
59847         * tests/test-xfprintf-posix.c: New file.
59848
59849         * modules/xprintf-posix: New file.
59850
59851 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59852
59853         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59854         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59855         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59856
59857 2007-10-29  Bruno Haible  <bruno@clisp.org>
59858
59859         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59860         contain the special marker '_cv_'.
59861         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59862         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59863         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59864         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59865         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59866         Reported by Ralf Wildenhues.
59867
59868 2007-10-29  Bruno Haible  <bruno@clisp.org>
59869
59870         * gnulib-tool (func_import): When --lgpl is not specified, set
59871         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59872         GPLv3.
59873         Reported by Simon Josefsson.
59874
59875 2007-10-28  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59878         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59879         HAVE_DECL_ISFINITE.
59880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59881         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59882         HAVE_DECL_ISFINITE.
59883
59884 2007-10-28  Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59887         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59888
59889 2007-10-28  Bruno Haible  <bruno@clisp.org>
59890
59891         Fix link errors with Sun C 5.0 on Solaris 10.
59892         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59893         function is declared but not present in the compiler's libm.
59894         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59895         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59896         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59897         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59898         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59899         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59900         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59902         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59903         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59904         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59905         HAVE_DECL_FLOORL.
59906
59907 2007-10-28  Bruno Haible  <bruno@clisp.org>
59908
59909         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59910         gl_FUNC_FLOORL. Cache the result.
59911         (gl_FUNC_FLOORL): Use it.
59912         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59913         gl_FUNC_CEILL. Cache the result.
59914         (gl_FUNC_CEILL): Use it.
59915
59916         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59917         gl_FUNC_FLOOR. Cache the result.
59918         (gl_FUNC_FLOOR): Use it.
59919         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59920         gl_FUNC_CEIL. Cache the result.
59921         (gl_FUNC_CEIL): Use it.
59922
59923         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59924         gl_FUNC_FLOORF. Cache the result.
59925         (gl_FUNC_FLOORF): Use it.
59926         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59927         gl_FUNC_CEILF. Cache the result.
59928         (gl_FUNC_CEILF): Use it.
59929
59930 2007-10-28  Bruno Haible  <bruno@clisp.org>
59931
59932         * gnulib-tool: Allow specifying the LGPL version number through
59933         --lgpl=2 or --lgpl=3.
59934         (func_usage): Document --lgpl with argument.
59935         Handle --lgpl=... arguments.
59936         (func_import): Recognize also gl_LGPL calls with an argument. When
59937         --lgpl=2 is used and the module's license is just LGPL, report an
59938         error. Set sed_transform_lib_file according to the lgpl variable. In
59939         the generated files, use --lgpl or gl_LGPL invocations with argument,
59940         if necessary.
59941         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59942         an LGPv2+ license.
59943         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59944         gl_LGPL macro.
59945
59946 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59947             Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59950         (u16_uctomb_aux): Likewise.
59951         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59952         !HAVE_INLINE.
59953         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59954
59955 2007-10-28  Bruno Haible  <bruno@clisp.org>
59956
59957         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59958         Invoke AM_GETTEXT_OPTION if it exists.
59959         * modules/vasprintf: Likewise.
59960         * modules/verror: Likewise.
59961         * modules/xprintf: Likewise.
59962         * modules/xvasprintf: Likewise.
59963
59964 2007-10-27  Ben Pfaff  <blp@gnu.org>
59965
59966         * lib/math.in.h: Define isfinite macro and prototypes for
59967         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59968         implementations.
59969         * m4/math_h.m4: New substitutions for isfinite module.
59970         * lib/isfinite.c: New file.
59971         * m4/isfinite.m4: New file.
59972         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59973         * modules/isfinite: New file.
59974         * modules/isfinite-tests: New file.
59975         * tests/tests-isfinite.c: New file.
59976         * doc/functions/isfinite.texi: Mention isfinite module.
59977         * MODULES.html.sh: Mention new module.
59978
59979 2007-10-27  Ben Pfaff  <blp@gnu.org>
59980
59981         Ralf Wildenhues reported that Tru64 4.0D declares the round
59982         functions but does not have definitions.
59983         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59984         cannot be found in any library, set the output variable to
59985         "missing" instead of "".
59986         * m4/round.m4: Also use our substitute if we cannot find round in
59987         any library, even if it is declared.
59988         * m4/roundf.m4: Likewise for roundf.
59989         * m4/roundl.m4: Likewise for roundl.
59990         * lib/math.in.h: Undefine roundf, round, roundl before defining
59991         their replacements, to allow for hypothetical systems where these
59992         may be defined as macros but not available in libraries.
59993
59994 2007-10-27  Bruno Haible  <bruno@clisp.org>
59995
59996         * doc/gnulib.texi: Invoke @firstparagraphindent.
59997         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59998         changes in gnulib.
59999         (Source changes): New section.
60000
60001 2007-10-26  Bruno Haible  <bruno@clisp.org>
60002
60003         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60004         borrowed from autoconf.
60005
60006 2007-10-26  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60009         strerror returned the empty string. Needed on HP-UX 11.00.
60010
60011 2007-10-24  Micah Cowan  <micah@cowan.name>
60012
60013         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60014         * build-aux/bootstrap: Remove support for now-unnecessary option,
60015         --cvs-user, and envvars CVS_USER, CVS_RSH.
60016
60017 2007-10-24  Jim Meyering  <meyering@redhat.com>
60018
60019         Avoid diagnostics from sha1sum when there is no cached checksum.
60020         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60021         if the po.s1 file hasn't been created yet.
60022
60023         * build-aux/bootstrap: Sync from coreutils:
60024         2007-10-24  Jim Meyering  <meyering@redhat.com>
60025         Get gnulib from the git repository, not from an obsolete cvs one.
60026         * build-aux/bootstrap: Suggestion from Micah Cowan.
60027         2007-10-04  Jim Meyering  <jim@meyering.net>
60028         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60029         (update_po_files): Work also when there are no .po files in po/.
60030
60031 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         * README: Append ".git" to git and cg examples.
60034         Problem reported by Benoit Sigoure.
60035
60036 2007-10-23  Micah Cowan  <micah@cowan.name>
60037
60038         * users.txt: Add wget.
60039
60040 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60041
60042         Fix linking of some unistdio tests on FreeBSD.
60043         * modules/unistdio/u16-vsnprintf-tests
60044         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60045         * modules/unistdio/u16-vsprintf-tests
60046         (test_u16_vsnprintf1_LDADD): Likewise.
60047         * modules/unistdio/u32-vsnprintf-tests
60048         (test_u32_vsnprintf1_LDADD): Likewise.
60049         * modules/unistdio/u32-vsprintf-tests
60050         (test_u32_vsprintf1_LDADD): Likewise.
60051         * modules/unistdio/u8-vsnprintf-tests
60052         (test_u8_vsnprintf1_LDADD): Likewise.
60053         * modules/unistdio/u8-vsprintf-tests
60054         (test_u8_vsprintf1_LDADD): Likewise.
60055         * modules/unistdio/ulc-vsnprintf-tests
60056         (test_ulc_vsnprintf1_LDADD): Likewise.
60057         * modules/unistdio/ulc-vsprintf-tests
60058         (test_ulc_vsprintf1_LDADD): Likewise.
60059
60060         Fix linking of some uniconv tests on FreeBSD.
60061         * modules/uniconv/u16-conv-from-enc-tests
60062         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60063         * modules/uniconv/u16-conv-to-enc-tests
60064         (test_u16_conv_to_enc_LDADD): Likewise.
60065         * modules/uniconv/u16-strconv-from-enc-tests
60066         (test_u16_strconv_from_enc_LDADD): Likewise.
60067         * modules/uniconv/u16-strconv-to-enc-tests
60068         (test_u16_strconv_to_enc_LDADD): Likewise.
60069         * modules/uniconv/u32-conv-from-enc-tests
60070         (test_u32_conv_from_enc_LDADD): Likewise.
60071         * modules/uniconv/u32-conv-to-enc-tests
60072         (test_u32_conv_to_enc_LDADD): Likewise.
60073         * modules/uniconv/u32-strconv-from-enc-tests
60074         (test_u32_strconv_from_enc_LDADD): Likewise.
60075         * modules/uniconv/u32-strconv-to-enc-tests
60076         (test_u32_strconv_to_enc_LDADD): Likewise.
60077         * modules/uniconv/u8-conv-from-enc-tests
60078         (test_u8_conv_from_enc_LDADD): Likewise.
60079         * modules/uniconv/u8-conv-to-enc-tests
60080         (test_u8_conv_to_enc_LDADD): Likewise.
60081         * modules/uniconv/u8-strconv-from-enc-tests
60082         (test_u8_strconv_from_enc_LDADD): Likewise.
60083         * modules/uniconv/u8-strconv-to-enc-tests
60084         (test_u8_strconv_to_enc_LDADD): Likewise.
60085
60086 2007-10-22  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60089         size.
60090
60091 2007-10-22  Eric Blake  <ebb9@byu.net>
60092
60093         Tweak x*printf documentation.
60094         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60095         variable name and comments.
60096         Suggested by Bruno Haible.
60097
60098 2007-10-22  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/acl.c (copy_acl): Fix file name in comment.
60101
60102 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60103
60104         Fix Tru64 problem with stdbool.h.
60105         * lib/stdbool.in.h (false, true):
60106         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60107         Don't declare as an enum in this situation; it runs afoul of Tru64.
60108         Problem reported by Steven M. Schweda in
60109         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60110
60111 2007-10-22  Eric Blake  <ebb9@byu.net>
60112
60113         Also wrap vf?printf.
60114         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60115         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60116         (xvprintf, xvfprintf): New functions.
60117
60118 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60119
60120         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60121         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60122
60123         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60124         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60125
60126 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60127
60128         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60129         by Bruno Haible.
60130
60131 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60132
60133         * lib/getloadavg.c
60134         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60135         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60136
60137         * tests/test-i-ring.c: Work for C89.
60138
60139 2007-10-22  Bruno Haible  <bruno@clisp.org>
60140
60141         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60142         -1u, in preprocessor expression, so that we don't test for the bug
60143         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60145
60146 2007-10-22  Eric Blake  <ebb9@byu.net>
60147
60148         * tests/test-yesno.sh: Silence stderr during test.
60149
60150 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60151
60152         * modules/crypto/gc-camellia: New file.
60153
60154         * m4/gc-camellia.m4: New file.
60155
60156         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60157
60158         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60159
60160 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60161
60162         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60163         --help to stdout.  Reported by sms@antinode.org (Steven
60164         M. Schweda).
60165
60166 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60167
60168         * users.txt: Fix link to libksba.
60169
60170 2007-10-21  Ben Pfaff  <blp@gnu.org>
60171
60172         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60173         round.c roundf implementation that depends on floorf and ceilf to
60174         be tested unconditionally.
60175
60176 2007-10-21  Ben Pfaff  <blp@gnu.org>
60177
60178         * m4/check-libm-func.m4: Removed.
60179         * m4/check-math-lib.m4: New file.
60180         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60181         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60182         definition and lack of AC_LIBOBJ([roundf]).
60183         * m4/roundl.m4: Ditto, and similarly for roundl.
60184         * modules/round: Reference new m4 file.
60185         * modules/roundf: Ditto.
60186         * modules/roundl: Ditto.
60187         * tests/test-round2.c (main): Use ROUND instead of round.
60188         Bug report from Bruno Haible.
60189
60190 2007-10-21  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60193         context.
60194
60195 2007-10-21  Bruno Haible  <bruno@clisp.org>
60196
60197         * tests/test-wcwidth.c (main): Allow negative result for some control
60198         characters.
60199
60200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60201         Needed on OSF/1 5.1.
60202
60203 2007-10-21  Bruno Haible  <bruno@clisp.org>
60204
60205         * tests/test-floorf1.c: Include isnanf.h.
60206         (main): Use isnanf() instead of isnan().
60207         * tests/test-ceilf1.c: Include isnanf.h.
60208         (main): Use isnanf() instead of isnan().
60209         * tests/test-truncf1.c: Include isnanf.h.
60210         (main): Use isnanf() instead of isnan().
60211         * tests/test-roundf1.c: Include isnanf.h.
60212         (main): Use isnanf() instead of isnan().
60213
60214 2007-10-21  Eric Blake  <ebb9@byu.net>
60215
60216         * users.txt: Update URL for m4.
60217
60218 2007-10-21  Bruno Haible  <bruno@clisp.org>
60219
60220         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60221
60222 2007-10-21  Bruno Haible  <bruno@clisp.org>
60223
60224         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60225         Git's management files if the CVS files are not present.
60226
60227 2007-10-20  Bruno Haible  <bruno@clisp.org>
60228
60229         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60230         gcc-3.4.x.
60231
60232 2007-10-20  Ben Pfaff  <blp@gnu.org>
60233
60234         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60235         implementations.
60236         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60237         * lib/round.c: New file.
60238         * lib/roundf.c: New file.
60239         * lib/roundl.c: New file.
60240         * m4/round.m4: New file.
60241         * m4/roundf.m4: New file.
60242         * m4/roundl.m4: New file.
60243         * m4/check-libm-func-m4: New file.
60244         * modules/math: Replace round, roundf, roundl related @VARS@ in
60245         math.in.h.
60246         * modules/round: New file.
60247         * modules/round-tests: New file.
60248         * modules/roundf: New file.
60249         * modules/roundf-tests: New file.
60250         * modules/roundl: New file.
60251         * modules/roundl-tests: New file.
60252         * tests/test-round1.c: New file.
60253         * tests/test-round2.c: New file.
60254         * tests/test-roundf1.c: New file.
60255         * tests/test-roundf2.c: New file.
60256         * tests/test-roundl.c: New file.
60257         * doc/functions/round.texi: Mention round module.
60258         * doc/functions/roundf.texi: Mention roundf module.
60259         * doc/functions/roundl.texi: Mention roundl module.
60260         * MODULES.html.sh: Mention new modules.
60261         Thanks to Bruno Haible for suggestions.
60262
60263 2007-10-20  Jim Meyering  <meyering@redhat.com>
60264
60265         * lib/xprintf.c: Include <config.h> unconditionally.
60266
60267         Change xprintf's license to GPL.
60268         * modules/xprintf (License): s/LGPL/GPL/, since this module
60269         depends on modules (exit and exitfail) which are GPL.
60270         Suggestion from Bruno Haible.
60271
60272         xprintf fixes.
60273         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60274         Use a clearer diagnostic.
60275         Patch from Bruno Haible.
60276
60277 2007-10-20  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60280         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60282
60283 2007-10-20  Bruno Haible  <bruno@clisp.org>
60284
60285         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60286         precision in the comparison result > x - 1 or similar.
60287         * tests/test-ceilf2.c (correct_result_p): Likewise.
60288         * tests/test-truncf2.c (correct_result_p): Likewise.
60289         * tests/test-trunc2.c (correct_result_p): Likewise.
60290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60291
60292 2007-10-20  Bruno Haible  <bruno@clisp.org>
60293
60294         * modules/ceil: New file.
60295         * m4/ceil.m4: New file.
60296         * doc/functions/ceil.texi: Mention the 'ceil' module.
60297
60298 2007-10-20  Bruno Haible  <bruno@clisp.org>
60299
60300         * modules/floor: New file.
60301         * m4/floor.m4: New file.
60302         * doc/functions/floor.texi: Mention the 'floor' module.
60303
60304 2007-10-20  Bruno Haible  <bruno@clisp.org>
60305
60306         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60307         of %a.
60308         * modules/floorf-tests (Depends-on): Likewise.
60309         * modules/truncf-tests (Depends-on): Likewise.
60310         * modules/trunc-tests (Depends-on): Likewise.
60311         Reported by Ben Pfaff.
60312
60313 2007-10-19  Jim Meyering  <meyering@redhat.com>
60314
60315         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60316         Don't bother testing specific errno values.  Just test ferror.
60317
60318         New module: xprintf
60319         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60320
60321 2007-10-19  Bruno Haible  <bruno@clisp.org>
60322
60323         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60324         syntax.
60325         * modules/javaexec (Makefile.am): Likewise.
60326         * modules/relocatable-prog (Makefile.am): Likewise.
60327         Suggested by Jim Meyering.
60328
60329 2007-10-18  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60332         Reported by Jim Meyering.
60333
60334 2007-10-18  Eric Blake  <ebb9@byu.net>
60335
60336         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60337
60338 2007-10-18  Bruno Haible  <bruno@clisp.org>
60339
60340         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60341         the format string into writable memory. Needed in Fortify conditions.
60342
60343 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60344             Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60347         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60348         * modules/trim (Depends-on): Add mbchar.
60349         (configure.ac): Add gl_FUNC_MBRTOWC.
60350         (Makefile.am): Augment lib_SOURCES.
60351
60352 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         Modify glob.c to use fstatat and dirfd, to simplify it.
60355         Suggested by Eric Blake.
60356         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60357         Don't include <stdbool.h>; not used.
60358         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60359         (link_exists_p): Simplify implementation, since we can now assume
60360         dirfd and fstatat.
60361         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60362
60363 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60364
60365         * gnulib-tool (func_get_dependencies): Fix sed script to
60366         match only tests.
60367
60368 2007-10-17  Bruno Haible  <bruno@clisp.org>
60369
60370         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60371         allow locale names without encoding suffix.
60372         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60374
60375 2007-10-16  Bruno Haible  <bruno@clisp.org>
60376
60377         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60378         * lib/getgroups.c (getgroups): Likewise.
60379         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60380
60381 2007-10-16  Bruno Haible  <bruno@clisp.org>
60382
60383         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60384         * modules/malloc-posix (License): Likewise.
60385         * modules/realloc-posix (License): Likewise.
60386         * modules/calloc-posix (License): Likewise.
60387         * modules/intprops (License): Change from GPL to LGPL, with
60388         Paul Eggert's approval.
60389
60390 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         Merge glibc changes into lib/glob.c.
60393
60394         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60395         2007-10-15 04:59:03 UTC.  Here are the changes:
60396
60397         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60398
60399         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60400
60401         * lib/glob.c: Add some branch prediction throughout.
60402
60403         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60404
60405         [BZ #5103]
60406         * lib/glob.c (glob): Recognize patterns starting \/.
60407
60408         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60409
60410         [BZ #3996]
60411         * lib/glob.c (attribute_hidden): Define if not defined.
60412         (glob): Unescape dirname, filename or username when needed and not
60413         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60414         is NULL.  Handle unescaped [ in pattern without closing ].
60415         Don't pass GLOB_CHECK down to recursive glob for directories.
60416         (__glob_pattern_type): New function.
60417         (__glob_pattern_p): Implement using __glob_pattern_type.
60418         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60419         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60420         Remove unreachable code.
60421
60422         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60423
60424         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60425         explain why there are no leaks.
60426
60427         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60428
60429         [BZ #3253]
60430         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60431         time, rather allocate increasingly bigger arrays of pointers, if
60432         possible with alloca, if too large with malloc.
60433
60434 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60435
60436         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60437         Problem reported by H.Merijn Brand in
60438         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60440         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60441
60442 2007-10-15  Bruno Haible  <bruno@clisp.org>
60443
60444         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60445         with explicit rpl_ prefix.
60446         * lib/fopen.c (fopen): Likewise.
60447         * lib/freopen.c (freopen): Likewise.
60448         * lib/iconv.c (iconv): Likewise.
60449         * lib/iconv_close.c (iconv_close): Likewise.
60450
60451 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60452
60453         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60454
60455 2007-10-15  Bruno Haible  <bruno@clisp.org>
60456
60457         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60458         <stddef.h> instead of <stdlib.h> since we only need NULL.
60459         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60460
60461 2007-10-15  Bruno Haible  <bruno@clisp.org>
60462
60463         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60464         Replace paragraph talking about LIBOBJS.
60465         Reported by Colin Watson <cjwatson@debian.org>.
60466
60467 2007-10-15  Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60470         <stdlib.h> before using NULL.
60471
60472 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60473
60474         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60475         Reported by Albert Chin <china@thewrittenword.com>.
60476
60477 2007-10-14  Bruno Haible  <bruno@clisp.org>
60478
60479         * modules/iconv_open-utf-tests: New file.
60480         * tests/test-iconv-utf.c: New file.
60481
60482         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60483         * modules/iconv_open-utf: New file.
60484         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60485         (iconv, iconv_close): New declarations.
60486         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60487         be defined.
60488         (iconv_open): Add special handling of conversion between UTF-8 and
60489         UTF-{16,32}{BE,LE}.
60490         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60491         * lib/iconv_close.c: New file.
60492         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60493         gl_FUNC_ICONV_OPEN.
60494         (gl_FUNC_ICONV_OPEN): Use it.
60495         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60496         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60497         and REPLACE_ICONV_UTF.
60498         * modules/iconv_open (Depends-on): Add c-strcase.
60499         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60500         ICONV_CONST.
60501         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60502
60503 2007-10-13  Albert Chin  <china@thewrittenword.com>
60504             Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60507         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60508
60509 2007-10-13  Bruno Haible  <bruno@clisp.org>
60510
60511         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60512         defined, use the ISO C99 inline semantics.
60513         * lib/argp.h (ARGP_EI): Likewise.
60514
60515 2007-10-13  Bruno Haible  <bruno@clisp.org>
60516
60517         Handle 'inline' change in gcc 4.3.0.
60518         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60519         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60520         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60521         argp_fmtstream_point): Disable 'extern' declaration if the function
60522         definition is going to be provided inline.
60523         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60524         semantics, not the ISO C99 inline semantics.
60525         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60526         'extern' declaration if the function definition is going to be provided
60527         inline.
60528         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60529         the GNU C inline semantics, not the ISO C99 inline semantics. With
60530         GCC 4.2, avoid a warning.
60531
60532 2007-10-13  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/freading.h (freading): Enable the use of __freading for
60535         glibc >= 2.7.
60536         * lib/freading.c (freading): Likewise.
60537
60538 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60541         "warning: C99 inline functions are not supported; using GNU89".
60542
60543 2007-10-12  Bruno Haible  <bruno@clisp.org>
60544
60545         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60546         of 2.
60547         * tests/test-ceilf2.c: New file.
60548         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60549
60550         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60551         * modules/ceilf-tests: Update.
60552
60553 2007-10-12  Bruno Haible  <bruno@clisp.org>
60554
60555         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60556         of 2.
60557         * tests/test-floorf2.c: New file.
60558         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60559
60560         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60561         * modules/floorf-tests: Update.
60562
60563 2007-10-12  Bruno Haible  <bruno@clisp.org>
60564
60565         * tests/test-trunc2.c: New file.
60566         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60567
60568         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60569         * modules/trunc-tests: Update.
60570
60571 2007-10-12  Bruno Haible  <bruno@clisp.org>
60572
60573         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60574         of 2.
60575         * tests/test-truncf2.c: New file.
60576         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60577
60578         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60579         * modules/truncf-tests: Update.
60580
60581 2007-10-11  Eric Blake  <ebb9@byu.net>
60582
60583         Don't claim strerror is broken on Interix.
60584         * doc/functions/strerror.texi (strerror): Known broken systems are
60585         now Solaris 8, and not Interix.
60586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60587         Interix on cross-compile.
60588         Reported by Martin Koeppe in
60589         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60590
60591 2007-10-11  Bruno Haible  <bruno@clisp.org>
60592
60593         * modules/i-ring-tests: New file.
60594         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60595         instead of assert.
60596
60597 2007-10-11  Bruno Haible  <bruno@clisp.org>
60598
60599         * modules/filenamecat-tests: New file.
60600         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60601         * lib/filenamecat.c: Remove test code.
60602
60603 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60606
60607         * lib/strerror.c: Include <string.h> always, to test interface,
60608         and to remove the need for the dummy.
60609         Include intprops.h to compute width instead of doing it ourselves
60610         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60611         (strerror): Define it to return NULL if there's no system strerror.
60612         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60613         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60614         ancient pre-strerror Unix systems well any more.  Saying "unknown
60615         system error" is enough.
60616         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60617         simpler strerror.c implementation.
60618         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60619         Simplify the tests to reflect the simpler strerror implementation.
60620         * modules/strerror (Depends-on): Add intprops.
60621
60622 2007-10-09  Eric Blake  <ebb9@byu.net>
60623
60624         Silence test-fpending.
60625         * modules/fpending-tests (Files): Add wrapper script.
60626         * tests/test-fpending.sh: New file.
60627
60628 2007-10-09  Bruno Haible  <bruno@clisp.org>
60629
60630         * MODULES.html.sh (func_module): Don't create a hyperlink for
60631         function names like 'printf_frexp'.
60632         (Misc): Add crc, memxor.
60633         (Characteristics of floating types): New section.
60634         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60635         isnanf-nolibm, signbit, trunc, truncf, truncl.
60636         (Enhancements for ISO C 99 functions): New subsection Input/output.
60637         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60638         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60639         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60640         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60641         (Enhancements for POSIX:2001 functions): Add chdir-long.
60642         (File system functions): Add areadlink, chdir-safer, read-file.
60643         Remove cycle-check.
60644         (File system as inode set): New section.
60645         (Date and time): Add gethrxtime.
60646         (Multithreading): Add openmp.
60647         (Internationalization functions): Add localename.
60648         (Unicode string functions): Add unistr/u*-mbsnlen.
60649         (Support for maintaining and releasing projects): Add git-version-gen.
60650         (Lone files): Remove directories.
60651
60652 2007-10-08  Ben Pfaff  <blp@gnu.org>
60653
60654         * lib/xmalloca.h: Fix typo in comment.
60655
60656 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60657
60658         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60659         when avoiding problems with integer overflow.  Use a portable test
60660         instead.
60661
60662 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60663
60664         * modules/dummy (License): Change to LGPLv2+.
60665         * modules/float (License): Likewise
60666         * modules/realloc (License): Likewise
60667         * modules/stdlib (License): Likewise
60668
60669 2007-10-07  Bruno Haible  <bruno@clisp.org>
60670
60671         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60672         * floor.c (TWO_MANT_DIG): Likewise.
60673         * ceil.c (TWO_MANT_DIG): Likewise.
60674         Reported by Ben Pfaff.
60675
60676 2007-10-07  Bruno Haible  <bruno@clisp.org>
60677
60678         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60679         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60680         * lib/frexp.c (FUNC): Likewise.
60681         * lib/printf-frexp.h (printf_frexp): Likewise.
60682         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60683         * lib/printf-frexp.c (FUNC): Likewise.
60684         Suggested by Jim Meyering.
60685
60686 2007-10-07  Jim Meyering  <meyering@redhat.com>
60687
60688         Make xnanosleep's integer overflow test more robust.
60689         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60690         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60691
60692 2007-10-07  Bruno Haible  <bruno@clisp.org>
60693
60694         * NEWS: Mention the license change.
60695
60696         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60697         abbreviations in the modules files.
60698
60699         Change copyright notice from GPLv2+ to GPLv3+.
60700         * README: Change copyright notice.
60701         * MODULES.html.sh: Likewise.
60702         * build-aux/bootstrap.conf: Likewise.
60703         * build-aux/config.libpath: Likewise.
60704         * build-aux/csharpcomp.sh.in: Likewise.
60705         * build-aux/csharpexec.sh.in: Likewise.
60706         * build-aux/install-reloc: Likewise.
60707         * build-aux/javacomp.sh.in: Likewise.
60708         * build-aux/javaexec.sh.in: Likewise.
60709         * build-aux/ldd.sh.in: Likewise.
60710         * build-aux/reloc-ldflags: Likewise.
60711         * build-aux/relocatable.sh.in: Likewise.
60712         * build-aux/x-to-1.in: Likewise.
60713         * check-module: Likewise.
60714         * config/srclistvars.sh: Likewise.
60715         * gnulib-tool: Likewise.
60716         * lib/acl-internal.h: Likewise.
60717         * lib/acl.c: Likewise.
60718         * lib/acl.h: Likewise.
60719         * lib/acl_entries.c: Likewise.
60720         * lib/areadlink-with-size.c: Likewise.
60721         * lib/areadlink.c: Likewise.
60722         * lib/areadlink.h: Likewise.
60723         * lib/argmatch.c: Likewise.
60724         * lib/argmatch.h: Likewise.
60725         * lib/argp-ba.c: Likewise.
60726         * lib/argp-eexst.c: Likewise.
60727         * lib/argp-fmtstream.c: Likewise.
60728         * lib/argp-fmtstream.h: Likewise.
60729         * lib/argp-fs-xinl.c: Likewise.
60730         * lib/argp-help.c: Likewise.
60731         * lib/argp-namefrob.h: Likewise.
60732         * lib/argp-parse.c: Likewise.
60733         * lib/argp-pin.c: Likewise.
60734         * lib/argp-pv.c: Likewise.
60735         * lib/argp-pvh.c: Likewise.
60736         * lib/argp-xinl.c: Likewise.
60737         * lib/argp.h: Likewise.
60738         * lib/at-func.c: Likewise.
60739         * lib/atanl.c: Likewise.
60740         * lib/backupfile.c: Likewise.
60741         * lib/backupfile.h: Likewise.
60742         * lib/basename.c: Likewise.
60743         * lib/binary-io.h: Likewise.
60744         * lib/byteswap.in.h: Likewise.
60745         * lib/c-stack.c: Likewise.
60746         * lib/c-stack.h: Likewise.
60747         * lib/c-strcasestr.c: Likewise.
60748         * lib/c-strcasestr.h: Likewise.
60749         * lib/c-strstr.c: Likewise.
60750         * lib/c-strstr.h: Likewise.
60751         * lib/c-strtod.c: Likewise.
60752         * lib/calloc.c: Likewise.
60753         * lib/canon-host.c: Likewise.
60754         * lib/canon-host.h: Likewise.
60755         * lib/canonicalize-lgpl.c: Likewise.
60756         * lib/canonicalize.c: Likewise.
60757         * lib/canonicalize.h: Likewise.
60758         * lib/ceil.c: Likewise.
60759         * lib/ceilf.c: Likewise.
60760         * lib/ceill.c: Likewise.
60761         * lib/chdir-long.c: Likewise.
60762         * lib/chdir-long.h: Likewise.
60763         * lib/chdir-safer.c: Likewise.
60764         * lib/chdir-safer.h: Likewise.
60765         * lib/chown.c: Likewise.
60766         * lib/classpath.c: Likewise.
60767         * lib/classpath.h: Likewise.
60768         * lib/clean-temp.c: Likewise.
60769         * lib/clean-temp.h: Likewise.
60770         * lib/cloexec.c: Likewise.
60771         * lib/close-stream.c: Likewise.
60772         * lib/closein.c: Likewise.
60773         * lib/closein.h: Likewise.
60774         * lib/closeout.c: Likewise.
60775         * lib/closeout.h: Likewise.
60776         * lib/concat-filename.c: Likewise.
60777         * lib/copy-file.c: Likewise.
60778         * lib/copy-file.h: Likewise.
60779         * lib/count-one-bits.h: Likewise.
60780         * lib/crc.c: Likewise.
60781         * lib/crc.h: Likewise.
60782         * lib/creat-safer.c: Likewise.
60783         * lib/csharpcomp.c: Likewise.
60784         * lib/csharpcomp.h: Likewise.
60785         * lib/csharpexec.c: Likewise.
60786         * lib/csharpexec.h: Likewise.
60787         * lib/cycle-check.c: Likewise.
60788         * lib/cycle-check.h: Likewise.
60789         * lib/diacrit.c: Likewise.
60790         * lib/diacrit.h: Likewise.
60791         * lib/diffseq.h: Likewise.
60792         * lib/dirchownmod.c: Likewise.
60793         * lib/dirent.in.h: Likewise.
60794         * lib/dirfd.c: Likewise.
60795         * lib/dirfd.h: Likewise.
60796         * lib/dirname.c: Likewise.
60797         * lib/dirname.h: Likewise.
60798         * lib/dummy.c: Likewise.
60799         * lib/dup-safer.c: Likewise.
60800         * lib/dup2.c: Likewise.
60801         * lib/eealloc.h: Likewise.
60802         * lib/error.c: Likewise.
60803         * lib/error.h: Likewise.
60804         * lib/euidaccess.c: Likewise.
60805         * lib/exclude.c: Likewise.
60806         * lib/exclude.h: Likewise.
60807         * lib/execute.c: Likewise.
60808         * lib/execute.h: Likewise.
60809         * lib/exitfail.c: Likewise.
60810         * lib/exitfail.h: Likewise.
60811         * lib/expl.c: Likewise.
60812         * lib/fatal-signal.c: Likewise.
60813         * lib/fatal-signal.h: Likewise.
60814         * lib/fbufmode.c: Likewise.
60815         * lib/fbufmode.h: Likewise.
60816         * lib/fchdir.c: Likewise.
60817         * lib/fchmodat.c: Likewise.
60818         * lib/fchownat.c: Likewise.
60819         * lib/fcntl--.h: Likewise.
60820         * lib/fcntl-safer.h: Likewise.
60821         * lib/fcntl.in.h: Likewise.
60822         * lib/fd-safer.c: Likewise.
60823         * lib/fflush.c: Likewise.
60824         * lib/file-has-acl.c: Likewise.
60825         * lib/file-set.c: Likewise.
60826         * lib/file-type.c: Likewise.
60827         * lib/file-type.h: Likewise.
60828         * lib/fileblocks.c: Likewise.
60829         * lib/filemode.c: Likewise.
60830         * lib/filemode.h: Likewise.
60831         * lib/filename.h: Likewise.
60832         * lib/filenamecat.c: Likewise.
60833         * lib/filenamecat.h: Likewise.
60834         * lib/findprog.c: Likewise.
60835         * lib/findprog.h: Likewise.
60836         * lib/float.in.h: Likewise.
60837         * lib/floor.c: Likewise.
60838         * lib/floorf.c: Likewise.
60839         * lib/floorl.c: Likewise.
60840         * lib/fopen-safer.c: Likewise.
60841         * lib/fopen.c: Likewise.
60842         * lib/fpending.c: Likewise.
60843         * lib/fpending.h: Likewise.
60844         * lib/fprintf.c: Likewise.
60845         * lib/fprintftime.h: Likewise.
60846         * lib/fpucw.h: Likewise.
60847         * lib/fpurge.c: Likewise.
60848         * lib/fpurge.h: Likewise.
60849         * lib/freadable.c: Likewise.
60850         * lib/freadable.h: Likewise.
60851         * lib/freadahead.c: Likewise.
60852         * lib/freadahead.h: Likewise.
60853         * lib/freading.c: Likewise.
60854         * lib/freading.h: Likewise.
60855         * lib/free.c: Likewise.
60856         * lib/freopen.c: Likewise.
60857         * lib/frexp.c: Likewise.
60858         * lib/frexpl.c: Likewise.
60859         * lib/fseek.c: Likewise.
60860         * lib/fseterr.c: Likewise.
60861         * lib/fseterr.h: Likewise.
60862         * lib/fstatat.c: Likewise.
60863         * lib/fstrcmp.c: Likewise.
60864         * lib/fstrcmp.h: Likewise.
60865         * lib/fsusage.c: Likewise.
60866         * lib/fsusage.h: Likewise.
60867         * lib/ftell.c: Likewise.
60868         * lib/ftello.c: Likewise.
60869         * lib/fts-cycle.c: Likewise.
60870         * lib/fts.c: Likewise.
60871         * lib/fts_.h: Likewise.
60872         * lib/full-read.c: Likewise.
60873         * lib/full-read.h: Likewise.
60874         * lib/full-write.c: Likewise.
60875         * lib/full-write.h: Likewise.
60876         * lib/fwritable.c: Likewise.
60877         * lib/fwritable.h: Likewise.
60878         * lib/fwriteerror.c: Likewise.
60879         * lib/fwriteerror.h: Likewise.
60880         * lib/fwriting.c: Likewise.
60881         * lib/fwriting.h: Likewise.
60882         * lib/gcd.c: Likewise.
60883         * lib/gcd.h: Likewise.
60884         * lib/getcwd.c: Likewise.
60885         * lib/getdate.h: Likewise.
60886         * lib/getdate.y: Likewise.
60887         * lib/getdomainname.c: Likewise.
60888         * lib/getdomainname.h: Likewise.
60889         * lib/getgroups.c: Likewise.
60890         * lib/gethostname.c: Likewise.
60891         * lib/gethrxtime.c: Likewise.
60892         * lib/gethrxtime.h: Likewise.
60893         * lib/getloadavg.c: Likewise.
60894         * lib/getndelim2.c: Likewise.
60895         * lib/getndelim2.h: Likewise.
60896         * lib/getnline.c: Likewise.
60897         * lib/getnline.h: Likewise.
60898         * lib/getopt.c: Likewise.
60899         * lib/getopt.in.h: Likewise.
60900         * lib/getopt1.c: Likewise.
60901         * lib/getopt_int.h: Likewise.
60902         * lib/getpagesize.h: Likewise.
60903         * lib/getsubopt.c: Likewise.
60904         * lib/gettime.c: Likewise.
60905         * lib/getugroups.c: Likewise.
60906         * lib/getugroups.h: Likewise.
60907         * lib/getusershell.c: Likewise.
60908         * lib/gl_anyavltree_list1.h: Likewise.
60909         * lib/gl_anyavltree_list2.h: Likewise.
60910         * lib/gl_anyhash_list1.h: Likewise.
60911         * lib/gl_anyhash_list2.h: Likewise.
60912         * lib/gl_anylinked_list1.h: Likewise.
60913         * lib/gl_anylinked_list2.h: Likewise.
60914         * lib/gl_anyrbtree_list1.h: Likewise.
60915         * lib/gl_anyrbtree_list2.h: Likewise.
60916         * lib/gl_anytree_list1.h: Likewise.
60917         * lib/gl_anytree_list2.h: Likewise.
60918         * lib/gl_anytree_oset.h: Likewise.
60919         * lib/gl_anytreehash_list1.h: Likewise.
60920         * lib/gl_anytreehash_list2.h: Likewise.
60921         * lib/gl_array_list.c: Likewise.
60922         * lib/gl_array_list.h: Likewise.
60923         * lib/gl_array_oset.c: Likewise.
60924         * lib/gl_array_oset.h: Likewise.
60925         * lib/gl_avltree_list.c: Likewise.
60926         * lib/gl_avltree_list.h: Likewise.
60927         * lib/gl_avltree_oset.c: Likewise.
60928         * lib/gl_avltree_oset.h: Likewise.
60929         * lib/gl_avltreehash_list.c: Likewise.
60930         * lib/gl_avltreehash_list.h: Likewise.
60931         * lib/gl_carray_list.c: Likewise.
60932         * lib/gl_carray_list.h: Likewise.
60933         * lib/gl_linked_list.c: Likewise.
60934         * lib/gl_linked_list.h: Likewise.
60935         * lib/gl_linkedhash_list.c: Likewise.
60936         * lib/gl_linkedhash_list.h: Likewise.
60937         * lib/gl_list.c: Likewise.
60938         * lib/gl_list.h: Likewise.
60939         * lib/gl_oset.c: Likewise.
60940         * lib/gl_oset.h: Likewise.
60941         * lib/gl_rbtree_list.c: Likewise.
60942         * lib/gl_rbtree_list.h: Likewise.
60943         * lib/gl_rbtree_oset.c: Likewise.
60944         * lib/gl_rbtree_oset.h: Likewise.
60945         * lib/gl_rbtreehash_list.c: Likewise.
60946         * lib/gl_rbtreehash_list.h: Likewise.
60947         * lib/gl_sublist.c: Likewise.
60948         * lib/gl_sublist.h: Likewise.
60949         * lib/group-member.c: Likewise.
60950         * lib/group-member.h: Likewise.
60951         * lib/hard-locale.c: Likewise.
60952         * lib/hard-locale.h: Likewise.
60953         * lib/hash-pjw.c: Likewise.
60954         * lib/hash-pjw.h: Likewise.
60955         * lib/hash-triple.c: Likewise.
60956         * lib/hash.c: Likewise.
60957         * lib/hash.h: Likewise.
60958         * lib/human.c: Likewise.
60959         * lib/human.h: Likewise.
60960         * lib/i-ring.c: Likewise.
60961         * lib/i-ring.h: Likewise.
60962         * lib/idcache.c: Likewise.
60963         * lib/imaxabs.c: Likewise.
60964         * lib/imaxdiv.c: Likewise.
60965         * lib/inet_pton.c: Likewise.
60966         * lib/inet_pton.h: Likewise.
60967         * lib/intprops.h: Likewise.
60968         * lib/inttostr.c: Likewise.
60969         * lib/inttostr.h: Likewise.
60970         * lib/inttypes.in.h: Likewise.
60971         * lib/isapipe.c: Likewise.
60972         * lib/isdir.c: Likewise.
60973         * lib/isnan.c: Likewise.
60974         * lib/isnan.h: Likewise.
60975         * lib/isnanf.c: Likewise.
60976         * lib/isnanf.h: Likewise.
60977         * lib/isnanl-nolibm.h: Likewise.
60978         * lib/isnanl.c: Likewise.
60979         * lib/isnanl.h: Likewise.
60980         * lib/javacomp.c: Likewise.
60981         * lib/javacomp.h: Likewise.
60982         * lib/javaexec.c: Likewise.
60983         * lib/javaexec.h: Likewise.
60984         * lib/javaversion.c: Likewise.
60985         * lib/javaversion.h: Likewise.
60986         * lib/javaversion.java: Likewise.
60987         * lib/lbrkprop.h: Likewise.
60988         * lib/lchmod.h: Likewise.
60989         * lib/lchown.c: Likewise.
60990         * lib/ldexpl.c: Likewise.
60991         * lib/linebreak.c: Likewise.
60992         * lib/linebreak.h: Likewise.
60993         * lib/linebuffer.c: Likewise.
60994         * lib/linebuffer.h: Likewise.
60995         * lib/locale.in.h: Likewise.
60996         * lib/logl.c: Likewise.
60997         * lib/long-options.c: Likewise.
60998         * lib/long-options.h: Likewise.
60999         * lib/lstat.c: Likewise.
61000         * lib/lstat.h: Likewise.
61001         * lib/math.in.h: Likewise.
61002         * lib/mbchar.c: Likewise.
61003         * lib/mbchar.h: Likewise.
61004         * lib/mbfile.h: Likewise.
61005         * lib/mbiter.h: Likewise.
61006         * lib/mbscasecmp.c: Likewise.
61007         * lib/mbscasestr.c: Likewise.
61008         * lib/mbschr.c: Likewise.
61009         * lib/mbscspn.c: Likewise.
61010         * lib/mbslen.c: Likewise.
61011         * lib/mbsncasecmp.c: Likewise.
61012         * lib/mbsnlen.c: Likewise.
61013         * lib/mbspbrk.c: Likewise.
61014         * lib/mbspcasecmp.c: Likewise.
61015         * lib/mbsrchr.c: Likewise.
61016         * lib/mbssep.c: Likewise.
61017         * lib/mbsspn.c: Likewise.
61018         * lib/mbsstr.c: Likewise.
61019         * lib/mbstok_r.c: Likewise.
61020         * lib/mbswidth.c: Likewise.
61021         * lib/mbswidth.h: Likewise.
61022         * lib/mbuiter.h: Likewise.
61023         * lib/memcasecmp.c: Likewise.
61024         * lib/memcasecmp.h: Likewise.
61025         * lib/memchr.c: Likewise.
61026         * lib/memcmp.c: Likewise.
61027         * lib/memcoll.c: Likewise.
61028         * lib/memcoll.h: Likewise.
61029         * lib/memcpy.c: Likewise.
61030         * lib/memrchr.c: Likewise.
61031         * lib/mkancesdirs.c: Likewise.
61032         * lib/mkdir-p.c: Likewise.
61033         * lib/mkdir-p.h: Likewise.
61034         * lib/mkdir.c: Likewise.
61035         * lib/mkdirat.c: Likewise.
61036         * lib/mkdtemp.c: Likewise.
61037         * lib/mkstemp-safer.c: Likewise.
61038         * lib/mkstemp.c: Likewise.
61039         * lib/modechange.c: Likewise.
61040         * lib/modechange.h: Likewise.
61041         * lib/mountlist.c: Likewise.
61042         * lib/mountlist.h: Likewise.
61043         * lib/mpsort.c: Likewise.
61044         * lib/nanosleep.c: Likewise.
61045         * lib/obstack.c: Likewise.
61046         * lib/obstack.h: Likewise.
61047         * lib/open-safer.c: Likewise.
61048         * lib/open.c: Likewise.
61049         * lib/openat-die.c: Likewise.
61050         * lib/openat-priv.h: Likewise.
61051         * lib/openat-proc.c: Likewise.
61052         * lib/openat.c: Likewise.
61053         * lib/openat.h: Likewise.
61054         * lib/pagealign_alloc.c: Likewise.
61055         * lib/pagealign_alloc.h: Likewise.
61056         * lib/physmem.c: Likewise.
61057         * lib/physmem.h: Likewise.
61058         * lib/pipe-safer.c: Likewise.
61059         * lib/pipe.c: Likewise.
61060         * lib/pipe.h: Likewise.
61061         * lib/posixtm.c: Likewise.
61062         * lib/posixtm.h: Likewise.
61063         * lib/posixver.c: Likewise.
61064         * lib/printf-frexp.c: Likewise.
61065         * lib/printf-frexp.h: Likewise.
61066         * lib/printf-frexpl.c: Likewise.
61067         * lib/printf-frexpl.h: Likewise.
61068         * lib/printf.c: Likewise.
61069         * lib/progname.c: Likewise.
61070         * lib/progname.h: Likewise.
61071         * lib/progreloc.c: Likewise.
61072         * lib/putenv.c: Likewise.
61073         * lib/quote.c: Likewise.
61074         * lib/quote.h: Likewise.
61075         * lib/quotearg.c: Likewise.
61076         * lib/quotearg.h: Likewise.
61077         * lib/raise.c: Likewise.
61078         * lib/readline.c: Likewise.
61079         * lib/readline.h: Likewise.
61080         * lib/readlink.c: Likewise.
61081         * lib/readtokens.c: Likewise.
61082         * lib/readtokens.h: Likewise.
61083         * lib/readtokens0.c: Likewise.
61084         * lib/readtokens0.h: Likewise.
61085         * lib/readutmp.c: Likewise.
61086         * lib/readutmp.h: Likewise.
61087         * lib/realloc.c: Likewise.
61088         * lib/relocwrapper.c: Likewise.
61089         * lib/rename-dest-slash.c: Likewise.
61090         * lib/rename.c: Likewise.
61091         * lib/rmdir.c: Likewise.
61092         * lib/rpmatch.c: Likewise.
61093         * lib/safe-read.c: Likewise.
61094         * lib/safe-read.h: Likewise.
61095         * lib/safe-write.c: Likewise.
61096         * lib/safe-write.h: Likewise.
61097         * lib/same-inode.h: Likewise.
61098         * lib/same.c: Likewise.
61099         * lib/same.h: Likewise.
61100         * lib/save-cwd.c: Likewise.
61101         * lib/save-cwd.h: Likewise.
61102         * lib/savedir.c: Likewise.
61103         * lib/savedir.h: Likewise.
61104         * lib/savewd.c: Likewise.
61105         * lib/savewd.h: Likewise.
61106         * lib/search.in.h: Likewise.
61107         * lib/setenv.c: Likewise.
61108         * lib/setenv.h: Likewise.
61109         * lib/settime.c: Likewise.
61110         * lib/sh-quote.c: Likewise.
61111         * lib/sh-quote.h: Likewise.
61112         * lib/sig2str.c: Likewise.
61113         * lib/sig2str.h: Likewise.
61114         * lib/signal.in.h: Likewise.
61115         * lib/signbitd.c: Likewise.
61116         * lib/signbitf.c: Likewise.
61117         * lib/signbitl.c: Likewise.
61118         * lib/sigprocmask.c: Likewise.
61119         * lib/sincosl.c: Likewise.
61120         * lib/sleep.c: Likewise.
61121         * lib/sprintf.c: Likewise.
61122         * lib/sqrtl.c: Likewise.
61123         * lib/stat-time.h: Likewise.
61124         * lib/stdio--.h: Likewise.
61125         * lib/stdio-safer.h: Likewise.
61126         * lib/stdlib--.h: Likewise.
61127         * lib/stdlib-safer.h: Likewise.
61128         * lib/stdlib.in.h: Likewise.
61129         * lib/stpcpy.c: Likewise.
61130         * lib/stpncpy.c: Likewise.
61131         * lib/strchrnul.c: Likewise.
61132         * lib/strcspn.c: Likewise.
61133         * lib/strerror.c: Likewise.
61134         * lib/strftime.c: Likewise.
61135         * lib/strftime.h: Likewise.
61136         * lib/striconveh.c: Likewise.
61137         * lib/striconveh.h: Likewise.
61138         * lib/striconveha.c: Likewise.
61139         * lib/striconveha.h: Likewise.
61140         * lib/stripslash.c: Likewise.
61141         * lib/strnlen1.c: Likewise.
61142         * lib/strnlen1.h: Likewise.
61143         * lib/strtod.c: Likewise.
61144         * lib/strtoimax.c: Likewise.
61145         * lib/strtok_r.c: Likewise.
61146         * lib/strtol.c: Likewise.
61147         * lib/strtoll.c: Likewise.
61148         * lib/strtoul.c: Likewise.
61149         * lib/strtoull.c: Likewise.
61150         * lib/sysexits.in.h: Likewise.
61151         * lib/tempname.c: Likewise.
61152         * lib/tempname.h: Likewise.
61153         * lib/timespec.h: Likewise.
61154         * lib/tls.c: Likewise.
61155         * lib/tls.h: Likewise.
61156         * lib/tmpdir.c: Likewise.
61157         * lib/tmpdir.h: Likewise.
61158         * lib/tmpfile-safer.c: Likewise.
61159         * lib/tmpfile.c: Likewise.
61160         * lib/trigl.c: Likewise.
61161         * lib/trigl.h: Likewise.
61162         * lib/trim.c: Likewise.
61163         * lib/trim.h: Likewise.
61164         * lib/trunc.c: Likewise.
61165         * lib/truncf.c: Likewise.
61166         * lib/truncl.c: Likewise.
61167         * lib/tsearch.c: Likewise.
61168         * lib/unicodeio.c: Likewise.
61169         * lib/unicodeio.h: Likewise.
61170         * lib/unistd--.h: Likewise.
61171         * lib/unistd-safer.h: Likewise.
61172         * lib/unistdio/ulc-fprintf.c: Likewise.
61173         * lib/unistdio/ulc-vfprintf.c: Likewise.
61174         * lib/unlinkdir.c: Likewise.
61175         * lib/unlinkdir.h: Likewise.
61176         * lib/unlocked-io.h: Likewise.
61177         * lib/unsetenv.c: Likewise.
61178         * lib/userspec.c: Likewise.
61179         * lib/utime.c: Likewise.
61180         * lib/utimecmp.c: Likewise.
61181         * lib/utimecmp.h: Likewise.
61182         * lib/utimens.c: Likewise.
61183         * lib/verify.h: Likewise.
61184         * lib/verror.c: Likewise.
61185         * lib/verror.h: Likewise.
61186         * lib/version-etc-fsf.c: Likewise.
61187         * lib/version-etc.c: Likewise.
61188         * lib/version-etc.h: Likewise.
61189         * lib/vfprintf.c: Likewise.
61190         * lib/vprintf.c: Likewise.
61191         * lib/vsprintf.c: Likewise.
61192         * lib/w32spawn.h: Likewise.
61193         * lib/wait-process.c: Likewise.
61194         * lib/wait-process.h: Likewise.
61195         * lib/wcwidth.c: Likewise.
61196         * lib/write-any-file.c: Likewise.
61197         * lib/xalloc-die.c: Likewise.
61198         * lib/xalloc.h: Likewise.
61199         * lib/xasprintf.c: Likewise.
61200         * lib/xgetcwd.c: Likewise.
61201         * lib/xgetcwd.h: Likewise.
61202         * lib/xgetdomainname.c: Likewise.
61203         * lib/xgetdomainname.h: Likewise.
61204         * lib/xgethostname.c: Likewise.
61205         * lib/xmalloc.c: Likewise.
61206         * lib/xmalloca.c: Likewise.
61207         * lib/xmalloca.h: Likewise.
61208         * lib/xmemcoll.c: Likewise.
61209         * lib/xnanosleep.c: Likewise.
61210         * lib/xreadlink.c: Likewise.
61211         * lib/xreadlink.h: Likewise.
61212         * lib/xsetenv.c: Likewise.
61213         * lib/xsetenv.h: Likewise.
61214         * lib/xstriconv.c: Likewise.
61215         * lib/xstriconv.h: Likewise.
61216         * lib/xstrndup.c: Likewise.
61217         * lib/xstrndup.h: Likewise.
61218         * lib/xstrtod.c: Likewise.
61219         * lib/xstrtod.h: Likewise.
61220         * lib/xstrtol-error.c: Likewise.
61221         * lib/xstrtol.c: Likewise.
61222         * lib/xstrtol.h: Likewise.
61223         * lib/xtime.h: Likewise.
61224         * lib/xvasprintf.c: Likewise.
61225         * lib/xvasprintf.h: Likewise.
61226         * lib/yesno.c: Likewise.
61227         * lib/yesno.h: Likewise.
61228         * posix-modules: Likewise.
61229         * tests/test-alloca-opt.c: Likewise.
61230         * tests/test-arcfour.c: Likewise.
61231         * tests/test-arctwo.c: Likewise.
61232         * tests/test-argmatch.c: Likewise.
61233         * tests/test-argp-2.sh: Likewise.
61234         * tests/test-argp.c: Likewise.
61235         * tests/test-arpa_inet.c: Likewise.
61236         * tests/test-array_list.c: Likewise.
61237         * tests/test-array_oset.c: Likewise.
61238         * tests/test-atexit.c: Likewise.
61239         * tests/test-avltree_list.c: Likewise.
61240         * tests/test-avltree_oset.c: Likewise.
61241         * tests/test-avltreehash_list.c: Likewise.
61242         * tests/test-base64.c: Likewise.
61243         * tests/test-binary-io.c: Likewise.
61244         * tests/test-byteswap.c: Likewise.
61245         * tests/test-c-ctype.c: Likewise.
61246         * tests/test-c-strcasecmp.c: Likewise.
61247         * tests/test-c-strcasestr.c: Likewise.
61248         * tests/test-c-strncasecmp.c: Likewise.
61249         * tests/test-c-strstr.c: Likewise.
61250         * tests/test-canonicalize-lgpl.c: Likewise.
61251         * tests/test-canonicalize.c: Likewise.
61252         * tests/test-carray_list.c: Likewise.
61253         * tests/test-ceilf.c: Likewise.
61254         * tests/test-ceill.c: Likewise.
61255         * tests/test-count-one-bits.c: Likewise.
61256         * tests/test-crc.c: Likewise.
61257         * tests/test-dirname.c: Likewise.
61258         * tests/test-fbufmode.c: Likewise.
61259         * tests/test-fcntl.c: Likewise.
61260         * tests/test-fflush.c: Likewise.
61261         * tests/test-floorf.c: Likewise.
61262         * tests/test-floorl.c: Likewise.
61263         * tests/test-fopen.c: Likewise.
61264         * tests/test-fprintf-posix.c: Likewise.
61265         * tests/test-fprintf-posix.h: Likewise.
61266         * tests/test-fpurge.c: Likewise.
61267         * tests/test-freadable.c: Likewise.
61268         * tests/test-freadahead.c: Likewise.
61269         * tests/test-freading.c: Likewise.
61270         * tests/test-freopen.c: Likewise.
61271         * tests/test-frexp.c: Likewise.
61272         * tests/test-frexpl.c: Likewise.
61273         * tests/test-fseek.c: Likewise.
61274         * tests/test-fseeko.c: Likewise.
61275         * tests/test-fseterr.c: Likewise.
61276         * tests/test-fstrcmp.c: Likewise.
61277         * tests/test-ftell.c: Likewise.
61278         * tests/test-ftello.c: Likewise.
61279         * tests/test-fwritable.c: Likewise.
61280         * tests/test-fwriting.c: Likewise.
61281         * tests/test-getaddrinfo.c: Likewise.
61282         * tests/test-getpass.c: Likewise.
61283         * tests/test-gettimeofday.c: Likewise.
61284         * tests/test-hmac-md5.c: Likewise.
61285         * tests/test-hmac-sha1.c: Likewise.
61286         * tests/test-iconv.c: Likewise.
61287         * tests/test-iconvme.c: Likewise.
61288         * tests/test-inttypes.c: Likewise.
61289         * tests/test-isnan.c: Likewise.
61290         * tests/test-isnanf.c: Likewise.
61291         * tests/test-isnanl-nolibm.c: Likewise.
61292         * tests/test-isnanl.c: Likewise.
61293         * tests/test-isnanl.h: Likewise.
61294         * tests/test-ldexpl.c: Likewise.
61295         * tests/test-linked_list.c: Likewise.
61296         * tests/test-linkedhash_list.c: Likewise.
61297         * tests/test-locale.c: Likewise.
61298         * tests/test-localename.c: Likewise.
61299         * tests/test-lock.c: Likewise.
61300         * tests/test-lseek.c: Likewise.
61301         * tests/test-malloca.c: Likewise.
61302         * tests/test-math.c: Likewise.
61303         * tests/test-mbscasecmp.c: Likewise.
61304         * tests/test-mbscasestr1.c: Likewise.
61305         * tests/test-mbscasestr2.c: Likewise.
61306         * tests/test-mbscasestr3.c: Likewise.
61307         * tests/test-mbscasestr4.c: Likewise.
61308         * tests/test-mbschr.c: Likewise.
61309         * tests/test-mbscspn.c: Likewise.
61310         * tests/test-mbsncasecmp.c: Likewise.
61311         * tests/test-mbspbrk.c: Likewise.
61312         * tests/test-mbspcasecmp.c: Likewise.
61313         * tests/test-mbsrchr.c: Likewise.
61314         * tests/test-mbsspn.c: Likewise.
61315         * tests/test-mbsstr1.c: Likewise.
61316         * tests/test-mbsstr2.c: Likewise.
61317         * tests/test-mbsstr3.c: Likewise.
61318         * tests/test-md5.c: Likewise.
61319         * tests/test-memmem.c: Likewise.
61320         * tests/test-netinet_in.c: Likewise.
61321         * tests/test-open.c: Likewise.
61322         * tests/test-printf-frexp.c: Likewise.
61323         * tests/test-printf-frexpl.c: Likewise.
61324         * tests/test-printf-posix.c: Likewise.
61325         * tests/test-printf-posix.h: Likewise.
61326         * tests/test-rbtree_list.c: Likewise.
61327         * tests/test-rbtree_oset.c: Likewise.
61328         * tests/test-rbtreehash_list.c: Likewise.
61329         * tests/test-read-file.c: Likewise.
61330         * tests/test-rijndael.c: Likewise.
61331         * tests/test-search.c: Likewise.
61332         * tests/test-signbit.c: Likewise.
61333         * tests/test-sleep.c: Likewise.
61334         * tests/test-snprintf-posix.c: Likewise.
61335         * tests/test-snprintf-posix.h: Likewise.
61336         * tests/test-snprintf.c: Likewise.
61337         * tests/test-sprintf-posix.c: Likewise.
61338         * tests/test-sprintf-posix.h: Likewise.
61339         * tests/test-stat-time.c: Likewise.
61340         * tests/test-stdbool.c: Likewise.
61341         * tests/test-stdint.c: Likewise.
61342         * tests/test-stdio.c: Likewise.
61343         * tests/test-stdlib.c: Likewise.
61344         * tests/test-stpncpy.c: Likewise.
61345         * tests/test-strcasestr.c: Likewise.
61346         * tests/test-striconv.c: Likewise.
61347         * tests/test-striconveh.c: Likewise.
61348         * tests/test-striconveha.c: Likewise.
61349         * tests/test-string.c: Likewise.
61350         * tests/test-sys_select.c: Likewise.
61351         * tests/test-sys_socket.c: Likewise.
61352         * tests/test-sys_stat.c: Likewise.
61353         * tests/test-sys_time.c: Likewise.
61354         * tests/test-sysexits.c: Likewise.
61355         * tests/test-time.c: Likewise.
61356         * tests/test-tls.c: Likewise.
61357         * tests/test-trunc.c: Likewise.
61358         * tests/test-truncf.c: Likewise.
61359         * tests/test-truncl.c: Likewise.
61360         * tests/test-unistd.c: Likewise.
61361         * tests/test-vasnprintf-posix.c: Likewise.
61362         * tests/test-vasnprintf-posix2.c: Likewise.
61363         * tests/test-vasnprintf.c: Likewise.
61364         * tests/test-vasprintf-posix.c: Likewise.
61365         * tests/test-vasprintf.c: Likewise.
61366         * tests/test-verify.c: Likewise.
61367         * tests/test-vfprintf-posix.c: Likewise.
61368         * tests/test-vprintf-posix.c: Likewise.
61369         * tests/test-vsnprintf-posix.c: Likewise.
61370         * tests/test-vsnprintf.c: Likewise.
61371         * tests/test-vsprintf-posix.c: Likewise.
61372         * tests/test-wchar.c: Likewise.
61373         * tests/test-wctype.c: Likewise.
61374         * tests/test-wcwidth.c: Likewise.
61375         * tests/test-xstrtol.c: Likewise.
61376         * tests/test-xvasprintf.c: Likewise.
61377         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61378         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61379         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61380         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61381         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61382         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61383         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61384         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61385         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61386         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61387         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61388         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61389         * tests/uniname/test-uninames.c: Likewise.
61390         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61391         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61392         * tests/unistdio/test-u16-printf1.h: Likewise.
61393         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61394         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61395         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61396         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61397         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61398         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61399         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61400         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61401         * tests/unistdio/test-u32-printf1.h: Likewise.
61402         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61403         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61404         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61405         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61406         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61407         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61408         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61409         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61410         * tests/unistdio/test-u8-printf1.h: Likewise.
61411         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61412         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61413         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61414         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61415         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61416         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61417         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61418         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61419         * tests/unistdio/test-ulc-printf1.h: Likewise.
61420         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61421         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61422         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61423         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61424         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61425         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61426         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61427         * tests/uniwidth/test-u16-width.c: Likewise.
61428         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61429         * tests/uniwidth/test-u32-width.c: Likewise.
61430         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61431         * tests/uniwidth/test-u8-width.c: Likewise.
61432         * tests/uniwidth/test-uc_width.c: Likewise.
61433         * config/srclist-update: Likewise.
61434         (fixlicense): Update to GPLv3+.
61435
61436         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61437         * tests/test-tsearch.c: Change copyright notice.
61438
61439         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61440         * lib/c-strcaseeq.h: Change copyright notice.
61441         * lib/streq.h: Likewise.
61442         * lib/uniconv.h: Likewise.
61443         * lib/uniconv/u-conv-from-enc.h: Likewise.
61444         * lib/uniconv/u-conv-to-enc.h: Likewise.
61445         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61446         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61447         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61448         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61449         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61450         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61451         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61452         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61453         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61454         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61455         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61456         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61457         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61458         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61459         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61460         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61461         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61462         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61463         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61464         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61465         * lib/uniname.h: Likewise.
61466         * lib/uniname/uniname.c: Likewise.
61467         * lib/unistdio.h: Likewise.
61468         * lib/unistdio/u-asnprintf.h: Likewise.
61469         * lib/unistdio/u-asprintf.h: Likewise.
61470         * lib/unistdio/u-printf-args.c: Likewise.
61471         * lib/unistdio/u-printf-args.h: Likewise.
61472         * lib/unistdio/u-printf-parse.h: Likewise.
61473         * lib/unistdio/u-snprintf.h: Likewise.
61474         * lib/unistdio/u-sprintf.h: Likewise.
61475         * lib/unistdio/u-vasprintf.h: Likewise.
61476         * lib/unistdio/u-vsnprintf.h: Likewise.
61477         * lib/unistdio/u-vsprintf.h: Likewise.
61478         * lib/unistdio/u16-asnprintf.c: Likewise.
61479         * lib/unistdio/u16-asprintf.c: Likewise.
61480         * lib/unistdio/u16-printf-parse.c: Likewise.
61481         * lib/unistdio/u16-snprintf.c: Likewise.
61482         * lib/unistdio/u16-sprintf.c: Likewise.
61483         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61484         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61485         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61486         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61487         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61488         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61489         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61490         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61491         * lib/unistdio/u16-vasnprintf.c: Likewise.
61492         * lib/unistdio/u16-vasprintf.c: Likewise.
61493         * lib/unistdio/u16-vsnprintf.c: Likewise.
61494         * lib/unistdio/u16-vsprintf.c: Likewise.
61495         * lib/unistdio/u32-asnprintf.c: Likewise.
61496         * lib/unistdio/u32-asprintf.c: Likewise.
61497         * lib/unistdio/u32-printf-parse.c: Likewise.
61498         * lib/unistdio/u32-snprintf.c: Likewise.
61499         * lib/unistdio/u32-sprintf.c: Likewise.
61500         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61501         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61502         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61503         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61504         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61505         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61506         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61507         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61508         * lib/unistdio/u32-vasnprintf.c: Likewise.
61509         * lib/unistdio/u32-vasprintf.c: Likewise.
61510         * lib/unistdio/u32-vsnprintf.c: Likewise.
61511         * lib/unistdio/u32-vsprintf.c: Likewise.
61512         * lib/unistdio/u8-asnprintf.c: Likewise.
61513         * lib/unistdio/u8-asprintf.c: Likewise.
61514         * lib/unistdio/u8-printf-parse.c: Likewise.
61515         * lib/unistdio/u8-snprintf.c: Likewise.
61516         * lib/unistdio/u8-sprintf.c: Likewise.
61517         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61518         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61519         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61520         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61521         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61522         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61523         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61524         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61525         * lib/unistdio/u8-vasnprintf.c: Likewise.
61526         * lib/unistdio/u8-vasprintf.c: Likewise.
61527         * lib/unistdio/u8-vsnprintf.c: Likewise.
61528         * lib/unistdio/u8-vsprintf.c: Likewise.
61529         * lib/unistdio/ulc-asnprintf.c: Likewise.
61530         * lib/unistdio/ulc-asprintf.c: Likewise.
61531         * lib/unistdio/ulc-printf-parse.c: Likewise.
61532         * lib/unistdio/ulc-snprintf.c: Likewise.
61533         * lib/unistdio/ulc-sprintf.c: Likewise.
61534         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61535         * lib/unistdio/ulc-vasprintf.c: Likewise.
61536         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61537         * lib/unistdio/ulc-vsprintf.c: Likewise.
61538         * lib/unistr.h: Likewise.
61539         * lib/unistr/u-cpy-alloc.h: Likewise.
61540         * lib/unistr/u-cpy.h: Likewise.
61541         * lib/unistr/u-endswith.h: Likewise.
61542         * lib/unistr/u-move.h: Likewise.
61543         * lib/unistr/u-set.h: Likewise.
61544         * lib/unistr/u-startswith.h: Likewise.
61545         * lib/unistr/u-stpcpy.h: Likewise.
61546         * lib/unistr/u-stpncpy.h: Likewise.
61547         * lib/unistr/u-strcat.h: Likewise.
61548         * lib/unistr/u-strcpy.h: Likewise.
61549         * lib/unistr/u-strcspn.h: Likewise.
61550         * lib/unistr/u-strdup.h: Likewise.
61551         * lib/unistr/u-strlen.h: Likewise.
61552         * lib/unistr/u-strncat.h: Likewise.
61553         * lib/unistr/u-strncpy.h: Likewise.
61554         * lib/unistr/u-strnlen.h: Likewise.
61555         * lib/unistr/u-strpbrk.h: Likewise.
61556         * lib/unistr/u-strspn.h: Likewise.
61557         * lib/unistr/u-strstr.h: Likewise.
61558         * lib/unistr/u-strtok.h: Likewise.
61559         * lib/unistr/u16-check.c: Likewise.
61560         * lib/unistr/u16-chr.c: Likewise.
61561         * lib/unistr/u16-cmp.c: Likewise.
61562         * lib/unistr/u16-cpy-alloc.c: Likewise.
61563         * lib/unistr/u16-cpy.c: Likewise.
61564         * lib/unistr/u16-endswith.c: Likewise.
61565         * lib/unistr/u16-mblen.c: Likewise.
61566         * lib/unistr/u16-mbsnlen.c: Likewise.
61567         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61568         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61569         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61570         * lib/unistr/u16-mbtouc.c: Likewise.
61571         * lib/unistr/u16-mbtoucr.c: Likewise.
61572         * lib/unistr/u16-move.c: Likewise.
61573         * lib/unistr/u16-next.c: Likewise.
61574         * lib/unistr/u16-prev.c: Likewise.
61575         * lib/unistr/u16-set.c: Likewise.
61576         * lib/unistr/u16-startswith.c: Likewise.
61577         * lib/unistr/u16-stpcpy.c: Likewise.
61578         * lib/unistr/u16-stpncpy.c: Likewise.
61579         * lib/unistr/u16-strcat.c: Likewise.
61580         * lib/unistr/u16-strchr.c: Likewise.
61581         * lib/unistr/u16-strcmp.c: Likewise.
61582         * lib/unistr/u16-strcpy.c: Likewise.
61583         * lib/unistr/u16-strcspn.c: Likewise.
61584         * lib/unistr/u16-strdup.c: Likewise.
61585         * lib/unistr/u16-strlen.c: Likewise.
61586         * lib/unistr/u16-strmblen.c: Likewise.
61587         * lib/unistr/u16-strmbtouc.c: Likewise.
61588         * lib/unistr/u16-strncat.c: Likewise.
61589         * lib/unistr/u16-strncmp.c: Likewise.
61590         * lib/unistr/u16-strncpy.c: Likewise.
61591         * lib/unistr/u16-strnlen.c: Likewise.
61592         * lib/unistr/u16-strpbrk.c: Likewise.
61593         * lib/unistr/u16-strrchr.c: Likewise.
61594         * lib/unistr/u16-strspn.c: Likewise.
61595         * lib/unistr/u16-strstr.c: Likewise.
61596         * lib/unistr/u16-strtok.c: Likewise.
61597         * lib/unistr/u16-to-u32.c: Likewise.
61598         * lib/unistr/u16-to-u8.c: Likewise.
61599         * lib/unistr/u16-uctomb-aux.c: Likewise.
61600         * lib/unistr/u16-uctomb.c: Likewise.
61601         * lib/unistr/u32-check.c: Likewise.
61602         * lib/unistr/u32-chr.c: Likewise.
61603         * lib/unistr/u32-cmp.c: Likewise.
61604         * lib/unistr/u32-cpy-alloc.c: Likewise.
61605         * lib/unistr/u32-cpy.c: Likewise.
61606         * lib/unistr/u32-endswith.c: Likewise.
61607         * lib/unistr/u32-mblen.c: Likewise.
61608         * lib/unistr/u32-mbsnlen.c: Likewise.
61609         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61610         * lib/unistr/u32-mbtouc.c: Likewise.
61611         * lib/unistr/u32-mbtoucr.c: Likewise.
61612         * lib/unistr/u32-move.c: Likewise.
61613         * lib/unistr/u32-next.c: Likewise.
61614         * lib/unistr/u32-prev.c: Likewise.
61615         * lib/unistr/u32-set.c: Likewise.
61616         * lib/unistr/u32-startswith.c: Likewise.
61617         * lib/unistr/u32-stpcpy.c: Likewise.
61618         * lib/unistr/u32-stpncpy.c: Likewise.
61619         * lib/unistr/u32-strcat.c: Likewise.
61620         * lib/unistr/u32-strchr.c: Likewise.
61621         * lib/unistr/u32-strcmp.c: Likewise.
61622         * lib/unistr/u32-strcpy.c: Likewise.
61623         * lib/unistr/u32-strcspn.c: Likewise.
61624         * lib/unistr/u32-strdup.c: Likewise.
61625         * lib/unistr/u32-strlen.c: Likewise.
61626         * lib/unistr/u32-strmblen.c: Likewise.
61627         * lib/unistr/u32-strmbtouc.c: Likewise.
61628         * lib/unistr/u32-strncat.c: Likewise.
61629         * lib/unistr/u32-strncmp.c: Likewise.
61630         * lib/unistr/u32-strncpy.c: Likewise.
61631         * lib/unistr/u32-strnlen.c: Likewise.
61632         * lib/unistr/u32-strpbrk.c: Likewise.
61633         * lib/unistr/u32-strrchr.c: Likewise.
61634         * lib/unistr/u32-strspn.c: Likewise.
61635         * lib/unistr/u32-strstr.c: Likewise.
61636         * lib/unistr/u32-strtok.c: Likewise.
61637         * lib/unistr/u32-to-u16.c: Likewise.
61638         * lib/unistr/u32-to-u8.c: Likewise.
61639         * lib/unistr/u32-uctomb.c: Likewise.
61640         * lib/unistr/u8-check.c: Likewise.
61641         * lib/unistr/u8-chr.c: Likewise.
61642         * lib/unistr/u8-cmp.c: Likewise.
61643         * lib/unistr/u8-cpy-alloc.c: Likewise.
61644         * lib/unistr/u8-cpy.c: Likewise.
61645         * lib/unistr/u8-endswith.c: Likewise.
61646         * lib/unistr/u8-mblen.c: Likewise.
61647         * lib/unistr/u8-mbsnlen.c: Likewise.
61648         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61649         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61650         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61651         * lib/unistr/u8-mbtouc.c: Likewise.
61652         * lib/unistr/u8-mbtoucr.c: Likewise.
61653         * lib/unistr/u8-move.c: Likewise.
61654         * lib/unistr/u8-next.c: Likewise.
61655         * lib/unistr/u8-prev.c: Likewise.
61656         * lib/unistr/u8-set.c: Likewise.
61657         * lib/unistr/u8-startswith.c: Likewise.
61658         * lib/unistr/u8-stpcpy.c: Likewise.
61659         * lib/unistr/u8-stpncpy.c: Likewise.
61660         * lib/unistr/u8-strcat.c: Likewise.
61661         * lib/unistr/u8-strchr.c: Likewise.
61662         * lib/unistr/u8-strcmp.c: Likewise.
61663         * lib/unistr/u8-strcpy.c: Likewise.
61664         * lib/unistr/u8-strcspn.c: Likewise.
61665         * lib/unistr/u8-strdup.c: Likewise.
61666         * lib/unistr/u8-strlen.c: Likewise.
61667         * lib/unistr/u8-strmblen.c: Likewise.
61668         * lib/unistr/u8-strmbtouc.c: Likewise.
61669         * lib/unistr/u8-strncat.c: Likewise.
61670         * lib/unistr/u8-strncmp.c: Likewise.
61671         * lib/unistr/u8-strncpy.c: Likewise.
61672         * lib/unistr/u8-strnlen.c: Likewise.
61673         * lib/unistr/u8-strpbrk.c: Likewise.
61674         * lib/unistr/u8-strrchr.c: Likewise.
61675         * lib/unistr/u8-strspn.c: Likewise.
61676         * lib/unistr/u8-strstr.c: Likewise.
61677         * lib/unistr/u8-strtok.c: Likewise.
61678         * lib/unistr/u8-to-u16.c: Likewise.
61679         * lib/unistr/u8-to-u32.c: Likewise.
61680         * lib/unistr/u8-uctomb-aux.c: Likewise.
61681         * lib/unistr/u8-uctomb.c: Likewise.
61682         * lib/unitypes.h: Likewise.
61683         * lib/uniwidth.h: Likewise.
61684         * lib/uniwidth/cjk.h: Likewise.
61685         * lib/uniwidth/u16-strwidth.c: Likewise.
61686         * lib/uniwidth/u16-width.c: Likewise.
61687         * lib/uniwidth/u32-strwidth.c: Likewise.
61688         * lib/uniwidth/u32-width.c: Likewise.
61689         * lib/uniwidth/u8-strwidth.c: Likewise.
61690         * lib/uniwidth/u8-width.c: Likewise.
61691         * lib/uniwidth/width.c: Likewise.
61692
61693 2007-10-07  Bruno Haible  <bruno@clisp.org>
61694
61695         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61696         The file is still under LGPL (see modules/inttypes).
61697
61698 2007-10-06  Bruno Haible  <bruno@clisp.org>
61699
61700         * modules/trunc (Dependencies): Add 'extensions'.
61701         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61702         Reported by Ben Pfaff <blp@gnu.org>.
61703
61704 2007-10-06  Bruno Haible  <bruno@clisp.org>
61705
61706         * modules/freopen-tests: New file.
61707         * tests/test-freopen.c: New file.
61708
61709         * modules/fopen-tests: New file.
61710         * tests/test-fopen.c: New file.
61711
61712         * modules/fopen: New file.
61713         * lib/fopen.c: New file.
61714         * m4/fopen.m4: New file.
61715         * modules/freopen: New file.
61716         * lib/freopen.c: New file.
61717         * m4/freopen.m4: New file.
61718         * lib/stdio.in.h (fopen, freopen): New declarations.
61719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61720         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61721         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61722         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61723         * doc/functions/fopen.texi: Mention the 'fopen' module.
61724         * doc/functions/freopen.texi: Mention the 'freopen' module.
61725
61726 2007-10-06  Bruno Haible  <bruno@clisp.org>
61727
61728         * modules/open-tests: New file.
61729         * tests/test-open.c: New file.
61730
61731         * modules/open: New file.
61732         * lib/open.c: New file.
61733         * m4/open.m4: New file.
61734         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61735         lib/open.c does.
61736         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61737         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61738         macros.
61739         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61740         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61741         REPLACE_OPEN.
61742         * doc/functions/open.texi: Mention the 'open' module.
61743
61744 2007-10-04  Bruno Haible  <bruno@clisp.org>
61745
61746         * modules/ceill-tests: New file.
61747         * tests/test-ceill.c: New file.
61748
61749         * modules/ceill: New file.
61750         * lib/ceill.c: Replace entire file.
61751         * m4/ceill.m4: New file.
61752         * lib/math.in.h (ceill): Replace declaration.
61753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61754         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61755         * doc/functions/ceill.texi: Mention the 'ceill' module.
61756         * modules/mathl (Files): Remove lib/ceill.c.
61757         (Depends-on): Add ceill.
61758
61759 2007-10-04  Bruno Haible  <bruno@clisp.org>
61760
61761         * modules/ceilf-tests: New file.
61762         * tests/test-ceilf.c: New file.
61763
61764         * modules/ceilf: New file.
61765         * lib/ceil.c: New file.
61766         * lib/ceilf.c: New file.
61767         * m4/ceilf.m4: New file.
61768         * lib/math.in.h (ceilf): New declaration.
61769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61770         HAVE_DECL_CEILF.
61771         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61772         HAVE_DECL_CEILF.
61773         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61774
61775 2007-10-04  Bruno Haible  <bruno@clisp.org>
61776
61777         * modules/floorl-tests: New file.
61778         * tests/test-floorl.c: New file.
61779
61780         * modules/floorl: New file.
61781         * lib/floorl.c: Replace entire file.
61782         * m4/floorl.m4: New file.
61783         * lib/math.in.h (floorl): Replace declaration.
61784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61785         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61786         * doc/functions/floorl.texi: Mention the 'floorl' module.
61787         * modules/mathl (Files): Remove lib/floorl.c.
61788         (Depends-on): Add floorl.
61789
61790 2007-10-04  Bruno Haible  <bruno@clisp.org>
61791
61792         * modules/floorf-tests: New file.
61793         * tests/test-floorf.c: New file.
61794
61795         * modules/floorf: New file.
61796         * lib/floor.c: New file.
61797         * lib/floorf.c: New file.
61798         * m4/floorf.m4: New file.
61799         * lib/math.in.h (floorf): New declaration.
61800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61801         HAVE_DECL_FLOORF.
61802         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61803         HAVE_DECL_FLOORF.
61804         * doc/functions/floorf.texi: Mention the 'floorf' module.
61805
61806 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61807             Bruno Haible  <bruno@clisp.org>
61808
61809         Advertise for the Git server instead of the CVS server.
61810         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61811         repository instead of the CVS one.
61812         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61813         about all VCS systems generically.
61814         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61815
61816 2007-10-04  Bruno Haible  <bruno@clisp.org>
61817
61818         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61819         means.
61820         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61821
61822 2007-10-04  Bruno Haible  <bruno@clisp.org>
61823
61824         * modules/truncl-tests: New file.
61825         * tests/test-truncl.c: New file.
61826
61827         * modules/truncl: New file.
61828         * lib/truncl.c: New file.
61829         * m4/truncl.m4: New file.
61830         * lib/math.in.h (truncl): New declaration.
61831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61832         HAVE_DECL_TRUNCL.
61833         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61834         HAVE_DECL_TRUNCL.
61835         * doc/functions/truncl.texi: Mention the 'truncl' module.
61836
61837 2007-10-04  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/truncf-tests: New file.
61840         * tests/test-truncf.c: New file.
61841
61842         * modules/truncf: New file.
61843         * lib/trunc.c: Make paramerizable through USE_* macros.
61844         * lib/truncf.c: New file.
61845         * m4/truncf.m4: New file.
61846         * lib/math.in.h (truncf): New declaration.
61847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61848         HAVE_DECL_TRUNCF.
61849         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61850         HAVE_DECL_TRUNCF.
61851         * doc/functions/truncf.texi: Mention the 'truncf' module.
61852
61853 2007-10-03  Bruno Haible  <bruno@clisp.org>
61854
61855         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61856         augmentation also for tests modules.
61857         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61858         * modules/atexit-tests (Makefile.am): Likewise.
61859         * modules/binary-io-tests (Makefile.am): Likewise.
61860         * modules/c-strcase-tests (Makefile.am): Likewise.
61861         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61862         * modules/canonicalize-tests (Makefile.am): Likewise.
61863         * modules/closein-tests (Makefile.am): Likewise.
61864         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61865         * modules/freadahead-tests (Makefile.am): Likewise.
61866         * modules/fseek-tests (Makefile.am): Likewise.
61867         * modules/fseeko-tests (Makefile.am): Likewise.
61868         * modules/ftell-tests (Makefile.am): Likewise.
61869         * modules/ftello-tests (Makefile.am): Likewise.
61870         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61871         * modules/isnanl-tests (Makefile.am): Likewise.
61872         * modules/lseek-tests (Makefile.am): Likewise.
61873         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61874         * modules/mbscasestr-tests (Makefile.am): Likewise.
61875         * modules/mbschr-tests (Makefile.am): Likewise.
61876         * modules/mbscspn-tests (Makefile.am): Likewise.
61877         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61878         * modules/mbspbrk-tests (Makefile.am): Likewise.
61879         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61880         * modules/mbsrchr-tests (Makefile.am): Likewise.
61881         * modules/mbsspn-tests (Makefile.am): Likewise.
61882         * modules/mbsstr-tests (Makefile.am): Likewise.
61883         * modules/printf-posix-tests (Makefile.am): Likewise.
61884         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61885         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61886         * modules/tsearch-tests (Makefile.am): Likewise.
61887         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61888         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61889         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61890         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61891         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61892         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61893         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61894         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61895         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61896         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61897         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61898         * modules/xstrtol-tests (Makefile.am): Likewise.
61899         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61900         * modules/yesno-tests (Makefile.am): Likewise.
61901
61902 2007-10-03  Bruno Haible  <bruno@clisp.org>
61903
61904         * modules/trunc-tests: New file.
61905         * tests/test-trunc.c: New file.
61906
61907         * modules/trunc: New file.
61908         * lib/trunc.c: New file.
61909         * m4/trunc.m4: New file.
61910         * lib/math.in.h (trunc): New declaration.
61911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61912         HAVE_DECL_TRUNC.
61913         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61914         HAVE_DECL_TRUNC.
61915         * doc/functions/trunc.texi: Mention the 'trunc' module.
61916
61917 2007-10-03  Bruno Haible  <bruno@clisp.org>
61918
61919         * tests/test-fpending.c: New file, mostly copied
61920         from coreutils/lib/t-fpending.c.
61921         * modules/fpending-tests: New file.
61922
61923 2007-10-03  Bruno Haible  <bruno@clisp.org>
61924
61925         Port the stdio extensions to QNX (untested).
61926         * lib/fseterr.c (fseterr): Add support for QNX.
61927         * lib/fbufmode.c (fbufmode): Likewise.
61928         * lib/freadable.c (freadable): Likewise.
61929         * lib/fwritable.c (fwritable): Likewise.
61930         * lib/freading.c (freading): Likewise.
61931         * lib/fwriting.c (fwriting): Likewise.
61932         * lib/freadahead.c (freadahed): Likewise.
61933         * lib/fpurge.c (fpurge): Likewise.
61934         * lib/fseeko.c (rpl_fseeko): Likewise.
61935
61936 2007-10-03  Bruno Haible  <bruno@clisp.org>
61937             Jim Meyering  <jim@meyering.net>
61938             Eric Blake  <ebb9@byu.net>
61939
61940         * doc/relocatable.texi: Use @command instead of @program.
61941
61942 2007-10-02  Jim Meyering  <jim@meyering.net>
61943
61944         Perform one more "_.h" -> ".in.h" substitution.
61945         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61946         instead of unistd_.h here, too.
61947
61948 2007-10-01  Bruno Haible  <bruno@clisp.org>
61949
61950         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61951         Needed for the alloca-opt module.
61952
61953 2007-09-30  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61956         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61957         alloca_.h.
61958         * lib/argz.in.h: Renamed from lib/argz_.h.
61959         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61960         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61961         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61962         byteswap_.h.
61963         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61964         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61965         dirent_.h.
61966         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61967         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61968         fcntl_.h.
61969         * lib/float.in.h: Renamed from lib/float_.h.
61970         * modules/float (Files, Makefile.am): Use float.in.h instead of
61971         float_.h.
61972         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61973         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61974         fnmatch_.h.
61975         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61976         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61977         getopt_.h.
61978         * lib/glob.in.h: Renamed from lib/glob_.h.
61979         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61980         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61981         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61982         iconv_.h.
61983         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61984         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61985         inttypes_.h.
61986         * lib/locale.in.h: Renamed from lib/locale_.h.
61987         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61988         locale_.h.
61989         * lib/math.in.h: Renamed from lib/math_.h.
61990         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61991         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61992         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61993         of netinet_in_.h. Add dependency.
61994         * lib/poll.in.h: Renamed from lib/poll_.h.
61995         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61996         * lib/search.in.h: Renamed from lib/search_.h.
61997         * modules/search (Files, Makefile.am): Use search.in.h instead of
61998         search_.h.
61999         * lib/signal.in.h: Renamed from lib/signal_.h.
62000         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62001         _signal.h.
62002         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62003         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62004         stdbool_.h.
62005         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62006         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62007         stdint_.h.
62008         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62009         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62010         stdio_.h.
62011         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62012         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62013         stdlib_.h.
62014         * lib/string.in.h: Renamed from lib/string_.h.
62015         * modules/string (Files, Makefile.am): Use string.in.h instead of
62016         string_.h.
62017         * doc/gnulib-tool.texi (Initial import): Update.
62018         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62019         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62020         of sys_select_.h. Add dependency.
62021         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62022         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62023         of sys_socket_.h.
62024         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62025         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62026         sys_stat_.h.
62027         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62028         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62029         sys_time_.h.
62030         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62031         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62032         sysexits_.h.
62033         * lib/time.in.h: Renamed from lib/time_.h.
62034         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62035         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62036         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62037         unistd_.h.
62038         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62039         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62040         wchar_.h.
62041         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62042         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62043         wctype_.h.
62044         * build-aux/bootstrap (slurp): Update.
62045         * lib/.cppi-disable: Update.
62046
62047 2007-09-30  Bruno Haible  <bruno@clisp.org>
62048
62049         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62050         Needed on BeOS.
62051
62052 2007-09-30  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62055
62056 2007-09-29  Bruno Haible  <bruno@clisp.org>
62057
62058         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62059
62060 2007-09-29  Bruno Haible  <bruno@clisp.org>
62061
62062         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62063         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62064         * build-aux/install-reloc: Compile also areadlink.c.
62065         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62066
62067 2007-09-29  Bruno Haible  <bruno@clisp.org>
62068
62069         * gnulib-tool (func_emit_initmacro_done): Indentation.
62070
62071 2007-09-29  Bruno Haible  <bruno@clisp.org>
62072
62073         * README: Add CVS checkout update instructions.
62074         Info from Bob Proulx <bob@proulx.com>.
62075
62076 2007-09-28  Eric Blake  <ebb9@byu.net>
62077
62078         Provide move-if-change.
62079         * build-aux/move-if-change: New file, based on best practice
62080         rather than any canonical upstream location.
62081
62082 2007-09-28  Jim Meyering  <jim@meyering.net>
62083
62084         Fix canonicalize loop-detection corner case.
62085         Do not attempt to stat the symlink values stored via seen_triple.
62086         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62087         on linux-2.6.18, (but not 2.6.22).
62088         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62089         triple_compare.  The former compares dev,ino,filename, while the latter
62090         would actually stat dirname(filename) when dev and ino were equal.
62091         * lib/hash-triple.c: Install <string.h>.
62092         (STREQ): Define.
62093         (triple_compare_ino_str): New function.
62094         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62095
62096 2007-09-28  Eric Blake  <ebb9@byu.net>
62097
62098         Enforce that AC_REPLACE_FUNCS files exist.
62099         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62100         override check for typos.
62101
62102         Fix test-closein on Solaris 10.
62103         * tests/test-closein.c (main): Don't assume stdin can be inherited
62104         closed on all systems.
62105         * tests/test-closein.sh: Likewise.
62106         Reported by Piotr Tarnowski.
62107
62108 2007-09-28  Jim Meyering  <jim@meyering.net>
62109
62110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62111
62112 2007-09-27  Jim Meyering  <jim@meyering.net>
62113
62114         canonicalize: Avoid a false-positive cycle failure.
62115         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62116         Sort.  Remove cycle-check.
62117         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62118         not cycle-check.h.
62119         (seen_triple): New function.
62120         (canonicalize_filename_mode): Use it instead of cycle-check.
62121         * tests/test-canonicalize.c: Add a test for this bug.
62122         * tests/test-canonicalize.sh: Set up and run the test.
62123
62124         New module, file-set, from coreutils.
62125         * modules/file-set: Define it.
62126         * lib/file-set.c, lib/file-set.h: Implement.
62127
62128         New module, hash-triple, from coreutils.
62129         * modules/hash-triple: Define it.
62130         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62131
62132 2007-09-25  Eric Blake  <ebb9@byu.net>
62133
62134         Fix strerror on Interix.
62135         * lib/string_.h (strerror): Declare replacement.
62136         * doc/functions/strerror.texi (strerror): Document the Interix
62137         shortcoming.
62138         * modules/string (Makefile.am): Support new hooks.
62139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62140         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62141         gl_FUNC_STRERROR_SEPARATE.
62142         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62143         * lib/strerror.c (rpl_strerror): Provide replacement.
62144         * modules/strerror (Depends-on): Add string.
62145         (configure.ac): Detect use of module.
62146         * tests/test-strerror.c: New file.
62147         * modules/strerror-tests: New test module.
62148         * modules/argp (Depends-on): Add strerror.
62149         * modules/error (Depends-on): Likewise.
62150         Reported by Martin Koeppe.
62151
62152 2007-09-24  Bruno Haible  <bruno@clisp.org>
62153
62154         * README: Update git instructions.
62155
62156 2007-09-24  Eric Blake  <ebb9@byu.net>
62157
62158         Revert fpending breakage from 2007-09-08.
62159         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62160         __fpending.c.
62161
62162 2007-09-24  Jim Meyering  <jim@meyering.net>
62163
62164         filenamecat.c: Add a test.
62165         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62166         showing how the function works when DIR is the empty string.
62167
62168 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62169
62170         * tests/test-canonicalize.sh: Turn on executable bit.
62171
62172 2007-09-19  Eric Blake  <ebb9@byu.net>
62173
62174         * README: Update CVS instructions.
62175
62176 2007-09-18  Bruno Haible  <bruno@clisp.org>
62177
62178         * modules/areadlink: New file.
62179         * lib/areadlink.h (areadlink): New declaration.
62180         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62181
62182 2007-09-17  Jim Meyering  <jim@meyering.net>
62183
62184         * lib/savewd.c (ESTALE) [!defined]: Define.
62185         Reported to be required on Interix by Martin Koeppe.
62186
62187 2007-09-17  Bruno Haible  <bruno@clisp.org>
62188
62189         * gnulib-tool (func_version): Use $version.
62190
62191 2007-09-16  Bruno Haible  <bruno@clisp.org>
62192
62193         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62194         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62195         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62196         Reported by Greg Schafer <gschafer@zip.com.au>.
62197
62198 2007-09-15  Bruno Haible  <bruno@clisp.org>
62199
62200         * gnulib-tool (sed): Try a little harder to make bash understand the
62201         alias.
62202         Reported by Bruce Korb <bruce.korb@gmail.com>.
62203
62204 2007-09-13  Eric Blake  <ebb9@byu.net>
62205
62206         * ChangeLog: Remove conflict markers.
62207
62208 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62209
62210         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62211         Reported by Bruno Haible <bruno@clisp.org>.
62212
62213 2007-09-12  Bruno Haible  <bruno@clisp.org>
62214
62215         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62216         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62217         is not defined.
62218
62219 2007-09-12  Eric Blake  <ebb9@byu.net>
62220
62221         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62222         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62223         Autoconf definition.
62224         * modules/euidaccess (Depends-on): Add extensions, for
62225         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62226         * modules/fnmatch (Depends-on): Likewise.
62227         * modules/getaddrinfo (Depends-on): Likewise.
62228         * modules/getdelim (Depends-on): Likewise.
62229         * modules/getline (Depends-on): Likewise.
62230         * modules/getsubopt (Depends-on): Likewise.
62231         * modules/gettext (Depends-on): Likewise.
62232         * modules/group-member (Depends-on): Likewise.
62233         * modules/mbchar (Depends-on): Likewise.
62234         * modules/memmem (Depends-on): Likewise.
62235         * modules/mempcpy (Depends-on): Likewise.
62236         * modules/memrchr (Depends-on): Likewise.
62237         * modules/pagealign_alloc (Depends-on): Likewise.
62238         * modules/readutmp (Depends-on): Likewise.
62239         * modules/stpcpy (Depends-on): Likewise.
62240         * modules/stpncpy (Depends-on): Likewise.
62241         * modules/strchrnul (Depends-on): Likewise.
62242         * modules/strndup (Depends-on): Likewise.
62243         * modules/strsep (Depends-on): Likewise.
62244         * modules/strverscmp (Depends-on): Likewise.
62245         * modules/vasprintf (Depends-on): Likewise.
62246         * modules/wcwidth (Depends-on): Likewise.
62247         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62248         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62249         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62250         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62251         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62252         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62253         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62254         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62255         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62256         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62257         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62258         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62259         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62261         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62262         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62263         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62264         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62265         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62266         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62267         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62269         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62270         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62271         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62273         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62274         so that lock.m4 can be used in gettext without extensions module.
62275
62276 2007-09-11  Bruno Haible  <bruno@clisp.org>
62277
62278         * m4/isc-posix.m4: Remove file.
62279         Suggested by Eric Blake.
62280
62281 2007-09-11  Eric Blake  <ebb9@byu.net>
62282
62283         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62284
62285 2007-09-10  Bruno Haible  <bruno@clisp.org>
62286
62287         * posix-modules: Fix typo in error message.
62288         Reported by Matt <mkraai@beckman.com>.
62289
62290 2007-09-09  Bruno Haible  <bruno@clisp.org>
62291
62292         * doc/functions/getdelim.texi: Update list of platforms lacking the
62293         function.
62294         * doc/functions/getline.texi: Likewise.
62295
62296 2007-09-09  Jim Meyering  <jim@meyering.net>
62297
62298         * lib/hash.c (hash_initialize): Detect calloc failure.
62299         Reported by Bruno Haible.
62300
62301 2007-09-09  Bruno Haible  <bruno@clisp.org>
62302
62303         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62304         malloc or realloc fails.
62305
62306 2007-09-09  Bruno Haible  <bruno@clisp.org>
62307
62308         * modules/getcwd (Depends-on): Add malloc-posix.
62309         * modules/glob (Depends-on): Likewise.
62310         * modules/putenv (Depends-on): Likewise.
62311         * modules/strdup (Depends-on): Likewise.
62312         * modules/getdelim (Depends-on): Add realloc-posix.
62313         * modules/read-file (Depends-on): Likewise.
62314
62315 2007-09-09  Bruno Haible  <bruno@clisp.org>
62316
62317         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62318         (gl_FUNC_MALLOC_POSIX): Require it.
62319         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62320         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62321         * modules/realloc (Files): Add m4/malloc.m4.
62322         * modules/calloc (Files): Likewise.
62323
62324 2007-09-09  Bruno Haible  <bruno@clisp.org>
62325
62326         * modules/malloc-posix: New file.
62327         * modules/malloc (Depends-on): Add malloc-posix.
62328         * lib/malloc.c: Include errno.h.
62329         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62330         and a POSIX-compatible malloc into a single function. Set ENOMEM
62331         when returning NULL.
62332         * m4/malloc.m4: New file.
62333         * doc/functions/malloc.texi: Mention the malloc-posix module.
62334         * lib/stdlib_.h (malloc): New declaration.
62335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62336         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62337         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62338         and HAVE_MALLOC_POSIX.
62339
62340 2007-09-09  Bruno Haible  <bruno@clisp.org>
62341
62342         * modules/realloc-posix: New file.
62343         * modules/realloc (Depends-on): Add realloc-posix.
62344         * lib/realloc.c: Include errno.h.
62345         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62346         and a POSIX-compatible realloc into a single function. Set ENOMEM
62347         when returning NULL.
62348         * m4/realloc.m4: New file.
62349         * doc/functions/realloc.texi: Mention the realloc-posix module.
62350         * lib/stdlib_.h (realloc): New declaration.
62351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62352         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62353         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62354         and HAVE_REALLOC_POSIX.
62355
62356 2007-09-09  Bruno Haible  <bruno@clisp.org>
62357
62358         * modules/calloc-posix: New file.
62359         * modules/calloc (Depends-on): Add calloc-posix.
62360         * lib/calloc.c: Include errno.h.
62361         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62362         and a POSIX-compatible calloc into a single function. Set ENOMEM
62363         when returning NULL.
62364         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62365         * doc/functions/calloc.texi: Mention the calloc-posix module.
62366         * lib/stdlib_.h (calloc): New declaration.
62367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62368         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62369         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62370         and HAVE_CALLOC_POSIX.
62371
62372 2007-09-09  Bruno Haible  <bruno@clisp.org>
62373
62374         Allow for modules to show an arbitrary notice.
62375         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62376         * gnulib-tool: New option --extract-notice.
62377         (func_usage): Document it.
62378         (sed_extract_prog): Update.
62379         (func_get_notice): New function.
62380         (func_modules_notice): New function.
62381         (func_import, func_create_testdir): Invoke it.
62382         Suggested by Jim Meyering.
62383
62384 2007-09-09  Bruno Haible  <bruno@clisp.org>
62385
62386         * gnulib-tool: New options --verbose, --quiet.
62387         (func_usage): Document them.
62388         (verbose): New variable.
62389         (func_execute_command): New function.
62390         (func_import): Don't show the module list and the file list if
62391         $verbose < 0.
62392         (func_create_testdir): Likewise. Use func_execute_command.
62393         (func_create_megatestdir): Use func_execute_command.
62394
62395 2007-09-08  Bruno Haible  <bruno@clisp.org>
62396
62397         * gnulib-tool (func_import): Prefer rsync over wget when available,
62398         for fetching the PO files.
62399
62400 2007-09-08  Bruno Haible  <bruno@clisp.org>
62401
62402         * posix-modules: New file. Portions copied from gnulib-tool.
62403         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62404
62405 2007-09-08  Jim Meyering  <jim@meyering.net>
62406
62407         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62408         * lib/fpending.h: Rename from __fpending.h.
62409         * lib/fpending.c: Rename from __fpending.c.
62410         Include "fpending.h", not "__fpending.h".
62411         * lib/__fpending.h, lib/__fpending.c: Remove files.
62412         * modules/fpending (Files): Reflect new file names.
62413         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62414
62415 2007-09-08  Bruno Haible  <bruno@clisp.org>
62416
62417         * m4/inttypes-h.m4: Remove stub file.
62418
62419 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62420
62421         * doc/headers/stdint.texi: Discuss #include_next issue.
62422
62423 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62426
62427 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62428
62429         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62430         in variable name.
62431
62432 2007-09-03  Jim Meyering  <jim@meyering.net>
62433
62434         New module: git-version-gen.
62435         * modules/git-version-gen: New file.
62436
62437         Import changes from coreutils for bootstrap script.
62438
62439         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62440
62441         bootstrap: uses rsync to download the .po files
62442         * build-aux/bootstrap (po_download_command_format): New global.
62443         (download_po_files): Use rsync.
62444         (update_po_files): Don't remove .po files after download,
62445         so future rsync runs can take advantage of the copies.
62446
62447         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62448
62449         Solve the unnecessary-.po-file-regeneration problem once and for all.
62450         * build-aux/bootstrap (download_po_files): New function, renamed from
62451         get_translations.  Now, downloads, but doesn't update LINGUAS.
62452         (update_po_files): New function.
62453
62454         bootstrap: Ignore more.
62455         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62456         uniwidth to e.g., lib/.gitignore.
62457         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62458
62459         * build-aux/bootstrap: New setting: vc_ignore.
62460         (insert_sorted_if_absent): Create $file if absent.
62461         Adapt to new, possibly empty, list: $vc_ignore.
62462
62463         bootstrap: generate more ignorable names
62464         * build-aux/bootstrap (slurp): When generating ignorable names,
62465         also map .sin to .sed, .gperf to .c, and .y to .c.
62466
62467 2007-09-03  Jim Meyering  <jim@meyering.net>
62468
62469         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62470         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62471
62472 2007-09-02  Bruno Haible  <bruno@clisp.org>
62473
62474         Fix mis-recognition of 'mcs' on QNX 6.
62475         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62476         output contains the string "Mono".
62477         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62478         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62479
62480 2007-09-01  Bruno Haible  <bruno@clisp.org>
62481
62482         Fix collision between uniwidth/* and linebreak modules.
62483         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62484         u32_width): Remove declarations.
62485         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62486         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62487         streq3, streq2, streq1, streq0): Remove functions.
62488         (STREQ): Remove macro.
62489         (is_cjk_encoding): Remove function.
62490         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62491         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62492         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62493         * NEWS: Document the change.
62494
62495 2007-09-01  Bruno Haible  <bruno@clisp.org>
62496
62497         * lib/streq.h: Add double-inclusion guard.
62498
62499 2007-09-01  Karl Berry  <karl@gnu.org>
62500
62501         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62502
62503 2007-08-28  Jim Meyering  <jim@meyering.net>
62504
62505         Rename mreadlink_with_size to areadlink_with_size.
62506         * NEWS: Document the change.
62507         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62508         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62509         * lib/mreadlink.h: Rename this to...
62510         * lib/areadlink.h: ...this.
62511         * modules/mreadlink-with-size: Rename this to...
62512         * modules/areadlink-with-size: ...this.
62513         * lib/canonicalize.c: Reflect the renaming.
62514         * modules/canonicalize: Likewise.
62515
62516 2007-08-26  Bruno Haible  <bruno@clisp.org>
62517
62518         * gnulib-tool (func_import): When deciding which files to remove,
62519         consider also dangling symbolic links.
62520         Reported by Eric Blake.
62521
62522 2007-08-26  Bruno Haible  <bruno@clisp.org>
62523
62524         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62525
62526 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62527
62528         * lib/readline.c: Don't include getline.h, the prototype is now
62529         found in stdio.h.
62530
62531 2007-08-23  Jim Meyering  <jim@meyering.net>
62532
62533         Getdelim touchup.
62534         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62535         around the funlockfile call, since funlockfile never sets errno.
62536         Don't set errno upon failed realloc.
62537
62538 2007-08-22  Eric Blake  <ebb9@byu.net>
62539
62540         Getline touchups.
62541         * lib/getdelim.c (getdelim): Revert regression that required *n to
62542         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62543         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62544         getdelim, rather than whether implementation is missing.
62545         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62546         * lib/stdio_.h (getline): Also declare if replacement is
62547         required.
62548         * doc/functions/getdelim.texi: New file.
62549         * doc/functions/getline.texi: Likewise.
62550         * doc/gnulib.texi (Function Substitutes): Add new files.
62551         Reported by Bruno Haible.
62552
62553 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62554
62555         * users.txt: Add Guile.
62556
62557 2007-08-22  Eric Blake  <ebb9@byu.net>
62558
62559         * tests/test-getdelim.c (main): Use remove, not unlink.
62560         * tests/test-getline.c (main): Likewise.
62561
62562         Move getline and getdelim into stdio.h, per POSIX 200x.
62563         * modules/getline (Files): Remove getline.h.
62564         (Depends-on): Add stdio.
62565         (configure.ac): Add module indicator.
62566         * modules/getdelim (Files): Remove getdelim.h.
62567         (Depends-on): Add stdio.
62568         (configure.ac): Add module indicator.
62569         * modules/stdio (Makefile.am): Work with new indicators.
62570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62573         * lib/getdelim.h: Delete.
62574         * lib/getline.h: Delete.
62575         * lib/stdio_.h (getdelim, getline): Declare.
62576         * modules/getdelim-tests: New module.
62577         * modules/getline-tests: Likewise.
62578         * tests/test-getdelim.c: New file.
62579         * tests/test-getline.c: Likewise.
62580         * NEWS: Document the change.
62581         * lib/getline.c: Update choice of header.
62582         * lib/csharpcomp.c: Likewise.
62583         * lib/getpass.c: Likewise.
62584         * lib/javacomp.c: Likewise.
62585         * lib/javaversion.c: Likewise.
62586         * lib/yesno.c: Likewise.
62587         * lib/getdelim.c: Likewise.
62588         (getdelim): Set errno on failure, and avoid memory leak.
62589
62590 2007-08-19  Bruno Haible  <bruno@clisp.org>
62591
62592         * modules/closein (Depends-on): Add freadahead.
62593         * lib/closein.c: Include freadahead.h.
62594         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62595         is zero.
62596
62597 2007-08-19  Bruno Haible  <bruno@clisp.org>
62598
62599         * modules/freadahead-tests: New file.
62600         * tests/test-freadahead.sh: New file.
62601         * tests/test-freadahead.c: New file.
62602
62603         * modules/freadahead: New file.
62604         * lib/freadahead.h: New file.
62605         * lib/freadahead.c: New file.
62606         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62607         fbufmode, fpurge, freadable, fwritable.
62608
62609 2007-08-19  Eric Blake  <ebb9@byu.net>
62610
62611         Test yesno in combination with closein.
62612         * lib/yesno.c (yesno): Document use of stdin.
62613         * modules/yesno-tests (Files): New module.
62614         * tests/test-yesno.c (main): New file.
62615         * tests/test-yesno.sh: Likewise.
62616
62617 2007-08-19  Bruno Haible  <bruno@clisp.org>
62618
62619         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62620         * lib/fseeko.c (rpl_fseeko): Likewise.
62621         * lib/fseterr.c (fseterr): Likewise.
62622
62623 2007-08-19  Bruno Haible  <bruno@clisp.org>
62624
62625         * tests/test-lseek.c (main): Disable a test for BeOS.
62626         * doc/functions/lseek.texi: Document the BeOS bug.
62627
62628 2007-08-19  Bruno Haible  <bruno@clisp.org>
62629             Eric Blake  <ebb9@byu.net>
62630
62631         * lib/lseek.c: Include <sys/stat.h>.
62632         (rpl_lseek): Add workaround code also for Unix platforms.
62633         Needed for BeOS.
62634         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62635         * doc/functions/lseek.texi: Document BeOS definiency.
62636
62637 2007-08-18  Bruno Haible  <bruno@clisp.org>
62638
62639         * modules/fstrcmp-tests: New file.
62640         * tests/test-fstrcmp.c: New file.
62641
62642 2007-08-18  Bruno Haible  <bruno@clisp.org>
62643
62644         * modules/fstrcmp: New file, from GNU gettext with modifications.
62645         * lib/fstrcmp.h: New file, from GNU gettext.
62646         * lib/fstrcmp.c: New file, from GNU gettext.
62647         * MODULES.html.sh (String handling): Add fstrcmp.
62648
62649 2007-08-18  Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62652         'bool'.
62653         (diag, compareseq): Remove const from the ctxt argument.
62654         (USE_HEURISTIC): Undefine at the end.
62655
62656 2007-08-18  Jim Meyering  <jim@meyering.net>
62657
62658         New file: lib/idcache.h
62659         * NEWS: Mention the addition.
62660         * modules/idcache (Files): Add lib/idcache.h
62661         * lib/idcache.c: Include "idcache.h".
62662         Don't include <sys/types.h>.
62663         Add a FIXME comment.
62664         Move file-scoped "static" declarations to the top.
62665         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62666
62667 2007-08-17  Bruno Haible  <bruno@clisp.org>
62668         and Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * MODULES.html.sh: Add diffseq.
62671         * modules/diffseq: New file.
62672         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62673         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62674
62675 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62676
62677         Import changes from coreutils for bootstrap script.
62678
62679         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         * build-aux/bootstrap (slurp): Work even in environments where
62682         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62683         current code does not slurp files whose names start with ".", and
62684         this looks like it might be a troublesome area.
62685
62686         2007-07-11  Jim Meyering  <jim@meyering.net>
62687
62688         If there's a GPL vN copyright comment, require that N == 3.
62689
62690         2007-07-08  Jim Meyering  <jim@meyering.net>
62691
62692         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62693         * build-aux/bootstrap (mam_template): Move definition out of loop.
62694
62695         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62696
62697         * build-aux/bootstrap (symlink_to_dir): Rename function from
62698         symlink_to_gnulib.  Add a directory parameter.  Update all
62699         callers.
62700         (cp_mark_as_generated): Also check for -- and link to -- files in
62701         gl/.
62702
62703         2007-07-08  Jim Meyering  <jim@meyering.net>
62704
62705         Adapt to deeper hierarchy in gnulib.
62706         * build-aux/bootstrap (symlink_to_dir): If the destination
62707         directory doesn't exist, create it. This is required at least for
62708         "lib/uniwidth/cjk.h".
62709
62710         2007-05-15  Jim Meyering  <jim@meyering.net>
62711
62712         * build-aux/bootstrap: Now that generated Makefile.am files
62713         are no longer under version control, they must be created at
62714         bootstrap time.
62715
62716 2007-08-14  Ben Pfaff  <blp@gnu.org>
62717
62718         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62719
62720 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62723         given the changes below.
62724         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62725         even on hosts that have padding bits beyond the supported 64.
62726
62727 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62728
62729         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62730         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62731         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62732         depends on it.
62733         (xstrtol_error): Remove.
62734         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62735         but with a different signature.
62736         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62737         * lib/xstrtol-error.c: Include exitfail.h.
62738         (xstrtol_fatal): New function, with a different signature from the
62739         old xstrtol_error, so that the caller need not worry about passing
62740         in an exit status, or about storage management of the option argument.
62741         (xstrtol_error): Now a static function.  Redo signature to
62742         implement xstrtol_fatal.  Output the correct number of hyphens in
62743         front of the option so that the caller need not worry about
62744         storage management.
62745         (N_): New macro.
62746         (_): Remove; not used now.
62747         * modules/xstrtol: Depend on getopt.
62748         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62749         of old STRTOL_FATAL_ERROR macro.
62750         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62751         of test program.
62752         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62753         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62754
62755 2007-08-08  Eric Blake  <ebb9@byu.net>
62756
62757         * lib/xstrtol-error.c: Add missing include.
62758
62759         Move xstrtol messages into gnulib domain, when --pobase is used.
62760         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62761         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62762         * modules/xstrtol (Files): Distribute new file.
62763         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62764         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62765         * tests/test-xstrtol.c: ...into new file.
62766         * tests/test-xstrtoul.c: Also test xstrtoul.
62767         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62768         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62769         * tests/test-xstrtol.sh: Drive the tests.
62770         * tests/test-xstrtoimax.sh: Likewise.
62771         * tests/test-xstrtoumax.sh: Likewise.
62772         * modules/xstrtol-tests: New module.
62773         * modules/xstrtoimax-tests: Likewise.
62774         * modules/xstrtoumax-tests: Likewise.
62775
62776 2007-08-08  Jim Meyering  <jim@meyering.net>
62777
62778         New function: mfile_name_concat.
62779         * lib/filenamecat.c (mfile_name_concat): New function, just like
62780         file_name_concat, but return NULL upon failure rather than exiting
62781         with a diagnostic.
62782         * lib/filenamecat.h: Declare it.
62783
62784 2007-08-07  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62787         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62788         warning from gcc.
62789         Reported by Eric Blake.
62790
62791 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62792
62793         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62794         * modules/crypto/arcfour (License): Likewise.
62795         * modules/crypto/des-tests (License): Likewise.
62796         * modules/crypto/gc-arctwo-tests (License): Likewise.
62797         * modules/crypto/gc-des-tests (License): Likewise.
62798         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62799         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62800         * modules/crypto/gc-md2-tests (License): Likewise.
62801         * modules/crypto/gc-md4-tests (License): Likewise.
62802         * modules/crypto/gc-md5-tests (License): Likewise.
62803         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62804         * modules/crypto/gc-rijndael-tests (License): Likewise.
62805         * modules/crypto/gc-sha1-tests (License): Likewise.
62806         * modules/crypto/gc-tests (License): Likewise.
62807         * modules/crypto/hmac-md5 (License): Likewise.
62808         * modules/crypto/hmac-sha1 (License): Likewise.
62809         * modules/crypto/md2-tests (License): Likewise.
62810         * modules/crypto/md4-tests (License): Likewise.
62811         * modules/crypto/md5 (License): Likewise.
62812         * modules/crypto/rijndael (License): Likewise.
62813         * modules/crypto/sha1 (License): Likewise.
62814         * modules/memxor (License): Likewise.
62815
62816 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62817         and Bruno Haible  <bruno@clisp.org>
62818
62819         * NEWS: Describe interface changes to human, xstrtol.
62820         * lib/human.h: Include <xstrtol.h>.
62821         (human_options): Return enum strtol_error, not int.  Remove
62822         bool arg; take int * instead.
62823         * lib/human.c: Don't include "gettext.h".
62824         (_): Remove; no longer used.
62825         Don't include <xstrtol.h>, since human.h does it.
62826         (human_options): Adjust to abovementioned interface changes.
62827         Do not report error to stderr; that's now the caller's
62828         responsibility.
62829         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62830         interface change.
62831         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62832         Str, Argument_type_string.  All uses changed.  Put " argument"
62833         in diagnostics to make them clearer.  Change wording of suffix
62834         message for clarity.
62835         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62836         Argument_type_string.
62837         (STRTOL_FATAL_WARN): Remove; no longer used.
62838         * modules/human (Depends-on): Remove gettext-h.
62839
62840 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62841
62842         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62843
62844 2007-07-31  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62847         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62848         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62849
62850 2007-07-31  Bruno Haible  <bruno@clisp.org>
62851
62852         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62853         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62854
62855 2007-07-30  Bruno Haible  <bruno@clisp.org>
62856
62857         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62858         * modules/c-ctype (License): Likewise.
62859         * modules/c-strcase (License): Likewise.
62860         * modules/check-version (License): Likewise.
62861         * modules/iconv (License): Likewise.
62862         * modules/iconv_open (License): Likewise.
62863         * modules/read-file (License): Likewise.
62864         * modules/striconv (License): Likewise.
62865         * modules/strverscmp (License): Likewise.
62866         * modules/vasprintf (License): Likewise.
62867         * modules/crypto/des (License): Likewise.
62868         * modules/crypto/gc (License): Likewise.
62869         * modules/crypto/gc-arcfour (License): Likewise.
62870         * modules/crypto/gc-arctwo (License): Likewise.
62871         * modules/crypto/gc-des (License): Likewise.
62872         * modules/crypto/gc-hmac-md5 (License): Likewise.
62873         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62874         * modules/crypto/gc-md2 (License): Likewise.
62875         * modules/crypto/gc-md4 (License): Likewise.
62876         * modules/crypto/gc-md5 (License): Likewise.
62877         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62878         * modules/crypto/gc-random (License): Likewise.
62879         * modules/crypto/gc-rijndael (License): Likewise.
62880         * modules/crypto/gc-sha1 (License): Likewise.
62881         * modules/crypto/md2 (License): Likewise.
62882         * modules/crypto/md4 (License): Likewise.
62883
62884 2007-07-30  Jim Meyering  <jim@meyering.net>
62885
62886         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62887         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62888         it has valid stat data.  This bug would cause du not to count the
62889         sizes of inaccessible directories.
62890         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62891         in <http://bugzilla.redhat.com/250077>.
62892
62893 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62894             Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62897         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62898         #include_next, gives a diagnostic about it, but reports no error in
62899         the exit code.
62900         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62901
62902 2007-07-24  Ben Pfaff  <blp@gnu.org>
62903
62904         Improve name: "count-one-bits" is better than "popcount".
62905         * MODULES.html.sh: Update name.
62906         * lib/popcount.h: Renamed lib/count-one-bits.h.
62907         (popcount): Renamed count_one_bits.
62908         (popcountl): Renamed count_one_bits_l.
62909         (popcountll): Renamed count_one_bits_ll.
62910         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62911         * modules/popcount: Renamed module/count-one-bits.
62912         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62913         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62914
62915 2007-07-23  Ben Pfaff  <blp@gnu.org>
62916
62917         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62918         better code generation, and add U to large constants to avoid
62919         warnings, in non-GCC case.
62920         Suggested by Bruno Haible.
62921
62922 2007-07-23  Ben Pfaff  <blp@gnu.org>
62923
62924         * lib/popcount.h: Use verify_true instead of if...abort.
62925         * modules/popcount: Depend on verify module.
62926         Suggested by Jim Meyering.
62927
62928 2007-07-23  Bruno Haible  <bruno@clisp.org>
62929
62930         * gnulib-tool (func_import): Create a .cvsignore file also when the
62931         directory is not yet in CVS but the toplevel directory is. When
62932         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62933         Reported by Karl Berry.
62934
62935 2007-07-22  Ben Pfaff  <blp@gnu.org>
62936
62937         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62938         case.
62939         Suggested by Eric Blake.
62940
62941 2007-07-22  Ben Pfaff  <blp@gnu.org>
62942
62943         New module: popcount.
62944         * MODULES.html.sh: Add popcount.
62945         * modules/popcount: New file.
62946         * modules/popcount-tests: New file.
62947         * tests/test-popcount.c: New file.
62948         * lib/popcount.h: New file.
62949         * m4/popcount.m4: New file.
62950
62951 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62952
62953         * build-aux/announce-gen: Update to GPLv3.
62954
62955         * build-aux/config.guess: Update from config.
62956
62957 2007-07-21  Bruno Haible  <bruno@clisp.org>
62958
62959         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62960         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62961
62962 2007-07-20  Jim Meyering  <jim@meyering.net>
62963
62964         * check-module: Diagnose a self-dependency.
62965
62966 2007-07-19  Bruno Haible  <bruno@clisp.org>
62967
62968         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62969         empty.
62970         Reported by Eric Blake.
62971
62972 2007-07-18  Bruno Haible  <bruno@clisp.org>
62973
62974         * gnulib-tool: New options --po-base, --po-domain.
62975         (func_usage): Document them.
62976         (pobase, po_domain): New variables.
62977         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62978         DEFAULT_TEXT_DOMAIN.
62979         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62980         (func_import): Consider pobase and po_domain. Create a po/ directory.
62981         (func_create_testdir): Set pobase and po_domain to empty.
62982         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62983         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62984
62985 2007-07-18  Bruno Haible  <bruno@clisp.org>
62986
62987         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62988         EXTRA_DIST augmentation for files in build-aux/.
62989
62990 2007-07-16  Bruno Haible  <bruno@clisp.org>
62991
62992         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62993         * modules/getdelim (License): Likewise.
62994
62995 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62996
62997         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62998         * modules/d-type (License): Likewise.
62999         * modules/extensions (License): Likewise.
63000         * modules/fnmatch (License): Likewise.
63001         * modules/fseeko (License): Likewise.
63002         * modules/getaddrinfo (License): Likewise.
63003         * modules/getline (License): Likewise.
63004         * modules/getlogin_r (License): Likewise.
63005         * modules/getpass (License): Likewise.
63006         * modules/gettimeofday (License): Likewise.
63007         * modules/glob (License): Likewise.
63008         * modules/inet_ntop (License): Likewise.
63009         * modules/malloc (License): Likewise.
63010         * modules/malloca (License): Likewise.
63011         * modules/memmem (License): Likewise.
63012         * modules/mempcpy (License): Likewise.
63013         * modules/memset (License): Likewise.
63014         * modules/minmax (License): Likewise.
63015         * modules/mktime (License): Likewise.
63016         * modules/netinet_in (License): Likewise.
63017         * modules/pathmax (License): Likewise.
63018         * modules/poll (License): Likewise.
63019         * modules/regex (License): Likewise.
63020         * modules/snprintf (License): Likewise.
63021         * modules/stdbool (License): Likewise.
63022         * modules/stdint (License): Likewise.
63023         * modules/stdio (License): Likewise.
63024         * modules/strcase (License): Likewise.
63025         * modules/strcasestr (License): Likewise.
63026         * modules/strdup (License): Likewise.
63027         * modules/string (License): Likewise.
63028         * modules/strndup (License): Likewise.
63029         * modules/strnlen (License): Likewise.
63030         * modules/strpbrk (License): Likewise.
63031         * modules/strptime (License): Likewise.
63032         * modules/strsep (License): Likewise.
63033         * modules/sys_select (License): Likewise.
63034         * modules/sys_socket (License): Likewise.
63035         * modules/sys_stat (License): Likewise.
63036         * modules/sys_time (License): Likewise.
63037         * modules/time (License): Likewise.
63038         * modules/time_r (License): Likewise.
63039         * modules/timegm (License): Likewise.
63040         * modules/unistd (License): Likewise.
63041         * modules/vsnprintf (License): Likewise.
63042         * modules/wctype (License): Likewise.
63043
63044 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63045
63046         * modules/argz (License): LGPLv2+.
63047
63048 2007-07-15  Karl Berry  <karl@gnu.org>
63049
63050         * doc/gnulib.texi: revise node structure per new fdl.texi.
63051
63052 2007-07-14  Bruno Haible  <bruno@clisp.org>
63053
63054         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63055         the output file.
63056         * lib/uniname/uninames.h: Regenerated.
63057
63058 2007-07-14  Karl Berry  <karl@gnu.org>
63059
63060         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63061         omitting sectioning and index commands.
63062
63063 2007-07-13  Bruno Haible  <bruno@clisp.org>
63064
63065         New gnulib-tool option --more-symlinks.
63066         * gnulib-tool (func_usage): Document --more-symlinks.
63067         (do_copyrights): New variable.
63068         Recognize option --more-symlinks.
63069         (func_import): Don't add a copyright notice transform to
63070         sed_transform_lib_file if do_copyrights is empty.
63071
63072 2007-07-13  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/vasnprintf.c (decimal_point_char): Define also if
63075         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63076         && !NEED_PRINTF_DIRECTIVE_A.
63077         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63078         Gary V. Vaughan <gary@gnu.org>.
63079
63080 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63081
63082         * lib/inttypes_.h: Undo previous change, since it was fixed
63083         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63084
63085 2007-07-13  Bruno Haible  <bruno@clisp.org>
63086
63087         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63088         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63089
63090 2007-07-13  Jim Meyering  <jim@meyering.net>
63091
63092         df: Don't fail for Tru64's "file-on-file mount".
63093         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63094         so we fall through and use statfs instead.  Details here:
63095         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63096         Reported by Albert Chin.
63097
63098 2007-07-13  Bruno Haible  <bruno@clisp.org>
63099
63100         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63101         * modules/configmake (License): Likewise.
63102         * modules/gettext (License): Likewise.
63103         * modules/gettext-h (License): Likewise.
63104         * modules/include_next (License): Likewise.
63105         * modules/link-warning (License): Likewise.
63106         * modules/localcharset (License): Likewise.
63107         * modules/localename (License): Likewise.
63108         * modules/lock (License): Likewise.
63109         * modules/relocatable-lib-lgpl (License): Likewise.
63110         * modules/size_max (License): Likewise.
63111         * modules/vasnprintf (License): Likewise.
63112         * modules/wchar (License): Likewise.
63113         * modules/xsize (License): Likewise.
63114
63115 2007-07-13  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63118         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63119
63120 2007-07-12  Bruno Haible  <bruno@clisp.org>
63121
63122         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63123         in the modules files.
63124
63125 2007-07-11  Karl Berry  <karl@gnu.org>
63126
63127         * MODULES.html.sh (func_module): use
63128          sed -e '\|^'"${includefile}"'$|d'
63129          instead of /.../d, to avoid errors on $includefile's containing /.
63130
63131 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63132
63133         * gnulib-tool (func_import): Avoid duplication of --avoid
63134         statements
63135         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63136         names to `_' in variable names.
63137
63138 2007-07-10  Eric Blake  <ebb9@byu.net>
63139
63140         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63141         * NEWS: Document this change.
63142
63143 2007-07-08  Bruno Haible  <bruno@clisp.org>
63144
63145         Update to Unicode 5.0.
63146         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63147         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63148         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63149         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63150         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63151         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63152         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63153         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63154         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63155         U+10A3F, U+1D242..U+1D244.
63156         (nonspacing_table_ind): Update.
63157         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63158         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63159
63160 2007-07-08  Bruno Haible  <bruno@clisp.org>
63161
63162         Update to Unicode 5.0.
63163         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63164         code transform. Extend the name index field of unicode_name_to_code and
63165         unicode_code_to_name from 16 to 24 bits.
63166         * lib/uniname/uniname.c (unicode_character_name,
63167         unicode_name_character): Add the range 0x12xxx to the code transform.
63168         * lib/uniname/uninames.h: Regenerated.
63169         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63170
63171 2007-07-07  Bruno Haible  <bruno@clisp.org>
63172
63173         * modules/wcwidth-tests: New file.
63174         * tests/test-wcwidth.c: New file.
63175
63176         Work around MacOS X wcwidth() bug.
63177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63178         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63179         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63180         original wcwidth in non-UTF-8 locales.
63181         * modules/wcwidth (Depends-on): Add localcharset, streq,
63182         uniwidth/width.
63183         * doc/functions/wcwidth.texi: Update.
63184
63185 2007-07-07  Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63188         (wcwidth): New declaration.
63189         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63190         macros.
63191         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63192         here. Prepare for creating <wchar.h> unconditionally.
63193         * modules/wchar (Depends-on): Add link-warning.
63194         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63195         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63196         * lib/wcwidth.h: Remove file.
63197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63198         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63199         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63200         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63201         (Include): Replace wcwidth.h with <wchar.h>.
63202         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63203         * lib/mbchar.h: Don't include wcwidth.h.
63204         * lib/mbswidth.c: Likewise.
63205         * NEWS: Mention the change.
63206
63207 2007-07-07  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63210         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63211         definition with an external declaration.
63212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63213         defined as a function. Remove AC_C_INLINE requirement.
63214         * modules/wcwidth (Files): Add lib/wcwidth.c.
63215         (Makefile.am): Remove redundant statement.
63216
63217 2007-07-07  Bruno Haible  <bruno@clisp.org>
63218
63219         * MODULES.html.sh (Unicode string functions): Add the new modules.
63220
63221         * tests/uniwidth/test-u32-strwidth.c: New file.
63222         * modules/uniwidth/u32-strwidth-tests: New file.
63223
63224         * lib/uniwidth/u32-strwidth.c: New file.
63225         * modules/uniwidth/u32-strwidth: New file.
63226
63227         * tests/uniwidth/test-u16-strwidth.c: New file.
63228         * modules/uniwidth/u16-strwidth-tests: New file.
63229
63230         * lib/uniwidth/u16-strwidth.c: New file.
63231         * modules/uniwidth/u16-strwidth: New file.
63232
63233         * tests/uniwidth/test-u8-strwidth.c: New file.
63234         * modules/uniwidth/u8-strwidth-tests: New file.
63235
63236         * lib/uniwidth/u8-strwidth.c: New file.
63237         * modules/uniwidth/u8-strwidth: New file.
63238
63239         * tests/uniwidth/test-u32-width.c: New file.
63240         * modules/uniwidth/u32-width-tests: New file.
63241
63242         * lib/uniwidth/u32-width.c: New file.
63243         * modules/uniwidth/u32-width: New file.
63244
63245         * tests/uniwidth/test-u16-width.c: New file.
63246         * modules/uniwidth/u16-width-tests: New file.
63247
63248         * lib/uniwidth/u16-width.c: New file.
63249         * modules/uniwidth/u16-width: New file.
63250
63251         * tests/uniwidth/test-u8-width.c: New file.
63252         * modules/uniwidth/u8-width-tests: New file.
63253
63254         * lib/uniwidth/u8-width.c: New file.
63255         * modules/uniwidth/u8-width: New file.
63256
63257         * tests/uniwidth/test-uc_width.c: New file.
63258         * modules/uniwidth/width-tests: New file.
63259
63260         * lib/uniwidth/width.c: New file, from GNU libiconv.
63261         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63262         * modules/uniwidth/width: New file.
63263
63264         * lib/uniwidth.h: New file, from GNU libiconv.
63265         * modules/uniwidth/base: New file.
63266
63267 2007-07-07  Bruno Haible  <bruno@clisp.org>
63268
63269         * lib/uniname.h: New file, from GNU gettext.
63270         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63271         * lib/uniname/uninames.h: New file, from GNU gettext.
63272         * lib/uniname/uniname.c: New file, from GNU gettext.
63273         * tests/uniname/test-uninames.sh: New file.
63274         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63275         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63276         * modules/uniname/base: New file.
63277         * modules/uniname/uniname: New file.
63278         * modules/uniname/uniname-tests: New file.
63279         * MODULES.html.sh (Unicode string functions): Add the new modules.
63280
63281 2007-07-06  Bruno Haible  <bruno@clisp.org>
63282
63283         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63284
63285 2007-07-06  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63288         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63289         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63290         include <sys/time.h>.
63291         Reported by Eric Blake.
63292
63293 2007-07-06  Eric Blake  <ebb9@byu.net>
63294
63295         Fix testing canonicalize on cygwin.
63296         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63297         Revert patch from 2007-06-19.
63298         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63299         canonicalize module is also in use.
63300         * tests/test-canonicalize.c: New file.
63301         * tests/test-canonicalize.sh: Likewise.
63302         * modules/canonicalize-tests: Likewise.
63303
63304 2007-07-06  Jim Meyering  <jim@meyering.net>
63305
63306         * lib/getugroups.c (getugroups): Detect getgrent failure.
63307         Adjust comment to reflect reality: this function may return -1.
63308
63309 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63310
63311         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63312         the new TP address.
63313         (usage): Fix typo
63314         (gnulib_mk): New variable.
63315
63316 2007-07-05  Jim Meyering  <jim@meyering.net>
63317
63318         Don't let endgrent clobber errno, no matter how improbable.
63319         * lib/getugroups.c (getugroups): Save and restore errno around
63320         endgrent call.
63321
63322         Close the group DB even when failing with 2^31 or more members.
63323         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63324
63325 2007-07-04  Jim Meyering  <jim@meyering.net>
63326
63327         * lib/getugroups.h: New file.
63328         * lib/getugroups.c: Include "getugroups.h".
63329         Remove uses of "register" keyword.
63330         Move local variable, "cp", down into scope where used.
63331         Give "username" parameter the "const" attribute.
63332         * modules/getugroups (Files): Add lib/getugroups.h
63333
63334 2007-07-04  Karl Berry  <karl@gnu.org>
63335
63336         * MODULES.html.sh (func_all_modules): Complete rename of
63337         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63338
63339 2007-07-02  Bruno Haible  <bruno@clisp.org>
63340
63341         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63342         mode, when inttypes.h comes from gnulib.
63343         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63344
63345 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63346
63347         * NEWS: Mention lgpl module name change.
63348
63349         * modules/lgpl-2.1: Renamed from lgpl.
63350
63351         * NEWS: Mention gpl module name change.
63352
63353         * modules/gpl-3.0: New file, based on gpl-2.0.
63354
63355         * modules/gpl-2.0: Renamed from gpl.
63356
63357         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63358         doc/gpl-2.0.texi.
63359
63360 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63363         #define __STDC_LIMIT_MACROS temporarily while including
63364         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63365         Problem reported by Joel E. Denny in
63366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63367
63368 2007-07-01  Bruno Haible  <bruno@clisp.org>
63369
63370         * lib/unistdio.h: New file.
63371         * lib/unistdio/u-asnprintf.h: New file.
63372         * lib/unistdio/u-asprintf.h: New file.
63373         * lib/unistdio/u-printf-args.c: New file.
63374         * lib/unistdio/u-printf-args.h: New file.
63375         * lib/unistdio/u-printf-parse.h: New file.
63376         * lib/unistdio/u-snprintf.h: New file.
63377         * lib/unistdio/u-sprintf.h: New file.
63378         * lib/unistdio/u-vasprintf.h: New file.
63379         * lib/unistdio/u-vsnprintf.h: New file.
63380         * lib/unistdio/u-vsprintf.h: New file.
63381         * lib/unistdio/ulc-asnprintf.c: New file.
63382         * lib/unistdio/ulc-asprintf.c: New file.
63383         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63384         * lib/unistdio/ulc-printf-parse.c: New file.
63385         * lib/unistdio/ulc-snprintf.c: New file.
63386         * lib/unistdio/ulc-sprintf.c: New file.
63387         * lib/unistdio/ulc-vasnprintf.c: New file.
63388         * lib/unistdio/ulc-vasprintf.c: New file.
63389         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63390         * lib/unistdio/ulc-vsnprintf.c: New file.
63391         * lib/unistdio/ulc-vsprintf.c: New file.
63392         * lib/unistdio/u8-asnprintf.c: New file.
63393         * lib/unistdio/u8-asprintf.c: New file.
63394         * lib/unistdio/u8-printf-parse.c: New file.
63395         * lib/unistdio/u8-snprintf.c: New file.
63396         * lib/unistdio/u8-sprintf.c: New file.
63397         * lib/unistdio/u8-vasnprintf.c: New file.
63398         * lib/unistdio/u8-vasprintf.c: New file.
63399         * lib/unistdio/u8-vsnprintf.c: New file.
63400         * lib/unistdio/u8-vsprintf.c: New file.
63401         * lib/unistdio/u8-u8-asnprintf.c: New file.
63402         * lib/unistdio/u8-u8-asprintf.c: New file.
63403         * lib/unistdio/u8-u8-snprintf.c: New file.
63404         * lib/unistdio/u8-u8-sprintf.c: New file.
63405         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63406         * lib/unistdio/u8-u8-vasprintf.c: New file.
63407         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63408         * lib/unistdio/u8-u8-vsprintf.c: New file.
63409         * lib/unistdio/u16-asnprintf.c: New file.
63410         * lib/unistdio/u16-asprintf.c: New file.
63411         * lib/unistdio/u16-printf-parse.c: New file.
63412         * lib/unistdio/u16-snprintf.c: New file.
63413         * lib/unistdio/u16-sprintf.c: New file.
63414         * lib/unistdio/u16-vasnprintf.c: New file.
63415         * lib/unistdio/u16-vasprintf.c: New file.
63416         * lib/unistdio/u16-vsnprintf.c: New file.
63417         * lib/unistdio/u16-vsprintf.c: New file.
63418         * lib/unistdio/u16-u16-asnprintf.c: New file.
63419         * lib/unistdio/u16-u16-asprintf.c: New file.
63420         * lib/unistdio/u16-u16-snprintf.c: New file.
63421         * lib/unistdio/u16-u16-sprintf.c: New file.
63422         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63423         * lib/unistdio/u16-u16-vasprintf.c: New file.
63424         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63425         * lib/unistdio/u16-u16-vsprintf.c: New file.
63426         * lib/unistdio/u32-asnprintf.c: New file.
63427         * lib/unistdio/u32-asprintf.c: New file.
63428         * lib/unistdio/u32-printf-parse.c: New file.
63429         * lib/unistdio/u32-snprintf.c: New file.
63430         * lib/unistdio/u32-sprintf.c: New file.
63431         * lib/unistdio/u32-vasnprintf.c: New file.
63432         * lib/unistdio/u32-vasprintf.c: New file.
63433         * lib/unistdio/u32-vsnprintf.c: New file.
63434         * lib/unistdio/u32-vsprintf.c: New file.
63435         * lib/unistdio/u32-u32-asnprintf.c: New file.
63436         * lib/unistdio/u32-u32-asprintf.c: New file.
63437         * lib/unistdio/u32-u32-snprintf.c: New file.
63438         * lib/unistdio/u32-u32-sprintf.c: New file.
63439         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63440         * lib/unistdio/u32-u32-vasprintf.c: New file.
63441         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63442         * lib/unistdio/u32-u32-vsprintf.c: New file.
63443         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63444         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63445         * tests/unistdio/test-ulc-printf1.h: New file.
63446         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63447         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63448         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63449         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63450         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63451         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63452         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63453         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63454         * tests/unistdio/test-u8-asnprintf1.c: New file.
63455         * tests/unistdio/test-u8-asnprintf1.h: New file.
63456         * tests/unistdio/test-u8-printf1.h: New file.
63457         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63458         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63459         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63460         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63461         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63462         * tests/unistdio/test-u8-vasprintf1.c: New file.
63463         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63464         * tests/unistdio/test-u8-vsprintf1.c: New file.
63465         * tests/unistdio/test-u16-asnprintf1.c: New file.
63466         * tests/unistdio/test-u16-asnprintf1.h: New file.
63467         * tests/unistdio/test-u16-printf1.h: New file.
63468         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63469         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63470         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63471         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63472         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63473         * tests/unistdio/test-u16-vasprintf1.c: New file.
63474         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63475         * tests/unistdio/test-u16-vsprintf1.c: New file.
63476         * tests/unistdio/test-u32-asnprintf1.c: New file.
63477         * tests/unistdio/test-u32-asnprintf1.h: New file.
63478         * tests/unistdio/test-u32-printf1.h: New file.
63479         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63480         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63481         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63482         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63483         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63484         * tests/unistdio/test-u32-vasprintf1.c: New file.
63485         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63486         * tests/unistdio/test-u32-vsprintf1.c: New file.
63487         * modules/unistdio/base: New file.
63488         * modules/unistdio/u-printf-args: New file.
63489         * modules/unistdio/ulc-asnprintf: New file.
63490         * modules/unistdio/ulc-asprintf: New file.
63491         * modules/unistdio/ulc-fprintf: New file.
63492         * modules/unistdio/ulc-printf-parse: New file.
63493         * modules/unistdio/ulc-snprintf: New file.
63494         * modules/unistdio/ulc-sprintf: New file.
63495         * modules/unistdio/ulc-vasnprintf: New file.
63496         * modules/unistdio/ulc-vasprintf: New file.
63497         * modules/unistdio/ulc-vfprintf: New file.
63498         * modules/unistdio/ulc-vsnprintf: New file.
63499         * modules/unistdio/ulc-vsprintf: New file.
63500         * modules/unistdio/u8-asnprintf: New file.
63501         * modules/unistdio/u8-asprintf: New file.
63502         * modules/unistdio/u8-printf-parse: New file.
63503         * modules/unistdio/u8-snprintf: New file.
63504         * modules/unistdio/u8-sprintf: New file.
63505         * modules/unistdio/u8-vasnprintf: New file.
63506         * modules/unistdio/u8-vasprintf: New file.
63507         * modules/unistdio/u8-vsnprintf: New file.
63508         * modules/unistdio/u8-vsprintf: New file.
63509         * modules/unistdio/u8-u8-asnprintf: New file.
63510         * modules/unistdio/u8-u8-asprintf: New file.
63511         * modules/unistdio/u8-u8-snprintf: New file.
63512         * modules/unistdio/u8-u8-sprintf: New file.
63513         * modules/unistdio/u8-u8-vasnprintf: New file.
63514         * modules/unistdio/u8-u8-vasprintf: New file.
63515         * modules/unistdio/u8-u8-vsnprintf: New file.
63516         * modules/unistdio/u8-u8-vsprintf: New file.
63517         * modules/unistdio/u16-asnprintf: New file.
63518         * modules/unistdio/u16-asprintf: New file.
63519         * modules/unistdio/u16-printf-parse: New file.
63520         * modules/unistdio/u16-snprintf: New file.
63521         * modules/unistdio/u16-sprintf: New file.
63522         * modules/unistdio/u16-vasnprintf: New file.
63523         * modules/unistdio/u16-vasprintf: New file.
63524         * modules/unistdio/u16-vsnprintf: New file.
63525         * modules/unistdio/u16-vsprintf: New file.
63526         * modules/unistdio/u16-u16-asnprintf: New file.
63527         * modules/unistdio/u16-u16-asprintf: New file.
63528         * modules/unistdio/u16-u16-snprintf: New file.
63529         * modules/unistdio/u16-u16-sprintf: New file.
63530         * modules/unistdio/u16-u16-vasnprintf: New file.
63531         * modules/unistdio/u16-u16-vasprintf: New file.
63532         * modules/unistdio/u16-u16-vsnprintf: New file.
63533         * modules/unistdio/u16-u16-vsprintf: New file.
63534         * modules/unistdio/u32-asnprintf: New file.
63535         * modules/unistdio/u32-asprintf: New file.
63536         * modules/unistdio/u32-printf-parse: New file.
63537         * modules/unistdio/u32-snprintf: New file.
63538         * modules/unistdio/u32-sprintf: New file.
63539         * modules/unistdio/u32-vasnprintf: New file.
63540         * modules/unistdio/u32-vasprintf: New file.
63541         * modules/unistdio/u32-vsnprintf: New file.
63542         * modules/unistdio/u32-vsprintf: New file.
63543         * modules/unistdio/u32-u32-asnprintf: New file.
63544         * modules/unistdio/u32-u32-asprintf: New file.
63545         * modules/unistdio/u32-u32-snprintf: New file.
63546         * modules/unistdio/u32-u32-sprintf: New file.
63547         * modules/unistdio/u32-u32-vasnprintf: New file.
63548         * modules/unistdio/u32-u32-vasprintf: New file.
63549         * modules/unistdio/u32-u32-vsnprintf: New file.
63550         * modules/unistdio/u32-u32-vsprintf: New file.
63551         * modules/unistdio/ulc-asnprintf-tests: New file.
63552         * modules/unistdio/ulc-vasnprintf-tests: New file.
63553         * modules/unistdio/ulc-vasprintf-tests: New file.
63554         * modules/unistdio/ulc-vsnprintf-tests: New file.
63555         * modules/unistdio/ulc-vsprintf-tests: New file.
63556         * modules/unistdio/u8-asnprintf-tests: New file.
63557         * modules/unistdio/u8-vasnprintf-tests: New file.
63558         * modules/unistdio/u8-vasprintf-tests: New file.
63559         * modules/unistdio/u8-vsnprintf-tests: New file.
63560         * modules/unistdio/u8-vsprintf-tests: New file.
63561         * modules/unistdio/u16-asnprintf-tests: New file.
63562         * modules/unistdio/u16-vasnprintf-tests: New file.
63563         * modules/unistdio/u16-vasprintf-tests: New file.
63564         * modules/unistdio/u16-vsnprintf-tests: New file.
63565         * modules/unistdio/u16-vsprintf-tests: New file.
63566         * modules/unistdio/u32-asnprintf-tests: New file.
63567         * modules/unistdio/u32-vasnprintf-tests: New file.
63568         * modules/unistdio/u32-vasprintf-tests: New file.
63569         * modules/unistdio/u32-vsnprintf-tests: New file.
63570         * modules/unistdio/u32-vsprintf-tests: New file.
63571         * MODULES.html.sh (Unicode string functions): Add the new modules.
63572
63573 2007-07-01  Bruno Haible  <bruno@clisp.org>
63574
63575         * lib/sprintf.c (sprintf): Limit the available length estimation,
63576         to avoid address wraparound.
63577         * lib/vsprintf.c (vsprintf): Likewise.
63578         * modules/sprintf-posix (Dependencies): Add stdint.
63579         * modules/vsprintf-posix (Dependencies): Likewise.
63580
63581 2007-07-01  Bruno Haible  <bruno@clisp.org>
63582
63583         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63584         Windows PATH as well. Conservative double-quoting. Comments.
63585
63586 2007-07-01  Bruno Haible  <bruno@clisp.org>
63587             Eric Blake  <ebb9@byu.net>
63588             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63589
63590         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63591         empty components in $PATH, denoting '.'.
63592
63593 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63594
63595         * gnulib-tool: Fix indentation.
63596         (func_create_megatestdir): Likewise.
63597         Report by Bruno Haible.
63598
63599 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63600
63601         Sync from Automake.
63602         * build-aux/gnupload: Fix shell portability issues with for loops.
63603         Report by Karl Berry.
63604
63605 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63606
63607         * build-aux/maint.mk (POURL): Use translationproject.org.
63608
63609 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63610             Bruno Haible  <bruno@clisp.org>
63611
63612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63613         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63614         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63615         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63616         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63617
63618 2007-06-27  Bruno Haible  <bruno@clisp.org>
63619
63620         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63621         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63622
63623 2007-06-26  Karl Berry  <karl@gnu.org>
63624
63625         * MODULES.html.sh: remove xreadlink-with-size.
63626
63627 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63630         method that I hope also handles the double-include problem noted
63631         by Bruno Haible in
63632         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63633
63634 2007-06-23  Bruno Haible  <bruno@clisp.org>
63635
63636         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63637         Don't let the 'mostlyclean' target fail if the last subdirectory could
63638         not be removed.
63639         Reported by Karl Berry.
63640
63641 2007-06-23  Bruno Haible  <bruno@clisp.org>
63642
63643         * gnulib-tool (echo): Add a speedier workaround for ksh.
63644         * tests/test-echo.sh: Likewise.
63645
63646 2007-06-23  Bruno Haible  <bruno@clisp.org>
63647
63648         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63649         * tests/test-echo.sh: Likewise.
63650
63651 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63652
63653         * gnulib-tool (IFS): Initialize early, so we don't set it to
63654         empty later.
63655         (self_abspathname): Rewrite algorithm to set it, reindent.
63656         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63657         (func_create_megatestdir): Merge some sed scripts.
63658
63659 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63660
63661         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63662         exposed by Sun Studio 11 cc on Solaris 8.
63663
63664 2007-06-22  Bruno Haible  <bruno@clisp.org>
63665
63666         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63667         backslashes.
63668         * tests/test-echo.sh: New file.
63669
63670 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63671
63672         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63673         simplify `sed_replace_build_aux' scripts, they are portable but
63674         echoing them with `echo' is not.
63675         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63676
63677 2007-06-21  Karl Berry  <karl@gnu.org>
63678
63679         * config/srclist.txt: guess we can't handle the licenses via
63680         srclist at the moment.
63681
63682 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63683
63684         * MODULES.html.sh: Add include_next.
63685         * modules/include_next: New file.
63686
63687 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63690         INCLUDE_NEXT.
63691         (gl_CHECK_NEXT_HEADERS): New macro.
63692         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63693         the obsolescent gl_ABSOLUTE_HEADER.
63694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63695         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63696         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63698         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63699         * m4/math_h.m4 (gl_MATH_H): Likewise.
63700         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63701         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63702         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63703         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63704         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63705         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63706         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63710         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63711         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63712         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63713         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63714         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63715         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63716         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63717         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63718         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63719         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63720         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63721         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63722         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63723         * lib/float_.h: Likewise.
63724         * lib/inttypes_.h: Likewise.
63725         * lib/math_.h: Likewise.
63726         * lib/search_.h: Likewise.
63727         * lib/signal_.h: Likewise.
63728         * lib/stdint_.h: Likewise.
63729         * lib/stdio_.h: Likewise.
63730         * lib/stdlib_.h: Likewise.
63731         * lib/string_.h: Likewise.
63732         * lib/sys_stat_.h: Likewise.
63733         * lib/sys_time_.h: Likewise.
63734         * lib/time_.h: Likewise.
63735         * lib/unistd_.h: Likewise.
63736         * lib/wchar_.h: Likewise.
63737         * lib/wctype_.h: Likewise.
63738         * lib/dirent_.h: Likewise.
63739         * lib/iconv_.h: Likewise.
63740         * lib/locale_.h: Likewise.
63741         * lib/netinet_in_.h: Likewise.
63742         * lib/sys_select_.h: Likewise.
63743         * lib/sys_socket_.h: Likewise.
63744         * lib/sysexits_.h: Likewise.
63745         * modules/fcntl (Depends-on): Depend on include_next, not
63746         absolute_header.
63747         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63748         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63749         * modules/fchdir: Likewise.
63750         * modules/float: Likewise.
63751         * modules/iconv_open: Likewise.
63752         * modules/inttypes: Likewise.
63753         * modules/locale: Likewise.
63754         * modules/math: Likewise.
63755         * modules/netinet_in: Likewise.
63756         * modules/search: Likewise.
63757         * modules/signal: Likewise.
63758         * modules/stdint: Likewise.
63759         * modules/stdio: Likewise.
63760         * modules/stdlib: Likewise.
63761         * modules/string: Likewise.
63762         * modules/sys_select: Likewise.
63763         * modules/sys_socket: Likewise.
63764         * modules/sys_stat: Likewise.
63765         * modules/sys_time: Likewise.
63766         * modules/sysexits: Likewise.
63767         * modules/time: Likewise.
63768         * modules/unistd: Likewise.
63769         * modules/wchar: Likewise.
63770         * modules/wctype: Likewise.
63771         * modules/sys_stat: Change maintainer to "all".
63772         * modules/unistd: Likewise.
63773
63774 2007-06-20  Karl Berry  <karl@gnu.org>
63775
63776         * config/srclist.txt: track www changes in license files.
63777
63778 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63779
63780         * build-aux/bootstrap: Remove stray dot.
63781         Make sure build_aux settings are honored when linking
63782         gnulib_extra_files.
63783
63784 2007-06-19  Eric Blake  <ebb9@byu.net>
63785
63786         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63787         Allow compilation on cygwin.
63788
63789 2007-06-19  Jim Meyering  <jim@meyering.net>
63790
63791         xreadlink-with-size: Remove module.  No longer used.
63792         Ex-callers now use xreadlink or mreadlink-with-size.
63793         * modules/xreadlink-with-size: Remove module.
63794         * lib/xreadlink-with-size.c: Remove file.
63795         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63796         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63797         just before the function definition *is* accurate.
63798
63799         Eliminate one way canonicalize_filename_mode could exit.
63800         * lib/canonicalize.c (canonicalize_filename_mode):
63801         Use mreadlink_with_size, not xreadlink_with_size.
63802
63803 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63804
63805         Detect porting problems to FreeBSD/arm, which has time_t wider than
63806         long int.  Original problem reported for GNU diff by Xin Li in
63807         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63808         * modules/getdate (Depends-on): Add intprops, verify.
63809         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63810         is an integer type no wider than long int.
63811
63812 2007-06-18  Jim Meyering  <jim@meyering.net>
63813
63814         New module: mreadlink-with-size.
63815         * MODULES.html.sh: Add mreadlink-with-size.
63816         * modules/mreadlink-with-size: New module
63817         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63818         not xreadlink-with-size.
63819         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63820
63821 2007-06-16  Bruno Haible  <bruno@clisp.org>
63822
63823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63824         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63825         Reported by Gary V. Vaughan <gary@gnu.org>.
63826
63827 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         Revamp lchown so that it lives in unistd.h where it belongs.
63830         * lib/lchown.h: Remove.
63831         * lib/dirchownmod.c: Don't include lib/lchown.h.
63832         * lib/fchownat.c: Likewise.
63833         * lib/openat.c: Likewise.
63834         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63835         does not follow symlinks.
63836         (EOPNOTSUPP): Define if not defined.
63837         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63838         is defined to 0.
63839         (lchown): New decl.
63840         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63841         Do not check for lchown decl.
63842         Set REPLACE_LCHOWN.
63843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63844         REPLACE_LCHOWN.
63845         * modules/chown: Make it clear it follows symlinks.
63846         * modules/lchown: Make it clear it doesn't follow symlinks.
63847         (Files): Remove lib/lchown.h
63848         (Depends-on): Add unistd.
63849         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63850         (Include): Include <unistd.h>, not "lchown.h".
63851         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63852         REPLACE_LCHOWN.
63853
63854 2007-06-15  Jim Meyering  <jim@meyering.net>
63855
63856         Change license (GPL to LGPL) of fsusage and dependents.
63857         * modules/fsusage (License): Change to LGPL.
63858         * modules/full-read (License): Likewise.
63859         * modules/full-write (License): Likewise.
63860         * modules/safe-read (License): Likewise.
63861         * modules/safe-write (License): Likewise.
63862
63863 2007-06-14  Ben Pfaff  <blp@gnu.org>
63864
63865         Missing part of allocsa -> malloca transition.
63866         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63867         gl_MALLOCA.
63868
63869 2007-06-12  Bruno Haible  <bruno@clisp.org>
63870
63871         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63872         to ia64, x86_64, i386.
63873         Reported by Eric Blake.
63874
63875 2007-06-12  Bruno Haible  <bruno@clisp.org>
63876
63877         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63878         cross-compiling to x86_64.
63879
63880 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63881
63882         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63883         glitch reported by Ralf Wildenhues in
63884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63885
63886         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63887         Vin Shelton.
63888
63889 2007-06-11  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63892         replacement string.
63893         Reported by Eric Blake.
63894
63895 2007-06-10  Bruno Haible  <bruno@clisp.org>
63896
63897         Prepare vasnprintf code for use with Unicode strings.
63898         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63899         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63900         TYPE_U32_STRING.
63901         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63902         a_u32_string variants.
63903         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63904         * lib/printf-args.c: Don't include config.h and the specification
63905         header if PRINTF_FETCHARGS is already defined.
63906         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63907         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63908         TYPE_U16_STRING, TYPE_U32_STRING.
63909         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63910         u16_directive, u16_directives, u32_directive, u32_directives): New
63911         types.
63912         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63913         New declarations.
63914         * lib/printf-parse.c: Don't include config.h and the specification
63915         header if PRINTF_PARSE is already defined. Eliminate the set of
63916         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63917         them now. Include c-ctype.h.
63918         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63919         directive and CHAR_T_ONLY_ASCII.
63920         * lib/vasnprintf.c: Don't include config.h and the specification header
63921         if VASNPRINTF is already defined.
63922         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63923         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63924         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63925         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63926         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63927         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63928         code accordingly.
63929         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63930         pad_ourselves also in this case, with the 'c' and 's' directives, and
63931         with a different notion of "width".
63932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63933
63934 2007-06-10  Bruno Haible  <bruno@clisp.org>
63935
63936         * modules/unistr/u32-mbsnlen: New file.
63937         * lib/unistr/u32-mbsnlen.c: New file.
63938
63939         * modules/unistr/u16-mbsnlen: New file.
63940         * lib/unistr/u16-mbsnlen.c: New file.
63941
63942         * modules/unistr/u8-mbsnlen: New file.
63943         * lib/unistr/u8-mbsnlen.c: New file.
63944
63945         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63946         declarations.
63947
63948 2007-06-10  Bruno Haible  <bruno@clisp.org>
63949
63950         * lib/string_.h (mbsnlen): New declaration.
63951         * lib/mbsnlen.c: New file.
63952         * m4/mbsnlen.m4: New file.
63953         * modules/mbsnlen: New file.
63954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63955         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63956         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63957
63958 2007-06-10  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63961
63962 2007-06-10  Bruno Haible  <bruno@clisp.org>
63963
63964         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63965         * lib/mbuiter.h: Likewise.
63966
63967 2007-06-10  Bruno Haible  <bruno@clisp.org>
63968
63969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63970         declaration.
63971
63972 2007-06-10  Karl Berry  <karl@gnu.org>
63973
63974         * config/srclist.txt: remove gettext entries, Bruno prefers
63975         to update individually.
63976
63977 2007-06-10  Bruno Haible  <bruno@clisp.org>
63978
63979         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63980         'maxlen'. Ensure only length + width bytes are allocated, not
63981         length + 1 + width.
63982
63983 2007-06-09  Bruno Haible  <bruno@clisp.org>
63984
63985         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63986         (CHAR_T): Remove macro.
63987         (VASNPRINTF): Update.
63988
63989 2007-06-09  Bruno Haible  <bruno@clisp.org>
63990
63991         * MODULES.html.sh (Unicode string functions): Add the new modules.
63992
63993         * modules/uniconv/u32-conv-to-enc: New file.
63994         * lib/uniconv/u32-conv-to-enc.c: New file.
63995         * modules/uniconv/u32-conv-to-enc-tests: New file.
63996         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63997
63998         * modules/uniconv/u16-conv-to-enc: New file.
63999         * lib/uniconv/u16-conv-to-enc.c: New file.
64000         * lib/uniconv/u-conv-to-enc.h: New file.
64001         * modules/uniconv/u16-conv-to-enc-tests: New file.
64002         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64003
64004         * modules/uniconv/u8-conv-to-enc: New file.
64005         * lib/uniconv/u8-conv-to-enc.c: New file.
64006         * modules/uniconv/u8-conv-to-enc-tests: New file.
64007         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64008
64009         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64010         u32_conv_to_encoding): New declarations.
64011
64012 2007-06-09  Bruno Haible  <bruno@clisp.org>
64013
64014         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64015
64016 2007-06-09  Bruno Haible  <bruno@clisp.org>
64017
64018         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64019         * modules/malloca: Renamed from modules/allocsa, updated.
64020         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64021         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64022         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64023         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64024         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64025         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64026         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64027         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64028         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64029         * modules/c-strcasestr (Depends-on): Update.
64030         * lib/c-strcasestr.c: Update.
64031         * modules/c-strstr (Depends-on): Update.
64032         * lib/c-strstr.c: Update.
64033         * modules/canonicalize-lgpl (Depends-on): Update.
64034         * lib/canonicalize-lgpl.c: Update.
64035         * modules/clean-temp (Depends-on): Update.
64036         * lib/clean-temp.c: Update.
64037         * modules/csharpcomp (Depends-on): Update.
64038         * lib/csharpcomp.c: Update.
64039         * modules/csharpexec (Depends-on): Update.
64040         * lib/csharpexec.c: Update.
64041         * modules/javacomp (Depends-on): Update.
64042         * lib/javacomp.c: Update.
64043         * modules/javaexec (Depends-on): Update.
64044         * lib/javaexec.c: Update.
64045         * modules/mbscasestr (Depends-on): Update.
64046         * lib/mbscasestr.c: Update.
64047         * modules/mbsstr (Depends-on): Update.
64048         * lib/mbsstr.c: Update.
64049         * modules/setenv (Depends-on): Update.
64050         * lib/setenv.c: Update.
64051         * modules/strcasestr (Depends-on): Update.
64052         * lib/strcasestr.c: Update.
64053         * modules/striconveha (Depends-on): Update.
64054         * lib/striconveha.c: Update.
64055         * modules/relocatable-prog-wrapper (Files): Update.
64056         * lib/relocwrapper.c: Update.
64057         * build-aux/install-reloc: Update.
64058         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64059
64060 2007-06-08  Bruno Haible  <bruno@clisp.org>
64061
64062         Port to uClibc.
64063         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64064         * lib/fpurge.c (fpurge): Likewise.
64065         * lib/freading.c (freading): Likewise.
64066         * lib/fseeko.c (rpl_fseeko): Likewise.
64067         * lib/fseterr.c (fseterr): Likewise.
64068         * lib/fwriting.c (fwriting): Likewise.
64069         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64070
64071 2007-06-08  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64074         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64075         * modules/gettext (Files): Add m4/intlmacosx.m4.
64076
64077 2007-06-07  Bruno Haible  <bruno@clisp.org>
64078
64079         * modules/localename-tests: New file.
64080         * tests/test-localename.c: New file.
64081
64082         New module 'localename'.
64083         * lib/localename.h: New file.
64084         * lib/localename.c: New file, from GNU gettext.
64085         * m4/localename.m4: New file.
64086         * modules/localename: New file.
64087
64088 2007-06-07  Bruno Haible  <bruno@clisp.org>
64089
64090         Work around the lack of <wchar.h> on some builds of uClibc.
64091         * doc/headers/wchar.texi: Update.
64092         * lib/wchar_.h: Include <wchar.h> only if it exists.
64093         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64094         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64095         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64096         doesn't exist.
64097         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64098         * modules/mbfile (Depends-on): Add wchar.
64099         * modules/mbiter (Depends-on): Likewise.
64100         * modules/mbuiter (Depends-on): Likewise.
64101         Reported by Simon Josefsson.
64102
64103 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         Work around problem reported by Steven M. Schweda in
64106         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64107         Tru64 5.1B with the Compaq compiler environment installed declares
64108         an 'isblank' function but does not define it in the C library.
64109         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64110         * lib/regex_internal.h (isblank): Likewise.
64111         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64112         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64113
64114 2007-06-05  Bruno Haible  <bruno@clisp.org>
64115
64116         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64117         ia64.
64118         * modules/printf-safe: New file.
64119         * modules/fprintf-posix (Depends-on): Add printf-safe.
64120         * modules/printf-posix (Depends-on): Likewise.
64121         * modules/snprintf-posix (Depends-on): Likewise.
64122         * modules/sprintf-posix (Depends-on): Likewise.
64123         * modules/vasnprintf-posix (Depends-on): Likewise.
64124         * modules/vasprintf-posix (Depends-on): Likewise.
64125         * modules/vfprintf-posix (Depends-on): Likewise.
64126         * modules/vprintf-posix (Depends-on): Likewise.
64127         * modules/vsnprintf-posix (Depends-on): Likewise.
64128         * modules/vsprintf-posix (Depends-on): Likewise.
64129         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64130         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64131         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64132         "no" on i386, x86_64, ia64.
64133         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64134         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64135         on i386, x86_64, ia64.
64136         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64137         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64138         on i386, x86_64, ia64.
64139         * tests/test-vasnprintf-posix.c: Include float.h.
64140         (LDBL80_WORDS): New macro.
64141         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64142         on i386, x86_64, ia64.
64143         * tests/test-vasprintf-posix.c: Include float.h.
64144         (LDBL80_WORDS): New macro.
64145         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64146         on i386, x86_64, ia64.
64147         * tests/test-snprintf-posix.c: Include float.h.
64148         * tests/test-sprintf-posix.c: Likewise.
64149         * tests/test-vsnprintf-posix.c: Likewise.
64150         * tests/test-vsprintf-posix.c: Likewise.
64151
64152 2007-06-05  Bruno Haible  <bruno@clisp.org>
64153
64154         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64156         non-IEEE numbers on i386, x86_64, ia64.
64157         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64158         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64159         * tests/test-isnanl.h: Include float.h.
64160         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64161
64162 2007-06-05  Bruno Haible  <bruno@clisp.org>
64163
64164         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64165         also the %a / %A. Handle the %a / %A code before this extra handling.
64166
64167 2007-06-05  Bruno Haible  <bruno@clisp.org>
64168
64169         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64170         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64171
64172 2007-06-05  Bruno Haible  <bruno@clisp.org>
64173
64174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64175         typo in variable name.
64176
64177 2007-06-05  Eric Blake  <ebb9@byu.net>
64178
64179         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64180         Reported by Simon Josefsson.
64181
64182 2007-06-04  Bruno Haible  <bruno@clisp.org>
64183
64184         Avoid test failures on some PowerPC platforms.
64185         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64186         Define differently for PowerPC.
64187         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64188         Reported by Gary V. Vaughan <gary@gnu.org>.
64189
64190 2007-06-02  Bruno Haible  <bruno@clisp.org>
64191
64192         Fix test-stdint failure on FreeBSD/ia64.
64193         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64194         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64195         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64196         * doc/headers/stdint.texi: Update.
64197
64198 2007-06-01  Bruno Haible  <bruno@clisp.org>
64199
64200         * tests/test-binary-io.c (main): Pass a third argument to open().
64201         Reported by Gary V. Vaughan <gary@gnu.org>.
64202
64203 2007-06-01  Bruno Haible  <bruno@clisp.org>
64204
64205         * doc/functions/frexpl.texi: Update for mingw.
64206
64207 2007-06-01  Bruno Haible  <bruno@clisp.org>
64208
64209         * tests/test-lseek.c (main): Disable test of errno for invalid third
64210         argument.
64211         * doc/functions/lseek.texi: Update.
64212         Reported by Gary V. Vaughan <gary@gnu.org>.
64213
64214 2007-05-28  Bruno Haible  <bruno@clisp.org>
64215
64216         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64217
64218 2007-05-31  Eric Blake  <ebb9@byu.net>
64219
64220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64221         cross compiling.
64222
64223 2007-05-30  Eric Blake  <ebb9@byu.net>
64224         and Bruno Haible  <bruno@clisp.org>
64225
64226         Work around mingw test failures exposed by m4-1.4.9b.
64227         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64228         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64229         moment.
64230
64231 2007-05-30  Bruno Haible  <bruno@clisp.org>
64232
64233         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64234         assuming that they are closed. Needed on HP-UX 11.
64235
64236 2007-05-29  Bruno Haible  <bruno@clisp.org>
64237
64238         Fix a problem with #include_next.
64239         * lib/dirent_.h: Split the double-inclusion guard.
64240         * lib/fcntl_.h: Likewise.
64241         * lib/float_.h: Likewise.
64242         * lib/iconv_.h: Likewise.
64243         * lib/inttypes_.h: Likewise.
64244         * lib/locale_.h: Likewise.
64245         * lib/math_.h: Likewise.
64246         * lib/netinet_in_.h: Likewise.
64247         * lib/search_.h: Likewise.
64248         * lib/signal_.h: Likewise.
64249         * lib/stdint_.h: Likewise.
64250         * lib/stdio_.h: Likewise.
64251         * lib/stdlib_.h: Likewise.
64252         * lib/string_.h: Likewise.
64253         * lib/sys_select_.h: Likewise.
64254         * lib/sys_socket_.h: Likewise.
64255         * lib/sys_stat_.h: Likewise.
64256         * lib/sys_time_.h: Likewise.
64257         * lib/sysexits_.h: Likewise.
64258         * lib/time_.h: Likewise.
64259         * lib/unistd_.h: Likewise.
64260         * lib/wchar_.h: Likewise.
64261         * lib/wctype_.h: Likewise.
64262
64263 2007-05-29  Bruno Haible  <bruno@clisp.org>
64264
64265         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64266         for the moment.
64267
64268 2007-05-29  Bruno Haible  <bruno@clisp.org>
64269
64270         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64271         invocation.
64272         Reported by Eric Blake.
64273
64274 2007-05-29  Bruno Haible  <bruno@clisp.org>
64275
64276         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64277         compiling case.
64278
64279 2007-05-29  Eric Blake  <ebb9@byu.net>
64280             Bruno Haible  <bruno@clisp.org>
64281
64282         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64283         cross compiles.
64284
64285 2007-05-28  Eric Blake  <ebb9@byu.net>
64286
64287         * modules/closein-tests (test_closein_LDADD): Support test on
64288         cygwin with libtool.
64289
64290 2007-05-28  Bruno Haible  <bruno@clisp.org>
64291
64292         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64293         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64294         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64295         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64296         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64297         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64298         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64299         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64300         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64301
64302 2007-05-28  Eric Blake  <ebb9@byu.net>
64303
64304         Unconditionally include <config.h> in unit tests.
64305         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64306         * tests/test-allocsa.c, tests/test-arcfour.c,
64307         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64308         tests/test-array_list.c, tests/test-array_oset.c,
64309         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64310         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64311         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64312         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64313         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64314         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64315         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64316         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64317         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64318         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64319         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64320         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64321         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64322         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64323         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64324         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64325         test-md5.c, test-memmem.c, test-printf-posix.c,
64326         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64327         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64328         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64329         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64330         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64331         test-vasnprintf-posix2.c, test-vasnprintf.c,
64332         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64333         test-vfprintf-posix.c, test-vprintf-posix.c,
64334         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64335         test-xvasprintf.c: Likewise.
64336
64337 2007-05-28  Bruno Haible  <bruno@clisp.org>
64338
64339         * gnulib-tool (func_import): Remember the --with-tests command-line
64340         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64341         Reported by Eric Blake.
64342
64343 2007-05-28  Bruno Haible  <bruno@clisp.org>
64344
64345         * modules/ftell-tests: New file.
64346         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64347         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64348
64349         * lib/ftell.c: New file.
64350         * modules/ftell: New file.
64351         * m4/ftell.m4: New file.
64352         * doc/functions/ftell.texi: Update.
64353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64354         REPLACE_FTELL.
64355         * lib/stdio_.h (rpl_ftell): New declaration.
64356         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64357         REPLACE_FTELL.
64358
64359 2007-05-28  Eric Blake  <ebb9@byu.net>
64360
64361         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64362
64363 2007-05-28  Bruno Haible  <bruno@clisp.org>
64364
64365         * modules/fseek-tests: New file.
64366         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64367         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64368
64369         * lib/fseek.c: New file.
64370         * modules/fseek: New file.
64371         * m4/fseek.m4: New file.
64372         * doc/functions/fseek.texi: Update.
64373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64374         REPLACE_FSEEK.
64375         * lib/stdio_.h (rpl_fseek): New declaration.
64376         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64377         REPLACE_FSEEK.
64378
64379 2007-05-28  Bruno Haible  <bruno@clisp.org>
64380
64381         * lib/stdio_.h (fflush): More comments.
64382
64383 2007-05-28  Bruno Haible  <bruno@clisp.org>
64384
64385         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64386         runtime test.
64387
64388 2007-05-28  Eric Blake  <ebb9@byu.net>
64389
64390         Improve lseek module.
64391         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64392         * lib/unistd_.h (lseek): Scale back link warning message.
64393         * tests/test-lseek.c: Beef up test.
64394         * tests/test-lseek.sh: Exercise more facets of lseek.
64395         Reported by Bruno Haible.
64396
64397 2007-05-28  Bruno Haible  <bruno@clisp.org>
64398
64399         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64400         to define.
64401
64402 2007-05-27  Bruno Haible  <bruno@clisp.org>
64403
64404         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64405
64406 2007-05-27  Bruno Haible  <bruno@clisp.org>
64407
64408         * modules/openmp: New file.
64409         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64410         Noah Misch.
64411
64412 2007-05-26  Bruno Haible  <bruno@clisp.org>
64413
64414         * modules/chdir-long (Depends-on): Add fchdir.
64415         * modules/chdir-safer (Depends-on): Likewise.
64416         * modules/fts (Depends-on): Likewise.
64417         * modules/fts-lgpl (Depends-on): Likewise.
64418         * modules/openat (Depends-on): Likewise.
64419         * modules/savewd (Depends-on): Likewise.
64420
64421 2007-05-24  Eric Blake  <ebb9@byu.net>
64422
64423         Fix lseek on mingw.
64424         * modules/lseek: New module.
64425         * m4/lseek.m4: New file.
64426         * lib/lseek.c: New file.
64427         * modules/lseek-tests: New file.
64428         * tests/test-lseek.c: New file.
64429         * tests/test-lseek.sh: New file.
64430         * MODULES.html.sh: Document lseek module.
64431         * modules/fflush (Depends-on): Add lseek, fseeko.
64432         * modules/fseeko (Depends-on): Likewise.
64433         * modules/ftello (Depends-on): Likewise.
64434         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64435         broken.
64436         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64437         broken.
64438         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64439         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64440         * lib/ftello.c (rpl_ftello): Likewise.
64441         * tests/test-fseeko.c (main): Test this.
64442         * tests/test-fseeko.sh: Likewise.
64443         * tests/test-ftello.c (main): Likewise.
64444         * tests/test-ftello.sh: Likewise.
64445         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64446         implies replacing fseek.
64447         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64448         HAVE_FTELLO.
64449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64450         * modules/unistd (Makefile.am): Likewise.
64451         * lib/unistd_.h (lseek): Declare a replacement.
64452         * doc/functions/lseek.texi (lseek): Document this fix.
64453         * doc/functions/fseek.texi (fseek): Likewise.
64454         * doc/functions/ftell.texi (ftell): Likewise.
64455
64456 2007-05-24  Bruno Haible  <bruno@clisp.org>
64457
64458         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64459         in the printed representation of a NaN.
64460         * tests/test-vasprintf-posix.c (test_function): Likewise.
64461         * tests/test-snprintf-posix.h (test_function): Likewise.
64462         * tests/test-sprintf-posix.h (test_function): Likewise.
64463         Reported by Eric Blake.
64464
64465 2007-05-23  Eric Blake  <ebb9@byu.net>
64466
64467         Fix fseeko/ftello on cygwin 1.5.24.
64468         * doc/functions/fseeko.texi (fseeko): Document the fix.
64469         * doc/functions/ftello.texi (ftello): Document the fix.
64470         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64471         * doc/functions/stdout.text (stdout): New file.
64472         * doc/functions/stderr.text (stderr): New file.
64473         * doc/gnulib.texi (Function Substitutes): Use new files.
64474         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64475         prior to 1.7.0.
64476         * tests/test-ftello.c (main): Likewise for ftello.
64477         * tests/test-fseeko.sh: New file.
64478         * tests/test-ftello.sh: New file.
64479         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64480         with seekable stdin.
64481         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64482         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64483         (gl_REPLACE_FSEEKO): New macro.
64484         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64485         * modules/fseeko (Files): Distribute fseeko.c.
64486         * modules/ftello (Files): Distribute ftello.c.
64487         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64488         mode.
64489         * lib/ftello.c (rpl_ftello): New file.
64490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64491         fseeko, ftello.
64492         (gl_STDIN_LARGE_OFFSET): New macro.
64493         * modules/stdio (Makefile.am): Perform the replacement.
64494         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64495
64496 2007-05-23  Bruno Haible  <bruno@clisp.org>
64497
64498         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64499         GNULIB_POSIXCHECK is defined.
64500
64501 2007-05-21  Bruno Haible  <bruno@clisp.org>
64502
64503         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64504         Check also the output for NaN arguments. When cross-compiling, guess
64505         no on IRIX.
64506         * lib/vasnprintf.c: Update comments.
64507         * tests/test-vasnprintf-posix.c (strisnan): New function.
64508         (test_function): Use it.
64509         * tests/test-vasprintf-posix.c (strisnan): New function.
64510         (test_function): Use it.
64511         * tests/test-snprintf-posix.h (strisnan): New function.
64512         (test_function): Use it.
64513         * tests/test-sprintf-posix.h (strisnan): New function.
64514         (test_function): Use it.
64515         Reported by Eric Blake.
64516
64517 2007-05-20  Bruno Haible  <bruno@clisp.org>
64518
64519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64520         numbers that fails on BeOS.
64521         * doc/functions/frexpl.texi: Update.
64522
64523 2007-05-20  Jim Meyering  <jim@meyering.net>
64524
64525         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64526         forced upon us by glibc-2.6.
64527
64528 2007-05-20  Bruno Haible  <bruno@clisp.org>
64529
64530         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64531         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64532         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64533         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64534         NEED_PRINTF_INFINITE.
64535         (is_infinitel): New function.
64536         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64538         gl_PREREQ_VASNPRINTF_INFINITE.
64539         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64541         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64542         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64543         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64544         gl_PREREQ_VASNPRINTF_INFINITE.
64545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64552         * doc/functions/fprintf.texi: Update.
64553         * doc/functions/printf.texi: Update.
64554         * doc/functions/snprintf.texi: Update.
64555         * doc/functions/sprintf.texi: Update.
64556         * doc/functions/vfprintf.texi: Update.
64557         * doc/functions/vprintf.texi: Update.
64558         * doc/functions/vsnprintf.texi: Update.
64559         * doc/functions/vsprintf.texi: Update.
64560
64561 2007-05-20  Bruno Haible  <bruno@clisp.org>
64562
64563         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64564         was not found in libc.
64565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64566
64567 2007-05-20  Bruno Haible  <bruno@clisp.org>
64568
64569         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64570         printed as "-nan" instead of "nan".
64571         * tests/test-vasprintf-posix.c (test_function): Likewise.
64572         * tests/test-snprintf-posix.h (test_function): Likewise.
64573         * tests/test-sprintf-posix.h (test_function): Likewise.
64574         Needed for HP-UX 11.
64575
64576 2007-05-20  Jim Meyering  <jim@meyering.net>
64577
64578         Fix buggy test for the fchownat-deref bug.
64579         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64580         symlink required for the run-test.  Without it, this test would
64581         always declare that fchownat doesn't work, and client code would
64582         unnecessarily use the replacement function with fixed libc.
64583         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64584         Reported by Greg Schafer.
64585
64586 2007-05-19  Bruno Haible  <bruno@clisp.org>
64587
64588         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64589         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64590         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64591         Needed for IRIX 6.5 and Solaris 2.5.1.
64592
64593 2007-05-19  Bruno Haible  <bruno@clisp.org>
64594
64595         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64596         (test_function): Skip tests involving -0.0 on platforms where
64597         -0.0 = 0.0.
64598         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64599         (test_function): Skip tests involving -0.0 on platforms where
64600         -0.0 = 0.0.
64601         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64602         (test_function): Skip tests involving -0.0 on platforms where
64603         -0.0 = 0.0.
64604         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64605         (test_function): Skip tests involving -0.0 on platforms where
64606         -0.0 = 0.0.
64607         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64608         tests.
64609         * tests/test-printf-posix.h (test_function): Likewise.
64610         * tests/test-printf-posix.output: Remove all -0.0 related results.
64611         Needed for IRIX 6.5.
64612
64613 2007-05-19  Bruno Haible  <bruno@clisp.org>
64614
64615         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64616         printed as "nan0x7fffffff" instead of "nan".
64617         * tests/test-vasprintf-posix.c (test_function): Likewise.
64618         * tests/test-snprintf-posix.h (test_function): Likewise.
64619         * tests/test-sprintf-posix.h (test_function): Likewise.
64620         * tests/test-fprintf-posix.h (NaN): Remove macro.
64621         (test_function): Remove all NaN related tests.
64622         * tests/test-printf-posix.h (NaN): Remove macro.
64623         (test_function): Remove all NaN related tests.
64624         * tests/test-printf-posix.output: Remove all NaN related results.
64625         Needed for IRIX 6.5.
64626
64627 2007-05-19  Bruno Haible  <bruno@clisp.org>
64628
64629         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64630         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64631
64632 2007-05-19  Bruno Haible  <bruno@clisp.org>
64633
64634         * lib/float_.h: New file.
64635         * m4/float_h.m4: New file.
64636         * modules/float: New file.
64637         * modules/isnanl (Dependencies): Add float.
64638         * modules/isnanl-nolibm (Dependencies): Likewise.
64639         * modules/mathl (Dependencies): Likewise.
64640         * modules/printf-frexpl (Dependencies): Likewise.
64641         * modules/signbit (Dependencies): Likewise.
64642         * modules/vasnprintf (Dependencies): Likewise.
64643         * doc/headers/float.texi: Update.
64644
64645 2007-05-19  Jim Meyering  <jim@meyering.net>
64646
64647         * lib/utimens.c (gl_futimens): Rename from futimens,
64648         now that glibc-2.6 declares futimens.
64649         * lib/utimens.h: Likewise.
64650
64651 2007-05-19  Bruno Haible  <bruno@clisp.org>
64652
64653         Avoid test failures on mingw.
64654         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64655         * tests/test-printf-posix.sh: Likewise.
64656         * tests/test-vfprintf-posix.sh: Likewise.
64657         * tests/test-vprintf-posix.sh: Likewise.
64658
64659 2007-05-19  Bruno Haible  <bruno@clisp.org>
64660
64661         Fix *printf result for NaN, Inf, -0.0 on mingw.
64662         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64663         * lib/vasnprintf.c: Include math.h and isnan.h.
64664         (is_infinite_or_zero): New function.
64665         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64666         values in the %f, %F, %e, %E, %g, %G directives.
64667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64669         gl_PRINTF_INFINITE and test its result. Invoke
64670         gl_PREREQ_VASNPRINTF_INFINITE.
64671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64678         * doc/functions/fprintf.texi: Update.
64679         * doc/functions/printf.texi: Update.
64680         * doc/functions/snprintf.texi: Update.
64681         * doc/functions/sprintf.texi: Update.
64682         * doc/functions/vfprintf.texi: Update.
64683         * doc/functions/vprintf.texi: Update.
64684         * doc/functions/vsnprintf.texi: Update.
64685         * doc/functions/vsprintf.texi: Update.
64686
64687 2007-05-19  Bruno Haible  <bruno@clisp.org>
64688
64689         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64690         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64691         Instead of multiplying with 10^k, set extra_zeroes to k.
64692         (scale10_round_long_double): Remove function.
64693
64694 2007-05-18  Bruno Haible  <bruno@clisp.org>
64695
64696         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64697         introduced on 2007-05-06.
64698
64699 2007-05-18  Bruno Haible  <bruno@clisp.org>
64700
64701         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64702         %g directives.
64703         * tests/test-vasprintf-posix.c (test_function): Likewise.
64704         * tests/test-snprintf-posix.h (test_function): Likewise.
64705         * tests/test-sprintf-posix.h (test_function): Likewise.
64706
64707 2007-05-18  Bruno Haible  <bruno@clisp.org>
64708
64709         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64710         (strmatch): New function.
64711         (test_function): Test the %f directive on numbers of various exponents.
64712         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64713         (strmatch): New function.
64714         (test_function): Test the %f directive on numbers of various exponents.
64715         * tests/test-snprintf-posix.h (strmatch): New function.
64716         (test_function): Test the %f directive on numbers of various exponents.
64717         * tests/test-sprintf-posix.h (strmatch): New function.
64718         (test_function): Test the %f directive on numbers of various exponents.
64719         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64720         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64721         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64722         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64723
64724 2007-05-18  Bruno Haible  <bruno@clisp.org>
64725
64726         Add support for 'long double' number output.
64727         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64728         * lib/vasnprintf.c: Include math.h and float+.h.
64729         (mp_limb_t): New type.
64730         (GMP_LIMB_BITS): New macro.
64731         (mp_twolimb_t): New type.
64732         (GMP_TWOLIMB_BITS): New macro.
64733         (mpn_t): New type.
64734         (multiply, divide, convert_to_decimal, decode_long_double,
64735         scale10_round_long_double, scale10_round_decimal_long_double,
64736         floorlog10l): New functions.
64737         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64738         for the %f, %F, %e, %E, %g, %G directives.
64739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64740         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64741         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64742         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64744         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64745         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64746         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64747         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64748         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64749         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64750         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64751         * modules/snprintf-posix (Depends-on): Likewise.
64752         * modules/sprintf-posix (Depends-on): Likewise.
64753         * modules/vasnprintf-posix (Depends-on): Likewise.
64754         * modules/vasprintf-posix (Depends-on): Likewise.
64755         * modules/vfprintf-posix (Depends-on): Likewise.
64756         * modules/vsnprintf-posix (Depends-on): Likewise.
64757         * modules/vsprintf-posix (Depends-on): Likewise.
64758         * modules/vasnprintf (Files): Add lib/float+.h.
64759         * doc/functions/fprintf.texi: Update.
64760         * doc/functions/printf.texi: Update.
64761         * doc/functions/snprintf.texi: Update.
64762         * doc/functions/sprintf.texi: Update.
64763         * doc/functions/vfprintf.texi: Update.
64764         * doc/functions/vprintf.texi: Update.
64765         * doc/functions/vsnprintf.texi: Update.
64766         * doc/functions/vsprintf.texi: Update.
64767
64768 2007-05-18  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64771
64772 2007-05-18  Bruno Haible  <bruno@clisp.org>
64773
64774         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64775         for printing 64-bit integers. Needed for mingw.
64776
64777 2007-05-18  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64780         gl_FUNC_FREXPL_WORKS.
64781         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64782
64783 2007-05-18  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/frexpl-nolibm-tests: New file.
64786
64787         * modules/frexpl-nolibm: New file.
64788         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64789
64790 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64793         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64794         GCC 4.2, which otherwise issues a lot of warnings.
64795         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64796         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64797         Likewise.
64798         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64799         * modules/iconv_open (iconv.h): Likewise.
64800         * modules/locale (locale.h): Likewise.
64801         * modules/netinet_in (netinet/in.h): Likewise.
64802         * modules/sys_select (sys_select.h): Likewise.
64803         * modules/sys_socket (sys/socket.h): Likewise.
64804         * modules/sys_stat (sys/stat.h): Likewise.
64805         * modules/sysexits (sysexits.h): Likewise.
64806         * modules/unistd (unistd.h): Likewise.
64807
64808 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64809
64810         * modules/closein-tests (Makefile.am): Distribute
64811         `test-closein.sh'.
64812
64813 2007-05-17  Bruno Haible  <bruno@clisp.org>
64814
64815         * tests/test-printf-posix.output: Renamed from
64816         tests/test-fprintf-posix.out.
64817         * modules/fprintf-posix-tests: Update.
64818         * modules/printf-posix-tests: Update.
64819         * modules/vfprintf-posix-tests: Update.
64820         * modules/vprintf-posix-tests: Update.
64821         * tests/test-fprintf-posix.sh: Update.
64822         * tests/test-printf-posix.sh: Update.
64823         * tests/test-vfprintf-posix.sh: Update.
64824         * tests/test-vprintf-posix.sh: Update.
64825         Reported by Ralf Wildenhues.
64826
64827 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64830         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64831         GCC 4.2, which otherwise issues a lot of warnings.
64832         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64833         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64834         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64835         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64836         it should no longer be needed.
64837         * lib/string_.h: Likewise.
64838         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64839         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64840         * modules/inttypes (inttypes.h): Likewise.
64841         * modules/math (math.h): Likewise.
64842         * modules/search (search.h): Likewise.
64843         * modules/signal (signal.h): Likewise.
64844         * modules/stdint (stdint.h): Likewise.
64845         * modules/stdio (stdio.h): Likewise.
64846         * modules/stdlib (stdlib.h): Likewise.
64847         * modules/string (string.h): Likewise.
64848         * modules/sys_time (sys/time.h): Likewise.
64849         * modules/time (time.h): Likewise.
64850         * modules/wchar (wchar.h): Likewise.
64851         * modules/wctype (wtype.h): Likewise.
64852
64853 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64854
64855         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64856
64857 2007-05-13  Bruno Haible  <bruno@clisp.org>
64858
64859         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64860         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64861         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64862         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64863         (gl_PREREQ_STRTOK_R): Don't require it here.
64864
64865 2007-05-13  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64868         when used in C++ mode.
64869
64870 2007-05-12  Bruno Haible  <bruno@clisp.org>
64871
64872         * lib/linebuffer.h: Tweak doc.
64873         * lib/linebuffer.c: Likewise.
64874
64875 2007-05-12  James Youngman  <jay@gnu.org>
64876
64877         * lib/linebuffer.c (readlinebuffer_delim): New function,
64878         like readlinebuffer, but use a caller-specified delimiter.
64879         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64880         as the delimiter.
64881         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64882
64883 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64884
64885         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64886         * modules/openat (Files): Remove openat-die.c.
64887         (Depends-on): Add openat-die.
64888         * modules/openat-die: New module.
64889
64890 2007-05-06  Bruno Haible  <bruno@clisp.org>
64891
64892         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64893         Update with info about Cygwin.
64894         * doc/functions/fprintf.texi: Update.
64895         * doc/functions/printf.texi: Update.
64896         * doc/functions/snprintf.texi: Update.
64897         * doc/functions/sprintf.texi: Update.
64898         * doc/functions/vfprintf.texi: Update.
64899         * doc/functions/vprintf.texi: Update.
64900         * doc/functions/vsnprintf.texi: Update.
64901         * doc/functions/vsprintf.texi: Update.
64902         Reported by Eric Blake.
64903
64904 2007-05-06  Bruno Haible  <bruno@clisp.org>
64905
64906         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64907         padding ourselves for the floating-point directives.
64908         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64911         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64912         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64920         * tests/test-snprintf-posix.h (test_function): Also check the width
64921         and some flags in the %f directive.
64922         * tests/test-sprintf-posix.h (test_function): Likewise.
64923         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64924         * tests/test-vasprintf-posix.c (test_function): Likewise.
64925         * doc/functions/fprintf.texi: Update.
64926         * doc/functions/printf.texi: Update.
64927         * doc/functions/snprintf.texi: Update.
64928         * doc/functions/sprintf.texi: Update.
64929         * doc/functions/vfprintf.texi: Update.
64930         * doc/functions/vprintf.texi: Update.
64931         * doc/functions/vsnprintf.texi: Update.
64932         * doc/functions/vsprintf.texi: Update.
64933
64934 2007-05-06  Bruno Haible  <bruno@clisp.org>
64935
64936         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64937         pass the ' flag character to sprintf or snprintf.
64938         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64941         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64942         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64943         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64945         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64946         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64948         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64949         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64950         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64951         flag.
64952         * tests/test-sprintf-posix.h (test_function): Likewise.
64953         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64954         * tests/test-vasprintf-posix.c (test_function): Likewise.
64955         * doc/functions/fprintf.texi: Update.
64956         * doc/functions/printf.texi: Update.
64957         * doc/functions/snprintf.texi: Update.
64958         * doc/functions/sprintf.texi: Update.
64959         * doc/functions/vfprintf.texi: Update.
64960         * doc/functions/vprintf.texi: Update.
64961         * doc/functions/vsnprintf.texi: Update.
64962         * doc/functions/vsprintf.texi: Update.
64963
64964 2007-05-01  Bruno Haible  <bruno@clisp.org>
64965
64966         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64967
64968 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64971         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64972
64973 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64976         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64978
64979 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64980
64981         * lib/argp-help.c (struct hol_entry): New member `ord'.
64982         (HOL_ENTRY_PTRCMP): Use ord for comparison
64983         (hol_sort): Initialize ord.
64984
64985 2007-05-01  Bruno Haible  <bruno@clisp.org>
64986
64987         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64988         Reported by Eric Blake.
64989         * doc/gnulib.texi (Function Substitutes): Update.
64990
64991 2007-05-01  Bruno Haible  <bruno@clisp.org>
64992
64993         * doc/functions.texi: Remove file, now redundant through
64994         doc/functions/*.texi.
64995
64996 2007-05-01  Bruno Haible  <bruno@clisp.org>
64997
64998         * modules/argp (Depends-on): Add sleep.
64999
65000 2007-05-01  Bruno Haible  <bruno@clisp.org>
65001
65002         * modules/sleep-tests: New file.
65003         * tests/test-sleep.c: New file.
65004
65005         * modules/sleep: New file.
65006         * lib/sleep.c: New file.
65007         * m4/sleep.m4: New file.
65008         * lib/unistd_.h (sleep): New declaration.
65009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65010         HAVE_SLEEP.
65011         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65012         * doc/functions/sleep.texi: Document the sleep module.
65013
65014 2007-05-01  Bruno Haible  <bruno@clisp.org>
65015
65016         * lib/sigprocmask.h: Remove file.
65017         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65018         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65019         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65020         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65021         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65022         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65023         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65024         HAVE_SIGSET_T as a shell variable.
65025         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65026         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65027         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65028         (Depends-on): Add signal. Remove verify.
65029         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65030         (Include): Mention <signal.h> instead of sigprocmask.h.
65031         * NEWS: Mention the change.
65032         * lib/fatal-signal.c: Don't include sigprocmask.h.
65033
65034 2007-05-01  Bruno Haible  <bruno@clisp.org>
65035
65036         * modules/signal: New file.
65037         * lib/signal_.h: New file.
65038         * m4/signal_h.m4: New file.
65039
65040 2007-05-01  Bruno Haible  <bruno@clisp.org>
65041
65042         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65043         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65044         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65045         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65046
65047 2007-05-01  Bruno Haible  <bruno@clisp.org>
65048
65049         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65050         configure time.
65051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65052         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65053         * modules/sys_stat (Makefile.am): Substitute their values into
65054         sys/stat.h.
65055
65056 2007-05-01  Bruno Haible  <bruno@clisp.org>
65057
65058         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65059         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65060         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65061
65062 2007-05-01  Bruno Haible  <bruno@clisp.org>
65063
65064         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65065         'assert' module here.
65066
65067 2007-05-01  Bruno Haible  <bruno@clisp.org>
65068
65069         * doc/functions/*.texi: New files.
65070         * doc/functions/google-ranking.txt: New file.
65071         * doc/gnulib.texi (Function Substitutes): New chapter.
65072         (ctime, inet_ntoa): Remove sections.
65073         * doc/ctime.texi: Remove file.
65074         * doc/inet_ntoa.texi: Remove file.
65075         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65076         dependencies.
65077         (%.info): New rule, specifying a --reference-limit.
65078
65079 2007-05-01  Bruno Haible  <bruno@clisp.org>
65080
65081         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65082
65083 2007-05-01  Bruno Haible  <bruno@clisp.org>
65084
65085         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65086         the portability of 'mkdir' to mingw systems.
65087
65088 2007-05-01  Bruno Haible  <bruno@clisp.org>
65089
65090         * doc/headers/google-ranking.txt: New file.
65091
65092 2007-04-30  Eric Blake  <ebb9@byu.net>
65093
65094         Prefer fseeko to fseek.
65095         * modules/getpass (Depends-on): Add fseeko.
65096         * lib/getpass.c (getpass): Use fseeko, not fseek.
65097
65098 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65099
65100         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65101         assumes the sorting is stable, while most qsort implementations
65102         are not.  Use argument addresses to ensure they never compare as
65103         equal.
65104
65105         * tests/test-argp-2.sh (usage-indent test): Fix output
65106         (func_compare): Restore diff options
65107         * tests/test-argp.c: Restore #include "progname.h"
65108
65109 2007-04-29  Bruno Haible  <bruno@clisp.org>
65110
65111         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65113         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65115         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65116         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65117         (TESTS, check_PROGRAMS): Add test-snprintf.
65118         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65119         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65120         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65121         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65122         assertions that fail on HP-UX, OSF/1, or IRIX.
65123         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65124
65125 2007-04-29  Bruno Haible  <bruno@clisp.org>
65126
65127         * MODULES.html.sh (posix_functions): Remove 'contents'.
65128
65129 2007-04-29  Karl Berry  <karl@gnu.org>
65130
65131         * config/srclist.txt (gendocs_template_min): new entry.
65132
65133 2007-04-29  Bruno Haible  <bruno@clisp.org>
65134
65135         Work around fpurge bug on BSD systems.
65136         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65137         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65138         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65139         fpurge to rpl_fpurge if the system already has this function.
65140         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65141         the case where the system already has this function. Correct invariants
65142         on BSD systems.
65143         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65144         BSD systems.
65145
65146 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65147
65148         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65149         proposed by Sven Verdoolaege.
65150
65151         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65152         options.
65153         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65154         (usage and help tests): Update
65155
65156 2007-04-29  Bruno Haible  <bruno@clisp.org>
65157
65158         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65159         Print more information in case of failure. Disable a test on BeOS.
65160
65161 2007-04-29  Bruno Haible  <bruno@clisp.org>
65162
65163         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65164         This helps debugging on systems on which no gdb is available.
65165
65166 2007-04-29  Bruno Haible  <bruno@clisp.org>
65167
65168         * lib/freading.h: Improve comments.
65169         * lib/fwriting.h: Likewise.
65170         * tests/test-freading.c (main): Don't check freading immediately after
65171         repositioning. Needed for glibc.
65172
65173 2007-04-29  Bruno Haible  <bruno@clisp.org>
65174
65175         * lib/freading.c (freading): Trivial simplification.
65176
65177 2007-04-28  Bruno Haible  <bruno@clisp.org>
65178
65179         * tests/test-fwriting.c (main): Also test the interaction between
65180         fflush and fwriting.
65181         * modules/fwriting-tests (Depends-on): Add fflush.
65182
65183         * tests/test-freading.c (main): Also test the interaction between
65184         fflush and freading.
65185         * modules/freading-tests (Depends-on): Add fflush.
65186
65187 2007-04-28  Bruno Haible  <bruno@clisp.org>
65188
65189         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65190         fseeko and ftello.
65191         Suggested by Eric Blake.
65192
65193 2007-04-28  Jim Meyering  <jim@meyering.net>
65194
65195         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65196         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65197         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65198
65199 2007-04-27  Eric Blake  <ebb9@byu.net>
65200
65201         * doc/headers/assert.texi (assert.h): Document assert module use.
65202
65203 2007-04-27  Bruno Haible  <bruno@clisp.org>
65204
65205         * doc/headers/*.texi: New files.
65206         * doc/gnulib.texi (Header File Substitutes): New chapter.
65207         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65208         dependencies.
65209         (standards.info ,standards.html, standards.dvi): Update dependencies.
65210         (mostlyclean, clean): New targets.
65211
65212 2007-04-27  Bruno Haible  <bruno@clisp.org>
65213
65214         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65215         * modules/sysexits (Files, Makefile.am): Update.
65216
65217         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65218         * modules/sys_socket (Files, Makefile.am): Update.
65219
65220         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65221         * modules/sys_stat (Files, Makefile.am): Update.
65222
65223 2007-04-27  Eric Blake  <ebb9@byu.net>
65224
65225         * lib/freading.h: Improve comments.
65226         * lib/fwriting.h: Likewise.
65227         * lib/fflush.c: Likewise.
65228
65229         Fix closein for mingw.
65230         * modules/closein-tests: Add tests for closein.
65231         * tests/test-closein.c: New file.
65232         * tests/test-closein.sh: Likewise.
65233         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65234         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65235
65236 2007-04-27  Bruno Haible  <bruno@clisp.org>
65237
65238         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65239         version is < 6.
65240         * lib/math_.h [__DECC]: Likewise.
65241         * lib/stdio_.h [__DECC]: Likewise.
65242         * lib/stdlib_.h [__DECC]: Likewise.
65243         * lib/string_.h [__DECC]: Likewise.
65244         * lib/time_.h [__DECC]: Likewise.
65245         * lib/wchar_.h [__DECC]: Likewise.
65246         * lib/wctype_.h [__DECC]: Likewise.
65247
65248 2007-04-27  Bruno Haible  <bruno@clisp.org>
65249
65250         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65251
65252 2007-04-27  Bruno Haible  <bruno@clisp.org>
65253
65254         * lib/fflush.c: Add comments.
65255         * modules/fpurge-tests (Depends-on): Add fflush.
65256         * modules/freadable-tests (Depends-on): Likewise.
65257         * modules/fwritable-tests (Depends-on): Likewise.
65258
65259 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65260
65261         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65262         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65263         Report by Bruno Haible <bruno@clisp.org>.
65264
65265 2007-04-26  Eric Blake  <ebb9@byu.net>
65266
65267         Fix fflush on mingw.
65268         * modules/fflush (Depends-on): Add freading.
65269         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65270         but unread data.
65271
65272 2007-04-26  Eric Blake  <ebb9@byu.net>
65273         and Bruno Haible  <bruno@clisp.org>
65274
65275         Implement freading and fwriting.
65276         * lib/freading.c: New file.
65277         * lib/freading.h: Likewise.
65278         * m4/freading.m4: Likewise.
65279         * modules/freading: Likewise.
65280         * modules/freading-tests: Likewise.
65281         * tests/test-freading.c: Likewise.
65282         * lib/fwriting.c: New file.
65283         * lib/fwriting.h: Likewise.
65284         * m4/fwriting.m4: Likewise.
65285         * modules/fwriting: Likewise.
65286         * modules/fwriting-tests: Likewise.
65287         * tests/test-fwriting.c: Likewise.
65288         * MODULES.html.sh (File stream based Input/Output): Mention them.
65289
65290 2007-04-26  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65293         'long' when we assume it.
65294         Suggested by Eric Blake.
65295
65296 2007-04-26  Bruno Haible  <bruno@clisp.org>
65297
65298         Ensure fseeko, ftello are declared on glibc systems.
65299         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65300         * modules/fseeko (configure.ac-early): Likewise.
65301         * modules/ftello (configure.ac-early): Likewise.
65302         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65303         AC_FUNC_FSEEKO for this.
65304         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65305         (gl_CHECK_FSEEKO): Remove macro.
65306
65307 2007-04-26  Bruno Haible  <bruno@clisp.org>
65308
65309         * tests/test-fflush.c (main): Also check the ftell result after
65310         fflush and fseek/fseeko.
65311         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65312         file descriptor position cache in the stream.
65313         * lib/fseeko.c (rpl_fseeko): Likewise.
65314
65315 2007-04-26  Bruno Haible  <bruno@clisp.org>
65316
65317         * modules/fflush-tests (Depends-on): Add fseeko.
65318
65319 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65320             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65321
65322         * lib/argz_.h: ensure error_t definition is obtained in same
65323         mechanism system argz.h would have.
65324         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65325         argz facilities are known bad.  Err on the side of caution if
65326         cross-compiling.
65327
65328 2007-04-25  Eric Blake  <ebb9@byu.net>
65329
65330         * lib/fpurge.c (includes): Use stdlib.h for free.
65331         * tests/test-fflush.c (main): Also test fflush-fseeko.
65332
65333 2007-04-25  Bruno Haible  <bruno@clisp.org>
65334
65335         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65336         * lib/fseeko.c: New file.
65337         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65338         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65339         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65340         gl_FUNC_FSEEKO.
65341         (gl_FUNC_FSEEKO): Invoke it.
65342         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65343         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65344         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65345
65346 2007-04-25  Bruno Haible  <bruno@clisp.org>
65347
65348         * modules/fflush (Depends-on): Add ftello.
65349
65350 2007-04-25  Bruno Haible  <bruno@clisp.org>
65351
65352         * modules/ftello-tests: New file.
65353         * tests/test-ftello.c: New file.
65354
65355         * modules/ftello: New file.
65356         * m4/ftello.m4: New file.
65357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65358         HAVE_FTELLO.
65359         * lib/stdio_.h (ftello): New declaration.
65360         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65361         HAVE_FTELLO.
65362
65363 2007-04-25  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/fseeko-tests: New file.
65366         * tests/test-fseeko.c: New file.
65367
65368         * modules/fseeko: New file.
65369         * m4/fseeko.m4: New file.
65370         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65371         HAVE_FSEEKO.
65372         * lib/stdio_.h (fseeko): New declaration.
65373         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65374         HAVE_FSEEKO.
65375
65376 2007-04-25  Bruno Haible  <bruno@clisp.org>
65377
65378         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65379
65380 2007-04-25  Bruno Haible  <bruno@clisp.org>
65381
65382         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65383         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65384         * tests/test-unistd.c: Likewise.
65385         * tests/test-fcntl.c: Likewise.
65386
65387 2007-04-23  Eric Blake  <ebb9@byu.net>
65388
65389         * lib/fflush.c: Fix missing include.
65390         Reported by Bruno Haible.
65391
65392 2007-04-23  Bruno Haible  <bruno@clisp.org>
65393
65394         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65395         Reported by Eric Blake.
65396
65397 2007-04-23  Bruno Haible  <bruno@clisp.org>
65398
65399         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65400
65401 2007-04-23  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65404
65405 2007-04-23  Bruno Haible  <bruno@clisp.org>
65406
65407         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65408         Needed on HP-UX 11.
65409
65410 2007-04-16  Eric Blake  <ebb9@byu.net>
65411
65412         Make fflush rely on fpurge.
65413         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65414         open coding all variants.
65415         * modules/fflush (Depends-on): Add fpurge and unistd.
65416         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65418
65419         Fix --with-tests compilation on cygwin.
65420         * modules/argmatch-tests (Makefile.am): List gnulib library first
65421         in LDADD.
65422         * modules/argp-tests (Makefile.am): Likewise.
65423         * modules/array-list-tests (Makefile.am): Likewise.
65424         * modules/array-oset-tests (Makefile.am): Likewise.
65425         * modules/avltree-list-tests (Makefile.am): Likewise.
65426         * modules/avltree-oset-tests (Makefile.am): Likewise.
65427         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65428         * modules/carray-list-tests (Makefile.am): Likewise.
65429         * modules/dirname-tests (Makefile.am): Likewise.
65430         * modules/frexp-tests (Makefile.am): Likewise.
65431         * modules/isnanl-tests (Makefile.am): Likewise.
65432         * modules/linked-list-tests (Makefile.am): Likewise.
65433         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65434         * modules/lock-tests (Makefile.am): Likewise.
65435         * modules/rbtree-list-tests (Makefile.am): Likewise.
65436         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65437         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65438         * modules/tls-tests (Makefile.am): Likewise.
65439         * modules/tsearch-tests (Makefile.am): Likewise.
65440         * modules/xvasprintf-tests (Makefile.am): Likewise.
65441
65442         Fix fpurge for cygwin.
65443         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65444         value.
65445         * modules/fpurge-tests (Depends-on): Clean up trash.
65446
65447 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65448
65449         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65450
65451         * m4/autobuild.m4: Re-indent.
65452
65453 2007-04-13  Bruno Haible  <bruno@clisp.org>
65454
65455         * modules/fpurge-tests: New file.
65456         * tests/test-fpurge.c: New file.
65457
65458         * modules/fpurge: New file.
65459         * lib/fpurge.h: New file.
65460         * lib/fpurge.c: New file.
65461         * m4/fpurge.m4: New file.
65462
65463 2007-04-13  Bruno Haible  <bruno@clisp.org>
65464
65465         * modules/fbufmode-tests: New file.
65466         * tests/test-fbufmode.c: New file.
65467
65468         * modules/fbufmode: New file.
65469         * lib/fbufmode.h: New file.
65470         * lib/fbufmode.c: New file.
65471         * m4/fbufmode.m4: New file.
65472
65473 2007-04-13  Bruno Haible  <bruno@clisp.org>
65474
65475         * modules/fwritable-tests: New file.
65476         * tests/test-fwritable.c: New file.
65477
65478         * modules/fwritable: New file.
65479         * lib/fwritable.h: New file.
65480         * lib/fwritable.c: New file.
65481         * m4/fwritable.m4: New file.
65482
65483 2007-04-13  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/freadable-tests: New file.
65486         * tests/test-freadable.c: New file.
65487
65488         * modules/freadable: New file.
65489         * lib/freadable.h: New file.
65490         * lib/freadable.c: New file.
65491         * m4/freadable.m4: New file.
65492
65493 2007-04-13  Bruno Haible  <bruno@clisp.org>
65494
65495         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65496         MOSTLYCLEANFILES.
65497
65498 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65499
65500         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65501         gzip bootstrap.conf to avoid dragging in i18n machinery.
65502         (gnulib_tool_option): Use it.
65503
65504 2007-04-13  Bruno Haible  <bruno@clisp.org>
65505
65506         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65507         %F directives.
65508         * tests/test-vasprintf-posix.c (test_function): Likewise.
65509         * tests/test-snprintf-posix.h (test_function): Likewise.
65510         * tests/test-sprintf-posix.h (test_function): Likewise.
65511         * tests/test-fprintf-posix.h (test_function): Likewise.
65512         * tests/test-printf-posix.h (test_function): Likewise.
65513         * tests/test-fprintf-posix.out: Likewise.
65514
65515 2007-04-13  Bruno Haible  <bruno@clisp.org>
65516
65517         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65518         * modules/tls-tests (configure.ac): Likewise.
65519         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65520
65521 2007-04-13  Bruno Haible  <bruno@clisp.org>
65522
65523         * lib/tls.c (glthread_tls_get): Fix return type.
65524         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65525
65526 2007-04-12  Eric Blake  <ebb9@byu.net>
65527
65528         * modules/gettime (Depends-on): Remove gettime.
65529         Reported by Dmitry V. Levin.
65530
65531 2007-04-12  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/fflush (Include): Mention <stdio.h>.
65534         * modules/strtoimax (Include): Mention <inttypes.h>.
65535         * modules/strtoumax (Include): Likewise.
65536
65537 2007-04-12  Eric Blake  <ebb9@byu.net>
65538
65539         * .cvsignore: New file.
65540         * .gitignore: Likewise.
65541
65542 2007-04-12  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65545         not before, since $(LDADD) often contains libgnu.a.
65546         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65547         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65548         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65549         Needed on Cygwin.
65550
65551 2007-04-12  Eric Blake  <ebb9@byu.net>
65552
65553         Work around glibc's failure to flush stdin on fclose.
65554         * lib/closein.c (close_stdin): Flush stdin before closing.
65555
65556         Work around glibc's failure to reset seekable stdin on exit.
65557         * modules/closein: New module.
65558         * lib/closein.c: New file.
65559         * lib/closein.h: Likewise.
65560         * m4/closein.m4: Likewise.
65561         * MODULES.html.sh (File stream based Input/Output): Document it.
65562
65563 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65564
65565         * gnulib-tool: Rename generated 'autobuild' script to
65566         'do-autobuild' in --create-megatestdir output.
65567
65568         * doc/gnulib.texi (Build robot for gnulib): Fix.
65569
65570 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65571
65572         * modules/sysexits (Depends-on): Add absolute-header.
65573
65574 2007-04-12  Eric Blake  <ebb9@byu.net>
65575
65576         No need to preserve errno on success.
65577         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65578         Reported by Bruno Haible.
65579
65580 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65581
65582         * MODULES.html.sh (Support for maintaining and releasing
65583         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65584
65585 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65586
65587         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65588
65589 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65590
65591         * modules/autobuild: New module.
65592
65593         * m4/autobuild.m4: New file.
65594
65595 2007-04-11  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65598         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65611         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65612         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65614         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65615         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65617         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65618         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65620         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65621         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65623         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65624         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65625         Reported by Eric Blake.
65626
65627 2007-04-11  Bruno Haible  <bruno@clisp.org>
65628
65629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65630
65631 2007-04-10  Bruno Haible  <bruno@clisp.org>
65632
65633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65634         for NaN and Infinity. Needed on FreeBSD 6.1.
65635         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65636         regarding results for "%010a" of Infinity and NaN.
65637         * tests/test-vasprintf-posix.c (test_function): Likewise.
65638         * tests/test-snprintf-posix.h (test_function): Likewise.
65639         * tests/test-sprintf-posix.h (test_function): Likewise.
65640         * tests/test-fprintf-posix.h (test_function): Likewise.
65641         * tests/test-printf-posix.h (test_function): Likewise.
65642         * tests/test-fprintf-posix.out: Likewise.
65643
65644 2007-04-10  Bruno Haible  <bruno@clisp.org>
65645
65646         * modules/locale-tests: New file.
65647         * tests/test-locale.c: New file.
65648
65649         * modules/locale: New file.
65650         * lib/locale_.h: New file.
65651         * m4/locale_h.m4: New file.
65652
65653 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65654             Bruno Haible  <bruno@clisp.org>
65655
65656         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65657         be determined, test for availability of the copysignf, copysign,
65658         copysignl functions.
65659         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65660         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65661         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65662
65663 2007-04-09  Eric Blake  <ebb9@byu.net>
65664
65665         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65666         * modules/stdio (Makefile.am): Support fflush.
65667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65668         * modules/fflush: New file.
65669         * lib/fflush.c: Likewise.
65670         * m4/fflush.m4: Likewise.
65671         * modules/fflush-tests: New test.
65672         * tests/test-fflush.c: Likewise.
65673         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65674
65675 2007-04-06  Bruno Haible  <bruno@clisp.org>
65676
65677         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65678         (VASNPRINTF): Use signbit for faster determination whether to print a
65679         minus sign.
65680         * modules/vasnprintf (Files): Remove lib/float+.h.
65681         * modules/fprintf-posix (Depends-on): Add signbit.
65682         * modules/snprintf-posix (Depends-on): Likewise.
65683         * modules/sprintf-posix (Depends-on): Likewise.
65684         * modules/vasnprintf-posix (Depends-on): Likewise.
65685         * modules/vasprintf-posix (Depends-on): Likewise.
65686         * modules/vfprintf-posix (Depends-on): Likewise.
65687         * modules/vsnprintf-posix (Depends-on): Likewise.
65688         * modules/vsprintf-posix (Depends-on): Likewise.
65689
65690 2007-04-06  Bruno Haible  <bruno@clisp.org>
65691
65692         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65693         * tests/test-frexpl.c (main): Likewise.
65694         * tests/test-ldexpl.c (main): Likewise.
65695         * modules/frexp-tests (Depends-on): Add signbit.
65696         * modules/frexpl-tests (Depdends-on): Likewise.
65697         * modules/ldexpl-tests (Depdends-on): Likewise.
65698
65699 2007-04-06  Bruno Haible  <bruno@clisp.org>
65700
65701         * modules/signbit-tests: New file.
65702         * tests/test-signbit.c: New file.
65703
65704         * modules/signbit: New file.
65705         * lib/signbitf.c: New file.
65706         * lib/signbitd.c: New file.
65707         * lib/signbitl.c: New file.
65708         * m4/signbit.m4: New file.
65709         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65710         (signbit): New macro.
65711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65712         REPLACE_SIGNBIT.
65713         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65714         REPLACE_FREXPL into math.h.
65715
65716 2007-04-06  Bruno Haible  <bruno@clisp.org>
65717
65718         * modules/isnanf-nolibm-tests: New file.
65719         * tests/test-isnanf.c: New file.
65720
65721         * modules/isnanf-nolibm: New file.
65722         * lib/isnanf.h: New file.
65723         * lib/isnanf.c: New file.
65724         * lib/isnan.c: Consider the USE_FLOAT macro.
65725         * m4/isnanf.m4: New file.
65726
65727 2007-04-06  Bruno Haible  <bruno@clisp.org>
65728
65729         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65730         (Link): New section.
65731
65732         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65733
65734 2007-04-06  Bruno Haible  <bruno@clisp.org>
65735
65736         Assume the 'long double' type.
65737         * m4/longdouble.m4: Remove file.
65738         * config/srclist.txt: Don't mention longdouble.m4.
65739         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65740         * lib/float+.h: Likewise.
65741         * lib/frexp.c: Likewise.
65742         * lib/printf-args.h: Likewise.
65743         * lib/printf-args.c: Likewise.
65744         * lib/printf-frexp.c: Likewise.
65745         * lib/printf-parse.c: Likewise.
65746         * lib/vasnprintf.c: Likewise.
65747         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65748         * m4/intl.m4: Likewise.
65749         * m4/isnanl.m4: Likewise.
65750         * m4/printf.m4: Likewise.
65751         * m4/printf-frexpl.m4: Likewise.
65752         * m4/vasnprintf.m4: Likewise.
65753         * modules/allocsa (Files): Remove m4/longdouble.m4.
65754         * modules/gettext (Files): Likewise.
65755         * modules/relocatable-prog-wrapper (Files): Likewise.
65756         * modules/vasnprintf (Files): Likewise.
65757         * modules/isnanl (Files): Likewise.
65758         (Include): Simplify.
65759         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65760         (Include): Simplify.
65761         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65762         (Include): Simplify.
65763         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65764         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65765         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65766         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65767         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65769         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65771         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65772         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65773         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65774         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65775         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65776         * tests/test-isnanl.c: Likewise.
65777         * tests/test-snprintf-posix.h: Likewise.
65778         * tests/test-sprintf-posix.h: Likewise.
65779         * tests/test-vasnprintf-posix.c: Likewise.
65780         * tests/test-vasnprintf-posix2.c: Likewise.
65781         * tests/test-vasprintf-posix.c: Likewise.
65782
65783 2007-04-06  Bruno Haible  <bruno@clisp.org>
65784
65785         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65786         * lib/math_.h [__DECC]: Include the overridden include file through
65787         #include_next, outside the double-inclusion guard.
65788         * lib/stdio_.h [__DECC]: Likewise.
65789         * lib/stdlib_.h [__DECC]: Likewise.
65790         * lib/string_.h [__DECC]: Likewise.
65791         * lib/time_.h [__DECC]: Likewise.
65792         * lib/wchar_.h [__DECC]: Likewise.
65793         * lib/wctype_.h [__DECC]: Likewise.
65794         * lib/inttypes_.h [__DECC]: Likewise.
65795         Reported by Albert Chin <china@thewrittenword.com> in
65796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65797
65798 2007-04-04  Eric Blake  <ebb9@byu.net>
65799
65800         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65801         1.5.x.
65802
65803 2007-04-04  Bruno Haible  <bruno@clisp.org>
65804
65805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65806         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65807
65808 2007-04-04  Bruno Haible  <bruno@clisp.org>
65809
65810         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65811         results for "%010a" of Infinity and NaN.
65812         * tests/test-vasprintf-posix.c (test_function): Likewise.
65813         * tests/test-snprintf-posix.h (test_function): Likewise.
65814         * tests/test-sprintf-posix.h (test_function): Likewise.
65815         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65816         * tests/test-printf-posix.h (test_function): Likewise.
65817         * tests/test-fprintf-posix.out: Update.
65818         Needed for FreeBSD 6.1.
65819
65820 2007-04-04  Bruno Haible  <bruno@clisp.org>
65821
65822         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65823         directly used by the gnulib modules nor by gnulib-tool.
65824
65825 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65826
65827         * DEPENDENCIES: Give overall description of version dependency
65828         desirability.  Use more-typical names for apps.
65829         Add shell, coreutils, diffutils, grep, tar, gzip.
65830
65831 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65832
65833         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65834
65835 2007-04-04  Karl Berry  <karl@gnu.org>
65836
65837         * MODULES.html.sh (func_module): missing '.
65838
65839 2007-04-03  Bruno Haible  <bruno@clisp.org>
65840
65841         * modules/argmatch-tests (Makefile.am): New variable
65842         test_argmatch_LDADD.
65843         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65844         * modules/array-list-tests (Makefile.am): New variable
65845         test_array_list_LDADD.
65846         * modules/array-oset-tests (Makefile.am): New variable
65847         test_array_oset_LDADD.
65848         * modules/avltree-list-tests (Makefile.am): New variable
65849         test_avltree_list_LDADD.
65850         * modules/avltree-oset-tests (Makefile.am): New variable
65851         test_avltree_oset_LDADD.
65852         * modules/avltreehash-list-tests (Makefile.am): New variable
65853         test_avltreehash_list_LDADD.
65854         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65855         test_canonicalize_lgpl_LDADD.
65856         * modules/carray-list-tests (Makefile.am): New variable
65857         test_carray_list_LDADD.
65858         * modules/dirname-tests (Makefile.am): New variable
65859         test_dirname_LDADD.
65860         * modules/linked-list-tests (Makefile.am): New variable
65861         test_linked_list_LDADD.
65862         * modules/linkedhash-list-tests (Makefile.am): New variable
65863         test_linkedhash_list_LDADD.
65864         * modules/rbtree-list-tests (Makefile.am): New variable
65865         test_rbtree_list_LDADD.
65866         * modules/rbtree-oset-tests (Makefile.am): New variable
65867         test_rbtree_oset_LDADD.
65868         * modules/rbtreehash-list-tests (Makefile.am): New variable
65869         test_rbtreehash_list_LDADD.
65870         * modules/xvasprintf-tests (Makefile.am): New variable
65871         test_xvasprintf_LDADD.
65872         Reported by Eric Blake.
65873
65874 2007-04-03  Eric Blake  <ebb9@byu.net>
65875
65876         * DEPENDENCIES: Weaken m4 requirements.
65877
65878 2007-04-03  Bruno Haible  <bruno@clisp.org>
65879
65880         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65881         * modules/isnanl-tests (configure.ac): Likewise.
65882
65883 2007-04-03  Ben Pfaff  <blp@gnu.org>
65884
65885         * modules/iconv_open: Add $(srcdir)/ to source directory
65886         references in Makefile fragments that call gperf, to fix VPATH
65887         builds.
65888
65889 2007-04-03  Bruno Haible  <bruno@clisp.org>
65890
65891         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65892         * lib/ldexpl.c: Undo last change.
65893
65894 2007-04-03  Bruno Haible  <bruno@clisp.org>
65895
65896         * modules/printf-frexpl (Depends-on): Undo last change.
65897         (Files): Add m4/ldexpl.m4.
65898
65899 2007-04-03  Bruno Haible  <bruno@clisp.org>
65900
65901         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65902         * modules/isnanl (Link): New section.
65903
65904         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65905         * modules/frexp (Link): New section.
65906
65907         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65908         * modules/frexpl (Link): New section.
65909
65910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65911         * modules/ldexpl (Link): New section.
65912
65913 2007-04-03  Bruno Haible  <bruno@clisp.org>
65914
65915         * modules/TEMPLATE-EXTENDED: New file.
65916         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65917
65918 2007-04-03  Bruno Haible  <bruno@clisp.org>
65919
65920         * DEPENDENCIES: New file.
65921         Suggested by Simon Josefsson.
65922
65923 2007-04-03  Bruno Haible  <bruno@clisp.org>
65924
65925         * doc/gnulib.texi: Escape @.
65926
65927 2007-04-03  James Youngman  <jay@gnu.org>
65928         and Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65931         birthtime on all systems that have birthtime, not just those which
65932         use st_birthtimensec rather than st_birthtim.  Putting zero in
65933         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65934         that the birth time is not available for files on an NFS mount.
65935
65936 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65937
65938         * modules/memxor: Move back from crypto/, suggested by Bruno.
65939         * modules/crypto/hmac-sha1: Fix memxor dependency.
65940
65941         * modules/crypto/gc: Moved from ../.
65942
65943 2007-04-02  Eric Blake  <ebb9@byu.net>
65944
65945         * lib/ldexpl.c (includes): Avoid libm.
65946
65947         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65948
65949 2007-04-02  Bruno Haible  <bruno@clisp.org>
65950
65951         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65952         on IRIX.
65953
65954 2007-04-02  Bruno Haible  <bruno@clisp.org>
65955
65956         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65957         x86 or x86_64 platforms running MacOS X.
65958         Reported by Ryan Schmidt <@ryandesign.com>.
65959
65960 2007-04-02  Bruno Haible  <bruno@clisp.org>
65961
65962         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65963         i386.
65964
65965 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65966
65967         * modules/crypto/arcfour: Moved from ../.
65968         * modules/crypto/arcfour-tests: Moved from ../.
65969         * modules/crypto/arctwo: Moved from ../.
65970         * modules/crypto/arctwo-tests: Moved from ../.
65971         * modules/crypto/des: Moved from ../.
65972         * modules/crypto/des-tests: Moved from ../.
65973         * modules/crypto/gc-arcfour: Moved from ../.
65974         * modules/crypto/gc-arcfour-tests: Moved from ../.
65975         * modules/crypto/gc-arctwo: Moved from ../.
65976         * modules/crypto/gc-arctwo-tests: Moved from ../.
65977         * modules/crypto/gc-des: Moved from ../.
65978         * modules/crypto/gc-des-tests: Moved from ../.
65979         * modules/crypto/gc-hmac-md5: Moved from ../.
65980         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65981         * modules/crypto/gc-hmac-sha1: Moved from ../.
65982         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65983         * modules/crypto/gc-md2: Moved from ../.
65984         * modules/crypto/gc-md2-tests: Moved from ../.
65985         * modules/crypto/gc-md4: Moved from ../.
65986         * modules/crypto/gc-md4-tests: Moved from ../.
65987         * modules/crypto/gc-md5: Moved from ../.
65988         * modules/crypto/gc-md5-tests: Moved from ../.
65989         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65990         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65991         * modules/crypto/gc-random: Moved from ../.
65992         * modules/crypto/gc-rijndael: Moved from ../.
65993         * modules/crypto/gc-rijndael-tests: Moved from ../.
65994         * modules/crypto/gc-sha1: Moved from ../.
65995         * modules/crypto/gc-sha1-tests: Moved from ../.
65996         * modules/crypto/gc-tests: Moved from ../.
65997         * modules/crypto/hmac-md5: Moved from ../.
65998         * modules/crypto/hmac-md5-tests: Moved from ../.
65999         * modules/crypto/hmac-sha1: Moved from ../.
66000         * modules/crypto/hmac-sha1-tests: Moved from ../.
66001         * modules/crypto/md2: Moved from ../.
66002         * modules/crypto/md2-tests: Moved from ../.
66003         * modules/crypto/md4: Moved from ../.
66004         * modules/crypto/md4-tests: Moved from ../.
66005         * modules/crypto/md5: Moved from ../.
66006         * modules/crypto/md5-tests: Moved from ../.
66007         * modules/crypto/memxor: Moved from ../.
66008         * modules/crypto/rijndael: Moved from ../.
66009         * modules/crypto/rijndael-tests: Moved from ../.
66010         * modules/crypto/sha1: Moved from ../.
66011
66012 2007-03-30  James Youngman  <jay@gnu.org>
66013
66014         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66015         rename() to change the ctime of a file (because ctime is unaffected
66016         by rename on jfs2 on AIX 5.1).
66017         (main): Start by doing cleanup, in case a previous run failed leaving
66018         test files behind.
66019
66020 2007-03-31  Bruno Haible  <bruno@clisp.org>
66021
66022         Support old proprietary implementations of iconv.
66023         * modules/iconv_open: New file.
66024         * lib/iconv_.h: New file.
66025         * m4/iconv_h.m4: New file.
66026         * lib/iconv_open.c: New file.
66027         * lib/iconv_open-aix.gperf: New file.
66028         * lib/iconv_open-hpux.gperf: New file.
66029         * lib/iconv_open-irix.gperf: New file.
66030         * lib/iconv_open-osf.gperf: New file.
66031         * m4/iconv_open.m4: New file.
66032         * modules/linebreak (Depends-on): Add iconv_open.
66033         * modules/striconv (Depends-on): Likewise.
66034         * modules/striconveh (Depends-on): Likewise.
66035         * modules/unicodeio (Depends-on): Likewise.
66036         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66037         (iconv_t)(-1).
66038         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66039         conversion if cd is (iconv_t)(-1).
66040         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66041         is not possible.
66042
66043 2007-03-31  Bruno Haible  <bruno@clisp.org>
66044
66045         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66046         work on Solaris either. Protect also second use of "autodetect_jp".
66047
66048 2007-03-31  Bruno Haible  <bruno@clisp.org>
66049
66050         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66051         the function is not present.
66052
66053 2007-03-31  Bruno Haible  <bruno@clisp.org>
66054
66055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66056         the function is not present.
66057
66058 2007-03-31  Bruno Haible  <bruno@clisp.org>
66059
66060         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66061         a bug in HP-UX iconv_open().
66062
66063 2007-03-31  Bruno Haible  <bruno@clisp.org>
66064
66065         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66066         (Mathematics <math.h>): New section, add fpieee.
66067         (Input/output <stdio.h>): Add fseterr.
66068         (Mathematics <math.h>): New section, add printf-frexp.
66069         (Container data structures): Add sublist.
66070         (Core language properties): Add fpucw, inline.
66071         (Functions for greatest-width integer types <inttypes.h>): Add
66072         imaxabs, imaxdiv, inttypes.
66073         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66074         isnanl-nolibm, ldexp.
66075         (Mathematics <math.h>): New section, add printf-frexpl.
66076         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66077         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66078         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66079         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66080         (Unicode string functions): Add unistr/u*-mbtoucr.
66081         (Java): Add javacomp-script, javaexec-script.
66082         (C#): Add csharpcomp-script, csharpexec-script.
66083         (Support for building libraries and executables): Add havelib,
66084         relocatable-*.
66085         (Support for maintaining and releasing projects): Renamed from
66086         'Support for maintaining and release projects'. Add announce-gen.
66087
66088 2007-03-31  Bruno Haible  <bruno@clisp.org>
66089
66090         * README: Talk primarily about git.
66091         (git and CVS): Renamed from CVS.
66092         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66093         gnulib is available through git.
66094         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66095
66096 2007-03-30  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66099         * lib/poll_.h: Likewise.
66100         * lib/stat_.h: Likewise.
66101         * lib/sys_time_.h: Likewise.
66102         * lib/sysexit_.h: Likewise.
66103         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66104         * lib/stdbool_.h: Likewise.
66105         * lib/byteswap_.h: Add double-inclusion guard.
66106
66107 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66108
66109         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66110
66111 2007-03-30  Karl Berry  <karl@gnu.org>
66112
66113         * config/srclist-update: double space after USA in the license
66114         substitution, since that's how it's usually (?) written.
66115
66116 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66117
66118         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66119         reported by Bruno Haible.
66120
66121 2007-03-29  Bruno Haible  <bruno@clisp.org>
66122
66123         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66124         a bug in AIX iconv().
66125
66126 2007-03-29  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/ldexpl-tests: New file.
66129         * tests/test-ldexpl.c: New file.
66130
66131 2007-03-29  Bruno Haible  <bruno@clisp.org>
66132
66133         * lib/ldexpl.c: Include fpucw.h.
66134         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66135         multiplication.
66136         * modules/ldexpl (Depends-on): Add fpucw.
66137
66138 2007-03-29  Bruno Haible  <bruno@clisp.org>
66139
66140         * modules/ldexpl: New file.
66141         * m4/ldexpl.m4: New file.
66142         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66143         set.
66144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66145         REPLACE_LDEXPL.
66146         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66147         REPLACE_LDEXPL.
66148         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66149         gl_FUNC_LDEXPL_WORKS.
66150         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66151         * modules/mathl (Files): Remove lib/ldexpl.c.
66152         (Depends-on): Add ldexpl.
66153
66154 2007-03-29  Bruno Haible  <bruno@clisp.org>
66155
66156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66157
66158 2007-03-29  Bruno Haible  <bruno@clisp.org>
66159
66160         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66161         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66162         and possibly also HP-UX.
66163         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66164         work on AIX, IRIX, HP-UX, OSF/1.
66165         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66166         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66167         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66168         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66169         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66170         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66171
66172 2007-03-29  Bruno Haible  <bruno@clisp.org>
66173
66174         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66175
66176 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66177
66178         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66179         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66180
66181 2007-03-29  Eric Blake  <ebb9@byu.net>
66182
66183         * lib/acl-internal.h: Remove redundant include.
66184         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66185         Cygwin when a file is locked.
66186
66187 2007-03-29  Bruno Haible  <bruno@clisp.org>
66188
66189         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66190         file.
66191         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66192
66193 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66196         try to remove a parent directory if the child couldn't be removed
66197         (except for the first rmdir, which could fail because the child
66198         doesn't exist).  Problem reported by Jeff Blaine in
66199         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66200
66201 2007-03-28  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/striconveh.c (utf8conv_carefully): New function.
66204         (mem_cd_iconveh_internal): Invoke it.
66205
66206 2007-03-28  Bruno Haible  <bruno@clisp.org>
66207
66208         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66209         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66210         input.
66211         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66212         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66213         unistr/u8-uctomb.
66214
66215 2007-03-28  Bruno Haible  <bruno@clisp.org>
66216
66217         * modules/unistr/u8-mbtoucr: New file.
66218         * lib/unistr/u8-mbtoucr.c: New file.
66219         * modules/unistr/u16-mbtoucr: New file.
66220         * lib/unistr/u16-mbtoucr.c: New file.
66221         * modules/unistr/u16-mbtoucr: New file.
66222         * lib/unistr/u16-mbtoucr.c: New file.
66223         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66224
66225 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66226             Bruno Haible  <bruno@clisp.org>
66227
66228         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66229         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66230         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66231
66232         * m4/stdio_h.m4: Add stubs for vasprintf too.
66233
66234         * modules/stdio: Support vasprintf in sed command.
66235
66236         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66237         vasprintf.h.  Add stdio module indicator.
66238
66239         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66240         vasprintf.h.
66241
66242         * lib/vasprintf.h: File removed.
66243
66244         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66245         * lib/vasprintf.c: Ditto.
66246         * lib/xvasprintf.c: Ditto.
66247         * tests/test-vasprintf-posix.c: Ditto.
66248         * tests/test-vasprintf.c: Ditto.
66249
66250 2007-03-27  Bruno Haible  <bruno@clisp.org>
66251
66252         Make vasnprintf multithread-safe.
66253         * lib/vasnprintf.c (decimal_point_char): New function.
66254         (VASNPRINTF): Use it.
66255         Suggested by Simon Josefsson.
66256
66257 2007-03-27  Eric Blake  <ebb9@byu.net>
66258
66259         Support sub-second birthtime on cygwin.
66260         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66261         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66262         (get_stat_birthtime): Also work with st_birthtim.
66263
66264 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66267         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66268         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66269         (get_stat_birthtime_ns): Simplify compile-time tests.
66270         (get_stat_birthtime): Change the API to look like
66271         get_stat_mtime etc., except return a negative tv_nsec on error.
66272         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66273         Don't check for "spare" fields.
66274         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66275         or for struct stat.st_birthtime, as these tests aren't used.
66276         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66277
66278 2007-03-27  Bruno Haible  <bruno@clisp.org>
66279
66280         * lib/stat-time.h: Include <sys/stat.h>.
66281
66282 2007-03-27  James Youngman  <jay@gnu.org>
66283
66284         * lib/stat-time.h (get_stat_birthtime): New function for
66285           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66286         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66287           and its variants.
66288         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66289         * modules/stat-time-test: New file.
66290         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66291
66292 2007-03-26  Bruno Haible  <bruno@clisp.org>
66293
66294         Better support of signalling NaNs.
66295         * lib/atanl.c: Include isnanl.h.
66296         (atanl): Perform test for NaN at the beginning of the function and
66297         through a call to isnanl.
66298         * lib/cosl.c: Include isnanl.h.
66299         (cosl): Perform test for NaN at the beginning of the function and
66300         through a call to isnanl.
66301         * lib/ldexpl.c: Include isnanl.h.
66302         (ldexpl): Perform test for NaN through a call to isnanl.
66303         * lib/logl.c: Include isnanl.h.
66304         (logl): Perform test for NaN at the beginning of the function and
66305         through a call to isnanl.
66306         * lib/sinl.c: Include isnanl.h.
66307         (sinl): Perform test for NaN at the beginning of the function and
66308         through a call to isnanl.
66309         * lib/sqrtl.c: Include isnanl.h.
66310         (sqrtl): Perform test for NaN at the beginning of the function and
66311         through a call to isnanl.
66312         * lib/tanl.c: Include isnanl.h.
66313         (tanl): Perform test for NaN at the beginning of the function and
66314         through a call to isnanl.
66315         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66316         * modules/mathl (Depends-on): Add isnanl.
66317
66318 2007-03-26  Eric Blake  <ebb9@byu.net>
66319
66320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66321         regression in logic sense of previous patch.
66322
66323 2007-03-26  Bruno Haible  <bruno@clisp.org>
66324
66325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66326         unportable shell command "if ! ...".
66327         Reported by Ralf Wildenhues.
66328
66329 2007-03-25  Bruno Haible  <bruno@clisp.org>
66330
66331         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66332         <sysexits.h> file, and only add EX_CONFIG.
66333         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66334         absolute file name and whether it is sufficient. Substitute also
66335         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66336         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66337         ABSOLUTE_SYSEXITS_H into sysexits.h.
66338
66339 2007-03-25  Bruno Haible  <bruno@clisp.org>
66340
66341         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66342         hints is NULL.
66343
66344 2007-03-25  Bruno Haible  <bruno@clisp.org>
66345
66346         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66347         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66348
66349 2007-03-25  Bruno Haible  <bruno@clisp.org>
66350
66351         * lib/vasnprintf.c: Include langinfo.h.
66352         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66353         multithread-safe.
66354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66363         Reported by Simon Josefsson.
66364
66365 2007-03-25  Bruno Haible  <bruno@clisp.org>
66366
66367         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66368         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66369         * modules/vasnprintf (Depends-on): Add stdint.
66370
66371 2007-03-25  Bruno Haible  <bruno@clisp.org>
66372
66373         * modules/fpieee: New file.
66374         * m4/fpieee.m4: New file.
66375         * modules/isnan-nolibm (Depends-on): Add fpieee.
66376         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66377         * modules/isnanl (Depends-on): Add fpieee.
66378
66379 2007-03-25  Bruno Haible  <bruno@clisp.org>
66380
66381         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66382
66383 2007-03-25  Bruno Haible  <bruno@clisp.org>
66384
66385         Avoid test failures on IRIX 6.5.
66386         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66387         (main): Use it.
66388         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66389         macros.
66390         (main): Use them.
66391
66392 2007-03-25  Bruno Haible  <bruno@clisp.org>
66393
66394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66395         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66396         exists but doesn't work.
66397         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66398         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66400         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66401         math.h.
66402
66403 2007-03-25  Bruno Haible  <bruno@clisp.org>
66404
66405         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66406         returns inf. Needed on IRIX 6.5.
66407
66408 2007-03-25  Bruno Haible  <bruno@clisp.org>
66409
66410         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66411         (main): Use isnanl instead of x != x idiom.
66412         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66413
66414         * tests/test-frexp.c: Include isnan.h.
66415         (main): Use isnan instead of x != x idiom.
66416         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66417
66418 2007-03-25  Bruno Haible  <bruno@clisp.org>
66419
66420         * tests/test-frexp.c (NaN): New function/macro.
66421         (main): Use it instead of 0.0 / 0.0.
66422         * tests/test-isnan.c (NaN): New function/macro.
66423         (main): Use it instead of 0.0 / 0.0.
66424         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66425         (test_function): Use it instead of 0.0 / 0.0.
66426         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66427         (test_function): Use it instead of 0.0 / 0.0.
66428         * tests/test-snprintf-posix.h (NaN): New function/macro.
66429         (test_function): Use it instead of 0.0 / 0.0.
66430         * tests/test-sprintf-posix.h (NaN): New function/macro.
66431         (test_function): Use it instead of 0.0 / 0.0.
66432         * tests/test-fprintf-posix.h (NaN): New function/macro.
66433         (test_function): Use it instead of 0.0 / 0.0.
66434         * tests/test-printf-posix.h (NaN): New function/macro.
66435         (test_function): Use it instead of 0.0 / 0.0.
66436
66437         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66438
66439 2007-03-25  Bruno Haible  <bruno@clisp.org>
66440
66441         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66442
66443 2007-03-25  Bruno Haible  <bruno@clisp.org>
66444
66445         * lib/regexec.c (merge_state_with_log): Make static.
66446
66447 2007-03-25  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/trigl.c (kernel_rem_pio2): Make static.
66450
66451 2007-03-25  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/sincosl.c (sincosl_table): Make static.
66454
66455 2007-03-25  Bruno Haible  <bruno@clisp.org>
66456
66457         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66458         if the compiler does not support C99.
66459
66460 2007-03-25  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/time (Makefile.am): Ensure all rule action lines start with a
66463         tab.
66464
66465 2007-03-24  Bruno Haible  <bruno@clisp.org>
66466
66467         * modules/tsearch-tests: New file.
66468         * tests/test-tsearch.sh: New file.
66469         * tests/test-tsearch.c: New file, mostly copied from glibc.
66470
66471         * modules/search-tests: New file.
66472         * tests/test-search.c: New file.
66473
66474         * modules/search: New file.
66475         * lib/search_.h: New file, incorporating lib/tsearch.h.
66476         * m4/search_h.m4: New file.
66477         * lib/tsearch.h: Remove file.
66478         * lib/tsearch.c: Include search.h instead of tsearch.h.
66479         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66480         HAVE_TSEARCH.
66481         * modules/tsearch (Files): Remove lib/tsearch.h.
66482         (Depends-on): Add search.
66483         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66484         (Include): Change tsearch.h into search.h.
66485
66486 2007-03-24  Bruno Haible  <bruno@clisp.org>
66487
66488         * modules/fpucw: New file.
66489         * lib/fpucw.h: New file.
66490         * lib/frexp.c: Include fpucw.h.
66491         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66492         (FUNC): Use them.
66493         * lib/printf-frexp.c: Include fpucw.h.
66494         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66495         (FUNC): Use them.
66496         * lib/vasnprintf.c: Include fpucw.h.
66497         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66498         'long double' calculations.
66499         * tests/test-frexpl.c: Include fpucw.h.
66500         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66501         * tests/test-printf-frexpl.c: Include fpucw.h.
66502         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66503         * modules/frexpl (Depends-on): Add fpucw.
66504         * modules/printf-frexpl (Depends-on): Likewise.
66505         * modules/fprintf-posix (Depends-on): Likewise.
66506         * modules/snprintf-posix (Depends-on): Likewise.
66507         * modules/sprintf-posix (Depends-on): Likewise.
66508         * modules/vasnprintf-posix (Depends-on): Likewise.
66509         * modules/vasprintf-posix (Depends-on): Likewise.
66510         * modules/vfprintf-posix (Depends-on): Likewise.
66511         * modules/vsnprintf-posix (Depends-on): Likewise.
66512         * modules/vsprintf-posix (Depends-on): Likewise.
66513         * modules/frexpl-tests (Depends-on): Likewise.
66514         * modules/printf-frexpl-tests (Depends-on): Likewise.
66515
66516 2007-03-24  Bruno Haible  <bruno@clisp.org>
66517
66518         * lib/float+.h: New file.
66519         * lib/isnan.c: Include float+.h.
66520         (SIZE): New macro.
66521         (FUNC): Compare only SIZE bytes of the value.
66522         * lib/vasnprintf.c: Include float+.h.
66523         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66524         SIZEOF_LDBL or SIZEOF_DBL bytes.
66525         * modules/isnan-nolibm (Files): Add lib/float+.h.
66526         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66527         * modules/isnanl (Files): Add lib/float+.h.
66528         * modules/vasnprintf (Files): Add lib/float+.h.
66529
66530 2007-03-24  Bruno Haible  <bruno@clisp.org>
66531
66532         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66533         include isnanl-nolibm.h.
66534
66535 2007-03-24  Bruno Haible  <bruno@clisp.org>
66536
66537         * tests/test-read-file.c (main): Don't produce spurious output for
66538         expected situations. Make the test fail if it encountered unexpected
66539         results.
66540
66541 2007-03-24  Bruno Haible  <bruno@clisp.org>
66542
66543         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66544         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66545
66546 2007-03-24  Bruno Haible  <bruno@clisp.org>
66547
66548         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66549
66550 2007-03-24  Bruno Haible  <bruno@clisp.org>
66551
66552         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66553         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66554
66555         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66556         * modules/utf8-ucs4: Turn into a symbolic link to module
66557         unistr/u8-mbtouc.
66558
66559         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66560         utf8-ucs4-unsafe.
66561         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66562         unistr/u8-mbtouc-unsafe.
66563
66564         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66565         * modules/utf16-ucs4: Turn into a symbolic link to module
66566         unistr/u16-mbtouc.
66567
66568         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66569         utf16-ucs4-unsafe.
66570         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66571         unistr/u16-mbtouc-unsafe.
66572
66573         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66574         * modules/ucs4-utf8: Turn into a symbolic link to module
66575         unistr/u8-ubtomb.
66576
66577         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66578         * modules/ucs4-utf16: Turn into a symbolic link to module
66579         unistr/u16-ubtomb.
66580
66581 2007-03-24  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66584         Enable the function only if HAVE_INLINE.
66585         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66586         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66587         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66588         Enable the function only if HAVE_INLINE.
66589         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66590         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66591         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66592         Enable the function only if HAVE_INLINE.
66593         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66594         Enable the function only if HAVE_INLINE.
66595         * modules/utf8-ucs4: Update.
66596         * modules/utf8-ucs4-unsafe: Update.
66597         * modules/utf16-ucs4: Update.
66598         * modules/utf16-ucs4-unsafe: Update.
66599         * modules/ucs4-utf8: Update.
66600         * modules/ucs4-utf16: Update.
66601
66602 2007-03-24  Bruno Haible  <bruno@clisp.org>
66603
66604         * lib/utf8-ucs4.h: Remove file.
66605         * lib/utf8-ucs4-unsafe.h: Remove file.
66606         * lib/utf16-ucs4.h: Remove file.
66607         * lib/utf16-ucs4-unsafe.h: Remove file.
66608         * lib/ucs4-utf8.h: Remove file.
66609         * lib/ucs4-utf16.h: Remove file.
66610         * lib/unistr.h: Include their previous contents.
66611         * m4/utf-ucs4.m4: Remove file.
66612         * m4/ucs4-utf.m4: Remove file.
66613         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66614         (Depends-on): Add unistr/base.
66615         (configure.ac): Remove gl_UTF_UCS4.
66616         (Makefile.am): Update.
66617         (Include): Change to unistr.h.
66618         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66619         (Depends-on): Add unistr/base.
66620         (configure.ac): Remove gl_UTF_UCS4.
66621         (Makefile.am): Update.
66622         (Include): Change to unistr.h.
66623         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66624         (Depends-on): Add unistr/base.
66625         (configure.ac): Remove gl_UTF_UCS4.
66626         (Makefile.am): Update.
66627         (Include): Change to unistr.h.
66628         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66629         (Depends-on): Add unistr/base.
66630         (configure.ac): Remove gl_UTF_UCS4.
66631         (Makefile.am): Update.
66632         (Include): Change to unistr.h.
66633         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66634         (Depends-on): Add unistr/base.
66635         (configure.ac): Remove gl_UCS4_UTF.
66636         (Makefile.am): Update.
66637         (Include): Change to unistr.h.
66638         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66639         (Depends-on): Add unistr/base.
66640         (configure.ac): Remove gl_UCS4_UTF.
66641         (Makefile.am): Update.
66642         (Include): Change to unistr.h.
66643         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66644         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66645         utf8-ucs4-unsafe.h.
66646         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66647         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66648         utf16-ucs4-unsafe.h.
66649         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66650         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66651         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66652         * lib/unistr/u8-strchr.c: Likewise.
66653         * lib/unistr/u8-strrchr.c: Likewise.
66654         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66655         * lib/unistr/u16-strchr.c: Likewise.
66656         * lib/unistr/u16-strrchr.c: Likewise.
66657         * lib/striconveh.c: Update.
66658         * lib/linebreak.c: Update.
66659
66660 2007-03-24  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66663         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66664
66665 2007-03-22  Bruno Haible  <bruno@clisp.org>
66666
66667         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66668
66669 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * MODULES.html.sh (File system functions): New module write-any-file.
66672         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66673         * m4/write-any-file.m4: New files.
66674
66675 2007-03-23  Eric Blake  <ebb9@byu.net>
66676
66677         * gnulib-tool: Rearrange space-tab sequences, since some editors
66678         like to eat them.
66679
66680 2007-03-23  Eric Blake  <ebb9@byu.net>
66681
66682         * lib/version-etc.c (version_etc_va): Update license wording to
66683         be more concise.  Recommended by Richard Stallman.
66684
66685 2007-03-22  Bruno Haible  <bruno@clisp.org>
66686
66687         * lib/poll.c (MSG_PEEK): New fallback definition.
66688
66689 2007-03-22  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66692         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66693         (main): Update.
66694         Fixes a compilation error on BeOS.
66695
66696 2007-03-22  Bruno Haible  <bruno@clisp.org>
66697
66698         * modules/frexpl-tests: New file.
66699         * tests/test-frexpl.c: New file.
66700
66701         * modules/frexpl: New file.
66702         * m4/frexpl.m4: New file.
66703         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66704         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66706         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66707         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66708         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66709
66710 2007-03-22  Bruno Haible  <bruno@clisp.org>
66711
66712         * lib/frexpl.c: Share code with lib/frexp.c.
66713         * modules/mathl (Files): Add lib/frexp.c.
66714         (Depends-on): Add isnanl-nolibm.
66715
66716 2007-03-22  Bruno Haible  <bruno@clisp.org>
66717
66718         * modules/printf-frexp (Files): Add m4/frexp.m4.
66719         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66720         only if the found frexp function actually works.
66721
66722 2007-03-22  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/frexp.c: Remove older implementation that uses divisions.
66725
66726 2007-03-21  Bruno Haible  <bruno@clisp.org>
66727
66728         * modules/frexp-tests: New file.
66729         * tests/test-frexp.c: New file.
66730
66731         * modules/frexp: New file.
66732         * lib/frexp.c: New file.
66733         * m4/frexp.m4: New file.
66734         * lib/math_.h (frexp): New declaration.
66735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66736         REPLACE_FREXP.
66737         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66738
66739 2007-03-21  Bruno Haible  <bruno@clisp.org>
66740
66741         * modules/isnanl-tests: New file.
66742         * tests/test-isnanl.c: New file.
66743
66744         * modules/isnanl: New file.
66745         * lib/isnanl.h: New file.
66746         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66747         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66748         gl_FUNC_ISNANL_WORKS.
66749         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66750         New macros.
66751
66752 2007-03-21  Bruno Haible  <bruno@clisp.org>
66753
66754         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66755         lib/isnanl.h.
66756         (Include): Update.
66757         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66758         * lib/vasnprintf.c: Update.
66759         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66760         tests/test-isnanl.h, remove tests/test-isnanl.c.
66761         (Makefile.am): Update.
66762         * tests/test-isnanl-nolibm.c: New file.
66763         * tests/test-isnanl.h: New file.
66764         * tests/test-isnanl.c: Remove file.
66765
66766 2007-03-21  Jim Meyering  <jim@meyering.net>
66767
66768         When trying to open ".", treat ESTALE like EACCES.
66769         * lib/savewd.c (savewd_save): Resort to forking not just upon
66770         failure with EACCES, but also when errno is ESTALE.
66771
66772 2007-03-20  Bruno Haible  <bruno@clisp.org>
66773
66774         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66775         Needed on AIX 5.1. Reported by Matthew Woehlke.
66776
66777 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         Suggestions by Bruno Haible:
66780         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66781         our own.
66782         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66783         * modules/acl (Depends-on): Add gettext.
66784
66785 2007-03-19  Bruno Haible  <bruno@clisp.org>
66786
66787         * modules/iconvme: Remove file.
66788         * lib/iconvme.h: Remove file.
66789         * lib/iconvme.c: Remove file.
66790         * m4/iconvme.m4: Remove file.
66791
66792 2007-03-19  Bruno Haible  <bruno@clisp.org>
66793
66794         * doc/relocatable-maint.texi: Break long shell script line.
66795         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66796
66797 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66800         handle file_has_acl.
66801         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66802         * lib/acl.c: Move header inclusions and related macro defns into
66803         lib/acl-internal.h.
66804         (S_ISLNK): Remove defn, since that's now done for us.
66805         (file_has_acl): Move to lib/file-has-acl.c.
66806         Call acl_trivial if available.  This is the crucial part of the fix.
66807         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66808         shared within the library.  Rewrite a bit, partly to make it compatible
66809         with the GNU coding style.
66810         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66811         Remove unnecessary double-quotes.
66812         Don't test for acl_to_text; the build will catch that.
66813         Replace acl_entries if it doesn't exist and it is needed.
66814         Check for -lsec and acl_trivial (as used on Solaris 10).
66815         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66816         lib/file-has-acl.c.
66817         (Depends-on): Add sys_stat, for S_ISLNK.
66818
66819 2007-03-19  Ben Pfaff  <blp@gnu.org>
66820
66821         * doc/gnulib.texi: Fix typos.
66822         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66823
66824 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66825
66826         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66827         If size is zero here, buf must be zero.
66828
66829 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66830
66831         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66832         <bruno@clisp.org>.
66833
66834 2007-03-18  Bruno Haible  <bruno@clisp.org>
66835
66836         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66837         Suggested by Eric Blake.
66838
66839 2007-03-18  Ben Pfaff  <blp@gnu.org>
66840
66841         * doc/relocatable.texi: Recommend using as prefix a directory
66842         that does not exist and will never be created.  Based on
66843         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66844         and others.
66845
66846 2007-03-17  Bruno Haible  <bruno@clisp.org>
66847
66848         * lib/fchownat.c: Include lchown.h.
66849
66850 2007-03-17  Bruno Haible  <bruno@clisp.org>
66851
66852         Fix endless loop when the given allocated size was > INT_MAX.
66853         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66854         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66855         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66856         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66857         * lib/sprintf.c (sprintf): Likewise.
66858
66859 2007-03-17  Bruno Haible  <bruno@clisp.org>
66860
66861         * tests/test-argp-2.sh (func_compare): Output a context diff.
66862
66863 2007-03-17  Bruno Haible  <bruno@clisp.org>
66864
66865         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66866         locale's decimal-point character.
66867
66868 2007-03-17  Bruno Haible  <bruno@clisp.org>
66869
66870         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66871         before comparing it. Needed because on some platforms (e.g. x86) a
66872         'long double' occupies less bytes than sizeof (long double).
66873
66874 2007-03-17  Bruno Haible  <bruno@clisp.org>
66875
66876         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66877         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66878         * tests/test-getaddrinfo.c (simple): Likewise.
66879         * tests/test-read-file.c (main): Likewise.
66880
66881 2007-03-17  Bruno Haible  <bruno@clisp.org>
66882
66883         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66884
66885 2007-03-17  Bruno Haible  <bruno@clisp.org>
66886
66887         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66888         unused variable.
66889
66890 2007-03-17  Bruno Haible  <bruno@clisp.org>
66891
66892         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66893         * tests/test-c-strncasecmp.c: Likewise.
66894
66895 2007-03-17  Bruno Haible  <bruno@clisp.org>
66896
66897         * modules/stdlib (Depends-on): Add unistd.
66898         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66899         Needed for MacOS X 10.3.
66900
66901 2007-03-17  Bruno Haible  <bruno@clisp.org>
66902
66903         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66904
66905 2007-03-17  Bruno Haible  <bruno@clisp.org>
66906
66907         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66908
66909 2007-03-17  Bruno Haible  <bruno@clisp.org>
66910
66911         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66912         to reflect files copied from gnulib (with or without modifications).
66913         Suggested by Jim Meyering.
66914
66915 2007-03-17  Eric Blake  <ebb9@byu.net>
66916
66917         * NEWS: Document stdlib change from 2007-02-18.
66918
66919 2007-03-17  Jim Meyering  <jim@meyering.net>
66920
66921         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66922         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66923         someone uses a name containing shell meta-characters.
66924         Reported by Alfred M. Szmidt.
66925
66926         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66927
66928 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66929
66930         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66931         and copy gettext configuration files only if configure.ac contains
66932         a use of AM_GNU_GETTEXT_VERSION.
66933
66934 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66935
66936         * build-aux/bootstrap (gnulib_name): New variable.
66937         (gnulib_tool_options): Use it.
66938
66939 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66940
66941         * tests/test-des.c: Use new namespace.
66942
66943 2007-03-15  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66946         Reported by James Youngman <jay@gnu.org>.
66947
66948 2007-03-15  Bruno Haible  <bruno@clisp.org>
66949
66950         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66951         declared prototype. Needed with cc on OSF/1 5.1.
66952
66953 2007-03-15  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66956         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66957         (struct gl_list_implementation): Add dispose_fn argument to the
66958         'create_empty', 'create' methods.
66959         (struct gl_list_impl_base): Add field 'dispose_fn'.
66960         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66961         argument.
66962         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66963         dispose_fn argument.
66964         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66965         dispose_fn on the dropped values.
66966         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66967         dispose_fn argument.
66968         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66969         dropped values.
66970         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66971         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66972         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66973         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66974         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66975         argument.
66976         (gl_tree_list_free): Call dispose_fn on the dropped values.
66977         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66978         the dropped values.
66979         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66980         Add dispose_fn argument.
66981         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66982         Call dispose_fn on the dropped values.
66983         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66984         Add dispose_fn argument.
66985         (gl_sublist_create): Initialize the 'dispose_fn' field.
66986         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66987         * tests/test-array_list.c (main): Update.
66988         * tests/test-carray_list.c (main): Update.
66989         * tests/test-avltree_list.c (main): Update.
66990         * tests/test-rbtree_list.c (main): Update.
66991         * tests/test-avltreehash_list.c (main): Update.
66992         * tests/test-rbtreehash_list.c (main): Update.
66993         * tests/test-linked_list.c (main): Update.
66994         * tests/test-linkedhash_list.c (main): Update.
66995         * tests/test-array_oset.c (main): Update.
66996
66997 2007-03-15  Bruno Haible  <bruno@clisp.org>
66998
66999         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67000         (gl_oset_create_empty): Add dispose_fn argument.
67001         (struct gl_oset_implementation): Add dispose_fn argument to
67002         'create_empty' method.
67003         (struct gl_oset_impl_base): Add dispose_fn field.
67004         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67005         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67006         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67007         values.
67008         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67009         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67010         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67011         dropped value.
67012         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67013         dropped value.
67014         * tests/test-array_oset.c (main): Update.
67015         * tests/test-avltree_oset.c (main): Update.
67016         * tests/test-rbtree_oset.c (main): Update.
67017         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67018
67019 2007-03-13  Bruno Haible  <bruno@clisp.org>
67020
67021         * tests/test-stdbool.c (i): Update after last patch.
67022
67023 2007-03-12  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67026         the iswprint macro. Needed on Solaris 2.5.1.
67027
67028 2007-03-12  Bruno Haible  <bruno@clisp.org>
67029
67030         * tests/test-printf-frexp.c (main): Declare x as volatile.
67031
67032 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67033
67034         * doc/gnulib.texi (Build robot for gnulib): New section.
67035
67036 2007-03-12  Jim Meyering  <jim@meyering.net>
67037
67038         * build-aux/bootstrap: New file.
67039         * build-aux/bootstrap.conf: New file, from coreutils.
67040
67041 2007-03-11  Bruno Haible  <bruno@clisp.org>
67042
67043         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67044
67045 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67046
67047         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67048         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67049         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67050
67051 2007-03-11  Bruno Haible  <bruno@clisp.org>
67052
67053         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67054         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67055
67056 2007-03-11  Bruno Haible  <bruno@clisp.org>
67057
67058         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67059         formula. Needed for SunPRO C 5.0.
67060
67061 2007-03-11  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/long-options (Depends-on): Add getopt.
67064
67065 2007-03-11  Bruno Haible  <bruno@clisp.org>
67066
67067         * modules/modechange (Depends-on): Add stdbool.
67068
67069 2007-03-11  Bruno Haible  <bruno@clisp.org>
67070
67071         * modules/i-ring (Depends-on): Add stdbool.
67072
67073 2007-03-11  Bruno Haible  <bruno@clisp.org>
67074
67075         * modules/gc-des (Depends-on): Add stdbool.
67076
67077 2007-03-11  Bruno Haible  <bruno@clisp.org>
67078
67079         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67080
67081 2007-03-11  Bruno Haible  <bruno@clisp.org>
67082
67083         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67084
67085 2007-03-11  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67088
67089 2007-03-11  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/vasnprintf.c (sprintf): Undefine.
67092
67093 2007-03-11  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67096         initializers in SunPRO C and Compaq C compilers.
67097
67098 2007-03-11  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67101         decrementing code ANSI C compliant.
67102
67103 2007-03-11  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67106         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67107
67108 2007-03-11  Bruno Haible  <bruno@clisp.org>
67109
67110         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67111         <stdbool.h> substitute doesn't pass.
67112
67113 2007-03-11  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67116
67117 2007-03-11  Bruno Haible  <bruno@clisp.org>
67118
67119         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67120         script, for submission to autobuild.josefsson.org.
67121
67122 2007-03-10  Bruno Haible  <bruno@clisp.org>
67123
67124         * modules/canonicalize-lgpl-tests: New file.
67125         * tests/test-canonicalize-lgpl.sh: New file.
67126         * tests/test-canonicalize-lgpl.c: New file.
67127
67128         * modules/c-strcase-tests: New file.
67129         * tests/test-c-strcase.sh: New file.
67130         * tests/test-c-strcasecmp.c: New file.
67131         * tests/test-c-strncasecmp.c: New file.
67132
67133         * modules/atexit-tests: New file.
67134         * tests/test-atexit.sh: New file.
67135         * tests/test-atexit.c: New file.
67136
67137 2007-03-10  Bruno Haible  <bruno@clisp.org>
67138
67139         * tests/test-binary-io.sh: Use temporary filenames that are not so
67140         likely to clash with those of other tests (in a parallel make).
67141         * tests/test-binary-io.c: Likewise.
67142
67143 2007-03-10  Bruno Haible  <bruno@clisp.org>
67144
67145         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67146         fallback; use #error instead.
67147         Suggested by Simon Josefsson.
67148
67149 2007-03-10  Bruno Haible  <bruno@clisp.org>
67150
67151         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67152         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67153         first and the last.
67154
67155 2007-03-10  Bruno Haible  <bruno@clisp.org>
67156
67157         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67158
67159 2007-03-10  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67162         "make distcheck".
67163         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67164         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67165         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67166
67167 2007-03-10  Bruno Haible  <bruno@clisp.org>
67168
67169         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67170         variable.
67171         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67172         variable.
67173
67174 2007-03-09  Eric Blake  <ebb9@byu.net>
67175         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67176
67177         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67178         types are not being provided by gnulib.
67179         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67180         types are supported.
67181
67182 2007-03-10  Bruno Haible  <bruno@clisp.org>
67183
67184         * lib/stdio_.h (__attribute__): New macro.
67185         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67186         vsprintf): Specify __attribute__ __format__ for GCC.
67187         Suggested by Eric Blake.
67188
67189 2007-03-09  Bruno Haible  <bruno@clisp.org>
67190
67191         * modules/printf-posix-tests: New file.
67192         * tests/test-printf-posix.sh: New file.
67193         * tests/test-printf-posix.c: New file.
67194
67195         * modules/printf-posix: New file.
67196         * lib/printf.c: New file.
67197         * m4/printf-posix-rpl.m4: New file.
67198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67199         REPLACE_PRINTF.
67200         * lib/stdio_.h (printf): New declaration.
67201         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67202         ____strfmon____): New macros.
67203         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67204         REPLACE_PRINTF.
67205
67206 2007-03-09  Bruno Haible  <bruno@clisp.org>
67207
67208         * tests/test-vasnprintf-posix2.sh: New file.
67209         * tests/test-vasnprintf-posix2.c: New file.
67210         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67211         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67212         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67213
67214         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67215         a locale dependent decimal point, rather than always '.'.
67216
67217 2007-03-09  Eric Blake  <ebb9@byu.net>
67218
67219         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67220         spite of platforms like Tandem/NSK that define it to -1.
67221
67222 2007-03-08  Bruno Haible  <bruno@clisp.org>
67223
67224         * modules/vprintf-posix-tests: New file.
67225         * tests/test-vprintf-posix.sh: New file.
67226         * tests/test-vprintf-posix.c: New file.
67227         * tests/test-printf-posix.h: New file.
67228
67229         * modules/vprintf-posix: New file.
67230         * lib/vprintf.c: New file.
67231         * m4/vprintf-posix.m4: New file.
67232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67233         REPLACE_VPRINTF.
67234         * lib/stdio_.h (vprintf): New declaration.
67235         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67236         REPLACE_VPRINTF.
67237
67238 2007-03-08  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/fprintf-posix-tests: New file.
67241         * tests/test-fprintf-posix.sh: New file.
67242         * tests/test-fprintf-posix.c: New file.
67243
67244         * modules/fprintf-posix: New file.
67245         * lib/fprintf.c: New file.
67246         * m4/fprintf-posix.m4: New file.
67247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67248         REPLACE_FPRINTF.
67249         * lib/stdio_.h (fprintf): New declaration.
67250         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67251         REPLACE_FPRINTF.
67252
67253 2007-03-08  Bruno Haible  <bruno@clisp.org>
67254
67255         * modules/vfprintf-posix-tests: New file.
67256         * tests/test-vfprintf-posix.sh: New file.
67257         * tests/test-vfprintf-posix.c: New file.
67258         * tests/test-fprintf-posix.h: New file.
67259         * tests/test-fprintf-posix.out: New file.
67260
67261         * modules/vfprintf-posix: New file.
67262         * lib/vfprintf.c: New file.
67263         * m4/vfprintf-posix.m4: New file.
67264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67265         REPLACE_VFPRINTF.
67266         * lib/stdio_.h (vfprintf): New declaration.
67267         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67268         REPLACE_VFPRINTF.
67269
67270 2007-03-08  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67273
67274 2007-03-08  Bruno Haible  <bruno@clisp.org>
67275
67276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67277         instead of 'expr' invocations.
67278         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67283         Suggested by Paul Eggert.
67284
67285 2007-03-08  Bruno Haible  <bruno@clisp.org>
67286
67287         * modules/fseterr-tests: New file.
67288         * tests/test-fseterr.c: New file.
67289
67290         * modules/fseterr: New file.
67291         * lib/fseterr.h: New file.
67292         * lib/fseterr.c: New file.
67293
67294 2007-03-08  Bruno Haible  <bruno@clisp.org>
67295
67296         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67297         * lib/getopt_.h: Likewise.
67298         * lib/mbswidth.h: Likewise.
67299         * lib/setenv.h: Likewise.
67300         * lib/vasnprintf.h: Likewise.
67301         * lib/vasprintf.h: Likewise.
67302         * lib/verror.h: Likewise.
67303         * lib/xsetenv.h: Likewise.
67304         * lib/xvasprintf.h: Likewise.
67305
67306 2007-03-08  Jim Meyering  <jim@meyering.net>
67307
67308         * users.txt: Add parted.
67309
67310         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67311
67312 2007-03-07  Bruno Haible  <bruno@clisp.org>
67313
67314         * m4/printf.m4: Make the shell script snippets copy&pastable.
67315
67316 2007-03-02  Bruno Haible  <bruno@clisp.org>
67317
67318         * lib/netinet_in_.h: New file.
67319         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67320         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67321         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67322         (Depends-on): Add absolute-header.
67323         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67324         into netinet/in.h.
67325
67326 2007-03-03  Bruno Haible  <bruno@clisp.org>
67327
67328         * lib/sys_select_.h: New file.
67329         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67330         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67331         * modules/sys_select (Files): Add lib/sys_select_.h.
67332         (Depends-on): Add absolute-header.
67333         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67334         into sys/select.h.
67335
67336 2007-03-02  Bruno Haible  <bruno@clisp.org>
67337
67338         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67339         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67340         values.
67341         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67342         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67343         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67344         * modules/sys_socket (Depends-on): Add absolute-header.
67345         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67346         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67347         (Include): Remove requirement of inclusion of <sys/types.h>.
67348
67349 2007-03-02  Bruno Haible  <bruno@clisp.org>
67350
67351         * lib/byteswap_.h (bswap_32): Fix formula.
67352
67353 2007-03-06  Bruno Haible  <bruno@clisp.org>
67354
67355         * modules/sprintf-posix-tests: New file.
67356         * tests/test-sprintf-posix.c: New file.
67357
67358         * modules/sprintf-posix: New file.
67359         * lib/sprintf.c: New file.
67360         * m4/sprintf-posix.m4: New file.
67361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67362         REPLACE_SPRINTF.
67363         * lib/stdio_.h (sprintf): New declaration.
67364         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67365         REPLACE_SPRINTF.
67366
67367 2007-03-06  Bruno Haible  <bruno@clisp.org>
67368
67369         * modules/vsprintf-posix-tests: New file.
67370         * tests/test-vsprintf-posix.c: New file.
67371         * tests/test-sprintf-posix.h: New file.
67372
67373         * modules/vsprintf-posix: New file.
67374         * lib/vsprintf.c: New file.
67375         * m4/vsprintf-posix.m4: New file.
67376         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67377         REPLACE_VSPRINTF.
67378         * lib/stdio_.h (vsprintf): New declaration.
67379         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67380         REPLACE_VSPRINTF.
67381
67382 2007-03-06  Bruno Haible  <bruno@clisp.org>
67383
67384         * modules/vsnprintf (Depend-on): Remove minmax.
67385
67386 2007-03-06  Bruno Haible  <bruno@clisp.org>
67387
67388         * modules/snprintf-posix-tests: New file.
67389         * tests/test-snprintf-posix.c: New file.
67390
67391         * modules/snprintf-posix: New file.
67392         * m4/snprintf-posix.m4: New file.
67393         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67394         gl_FUNC_SNPRINTF.
67395         (gl_FUNC_SNPRINTF): Invoke it.
67396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67397         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67398         is set.
67399         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67400
67401 2007-03-06  Bruno Haible  <bruno@clisp.org>
67402
67403         * modules/vsnprintf-posix-tests: New file.
67404         * tests/test-vsnprintf-posix.c: New file.
67405         * tests/test-snprintf-posix.h: New file.
67406
67407         * modules/vsnprintf-posix: New file.
67408         * m4/vsnprintf-posix.m4: New file.
67409         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67410         gl_FUNC_VSNPRINTF.
67411         (gl_FUNC_VSNPRINTF): Invoke it.
67412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67413         * lib/stdio_.h (vsnprintf): Define as a replacement if
67414         REPLACE_VSNPRINTF is set.
67415         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67416
67417 2007-03-06  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67421
67422 2007-03-06  Bruno Haible  <bruno@clisp.org>
67423
67424         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67425         (asinl): Declare also if HAVE_DECL_ASINL is set.
67426         (atanl): Declare also if HAVE_DECL_ATANL is set.
67427         (ceill): Declare also if HAVE_DECL_CEILL is set.
67428         (cosl): Declare also if HAVE_DECL_COSL is set.
67429         (expl): Declare also if HAVE_DECL_EXPL is set.
67430         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67431         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67432         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67433         (logl): Declare also if HAVE_DECL_LOGL is set.
67434         (sinl): Declare also if HAVE_DECL_SINL is set.
67435         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67436         (tanl): Declare also if HAVE_DECL_TANL is set.
67437         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67439         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67440         declaration of frexpl, ldexpl.
67441         * modules/printf-frexpl (Depends-on): Add math.
67442         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67443
67444 2007-03-05  Bruno Haible  <bruno@clisp.org>
67445
67446         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67447         frexpl and ldexpl are declared.
67448         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67449
67450 2007-03-05  Bruno Haible  <bruno@clisp.org>
67451
67452         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67453         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67454
67455 2007-03-05  Bruno Haible  <bruno@clisp.org>
67456
67457         * lib/stdio_.h: Include <stddef.h>.
67458
67459 2007-03-05  Bruno Haible  <bruno@clisp.org>
67460
67461         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67462
67463 2007-03-05  Bruno Haible  <bruno@clisp.org>
67464
67465         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67466         NetBSD 4, from Ralf Wildenhues.
67467
67468 2007-03-04  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/vasprintf.h: Update #if logic for the case when the functions
67471         exist but are overridden.
67472
67473 2007-03-04  Bruno Haible  <bruno@clisp.org>
67474
67475         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67476         implementations: glibc-2.4 and MacOS X 10.3.
67477         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67478         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67479         * tests/test-vasprintf-posix.c (test_function): Likewise.
67480
67481 2007-03-04  Bruno Haible  <bruno@clisp.org>
67482
67483         * modules/vasprintf-posix-tests: New file.
67484         * tests/test-vasprintf-posix.c: New file.
67485
67486         * modules/vasprintf-posix: New file.
67487         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67488         defined.
67489         * m4/vasprintf-posix.m4: New file.
67490         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67491         gl_FUNC_VASPRINTF.
67492         (gl_FUNC_VASPRINTF): Invoke it.
67493         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67494         here.
67495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67496
67497 2007-03-04  Bruno Haible  <bruno@clisp.org>
67498
67499         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67500         REPLACE_GETTIMEOFDAY.
67501         * modules/sys_time (Makefile.am): Likewise.
67502         * m4/sys_time_h.m4: Likewise.
67503         * m4/gettimeofday.m4: Likewise.
67504
67505 2007-03-04  Bruno Haible  <bruno@clisp.org>
67506
67507         * modules/vasnprintf-posix-tests: New file.
67508         * tests/test-vasnprintf-posix.c: New file.
67509
67510         * modules/vasnprintf-posix: New file.
67511         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67512         printf-frexpl.h.
67513         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67514         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67515         REPLACE_VASNPRINTF is defined.
67516         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67517         gl_FUNC_VASNPRINTF.
67518         (gl_FUNC_VASNPRINTF): Invoke it.
67519         * m4/vasnprintf-posix.m4: New file.
67520         * m4/printf.m4: New file.
67521
67522 2007-03-04  Bruno Haible  <bruno@clisp.org>
67523
67524         Compile progreloc.c only if --enable-relocatable is specified.
67525         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67526         if --enable-relocatable was specified.
67527         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67528         lib_SOURCES.
67529
67530 2007-03-04  Jim Meyering  <jim@meyering.net>
67531
67532         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67533         Use it consistently, rather than enumerating errno constants.
67534
67535 2007-03-04  Bruno Haible  <bruno@clisp.org>
67536
67537         * modules/xvasprintf-tests: New file.
67538         * tests/test-xvasprintf.c: New file.
67539
67540         * modules/vasprintf-tests: New file.
67541         * tests/test-vasprintf.c: New file.
67542
67543         * modules/vasnprintf-tests: New file.
67544         * tests/test-vasnprintf.c: New file.
67545
67546         * modules/vsnprintf-tests: New file.
67547         * tests/test-vsnprintf.c: New file.
67548
67549         * modules/snprintf-tests: New file.
67550         * tests/test-snprintf.c: New file.
67551
67552 2007-03-04  Bruno Haible  <bruno@clisp.org>
67553
67554         Compile relocatable.c only if --enable-relocatable is specified.
67555         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67556         gl_RELOCATABLE_LIBRARY.
67557         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67558         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67559         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67560         gl_RELOCATABLE_LIBRARY.
67561         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67562         (Makefile.am): Remove lib_SOURCES.
67563         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67564         gl_RELOCATABLE_LIBRARY.
67565         (Makefile.am): Remove lib_SOURCES.
67566         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67567         always.
67568         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67569         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67570
67571 2007-03-04  Bruno Haible  <bruno@clisp.org>
67572
67573         * modules/argmatch-tests: New file.
67574         * tests/test-argmatch.c: New file.
67575
67576         * tests/test-allocsa.c (main): Halve the number of loop runs.
67577
67578         * modules/alloca-opt-tests: New file.
67579         * tests/test-alloca-opt.c: New file.
67580
67581 2007-03-04  Jim Meyering  <jim@meyering.net>
67582
67583         Work around difference between Linux ACLs and Solaris 10 ZFS.
67584         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67585         for EINVAL.
67586
67587 2007-03-03  Bruno Haible  <bruno@clisp.org>
67588
67589         * modules/relocatable-prog (Depends-on): Add back progreloc's
67590         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67591
67592 2007-03-03  Bruno Haible  <bruno@clisp.org>
67593
67594         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67595         * modules/relocatable-lib: New file.
67596
67597 2007-03-03  Bruno Haible  <bruno@clisp.org>
67598
67599         * modules/relocatable-prog: Renamed from modules/relocatable.
67600         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67601
67602 2007-03-03  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67605         m4/relocatable-lib.m4.
67606         (Depends-on): Remove 'relocatable'.
67607         (configure.ac): Add gl_RELOCATABLE_NOP.
67608
67609 2007-03-03  Bruno Haible  <bruno@clisp.org>
67610
67611         * modules/relocatable-prog-wrapper: New file.
67612         * modules/relocatable (Depends-on): Add it. Remove all other
67613         dependencies except progname.
67614         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67615
67616         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67617         (gl_FUNC_STRERROR): Nop.
67618         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67619
67620         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67621         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67622
67623         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67624         (gl_FUNC_READLINK): Update.
67625
67626         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67627
67628 2007-03-03  Bruno Haible  <bruno@clisp.org>
67629
67630         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67631         * modules/xreadlink (Depends-on): Add unistd.
67632         * modules/xreadlink-with-size (Depends-on): Likewise.
67633
67634 2007-03-03  Bruno Haible  <bruno@clisp.org>
67635
67636         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67637         extracted from gt_FUNC_SETENV.
67638         (gt_FUNC_SETENV): Remove macro.
67639         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67640         remove gt_FUNC_SETENV.
67641
67642 2007-03-03  Bruno Haible  <bruno@clisp.org>
67643
67644         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67645         ENABLE_RELOCATABLE here.
67646         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67647
67648 2007-03-03  Bruno Haible  <bruno@clisp.org>
67649
67650         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67651         * tests/test-rbtreehash_list.c: Include progname.h.
67652         (main): Call set_program_name.
67653
67654         * modules/rbtree-oset-tests (Depends-on): Add progname.
67655         * tests/test-rbtree_oset.c: Include progname.h.
67656         (main): Call set_program_name.
67657
67658         * modules/rbtree-list-tests (Depends-on): Add progname.
67659         * tests/test-rbtree_list.c: Include progname.h.
67660         (main): Call set_program_name.
67661
67662         * modules/linked-list-tests (Depends-on): Add progname.
67663         * tests/test-linked_list.c: Include progname.h.
67664         (main): Call set_program_name.
67665
67666 2007-03-03  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67669         All uses of __restrict changed to _Restrict_.
67670         * lib/glob_.h (__restrict): Remove macro.
67671
67672 2007-03-02  Bruno Haible  <bruno@clisp.org>
67673
67674         * modules/gettext (configure.ac): Require gettext infrastructure
67675         from version 0.16.1.
67676
67677 2007-03-02  Bruno Haible  <bruno@clisp.org>
67678
67679         * modules/linkedhash-list-tests (Depends-on): Add progname.
67680         * tests/test-linkedhash_list.c: Include progname.h.
67681         (main): Call set_program_name.
67682
67683         * modules/carray-list-tests (Depends-on): Add progname.
67684         * tests/test-carray_list.c: Include progname.h.
67685         (main): Call set_program_name.
67686
67687         * modules/avltreehash-list-tests (Depends-on): Add progname.
67688         * tests/test-avltreehash_list.c: Include progname.h.
67689         (main): Call set_program_name.
67690
67691         * modules/avltree-oset-tests (Depends-on): Add progname.
67692         * tests/test-avltree_oset.c: Include progname.h.
67693         (main): Call set_program_name.
67694
67695         * modules/avltree-list-tests (Depends-on): Add progname.
67696         * tests/test-avltree_list.c: Include progname.h.
67697         (main): Call set_program_name.
67698
67699         * modules/array-oset-tests (Depends-on): Add progname.
67700         * tests/test-array_oset.c: Include progname.h.
67701         (main): Call set_program_name.
67702
67703         * modules/array-list-tests (Depends-on): Add progname.
67704         * tests/test-array_list.c: Include progname.h.
67705         (main): Call set_program_name.
67706
67707         * modules/argp-tests (Depends-on): Add progname.
67708         * tests/test-argp.c: Include argp.h first. Include progname.h.
67709         (main): Call set_program_name.
67710
67711 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         * doc/gnulib-tool.texi (Initial import): Reword description of
67714         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67715         limited effect even if defined after the first system include.
67716
67717 2007-03-01  Bruno Haible  <bruno@clisp.org>
67718
67719         * build-aux/config.libpath: Update to libtool-1.5.22.
67720         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67721
67722 2007-03-01  Bruno Haible  <bruno@clisp.org>
67723
67724         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67725         foo_CFLAGS.
67726         Reported by Ralf Wildenhues.
67727
67728 2007-03-01  Bruno Haible  <bruno@clisp.org>
67729
67730         * build-aux/install-reloc: Remove object files left over by some
67731         compilers.
67732         Reported by Ralf Wildenhues.
67733
67734 2007-03-01  Bruno Haible  <bruno@clisp.org>
67735
67736         * build-aux/install-reloc: Break long lines.
67737
67738 2007-03-01  Bruno Haible  <bruno@clisp.org>
67739
67740         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67741         Reported by Ralf Wildenhues.
67742
67743 2007-03-01  Bruno Haible  <bruno@clisp.org>
67744
67745         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67746         include ordering constraints.
67747
67748 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67749
67750         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67752         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67753         as another example.
67754         * lib/time_.h: Fix misspelling.
67755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67756         Require gl_HEADER_TIME_H_DEFAULTS.
67757         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67758         * m4/time_r.m4 (gl_TIME_R): Likewise.
67759         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67760
67761 2007-03-01  Bruno Haible  <bruno@clisp.org>
67762
67763         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67764         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67765
67766 2007-03-01  Jim Meyering  <jim@meyering.net>
67767
67768         * modules/xreadlink (Maintainer): Add my name.
67769         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67770
67771 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67772             Bruno Haible  <bruno@clisp.org>
67773
67774         * build-aux/install-reloc: Compile also c-ctype.c.
67775         * build-aux/relocatable.sh.in: New file.
67776         * doc/relocatable.texi: New file.
67777         * doc/relocatable-maint.texi: New file.
67778         * doc/gnulib.texi: Include relocatable-maint.texi.
67779         * lib/progreloc.c: Include unistd.h unconditionally.
67780         * lib/relocwrapper.c: Include unistd.h unconditionally.
67781         Include c-ctype.h.
67782         (add_dotbin): Use c_tolower.
67783         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67784         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67785         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67786         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67787         to m4/relocatable-lib.m4.
67788         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67789         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67790         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67791         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67792         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67793         * modules/relocatable: New file.
67794         * modules/relocatable-lib: New file.
67795         * modules/relocatable-script: New file.
67796
67797 2007-02-28  Bruno Haible  <bruno@clisp.org>
67798
67799         Import --enable-relocatable infrastructure.
67800         * build-aux/config.libpath: New file, from GNU gettext.
67801         * build-aux/install-reloc: New file, from GNU gettext.
67802         * build-aux/reloc-ldflags: New file, from GNU gettext.
67803         * lib/relocatable.h: New file, from GNU gettext.
67804         * lib/relocatable.c: New file, from GNU gettext.
67805         * lib/relocwrapper.c: New file, from GNU gettext.
67806         * m4/relocatable.m4: New file, from GNU gettext.
67807
67808 2007-02-28  Bruno Haible  <bruno@clisp.org>
67809
67810         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67811
67812         * modules/xreadlink: New file, from GNU gettext with modifications.
67813         * lib/xreadlink.c: New file, from GNU gettext.
67814         * lib/xreadlink.h: Add comments.
67815         (xreadlink): New declaration.
67816
67817         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67818         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67819         lib/xreadlink-with-size.c.
67820         (configure.ac): Remove gl_XREADLINK invocation.
67821         (Makefile.am): Augment lib_SOURCES.
67822         * m4/xreadlink.m4: Remove file.
67823         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67824         (xreadlink_with_size): Renamed from xreadink.
67825         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67826         * modules/canonicalize (Depends-on): Replace xreadlink with
67827         xreadlink-with-size.
67828         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67829
67830 2007-02-25  Jim Meyering  <jim@meyering.net>
67831
67832         * build-aux/announce-gen: When complaining about excess arguments,
67833         list them.
67834
67835 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * README: Document signed integer overflow situation more
67838         accurately.
67839
67840 2007-02-25  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67843         'a' or 'A' conversion.
67844
67845 2007-02-25  Bruno Haible  <bruno@clisp.org>
67846
67847         * modules/filename: Renamed from modules/pathname.
67848         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67849         lib/concatpath.c with lib/concat-filename.c.
67850         (Makefile.am): Update.
67851         (Include): Replace pathname.h with filename.h.
67852         * lib/filename.h: Renamed from lib/pathname.h.
67853         (concatenated_filename): Renamed from concatenated_pathname.
67854         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67855         (concatenated_filename): Renamed from concatenated_pathname.
67856         * lib/findprog.c: Include filename.h instead of pathname.h.
67857         (find_in_path): Update.
67858         * lib/javacomp.c: Include filename.h instead of pathname.h.
67859         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67860         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67861         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67862         is_oldgcj_14_13_usable, is_javac_usable): Update.
67863         * lib/javaexec.c: Include filename.h instead of pathname.h.
67864         (execute_java_class): Update.
67865         * modules/findprog: Update.
67866         * modules/javacomp: Update.
67867         * modules/javaexec: Update.
67868         * MODULES.html.sh (File system functions): Add 'filename', remove
67869         'pathname'.
67870
67871 2007-02-25  Bruno Haible  <bruno@clisp.org>
67872
67873         * modules/printf-frexpl-tests: New file.
67874         * tests/test-printf-frexpl.c: New file.
67875
67876         * modules/printf-frexpl: New file.
67877         * lib/printf-frexpl.h: New file.
67878         * lib/printf-frexpl.c: New file.
67879         * m4/printf-frexpl.m4: New file.
67880
67881 2007-02-25  Bruno Haible  <bruno@clisp.org>
67882
67883         * modules/printf-frexp-tests: New file.
67884         * tests/test-printf-frexp.c: New file.
67885
67886         * modules/printf-frexp: New file.
67887         * lib/printf-frexp.h: New file.
67888         * lib/printf-frexp.c: New file.
67889         * m4/printf-frexp.m4: New file.
67890
67891 2007-02-25  Bruno Haible  <bruno@clisp.org>
67892
67893         Assume automake >= 1.10 for the tests.
67894         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67895         * modules/arctwo-tests: Likewise.
67896         * modules/argp-tests: Likewise.
67897         * modules/avltree-list-tests: Likewise.
67898         * modules/avltree-oset-tests: Likewise.
67899         * modules/avltreehash-list-tests: Likewise.
67900         * modules/carray-list-tests: Likewise.
67901         * modules/crc-tests: Likewise.
67902         * modules/des-tests: Likewise.
67903         * modules/gc-arcfour-tests: Likewise.
67904         * modules/gc-arctwo-tests: Likewise.
67905         * modules/gc-des-tests: Likewise.
67906         * modules/gc-hmac-md5-tests: Likewise.
67907         * modules/gc-hmac-sha1-tests: Likewise.
67908         * modules/gc-md2-tests: Likewise.
67909         * modules/gc-md4-tests: Likewise.
67910         * modules/gc-md5-tests: Likewise.
67911         * modules/gc-pbkdf2-sha1-tests: Likewise.
67912         * modules/gc-rijndael-tests: Likewise.
67913         * modules/gc-sha1-tests: Likewise.
67914         * modules/gc-tests: Likewise.
67915         * modules/getaddrinfo-tests: Likewise.
67916         * modules/hmac-md5-tests: Likewise.
67917         * modules/hmac-sha1-tests: Likewise.
67918         * modules/linked-list-tests: Likewise.
67919         * modules/linkedhash-list-tests: Likewise.
67920         * modules/lock-tests: Likewise.
67921         * modules/md2-tests: Likewise.
67922         * modules/md4-tests: Likewise.
67923         * modules/md5-tests: Likewise.
67924         * modules/rbtree-list-tests: Likewise.
67925         * modules/rbtree-oset-tests: Likewise.
67926         * modules/rbtreehash-list-tests: Likewise.
67927         * modules/read-file-tests: Likewise.
67928         * modules/rijndael-tests: Likewise.
67929         * modules/stdint-tests: Likewise.
67930         * modules/tls-tests: Likewise.
67931
67932 2007-02-24  Bruno Haible  <bruno@clisp.org>
67933
67934         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67935         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67936         function; instead check whether isnan with a double argument links.
67937         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67938         function; instead check whether isnan with a 'long double' argument
67939         links.
67940         Reported by Eric Blake <ebb9@byu.net>.
67941
67942 2007-02-24  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67945         defined.
67946         * lib/isnanl.c: Remove all code. Just include isnan.c.
67947         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67948
67949 2007-02-25  Jim Meyering  <jim@meyering.net>
67950
67951         Avoid conflicting types for 'unsetenv' on FreeBSD.
67952         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67953         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67954         in stdlib.h.
67955
67956 2007-02-24  Bruno Haible  <bruno@clisp.org>
67957
67958         * modules/isnanl-nolibm-tests: New file.
67959         * tests/test-isnanl.c: New file.
67960
67961         * modules/isnanl-nolibm: New file.
67962         * lib/isnanl.h: New file.
67963         * lib/isnanl.c: New file.
67964         * m4/isnanl.m4: New file.
67965
67966 2007-02-24  Bruno Haible  <bruno@clisp.org>
67967
67968         * modules/isnan-nolibm-tests: New file.
67969         * tests/test-isnan.c: New file.
67970
67971         * modules/isnan-nolibm: New file.
67972         * lib/isnan.h: New file.
67973         * lib/isnan.c: New file.
67974         * m4/isnan.m4: New file.
67975
67976 2007-02-24  Bruno Haible  <bruno@clisp.org>
67977
67978         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67979         assume that an exponent fits in 20 bits.
67980
67981 2007-02-24  Jim Meyering  <jim@meyering.net>
67982
67983         * m4/regex.m4: Update the description of the configure-time option,
67984         --without-included-regex, to state accurately what the defaults are,
67985         and perhaps to give people an idea why using this option is risky.
67986
67987 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67990         loops on small arguments.  This attempts to avoid the problem
67991         Bruno Haible reported for AIX 4.3.2 in
67992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67993
67994 2007-02-23  Bruno Haible  <bruno@clisp.org>
67995
67996         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67997         Needed for help2man.
67998
67999 2007-02-23  Karl Berry  <karl@gnu.org>
68000
68001         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68002         exists, foo.h should be cvs-ignored, not committed.
68003
68004 2007-02-23  Eric Blake  <ebb9@byu.net>
68005
68006         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68007         * lib/stat-time.h (includes): Likewise.
68008         * lib/utimecmp.c (includes): Likewise.
68009         * lib/utimens.h (includes): Likewise.
68010         * lib/getdate.y (includes): Also include "timespec.h" for use
68011         internal to the module.
68012         * modules/utimens (Depends-on): Revert yesterday's patch.
68013         * modules/nanosleep (Depends-on): Add missing dependency.
68014
68015 2007-02-22  Bruno Haible  <bruno@clisp.org>
68016
68017         * lib/glob.c: Don't include getlogin_r.h.
68018
68019 2007-02-22  Jim Meyering  <jim@meyering.net>
68020
68021         * modules/utimens (Depends-on): Add timespec, required for
68022         utimens.h's inclusion of timespec.h.
68023
68024 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68027         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68028         Schwab in
68029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68030         I'll try to think of a better way to fix the Solaris problem.
68031
68032         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68033         like glibc; on Solaris 10, it fails with errno == EINVAL.
68034         POSIX says the behavior is unspecified if the first argument is NULL,
68035         so play it safe and never pass NULL to the system getcwd.
68036
68037 2007-02-21  Jim Meyering  <jim@meyering.net>
68038
68039         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68040         of gettimeofday.  It would conflict with the one now always
68041         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68042         an IRIX 6.5 build failure.
68043
68044 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68045
68046         Minor fixups to port to Solaris 10 with Sun C 5.8.
68047         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68048         * modules/getcwd (Depends-on): Add dirfd.
68049         * lib/putenv.c (putenv): #undef it.
68050         (rpl_putenv): New decl.
68051         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68052
68053 2007-02-20  Bruno Haible  <bruno@clisp.org>
68054
68055         * modules/stdio-tests: New file.
68056         * tests/test-stdio.c: New file.
68057
68058         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68059         (Depends-on): Add stdio.
68060         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68061         (Include): Use <stdio.h> instead of vsnprintf.h.
68062         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68063         HAVE_DECL_VSNPRINTF.
68064         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68065
68066         * modules/snprintf (Files): Remove lib/snprintf.h.
68067         (Depends-on): Add stdio.
68068         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68069         (Include): Use <stdio.h> instead of snprintf.h.
68070         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68071         HAVE_DECL_SNPRINTF.
68072         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68073         * lib/getaddrinfo.c: Likewise.
68074
68075         * modules/stdio: New file.
68076         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68077         * lib/snprintf.h: Remove file.
68078         * lib/vsnprintf.h: Remove file.
68079         * lib/.cppi-disable: Remove snprintf.h.
68080         * m4/stdio_h.m4: New file.
68081         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68082
68083 2007-02-20  Jim Meyering  <jim@meyering.net>
68084
68085         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68086         used by e.g., mingw.  From Bruno Haible.
68087
68088 2007-02-19  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68091         warnings.
68092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68093
68094 2007-02-19  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68097         from mingw users.
68098
68099 2007-02-19  Bruno Haible  <bruno@clisp.org>
68100
68101         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68102         warnings.
68103         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68104
68105 2007-02-19  Jim Meyering  <jim@meyering.net>
68106
68107         Don't use FD after a successful "fdopendir (fd)".
68108         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68109         Reset it by calling dirfd on the just-obtained DIR*.
68110
68111         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68112         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68113
68114 2007-02-18  Bruno Haible  <bruno@clisp.org>
68115
68116         * lib/readlink.c: Include <unistd.h>.
68117         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68118         HAVE_READLINK.
68119         * modules/readlink (Depends-on): Add unistd.
68120         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68121         (Include): Add <unistd.h>.
68122
68123         * lib/getlogin_r.h: Remove file.
68124         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68125         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68126         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68127         HAVE_DECL_GETLOGIN_R.
68128         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68130         (Include): Use <unistd.h> instead of getlogin_r.h.
68131
68132         * lib/getcwd.h: Remove file.
68133         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68134         * lib/xgetcwd.c: Likewise.
68135         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68136         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68137         * modules/getcwd (Files): Remove lib/getcwd.h.
68138         (Depends-on): Add unistd.
68139         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68140         (Include): Use <unistd.h> instad of getcwd.h.
68141
68142         * lib/ftruncate.c: Include <unistd.h> first.
68143         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68144         Set HAVE_FTRUNCATE.
68145         * modules/ftruncate (Depends-on): Add unistd.
68146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68147
68148         * lib/fchdir.c: Include <unistd.h> first.
68149         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68151         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68152         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68153         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68154
68155         * lib/dup2.c: Include <unistd.h> first.
68156         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68157         HAVE_DUP2.
68158         * modules/dup2 (Depends-on): Add unistd.
68159         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68160
68161         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68162         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68163         REPLACE_CHOWN. Don't define chown as a macro here.
68164         * modules/chown (Depends-on): Add unistd.
68165         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68166
68167         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68168         Add definition for GL_LINK_WARNING.
68169         (chown, dup2): New declarations.
68170         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68171         link warning.
68172         (ftruncate): New declaration.
68173         (getcwd): New declaration, taken from old getcwd.h.
68174         (getlogin_r): New declaration, taken from old getlogin_r.h.
68175         (readlink): New declaration.
68176         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68177         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68178         (gl_PREREQ_UNISTD): Remove macro.
68179         (gl_UNISTD_MODULE_INDICATOR): New macro.
68180         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68181         many new variables. Don't set UNISTD_H.
68182         * modules/unistd (Description): Change.
68183         (Depends-on): Add link-warning.
68184         (configure.ac): Update.
68185         (Makefile.am): Create unistd.h always. Substitute many new variables
68186         into it.
68187
68188 2007-02-18  Bruno Haible  <bruno@clisp.org>
68189
68190         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68191         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68192         HAVE_GETSUBOPT.
68193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68194         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68195         * lib/getsubopt.h: Remove file.
68196         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68197         (Depends-on): Add stdlib.
68198         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68199         (Includes): Use <stdlib.h> instead of getsubopt.h.
68200         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68201         Set HAVE_GETSUBOPT.
68202         * lib/getsubopt.c: Don't include getsubopt.h.
68203
68204 2007-02-18  Bruno Haible  <bruno@clisp.org>
68205
68206         * modules/fchdir (Depends-on): Add dup2.
68207
68208 2007-02-18  Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/stdlib_.h: Handle glibc's special invocation convention
68211         specially.
68212
68213 2007-02-18  Bruno Haible  <bruno@clisp.org>
68214
68215         * modules/stdlib-tests: New file.
68216         * tests/test-stdlib.c: New file.
68217
68218         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68219         (Depends-on): Add stdlib.
68220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68221         (Includes): Use <stdlib.h> instead of mkstemp.h.
68222         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68223         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68224         * lib/mkstemp.c: Don't include mkstemp.h.
68225         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68226         * lib/stdlib--.h: Don't include mkstemp.h.
68227
68228         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68229         (Depends-on): Add stdlib.
68230         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68231         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68232         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68233         HAVE_MKDTEMP.
68234         * lib/mkdtemp.c: Don't include mkdtemp.h.
68235         * lib/clean-temp.c: Don't include mkdtemp.h.
68236
68237         * modules/exit (Files): Remove lib/exit.h.
68238         (Depends-on): Add stdlib.
68239         (Makefile.am): Remove lib_SOURCES.
68240         (Include): Use <stdlib.h> instead of exit.h.
68241         * lib/argmatch.c: Don't include exit.h.
68242         * lib/execute.c: Likewise.
68243         * lib/pagealign_alloc.c: Likewise.
68244         * lib/pipe.c: Likewise.
68245         * lib/wait-process.c: Likewise.
68246         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68247         * lib/exitfail.c: Likewise.
68248         * lib/savewd.c: Likewise.
68249         * lib/xsetenv.c: Likewise.
68250
68251         * modules/stdlib: New file.
68252         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68253         and extra comments about mkstemp().
68254         * lib/exit.h: Remove file.
68255         * lib/mkdtemp.h: Remove file.
68256         * lib/mkstemp.h: Remove file.
68257         * m4/stdlib_h.m4: New file.
68258         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68259
68260 2007-02-18  Bruno Haible  <bruno@clisp.org>
68261
68262         * modules/math-tests: New file.
68263         * tests/test-math.c: New file.
68264
68265         * modules/math: New file.
68266         * modules/mathl (Files): Remove lib/mathl.h.
68267         (Depends-on): Add math.
68268         (Makefile.am): Don't mention mathl.h.
68269         (Include): Use <math.h> instead of mathl.h.
68270         * lib/math_.h: New file.
68271         * lib/mathl.h: Remove file.
68272         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68273         mathl.h.
68274         * lib/asinl.c: Likewise.
68275         * lib/atanl.c: Likewise.
68276         * lib/ceill.c: Likewise.
68277         * lib/cosl.c: Likewise.
68278         * lib/expl.c: Likewise.
68279         * lib/floorl.c: Likewise.
68280         * lib/frexpl.c: Likewise.
68281         * lib/ldexpl.c: Likewise.
68282         * lib/logl.c: Likewise.
68283         * lib/sincosl.c: Likewise.
68284         * lib/sinl.c: Likewise.
68285         * lib/sqrtl.c: Likewise.
68286         * lib/tanl.c: Likewise.
68287         * lib/trigl.c: Likewise.
68288         * m4/math_h.m4: New file.
68289         * MODULES.html.sh (Mathematics): Add math.
68290
68291 2007-02-17  Bruno Haible  <bruno@clisp.org>
68292
68293         * modules/wctype-tests: New file.
68294         * tests/test-wctype.c: New file.
68295
68296         * modules/wchar-tests: New file.
68297         * tests/test-wchar.c: New file.
68298
68299         * modules/unistd-tests: New file.
68300         * tests/test-unistd.c: New file.
68301
68302         * modules/time-tests: New file.
68303         * tests/test-time.c: New file.
68304
68305         * modules/sysexits-tests: New file.
68306         * tests/test-sysexits.c: New file.
68307
68308         * modules/sys_time-tests: New file.
68309         * tests/test-sys_time.c: New file.
68310
68311         * modules/sys_stat-tests: New file.
68312         * tests/test-sys_stat.c: New file.
68313
68314         * modules/sys_socket-tests: New file.
68315         * tests/test-sys_socket.c: New file.
68316
68317         * modules/sys_select-tests: New file.
68318         * tests/test-sys_select.c: New file.
68319
68320         * modules/string-tests: New file.
68321         * tests/test-string.c: New file.
68322
68323         * modules/stdbool-tests: New file.
68324         * tests/test-stdbool.c: New file.
68325
68326         * modules/netinet_in-tests: New file.
68327         * tests/test-netinet_in.c: New file.
68328
68329         * modules/inttypes-tests: New file.
68330         * tests/test-inttypes.c: New file.
68331
68332         * modules/fcntl-tests: New file.
68333         * tests/test-fcntl.c: New file.
68334
68335         * modules/byteswap-tests: New file.
68336         * tests/test-byteswap.c: New file.
68337
68338         * modules/arpa_inet-tests: New file.
68339         * tests/test-arpa_inet.c: New file.
68340
68341 2007-02-17  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68344         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68345         if the corresponding module is not enabled. Emit link warnings if
68346         the function is used nevertheless.
68347         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68348         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68349         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68350         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68351         * modules/inttypes (Depends-on): Add link-warning.
68352         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68353         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68354         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68355         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68356         * modules/imaxdiv (configure.ac): Likewise.
68357         * modules/strtoimax (configure.ac): Likewise.
68358         * modules/strtoumax (configure.ac): Likewise.
68359
68360 2007-02-17  Bruno Haible  <bruno@clisp.org>
68361
68362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68363         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68364         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68365         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68366
68367 2007-02-17  Bruno Haible  <bruno@clisp.org>
68368
68369         * modules/link-warning: New file.
68370         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68371         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68372         * modules/string (Depends-on): Add link-warning.
68373         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68374         string.h.
68375         * MODULES.html.sh (Support for building libraries and executables): Add
68376         link-warning.
68377
68378 2007-02-17  Bruno Haible  <bruno@clisp.org>
68379
68380         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68381         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68382         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68383         long lines.
68384
68385 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68386             Bruno Haible  <bruno@clisp.org>
68387
68388         * modules/tmpfile: New file.
68389         * lib/tmpfile.c: New file.
68390         * m4/tmpfile.m4: New file.
68391         * MODULES.html.sh (func_all_modules): New section "Input/output".
68392
68393 2007-02-15  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68396         (supports_delete_on_close): New function.
68397         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68398
68399 2007-02-14  Bruno Haible  <bruno@clisp.org>
68400
68401         * modules/mbspcasecmp-tests: New file.
68402         * tests/test-mbspcasecmp.sh: New file.
68403         * tests/test-mbspcasecmp.c: New file.
68404
68405         New module mbspcasecmp.
68406         * modules/mbspcasecmp: New file.
68407         * lib/mbspcasecmp.c: New file.
68408         * lib/string_.h (strncasecmp): Change warning message.
68409         (mbspcasecmp): New declaration.
68410         * m4/mbspcasecmp.m4: New file.
68411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68412         GNULIB_MBSPCASECMP.
68413         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68414         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68415
68416 2007-02-14  Bruno Haible  <bruno@clisp.org>
68417
68418         * modules/mbsncasecmp-tests: New file.
68419         * tests/test-mbsncasecmp.sh: New file.
68420         * tests/test-mbsncasecmp.c: New file.
68421
68422         New module mbsncasecmp.
68423         * modules/mbsncasecmp: New file.
68424         * lib/mbsncasecmp.c: New file.
68425         * lib/string_.h (mbsncasecmp): New declaration.
68426         * m4/mbsncasecmp.m4: New file.
68427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68428         GNULIB_MBSNCASECMP.
68429         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68430         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68431
68432 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68435         Verify that it doesn't overlap with our flags.
68436         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68437         do not have the desired effect in multibyte locales; instead, use
68438         mbscasecmp.
68439         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68440         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68441         we don't require GNU fnmatch ourselves (if our users require it, they
68442         should do so explicitly).
68443
68444         Fix regex code so it doesn't rely on strcasecmp.
68445         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68446         Otherwise, include gnulib's langinfo.h.
68447         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68448         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68449         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68450         * modules/regex (FILES): Remove m4/codeset.m4.
68451         (Depends-on): Add localcharset.  Remove strcase.
68452
68453 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68454
68455         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68456         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68457
68458 2007-02-13  Bruno Haible  <bruno@clisp.org>
68459
68460         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68462
68463 2007-02-12  Bruno Haible  <bruno@clisp.org>
68464
68465         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68466         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68467         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68468         time warning rather than a link error.
68469
68470 2007-02-12  Bruno Haible  <bruno@clisp.org>
68471
68472         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68473         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68475
68476 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68479         args, not 2.
68480
68481 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68482
68483         New module 'time', so that apps can include <time.h> as per
68484         POSIX and GNU instead of separate include files like time_r.h
68485         and timegm.h.  This implementation tries out a simpler approach
68486         for replacing decls in standard include files (as compared to
68487         the string module), somewhat as an experiment.
68488
68489         * config/srclist.txt: Comment out mktime.c for now.
68490         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68491         since it doesn't apply any more.  Use generic wording instead.
68492         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68493         'time'.
68494         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68495         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68496         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68497         Don't include <sys/types.h>; no longer needed since we assume C89.
68498         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68499         * lib/strftime.c: Likewise.
68500         * lib/time_r.c: Likewise.
68501         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68502         * lib/nanosleep.c: Include <time.h> first, to check interface.
68503         * lib/strptime.c: Likewise.
68504         * lib/time_r.c: Likewise.
68505         * lib/timegm.c: Likewise.
68506         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68507         needed.
68508         * lib/timegm.c: Don't include timegm.h; no longer needed.
68509         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68510         time.h now handles any problems in that area.
68511         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68512         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68513         that time.h defines struct timespec.
68514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68515         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68516         handles that.
68517         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68518         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68519         needed.  Set REPLACE_LOCALTIME.
68520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68521         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68522         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68523         nanosleep; time_h.m4 now does that.  Don't require
68524         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68525         module handles this now.
68526         * modules/getdate (Depends-on): Remove timespec.  Add time.
68527         * modules/nanosleep (Depends-on): Likewise.
68528         * modules/stat-time (Depends-on): Likewise.
68529         * modules/nanosleep (Include): Include time.h, not timespec.h.
68530         * modules/strptime (Files): Remove lib/strptime.h.
68531         (Depends-on): Add extensions, time.
68532         (Include): Include time.h, not strptime.h.
68533         * modules/time_r (Files): Remove lib/time_r.h.
68534         (Depends-on): Add time.
68535         (Include): Include time.h, not time_r.h.
68536         * modules/timegm: Likewise.
68537         * modules/timespec (Description): Now does timespec-related decls
68538         of our own, instead of struct timespec itself.
68539         (Depends-on): Add time; remove extensions.
68540         (Maintainer): Add self.
68541         * modules/utimecmp (Depends-on): Add time; remove timespec.
68542         * modules/utimens (Depends-on): Likewise.
68543         * modules/xnanosleep (Depends-on): Likewise.
68544
68545 2007-02-11  Bruno Haible  <bruno@clisp.org>
68546
68547         * lib/c-strstr.c: Include allocsa.h.
68548         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68549         * lib/c-strcasestr.c: Include allocsa.h.
68550         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68551         * lib/strcasestr.c: Include allocsa.h.
68552         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68553         * lib/mbsstr.c: Include allocsa.h.
68554         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68555         allocsa/freesa instead of malloc/free.
68556         * lib/mbscasestr.c: Include allocsa.h.
68557         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68558         allocsa/freesa instead of malloc/free.
68559         * modules/c-strstr (Depends-on): Add allocsa.
68560         * modules/c-strcasestr (Depends-on): Likewise.
68561         * modules/strcasestr (Depends-on): Likewise.
68562         * modules/mbsstr (Depends-on): Likewise.
68563         * modules/mbscasestr (Depends-on): Likewise.
68564
68565 2007-02-11  Bruno Haible  <bruno@clisp.org>
68566
68567         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68568
68569         * modules/mbsspn-tests: New file.
68570         * tests/test-mbsspn.sh: New file.
68571         * tests/test-mbsspn.c: New file.
68572
68573 2007-02-11  Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68576
68577         * modules/mbspbrk-tests: New file.
68578         * tests/test-mbspbrk.sh: New file.
68579         * tests/test-mbspbrk.c: New file.
68580
68581 2007-02-11  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68584         unneeded cast.
68585
68586         * modules/mbscspn-tests: New file.
68587         * tests/test-mbscspn.sh: New file.
68588         * tests/test-mbscspn.c: New file.
68589
68590 2007-02-11  Bruno Haible  <bruno@clisp.org>
68591
68592         * modules/mbscasecmp-tests: New file.
68593         * tests/test-mbscasecmp.sh: New file.
68594         * tests/test-mbscasecmp.c: New file.
68595
68596 2007-02-11  Bruno Haible  <bruno@clisp.org>
68597
68598         Ensure O(n) worst-case complexity of mbscasestr.
68599         * lib/mbscasestr.c: Include stdbool.h.
68600         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68601         functions.
68602         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68603         the bookkeeping indicates that it's worth it.
68604         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68605
68606         * modules/mbscasestr-tests: New file.
68607         * tests/test-mbscasestr1.c: New file.
68608         * tests/test-mbscasestr2.sh: New file.
68609         * tests/test-mbscasestr2.c: New file.
68610         * tests/test-mbscasestr3.sh: New file.
68611         * tests/test-mbscasestr3.c: New file.
68612         * tests/test-mbscasestr4.sh: New file.
68613         * tests/test-mbscasestr4.c: New file.
68614         * m4/locale-tr.m4: New file.
68615
68616 2007-02-11  Bruno Haible  <bruno@clisp.org>
68617
68618         Ensure O(n) worst-case complexity of mbsstr.
68619         * lib/mbsstr.c: Include stdbool.h.
68620         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68621         functions.
68622         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68623         bookkeeping indicates that it's worth it.
68624         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68625
68626         * modules/mbsstr-tests: New file.
68627         * tests/test-mbsstr1.c: New file.
68628         * tests/test-mbsstr2.sh: New file.
68629         * tests/test-mbsstr2.c: New file.
68630         * tests/test-mbsstr3.sh: New file.
68631         * tests/test-mbsstr3.c: New file.
68632         * m4/locale-fr.m4: New file.
68633
68634 2007-02-11  Bruno Haible  <bruno@clisp.org>
68635
68636         * lib/mbsrchr.c (mbsrchr): Fix bug.
68637
68638         * modules/mbsrchr-tests: New file.
68639         * tests/test-mbsrchr.sh: New file.
68640         * tests/test-mbsrchr.c: New file.
68641
68642 2007-02-11  Bruno Haible  <bruno@clisp.org>
68643
68644         * lib/mbschr.c (mbschr): Fix bug.
68645
68646         * modules/mbschr-tests: New file.
68647         * tests/test-mbschr.sh: New file.
68648         * tests/test-mbschr.c: New file.
68649         * m4/locale-zh.m4: New file.
68650
68651 2007-02-11  Bruno Haible  <bruno@clisp.org>
68652
68653         Support for copying multibyte string iterators.
68654         * lib/mbiter.h: Include <string.h>.
68655         (mbiter_multi_copy): New function.
68656         (mbi_copy): New macro.
68657         * lib/mbuiter.h: Include <string.h>.
68658         (mbuiter_multi_copy): New function.
68659         (mbui_copy): New macro.
68660
68661 2007-02-11  Bruno Haible  <bruno@clisp.org>
68662
68663         New module mbslen.
68664         * modules/mbslen: New file.
68665         * lib/mbslen.c: New file.
68666         * lib/string_.h (mbslen): New declaration.
68667         * m4/mbslen.m4: New file.
68668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68669         GNULIB_MBSLEN.
68670         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68671         * MODULES.html.sh (Internationalization functions): Add mbslen.
68672
68673 2007-02-11  Bruno Haible  <bruno@clisp.org>
68674
68675         Ensure O(n) worst-case complexity of strcasestr substitute.
68676         * lib/strcasestr.c: Include stdbool.h.
68677         (knuth_morris_pratt): New function.
68678         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68679         bookkeeping indicates that it's worth it.
68680         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68681
68682         * modules/strcasestr-tests: New file.
68683         * tests/test-strcasestr.c: New file.
68684
68685 2007-02-11  Bruno Haible  <bruno@clisp.org>
68686
68687         Ensure O(n) worst-case complexity of c_strcasestr.
68688         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68689         (knuth_morris_pratt): New function.
68690         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68691         the bookkeeping indicates that it's worth it.
68692         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68693
68694         * modules/c-strcasestr-tests: New file.
68695         * tests/test-c-strcasestr.c: New file.
68696
68697 2007-02-11  Bruno Haible  <bruno@clisp.org>
68698
68699         Ensure O(n) worst-case complexity of c_strstr.
68700         * lib/c-strstr.c: Include stdbool.h, string.h.
68701         (knuth_morris_pratt): New function.
68702         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68703         bookkeeping indicates that it's worth it.
68704         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68705
68706         * lib/c-strstr.c: Complete rewrite for maintainability.
68707
68708         * modules/c-strstr-tests: New file.
68709         * tests/test-c-strstr.c: New file.
68710
68711 2007-02-11  Bruno Haible  <bruno@clisp.org>
68712
68713         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68714         5.2.1 and earlier, whereby \055 was treated just like the range
68715         delimiter '-'.
68716         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68717
68718 2007-02-08  Bruno Haible  <bruno@clisp.org>
68719
68720         * modules/regex (Depends-on): Add stdbool.
68721         Reported by Dalibor Topic <robilad@kaffe.org>.
68722
68723 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68724
68725         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68726         Prefer returning from main to exiting from it.
68727         Remove unnecessary parens after sizeof.
68728
68729 2007-02-05  Bruno Haible  <bruno@clisp.org>
68730
68731         New module mbssep.
68732         * modules/mbssep: New file.
68733         * lib/mbssep.c: New file.
68734         * lib/string_.h (strsep): Add a conditional link warning.
68735         (mbssep): New declaration.
68736         * m4/mbssep.m4: New file.
68737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68738         GNULIB_MBSSEP.
68739         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68740         * MODULES.html.sh (Internationalization functions): Add mbssep.
68741
68742 2007-02-05  Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68745         Optimize search in case of 1 delimiter.
68746
68747 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68748
68749         * lib/acl.h: Include sys/types.h before sys/acl.h.
68750
68751 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68752
68753         Merge upstream fix for glibc bugzilla #3957:
68754
68755         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68756
68757         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68758         bit for RE_HAT_LISTS_NOT_NEWLINE.
68759         (build_charclass_op): Remove bogus comment.
68760
68761 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68762
68763         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68764
68765 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68768         * lib/memmem.c [!defined _LIBC]: Include config.h.
68769
68770 2007-02-04  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68773         warning message.
68774
68775 2007-02-04  Bruno Haible  <bruno@clisp.org>
68776
68777         New module mbstok_r.
68778         * modules/mbstok_r: New file.
68779         * lib/mbstok_r.c: New file.
68780         * lib/string_.h (strtok_r): Change argument names to match the
68781         comments. Add a conditional link warning.
68782         (mbstok_r): New declaration.
68783         * m4/mbstok_r.m4: New file.
68784         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68785         GNULIB_MBSTOK_R.
68786         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68787         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68788
68789 2007-02-04  Bruno Haible  <bruno@clisp.org>
68790
68791         New module mbsspn.
68792         * modules/mbsspn: New file.
68793         * lib/mbsspn.c: New file.
68794         * lib/string_.h (strspn): Add a conditional link warning.
68795         (mbsspn): New declaration.
68796         * m4/mbsspn.m4: New file.
68797         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68798         GNULIB_MBSSPN.
68799         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68800         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68801
68802 2007-02-04  Bruno Haible  <bruno@clisp.org>
68803
68804         New module mbspbrk.
68805         * modules/mbspbrk: New file.
68806         * lib/mbspbrk.c: New file.
68807         * lib/string_.h (strpbrk): Add a conditional link warning.
68808         (mbspbrk): New declaration.
68809         * m4/mbspbrk.m4: New file.
68810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68811         GNULIB_MBSPBRK.
68812         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68813         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68814
68815 2007-02-04  Bruno Haible  <bruno@clisp.org>
68816
68817         New module mbscspn.
68818         * modules/mbscspn: New file.
68819         * lib/mbscspn.c: New file.
68820         * lib/string_.h (strcspn): Add a conditional link warning.
68821         (mbscspn): New declaration.
68822         * m4/mbscspn.m4: New file.
68823         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68824         GNULIB_MBSCSPN.
68825         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68826         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68827
68828 2007-02-04  Bruno Haible  <bruno@clisp.org>
68829
68830         New module mbscasestr, reduced goal of strcasestr.
68831         * modules/mbscasestr: New file.
68832         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68833         (mbscasestr): Renamed from strcasestr.
68834         * lib/strcasestr.c: Don't include mbuiter.h.
68835         (strcasestr): Remove support for multibyte locales.
68836         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68837         Change the conditional link warning.
68838         (mbscasestr): New declaration.
68839         * m4/mbscasestr.m4: New file.
68840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68841         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68842         REPLACE_STRCASESTR.
68843         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68845         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68846         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68847         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68848         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68849         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68850         (Depends-on): Remove mbuiter.
68851         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68852
68853 2007-02-04  Bruno Haible  <bruno@clisp.org>
68854
68855         Simplify handling of strncasecmp.
68856         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68857         the conditional link warning.
68858         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68859         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68860         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68861         * modules/strcase (configure.ac): Don't invoke
68862         gl_STRING_MODULE_INDICATOR.
68863         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68864
68865 2007-02-04  Bruno Haible  <bruno@clisp.org>
68866
68867         New module mbscasecmp, reduced goal of strcasecmp.
68868         * modules/mbscasecmp: New file.
68869         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68870         (mbscasecmp): Renamed from strcasecmp.
68871         * lib/strcasecmp.c: Don't include mbuiter.h.
68872         (strcasecmp): Remove support for multibyte locales.
68873         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68874         Change the conditional link warning.
68875         (mbscasecmp): New declaration.
68876         * m4/mbscasecmp.m4: New file.
68877         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68878         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68879         REPLACE_STRCASECMP.
68880         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68882         GNULIB_MBSCASECMP.
68883         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68884         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68885         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68886         (Depends-on): Remove mbuiter.
68887         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68888
68889 2007-02-04  Bruno Haible  <bruno@clisp.org>
68890
68891         New module mbsstr. Remove module strstr.
68892         * modules/mbsstr: New file.
68893         * modules/strstr: Remove file.
68894         * lib/mbsstr.c: Renamed from lib/strstr.c.
68895         (mbsstr): Renamed from strstr.
68896         * lib/string_.h (strstr): Remove declaration. Change the conditional
68897         link warning.
68898         (mbsstr): New declaration.
68899         * m4/mbsstr.m4: New file.
68900         * m4/strstr.m4: Remove file.
68901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68902         REPLACE_STRSTR.
68903         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68904         Don't initialize GNULIB_STRSTR.
68905         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68906         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68907         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68908         (Support for systems lacking ANSI C 89): Remove strstr.
68909
68910 2007-02-04  Bruno Haible  <bruno@clisp.org>
68911
68912         New module mbsrchr.
68913         * modules/mbsrchr: New file.
68914         * lib/mbsrchr.c: New file.
68915         * lib/string_.h (strrchr): Add a conditional link warning.
68916         (mbsrchr): New declaration.
68917         * m4/mbsrchr.m4: New file.
68918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68919         GNULIB_MBSRCHR.
68920         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68921         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68922
68923 2007-02-04  Bruno Haible  <bruno@clisp.org>
68924
68925         New module mbschr.
68926         * modules/mbschr: New file.
68927         * lib/mbschr.c: New file.
68928         * lib/string_.h (strchr): Add a conditional link warning.
68929         (mbschr): New declaration.
68930         * m4/mbschr.m4: New file.
68931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68932         GNULIB_MBSCHR.
68933         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68934         * MODULES.html.sh (Internationalization functions): Add mbschr.
68935
68936 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68939
68940         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68941
68942 2007-02-04  Bruno Haible  <bruno@clisp.org>
68943
68944         New module description section 'configure.ac-early'.
68945         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68946         (func_get_autoconf_early_snippet): New function.
68947         (func_import, func_create_testdir): Use it. Remove special cases for
68948         modules 'extensions' and 'lock'.
68949         * modules/extensions (configure.ac-early): Require
68950         gl_USE_SYSTEM_EXTENSIONS.
68951         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68952
68953 2007-02-04  Bruno Haible  <bruno@clisp.org>
68954
68955         Make use of gcj-4.3's -fsource and -ftarget option.
68956         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68957         and if so try the options -fsource and -ftarget.
68958         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68959         source_version, ftarget_option, target_version arguments.
68960         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68961         (is_envjavac_oldgcj_14_14_usable): Renamed from
68962         is_envjavac_gcj_14_14_usable.
68963         (is_envjavac_oldgcj_14_13_usable): Renamed from
68964         is_envjavac_gcj_14_13_usable.
68965         (is_gcj_present): Update.
68966         (is_gcj_43, is_gcj43_usable): New functions.
68967         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68968         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68969         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68970         try the options -fsource and -ftarget.
68971
68972 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68975         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68976         larger value.
68977
68978 2007-02-03  Jim Meyering  <jim@meyering.net>
68979
68980         Give tools a better chance to allocate space for very large buffers.
68981         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68982
68983         Make pwd and readlink work also when run with an unreadable parent dir
68984         on systems with openat support.
68985         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68986         provided getcwd function, even when we have openat support.
68987         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68988
68989 2007-02-02  Bruno Haible  <bruno@clisp.org>
68990
68991         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68992         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68993         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68994         portability problems if one of these functions is only used on specific
68995         platforms.
68996         Reported by Paul Eggert.
68997
68998 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69001         is causing more trouble than it's curing.
69002         * lib/regex_internal.h (__mempcpy): Remove.
69003         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69004         (and make the code a tad smaller to boot).
69005         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69006
69007 2007-02-02  Jim Meyering  <jim@meyering.net>
69008
69009         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69010         section, not in the Makefile.am: one.
69011
69012 2007-02-02  Eric Blake  <ebb9@byu.net>
69013
69014         * lib/strchrnul.c: Always include config.h first.
69015
69016         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69017         gnulib strstr is not necessary here.
69018
69019 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69020
69021         * m4/socklen.m4: Fix typo.
69022
69023 2007-02-02  Eric Blake  <ebb9@byu.net>
69024
69025         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69026         * modules/netinet_in (Makefile.am): Likewise.
69027
69028 2007-02-01  Bruno Haible  <bruno@clisp.org>
69029
69030         * lib/string_.h (GL_LINK_WARNING): New macro.
69031         (strcasecmp, strstr, strcasestr): If provided by the system,
69032         conditionally define as a macro that leads to a warning instead of to
69033         an error.
69034         (strncasecmp): Conditionally define as a macro that leads to a warning.
69035
69036 2007-02-01  Karl Berry  <karl@gnu.org>
69037
69038         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69039
69040 2007-02-01  Bruno Haible  <bruno@clisp.org>
69041
69042         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69043         renamings.
69044
69045 2007-02-01  Eric Blake  <ebb9@byu.net>
69046
69047         * modules/regex (Depends-on): Revert dependence on mempcpy.
69048         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69049         module's definition of mempcpy.
69050         Reported by Paul Eggert.
69051
69052 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69055         the symbol XYZ before redefining it.  This fixes a problem with
69056         programs that don't use XYZ, when compiled on systems that define
69057         XYZ to something else.
69058
69059 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69060
69061         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69062         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69063         writeable to group or other and (2) is intended to have a special
69064         mode bit that is set or cleared.  In such a case, the directory
69065         should be neither group- nor other-writeable until the special
69066         mode bits are right.
69067
69068 2007-01-31  Eric Blake  <ebb9@byu.net>
69069
69070         * modules/mountlist (Depends-on): Add strstr.
69071
69072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69073         bug.
69074         * modules/string (Makefile.am): Remove redundant replacement.
69075         * modules/regex (Depends-on): Add mempcpy.
69076
69077 2007-01-31  Bruno Haible  <bruno@clisp.org>
69078
69079         New module description field 'Link'.
69080         * gnulib-tool (func_usage): Document --extract-link-directive.
69081         (sed_extract_prog): Recognize 'Link' directive.
69082         (func_get_link_directive): New function.
69083         (func_import): Show summary of link directives.
69084         Handle --extract-link-directive option.
69085         * modules/acl (Link): New section.
69086         * modules/clock-time (Link): New section.
69087         * modules/euidaccess (Link): New section.
69088         * modules/gettext (Link): New section.
69089         * modules/iconv (Link): New section.
69090         * modules/lock (Link): New section.
69091         * modules/nanosleep (Link): New section.
69092         * modules/readline (Link): New section.
69093
69094 2007-01-27  Bruno Haible  <bruno@clisp.org>
69095
69096         Enforce the use of gnulib modules for unportable <string.h> functions.
69097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69098         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69099         (gl_HEADER_STRING_H_BODY): Require it.
69100         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69101         the symbol XYZ to one that gives a link error.
69102         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69103         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69104         * modules/mempcpy (configure.ac): Likewise.
69105         * modules/memrchr (configure.ac): Likewise.
69106         * modules/stpcpy (configure.ac): Likewise.
69107         * modules/stpncpy (configure.ac): Likewise.
69108         * modules/strcase (configure.ac): Likewise.
69109         * modules/strcasestr (configure.ac): Likewise.
69110         * modules/strchrnul (configure.ac): Likewise.
69111         * modules/strdup (configure.ac): Likewise.
69112         * modules/strndup (configure.ac): Likewise.
69113         * modules/strnlen (configure.ac): Likewise.
69114         * modules/strpbrk (configure.ac): Likewise.
69115         * modules/strsep (configure.ac): Likewise.
69116         * modules/strstr (configure.ac): Likewise.
69117         * modules/strtok_r (configure.ac): Likewise.
69118
69119 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69120
69121         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69122
69123 2007-01-30  Jim Meyering  <jim@meyering.net>
69124
69125         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69126
69127 2007-01-29  Bruno Haible  <bruno@clisp.org>
69128
69129         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69130         * lib/execute.c: Likewise.
69131         * lib/pipe.c: Likewise.
69132         * lib/printf-args.h: Likewise.
69133         * lib/printf-args.c: Likewise.
69134         * lib/printf-parse.c: Likewise.
69135         * lib/vasnprintf.c: Likewise.
69136
69137 2007-01-29  Eric Blake  <ebb9@byu.net>
69138
69139         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69140         declaration.
69141
69142 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * lib/strptime.h (strptime): Use 'restrict' for args where
69145         POSIX requires this.
69146         * lib/strptime.c (strptime): Likewise.
69147         Change license notice from LGPL to GPL, since gnulib-tool will
69148         change this as needed.
69149         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69150         defined.
69151         Include "strptime.h" first, to check interface.
69152         Do not #undef _LIBC and _NL_CURRENT.
69153         Do not include <stdlib.h>; no longer needed.
69154         Include "time_r.h" and declare ptime_locale_status
69155         only if _LIBC is not defined.
69156         (__P): Remove unused macro.
69157         (match_string): Bring back glibc version, but use it only if _LIBC
69158         is defined.
69159         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69160         Remove unnecessary assertion and abort() call.
69161         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69162         * m4/strptime.m4: Fix serial number comment.
69163         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69164         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69165         (Depends-on): Add time_r.
69166
69167 2007-01-29  Bruno Haible  <bruno@clisp.org>
69168
69169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69170         strptime.
69171         * modules/strptime (Depends-on): Add stdbool.
69172         * lib/strptime.h: Include <time.h> always. Add comments.
69173
69174 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69175
69176         * modules/strptime: New file.
69177         * lib/strptime.h: New file.
69178         * lib/strptime.c: New file.
69179         * m4/strptime.m4: New file.
69180
69181 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * MODULES.html.sh: New module mpsort.
69184         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69185
69186         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69187         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69189         All uses changed.
69190         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69191         All uses changed.
69192         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69193         to _Restrict_.
69194         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69195         the parameter matches the prototype.
69196
69197 2007-01-28  Jim Meyering  <jim@meyering.net>
69198
69199         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69200         sys/time.h here, reverting that part of the previous patch:
69201         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69202
69203 2007-01-28  Bruno Haible  <bruno@clisp.org>
69204
69205         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69206         value of $(SYS_TIME_H).
69207         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69208         remove it conditionally, too. [added by Jim Meyering]
69209         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69211         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69212         GETTIMEOFDAY_REPLACEMENT to 1.
69213
69214 2007-01-28  Bruno Haible  <bruno@clisp.org>
69215
69216         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69217         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69219         Set UNISTD_H instead of UNISTD_H2.
69220         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69221
69222 2007-01-28  Bruno Haible  <bruno@clisp.org>
69223
69224         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69225         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69226
69227 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69228
69229         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69230         (func_create_testdir): Ensure C locale for `grep' and `tr'
69231         character ranges.
69232         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69233         ACLOCAL_AMFLAGS parsing state machine.
69234
69235 2007-01-27  Bruno Haible  <bruno@clisp.org>
69236
69237         * modules/unistr/base: Update.
69238
69239 2007-01-27  Bruno Haible  <bruno@clisp.org>
69240
69241         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69242         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69243         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69244         modules/unistr/u32-mbtouc.
69245         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69246         * lib/unistr.h: Update.
69247         * lib/linebreak.c: Update.
69248         * modules/unistr/u32-mbtouc: Renamed from
69249         modules/unistr/u32-mbtouc-safe.
69250         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69251         * lib/unistr.h: Update.
69252         * lib/unistr/u32-to-u8.c: Update.
69253         * lib/unistr/u32-to-u16.c: Update.
69254
69255 2007-01-27  Bruno Haible  <bruno@clisp.org>
69256
69257         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69258         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69259         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69260         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69261         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69262         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69263         modules/unistr/u16-mbtouc.
69264         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69265         * lib/unistr.h: Update.
69266         * lib/linebreak.c: Update.
69267         * modules/linebreak: Update.
69268         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69269         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69270         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69271         * modules/unistr/u16-mbtouc: Renamed from
69272         modules/unistr/u16-mbtouc-safe.
69273         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69274         * lib/unistr.h: Update.
69275         * lib/unistr/u16-to-u8.c: Update.
69276         * modules/unistr/u16-to-u8: Update.
69277         * lib/unistr/u16-to-u32.c: Update.
69278         * modules/unistr/u16-to-u32: Update.
69279
69280 2007-01-27  Bruno Haible  <bruno@clisp.org>
69281
69282         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69283         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69284         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69285         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69286         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69287         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69288         modules/unistr/u8-mbtouc.
69289         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69290         * lib/unistr.h: Update.
69291         * lib/striconveh.c: Update.
69292         * modules/striconveh: Update.
69293         * lib/linebreak.c: Update.
69294         * modules/linebreak: Update.
69295         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69296         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69297         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69298         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69299         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69300         * lib/unistr.h: Update.
69301         * lib/striconveh.c: Update.
69302         * modules/striconveh: Update.
69303         * lib/unistr/u8-to-u16.c: Update.
69304         * modules/unistr/u8-to-u16: Update.
69305         * lib/unistr/u8-to-u32.c: Update.
69306         * modules/unistr/u8-to-u32: Update.
69307
69308 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69309
69310         Sync from Libtool.
69311         * lib/argz.c: Do not include strings.h nor memory.h, include
69312         string.h unconditionally.  Patch by Simon Josefsson.
69313
69314 2007-01-27  Bruno Haible  <bruno@clisp.org>
69315
69316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69317         from gl_HEADER_STRING_H_BODY.
69318         (gl_HEADER_STRING_H_BODY): Require it.
69319         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69320         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69321         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69322         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69324         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69326         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69327         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69328         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69329         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69330         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69331         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69332         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69333         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69334
69335 2007-01-27  Bruno Haible  <bruno@clisp.org>
69336
69337         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69338         check_PROGRAMS into noinst_PROGRAMS.
69339         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69340         check_PROGRAMS in this case.
69341         (func_import): Set for_test to false.
69342         (func_create_testdir): Set for_test to true.
69343
69344 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69345             Bruno Haible  <bruno@clisp.org>
69346
69347         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69348         (Depends-on): Add string.
69349         (Includes): Use <string.h> instead of strcasestr.h.
69350         * modules/string (Makefile.am): Also substitute the value of
69351         REPLACE_STRCASESTR.
69352         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69353         assume strcasestr is declared in <string.h> not <strings.h>. Also
69354         set REPLACE_STRCASESTR.
69355         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69356         REPLACE_STRCASESTR.
69357         * lib/strcasestr.h: Remove file.
69358         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69359         * lib/string_.h (strcasestr): New declaration.
69360
69361 2007-01-27  Bruno Haible  <bruno@clisp.org>
69362
69363         * lib/string_.h: Use 'extern'.
69364
69365 2007-01-27  Jim Meyering  <jim@meyering.net>
69366
69367         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69368         of set-but-not-used local, "q".
69369
69370         * lib/mempcpy.c: Include <config.h> before <string.h>.
69371         This fixes a compilation error on HP-UX, due to the system's
69372         "restrict"-using mempcpy prototype.
69373
69374 2007-01-26  Bruno Haible  <bruno@clisp.org>
69375
69376         Small optimization.
69377         * lib/javacomp.c: Include c-strstr.h.
69378          (is_envjavac_gcj): Use c_strstr instead of strstr.
69379         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69380
69381 2007-01-26  Bruno Haible  <bruno@clisp.org>
69382
69383         * MODULES.html.sh (Unicode string functions): Add the new modules.
69384
69385         * modules/uniconv/u32-strconv-to-locale: New file.
69386         * lib/uniconv/u32-strconv-to-locale.c: New file.
69387
69388         * modules/uniconv/u16-strconv-to-locale: New file.
69389         * lib/uniconv/u16-strconv-to-locale.c: New file.
69390
69391         * modules/uniconv/u8-strconv-to-locale: New file.
69392         * lib/uniconv/u8-strconv-to-locale.c: New file.
69393
69394         * modules/uniconv/u32-strconv-from-locale: New file.
69395         * lib/uniconv/u32-strconv-from-locale.c: New file.
69396
69397         * modules/uniconv/u16-strconv-from-locale: New file.
69398         * lib/uniconv/u16-strconv-from-locale.c: New file.
69399
69400         * modules/uniconv/u8-strconv-from-locale: New file.
69401         * lib/uniconv/u8-strconv-from-locale.c: New file.
69402
69403         * modules/uniconv/u32-strconv-to-enc: New file.
69404         * lib/uniconv/u32-strconv-to-enc.c: New file.
69405         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69406         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69407
69408         * modules/uniconv/u16-strconv-to-enc: New file.
69409         * lib/uniconv/u16-strconv-to-enc.c: New file.
69410         * lib/uniconv/u-strconv-to-enc.h: New file.
69411         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69412         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69413
69414         * modules/uniconv/u8-strconv-to-enc: New file.
69415         * lib/uniconv/u8-strconv-to-enc.c: New file.
69416         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69417         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69418
69419         * modules/uniconv/u32-strconv-from-enc: New file.
69420         * lib/uniconv/u32-strconv-from-enc.c: New file.
69421         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69422         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69423
69424         * modules/uniconv/u16-strconv-from-enc: New file.
69425         * lib/uniconv/u16-strconv-from-enc.c: New file.
69426         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69427         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69428
69429         * modules/uniconv/u8-strconv-from-enc: New file.
69430         * lib/uniconv/u8-strconv-from-enc.c: New file.
69431         * lib/uniconv/u-strconv-from-enc.h: New file.
69432         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69433         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69434
69435         * modules/uniconv/u32-conv-from-enc: New file.
69436         * lib/uniconv/u32-conv-from-enc.c: New file.
69437         * modules/uniconv/u32-conv-from-enc-tests: New file.
69438         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69439
69440         * modules/uniconv/u16-conv-from-enc: New file.
69441         * lib/uniconv/u16-conv-from-enc.c: New file.
69442         * lib/uniconv/u-conv-from-enc.h: New file.
69443         * modules/uniconv/u16-conv-from-enc-tests: New file.
69444         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69445
69446         * modules/uniconv/u8-conv-from-enc: New file.
69447         * lib/uniconv/u8-conv-from-enc.c: New file.
69448         * modules/uniconv/u8-conv-from-enc-tests: New file.
69449         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69450
69451         * modules/uniconv/base: New file.
69452         * lib/uniconv.h: New file.
69453
69454 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * doc/gnulib-tool.texi (Initial import): Update to match current
69457         behavior with strdup module.
69458         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69459         * lib/memmem.h: Remove; all uses removed.  This is now done
69460         by <string.h>.
69461         * lib/mempcpy.h: Likewise.
69462         * lib/memrchr.h: Likewise.
69463         * lib/stpcpy.h: Likewise.
69464         * lib/stpncpy.h: Likewise.
69465         * lib/strcase.h: Likewise.
69466         * lib/strchrnul.h: Likewise.
69467         * lib/strdup.h: Likewise.
69468         * lib/strndup.h: Likewise.
69469         * lib/strnlen.h: Likewise.
69470         * lib/strpbrk.h: Likewise.
69471         * lib/strsep.h: Likewise.
69472         * lib/strstr.h: Likewise.
69473         * lib/strtok_r.h: Likewise.
69474         * lib/string_.h: New file.
69475         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69476         Rely on <string.h> instead.
69477         * lib/canon-host.c: Likewise.
69478         * lib/chdir-long.c: Likewise.
69479         * lib/concatpath.c: Likewise.
69480         * lib/exclude.c: Likewise.
69481         * lib/fchdir.c: Likewise.
69482         * lib/getaddrinfo.c: Likewise.
69483         * lib/getcwd.c: Likewise.
69484         * lib/getsubopt.c: Likewise.
69485         * lib/glob.c: Likewise.
69486         * lib/hard-locale.c: Likewise.
69487         * lib/iconvme.c: Likewise.
69488         * lib/javacomp.c: Likewise.
69489         * lib/mempcpy.c: Likewise.
69490         * lib/memrchr.c: Likewise.
69491         * lib/regex_internal.h: Likewise.
69492         * lib/stpncpy.c: Likewise.
69493         * lib/strcasecmp.c: Likewise.
69494         * lib/strchrnul.c: Likewise.
69495         * lib/strdup.c: Likewise.
69496         * lib/striconv.c: Likewise.
69497         * lib/striconveh.c: Likewise.
69498         * lib/striconveha.c: Likewise.
69499         * lib/strncasecmp.c: Likewise.
69500         * lib/strndup.c: Likewise.
69501         * lib/strnlen.c: Likewise.
69502         * lib/strsep.c: Likewise.
69503         * lib/strstr.c: Likewise.
69504         * lib/strtok_r.c: Likewise.
69505         * lib/userspec.c: Likewise.
69506         * lib/w32spawn.h: Likewise.
69507         * lib/xstrndup.c: Likewise.
69508         * lib/mountlist.c (strstr): Remove decl.
69509         * m4/string_h.m4: New file.
69510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69511         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69512         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69513         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69514         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69515         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69516         Set REPLACE_STRCASECMP if necessary.
69517         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69518         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69519         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69520         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69521         HAVE_DECL_STRDUP if necessary.
69522         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69523         since gl_FUNC_STRNDUP does that now.
69524         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69525         Check for decl here...
69526         (gl_PREREQ_STRNLEN): ... not here.
69527         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69528         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69529         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69530         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69531         necessary.
69532         * modules/string: New file.
69533         * modules/memmem (Files): Remove special-purpose include file.
69534         (Depends-on): Add string.
69535         (Include): Include <string.h>, not the removed file.
69536         * modules/mempcpy: Likewise.
69537         * modules/memrchr: Likewise.
69538         * modules/stpcpy: Likewise.
69539         * modules/stpncpy: Likewise.
69540         * modules/strcase: Likewise.
69541         * modules/strchrnul: Likewise.
69542         * modules/strdup: Likewise.
69543         * modules/strndup: Likewise.
69544         * modules/strnlen: Likewise.
69545         * modules/strpbrk: Likewise.
69546         * modules/strsep: Likewise.
69547         * modules/strstr: Likewise.
69548         * modules/strtok_r: Likewise.
69549         * tests/test-dirname.c: Don't include "strdup.h", since
69550         <string.h> now suffices.
69551         * tests/test-memmem.c: Don't include "memmem.h", since
69552         <string.h> now suffices.
69553
69554 2007-01-25  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69557         *resultp is 0.
69558
69559         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69560         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69561         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69562         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69563
69564         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69565         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69566         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69567         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69568         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69569         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69570
69571 2007-01-24  Bruno Haible  <bruno@clisp.org>
69572
69573         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69575         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69576         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69577         gl_FUNC_FTS_CORE.
69578         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69579         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69580         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69581         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69582         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69583         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69584         gl_FUNC_FCHOWNAT.
69585         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69586         gl_FUNC_STRFTIME.
69587         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69588         Reported by Ralf Wildenhues.
69589
69590 2007-01-24  Bruno Haible  <bruno@clisp.org>
69591
69592         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69593         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69594         gl_GETADDRINFO.
69595         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69596         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69597         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69598
69599 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69600
69601         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69602         Don't use 'exit'; just return from 'main'.
69603         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69604
69605         * lib/fnmatch_.h: Readjust white space and comments to match
69606         glibc, to avoid spurious diffs.
69607
69608 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69611         2004-12-01 change by Jakub Jelinek, since this code won't compile
69612         if !LIBC.  Problem reported by Bob Proulx.
69613
69614 2007-01-23  Bruno Haible  <bruno@clisp.org>
69615
69616         * lib/striconveh.c: Include c-strcaseeq.h.
69617         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69618         * modules/striconveh (Depends-on): Add c-strcaseeq.
69619
69620 2007-01-23  Bruno Haible  <bruno@clisp.org>
69621
69622         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69623
69624         * modules/c-strcaseeq: New file.
69625         * lib/c-strcaseeq.h: New file.
69626
69627         * modules/streq: New file.
69628         * lib/streq.h: New file.
69629
69630 2007-01-23  Bruno Haible  <bruno@clisp.org>
69631
69632         * modules/striconveha-tests: New file.
69633         * tests/test-striconveha.c: New file.
69634
69635         * lib/striconveha.h: Include <stdbool.h>.
69636         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69637         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69638         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69639         (mem_iconveha): New function.
69640         (str_iconveha_notranslit): Renamed from str_iconveha.
69641         (str_iconveha): New function.
69642         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69643         c-strcase.
69644
69645 2007-01-23  Bruno Haible  <bruno@clisp.org>
69646
69647         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69648         encodings without forgiving before trying any encoding with handler.
69649         (str_iconveha): Try all encodings without forgiving before trying any
69650         encoding with handler.
69651
69652 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         Import the following changes from libc.
69655
69656         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69657
69658         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69659
69660         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69661
69662         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69663         normal_bracket label.
69664
69665         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69666
69667         [BZ #361]
69668         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69669         to normal_bracket after fetching the next character.
69670
69671 2007-01-22  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69674         argument.
69675         * lib/striconveh.c (iconv_carefully_1): New function.
69676         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69677         argument.
69678         (str_cd_iconveh): Update.
69679         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69680         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69681         * tests/test-striconveh.c (MAGIC): New macro.
69682         (new_offsets): New function.
69683         (main): Test call with and without offsets.
69684
69685 2007-01-22  Bruno Haible  <bruno@clisp.org>
69686
69687         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69688         * modules/sys_select (Makefile.am): Likewise.
69689         * modules/sys_socket (Makefile.am): Likewise.
69690         * modules/sys_time (Makefile.am): Likewise.
69691
69692 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * modules/gettimeofday (License): Change from GPL to LGPL, since
69695         gettimeofday is a library function.
69696
69697 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69698
69699         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69700
69701 2007-01-21  Bruno Haible  <bruno@clisp.org>
69702
69703         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69704
69705 2007-01-21  Bruno Haible  <bruno@clisp.org>
69706
69707         * modules/striconveha: New file.
69708         * lib/striconveha.h: New file.
69709         * lib/striconveha.c: New file.
69710         * MODULES.html.sh (Internationalization functions): Add striconveha.
69711         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69712         string.
69713         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69714
69715 2007-01-21  Bruno Haible  <bruno@clisp.org>
69716
69717         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69718         * lib/striconveh.c (str_iconveh): Likewise.
69719
69720 2007-01-21  Bruno Haible  <bruno@clisp.org>
69721
69722         * lib/striconveh.h (mem_iconveh): New declaration.
69723         * lib/striconveh.c (mem_iconveh): New function.
69724         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69725
69726 2007-01-21  Bruno Haible  <bruno@clisp.org>
69727
69728         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69729
69730         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69731         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69732         original result buffer.
69733         (str_cd_iconveh): Update.
69734         * tests/test-striconveh.c (main): Update.
69735
69736         * lib/striconv.h (mem_cd_iconv): Change specification.
69737         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69738         result buffer.
69739         (str_cd_iconv): Update.
69740         * tests/test-striconv.c (main): Update.
69741
69742 2007-01-21  Bruno Haible  <bruno@clisp.org>
69743
69744         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69745
69746 2007-01-20  Jim Meyering  <jim@meyering.net>
69747
69748         * lib/userspec.c (parse_with_separator): If a user or group string
69749         starts with "+", skip the corresponding name-to-ID look-up, since
69750         such a look-up must fail: user and group names may not include "+".
69751
69752 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69755         since we now assume the sys_time module.
69756         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69757         check for sys/time.h; no longer needed.
69758         * modules/poll (Depends-on): Depend on sys_time.
69759
69760 2007-01-18  Bruno Haible  <bruno@clisp.org>
69761
69762         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69763         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69764
69765         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69766         gettimeofday.
69767
69768         * tests/test-gettimeofday.c: Include <time.h>.
69769         (dummy): Remove variable.
69770
69771         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69772         gl_HEADER_SYS_TIME_H.
69773         (gl_HEADER_SYS_TIME_H): New macro.
69774
69775         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69776         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69778         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69779         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69780         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69781         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69782         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69783         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69784         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69785         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69786
69787         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69788         last change; it caused a compilation error when cross-compiling to
69789         Cygwin.
69790
69791 2007-01-18  Jim Meyering  <jim@meyering.net>
69792
69793         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69794         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69795         than the race-prone "test -d sys || mkdir sys".
69796         (configure.ac): Use AC_PROG_MKDIR_P.
69797         * modules/sys_select: Likewise.
69798         * modules/sys_socket: Likewise.
69799         * modules/sys_time: Likewise.
69800
69801 2007-01-18  Eric Blake  <ebb9@byu.net>
69802
69803         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69804         replace gettimeofday.
69805         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69806         name, to avoid infinite recursion.
69807
69808 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69811         module sys_time.
69812         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69813         assume timespec.h defines struct timeval.
69814         * lib/settime.c: Likewise.
69815         * lib/utimens.c: Likewise.
69816         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69817         since we now assume the gettimeofday module.
69818         * lib/tempname.c (__gen_tempname): Likewise.
69819         * lib/gettimeofday.h: Remove.
69820         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69821         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69822         Include <time.h>, for 'time()'.
69823         (localtime_buffer_addr): Also use this workaround if
69824         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69825         to simplify the uses.  All uses changed.
69826         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69827         that #undef is inside {}, and 'const' follows type name consistently.
69828         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69829         (gettimeofday): Do not use the maximum possible value for
69830         tv->tv_usec, since that might break usages other than ls.c.
69831         Instead, we'll leave ls.c alone.  This undoes today's patch
69832         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69833         we've never observed the problem but might as well keep the
69834         canary.
69835         * lib/nanosleep.c: Include timespec.h first, for interface check.
69836         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69837         now assume the sys_time module.
69838         * lib/tempname.c: Likewise.
69839         * lib/timespec.h: Likewise.
69840         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69841         needed.
69842         * lib/strftime.c: Likewise.
69843         * lib/timespec.h: Likewise.
69844         * lib/posixtm.c: Include posixtm.h first, for interface check.
69845         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69846         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69847         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69848         * lib/sys_time_.h: New file.
69849         * lib/timespec.h (struct timespec): Use long int, not long.
69850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69851         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69852         Remove obsolescent call to AC_HEADER_TIME.
69853         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69855         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69856         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69857         Likewise.
69858         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69859         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69861         into the sys_time module.  Check for gettimeofday just once.
69862         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69863         for gettimeofday signature to just check the signature.  Merely
69864         compile it, since linking doesn't test signature.  Improve test for
69865         whether gettimeofday.o is actually needed.
69866         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69867         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69868         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69869         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69870         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69871         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69872         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69873         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69874         than worrying about sys/time.h.
69875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69876         Don't bother worrying about TIME_WITH_SYS_TIME.
69877         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69878         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69879         * m4/sys_time_h.m4: New file.
69880         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69881         Don't include sys/time.h.  Return from main rather than exiting.
69882         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69883         all uses changed.
69884         * modules/gethrxtime (Depends-on): Add sys_time.
69885         * modules/gettime (Depends-on): Likewise.
69886         * modules/gettimeofday (Depends-on): Likewise.
69887         * modules/nanosleep (Depends-on): Likewise.
69888         * modules/settime (Depends-on): Likewise.
69889         * modules/tempname (Depends-on): Likewise.
69890         * modules/utimens (Depends-on): Likewise.
69891         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69892         (Include): Change back to <sys/time.h>.
69893         (Maintainer): Add self.
69894         * modules/sys_time: New file.
69895         * modules/tempname (Depends-on): Add gettimeofday.
69896         * tests/test-gettimeofday.c: Include <sys/time.h>
69897         rather than gettimeofday.h.
69898
69899 2007-01-17  Bruno Haible  <bruno@clisp.org>
69900
69901         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69902         the license default to GPL.
69903         (func_create_testdir): Don't complain if a module is LGPL and its
69904         tests module depends on GPLed modules.
69905
69906 2007-01-17  Bruno Haible  <bruno@clisp.org>
69907
69908         * lib/gettimeofday.c (gettimeofday): Add code for the case
69909         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69910         maximum possible value for tv->tv_usec, rather than the minimum one.
69911
69912 2005-10-08  Martin Lambers  <marlam@marlam.de>
69913 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69914 2007-01-16  Bruno Haible  <bruno@clisp.org>
69915
69916         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69917         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69918         gl_FUNC_GETTIMEOFDAY.
69919         (Include): Add gettimeofday.h.
69920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69921         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69922         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69923         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69924         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69925         * lib/gettimeofday.h: New file.
69926         * lib/gettimeofday.c: Include <sys/timeb.h>.
69927         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69928         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69929         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69930         fall back on time().
69931
69932         * tests/test-gettimeofday.c: New file.
69933         * modules/gettimeofday-tests: New file.
69934
69935 2007-01-16  Eric Blake  <ebb9@byu.net>
69936
69937         * modules/fnmatch (Depends-on): Depend on wchar.
69938         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69939         * m4/fnmatch.m4: Likewise.
69940         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69941         * m4/mbchar.m4: Likewise.
69942         * modules/mbswidth (Depends-on): Depend on wchar.
69943         * lib/mbswidth.c: Assume <wchar.h>.
69944         * m4/mbswidth.m4: Likewise.
69945         * modules/quotearg (Depends-on): Depend on wchar.
69946         * lib/quotearg.c: Assume <wchar.h>.
69947         * m4/quotearg.m4: Likewise.
69948         * modules/regex (Depends-on): Depend on wchar.
69949         * lib/regex_internal.h: Assume <wchar.h>.
69950         * m4/regex.m4: Likewise.
69951         * modules/stdint (Depends-on): Depend on wchar.
69952         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69953         * m4/stdint.m4: Likewise.
69954         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69955         * modules/strftime (Depends-on): Depend on wchar.
69956         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69957         * modules/strtol (Depends-on): Depend on wchar.
69958         * lib/strtol.c: Assume <wchar.h>.
69959         * modules/wcwidth (Depends-on): Depend on wchar.
69960         * lib/wcwidth.h: Assume <wchar.h>.
69961         * m4/wcwidth.m4: Likewise.
69962
69963 2007-01-16  Bruno Haible  <bruno@clisp.org>
69964
69965         * modules/csharpexec-script: New, created from...
69966         * modules/csharpexec: ... this.
69967
69968 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69969
69970         * modules/javaexec-script: New, created from...
69971         * modules/javaexec: ... this.
69972
69973 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69974
69975         * modules/poll (Dependencies): Add sys_select.
69976
69977 2007-01-15  Jim Meyering  <jim@meyering.net>
69978
69979         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69980         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69981         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69982         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69983
69984 2007-01-15  Bruno Haible  <bruno@clisp.org>
69985
69986         * modules/striconveh: New file.
69987         * lib/striconveh.h: New file.
69988         * lib/striconveh.c: New file.
69989         * MODULES.html.sh (Internationalization functions): Add striconveh.
69990
69991         * modules/striconveh-tests: New file.
69992         * tests/test-striconveh.c: New file.
69993
69994 2007-01-15  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69997         not from GNU libiconv or GNU libc.
69998
69999 2007-01-15  Bruno Haible  <bruno@clisp.org>
70000
70001         * doc/gnulib-intro.texi (Copyright): Explain the different license
70002         terms for module descriptions, autoconf macros, tests, documentation.
70003
70004 2007-01-14  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/striconv-tests: New file.
70007         * tests/test-striconv.c: New file.
70008
70009 2007-01-14  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/iconv-tests: New file.
70012         * tests/test-iconv.c: New file.
70013
70014 2007-01-14  Bruno Haible  <bruno@clisp.org>
70015
70016         * gnulib-tool (func_get_license): For test modules, use the license of
70017         the main module.
70018
70019 2007-01-14  Bruno Haible  <bruno@clisp.org>
70020
70021         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70022         if iconv is found to exist.
70023
70024 2007-01-14  Bruno Haible  <bruno@clisp.org>
70025
70026         * modules/c-ctype-tests: New file.
70027         * tests/test-c-ctype.c: New file.
70028
70029 2007-01-14  Bruno Haible  <bruno@clisp.org>
70030
70031         * modules/binary-io-tests: New file.
70032         * tests/test-binary-io.sh: New file.
70033         * tests/test-binary-io.c: New file.
70034
70035 2007-01-14  Bruno Haible  <bruno@clisp.org>
70036
70037         * modules/array-oset-tests: New file.
70038         * tests/test-array_oset.c: New file.
70039
70040 2007-01-14  Bruno Haible  <bruno@clisp.org>
70041
70042         * modules/array-list-tests: New file.
70043         * tests/test-array_list.c: New file.
70044
70045 2007-01-14  Bruno Haible  <bruno@clisp.org>
70046
70047         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70048         and make.
70049         Reported by Simon Josefsson in
70050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70051
70052 2007-01-14  Bruno Haible  <bruno@clisp.org>
70053
70054         * modules/allocsa-tests: New file.
70055         * tests/test-allocsa.c: New file.
70056
70057 2007-01-14  Bruno Haible  <bruno@clisp.org>
70058
70059         * modules/fchdir (Depends-on): Add absolute-header.
70060         * modules/unistd (Depends-on): Likewise.
70061
70062 2006-12-30  Bruno Haible  <bruno@clisp.org>
70063
70064         * modules/fchdir: New file.
70065         * modules/unistd (Files): Add lib/unistd_.h.
70066         (Makefile.am): Generate unistd.h from unistd_.h.
70067         * lib/fchdir.c: New file.
70068         * lib/dirent_.h: New file.
70069         * lib/unistd_.h: New file.
70070         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70071         * m4/fchdir.m4: New file.
70072         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70073         (gl_HEADER_UNISTD): Invoke it.
70074         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70075         function.
70076         * lib/backupfile.c (opendir, closedir): Undefine.
70077         * lib/chown.c (open, close): Undefine.
70078         * lib/clean-temp.c (open, close): Undefine.
70079         * lib/copy-file.c (open, close): Undefine.
70080         * lib/execute.c (open, close): Undefine.
70081         * lib/fsusage.c (open, close): Undefine.
70082         * lib/gc-gnulib.c (open, close): Undefine.
70083         * lib/getcwd.c (opendir, closedir): Undefine.
70084         * lib/glob.c (opendir, closedir): Undefine.
70085         * lib/javacomp.c (open, close): Undefine.
70086         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70087         * lib/openat-proc.c (open, close): Undefine.
70088         * lib/pagealign_alloc.c (open, close): Undefine.
70089         * lib/pipe.c (open, close): Undefine.
70090         * lib/progreloc.c (open, close): Undefine.
70091         * lib/savedir.c (opendir, closedir): Undefine.
70092         * lib/utime.c (open, close): Undefine.
70093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70094
70095 2007-01-10  Bruno Haible  <bruno@clisp.org>
70096
70097         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70098
70099 2007-01-12  Eric Blake  <ebb9@byu.net>
70100
70101         Provide a robust <wchar.h>.  Further simplifications are now
70102         possible in other modules, but not included here.
70103         * modules/wchar: New module.
70104         * m4/wchar.m4: New file.
70105         * lib/wchar_.h: Likewise.
70106         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70107         of the new module.
70108         * MODULES.html.sh (Extended multibyte and wide character utilities):
70109         New section.
70110
70111 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70114         to a reasonable default for memory allocation.
70115         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70116         file system that reports garbage st_size values for symlinks.
70117         Problem reported by Liyang Hu.
70118
70119 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70120
70121         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70122         Emacs .#* auto-save files).
70123
70124 2007-01-11  Bruno Haible  <bruno@clisp.org>
70125
70126         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70127         directory.
70128
70129 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70130
70131         Use @...@ consistently in lib/wctype_.h.
70132         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70133         on it being set to 1 or 0.
70134         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70135         go back to AC_SUBSTing it.
70136         * modules/wctype (Makefile.am): Undo previous change.
70137
70138 2007-01-10  Eric Blake  <ebb9@byu.net>
70139
70140         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70141         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70142         * modules/wctype (Makefile.am): Likewise.
70143         Reported by Chris McGuire.
70144
70145 2007-01-10  Jim Meyering  <jim@meyering.net>
70146
70147         fts.c: a small readability/maintainability improvement
70148         * lib/fts.c (fts_read): Make this code slightly more readable and
70149         maintainable by hoisting the "sp->fts_cur = p" assignments to
70150         immediately follow the statements that set P.  Derived from
70151         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70152
70153 2007-01-10  Eric Blake  <ebb9@byu.net>
70154
70155         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70156         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70158         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70159         Reported by Chris McGuire.
70160
70161 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70162
70163         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70164         in sed script.
70165
70166 2007-01-09  Bruno Haible  <bruno@clisp.org>
70167
70168         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70169         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70170         variables.
70171         (func_module): Use them.
70172
70173 2007-01-09  Bruno Haible  <bruno@clisp.org>
70174
70175         * modules/unistr/base: New file.
70176         * lib/unistr.h: New file.
70177
70178         * modules/unistr/u8-to-u16: New file.
70179         * lib/unistr/u8-to-u16.c: New file.
70180
70181         * modules/unistr/u8-to-u32: New file.
70182         * lib/unistr/u8-to-u32.c: New file.
70183
70184         * modules/unistr/u16-to-u8: New file.
70185         * lib/unistr/u16-to-u8.c: New file.
70186
70187         * modules/unistr/u16-to-u32: New file.
70188         * lib/unistr/u16-to-u32.c: New file.
70189
70190         * modules/unistr/u32-to-u8: New file.
70191         * lib/unistr/u32-to-u8.c: New file.
70192
70193         * modules/unistr/u32-to-u16: New file.
70194         * lib/unistr/u32-to-u16.c: New file.
70195
70196         * modules/unistr/u8-check: New file.
70197         * modules/unistr/u16-check: New file.
70198         * modules/unistr/u32-check: New file.
70199         * lib/unistr/u8-check.c: New file.
70200         * lib/unistr/u16-check.c: New file.
70201         * lib/unistr/u32-check.c: New file.
70202
70203         * modules/unistr/u8-chr: New file.
70204         * modules/unistr/u16-chr: New file.
70205         * modules/unistr/u32-chr: New file.
70206         * lib/unistr/u8-chr.c: New file.
70207         * lib/unistr/u16-chr.c: New file.
70208         * lib/unistr/u32-chr.c: New file.
70209
70210         * modules/unistr/u8-cmp: New file.
70211         * modules/unistr/u16-cmp: New file.
70212         * modules/unistr/u32-cmp: New file.
70213         * lib/unistr/u8-cmp.c: New file.
70214         * lib/unistr/u16-cmp.c: New file.
70215         * lib/unistr/u32-cmp.c: New file.
70216
70217         * modules/unistr/u8-cpy: New file.
70218         * modules/unistr/u16-cpy: New file.
70219         * modules/unistr/u32-cpy: New file.
70220         * lib/unistr/u8-cpy.c: New file.
70221         * lib/unistr/u16-cpy.c: New file.
70222         * lib/unistr/u32-cpy.c: New file.
70223         * lib/unistr/u-cpy.h: New file.
70224
70225         * modules/unistr/u8-cpy-alloc: New file.
70226         * modules/unistr/u16-cpy-alloc: New file.
70227         * modules/unistr/u32-cpy-alloc: New file.
70228         * lib/unistr/u8-cpy-alloc.c: New file.
70229         * lib/unistr/u16-cpy-alloc.c: New file.
70230         * lib/unistr/u32-cpy-alloc.c: New file.
70231         * lib/unistr/u-cpy-alloc.h: New file.
70232
70233         * modules/unistr/u8-endswith: New file.
70234         * modules/unistr/u16-endswith: New file.
70235         * modules/unistr/u32-endswith: New file.
70236         * lib/unistr/u8-endswith.c: New file.
70237         * lib/unistr/u16-endswith.c: New file.
70238         * lib/unistr/u32-endswith.c: New file.
70239         * lib/unistr/u-endswith.h: New file.
70240
70241         * modules/unistr/u8-mblen: New file.
70242         * modules/unistr/u16-mblen: New file.
70243         * modules/unistr/u32-mblen: New file.
70244         * lib/unistr/u8-mblen.c: New file.
70245         * lib/unistr/u16-mblen.c: New file.
70246         * lib/unistr/u32-mblen.c: New file.
70247
70248         * modules/unistr/u8-mbtouc: New file.
70249         * modules/unistr/u16-mbtouc: New file.
70250         * modules/unistr/u32-mbtouc: New file.
70251         * lib/unistr/u8-mbtouc.c: New file.
70252         * lib/unistr/u16-mbtouc.c: New file.
70253         * lib/unistr/u32-mbtouc.c: New file.
70254
70255         * modules/unistr/u8-mbtouc-safe: New file.
70256         * modules/unistr/u16-mbtouc-safe: New file.
70257         * modules/unistr/u32-mbtouc-safe: New file.
70258         * lib/unistr/u8-mbtouc-safe.c: New file.
70259         * lib/unistr/u16-mbtouc-safe.c: New file.
70260         * lib/unistr/u32-mbtouc-safe.c: New file.
70261
70262         * modules/unistr/u8-move: New file.
70263         * modules/unistr/u16-move: New file.
70264         * modules/unistr/u32-move: New file.
70265         * lib/unistr/u8-move.c: New file.
70266         * lib/unistr/u16-move.c: New file.
70267         * lib/unistr/u32-move.c: New file.
70268         * lib/unistr/u-move.h: New file.
70269
70270         * modules/unistr/u8-next: New file.
70271         * modules/unistr/u16-next: New file.
70272         * modules/unistr/u32-next: New file.
70273         * lib/unistr/u8-next.c: New file.
70274         * lib/unistr/u16-next.c: New file.
70275         * lib/unistr/u32-next.c: New file.
70276
70277         * modules/unistr/u8-prev: New file.
70278         * modules/unistr/u16-prev: New file.
70279         * modules/unistr/u32-prev: New file.
70280         * lib/unistr/u8-prev.c: New file.
70281         * lib/unistr/u16-prev.c: New file.
70282         * lib/unistr/u32-prev.c: New file.
70283
70284         * modules/unistr/u8-set: New file.
70285         * modules/unistr/u16-set: New file.
70286         * modules/unistr/u32-set: New file.
70287         * lib/unistr/u8-set.c: New file.
70288         * lib/unistr/u16-set.c: New file.
70289         * lib/unistr/u32-set.c: New file.
70290         * lib/unistr/u-set.h: New file.
70291
70292         * modules/unistr/u8-startswith: New file.
70293         * modules/unistr/u16-startswith: New file.
70294         * modules/unistr/u32-startswith: New file.
70295         * lib/unistr/u8-startswith.c: New file.
70296         * lib/unistr/u16-startswith.c: New file.
70297         * lib/unistr/u32-startswith.c: New file.
70298         * lib/unistr/u-startswith.h: New file.
70299
70300         * modules/unistr/u8-stpcpy: New file.
70301         * modules/unistr/u16-stpcpy: New file.
70302         * modules/unistr/u32-stpcpy: New file.
70303         * lib/unistr/u8-stpcpy.c: New file.
70304         * lib/unistr/u16-stpcpy.c: New file.
70305         * lib/unistr/u32-stpcpy.c: New file.
70306         * lib/unistr/u-stpcpy.h: New file.
70307
70308         * modules/unistr/u8-stpncpy: New file.
70309         * modules/unistr/u16-stpncpy: New file.
70310         * modules/unistr/u32-stpncpy: New file.
70311         * lib/unistr/u8-stpncpy.c: New file.
70312         * lib/unistr/u16-stpncpy.c: New file.
70313         * lib/unistr/u32-stpncpy.c: New file.
70314         * lib/unistr/u-stpncpy.h: New file.
70315
70316         * modules/unistr/u8-strcat: New file.
70317         * modules/unistr/u16-strcat: New file.
70318         * modules/unistr/u32-strcat: New file.
70319         * lib/unistr/u8-strcat.c: New file.
70320         * lib/unistr/u16-strcat.c: New file.
70321         * lib/unistr/u32-strcat.c: New file.
70322         * lib/unistr/u-strcat.h: New file.
70323
70324         * modules/unistr/u8-strchr: New file.
70325         * modules/unistr/u16-strchr: New file.
70326         * modules/unistr/u32-strchr: New file.
70327         * lib/unistr/u8-strchr.c: New file.
70328         * lib/unistr/u16-strchr.c: New file.
70329         * lib/unistr/u32-strchr.c: New file.
70330
70331         * modules/unistr/u8-strcmp: New file.
70332         * modules/unistr/u16-strcmp: New file.
70333         * modules/unistr/u32-strcmp: New file.
70334         * lib/unistr/u8-strcmp.c: New file.
70335         * lib/unistr/u16-strcmp.c: New file.
70336         * lib/unistr/u32-strcmp.c: New file.
70337
70338         * modules/unistr/u8-strcpy: New file.
70339         * modules/unistr/u16-strcpy: New file.
70340         * modules/unistr/u32-strcpy: New file.
70341         * lib/unistr/u8-strcpy.c: New file.
70342         * lib/unistr/u16-strcpy.c: New file.
70343         * lib/unistr/u32-strcpy.c: New file.
70344         * lib/unistr/u-strcpy.h: New file.
70345
70346         * modules/unistr/u8-strcspn: New file.
70347         * modules/unistr/u16-strcspn: New file.
70348         * modules/unistr/u32-strcspn: New file.
70349         * lib/unistr/u8-strcspn.c: New file.
70350         * lib/unistr/u16-strcspn.c: New file.
70351         * lib/unistr/u32-strcspn.c: New file.
70352         * lib/unistr/u-strcspn.h: New file.
70353
70354         * modules/unistr/u8-strdup: New file.
70355         * modules/unistr/u16-strdup: New file.
70356         * modules/unistr/u32-strdup: New file.
70357         * lib/unistr/u8-strdup.c: New file.
70358         * lib/unistr/u16-strdup.c: New file.
70359         * lib/unistr/u32-strdup.c: New file.
70360         * lib/unistr/u-strdup.h: New file.
70361
70362         * modules/unistr/u8-strlen: New file.
70363         * modules/unistr/u16-strlen: New file.
70364         * modules/unistr/u32-strlen: New file.
70365         * lib/unistr/u8-strlen.c: New file.
70366         * lib/unistr/u16-strlen.c: New file.
70367         * lib/unistr/u32-strlen.c: New file.
70368         * lib/unistr/u-strlen.h: New file.
70369
70370         * modules/unistr/u8-strmblen: New file.
70371         * modules/unistr/u16-strmblen: New file.
70372         * modules/unistr/u32-strmblen: New file.
70373         * lib/unistr/u8-strmblen.c: New file.
70374         * lib/unistr/u16-strmblen.c: New file.
70375         * lib/unistr/u32-strmblen.c: New file.
70376
70377         * modules/unistr/u8-strmbtouc: New file.
70378         * modules/unistr/u16-strmbtouc: New file.
70379         * modules/unistr/u32-strmbtouc: New file.
70380         * lib/unistr/u8-strmbtouc.c: New file.
70381         * lib/unistr/u16-strmbtouc.c: New file.
70382         * lib/unistr/u32-strmbtouc.c: New file.
70383
70384         * modules/unistr/u8-strncat: New file.
70385         * modules/unistr/u16-strncat: New file.
70386         * modules/unistr/u32-strncat: New file.
70387         * lib/unistr/u8-strncat.c: New file.
70388         * lib/unistr/u16-strncat.c: New file.
70389         * lib/unistr/u32-strncat.c: New file.
70390         * lib/unistr/u-strncat.h: New file.
70391
70392         * modules/unistr/u8-strncmp: New file.
70393         * modules/unistr/u16-strncmp: New file.
70394         * modules/unistr/u32-strncmp: New file.
70395         * lib/unistr/u8-strncmp.c: New file.
70396         * lib/unistr/u16-strncmp.c: New file.
70397         * lib/unistr/u32-strncmp.c: New file.
70398
70399         * modules/unistr/u8-strncpy: New file.
70400         * modules/unistr/u16-strncpy: New file.
70401         * modules/unistr/u32-strncpy: New file.
70402         * lib/unistr/u8-strncpy.c: New file.
70403         * lib/unistr/u16-strncpy.c: New file.
70404         * lib/unistr/u32-strncpy.c: New file.
70405         * lib/unistr/u-strncpy.h: New file.
70406
70407         * modules/unistr/u8-strnlen: New file.
70408         * modules/unistr/u16-strnlen: New file.
70409         * modules/unistr/u32-strnlen: New file.
70410         * lib/unistr/u8-strnlen.c: New file.
70411         * lib/unistr/u16-strnlen.c: New file.
70412         * lib/unistr/u32-strnlen.c: New file.
70413         * lib/unistr/u-strnlen.h: New file.
70414
70415         * modules/unistr/u8-strpbrk: New file.
70416         * modules/unistr/u16-strpbrk: New file.
70417         * modules/unistr/u32-strpbrk: New file.
70418         * lib/unistr/u8-strpbrk.c: New file.
70419         * lib/unistr/u16-strpbrk.c: New file.
70420         * lib/unistr/u32-strpbrk.c: New file.
70421         * lib/unistr/u-strpbrk.h: New file.
70422
70423         * modules/unistr/u8-strrchr: New file.
70424         * modules/unistr/u16-strrchr: New file.
70425         * modules/unistr/u32-strrchr: New file.
70426         * lib/unistr/u8-strrchr.c: New file.
70427         * lib/unistr/u16-strrchr.c: New file.
70428         * lib/unistr/u32-strrchr.c: New file.
70429
70430         * modules/unistr/u8-strspn: New file.
70431         * modules/unistr/u16-strspn: New file.
70432         * modules/unistr/u32-strspn: New file.
70433         * lib/unistr/u8-strspn.c: New file.
70434         * lib/unistr/u16-strspn.c: New file.
70435         * lib/unistr/u32-strspn.c: New file.
70436         * lib/unistr/u-strspn.h: New file.
70437
70438         * modules/unistr/u8-strstr: New file.
70439         * modules/unistr/u16-strstr: New file.
70440         * modules/unistr/u32-strstr: New file.
70441         * lib/unistr/u8-strstr.c: New file.
70442         * lib/unistr/u16-strstr.c: New file.
70443         * lib/unistr/u32-strstr.c: New file.
70444         * lib/unistr/u-strstr.h: New file.
70445
70446         * modules/unistr/u8-strtok: New file.
70447         * modules/unistr/u16-strtok: New file.
70448         * modules/unistr/u32-strtok: New file.
70449         * lib/unistr/u8-strtok.c: New file.
70450         * lib/unistr/u16-strtok.c: New file.
70451         * lib/unistr/u32-strtok.c: New file.
70452         * lib/unistr/u-strtok.h: New file.
70453
70454         * modules/unistr/u8-uctomb: New file.
70455         * modules/unistr/u16-uctomb: New file.
70456         * modules/unistr/u32-uctomb: New file.
70457         * lib/unistr/u8-uctomb.c: New file.
70458         * lib/unistr/u16-uctomb.c: New file.
70459         * lib/unistr/u32-uctomb.c: New file.
70460
70461         * MODULES.html.sh (Unicode string functions): Add the new modules.
70462
70463 2007-01-08  Bruno Haible  <bruno@clisp.org>
70464
70465         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70466         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70467         subdirectories.
70468
70469 2007-01-08  Karl Berry  <karl@gnu.org>
70470
70471         * doc/error.texi: mention that main() fns must set program_name
70472         when progname is used.
70473
70474 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70477         WCTYPE_H is empty, for the benefit of builds from non-distclean
70478         directories.  Problem reported by Eric Blake in
70479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70480
70481 2007-01-08  Bruno Haible  <bruno@clisp.org>
70482
70483         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70484         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70485         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70486         PROVIDE_CANONICALIZE_FILENAME_MODE.
70487         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70488
70489 2007-01-08  Bruno Haible  <bruno@clisp.org>
70490
70491         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70492         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70493         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70494         * lib/fts.c: Likewise.
70495         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70496
70497 2006-12-25  Bruno Haible  <bruno@clisp.org>
70498
70499         * modules/utf8-ucs4-safe: New file.
70500         * lib/utf8-ucs4-safe.h: New file.
70501         * lib/unistr/utf8-ucs4-safe.c: New file.
70502
70503         * modules/utf16-ucs4-safe: New file.
70504         * lib/utf16-ucs4-safe.h: New file.
70505         * lib/unistr/utf16-ucs4-safe.c: New file.
70506
70507         * MODULES.html.sh (Unicode string functions): Add the new modules.
70508
70509 2007-01-08  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70512         (Depends-on): Add unitypes.
70513         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70514         (u8_mbtouc_aux): Move out to separate file.
70515         (u8_mbtouc): Use ucs4_t, uint8_t types.
70516         * lib/unistr/utf8-ucs4.c: New file.
70517
70518         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70519         (Depends-on): Add unitypes.
70520         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70521         (u16_mbtouc_aux): Move out to separate file.
70522         (u16_mbtouc): Use ucs4_t, uint16_t types.
70523         * lib/unistr/utf16-ucs4.c: New file.
70524
70525         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70526         (Depends-on): Add unitypes.
70527         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70528         (u8_uctomb_aux): Move out to separate file.
70529         (u8_uctomb): Use ucs4_t, uint8_t types.
70530         * lib/unistr/ucs4-utf8.c: New file.
70531
70532         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70533         (Depends-on): Add unitypes.
70534         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70535         (u16_uctomb_aux): Move out to separate file.
70536         (u16_uctomb): Use ucs4_t, uint16_t types.
70537         * lib/unistr/ucs4-utf16.c: New file.
70538
70539 2006-12-25  Bruno Haible  <bruno@clisp.org>
70540
70541         * modules/unitypes: New file.
70542         * lib/unitypes.h: New file.
70543         * MODULES.html.sh (func_all_modules): New section "Unicode string
70544         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70545         this section. Add unitypes.
70546
70547 2007-01-08  Bruno Haible  <bruno@clisp.org>
70548
70549         Avoid variable names that conflict with those from libtool.
70550         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70551         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70552         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70553         library_names_spec to acl_library_names_spec, hardcode_* to
70554         acl_hardcode_*.
70555         Reported by Ralf Wildenhues.
70556
70557 2007-01-08  Bruno Haible  <bruno@clisp.org>
70558
70559         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70560         definition.
70561         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70562         definition.
70563         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70564         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70565         definition.
70566         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70567         definition.
70568         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70569         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70570         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70571         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70572         definition.
70573         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70574         definition.
70575         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70576         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70577         GC_USE_<algorithm>.
70578         * lib/gc-libgcrypt.c: Likewise.
70579         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70580         * modules/gc-arctwo (configure.ac): Likewise.
70581         * modules/gc-des (configure.ac): Likewise.
70582         * modules/gc-hmac-md5 (configure.ac): Likewise.
70583         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70584         * modules/gc-md2 (configure.ac): Likewise.
70585         * modules/gc-md4 (configure.ac): Likewise.
70586         * modules/gc-md5 (configure.ac): Likewise.
70587         * modules/gc-random (configure.ac): Likewise.
70588         * modules/gc-rijndael (configure.ac): Likewise.
70589         * modules/gc-sha1 (configure.ac): Likewise.
70590
70591 2007-01-08  Bruno Haible  <bruno@clisp.org>
70592
70593         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70594         macro definition.
70595         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70596         definition.
70597         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70598         definition.
70599         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70600         * modules/fcntl-safer (configure.ac): Likewise.
70601         * modules/fopen-safer (configure.ac): Likewise.
70602         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70603         GNULIB_FWRITEERROR macro definition.
70604
70605 2007-01-08  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/gnulib-common.m4: New file.
70608         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70609         (func_get_filelist): Add m4/gnulib-common.m4.
70610
70611 2007-01-08  Bruno Haible  <bruno@clisp.org>
70612
70613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70614         command.
70615
70616 2007-01-08  Jim Meyering  <jim@meyering.net>
70617
70618         Use a more robust test for a "can't happen" condition.
70619         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70620         narrowed the st_size value.  Presuming the "can't happen" condition
70621         is true, that narrowing could conceivably convert an invalid st_size
70622         value into a valid one.  Instead, use a change based on Matthew
70623         Woehlke's original patch.
70624
70625         Slight readability improvement: use an assert-like macro
70626         in place of literal "abort ()" uses.
70627         * lib/fts.c (fts_assert): Define.
70628         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70629         Use this macro instead of a bare 'abort'.
70630
70631 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70632
70633         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70634         simply work around them.
70635         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70636         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70637         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70638         declaring.
70639         Don't bother to define as macros, since the standard doesn't require it.
70640         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70641         longer worry about IRIX 5.3.
70642         (HAVE_WCTYPE_CTMP_BUG): Remove.
70643
70644 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70647         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70648         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70649         Problems reported by Georg Schwarz for IRIX 5.3.
70650
70651         * gnulib-tool (autoconf_minversion): Take the maximum version number
70652         found, not the minimum.  Problem reported by James Youngman.
70653
70654 2007-01-03  Karl Berry  <karl@gnu.org>
70655
70656         * doc/error.texi: new file, explaining interaction with progname.
70657         * doc/gnulib.texi: include it.  Update copyright.
70658
70659 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70660
70661         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70662         AC_CANONICAL_HOST, to improve autobuild outputs.
70663
70664 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70665             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70666
70667         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70668         sockets, server sockets, and other file descriptors.  Count errors
70669         to compute the return value.  Reorder the code a bit to be easier
70670         to follow.  Don't set event bits that were not requested (except
70671         POLLERR and POLLHUP).
70672
70673 2007-01-01  Bruno Haible  <bruno@clisp.org>
70674
70675         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70676
70677 2007-01-03  Jim Meyering  <jim@meyering.net>
70678
70679         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70680
70681 2007-01-02  Bruno Haible  <bruno@clisp.org>
70682
70683         * modules/settime (Include): Require timespec.h.
70684         * modules/nanosleep (Include): Likewise.
70685
70686 2007-01-01  Bruno Haible  <bruno@clisp.org>
70687
70688         * gnulib-tool (func_emit_copyright_notice): Bump year.
70689         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70690
70691 2007-01-01  Bruno Haible  <bruno@clisp.org>
70692
70693         Improve support for OpenBSD.
70694         * build-aux/config.rpath (libname_spec): Export.
70695         (library_names_spec): New variable. Export.
70696         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70697         library_names_spec from the config.rpath output. Locate shared library
70698         through the name pattern in library_names_spec.
70699
70700 2007-01-01  Eric Blake  <ebb9@byu.net>
70701
70702         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70703
70704 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70707         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70708         assume the C locale, and avoid an "eval" that could cause trouble.
70709         Problem with SORT reported by Bob Proulx.
70710
70711         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70712         Define.  Trivial patch from Henning Nielsen Lund, originally
70713         sent to bug-grep@gnu.org today.
70714
70715 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70718         struct stat.  Problem reported by Henning Nielsen Lund.
70719         * lib/acl.c: Include acl.h first, to check interface.  Don't
70720         bother to include sys/types.h and sys/stat.h again.
70721
70722 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         Import the following change from libc; problem reported by
70725         Sven Verdoolaege.
70726
70727         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70728
70729         [BZ #1373]
70730         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70731
70732 2006-12-28  Jim Meyering  <jim@meyering.net>
70733
70734         * build-aux/announce-gen: Do not assume that the package
70735         builds any of tar.gz, tar.bz2, and .xdelta files.
70736         Suggestion from Simon Josefsson.
70737
70738 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70739
70740         * modules/announce-gen: New file.
70741
70742 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70743
70744         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70745         handles its gotchas now.
70746         * lib/mbswidth.c: Likewise.
70747         * lib/wcwidth.h: Likewise.
70748         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70749         and iswcntrl; the wctype module does this stuff now.
70750         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70752         * modules/mbchar (Depends-on): Add wctype.
70753         * modules/mbswidth (Depends-on): Likewise.
70754         * modules/wcwidth (Depends-on): Likewise.
70755
70756 2006-12-27  Eric Blake  <ebb9@byu.net>
70757
70758         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70759         module uses more than what <wctype.h> is required to provide.
70760
70761 2006-12-26  Eric Blake  <ebb9@byu.net>
70762
70763         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70764
70765 2006-12-26  Eric Blake  <ebb9@byu.net>
70766
70767         * modules/absolute-header: New module.
70768         * modules/fcntl (Depends-on): Depend on it.
70769         * modules/inttypes (Depends-on): Likewise.
70770         * modules/stdint (Depends-on): Likewise.
70771         * modules/sys_stat (Depends-on): Likewise.
70772         * modules/wctype (Depends-on): Likewise.
70773         * MODULES.html.sh (Support for building libraries and
70774         executables): Document it.
70775
70776 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * gnulib-tool (SED): Remove, undoing previous change.
70779         The problem was that it broke coreutils on Solaris, because
70780         "sed --posix" leaked into a makefile.
70781         (sed): New alias, if 'alias' and GNU sed.
70782
70783 2006-12-24  Jim Meyering  <jim@meyering.net>
70784
70785         Work around an fchownat bug in glibc-2.4:
70786         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70787         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70788         in spite of the -P option.
70789         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70790         New macros.
70791         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70792         * modules/openat (Files): Add lib/fchownat.c.
70793         * lib/openat.c (fchownat): Don't define here.  Move to...
70794         * lib/fchownat.c: ...this new file.
70795
70796 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         Fix bug reported by Bruno Haible in
70799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70800         where quotearg.c didn't compile on Mac OS X 10.2 because it
70801         lacks <wchar.h> and wint_t.
70802         * lib/wctype_.h (__wctype_wint_t): New type.
70803         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70804         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70805         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70806         Arg is now of type __wctype_wint_t, not wint_t.
70807         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70808         substitute HAVE_WINT_T.
70809         * modules/wctype (Files): Add m4/wint_t.m4.
70810         (wctype.h): Substitute HAVE_WINT_T.
70811
70812 2006-12-23  Bruno Haible  <bruno@clisp.org>
70813
70814         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70815
70816 2006-12-23  Bruno Haible  <bruno@clisp.org>
70817
70818         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70819         S_ISLNK.
70820         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70821         mingw.
70822
70823 2006-12-22  Bruno Haible  <bruno@clisp.org>
70824
70825         * lib/copy-file.c: Include acl.h.
70826         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70827         Close the file descriptors only after being done with copy_acl.
70828         * modules/copy-file (Depends-on): Add acl.
70829
70830 2006-12-22  Bruno Haible  <bruno@clisp.org>
70831
70832         * gnulib-tool (SED): New variable.
70833         Use $SED instead of sed everywhere.
70834
70835 2006-12-22  Bruno Haible  <bruno@clisp.org>
70836
70837         * modules/no-c++: New file.
70838         * m4/no-c++.m4: New file.
70839         * MODULES.html.sh (Support for building libraries and executables):
70840         Add no-c++.
70841
70842 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70845         Include <limits.h>, and use its INT_MAX to rewrite the
70846         j loop so that it does not overflow 'int'.  Problem reported by
70847         Ralf Wildenhues in
70848         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70849         Play it safe by shifting left by 1 rather than multiplying by 2,
70850         as GCC is less likely to optimize this away when the value
70851         is signed (when it assumes overflow leads to undefined behavior).
70852         Also, don't assume time_t uses two's complement.
70853
70854 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         * MODULES.html.sh: New module wctype.
70857         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70858         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70859         <wctype.h>, since the new wctype module should fix this.
70860         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70861         the wctype module should arrange for it.
70862         * lib/regex_internal.h: Likewise.
70863         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70864         since the wctype module should handle this now.
70865         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70866         * modules/fnmatch (Depends-on): Add wctype.
70867         * modules/quotearg (Depends-on): Likewise.
70868         * modules/regex (Depends-on): Likewise.
70869
70870 2006-12-19  Bruno Haible  <bruno@clisp.org>
70871
70872         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70873         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70874
70875 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70876
70877         * modules/savewd (Depends-on): Fix dependency on fcntl.
70878
70879 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70882         conforms to C99, rather than relying on the user's environment
70883         setting of STDINT_H.
70884
70885 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70886         and Eric Blake  <ebb9@byu.net>
70887
70888         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70889         This is more consistent with the other defines here.
70890         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70891         Port to z/OS.  Problem reported by Paul Gilmartin.
70892         Change local vars to use gl_ prefix rather than ac_.
70893         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70894         with other defines.
70895         * modules/double-slash-root: New module.
70896         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70897         (Depends-on): Add double-slash-root.
70898         * MODULES.html.sh (File system functions): Mention new module.
70899
70900 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70903         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70904         This is for the benefit of gzip, which doesn't do i18n.
70905
70906 2006-12-12  Jim Meyering  <jim@meyering.net>
70907
70908         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70909         Reported by Andreas Schwab <schwab@suse.de>.
70910
70911 2006-12-12  Bruno Haible  <bruno@clisp.org>
70912
70913         Merge these changes.
70914         2006-09-05  Bruno Haible  <bruno@clisp.org>
70915         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70916         iconv_alloc succeeded.
70917         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70918         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70919         test for " && dest " at the end - dest is always != NULL there. Call
70920         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70921         with 2xNULL arguments, also to flush the state storage. Handle the
70922         IRIX iconv behaviour. Realloc the final result, to throw away unused
70923         memory.
70924
70925 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70928         and fchmodat unconditionally, since glibc 2.4 has them.
70929         Problem reported by Arkadiusz Miskiewicz.
70930
70931 2006-12-10  Bruno Haible  <bruno@clisp.org>
70932
70933         * gnulib-tool (func_import): Show the include files only for those
70934         modules that are copied and specified.
70935         Reported by Karl Berry.
70936
70937 2006-12-08  Jim Meyering  <jim@meyering.net>
70938
70939         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70940         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70941
70942         * build-aux/announce-gen: Add two new options, both optional:
70943         --bootstrap-tools=TOOL_LIST
70944               a comma-separated list of tools, e.g.,
70945               autoconf,automake,bison,gnulib
70946         --gnulib-snapshot-date=DATE
70947               if gnulib is in the bootstrap tool list,
70948               then report this as the snapshot date.
70949               If not specified, use the current date/time.
70950               If you specify a date here, be sure it's UTC.
70951
70952 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70953
70954         * tests/test-argp-2.sh: Fix test to match actual output.
70955         (func_compare): Fix sed script to be portable.
70956
70957 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70958
70959         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70960         workaround for this case.  It is not autoconfigured now; offhand
70961         it's hard to see how to autoconfigure it.
70962
70963 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70966         a directory that is about to be chowned.  Such a directory's
70967         initial file permissions should permit the owner only and this
70968         should not be changed until after the chown, since the group and
70969         other bits would be incorrect if they granted permission before
70970         the chown.
70971
70972         Fix porting problem for iswctype reported by Georg Schwarz in:
70973         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70974         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70975         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70976         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70977         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70978
70979 2006-12-03  Jim Meyering  <jim@meyering.net>
70980
70981         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70982         p->fts_statp may not yet be defined.
70983         (fts_read): Instead, set it in the caller, once p->fts_statp is
70984         sure to be defined, and corresponds to a top-level directory.
70985         This bug made du -x fail.  Here's the coreutils test case:
70986         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70987         Reported by Mike Frysinger.
70988
70989 2006-12-01  Jim Meyering  <jim@meyering.net>
70990
70991         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70992         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70993         Reported by Simon Josefsson.
70994
70995 2006-11-30  Jim Meyering  <jim@meyering.net>
70996
70997         * m4/warning.m4: Use the all-permissive copyright notice
70998         recommended by RMS (rather than LGPL).
70999         * m4/vararrays.m4: Likewise.
71000         * m4/flexmember.m4: Likewise.
71001
71002 2006-11-29  Bruno Haible  <bruno@clisp.org>
71003
71004         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71005         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71006         using +=.
71007         Reported by Simon Josefsson <simon@josefsson.org>.
71008
71009 2006-11-28  James Youngman <jay@gnu.org>
71010
71011         * README: Advise users that they might find the bug-gnulib@gnu.org
71012         and autotools-announce@gnu.org mailing lists useful.
71013
71014 2006-11-28  Bruno Haible  <bruno@clisp.org>
71015
71016         * m4/ptrdiff_max.m4: Remove file.
71017
71018 2006-11-21  Bruno Haible  <bruno@clisp.org>
71019
71020         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71021         _AC_COMPUTE_INT.
71022         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71023         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71024         _AC_COMPUTE_INT.
71025         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71026         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71027         _AC_COMPUTE_INT.
71028         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71029
71030 2006-11-28  Jim Meyering  <jim@meyering.net>
71031
71032         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71033         warning from "gcc -Wshadow" about shadowing the builtin.
71034
71035 2006-11-27  Bruno Haible  <bruno@clisp.org>
71036
71037         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71038         _AC_COMPUTE_INT.
71039         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71040
71041 2006-11-27  Bruno Haible  <bruno@clisp.org>
71042             Paul Eggert  <eggert@cs.ucla.edu>
71043
71044         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71045
71046 2006-11-26  Bruno Haible  <bruno@clisp.org>
71047
71048         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71049         noinst_LTLIBRARIES.
71050
71051 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71052             Bruno Haible  <bruno@clisp.org>
71053
71054         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71055         if compiling with "gcc -ansi".
71056
71057 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71058
71059         Fix some incompatibilities with gcc -ansi -pedantic.
71060         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71061         if compiling pedantically with GCC, unless it's C99 or later.
71062         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71063         it mishandles gcc -ansi -pedantic as well.
71064         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71065         if gcc -pedantic.
71066         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71067         initializers for struct if -pedantic, unless it's C99 or later.
71068
71069 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71070
71071         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71072         Don't close an fd more than once. Identical atimes indicate
71073         success, not failure.
71074
71075 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71076
71077         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71078
71079 2006-11-23  Jim Meyering  <jim@meyering.net>
71080
71081         * build-aux/announce-gen: New file.  From coreutils.
71082
71083 2006-11-22  Jim Meyering  <jim@meyering.net>
71084
71085         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71086         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71087         (fts_read): Use a temporary to narrow the overused st_size member
71088         before using it in a switch statement.  Reported by Matthew Woehlke.
71089
71090         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71091         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71092
71093 2006-11-20  Bruno Haible  <bruno@clisp.org>
71094
71095         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71096         changequote instead of pairs of brackets.
71097         Reported by Andreas Schwab <schwab@suse.de>.
71098
71099 2006-11-21  Jim Meyering  <jim@meyering.net>
71100
71101         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71102         so as to remain compatible with older compilers.
71103         Patch from Michael Deutschmann.
71104
71105 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * MODULES.html.sh (File system functions): Add openat.
71108
71109         * lib/openat.h (rpl_fstatat): New macro, if
71110         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71111         (fstatat): Define to rpl_fstatat under the same conditions,
71112         unless COMPILING_FSTATAT.
71113         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71114         seems to have the bug.
71115         * lib/fstatat.c: New file.
71116         * modules/openat (Files): Add it.
71117
71118 2006-11-20  Bruno Haible  <bruno@clisp.org>
71119
71120         * Makefile: New file.
71121
71122 2006-11-20  Jim Meyering  <jim@meyering.net>
71123
71124         The beginnings of syntax-related checks for gnulib.
71125         * lib/Makefile: New file.
71126         * lib/t-idcache: New script.  Ensure that the two halves of
71127         idcache.c stay in sync.
71128
71129         * lib/idcache.c: Adjust comments in user- and group- portions to
71130         be more accurate, and to be consistent with one another.
71131
71132 2006-11-20  Jim Meyering  <jim@meyering.net>
71133
71134         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71135         continue using the flexible array member (thus, this module performs
71136         half as many malloc calls), with the addition that...
71137         (getgroup, getuser): Consistently record a non-match via an empty
71138         "name" string, and map an empty string match to a NULL return value.
71139         * modules/idcache (Depends-on): Re-add flexmember.
71140
71141         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71142         (getuidbyname, getgroup, getgidbyname): Likewise.
71143
71144         Use cleaner syntax: NULL rather than 0.
71145         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71146
71147 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71150         It mishandled the case where the group was missing.
71151         Problem reported by Greg Schafer.
71152         * modules/idcache: Likewise.
71153
71154 2006-11-18  Jim Meyering  <jim@meyering.net>
71155
71156         * check-module (%exempt_header): Add exception for some
71157         conditionally-included headers.
71158
71159         * modules/i-ring (Depends-on): Add verify.
71160         (License): Change to LGPL.
71161
71162 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71165         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71166         and inttostr.h.  Use snprintf rather than uinttostr, so that
71167         LGPLed code doesn't depend on GPLed.
71168
71169 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71170
71171         * modules/inline (License): Change from GPL to LGPL.
71172
71173 2006-11-17  Jim Meyering  <jim@meyering.net>
71174
71175         * modules/d-type (License): Switch to LGPL.
71176
71177 2006-11-15  Bruno Haible  <bruno@clisp.org>
71178
71179         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71180
71181 2006-11-15  Eric Blake  <ebb9@byu.net>
71182
71183         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71184         the module dependency.
71185
71186 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71187             Bruno Haible  <bruno@clisp.org>
71188
71189         * gnulib-tool (func_create_testdir): Add license consistency check.
71190
71191 2006-11-15  Eric Blake  <ebb9@byu.net>
71192
71193         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71194         random "(cached)" in configure output.
71195
71196 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71197
71198         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71199         test for conforming inttypes.h is both announced and cached.
71200
71201         * MODULES.html.sh (seen_modules, seen_files): New variables.
71202         (func_module): Rewrite to use a few less gnulib-tool and sed
71203         invocations.  Avoid a couple of quadratic algorithms for ...
71204         (missed_modules, missed_files): ... these, with ...
71205         (func_append, func_tmpdir): ... these new functions, from
71206         gnulib-tool.  Analogously, install traps for cleanup.
71207
71208         * tests/test-gc.c (main): Remove unused variables.
71209         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71210
71211 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * modules/inttostr (License): Change to LGPL.
71214
71215 2006-11-14  Eric Blake  <ebb9@byu.net>
71216
71217         * modules/tempname (License): Change to LGPL.
71218
71219 2006-11-14  Eric Blake  <ebb9@byu.net>
71220
71221         * doc/functions.texi (Function Portability): *printf functions on
71222         Cygwin now understand all POSIX size specifiers.
71223
71224 2006-11-14  Bruno Haible  <bruno@clisp.org>
71225
71226         * modules/c-ctype (License): Change to LGPL.
71227
71228 2006-11-12  Bruno Haible  <bruno@clisp.org>
71229
71230         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71231         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71232         for GNOME libraries, for which the include files are installed in
71233         subdirectories of $prefix/include.
71234
71235 2006-11-12  Bruno Haible  <bruno@clisp.org>
71236
71237         * m4/lib-link.m4: Require at least autoconf-2.54.
71238         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71239         name to underscores for the --with option.
71240
71241 2006-11-13  Bruno Haible  <bruno@clisp.org>
71242
71243         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71244         the tests directory.
71245         Reported by Ralf Wildenhues.
71246
71247 2006-11-13  Bruno Haible  <bruno@clisp.org>
71248
71249         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71250         (func_emit_initmacro_end): Undo the override here.
71251         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71252         Works around the famous automake error in coreutils.
71253
71254 2006-11-13  Eric Blake  <ebb9@byu.net>
71255
71256         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71257         element, not its node.
71258
71259 2006-11-12  Bruno Haible  <bruno@clisp.org>
71260
71261         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71262         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71263
71264 2006-11-12  Bruno Haible  <bruno@clisp.org>
71265
71266         * gnulib-tool: New option --local-symlink.
71267         (func_usage): Document it.
71268         (lsymbolic): New variable.
71269         (func_import, func_create_testdir): If --symlink was not specified,
71270         test whether --local-symlink was specified and the file comes from
71271         the local_gnulib_dir.
71272
71273 2006-11-12  Bruno Haible  <bruno@clisp.org>
71274
71275         * gnulib-tool (func_ln): New function.
71276         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71277
71278 2006-11-12  Bruno Haible  <bruno@clisp.org>
71279
71280         Finish support for source files in subdirectories.
71281         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71282         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71283         AUTOMAKE_OPTIONS.
71284         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71285
71286 2006-11-12  Bruno Haible  <bruno@clisp.org>
71287
71288         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71289         EXTRA_lib_SOURCES augmentation.
71290         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71291
71292 2006-11-12  Jim Meyering  <jim@meyering.net>
71293
71294         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71295         file descriptors.  This also averts a failure on systems with
71296         native openat support when a traversed directory lacks "x" access.
71297         * lib/fts_.h: Include "i-ring.h"
71298         (struct FTS) [fts_fd_ring]: New member.
71299         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71300         (FCHDIR): Add parentheses.
71301         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71302         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71303         When descending, rather than simply closing the previous
71304         fts_cwd_fd value, push that file descriptor onto the ring.
71305         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71306         (fts_open): Initialize the new fd_ring member.
71307         (fts_close): Clear the ring.
71308         (fts_safe_changedir): When possible, use our new fd_ring to skip
71309         the diropen and fstat and dev/ino comparison that would normally
71310         accompany a virtual `chdir ("..")'.
71311
71312         * modules/fts (Depends-on): Add i-ring.
71313         * modules/i-ring: New module.
71314         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71315         * m4/i-ring.m4: New file.
71316
71317 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71318
71319         * gnulib-tool (func_create_testdir): Fix replacement of
71320         `build-aux' in configure.ac.  Run autotools in gltests
71321         subdirectory.
71322         (func_create_testdir, func_create_megatestdir, test): There is
71323         no need for '--force' in most autotool invocations in a new
71324         tree.  Actually fail the whole test if any of the tools, or the
71325         configure or make stages fail.
71326
71327         Sync from Automake.
71328         * build-aux/gnupload: Revert last change.  Add pointer to upload
71329         instructions of the GNU Maintenance Instructions.
71330         Suggestion by Karl Berry.
71331
71332 2006-11-10  Jim Meyering  <jim@meyering.net>
71333
71334         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71335
71336 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71339         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71340         (bind_textdomain_codeset) [! ENABLE_NLS]:
71341         Evaluate all the arguments.  That way, callers get compatible behavior
71342         if the arguments have side effects.  Also, it avoids some GCC
71343         diagnostics in some cases; Joel E. Denny reported problems when Bison
71344         was configured with --enable-gcc-warnigs.
71345
71346 2006-11-10  Jim Meyering  <jim@meyering.net>
71347
71348         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71349         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71350         account.
71351
71352 2006-11-10  Jim Meyering  <jim@meyering.net>
71353
71354         * modules/inline: New file/module.
71355         * modules/xalloc (Files): Remove m4/inline.m4.
71356         (Depends-on): Add inline, instead.
71357         * modules/oset: Likewise.
71358         * modules/list: Likewise.
71359
71360 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71361
71362         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71363         Problem reported by Matthew Woehlke.
71364
71365 2006-11-09  Bruno Haible  <bruno@clisp.org>
71366
71367         * lib/tempname.c (gen_tempname): Remove variant that invokes
71368         __gen_tempname.
71369         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71370         __gen_tempname.
71371
71372 2006-11-08  Bruno Haible  <bruno@clisp.org>
71373
71374         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71375         to 'yes' instead of 'cross-compiling'.
71376
71377 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71378
71379         * lib/quotearg.h (quotearg_free): New decl.
71380         * lib/quotearg.c (quotearg_free): New function.
71381         (slot0, nslots, slotvec0, slotvec):
71382         Now file-scope so that quotearg_free can get at them.
71383
71384 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71385
71386         Sync from Automake.
71387         * build-aux/gnupload: Add missing 'gnu' to example URL.
71388         Report by Karl Berry.
71389
71390 2006-11-08  Bruno Haible  <bruno@clisp.org>
71391
71392         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71393         Suggested by Paul Eggert.
71394
71395 2006-11-08  Jim Meyering  <jim@meyering.net>
71396
71397         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71398         It's already included if !_LIBC.
71399         (fts_safe_changedir): Add a comment.
71400
71401 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71404         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71405         Matthew Woehlke.
71406
71407         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71408         definitions up, to avoid colliding with change below.
71409         (static_inline) [HAVE_INLINE]: New macro.
71410         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71411         Provide extern decls when !HAVE_INLINE.  Do not define unless
71412         static_inline is defined, either by us or by xmalloc.c.  Use
71413         static_inline rather than static inline.
71414         (XCALLOC): Optimize sizeof(T) = 1 case.
71415         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71416
71417 2006-11-07  Bruno Haible  <bruno@clisp.org>
71418
71419         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71420         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71421         AC_C_INLINE.
71422         * modules/xalloc (Files): Add m4/inline.m4.
71423
71424 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71425
71426         * README: Fix typo.
71427         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71428         (Miscellanous Notes): ...from this.
71429
71430 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71433         Mention that offsetof should be used instead of sizeof.
71434         From Bruno Haible.
71435
71436 2006-11-07  Bruno Haible  <bruno@clisp.org>
71437
71438         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71439
71440 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71441
71442         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71443         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71444         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71445         (gl_tree_add_before, gl_tree_add_after):
71446         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71447         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71448         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71449         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71450         (gl_linked_add_after, gl_linked_add_at): Likewise.
71451         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71452         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71453         (gl_tree_add_before, gl_tree_add_after): Likewise.
71454         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71455         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71456         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71457
71458 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71459
71460         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71461
71462 2006-11-06  Bruno Haible  <bruno@clisp.org>
71463
71464         * m4/inline.m4: New file.
71465         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71466         * modules/list (Files): Add m4/inline.m4.
71467         * modules/oset (Files): Likewise.
71468
71469 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71470
71471         * lib/idcache.c: Include <stddef.h>, for offsetof.
71472         (struct userid.name): Change from char * to a flexible array member.
71473         All uses changed.
71474         * modules/idcache (Depends-on): Add flexmember.
71475
71476         * MODULES.html.sh (Core language properties): New module flexmember.
71477         * modules/flexmember, m4/flexmember.m4: New files.
71478
71479         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71480         inline functions that are identical with the old xnmalloc_inline,
71481         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71482         that we can avoid some unnecessary integer multiplications and
71483         divisions in the common case where the element size is known at
71484         compile time.
71485         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71486         needed.
71487         (xnboundedmalloc): Remove.
71488         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71489         arguments, for consistency with rest of this header.
71490         (xcharalloc): Rewrite using XNMALLOC.
71491         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71492         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71493         versions have been moved to lib/xalloc.h and renamed to be the
71494         non-*_inline versions.
71495         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71496         and xnrealloc functions, since those functions are now inline and
71497         now call us.
71498         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71499         renaming described above.
71500         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71501         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71502         captures the dependency in AC_C_INLINE.
71503
71504         New module canonicalize-lgpl, proposed by Charles Wilson in
71505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71506         with a few small changes afterwards.
71507         * MODULES.html.sh (File system functions): New module
71508         canonicalize-lgpl.
71509         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71510         and canonicalize_file_name.
71511         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71512         * modules/canonicalize-lgpl: New files.
71513
71514 2006-11-05  Bruno Haible  <bruno@clisp.org>
71515
71516         * gnulib-tool (func_import, func_create_testdir): Create directories
71517         also for files in subdirectories of lib/.
71518
71519 2006-11-05  Bruno Haible  <bruno@clisp.org>
71520
71521         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71522         ANSI C compliant.
71523
71524 2006-11-03  Bruno Haible  <bruno@clisp.org>
71525
71526         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71527         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71528         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71529         (xnboundedmalloc): New inline function.
71530         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71531         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71532         xmalloc.
71533         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71534         xmalloc.
71535         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71536         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71537         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71538         xmalloc.
71539         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71540         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71541         xmalloc.
71542         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71543         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71544         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71545         xmalloc.
71546         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71547         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71548         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71549         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71550         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71551         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71552         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71553
71554 2006-11-03  Bruno Haible  <bruno@clisp.org>
71555
71556         * lib/c-ctype.h [C++]: Define functions without name mangling.
71557         * lib/fwriteerror.h [C++]: Likewise.
71558         * lib/gcd.h [C++]: Likewise.
71559         * lib/linebreak.h [C++]: Likewise.
71560
71561 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71562
71563         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71564         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71565         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71566         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71567         Check for functions and headers just once.
71568         Check for declaration of canonicalize_file_name.
71569         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71570
71571 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71572
71573         * gnulib-tool (func_import): Fix typo in actioncmd.
71574
71575 2006-11-02  Bruno Haible  <bruno@clisp.org>
71576
71577         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71578         newline sequence in the Makefile.am snippet as a space, like "make"
71579         does.
71580         Reported by Roger Persson <perrog@gmail.com>.
71581
71582 2006-11-01  Bruno Haible  <bruno@clisp.org>
71583
71584         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71585         already declared in <string.h>.
71586         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71587
71588 2006-11-01  Bruno Haible  <bruno@clisp.org>
71589
71590         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71591         * lib/strcase.h: Include <string.h>.
71592         (strcasecmp): Define to rpl_strcasecmp here.
71593
71594 2006-11-01  Bruno Haible  <bruno@clisp.org>
71595
71596         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71597
71598 2006-11-01  Eric Blake  <ebb9@byu.net>
71599
71600         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71601
71602         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71603
71604 2006-10-29  Bruno Haible  <bruno@clisp.org>
71605
71606         Make it compile in C++ mode.
71607         * lib/full-write.c (full_rw): Add a cast.
71608
71609 2006-11-01  Bruno Haible  <bruno@clisp.org>
71610
71611         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71612         be POSIX compliant.
71613         Reported by Roger Persson <perrog@gmail.com>.
71614
71615 2006-11-01  Eric Blake  <ebb9@byu.net>
71616
71617         * lib/getopt_.h: Fix comments.
71618
71619 2006-10-31  Eric Blake  <ebb9@byu.net>
71620
71621         * modules/tmpdir (Depends-on): Add sys_stat.
71622         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71623         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71624         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71625         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71626         tempname.
71627
71628 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         Avoid some C++ diagnostics reported by Bruno Haible.
71631         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71632         xmalloc.
71633         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71634         (struct slotvec): Move to top level.
71635         (quotearg_n_options): Rewrite to avoid xmalloc.
71636         * lib/xalloc.h (xcharalloc): New function.
71637         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71638         [defined __cplusplus]: Add function template that provides result
71639         type propagation.  This part of the change is from Bruno Haible.
71640
71641 2006-10-29  Bruno Haible  <bruno@clisp.org>
71642
71643         Make it compile in C++ mode.
71644         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71645         * lib/strnlen1.c (strnlen1): Cast memchr result.
71646         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71647         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71648         (create_temp_dir): Rename local variable 'template'.
71649         (compile_csharp_using_sscli): Add cast.
71650         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71651         * lib/findprog.c (find_in_path): Likewise.
71652         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71653         * lib/wait-process.c (register_slave_subprocess): Likewise.
71654
71655 2006-10-22  Bruno Haible  <bruno@clisp.org>
71656
71657         * modules/tsearch: New file.
71658         * lib/tsearch.h: New file.
71659         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71660         * m4/tsearch.m4: New file.
71661         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71662
71663 2006-10-29  Eric Blake  <ebb9@byu.net>
71664
71665         * lib/arcfour.c: Assume config.h.
71666         * lib/arctwo.c: Likewise.
71667         * lib/base64.c: Likewise.
71668         * lib/check-version.c: Likewise.
71669         * lib/crc.c: Likewise.
71670         * lib/des.c: Likewise.
71671         * lib/gc-gnulib.c: Likewise.
71672         * lib/gc-libgcrypt.c: Likewise.
71673         * lib/gc-pbkdf2-sha1.c: Likewise.
71674         * lib/getaddrinfo.c: Likewise.
71675         * lib/getdelim.c: Likewise.
71676         * lib/getline.c: Likewise.
71677         * lib/hmac-md5.c: Likewise.
71678         * lib/hmac-sha1.c: Likewise.
71679         * lib/iconvme.c: Likewise.
71680         * lib/md2.c: Likewise.
71681         * lib/md4.c: Likewise.
71682         * lib/memxor.c: Likewise.
71683         * lib/read-file.c: Likewise.
71684         * lib/readline.c: Likewise.
71685         * lib/rijndael-alg-fst.c: Likewise.
71686         * lib/rijndael-api-fst.c: Likewise.
71687         * lib/xgetdomainname.c: Likewise.
71688
71689 2006-10-28  Eric Blake  <ebb9@byu.net>
71690
71691         * lib/xstrndup.c: Assume config.h.
71692
71693 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71696         stat-macros.h is now for our own macros, whereas stat_h is for
71697         macros in the <sys/stat.h> name space.
71698         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71699         (STAT_MACROS_H): Remove.
71700         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71701         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71702         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71703         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71704         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71705         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71706         Move these macros to ...
71707         * lib/stat_.h: here.  Don't include stat-macros.h.
71708         * lib/canonicalize.c: Don't include stat-macros.h.
71709         * lib/chown.c: Likewise.
71710         * lib/euidaccess.c: Likewise.
71711         * lib/file-type.c: Likewise.
71712         * lib/filemode.c: Likewise.
71713         * lib/glob.c: Likewise.
71714         * lib/isapipe.c: Likewise.
71715         * lib/lchown.c: Likewise.
71716         * lib/lstat.c: Likewise.
71717         * lib/mkdir-p.c: Likewise.
71718         * lib/rmdir.c: Likewise.
71719         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71721         unless mkdir isn't declared, to speed up 'configure'.
71722         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71723         would define all the S_* symbols.
71724         * modules/canonicalize (Depends-on):
71725         Depend on sys_stat, not stat-macros.
71726         * modules/chown: Likewise.
71727         * modules/euidaccess: Likewise.
71728         * modules/filemode: Likewise.
71729         * modules/file-type: Likewise.
71730         * modules/glob: Likewise.
71731         * modules/isapipe: Likewise.
71732         * modules/lchown: Likewise.
71733         * modules/lstat: Likewise.
71734         * modules/mkancesdirs: Likewise.
71735         * modules/rmdir: Likewise.
71736         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71737         * modules/modechange: Likewise.
71738         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71739         (configure.ac): Remove gl_STAT_MACROS.
71740         * modules/sys_stat (Depends-on): Remove stat-macros.
71741
71742 2006-10-27  Bruno Haible  <bruno@clisp.org>
71743
71744         * m4/signed.m4: Remove file.
71745         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71746         invocation.
71747         * modules/vasnprintf (Files): Remove m4/signed.m4.
71748
71749 2006-10-27  Bruno Haible  <bruno@clisp.org>
71750
71751         Update to GNU gettext 0.16.
71752         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71753         m4/inttypes-h.m4, m4/signed.m4.
71754         * m4/gettext.m4: Update to GNU gettext 0.16.
71755         * m4/intl.m4: New file, from GNU gettext.
71756         * m4/intldir.m4: New file, from GNU gettext.
71757         * config/srclist.txt: Update
71758
71759 2006-10-27  Eric Blake  <ebb9@byu.net>
71760
71761         * MODULES.html.sh: Document tempname.
71762         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71763         dependencies.
71764         (Files): Move lib/tempname.c...
71765         * modules/tempname: ...to this new module.
71766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71767         (gl_PREREQ_TEMPNAME): Move...
71768         * m4/tempname.m4: ...to this new file.
71769         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71770         * modules/sys_stat (Depends-on): Add stat-macros.
71771         * lib/stat_.h (includes): Pick up stat macros.
71772         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71773         if stat macros are broken.
71774         * lib/tempname.c (includes): No need to include "stat-macros.h".
71775         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71776         (direxists, __path_search) [!_LIBC]: Don't compile these in
71777         gnulib; the tmpdir module covers that.
71778         * lib/tempname.h: New file.
71779
71780 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * COPYING: Explain how gnulib-tool converts licence headers.
71783         Almost all wording by Eric Blake.
71784
71785 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71786
71787         * lib/mbchar.h (is_basic_table): Make read-only.
71788         * lib/mbchar.c (is_basic_table): Likewise.
71789         Reported by John Darrington.
71790
71791 2006-10-25  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/progname.h (set_program_name): Undefine before defining.
71794
71795 2006-10-25  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71798         false for non-gcc C++ compilers.
71799         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71800
71801 2006-10-24  Bruno Haible  <bruno@clisp.org>
71802
71803         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71804         iconv implementations like Irix iconv.
71805
71806 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71807
71808         * modules/vararrays: New file.
71809         * m4/vararrays.m4: New file, taken from diffutils.
71810         * MODULES.html.sh: New module vararrays.
71811
71812 2006-10-24  Karl Berry  <karl@gnu.org>
71813
71814         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71815         Don't call GNU Unix.
71816
71817 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71818
71819         * users.txt: Add Libtool.
71820
71821         Sync from Libtool:
71822
71823         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71824
71825         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71826         to gnulib's policy of including config.h unconditionally.
71827
71828 2006-10-24  Bruno Haible  <bruno@clisp.org>
71829
71830         * modules/wcwidth (Files): Add m4/wint_t.m4.
71831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71832         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71833
71834 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71835
71836         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71837         to pacify GCC with some -W flags enabled.  Problem reported by
71838         Bruno Haible.
71839
71840 2006-10-24  Jim Meyering  <jim@meyering.net>
71841
71842         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71843         Reported by Karl Berry.
71844
71845 2006-10-23  Bruno Haible  <bruno@clisp.org>
71846
71847         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71848
71849 2006-10-24  Bruno Haible  <bruno@clisp.org>
71850
71851         * lib/gl_list.h: Use C comment style, not C++ comment style.
71852
71853 2006-10-23  Eric Blake  <ebb9@byu.net>
71854
71855         * lib/getaddrinfo.c (includes): Add missing include.
71856
71857 2006-10-23  Bruno Haible  <bruno@clisp.org>
71858             Paul Eggert  <eggert@cs.ucla.edu>
71859
71860         Ability to rename obstack_free.
71861         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71862         obstack_free.
71863         (obstack_free): Invoke the __obstack_free macro.
71864         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71865
71866 2006-10-23  Bruno Haible  <bruno@clisp.org>
71867             Paul Eggert  <eggert@cs.ucla.edu>
71868
71869         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71870         __argc, __argv from the declaration. (They are defined as macros on
71871         mingw.)
71872
71873 2006-10-22  Bruno Haible  <bruno@clisp.org>
71874
71875         * doc/gnulib-intro.texi: New file.
71876         * doc/gnulib.texi: Include it.
71877
71878 2006-10-21  Bruno Haible  <bruno@clisp.org>
71879
71880         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71881         "Introduction", "Miscellanous Notes", "Particular Modules".
71882
71883 2006-10-21  Bruno Haible  <bruno@clisp.org>
71884
71885         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71886         Change mostlyclean-local rule to avoid sh syntax error from bash
71887         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71888
71889 2006-10-23  Jim Meyering  <jim@meyering.net>
71890
71891         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71892         in place of snprintf.
71893
71894         * modules/inttostr (Files): Add lib/uinttostr.c.
71895         * lib/uinttostr.c (inttostr): New file/function.
71896         * lib/inttostr.h (uinttostr): Declare.
71897         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71898         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71899         Add uinttostr.
71900         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71901
71902 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * lib/canonicalize.c (ELOOP): Define if not already defined.
71905         Problem reported by Bruno Haible in
71906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71907
71908 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71911         Problem reported by Perry Smith and Ville Laurikari.
71912
71913         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71914         uses.
71915
71916 2006-10-19  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71919         for mingw.
71920
71921 2006-10-19  Bruno Haible  <bruno@clisp.org>
71922
71923         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71924         Needed for mingw.
71925
71926 2006-10-19  Bruno Haible  <bruno@clisp.org>
71927
71928         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71929
71930 2006-10-19  Bruno Haible  <bruno@clisp.org>
71931
71932         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71933         it.
71934
71935 2006-10-19  Bruno Haible  <bruno@clisp.org>
71936
71937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71938         invocation.
71939
71940 2006-10-19  Bruno Haible  <bruno@clisp.org>
71941
71942         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71943         mountlist by default.
71944
71945 2006-10-16  Bruno Haible  <bruno@clisp.org>
71946
71947         * lib/c-strstr.c: Include c-strstr.h.
71948
71949 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71950
71951         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71952         in a slash.
71953
71954 2006-10-18  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/lock.h [C++]: Wrap definitions in extern "C".
71957
71958 2006-10-18  Bruno Haible  <bruno@clisp.org>
71959
71960         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71961         gl_LIBOBJS list.
71962
71963 2006-10-18  Bruno Haible  <bruno@clisp.org>
71964
71965         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71966
71967 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * lib/xstrtol.h: Include gettext.h.
71970         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71971         Problem reported by Eric Blake.
71972         * modules/xstrtol (Depends-on): Add gettext-h.
71973
71974 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71975
71976         * lib/strftime.c (advance): New macro.
71977         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71978         incomplete type, so you can't add 0 to it.  Problem and patch
71979         reported by Eelco Dolstra for dietlibc.
71980
71981 2006-10-18  Jim Meyering  <jim@meyering.net>
71982
71983         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71984         type for a local, and rename it: s/up/user_proc/.
71985
71986 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71987
71988         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71989         READ_UTMP_USER_PROCESS.
71990         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71991
71992 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71993
71994         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71995         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71996
71997 2006-10-17  Eric Blake  <ebb9@byu.net>
71998
71999         * lib/sigprocmask.c (sigprocmask): Fix typo.
72000
72001         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72002
72003         * modules/clean-temp (Makefile.am): Don't add to make output...
72004         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72005         config.h.
72006
72007 2006-10-17  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72010         differently if DEFAULT_TEXT_DOMAIN is set.
72011
72012 2006-10-16  Bruno Haible  <bruno@clisp.org>
72013
72014         * lib/clean-temp.c: Include fwriteerror.h.
72015
72016 2006-10-16  Bruno Haible  <bruno@clisp.org>
72017
72018         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72019
72020 2006-10-16  Bruno Haible  <bruno@clisp.org>
72021
72022         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72023         * lib/sigprocmask.h: Include <sys/types.h>.
72024         (sigset_t): Use the system's definition if present.
72025
72026 2006-10-17  Eric Blake  <ebb9@byu.net>
72027
72028         * lib/xvasprintf.c (includes): Assume config.h.
72029         * lib/xasprintf.c (includes): Likewise.
72030
72031 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72034         at least as wide as intmax_t.
72035
72036 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72037
72038         (Imported from Automake.)
72039         * build-aux/gnupload: Update to version 1.1 of directive file.
72040
72041 2006-10-16  Eric Blake  <ebb9@byu.net>
72042
72043         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72044         match Automake 1.10a.
72045
72046 2006-10-14  Bruno Haible  <bruno@clisp.org>
72047
72048         * modules/sigprocmask: New file.
72049         * lib/sigprocmask.h: New file.
72050         * lib/sigprocmask.c: New file.
72051         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72052         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72053         request sigprocmask.o.
72054         (gl_PREREQ_SIGPROCMASK): New macro.
72055         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72056         (Depends-on): Add sigprocmask.
72057         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72058         gt_SIGNALBLOCKING. Test for 'raise' only once.
72059         * lib/fatal-signal.c: Include sigprocmask.h.
72060         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72061         unblock_fatal_signals): Define always.
72062         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72063         sigprocmask.
72064
72065 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72066
72067         Sync from Automake.
72068         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72069         which incorrectly sets the mode of an existing destination
72070         directory.  In some cases the unpatched install-sh could do the
72071         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72072         system.  We hope this is rare in practice, but it's clearly worth
72073         fixing.  Problem reported by Alex Unleashed in
72074         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72075         Also, don't bother to check for -m bugs unless we're using -m;
72076         suggested by Stepan Kasal.
72077
72078 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72079
72080         Sync from Automake.
72081         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72082         `-c' flag, so they appear at the same position as in %FASTDEP%
72083         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72084         which ignores unknown options only after the first non-option.
72085         Bug report against M4 by Nelson H. F. Beebe.
72086
72087 2006-10-13  Jim Meyering  <jim@meyering.net>
72088
72089         Fix a bug in yesterday's change.
72090         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72091         p->fts_statp->st_dev would be used uninitialized.
72092         Ensures that we always call fts_stat on the very first entry.
72093         Miklos Szeredi reported that find -xdev stopped working.
72094
72095 2006-10-12  Bruno Haible  <bruno@clisp.org>
72096
72097         * gnulib-tool (func_get_automake_snippet): Append an automatically
72098         computed EXTRA_DIST augmentation.
72099         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72100         * modules/alloca-opt (Makefile.am): Likewise.
72101         * modules/allocsa (Makefile.am): Likewise.
72102         * modules/arcfour (Makefile.am): Likewise.
72103         * modules/arctwo (Makefile.am): Likewise.
72104         * modules/argmatch (Makefile.am): Likewise.
72105         * modules/argz (Makefile.am): Likewise.
72106         * modules/atexit (Makefile.am): Likewise.
72107         * modules/backupfile (Makefile.am): Likewise.
72108         * modules/byteswap (Makefile.am): Likewise.
72109         * modules/c-strtod (Makefile.am): Likewise.
72110         * modules/c-strtold (Makefile.am): Likewise.
72111         * modules/calloc (Makefile.am): Likewise.
72112         * modules/canon-host (Makefile.am): Likewise.
72113         * modules/canonicalize (Makefile.am): Likewise.
72114         * modules/chdir-long (Makefile.am): Likewise.
72115         * modules/chdir-safer (Makefile.am): Likewise.
72116         * modules/check-version (Makefile.am): Likewise.
72117         * modules/chown (Makefile.am): Likewise.
72118         * modules/cloexec (Makefile.am): Likewise.
72119         * modules/close-stream (Makefile.am): Likewise.
72120         * modules/closeout (Makefile.am): Likewise.
72121         * modules/crc (Makefile.am): Likewise.
72122         * modules/csharpexec (Makefile.am): Likewise.
72123         * modules/cycle-check (Makefile.am): Likewise.
72124         * modules/des (Makefile.am): Likewise.
72125         * modules/dev-ino (Makefile.am): Likewise.
72126         * modules/dirfd (Makefile.am): Likewise.
72127         * modules/dirname (Makefile.am): Likewise.
72128         * modules/dup2 (Makefile.am): Likewise.
72129         * modules/eealloc (Makefile.am): Likewise.
72130         * modules/error (Makefile.am): Likewise.
72131         * modules/euidaccess (Makefile.am): Likewise.
72132         * modules/exclude (Makefile.am): Likewise.
72133         * modules/exitfail (Makefile.am): Likewise.
72134         * modules/fcntl-safer (Makefile.am): Likewise.
72135         * modules/fcntl (Makefile.am): Likewise.
72136         * modules/file-type (Makefile.am): Likewise.
72137         * modules/fileblocks (Makefile.am): Likewise.
72138         * modules/filemode (Makefile.am): Likewise.
72139         * modules/filenamecat (Makefile.am): Likewise.
72140         * modules/fnmatch (Makefile.am): Likewise.
72141         * modules/fopen-safer (Makefile.am): Likewise.
72142         * modules/fpending (Makefile.am): Likewise.
72143         * modules/fprintftime (Makefile.am): Likewise.
72144         * modules/free (Makefile.am): Likewise.
72145         * modules/fsusage (Makefile.am): Likewise.
72146         * modules/ftruncate (Makefile.am): Likewise.
72147         * modules/fts (Makefile.am): Likewise.
72148         * modules/gc-arcfour (Makefile.am): Likewise.
72149         * modules/gc-des (Makefile.am): Likewise.
72150         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72151         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72152         * modules/gc-md4 (Makefile.am): Likewise.
72153         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72154         * modules/gc-sha1 (Makefile.am): Likewise.
72155         * modules/gc (Makefile.am): Likewise.
72156         * modules/getaddrinfo (Makefile.am): Likewise.
72157         * modules/getcwd (Makefile.am): Likewise.
72158         * modules/getdelim (Makefile.am): Likewise.
72159         * modules/getdomainname (Makefile.am): Likewise.
72160         * modules/getgroups (Makefile.am): Likewise.
72161         * modules/gethostname (Makefile.am): Likewise.
72162         * modules/gethrxtime (Makefile.am): Likewise.
72163         * modules/getline (Makefile.am): Likewise.
72164         * modules/getloadavg (Makefile.am): Likewise.
72165         * modules/getlogin_r (Makefile.am): Likewise.
72166         * modules/getndelim2 (Makefile.am): Likewise.
72167         * modules/getopt (Makefile.am): Likewise.
72168         * modules/getpagesize (Makefile.am): Likewise.
72169         * modules/getpass-gnu (Makefile.am): Likewise.
72170         * modules/getpass (Makefile.am): Likewise.
72171         * modules/getsubopt (Makefile.am): Likewise.
72172         * modules/gettime (Makefile.am): Likewise.
72173         * modules/gettimeofday (Makefile.am): Likewise.
72174         * modules/getugroups (Makefile.am): Likewise.
72175         * modules/getusershell (Makefile.am): Likewise.
72176         * modules/glob (Makefile.am): Likewise.
72177         * modules/group-member (Makefile.am): Likewise.
72178         * modules/hard-locale (Makefile.am): Likewise.
72179         * modules/hash (Makefile.am): Likewise.
72180         * modules/hmac-md5 (Makefile.am): Likewise.
72181         * modules/hmac-sha1 (Makefile.am): Likewise.
72182         * modules/human (Makefile.am): Likewise.
72183         * modules/idcache (Makefile.am): Likewise.
72184         * modules/imaxabs (Makefile.am): Likewise.
72185         * modules/imaxdiv (Makefile.am): Likewise.
72186         * modules/inet_ntop (Makefile.am): Likewise.
72187         * modules/inet_pton (Makefile.am): Likewise.
72188         * modules/intprops (Makefile.am): Likewise.
72189         * modules/inttostr (Makefile.am): Likewise.
72190         * modules/inttypes (Makefile.am): Likewise.
72191         * modules/isapipe (Makefile.am): Likewise.
72192         * modules/javaversion (Makefile.am): Likewise.
72193         * modules/lchmod (Makefile.am): Likewise.
72194         * modules/lchown (Makefile.am): Likewise.
72195         * modules/localcharset (Makefile.am): Likewise.
72196         * modules/long-options (Makefile.am): Likewise.
72197         * modules/lstat (Makefile.am): Likewise.
72198         * modules/malloc (Makefile.am): Likewise.
72199         * modules/mathl (Makefile.am): Likewise.
72200         * modules/mbchar (Makefile.am): Likewise.
72201         * modules/md2 (Makefile.am): Likewise.
72202         * modules/md4 (Makefile.am): Likewise.
72203         * modules/md5 (Makefile.am): Likewise.
72204         * modules/memcasecmp (Makefile.am): Likewise.
72205         * modules/memchr (Makefile.am): Likewise.
72206         * modules/memcmp (Makefile.am): Likewise.
72207         * modules/memcoll (Makefile.am): Likewise.
72208         * modules/memcpy (Makefile.am): Likewise.
72209         * modules/memmem (Makefile.am): Likewise.
72210         * modules/memmove (Makefile.am): Likewise.
72211         * modules/mempcpy (Makefile.am): Likewise.
72212         * modules/memrchr (Makefile.am): Likewise.
72213         * modules/memset (Makefile.am): Likewise.
72214         * modules/memxor (Makefile.am): Likewise.
72215         * modules/mkancesdirs (Makefile.am): Likewise.
72216         * modules/mkdir-p (Makefile.am): Likewise.
72217         * modules/mkdir (Makefile.am): Likewise.
72218         * modules/mkdtemp (Makefile.am): Likewise.
72219         * modules/mkstemp (Makefile.am): Likewise.
72220         * modules/mktime (Makefile.am): Likewise.
72221         * modules/modechange (Makefile.am): Likewise.
72222         * modules/mountlist (Makefile.am): Likewise.
72223         * modules/nanosleep (Makefile.am): Likewise.
72224         * modules/obstack (Makefile.am): Likewise.
72225         * modules/openat (Makefile.am): Likewise.
72226         * modules/pagealign_alloc (Makefile.am): Likewise.
72227         * modules/pathmax (Makefile.am): Likewise.
72228         * modules/physmem (Makefile.am): Likewise.
72229         * modules/poll (Makefile.am): Likewise.
72230         * modules/posixtm (Makefile.am): Likewise.
72231         * modules/posixver (Makefile.am): Likewise.
72232         * modules/putenv (Makefile.am): Likewise.
72233         * modules/quote (Makefile.am): Likewise.
72234         * modules/quotearg (Makefile.am): Likewise.
72235         * modules/raise (Makefile.am): Likewise.
72236         * modules/read-file (Makefile.am): Likewise.
72237         * modules/readline (Makefile.am): Likewise.
72238         * modules/readlink (Makefile.am): Likewise.
72239         * modules/readtokens (Makefile.am): Likewise.
72240         * modules/readutmp (Makefile.am): Likewise.
72241         * modules/realloc (Makefile.am): Likewise.
72242         * modules/regex (Makefile.am): Likewise.
72243         * modules/rename-dest-slash (Makefile.am): Likewise.
72244         * modules/rename (Makefile.am): Likewise.
72245         * modules/rijndael (Makefile.am): Likewise.
72246         * modules/rmdir (Makefile.am): Likewise.
72247         * modules/rpmatch (Makefile.am): Likewise.
72248         * modules/safe-read (Makefile.am): Likewise.
72249         * modules/safe-write (Makefile.am): Likewise.
72250         * modules/same-inode (Makefile.am): Likewise.
72251         * modules/same (Makefile.am): Likewise.
72252         * modules/save-cwd (Makefile.am): Likewise.
72253         * modules/savedir (Makefile.am): Likewise.
72254         * modules/setenv (Makefile.am): Likewise.
72255         * modules/settime (Makefile.am): Likewise.
72256         * modules/sha1 (Makefile.am): Likewise.
72257         * modules/sig2str (Makefile.am): Likewise.
72258         * modules/snprintf (Makefile.am): Likewise.
72259         * modules/stat-macros (Makefile.am): Likewise.
72260         * modules/stat-time (Makefile.am): Likewise.
72261         * modules/stdbool (Makefile.am): Likewise.
72262         * modules/stdint (Makefile.am): Likewise.
72263         * modules/stdlib-safer (Makefile.am): Likewise.
72264         * modules/stpcpy (Makefile.am): Likewise.
72265         * modules/stpncpy (Makefile.am): Likewise.
72266         * modules/strcase (Makefile.am): Likewise.
72267         * modules/strcasestr (Makefile.am): Likewise.
72268         * modules/strchrnul (Makefile.am): Likewise.
72269         * modules/strcspn (Makefile.am): Likewise.
72270         * modules/strdup (Makefile.am): Likewise.
72271         * modules/strerror (Makefile.am): Likewise.
72272         * modules/strftime (Makefile.am): Likewise.
72273         * modules/strndup (Makefile.am): Likewise.
72274         * modules/strnlen (Makefile.am): Likewise.
72275         * modules/strpbrk (Makefile.am): Likewise.
72276         * modules/strsep (Makefile.am): Likewise.
72277         * modules/strstr (Makefile.am): Likewise.
72278         * modules/strtod (Makefile.am): Likewise.
72279         * modules/strtoimax (Makefile.am): Likewise.
72280         * modules/strtok_r (Makefile.am): Likewise.
72281         * modules/strtol (Makefile.am): Likewise.
72282         * modules/strtoll (Makefile.am): Likewise.
72283         * modules/strtoul (Makefile.am): Likewise.
72284         * modules/strtoull (Makefile.am): Likewise.
72285         * modules/strtoumax (Makefile.am): Likewise.
72286         * modules/strverscmp (Makefile.am): Likewise.
72287         * modules/sys_socket (Makefile.am): Likewise.
72288         * modules/sys_stat (Makefile.am): Likewise.
72289         * modules/sysexits (Makefile.am): Likewise.
72290         * modules/time_r (Makefile.am): Likewise.
72291         * modules/timegm (Makefile.am): Likewise.
72292         * modules/timespec (Makefile.am): Likewise.
72293         * modules/tmpfile-safer (Makefile.am): Likewise.
72294         * modules/trim (Makefile.am): Likewise.
72295         * modules/unistd-safer (Makefile.am): Likewise.
72296         * modules/unlinkdir (Makefile.am): Likewise.
72297         * modules/unlocked-io (Makefile.am): Likewise.
72298         * modules/userspec (Makefile.am): Likewise.
72299         * modules/utime (Makefile.am): Likewise.
72300         * modules/utimecmp (Makefile.am): Likewise.
72301         * modules/utimens (Makefile.am): Likewise.
72302         * modules/vasnprintf (Makefile.am): Likewise.
72303         * modules/vasprintf (Makefile.am): Likewise.
72304         * modules/vsnprintf (Makefile.am): Likewise.
72305         * modules/xalloc (Makefile.am): Likewise.
72306         * modules/xgetcwd (Makefile.am): Likewise.
72307         * modules/xnanosleep (Makefile.am): Likewise.
72308         * modules/xreadlink (Makefile.am): Likewise.
72309         * modules/xstrtod (Makefile.am): Likewise.
72310         * modules/xstrtol (Makefile.am): Likewise.
72311         * modules/xstrtold (Makefile.am): Likewise.
72312         * modules/yesno (Makefile.am): Likewise.
72313         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72314
72315 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * modules/error (Makefile.am): Distribute files through
72318         EXTRA_DIST, not lib_SOURCES.
72319
72320 2006-10-12  Eric Blake  <ebb9@byu.net>
72321
72322         * modules/error (Makefile.am): Distribute files in /lib.
72323         * modules/obstack (Makefile.am): Likewise.
72324
72325 2006-10-12  Bruno Haible  <bruno@clisp.org>
72326
72327         * modules/acl (Makefile.am): Distribute all files in lib/ through
72328         EXTRA_DIST.
72329         * modules/arcfour (Makefile.am): Likewise.
72330         * modules/arctwo (Makefile.am): Likewise.
72331         * modules/argmatch (Makefile.am): Likewise.
72332         * modules/argz (Makefile.am): Likewise.
72333         * modules/atexit (Makefile.am): Likewise.
72334         * modules/backupfile (Makefile.am): Likewise.
72335         * modules/c-strtod (Makefile.am): Likewise.
72336         * modules/c-strtold (Makefile.am): Likewise.
72337         * modules/calloc (Makefile.am): Likewise.
72338         * modules/canon-host (Makefile.am): Likewise.
72339         * modules/canonicalize (Makefile.am): Likewise.
72340         * modules/chdir-long (Makefile.am): Likewise.
72341         * modules/chdir-safer (Makefile.am): Likewise.
72342         * modules/check-version (Makefile.am): Likewise.
72343         * modules/chown (Makefile.am): Likewise.
72344         * modules/cloexec (Makefile.am): Likewise.
72345         * modules/close-stream (Makefile.am): Likewise.
72346         * modules/closeout (Makefile.am): Likewise.
72347         * modules/crc (Makefile.am): Likewise.
72348         * modules/cycle-check (Makefile.am): Likewise.
72349         * modules/des (Makefile.am): Likewise.
72350         * modules/dirfd (Makefile.am): Likewise.
72351         * modules/dirname (Makefile.am): Likewise.
72352         * modules/dup2 (Makefile.am): Likewise.
72353         * modules/euidaccess (Makefile.am): Likewise.
72354         * modules/exclude (Makefile.am): Likewise.
72355         * modules/exitfail (Makefile.am): Likewise.
72356         * modules/fcntl-safer (Makefile.am): Likewise.
72357         * modules/file-type (Makefile.am): Likewise.
72358         * modules/fileblocks (Makefile.am): Likewise.
72359         * modules/filemode (Makefile.am): Likewise.
72360         * modules/filenamecat (Makefile.am): Likewise.
72361         * modules/fnmatch (Makefile.am): Likewise.
72362         * modules/fopen-safer (Makefile.am): Likewise.
72363         * modules/fpending (Makefile.am): Likewise.
72364         * modules/fprintftime (Makefile.am): Likewise.
72365         * modules/free (Makefile.am): Likewise.
72366         * modules/fsusage (Makefile.am): Likewise.
72367         * modules/ftruncate (Makefile.am): Likewise.
72368         * modules/fts (Makefile.am): Likewise.
72369         * modules/gc (Makefile.am): Likewise.
72370         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72371         * modules/getaddrinfo (Makefile.am): Likewise.
72372         * modules/getcwd (Makefile.am): Likewise.
72373         * modules/getdelim (Makefile.am): Likewise.
72374         * modules/getdomainname (Makefile.am): Likewise.
72375         * modules/getgroups (Makefile.am): Likewise.
72376         * modules/gethostname (Makefile.am): Likewise.
72377         * modules/gethrxtime (Makefile.am): Likewise.
72378         * modules/getline (Makefile.am): Likewise.
72379         * modules/getloadavg (Makefile.am): Likewise.
72380         * modules/getlogin_r (Makefile.am): Likewise.
72381         * modules/getopt (Makefile.am): Likewise.
72382         * modules/getpass (Makefile.am): Likewise.
72383         * modules/getpass-gnu (Makefile.am): Likewise.
72384         * modules/getsubopt (Makefile.am): Likewise.
72385         * modules/gettime (Makefile.am): Likewise.
72386         * modules/gettimeofday (Makefile.am): Likewise.
72387         * modules/getugroups (Makefile.am): Likewise.
72388         * modules/getusershell (Makefile.am): Likewise.
72389         * modules/glob (Makefile.am): Likewise.
72390         * modules/group-member (Makefile.am): Likewise.
72391         * modules/hard-locale (Makefile.am): Likewise.
72392         * modules/hash (Makefile.am): Likewise.
72393         * modules/hmac-md5 (Makefile.am): Likewise.
72394         * modules/hmac-sha1 (Makefile.am): Likewise.
72395         * modules/human (Makefile.am): Likewise.
72396         * modules/idcache (Makefile.am): Likewise.
72397         * modules/imaxabs (Makefile.am): Likewise.
72398         * modules/imaxdiv (Makefile.am): Likewise.
72399         * modules/inet_ntop (Makefile.am): Likewise.
72400         * modules/inet_pton (Makefile.am): Likewise.
72401         * modules/inttostr (Makefile.am): Likewise.
72402         * modules/isapipe (Makefile.am): Likewise.
72403         * modules/lchown (Makefile.am): Likewise.
72404         * modules/long-options (Makefile.am): Likewise.
72405         * modules/lstat (Makefile.am): Likewise.
72406         * modules/malloc (Makefile.am): Likewise.
72407         * modules/mathl (Makefile.am): Likewise.
72408         * modules/mbchar (Makefile.am): Likewise.
72409         * modules/md2 (Makefile.am): Likewise.
72410         * modules/md4 (Makefile.am): Likewise.
72411         * modules/md5 (Makefile.am): Likewise.
72412         * modules/memcasecmp (Makefile.am): Likewise.
72413         * modules/memchr (Makefile.am): Likewise.
72414         * modules/memcmp (Makefile.am): Likewise.
72415         * modules/memcoll (Makefile.am): Likewise.
72416         * modules/memcpy (Makefile.am): Likewise.
72417         * modules/memmem (Makefile.am): Likewise.
72418         * modules/memmove (Makefile.am): Likewise.
72419         * modules/mempcpy (Makefile.am): Likewise.
72420         * modules/memrchr (Makefile.am): Likewise.
72421         * modules/memset (Makefile.am): Likewise.
72422         * modules/memxor (Makefile.am): Likewise.
72423         * modules/mkancesdirs (Makefile.am): Likewise.
72424         * modules/mkdir (Makefile.am): Likewise.
72425         * modules/mkdir-p (Makefile.am): Likewise.
72426         * modules/mkdtemp (Makefile.am): Likewise.
72427         * modules/mkstemp (Makefile.am): Likewise.
72428         * modules/mktime (Makefile.am): Likewise.
72429         * modules/modechange (Makefile.am): Likewise.
72430         * modules/mountlist (Makefile.am): Likewise.
72431         * modules/nanosleep (Makefile.am): Likewise.
72432         * modules/openat (Makefile.am): Likewise.
72433         * modules/pagealign_alloc (Makefile.am): Likewise.
72434         * modules/physmem (Makefile.am): Likewise.
72435         * modules/poll (Makefile.am): Likewise.
72436         * modules/posixtm (Makefile.am): Likewise.
72437         * modules/posixver (Makefile.am): Likewise.
72438         * modules/putenv (Makefile.am): Likewise.
72439         * modules/quote (Makefile.am): Likewise.
72440         * modules/quotearg (Makefile.am): Likewise.
72441         * modules/raise (Makefile.am): Likewise.
72442         * modules/read-file (Makefile.am): Likewise.
72443         * modules/readline (Makefile.am): Likewise.
72444         * modules/readlink (Makefile.am): Likewise.
72445         * modules/readtokens (Makefile.am): Likewise.
72446         * modules/readutmp (Makefile.am): Likewise.
72447         * modules/realloc (Makefile.am): Likewise.
72448         * modules/regex (Makefile.am): Likewise.
72449         * modules/rename (Makefile.am): Likewise.
72450         * modules/rename-dest-slash (Makefile.am): Likewise.
72451         * modules/rijndael (Makefile.am): Likewise.
72452         * modules/rmdir (Makefile.am): Likewise.
72453         * modules/rpmatch (Makefile.am): Likewise.
72454         * modules/safe-read (Makefile.am): Likewise.
72455         * modules/safe-write (Makefile.am): Likewise.
72456         * modules/same (Makefile.am): Likewise.
72457         * modules/save-cwd (Makefile.am): Likewise.
72458         * modules/savedir (Makefile.am): Likewise.
72459         * modules/setenv (Makefile.am): Likewise.
72460         * modules/settime (Makefile.am): Likewise.
72461         * modules/sha1 (Makefile.am): Likewise.
72462         * modules/sig2str (Makefile.am): Likewise.
72463         * modules/snprintf (Makefile.am): Likewise.
72464         * modules/stdlib-safer (Makefile.am): Likewise.
72465         * modules/stpcpy (Makefile.am): Likewise.
72466         * modules/stpncpy (Makefile.am): Likewise.
72467         * modules/strcase (Makefile.am): Likewise.
72468         * modules/strcasestr (Makefile.am): Likewise.
72469         * modules/strchrnul (Makefile.am): Likewise.
72470         * modules/strcspn (Makefile.am): Likewise.
72471         * modules/strdup (Makefile.am): Likewise.
72472         * modules/strerror (Makefile.am): Likewise.
72473         * modules/strftime (Makefile.am): Likewise.
72474         * modules/strndup (Makefile.am): Likewise.
72475         * modules/strnlen (Makefile.am): Likewise.
72476         * modules/strpbrk (Makefile.am): Likewise.
72477         * modules/strsep (Makefile.am): Likewise.
72478         * modules/strstr (Makefile.am): Likewise.
72479         * modules/strtod (Makefile.am): Likewise.
72480         * modules/strtoimax (Makefile.am): Likewise.
72481         * modules/strtok_r (Makefile.am): Likewise.
72482         * modules/strtol (Makefile.am): Likewise.
72483         * modules/strtoll (Makefile.am): Likewise.
72484         * modules/strtoul (Makefile.am): Likewise.
72485         * modules/strtoull (Makefile.am): Likewise.
72486         * modules/strtoumax (Makefile.am): Likewise.
72487         * modules/strverscmp (Makefile.am): Likewise.
72488         * modules/time_r (Makefile.am): Likewise.
72489         * modules/timegm (Makefile.am): Likewise.
72490         * modules/tmpfile-safer (Makefile.am): Likewise.
72491         * modules/unistd-safer (Makefile.am): Likewise.
72492         * modules/unlinkdir (Makefile.am): Likewise.
72493         * modules/userspec (Makefile.am): Likewise.
72494         * modules/utime (Makefile.am): Likewise.
72495         * modules/utimecmp (Makefile.am): Likewise.
72496         * modules/utimens (Makefile.am): Likewise.
72497         * modules/vasnprintf (Makefile.am): Likewise.
72498         * modules/vasprintf (Makefile.am): Likewise.
72499         * modules/vsnprintf (Makefile.am): Likewise.
72500         * modules/xalloc (Makefile.am): Likewise.
72501         * modules/xgetcwd (Makefile.am): Likewise.
72502         * modules/xnanosleep (Makefile.am): Likewise.
72503         * modules/xreadlink (Makefile.am): Likewise.
72504         * modules/xstrtod (Makefile.am): Likewise.
72505         * modules/xstrtol (Makefile.am): Likewise.
72506         * modules/xstrtold (Makefile.am): Likewise.
72507         * modules/yesno (Makefile.am): Likewise.
72508
72509 2006-10-12  Jim Meyering  <jim@meyering.net>
72510
72511         * m4/getloadavg.m4: Revert the change below.
72512
72513         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72514         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72515         fail with a symlink, which is what coreutils' ./bootstrap now
72516         creates by default.
72517
72518 2006-10-12  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72521         mingw.
72522         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72523         MSVC and mingw explicitly.
72524
72525 2006-10-11  Simon Josefsson  <jas@extundo.com>
72526             Bruno Haible  <bruno@clisp.org>
72527
72528         Add support for multiple gnulib-tool invocations in the scope of a
72529         single configure.ac file.
72530         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72531         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72532         with the same contents as the _LIBADD variable.
72533         (func_emit_initmacro_start, func_emit_initmacro_end,
72534         func_emit_initmacro_done): New functions.
72535         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72536         gl_LIBOBJS and gl_LTLIBOBJS.
72537
72538 2006-10-11  Bruno Haible  <bruno@clisp.org>
72539
72540         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72541         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72542         autoreconf. Instead, invoke autopoint explicitly but move back the
72543         *.m4 files from gnulib.
72544
72545 2006-10-11  Bruno Haible  <bruno@clisp.org>
72546
72547         * gnulib-tool (func_usage): Make module names after --create-testdir
72548         optional.
72549         (func_create_testdir): If no module was specified, use nearly all
72550         modules.
72551
72552 2006-10-12  Jim Meyering  <jim@meyering.net>
72553
72554         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72555         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72556         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72557         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72558         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72559         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72560         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72561         (fts_set_stat_required): New function.
72562         (fts_open): Defer the calls to fts_stat, if possible or requested.
72563         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72564         into fts_stat itself.
72565         (fts_read): Perform any required (deferred) fts_stat call.
72566         (fts_build): Likewise, for the directory we're about to open and read.
72567         In the readdir loop, carefully decide whether each entry will require
72568         an eventual call to fts_stat, using dirent.d_type info if available.
72569         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72570         a command line argument into this function.  Update all callers.
72571         Map a return value of FTS_DOT to FTS_D for a command line argument.
72572         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72573         Thanks to Miklos Szeredi for his tenacity and for the initial
72574         bug report about "find" failing on a FUSE-based file system.
72575
72576         * lib/fts.c (fts_open): Use consistent indentation.
72577
72578 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72581         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72582         reported by Jim Meyering.  All uses of cache variables renamed
72583         to match Autoconf's.
72584         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72585         the other one.
72586
72587         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72588         Fix misspelling in diagnostic.
72589
72590 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72591
72592         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72593         defined.  Problem reported by Matthew Woehlke.
72594
72595         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72596         Add support for Tandem NonStop R series.
72597         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72598         Use new macro.
72599
72600         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72601         (has_trailing_slash): Omit size arg; all callers changed.
72602         Omit 'inline', since it doesn't help performance and we'd
72603         need to configure it.
72604         Don't count //, ///, etc. as having a trailing slash.
72605         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72606         (rpl_rename_dest_slash): On failure, use rename's errno rather
72607         than (in some cases) an incorrect or junk errno.
72608         Simplify code by removing need to compute length; this does
72609         cause it to make two passes instead of one over the file name,
72610         but it's worth it.
72611
72612         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72613         change, since Autoconf's version may no longer be appropriate now
72614         that we are using CVS Autoconf's version.  Add support for Tandem.
72615
72616 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72617             Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72620         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72621         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72622         gl_AC_TYPE_LONG_LONG.
72623
72624         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72625         instead of HAVE_LONG_LONG.
72626         * lib/printf-args.c (printf_fetchargs): Likewise.
72627         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72628         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72629         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72630         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72631         gl_AC_TYPE_LONG_LONG.
72632
72633 2006-10-11  Bruno Haible  <bruno@clisp.org>
72634
72635         * m4/longlong.m4: Add comments.
72636         * m4/ulonglong.m4: Likewise.
72637
72638 2006-10-10  Bruno Haible  <bruno@clisp.org>
72639
72640         Make it possible to #define stpcpy, strdup to aliases.
72641         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72642         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72643
72644 2006-10-10  Bruno Haible  <bruno@clisp.org>
72645
72646         Make it possible to #define gcd to an alias.
72647         * lib/gcd.c: Include config.h.
72648
72649 2006-10-10  Bruno Haible  <bruno@clisp.org>
72650
72651         Make it possible to #define c_isascii to an alias.
72652         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72653         defined. Undefine the macros before defining them, to avoid gcc
72654         warnings.
72655         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72656         define NO_C_CTYPE_MACROS early.
72657
72658 2006-10-10  Bruno Haible  <bruno@clisp.org>
72659
72660         Make it possible to #define set_program_name to an alias.
72661         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72662         ENABLE_RELOCATABLE early.
72663
72664 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72667         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72668         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72669         More generally, don't assume that 64-bit signed int is available
72670         if unsigned int is, and vice versa.
72671         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72672         unsigned symbols, not on their signed counterparts.
72673         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72674         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72675         (UINT64_C, UINTMAX_C):
72676         Likewise.
72677         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72678         unsigned counterparts.
72679         (Have_long_long, Unsigned): New macros.
72680         (Int): Renamed from INT.
72681         (strtoimax): Use the new macros.
72682         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72683         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72684         * modules/inttypes (inttypes.h): Substitute
72685         HAVE_UNSIGNED_LONG_LONG_INT.
72686         * modules/stdint (stdint.h): Likewise.
72687         (Files): Add m4/ulonglong.m4.
72688
72689 2006-10-10  Bruno Haible  <bruno@clisp.org>
72690
72691         Fix a gcc -Wshadow warning.
72692         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72693         to 'bucket'.
72694         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72695         gl_linked_indexof_from_to): Likewise.
72696         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72697         Likewise.
72698         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72699         Likewise.
72700         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72701         Reported by Eric Blake.
72702
72703 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72704
72705         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72706         for NetBSD.  Problem reported by Bruno Haible.
72707
72708 2006-10-09  Jim Meyering  <jim@meyering.net>
72709
72710         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72711         Patch from Bruno Haible.
72712
72713 2006-10-09  Jim Meyering  <jim@meyering.net>
72714
72715         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72716         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72717         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72718
72719 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         Don't include <config.h> twice; this doesn't work in some cases,
72722         e.g., when config.h has "#define intmax_t long long int" and
72723         we include <config.h>, <inttypes.h>, <config.h> in that order.
72724         Problem reported by Matthew Woehlke in:
72725         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72726         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72727         * lib/fts-cycle.c: Don't include config.h.
72728         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72729         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72730         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72731         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72732         inttypes.h.
72733         * lib/xstrtoumax.c: Likewise.
72734         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72735         __strtol and the like, so that this module is more like its siblings.
72736         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72737         Remove; no longer needed now that we assume gnulib inttypes.h.
72738
72739 2006-10-08  Bruno Haible  <bruno@clisp.org>
72740
72741         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72742         option.
72743
72744 2006-10-07  Jim Meyering  <jim@meyering.net>
72745
72746         * modules/inttypes (inttypes.h): Revert what seems to have been
72747         an inadvertent part of today's change: use "|", not "/" in the
72748         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72749
72750 2006-10-07  Bruno Haible  <bruno@clisp.org>
72751
72752         * modules/sublist: New file.
72753
72754 2006-10-07  Bruno Haible  <bruno@clisp.org>
72755
72756         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72757         * modules/argz (argz.h): Likewise.
72758         * modules/arpa_inet (arpa/inet.h): Likewise.
72759         * modules/byteswap (byteswap.h): Likewise.
72760         * modules/configmake (configmake.h): Likewise.
72761         * modules/fcntl (fcntl.h): Likewise.
72762         * modules/fnmatch (fnmatch.h): Likewise.
72763         * modules/getopt (getopt.h): Likewise.
72764         * modules/glob (glob.h): Likewise.
72765         * modules/inttypes (inttypes.h): Likewise.
72766         * modules/netinet_in (netinet/in.h): Likewise.
72767         * modules/poll (poll.h): Likewise.
72768         * modules/stdbool (stdbool.h): Likewise.
72769         * modules/stdint (stdint.h): Likewise.
72770         * modules/sys_select (sys/select.h): Likewise.
72771         * modules/sys_socket (sys/socket.h): Likewise.
72772         * modules/sys_stat (sys/stat.h): Likewise.
72773         * modules/sysexits (sysexits.h): Likewise.
72774         * modules/unistd (unistd.h): Likewise.
72775         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72776         Add a "DO NOT EDIT" comment to the generated file.
72777         (func_import): Likewise for gnulib-comp.m4.
72778
72779 2006-10-07  Bruno Haible  <bruno@clisp.org>
72780
72781         * lib/gl_sublist.h: New file.
72782         * lib/gl_sublist.c: New file.
72783
72784 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72787         name (relative to the original working directory) and the file
72788         name component (relative to the temporary working directory).  All
72789         callers changed.
72790         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72791         * lib/mkdir-p.c (make_dir_parents): Likewise.
72792         * lib/mkdir-p.h (make_dir_parents): Likewise.
72793
72794 2006-10-06  Eric Blake  <ebb9@byu.net>
72795
72796         Define several macros for use by the clean-temp module.
72797         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72798         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72799         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72800
72801         * lib/clean-temp.h (close_stream_temp): New declaration.
72802         * lib/clean-temp.c (includes): Pull in headers according to what
72803         other modules are in use.
72804         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72805
72806 2006-10-06  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72809         instead of fopen, fwriteerror.
72810
72811 2006-10-06  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72814         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72815         int.
72816         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72817         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72818         Return an error indicator.
72819         Suggested by Eric Blake.
72820
72821 2006-10-06  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72824         Reported by Eric Blake.
72825
72826 2006-10-06  Bruno Haible  <bruno@clisp.org>
72827
72828         * modules/closeout (Description): Mention stderr too.
72829
72830 2006-10-06  Bruno Haible  <bruno@clisp.org>
72831         and Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * lib/closeout.c (close_stdout): Also close stderr.
72834         * lib/closeout.h: Update comment.
72835
72836 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72837
72838         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72839         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72840         * lib/dirchownmod.c: Include lchown.h.
72841         * lib/lchown.c: Don't include files that lchown.h now includes.
72842         Don't declare chown, since lchown.h now does that.
72843         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72844         (lchown): Define to rpl_chown if lchown is declared but
72845         does not exist.  Declare using a prototype if lchown is not
72846         declared.  Add a copyright notice.
72847         * lib/mkstemp.h: Include <unistd.h>.
72848         * lib/openat.c: Include lchown.h.
72849
72850         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72851         we now test for that separately.
72852         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72853         rather than O_NOFOLLOW, when testing whether it's possible to
72854         avoid a race condition reliably.
72855         * lib/savewd.c (savewd_chdir): Likewise.
72856
72857         Remove macros that are no longer needed now that stdint.h is
72858         reliable.
72859         * lib/fsusage.c (UINTMAX_MAX): Remove.
72860         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72861         * lib/utimecmp.c (SIZE_MAX): Remove.
72862
72863         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72864
72865         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72866         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72867         O_NOATIME works.
72868
72869 2006-10-05  Bruno Haible  <bruno@clisp.org>
72870
72871         * lib/gl_list.h (gl_sortedlist_search_from_to,
72872         gl_sortedlist_indexof_from_to): New declarations.
72873         (gl_list_implementation): New fields sortedlist_search_from_to,
72874         sortedlist_indexof_from_to.
72875         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72876         inline functions.
72877         * lib/gl_list.c (gl_sortedlist_search_from_to,
72878         gl_sortedlist_indexof_from_to): New functions.
72879         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72880         function.
72881         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72882         (gl_array_sortedlist_search_from_to): New function.
72883         (gl_array_list_implementation): Update.
72884         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72885         function.
72886         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72887         (gl_carray_sortedlist_search_from_to): New function.
72888         (gl_carray_list_implementation): Update.
72889         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72890         gl_linked_sortedlist_indexof_from_to): New functions.
72891         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72892         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72893         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72894         gl_tree_sortedlist_indexof_from_to): New functions.
72895         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72896         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72897         Update.
72898         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72899         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72900         Update.
72901
72902 2006-10-05  Bruno Haible  <bruno@clisp.org>
72903
72904         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72905         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72906         (struct gl_list_implementation): Add fields search_from_to,
72907         indexof_from_to. Remove fields search, indexof.
72908         (gl_list_search): Use the search_from_to method.
72909         (gl_list_search_from, gl_list_search_from_to): New functions.
72910         (gl_list_indexof): Use the indexof_from_to method.
72911         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72912         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72913         (gl_list_search_from, gl_list_search_from_to): New functions.
72914         (gl_list_indexof): Use the indexof_from_to method.
72915         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72916         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72917         gl_array_indexof. Add start_index, end_index arguments.
72918         (gl_array_search_from_to): Renamed from gl_array_search. Add
72919         start_index, end_index arguments.
72920         (gl_array_remove, gl_array_list_implementation): Update.
72921         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72922         gl_carray_indexof. Add start_index, end_index arguments.
72923         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72924         start_index, end_index arguments.
72925         (gl_carray_remove, gl_carray_list_implementation): Update.
72926         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72927         gl_linked_search. Add start_index, end_index arguments.
72928         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72929         start_index, end_index arguments.
72930         (gl_linked_remove): Update.
72931         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72932         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72933         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72934         field to 'size_t'.
72935         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72936         gl_tree_search. Add start_index, end_index arguments.
72937         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72938         start_index, end_index arguments.
72939         (gl_tree_remove): Update.
72940         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72941         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72942         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72943         function.
72944         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72945         gl_tree_search. Add start_index, end_index arguments.
72946         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72947         start_index, end_index arguments.
72948         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72949         Update.
72950         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72951
72952 2006-10-05  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72955
72956         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72957         fwriteerror_temp): New declarations.
72958         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72959         (descriptors): New variable.
72960         (cleanup): First, close the descriptors.
72961         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72962         fclose_temp, fwriteerror_temp): New functions.
72963
72964 2006-10-04  Jim Meyering  <jim@meyering.net>
72965
72966         * lib/fts.c (fts_open): Tiny comment change.
72967
72968 2006-10-04  Bruno Haible  <bruno@clisp.org>
72969
72970         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72971         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72972         gl_LOCK_BODY.
72973         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72974         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72975         gl_LOCK_EARLY_BODY.
72976         (gl_LOCK): Require gl_LOCK_BODY.
72977
72978 2006-10-04  Bruno Haible  <bruno@clisp.org>
72979
72980         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72981         (gl_oset_search_atleast): New declaration.
72982         (struct gl_oset_implementation): Add field 'search_atleast'.
72983         (gl_oset_search_atleast): New inline function.
72984         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72985         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72986         (gl_array_oset_implementation): Update.
72987         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72988         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72989         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72990
72991 2006-10-04  Bruno Haible  <bruno@clisp.org>
72992
72993         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72994
72995 2006-10-03  Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72998         from gl_avltreehash_list_implementation.
72999
73000 2006-10-03  Bruno Haible  <bruno@clisp.org>
73001
73002         * lib/gl_oset.c (gl_oset_add): Fix return type.
73003
73004 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73005
73006         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73007
73008 2006-10-02  Eric Blake  <ebb9@byu.net>
73009
73010         * modules/strnlen (Depends-on): Add extensions.
73011
73012 2006-10-02  Eric Blake  <ebb9@byu.net>
73013
73014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73015         definition in 2.60+.
73016
73017 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73018
73019         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73020         checks.
73021
73022 2006-10-02  Bruno Haible  <bruno@clisp.org>
73023
73024         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73025         to the AUTOMAKE_OPTIONS.
73026         Reported by Jim Meyering.
73027
73028 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73029
73030         Work around bug in Solaris 10 /proc file system:
73031         /proc/self/fd/NNN/.. isn't the parent directory of
73032         the directory whose file descriptor is NNN.  This needs to
73033         be worked around at run time, not compile time, since a
73034         program might be built on Solaris 8, where things work, and
73035         run on Solaris 10.
73036         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73037         to use the following interface instead:
73038         (OPENAT_BUFFER_SIZE): New macro.
73039         (openat_proc_name): New function.
73040         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73041         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73042         Likewise.
73043         * lib/openat-proc.c: New file.
73044         * modules/openat (Files): Add lib/openat-proc.c.
73045         (Depends-on): Add same-inode, stdbool.
73046         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73047
73048 2006-09-29  Bruno Haible  <bruno@clisp.org>
73049
73050         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73051         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73052         argument. Set stdout_closed before testing for ferror, not after.
73053         (fwriteerror, fwriteerror_no_ebadf): New functions.
73054
73055 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73056
73057         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73058
73059 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73060
73061         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73062         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73063
73064 2006-09-28  Jim Meyering  <jim@meyering.net>
73065
73066         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73067         Include <unistd.h>.
73068
73069 2006-09-28  Bruno Haible  <bruno@clisp.org>
73070
73071         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73072         * modules/linkedhash-list (Depends-on): Likewise.
73073         * modules/rbtreehash-list (Depends-on): Likewise.
73074
73075 2006-09-28  Bruno Haible  <bruno@clisp.org>
73076
73077         * lib/strndup.h: Simplify the redefinition of strndup.
73078         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73080
73081 2006-09-28  Bruno Haible  <bruno@clisp.org>
73082
73083         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73084         * lib/gl_linkedhash_list.c: Likewise.
73085         * lib/gl_rbtreehash_list.c: Likewise.
73086
73087 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73090         getaddrinfo.
73091
73092         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73093         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73094         it causes <stdio_ext.h> to cause a compile-time error.
73095         Problem reported by Nelson H. F. Beebe.
73096         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73097         of HAVE_DECL___PENDING.
73098
73099         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73100         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73101         declaration.
73102
73103 2006-09-27  Jim Meyering  <jim@meyering.net>
73104
73105         This file could end up with a definition for a function
73106         named __strndup, rather than rpl_strndup on a system with
73107         incomplete weak_alias support.
73108         * lib/strndup.c (strndup): Rename from __strndup.
73109         Remove #defines that used to map __strndup to strndup.
73110         Don't use K&R prototypes.
73111         Remove LIBC-related code, since this file is not sync'd with glibc.
73112         * lib/strndup.h: Revamp, accordingly.
73113         * m4/strndup.m4: Modernize.
73114
73115 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         * modules/savewd (Depends-on): Add 'raise'.
73118         * lib/savewd.c: Include <signal.h>, for 'raise'.
73119
73120 2006-09-26  Jim Meyering  <jim@meyering.net>
73121
73122         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73123         when we detect Darwin 8.7.0's acl_get_file bug.
73124         Rearrange to perform the new (below) run-test while $LIBS
73125         contains any acl-related library.  Set USE_ACL at the end.
73126         (gl_ACL_GET_FILE): New function.
73127
73128 2006-09-26  Eric Blake  <ebb9@byu.net>
73129
73130         * lib/verror.c: Include <config.h> unconditionally.
73131
73132 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * modules/clock-time (Maintainer): Add self.
73135         * modules/getlogin_r (Depends-on): Add extensions.
73136
73137 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73138
73139         * modules/clock-time: New module.
73140         * modules/nanosleep (Depends-on): Add clock-time.
73141         * modules/gethrxtime (Depends-on): Likewise.
73142         * modules/gettime (Depends-on): Likewise.
73143         * modules/settime (Depends-on): Likewise.
73144
73145         * modules/fts-lgpl: Depend on openat.
73146         * modules/mkancesdirs: Depend on savewd.
73147         * modules/mkdir-p: Likewise.
73148
73149 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73150
73151         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73152
73153         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73154         `gl_have_arbitrary_file_name_length_limit' to
73155         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73156         actually works between configure runs.
73157
73158 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73159             Bruno Haible  <bruno@clisp.org>
73160
73161         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73162
73163 2006-09-25  Jim Meyering  <jim@meyering.net>
73164
73165         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73166         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73167
73168 2006-09-25  Eric Blake  <ebb9@byu.net>
73169
73170         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73171         exec's in 2006-09-18 patch when shuffling fds.
73172
73173 2006-09-25  Bruno Haible  <bruno@clisp.org>
73174
73175         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73176         Reported by Jim Meyering.
73177
73178 2006-09-24  Jim Meyering  <jim@meyering.net>
73179
73180         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73181         compare a pointer against a literal "0".  That caused failures with
73182         at least HP-UX's hpcc.
73183
73184 2006-09-22  Simon Josefsson  <jas@extundo.com>
73185
73186         * modules/gc-sha1:
73187         * modules/gc-md4:
73188         * modules/gc-hmac-sha1:
73189         * modules/gc-hmac-md5:
73190         * modules/gc-des:
73191         * modules/gc-arcfour: Distribute more files.
73192
73193 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73194
73195         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73196         (gl_linked_iterator_from_to): Initialize struct completely.
73197         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73198         (gl_tree_iterator_from_to): Likewise
73199         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73200         * lib/gl_array_list.c [lint] (gl_array_iterator)
73201         (gl_array_iterator_from_to): Likewise.
73202         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73203         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73204         (gl_carray_iterator_from_to): Likewise.
73205
73206         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73207         * lib/md4.c (md4_process_block): Remove unused variable.
73208         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73209         parentheses for clarity.
73210
73211 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73212
73213         * modules/bison-i18n (Depends-on): Add gettext.
73214
73215 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73216
73217         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73218         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73219         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73220         also add missing comma that caused broken test.
73221         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73222         stdlib.h, for `abort'.
73223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73224         variables.
73225         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73226         include unistd.h if present, for `rmdir'.
73227         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73228         variables.
73229         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73230         in the process include standard headers for prototypes.
73231         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73232         gets declared on GNU/Linux.
73233         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73234         unistd.h, for `rmdir'.
73235         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73236
73237         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73238         always true.
73239         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73240
73241         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73242
73243 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73244
73245         * gnulib-tool (func_version): Create output all at once.  This
73246         may help avoid triggering unnecessary SIGPIPEs, and at any
73247         rate it doesn't hurt.
73248
73249 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73250             Bruno Haible  <bruno@clisp.org>
73251
73252         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73253         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73254         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73255
73256         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73257         (gl_FUNC_VASPRINTF): Invoke it.
73258
73259 2006-09-22  Bruno Haible  <bruno@clisp.org>
73260
73261         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73262         getloadavg.c as first argument.
73263
73264 2006-09-22  Bruno Haible  <bruno@clisp.org>
73265
73266         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73267         at the beginning of the gl_INIT macro.
73268         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73269         gl_GETLOADAVG.
73270
73271 2006-09-22  Bruno Haible  <bruno@clisp.org>
73272
73273         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73274         module.
73275         Suggested by Ralf Wildenhues.
73276
73277 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         Import this patch from libc:
73280
73281         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73282
73283         * lib/regex_internal.c (re_string_reconstruct): Handle
73284         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73285         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73286         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73287         re_string_context_at.
73288
73289         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73290         now requires it.
73291         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73292         gl_REGEX now does it for us.
73293         (gl_REGEX): Add test taken from
73294         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73295
73296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73297         Check that large offsets work.  Modernize Autoconf usages.
73298         Prefer "yes" to mean a good thing rather than a bad.
73299         Don't put "#define mkstemp" in config.h, as this might interfere
73300         with standard system headers that "#define mkstemp mkstemp64".
73301
73302         * modules/mkstemp (Depends-on): Add extensions, so that
73303         mkstemp is visible on some platforms.
73304         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73305         (Include): Change to "mkstemp.h" from <stdlib.h>.
73306         (Files): Add mkstemp.h.
73307
73308         * lib/mkstemp.h: New file, since some standard headers
73309         #define mkstemp.
73310         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73311         Include "mkstemp.h".
73312         Make the _LIBC code resemble glibc original more,
73313         e.g., use K&R style.
73314         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73315         (mkstemp): Remove, since mkstemp.h does this for us.
73316         * lib/stdlib--.h: Include mkstemp.h.
73317
73318         Import this patch from libc:
73319
73320         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73321
73322         * lib/tempname.c (__gen_tempname): Change attempts_min
73323         into a macro.  Use preprocessor to decide how to initialize
73324         attempts [Coverity CID 67].
73325
73326 2006-09-20  Bruno Haible  <bruno@clisp.org>
73327
73328         * lib/mkdtemp.c: Import from libc.
73329         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73330                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73331                 attempts_min into a macro.  Use preprocessor to decide how to
73332                 initialize attempts [Coverity CID 67].
73333         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73334                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73335                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73336
73337 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73338
73339         * gnulib-tool (func_exit): New function, to allow to pass the
73340         exit status portably through the trap.  Use everywhere.
73341         (--help, --version): Signal a write error.
73342         (trap): catch SIGPIPE, for write errors.
73343         Exit at the end of the trap, with the correct exit status.
73344
73345 2006-09-19  Karl Berry  <karl@gnu.org>
73346
73347         * doc/gnulib.texi: note about the license texinfo files.
73348
73349 2006-09-19  Eric Blake  <ebb9@byu.net>
73350
73351         * gnulib-tool: Avoid space-tab.
73352
73353 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73356         that prevented coreutils 6.1 from building.  Problem reported
73357         by Petter Reinholdtsen.
73358
73359 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * gnulib-tool (avoidlist): Fix typo that broke options like
73362         --avoid=lock that are used by coreutils bootstrap.
73363
73364 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73365
73366         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73367         more systematically.
73368
73369 2006-09-18  Jim Meyering  <jim@meyering.net>
73370
73371         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73372
73373 2006-09-18  Bruno Haible  <bruno@clisp.org>
73374
73375         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73376
73377 2006-09-18  Bruno Haible  <bruno@clisp.org>
73378
73379         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73380         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73381         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73382         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73383         * m4/gettext.m4: Require autoconf >= 2.52.
73384         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73385         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73386         of gl_cv_header_inttypes_h.
73387
73388 2006-09-18  Bruno Haible  <bruno@clisp.org>
73389
73390         * lib/javaversion.c: Include configmake.h.
73391
73392 2006-09-18  Bruno Haible  <bruno@clisp.org>
73393
73394         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73395         avoid that the while loops be executed in a subshell.
73396
73397 2006-09-18  Bruno Haible  <bruno@clisp.org>
73398
73399         * MODULES.html.sh (func_module): Break long lines.
73400         Suggested by Bruce Korb <bkorb@gnu.org>.
73401
73402 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73403
73404         Speed up by a factor of 1.12.
73405         * gnulib-tool (nl): New variable.
73406         (func_import): Rewrite include directive extraction to only read each
73407         directive once.
73408
73409 2006-09-17  Bruno Haible  <bruno@clisp.org>
73410
73411         * modules/javaversion (Makefile.am): Remove DEFS setting.
73412         (Depends-on): Add configmake, for PKGDATADIR definition.
73413
73414 2006-09-17  Bruno Haible  <bruno@clisp.org>
73415
73416         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73417
73418 2006-09-17  Bruno Haible  <bruno@clisp.org>
73419
73420         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73421         (func_modules_transitive_closure, func_modules_add_dummy,
73422         func_modules_to_filelist, func_import, func_create_testdir,
73423         func_create_megatestdir, ...): Use it wherever possible.
73424         Suggested by Ralf Wildenhues.
73425
73426 2006-09-16  Karl Berry  <karl@gnu.org>
73427
73428         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73429         to avoid sectioning errors.
73430         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73431         [ifinfo]: blank line after @center-ed titles.
73432         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73433         Spell FSF address consistently with others.
73434         (These changes approved by rms.)
73435
73436 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73437
73438         Speed up by a factor of 1.61.
73439         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73440         already checked module names again.
73441
73442 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73443
73444         Speed up by a factor of 1.13.
73445         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73446         for new_files, and the input to func_add_or_update.
73447
73448 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73449
73450         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73451         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73452
73453 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * modules/mkancesdirs (Depends-on): Add fcntl.
73456         * modules/savewd: New file.
73457         * MODULES.html.sh (File system functions): Add savewd.
73458
73459         * modules/configmake (Makefile.am): Add support for the
73460         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73461
73462 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73463
73464         * m4/savewd.m4: New file.
73465
73466 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73469         (dirchownmod): New arg FD.  All callers changed.
73470         Use FD rather than opening the directory ourself, as opening is
73471         now the caller's responsibility.
73472         * lib/dirchownmod.h: Likewise.
73473         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73474         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73475         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73476         (test_dir): Remove.
73477         (mkancesdirs): Return length of prefix of FILE that has already
73478         been made, or -2 if there is a child doing the work.  Redo
73479         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73480         ".", and treat ".." specially since it might stray back into
73481         already-created areas.  Use a subprocess if necessary.  New arg
73482         WD; all users changed.  MAKE_DIR function should now return 1
73483         if it creates a directory that is not readable.  Return -2 if
73484         a child process is spun off.
73485         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73486         Adjust signature to match code.
73487         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73488         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73489         all users changed.
73490         * lib/savewd.c, lib/savewd.h: New files.
73491
73492 2006-09-15  Jim Meyering  <jim@meyering.net>
73493
73494         * modules/rename-dest-slash: New module.
73495         * MODULES.html.sh (posix_compat): Add it here.
73496
73497         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73498
73499 2006-09-15  Jim Meyering  <jim@meyering.net>
73500
73501         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73502         file.
73503
73504         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73505
73506 2006-09-15  Jim Meyering  <jim@meyering.net>
73507
73508         * lib/rename-dest-slash.c (has_trailing_slash): Use
73509         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73510         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73511         test before testing whether SRC is a directory.
73512         Suggestions from Bruno Haible.
73513
73514         Avoid a warning about an unused variable.
73515         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73516         into the #ifdef block where it's used.
73517
73518         * lib/rename-dest-slash.c: New file.
73519
73520 2006-09-14  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/allocsa.c: Include <config.h> unconditionally.
73523         * lib/asnprintf.c: Likewise.
73524         * lib/asprintf.c: Likewise.
73525         * lib/c-strcasecmp.c: Likewise.
73526         * lib/c-strcasestr.c: Likewise.
73527         * lib/c-strncasecmp.c: Likewise.
73528         * lib/c-strstr.c: Likewise.
73529         * lib/classpath.c: Likewise.
73530         * lib/clean-temp.c: Likewise.
73531         * lib/concatpath.c: Likewise.
73532         * lib/copy-file.c: Likewise.
73533         * lib/csharpcomp.c: Likewise.
73534         * lib/csharpexec.c: Likewise.
73535         * lib/execute.c: Likewise.
73536         * lib/fatal-signal.c: Likewise.
73537         * lib/findprog.c: Likewise.
73538         * lib/fwriteerror.c: Likewise.
73539         * lib/gl_array_list.c: Likewise.
73540         * lib/gl_array_oset.c: Likewise.
73541         * lib/gl_avltree_list.c: Likewise.
73542         * lib/gl_avltree_oset.c: Likewise.
73543         * lib/gl_avltreehash_list.c: Likewise.
73544         * lib/gl_carray_list.c: Likewise.
73545         * lib/gl_linked_list.c: Likewise.
73546         * lib/gl_linkedhash_list.c: Likewise.
73547         * lib/gl_list.c: Likewise.
73548         * lib/gl_oset.c: Likewise.
73549         * lib/gl_rbtree_list.c: Likewise.
73550         * lib/gl_rbtree_oset.c: Likewise.
73551         * lib/gl_rbtreehash_list.c: Likewise.
73552         * lib/imaxabs.c: Likewise.
73553         * lib/imaxdiv.c: Likewise.
73554         * lib/javacomp.c: Likewise.
73555         * lib/javaexec.c: Likewise.
73556         * lib/javaversion.c: Likewise.
73557         * lib/linebreak.c: Likewise.
73558         * lib/localcharset.c: Likewise.
73559         * lib/lock.c: Likewise.
73560         * lib/mbchar.c: Likewise.
73561         * lib/mbswidth.c: Likewise.
73562         * lib/mkdtemp.c: Likewise.
73563         * lib/pipe.c: Likewise.
73564         * lib/printf-args.c: Likewise.
73565         * lib/printf-parse.c: Likewise.
73566         * lib/progname.c: Likewise.
73567         * lib/progreloc.c: Likewise.
73568         * lib/readlink.c: Likewise.
73569         * lib/sh-quote.c: Likewise.
73570         * lib/stpcpy.c: Likewise.
73571         * lib/stpncpy.c: Likewise.
73572         * lib/strcasecmp.c: Likewise.
73573         * lib/strcasestr.c: Likewise.
73574         * lib/strcspn.c: Likewise.
73575         * lib/striconv.c: Likewise.
73576         * lib/strncasecmp.c: Likewise.
73577         * lib/strnlen1.c: Likewise.
73578         * lib/strstr.c: Likewise.
73579         * lib/strtok_r.c: Likewise.
73580         * lib/tls.c: Likewise.
73581         * lib/tmpdir.c: Likewise.
73582         * lib/unicodeio.c: Likewise.
73583         * lib/unsetenv.c: Likewise.
73584         * lib/vasnprintf.c: Likewise.
73585         * lib/vasprintf.c: Likewise.
73586         * lib/wait-process.c: Likewise.
73587         * lib/xallocsa.c: Likewise.
73588         * lib/xsetenv.c: Likewise.
73589         * lib/xstriconv.c: Likewise.
73590
73591 2006-09-13  Simon Josefsson  <jas@extundo.com>
73592
73593         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73594         that internally, suggested by Ralf Wildenhues
73595         <Ralf.Wildenhues@gmx.de>.
73596
73597 2006-09-13  Simon Josefsson  <jas@extundo.com>
73598
73599         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73600         @LIBOBJS@.
73601         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73602
73603 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73606         longer worry about uses that don't define HAVE_CONFIG_H.
73607         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73608         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73609         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73610         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73611         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73612         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73613         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73614         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73615         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73616         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73617         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73618         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73619         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73620         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73621         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73622         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73623         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73624         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73625         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73626         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73627         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73628         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73629         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73630         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73631         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73632         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73633         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73634         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73635         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73636         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73637         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73638         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73639         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73640         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73641         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73642         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73643         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73644         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73645         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73646         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73647         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73648         Likewise.
73649
73650 2006-09-13  Eric Blake  <ebb9@byu.net>
73651
73652         * lib/getopt.c: Fix typo in last commit.
73653
73654 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73655
73656         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73657         dgettext.
73658
73659 2006-09-12  Jim Meyering  <jim@meyering.net>
73660
73661         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73662         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73663         Reported by Nelson H. F. Beebe.
73664
73665 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73666
73667         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73668         program_invocation_name and program_invocation_short_name are
73669         initialized.
73670         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73671         and program_invocation_short_name to argp.h, so they are visible
73672         to user programs.
73673         * lib/argp.h: Likewise
73674
73675 2006-09-10  Bruno Haible  <bruno@clisp.org>
73676
73677         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73678         m4/inttypes_h.m4, m4/uintmax_t.m4.
73679
73680 2006-09-10  Bruno Haible  <bruno@clisp.org>
73681
73682         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73683         gl_AC_TYPE_UINTMAX_T.
73684
73685 2006-09-10  Bruno Haible  <bruno@clisp.org>
73686
73687         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73688
73689 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73690
73691         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73692         convention.  Text proposed by Bruno Haible.
73693         (struct argp_option): Document the use of N_() wrappers.
73694
73695         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73696         '\v', and translate the two parts separately, instead of feeding
73697         the whole string to gettext.  This allows to exclude
73698         '\v' from the strings visible to the translator by writing doc
73699         strings as N_("..") "\v" N_("..").
73700
73701 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * config/srclist.txt: Undo latest change; the bug was fixed.
73704
73705 2006-09-09  Bruno Haible  <bruno@clisp.org>
73706
73707         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73708         assignments if building a library without libtool.
73709         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73710         in func_emit_lib_Makefile_am.
73711         (func_import): When building a static library libfoo.a, arrange to
73712         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73713         (func_create_testdir): Likewise.
73714         * modules/gc (configure.ac, Makefile.am): If building statically,
73715         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73716         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73717         * modules/striconv (configure.ac, Makefile.am): Likewise.
73718         Based on a suggestion by Ralf Wildenhues.
73719
73720 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73721
73722         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73723         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73724         Also:
73725
73726         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73727         Add year_2050_test to catch glibc bug 2821
73728         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73729
73730         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73731         Prefer #ifdef to #if.
73732
73733         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73734         Return from 'main' instead of calling 'exit'.
73735
73736 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73737
73738         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73739         returned the maximum time_t value rather than (time_t) -1.
73740         Problem originally reported by William Bardwell
73741         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73742
73743         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73744         Moved to here ...
73745         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73746         ... from here.
73747
73748 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73751         2821 is fixed.
73752
73753 2006-09-08  Jim Meyering  <jim@meyering.net>
73754
73755         Don't make generated files read-only.  That would bother too many
73756         people.  However, do retain the ability to work when targets are
73757         read-only: remove the destination and temporary files before writing
73758         them (when generated via sed or echo), or by using the -f option for
73759         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73760         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73761         * modules/byteswap, modules/configmake, modules/fcntl:
73762         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73763         * modules/localcharset, modules/netinet_in, modules/poll:
73764         * modules/stdbool, modules/stdint, modules/sys_select:
73765         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73766
73767 2006-09-08  Jim Meyering  <jim@meyering.net>
73768
73769         Avoid new build failure on FreeBSD 6.0.
73770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73771         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73772         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73773
73774 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73775
73776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73777
73778 2006-09-07  Jim Meyering  <jim@meyering.net>
73779
73780         Fix global typo in last change: use chmod u-w, not chmod u-x.
73781         Spotted by Paul Eggert and Bruce Korb.
73782         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73783         * modules/byteswap, modules/configmake, modules/fcntl:
73784         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73785         * modules/localcharset, modules/netinet_in, modules/poll:
73786         * modules/stdbool, modules/stdint, modules/sys_select:
73787         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73788
73789 2006-09-06  Jim Meyering  <jim@meyering.net>
73790
73791         Make generated files be read-only.
73792         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73793         Ensure that each generated file is now read-only.
73794         * modules/argz: Likewise.
73795         * modules/arpa_inet: Likewise.
73796         * modules/byteswap: Likewise.
73797         * modules/configmake: Likewise.
73798         * modules/fcntl: Likewise.
73799         * modules/fnmatch: Likewise.
73800         * modules/getopt: Likewise.
73801         * modules/glob: Likewise.
73802         * modules/inttypes: Likewise.
73803         * modules/netinet_in: Likewise.
73804         * modules/poll: Likewise.
73805         * modules/stdbool: Likewise.
73806         * modules/stdint: Likewise.
73807         * modules/sys_select: Likewise.
73808         * modules/sys_socket: Likewise.
73809         * modules/sys_stat: Likewise.
73810         * modules/sysexits: Likewise.
73811         * modules/localcharset: Same as above, but continue using temporary
73812         file named "t-$@" (why different?) rather than the "$@-t" used
73813         everywhere else.
73814
73815         * modules/sysexits (Makefile.am): Replace literal occurrences
73816         of "sysexit.h" more readable, and more consistent, "$@".
73817
73818 2006-09-06  Bruno Haible  <bruno@clisp.org>
73819
73820         * modules/striconv: New file.
73821         * modules/xstriconv: New file.
73822         * MODULES.html.sh (Internationalization functions): Add striconv,
73823         xstriconv.
73824
73825 2006-09-06  Bruno Haible  <bruno@clisp.org>
73826
73827         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73828         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73829         not using libtool correctly.
73830
73831 2006-09-06  Bruno Haible  <bruno@clisp.org>
73832
73833         * lib/striconv.h: New file.
73834         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73835         iconvstring.c.
73836         * lib/xstriconv.h: New file.
73837         * lib/xstriconv.c: New file.
73838
73839 2006-09-06  Bruno Haible  <bruno@clisp.org>
73840
73841         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73842         lib_..._LDFLAGS.
73843
73844 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73845
73846         * lib/argz_.h: Sync from Libtool.
73847
73848         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73849                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73850
73851         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73852
73853 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73854
73855         * modules/trim: New file.
73856
73857 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73858
73859         * lib/trim.h: New file.
73860         * lib/trim.c: New file.
73861
73862 2006-09-05  Bruno Haible  <bruno@clisp.org>
73863
73864         * MODULES.html.sh (String handling): Add trim.
73865
73866 2006-09-04  Karl Berry  <karl@gnu.org>
73867
73868         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73869         until next release.
73870
73871 2006-09-03  Bruno Haible  <bruno@clisp.org>
73872
73873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73874         correctly.
73875
73876 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73877
73878         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73879         not gl_GETLOADAVG.  Omit unneeded semicolons.
73880         Problems reported by Ralf Wildenhues in
73881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73882         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73883         at the end, which is the usual gnulib style.
73884
73885         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73886         of doing all the work ourselves.
73887         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73888         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73889
73890 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73893         Problem reported by Ralf Wildenhues in
73894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73895
73896         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73897         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73898
73899 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73902         yesterday's patch by changing test -n to test -z.
73903
73904 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73907         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73908         the former is now obsolescent.
73909
73910         * modules/chdir-long (Depends-on): Add fcntl.
73911
73912 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73915         obsolescent, and programs should use gnulib instead.
73916         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73917         but with prefixes changed.
73918
73919 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73922         or stdbool.h, because they might not exist while configuring.
73923
73924         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73925         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73926         does that for us.
73927         (O_DIRECTORY): Remove.
73928
73929 2006-08-31  Eric Blake  <ebb9@byu.net>
73930
73931         * gnulib-tool: Don't let emacs change spaces to TAB.
73932
73933 2006-08-31  Bruno Haible  <bruno@clisp.org>
73934
73935         * gnulib-tool: When calling func_import more than once, do it in a
73936         subshell.
73937         Reported by Eric Blake <ebb9@byu.net>.
73938
73939 2006-08-31  Bruno Haible  <bruno@clisp.org>
73940
73941         * gnulib-tool (nl): Remove variable.
73942         (sed_transform_lib_file): Use more robust test for config-h module.
73943         (func_import): Fix typo in 2006-08-25 patch.
73944
73945 2006-08-31  Bruno Haible  <bruno@clisp.org>
73946
73947         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73948         specified, augment Makefile.am variables instead of assigning them.
73949
73950 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         Work around a bug in both the Linux and SunOS 64-bit kernels:
73953         nanosleep mishandles sleeps for longer than 2**31 seconds.
73954         Problem reported by Frank v Waveren in
73955         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73957         Check for nanosleep bug.
73958         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73959
73960 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73961
73962         Work around a bug in both the Linux and SunOS 64-bit kernels:
73963         nanosleep mishandles sleeps for longer than 2**31 seconds.
73964         Problem reported by Frank v Waveren in
73965         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73966         * lib/nanosleep.c (BILLION): New constant.
73967         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73968         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73969         implementation.
73970
73971 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         * modules/nanosleep (Depends-on): Add gettime.
73974
73975 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73976         and Simon Josefsson  <jas@extundo.com>
73977         and Oskar Liljeblad  <oskar@osk.mine.nu>
73978
73979         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73980         * gnulib-tool (func_import): New license type 'unmodifiable license
73981         text'.
73982         * modules/fdl: Use it.  Longer description.
73983         * module/gpl, module/lgpl: New files.
73984
73985 2006-08-30  Jim Meyering  <jim@meyering.net>
73986
73987         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73988         shadowing the parameter.
73989
73990 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73991
73992         Sync from Libtool:
73993
73994         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73995
73996         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73997         sharing with gnulib.  Report by Eric Blake.
73998
73999 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74000
74001         * modules/isapipe: New file.
74002         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74003
74004 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * modules/configmake (Makefile.am): Add a comment, and omit
74007         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74008         by Bruno Haible.
74009
74010 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74011
74012         * m4/isapipe.m4: New file.
74013
74014 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * lib/isapipe.c, lib/isapipe.h: New files.
74017
74018 2006-08-29  Jim Meyering  <jim@meyering.net>
74019
74020         * modules/configmake (Makefile.am): Make configmake.h depend on
74021         Makefile.  Otherwise, a stale configmake.h could hang around.
74022
74023 2006-08-29  Eric Blake  <ebb9@byu.net>
74024
74025         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74026         resolution of upstream bug 3044.
74027
74028 2006-08-29  Bruno Haible  <bruno@clisp.org>
74029
74030         * modules/localcharset (Depends-on): Add configmake.
74031         (Makefile.am): Remove setting of LIBDIR through DEFS.
74032
74033 2006-08-29  Bruno Haible  <bruno@clisp.org>
74034
74035         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74036         defined.
74037
74038 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74039
74040         * modules/fcntl: New file.
74041         * modules/chdir-safer (Depends-on): Add fcntl.
74042         * modules/fts: Likewise.
74043         * modules/mkdir-p: Likewise.
74044
74045         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74046         This undoes the most recent change, since we're now addressing the
74047         problem in a different way.
74048
74049         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74050         into output, since the output might be called Makefile.am even
74051         if $makefile_name is something different.
74052         (func_import): Use $makefile_am rather than
74053         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74054         empty.
74055
74056         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74057
74058 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74061         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74062         recent change to stdint.m4, since we're now addressing the problem in a
74063         different way.
74064
74065 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * m4/fcntl_h.m4: New file.
74068
74069 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * lib/fcntl_.h: New file.
74072         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74073         the fcntl module.
74074         * lib/dirchownmod.c: Likewise.
74075         * lib/fts.c: Likewise.
74076
74077         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74078         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74079         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74080         just before including <inttypes.h>, to avoid circular inclusion.
74081
74082 2006-08-28  Jim Meyering  <jim@meyering.net>
74083
74084         * doc/visibility.texi: Actually read and correct the grammar of the
74085         sentence affected by yesterday's change.
74086
74087 2006-08-28  Eric Blake  <ebb9@byu.net>
74088
74089         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74090         needs wrapper.
74091
74092 2006-08-28  Eric Blake  <ebb9@byu.net>
74093
74094         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74095
74096 2006-08-28  Eric Blake  <ebb9@byu.net>
74097
74098         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74099
74100 2006-08-28  Bruno Haible  <bruno@clisp.org>
74101
74102         * modules/c-strstr: New file, from GNU gettext.
74103         * MODULES.html.sh (String handling): Add c-strstr.
74104
74105 2006-08-28  Bruno Haible  <bruno@clisp.org>
74106
74107         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74108         macros.
74109         Reported by Eric Blake.
74110
74111 2006-08-28  Bruno Haible  <bruno@clisp.org>
74112
74113         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74114         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74115         * lib/vasprintf.c: Include errno.h, limits.h.
74116         (EOVERFLOW): New fallback definition.
74117         (vasprintf): Test here whether the string length is > INT_MAX.
74118         * lib/vsnprintf.c: Include errno.h, limits.h.
74119         (EOVERFLOW): New fallback definition.
74120         (vsnprintf): Fix bug when generated string was too long for the buffer.
74121         Test here whether the string length is > INT_MAX.
74122
74123 2006-08-28  Bruno Haible  <bruno@clisp.org>
74124
74125         * lib/inttypes_.h (SCNX*): Remove definitions.
74126         Reported by Eric Blake.
74127
74128 2006-08-28  Bruno Haible  <bruno@clisp.org>
74129
74130         * lib/c-strstr.h: New file, from GNU gettext.
74131         * lib/c-strstr.c: New file, from GNU gettext.
74132
74133 2006-08-28  Bruno Haible  <bruno@clisp.org>
74134
74135         * gnulib-tool: Reorder some statements.
74136
74137 2006-08-28  Bruno Haible  <bruno@clisp.org>
74138
74139         * gnulib-tool: New option --makefile-name.
74140         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74141         $makefile_name.
74142         (func_import): Write $makefile_name to the cache file, and read it from
74143         there unless explicitly specified. Use $makefile_name as file name
74144         instead of Makefile.am. Adjust the recommendations accordingly.
74145
74146 2006-08-28  Bruno Haible  <bruno@clisp.org>
74147
74148         * gnulib-tool (func_verify_module): Check against misapplying patch.
74149
74150 2006-08-28  Bruno Haible  <bruno@clisp.org>
74151
74152         * gnulib-tool (func_relativize, func_relconcat): New functions.
74153         Give an error if --local-dir is given with --update.
74154         Remove trailing slashes from $local_gnulib_dir.
74155         (func_import): Store the relativized $local_gnulib_dir in
74156         gnulib-cache.m4, and read it from there if not specified explicitly.
74157
74158 2006-08-28  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74161         is the current directory. Respect also $local_gnulib_dir.
74162
74163 2006-08-28  Bruno Haible  <bruno@clisp.org>
74164             Simon Josefsson  <jas@extundo.com>
74165
74166         BeOS portability.
74167         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74168
74169 2006-08-27  Jim Meyering  <jim@meyering.net>
74170
74171         * doc/visibility.texi: Remove duplicate word: "pointer".
74172
74173 2006-08-26  Bruno Haible  <bruno@clisp.org>
74174
74175         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74176         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74177         (Makefile.am): Create inttypes.h from inttypes_.h.
74178         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74179
74180         * modules/imaxabs: New file.
74181
74182         * modules/imaxdiv: New file.
74183
74184 2006-08-26  Bruno Haible  <bruno@clisp.org>
74185
74186         * m4/inttypes.m4: New file.
74187         * m4/_inttypes_h.m4: Remove file.
74188         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74189         PRI_MACROS_BROKEN.
74190         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74191
74192         * m4/imaxabs.m4: New file.
74193
74194         * m4/imaxdiv.m4: New file.
74195
74196 2006-08-26  Bruno Haible  <bruno@clisp.org>
74197
74198         * lib/inttypes_.h: New file.
74199         * lib/inttypes.h: Remove file.
74200         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74201
74202         * lib/imaxabs.c: New file.
74203
74204         * lib/imaxdiv.c: New file.
74205
74206 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74207
74208         New config-h module, so that "make" output needn't be cluttered
74209         by -DHAVE_CONFIG_H.
74210         * MODULES.html.sh (Support for building libraries and executables):
74211         Add config-h.
74212         * modules/config-h: New file.
74213         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74214         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74215         the config-h module is used.
74216
74217         New configmake module, so that "make" output needn't be cluttered
74218         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74219         * MODULES.html.sh (Support for building libraries and executables):
74220         Add configmake.
74221         * modules/configmake: New file.
74222
74223 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * m4/config-h.m4: New file.
74226
74227 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74228
74229         * config/srclist.txt: Add elisp-comp.
74230
74231 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         * MODULES.html.sh (Support for building libraries and executables):
74234         Add elisp-comp.
74235         * build-aux/elisp-comp: New file.
74236         * modules/elisp-comp: New file.
74237
74238 2006-08-24  Bruno Haible  <bruno@clisp.org>
74239
74240         * gnulib-tool (func_create_testdir): Use non-default values of
74241         sourcebase and m4base.
74242
74243 2006-08-24  Bruno Haible  <bruno@clisp.org>
74244
74245         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74246         HTML structure.
74247
74248 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * modules/openat (Depends-on): Add lchown.
74251
74252 2006-08-23  Bruno Haible  <bruno@clisp.org>
74253
74254         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74255         of gl_LOCK_EARLY instead of gl_LOCK.
74256
74257 2006-08-23  Bruno Haible  <bruno@clisp.org>
74258
74259         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74260         on OSF/1 to no.
74261         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74262
74263 2006-08-23  Bruno Haible  <bruno@clisp.org>
74264
74265         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74266         as unusable.
74267
74268         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74269         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74270         (gl_LOCK): New macro.
74271
74272 2006-08-22  Simon Josefsson  <jas@extundo.com>
74273
74274         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74275         to md5 module.
74276
74277 2006-08-22  Simon Josefsson  <jas@extundo.com>
74278
74279         * MODULES.html.sh: Add "Support for maintaining and release
74280         projects".
74281
74282         * build-aux/gnupload: New file, from coreutils.
74283
74284 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74285
74286         Avoid the need for AC_LIBSOURCES in m4 macros.
74287         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74288         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74289         * modules/check-version (EXTRA_DIST): Add check-version.h.
74290         * modules/crc (EXTRA_DIST): Add crc.h.
74291         * modules/des (EXTRA_DIST): Add des.h.
74292         * modules/gc (EXTRA_DIST): Add gc.h.
74293         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74294         * modules/getline (EXTRA_DIST): Add getline.h.
74295         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74296         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74297         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74298         * modules/md2 (EXTRA_DIST): Add md2.h.
74299         * modules/md4 (EXTRA_DIST): Add md4.h.
74300         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74301         * modules/read-file (EXTRA_DIST): Add read-file.h.
74302         * modules/readline (EXTRA_DIST): Add readline.h.
74303         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74304         rijndael-api-fst.h.
74305
74306 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * m4/rijndael.m4 (gl_ARCFOUR):
74309         * m4/arctwo.m4 (gl_ARCTWO):
74310         * m4/check-version.m4 (gl_CHECK_VERSION):
74311         * m4/crc.m4 (gl_CRC):
74312         * m4/des.m4 (gl_DES):
74313         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74314         * m4/gc.m4 (gl_GC):
74315         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74316         * m4/getline.m4 (gl_FUNC_GETLINE):
74317         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74318         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74319         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74320         * m4/md2.m4 (gl_MD2):
74321         * m4/md4.m4 (gl_MD4):
74322         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74323         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74324         * m4/readline.m4 (gl_FUNC_READLINE):
74325         * m4/rijndael.m4 (gl_RIJNDAEL):
74326         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74327         to get the necessary .h files and whatnot.
74328
74329 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74330
74331         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74332         gnulib rather than the other way around.
74333         * config/srclistvars.sh (COREUTILS): Remove.
74334
74335 2006-08-22  Jim Meyering  <jim@meyering.net>
74336
74337         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74338
74339         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74340
74341 2006-08-22  Eric Blake  <ebb9@byu.net>
74342
74343         * modules/regexprops-generic: New file.
74344         * MODULES.html.sh (Support for building documentation): List it.
74345
74346 2006-08-22  Eric Blake  <ebb9@byu.net>
74347
74348         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74349         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74350         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74351         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74352
74353 2006-08-22  Bruno Haible  <bruno@clisp.org>
74354
74355         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74356         and lib_LTLIBRARIES like the other lib_* variables.
74357
74358 2006-08-22  Bruno Haible  <bruno@clisp.org>
74359
74360         * build-aux/x-to-1.in: New file, from GNU gettext.
74361
74362 2006-08-22  Bruno Haible  <bruno@clisp.org>
74363
74364         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74365         <utmpx.h> exists.
74366
74367 2006-08-22  Bruno Haible  <bruno@clisp.org>
74368
74369         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74370         <utmpx.h> exists.
74371
74372 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         BeOS portability.
74375         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74376         exist.
74377         Problem reported by Bruno Haible.
74378
74379 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         Avoid the need for AC_LIBSOURCES in m4 macros.
74382         * modules/acl (EXTRA_DIST): Add acl.h.
74383         * modules/argmatch (Files): Add m4/argmatch.m4.
74384         (configure.ac): Add gl_ARGMATCH.
74385         (EXTRA_DIST): Renamed from lib_SOURCES, for
74386         consistency with the other modules.  Remove argmatch.c.
74387         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74388         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74389         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74390         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74391         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74392         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74393         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74394         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74395         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74396         * modules/closeout (EXTRA_DIST): Add closeout.h.
74397         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74398         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74399         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74400         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74401         dirname.h; remove basename.c and stripslash.c.
74402         * modules/exclude (EXTRA_DIST): Add exclude.h.
74403         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74404         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74405         * modules/file-type (EXTRA_DIST): Add file-type.h.
74406         * modules/filemode (EXTRA_DIST): Add filemode.h.
74407         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74408         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74409         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74410         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74411         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74412         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74413         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74414         * modules/getdate (EXTRA_DIST): Add getdate.c.
74415         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74416         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74417         * modules/getpass (EXTRA_DIST): Add getpass.h.
74418         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74419         * modules/group-member (EXTRA_DIST): Add group-member.h.
74420         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74421         * modules/hash (EXTRA_DIST): Add hash.h.
74422         * modules/human (EXTRA_DIST): Add human.h.
74423         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74424         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74425         * modules/lchown (EXTRA_DIST): Add lchown.h.
74426         * modules/long-options (EXTRA_DIST): Add long-options.h.
74427         * modules/lstat (EXTRA_DIST): Add lstat.h.
74428         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74429         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74430         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74431         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74432         * modules/memxor (EXTRA_DIST): Add memxor.h.
74433         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74434         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74435         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74436         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74437         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74438         * modules/physmem (EXTRA_DIST): Add physmem.h.
74439         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74440         * modules/posixver (EXTRA_DIST): Add posixver.h.
74441         * modules/quote (EXTRA_DIST): Add quote.h.
74442         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74443         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74444         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74445         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74446         regex_internal.h regexec.c.
74447         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74448         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74449         * modules/same (EXTRA_DIST): Add same.h.
74450         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74451         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74452         * modules/savedir (EXTRA_DIST): Add savedir.h.
74453         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74454         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74455         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74456         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74457         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74458         * modules/strdup (EXTRA_DIST): Add strdup.h.
74459         * modules/strftime (EXTRA_DIST): Add strftime.h.
74460         * modules/strndup (EXTRA_DIST): Add strndup.h.
74461         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74462         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74463         * modules/time_r (EXTRA_DIST): Add time_r.h.
74464         * modules/timespec (EXTRA_DIST): Add timespec.h.
74465         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74466         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74467         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74468         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74469         * modules/userspec (EXTRA_DIST): Add userspec.h.
74470         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74471         * modules/utimens (EXTRA_DIST): Add utimens.h.
74472         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74473         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74474         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74475         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74476         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74477         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74478         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74479         * modules/yesno (EXTRA_DIST): Add yesno.h.
74480
74481 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74484
74485         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74486         * m4/dev-ino.m4, same-inode.m4: Remove.
74487
74488         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74489         * m4/acl.m4 (AC_FUNC_ACL):
74490         * m4/backupfile.m4 (gl_BACKUPFILE):
74491         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74492         * m4/canon-host.m4 (gl_CANON_HOST):
74493         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74494         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74495         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74496         * m4/cloexec.m4 (gl_CLOEXEC):
74497         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74498         * m4/closeout.m4 (gl_CLOSEOUT):
74499         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74500         * m4/dirname.m4 (gl_DIRNAME):
74501         * m4/exclude.m4 (gl_EXCLUDE):
74502         * m4/exitfail.m4 (gl_EXITFAIL):
74503         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74504         * m4/file-type.m4 (gl_FILE_TYPE):
74505         * m4/filemode.m4 (gl_FILEMODE):
74506         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74507         * m4/fpending.m4 (gl_FUNC_FPENDING):
74508         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74509         * m4/fts.m4 (gl_FUNC_FTS):
74510         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74511         * m4/getdate.m4 (gl_GETDATE):
74512         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74513         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74514         * m4/getpass.m4 (gl_FUNC_GETPASS):
74515         * m4/gettime.m4 (gl_GETTIME):
74516         * m4/getugroups.m4 (gl_GETUGROUPS):
74517         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74518         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74519         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74520         * m4/hash.m4 (gl_HASH):
74521         * m4/idcache.m4 (gl_IDCACHE):
74522         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74523         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74524         * m4/long-options.m4 (gl_LONG_OPTIONS):
74525         * m4/lstat.m4 (gl_FUNC_LSTAT):
74526         * m4/md5.m4 (gl_MD5):
74527         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74528         * m4/memcoll.m4 (gl_MEMCOLL):
74529         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74530         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74531         * m4/memxor.m4 (gl_MEMXOR):
74532         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74533         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74534         * m4/modechange.m4 (gl_MODECHANGE):
74535         * m4/mountlist.m4 (gl_MOUNTLIST):
74536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74537         * m4/openat.m4 (gl_FUNC_OPENAT):
74538         * m4/pathmax.m4 (gl_PATHMAX):
74539         * m4/physmem.m4 (gl_PHYSMEM):
74540         * m4/posixtm.m4 (gl_POSIXTM):
74541         * m4/posixver.m4 (gl_POSIXVER):
74542         * m4/quote.m4 (gl_QUOTE):
74543         * m4/quotearg.m4 (gl_QUOTEARG):
74544         * m4/readtokens.m4 (gl_READTOKENS):
74545         * m4/readutmp.m4 (gl_READUTMP):
74546         * m4/regex.m4 (gl_REGEX):
74547         * m4/safe-read.m4 (gl_SAFE_READ):
74548         * m4/safe-write.m4 (gl_SAFE_WRITE):
74549         * m4/same.m4 (gl_SAME):
74550         * m4/save-cwd.m4 (gl_SAVE_CWD):
74551         * m4/savedir.m4 (gl_SAVEDIR):
74552         * m4/settime.m4 (gl_SETTIME):
74553         * m4/sha1.m4 (gl_SHA1):
74554         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74555         * m4/stat-macros.m4 (gl_STAT_MACROS):
74556         * m4/stat-time.m4 (gl_STAT_TIME):
74557         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74558         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74559         * m4/strdup.m4 (gl_FUNC_STRDUP):
74560         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74561         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74562         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74563         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74564         * m4/time_r.m4 (gl_TIME_R):
74565         * m4/timespec.m4 (gl_TIMESPEC):
74566         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74567         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74568         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74569         * m4/userspec.m4 (gl_USERSPEC):
74570         * m4/utimecmp.m4 (gl_UTIMECMP):
74571         * m4/utimens.m4 (gl_UTIMENS):
74572         * m4/xalloc.m4 (gl_XALLOC):
74573         * m4/xgetcwd.m4 (gl_XGETCWD):
74574         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74575         * m4/xreadlink.m4 (gl_XREADLINK):
74576         * m4/xstrtod.m4 (gl_XSTRTOD):
74577         * m4/yesno.m4 (gl_YESNO):
74578         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74579         to get the necessary .h files and whatnot.
74580
74581 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74582             Bruno Haible  <bruno@clisp.org>
74583
74584         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74585         /bin/sh understanding of '!' conditional negation.
74586
74587 2006-08-21  Jim Meyering  <jim@meyering.net>
74588
74589         * modules/openat (Depends-on): Really alphabetize.
74590
74591         * modules/acl (Depends-on): Add error and quote.
74592
74593         * check-module (find_included_lib_files): Add at-func.c to the
74594         ok-to-include-more-than-once white list.
74595
74596         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74597
74598 2006-08-21  Bruno Haible  <bruno@clisp.org>
74599
74600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74601         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74602         Reported by Martin Lambers <marlam@marlam.de>.
74603
74604 2006-08-21  Bruno Haible  <bruno@clisp.org>
74605
74606         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74607         specify an installation location, don't emit a noinst_LIBRARIES or
74608         noinst_LTLIBRARIES assignment.
74609
74610 2006-08-21  Bruno Haible  <bruno@clisp.org>
74611
74612         BeOS portability.
74613         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74614         BeOS has mbrtowc() but no <wctype.h>.
74615
74616 2006-08-21  Bruno Haible  <bruno@clisp.org>
74617
74618         BeOS portability.
74619         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74620         exist.
74621
74622 2006-08-21  Bruno Haible  <bruno@clisp.org>
74623
74624         BeOS portability.
74625         * lib/mbchar.h: Include <wctype.h> only if it exists.
74626
74627 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         Remove files that are no longer needed by their respective modules.
74630         * m4/obstack.m4: Remove.
74631         * m4/strerror_r.m4: Remove.
74632         * m4/uint32_t.m4: Remove.
74633         * m4/uintptr_t.m4: Remove.
74634         * m4/ullong_max.m4: Remove.
74635         * m4/xstrtoimax.m4: Remove.
74636         * m4/xstrtoumax.m4: Remove.
74637
74638         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74639         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74640         dependencies now capture this.
74641
74642         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74643         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74644         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74645         * m4/human.m4 (gl_HUMAN): Likewise.
74646         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74647         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74648
74649         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74650
74651         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74652         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74653         stdint.
74654         * m4/human.m4 (gl_HUMAN): Likewise.
74655         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74656         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74657         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74658         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74659         * m4/xstrtol (gl_XSTRTOL): Likewise.
74660
74661         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74662         AC_TYPE_LONG_LONG_INT.
74663         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74664         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74665         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74666         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74667
74668         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74669         on stdbool.
74670
74671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74672         (gl_PREREQ_XSTRTOUL): Remove.
74673
74674         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74675
74676         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74677         mode.
74678
74679 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         Add and change modules to make it easier for coreutils to use
74682         gnulib-tool.
74683         * modules/backupfile (Files): Remove m4/d-ino.m4.
74684         (Depends-on): Add d-ino.
74685         * modules/cycle-check (Depends-on): Add stdint.
74686         (lib_SOURCES): Add cycle-check.h.
74687         * modules/d-ino: New module.
74688         * modules/d-type: New module.
74689         * modules/error (Files): Remove m4/strerror_r.m4.
74690         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74691         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74692         m4/inttypes_h.m4, m4/uintmax_t.m4.
74693         (Depends-on): Add stdint.
74694         (lib_SOURCES): Add fsusage.h.
74695         * modules/getcwd (Files): Remove d-ino.m4.
74696         (Depends-on): Add d-ino.
74697         * modules/getndelim2 (Depends-on): Add stdint.
74698         * modules/glob (Files): Remove m4/d-type.m4.
74699         (Depends-on): Add d-type.
74700         * modules/host-os: New module.
74701         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74702         m4/inttypes_h.m4, m4/uintmax_t.m4.
74703         * Depends-on: Add stdint.
74704         (lib_SOURCES): Add human.h.
74705         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74706         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74707         m4/uintmax_t.m4, m4/ulonglong.m4.
74708         (Depends-on): Add stdint.
74709         (EXTRA_DIST): Add inttostr.h.
74710         * modules/lchmod: New module.
74711         * modules/link-follow: New module.
74712         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74713         (Depends-on): Add lchmod.
74714         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74715         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74716         (Depends-on): Add stdint.
74717         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74718         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74719         (Depends-on): Add stdint.
74720         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74721         * modules/perl: New module.
74722         * modules/regex (Depends-on): Add stdint.
74723         * modules/rmdir-errno: New module.
74724         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74725         m4/intmax_t.m4.
74726         (Depends-on): Add stdint.
74727         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74728         m4/uintmax_t.m4.
74729         (Depends-on): Add stdint.
74730         * modules/unlink-busy: New module.
74731         * modules/utimecmp (Depends-on): Add stdint.
74732         * modules/uptime: New module.
74733         * modules/winsz-ioctl: New module.
74734         * modules/winsz-termios: New module.
74735         * modules/xnanosleep (Depends-on): Add nanosleep.
74736         * modules/ullong_max: Remove.
74737         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74738         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74739         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74740         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74741         (Depends-on): Add inttypes.
74742         (lib_SOURCES): Add xstrtol.h.
74743         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74744         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74745         * MODULES.html.sh: Move 'assert' into the assert section.
74746         Move 'dummy' into the linking section.
74747         Remove ullong_max.
74748         Add section for compatibility checks for POSIX:2001 functions,
74749         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74750         winsz-ioctl, and winsz-termios into it.
74751         Add lchmod.
74752         Add top-level Misc section and put host-os, perl, and uptime
74753         into it.
74754
74755 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74758         now assume the stdint module.  Do not include inttypes.h.
74759         * lib/fsusage.h: Likewise.
74760         * lib/getndelim2.c: Likewise.
74761         * lib/human.h: Likewise.
74762         * lib/inttostr.h: Likewise.
74763         * lib/obstack.c: Likewise.
74764         * lib/regex_internal.h: Likewise.
74765         * lib/tempname.c: Likewise.
74766         * lib/utimecmp.c: Likewise.
74767         * lib/xstrtol.h: Likewise.
74768
74769         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74770
74771         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74772         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74773         * lib/xtime.h: Likewise.
74774
74775 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * modules/openat (Files): Add lib/fchmodat.c.
74778         Fixes problem reported by Jay Youngman.
74779
74780 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74783         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74784
74785 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74786             Bruno Haible  <bruno@clisp.org>
74787
74788         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74789         and is a script that invokes bison. Tighten the code. Add comments.
74790
74791 2006-08-18  Jim Meyering  <jim@meyering.net>
74792
74793         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74794         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74795         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74796         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74797
74798 2006-08-18  Bruno Haible  <bruno@clisp.org>
74799
74800         * modules/bison-i18n: New file.
74801         * MODULES.html.sh (Internationalization functions): Add it.
74802
74803 2006-08-18  Bruno Haible  <bruno@clisp.org>
74804
74805         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74806         sys/statvfs.h. When getmntinfo was found, check its declaration and
74807         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74808
74809 2006-08-18  Bruno Haible  <bruno@clisp.org>
74810
74811         * m4/bison-i18n.m4: New file, from bison.
74812
74813 2006-08-18  Bruno Haible  <bruno@clisp.org>
74814
74815         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74816         (ME_DUMMY): Treat "kernfs" as a dummy.
74817         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74818
74819 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         Update from coreutils.
74822
74823         2006-08-15  Jim Meyering  <jim@meyering.net>
74824
74825         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74826
74827         2006-01-17  Jim Meyering  <jim@meyering.net>
74828
74829         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74830
74831         2006-01-11  Jim Meyering  <jim@meyering.net>
74832
74833         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74834         Check for the lchmod function.
74835
74836 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74837
74838         Update from coreutils.
74839
74840         * lib/__fpending.h: Add copyright notice.
74841         * lib/fprintftime.h: Likewise.
74842         * lib/savedir.c: Use (C) in copyright notice.
74843         * lib/savedir.h: Likewise.
74844
74845         2006-08-15  Jim Meyering  <jim@meyering.net>
74846
74847         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74848         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74849         in support of the EXPECTED_ERRNO macro.
74850         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74851         definitions.  Instead, define the appropriate symbols and include
74852         "at-func.c".
74853         * lib/mkdirat.c (mkdirat): Likewise.
74854         * lib/fchmodat.c (fchmodat): Likewise.
74855         (ENOSYS): Remove definition.
74856         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74857         it.  Don't include "unistd--.h" -- it wasn't ever used.
74858
74859         2006-01-17  Jim Meyering  <jim@meyering.net>
74860
74861         Rewrite fts.c not to change the current working directory,
74862         by using openat, fstatat, fdopendir, etc..
74863
74864         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74865         (HAVE_OPENAT_SUPPORT): Define.
74866         [_LIBC] (fchdir): Don't undef or define; no longer used.
74867         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74868         Now, this `function' always succeeds, and consumes its file descriptor
74869         parameter -- so callers must not close such FDs.  Update callers.
74870         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74871         (diropen): Add parameter, SP.  Adjust all callers.
74872         Implement using diropen_fd, rather than open.
74873         (fts_open): Initialize new member, fts_cwd_fd.
74874         Remove fts_rft-setting code.
74875         (fts_close): Close fts_cwd_fd, if necessary.
74876         (__opendir2): Define in terms of opendir or opendirat,
74877         depending on whether the FST_NOCHDIR flag is set.
74878         (fts_build): Since fts_safe_changedir consumes its FD, and since
74879         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74880         and close the dup'd file descriptor upon failure.
74881         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74882         (fts_safe_changedir): Tweak semantics to reflect that this function
74883         now calls cwd_advance_fd and hence consumes its FD argument.
74884         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74885         [struct FTS] (fts_rft): Remove now-unused member.
74886         [struct FTS] (fts_cycle.state): Improve comment.
74887
74888         * lib/openat.c (openat_needs_fchdir): New function.
74889         * lib/openat.h (openat_needs_fchdir): Declare it.
74890
74891 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74894         Problem and fix reported by Pádraig Brady in
74895         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74896
74897 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74900
74901 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74902
74903         * lib/memcoll.c (memcoll): Optimize for the common case where the
74904         arguments are bytewise equal.
74905
74906 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74907
74908         * doc/regexprops-generic.texi: Add a copyright notice.
74909
74910 2006-08-15  Bruno Haible  <bruno@clisp.org>
74911
74912         * modules/tmpdir (License): Change to LGPL.
74913
74914 2006-08-15  Bruno Haible  <bruno@clisp.org>
74915
74916         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74917         module.
74918
74919 2006-08-14  Simon Josefsson  <jas@extundo.com>
74920
74921         * config/srclist.txt: Add gnupload.
74922
74923 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         Change copyright notice from LGPL 2 to GPL 2, since that's the
74926         standard form used in the gnulib repository.
74927         * tests/test-lock.c: Likewise.
74928         * tests/test-stdint.c: Likewise.
74929         * tests/test-tls.c: Likewise.
74930
74931         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74932         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74933         Add copyright notice.
74934
74935         * check-module: Add copyright notice.  Output a copyright
74936         notice if "--version" is specified.
74937         * modules/COPYING: New file.
74938         * tests/test-getaddrinfo.c: Add copyright notice.
74939         * tests/test-verify.c: Likewise.
74940
74941 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74942
74943         Change copyright notice from LGPL 2 to GPL 2, since that's the
74944         standard form used in the gnulib repository.
74945         * lib/lock.c: LGPL -> GPL.
74946         * lib/lock.h: Likewise.
74947         * lib/strnlen1.c: Likewise.
74948         * lib/strnlen1.h: Likewise.
74949         * lib/tls.c: Likewise.
74950         * lib/tls.h: Likewise.
74951         * lib/tmpdir.c: Likewise.
74952
74953         * lib/TODO: Remove; this belongs only in coreutils.
74954
74955 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         Add copyright notices to long-enough files that lack them, since
74958         otherwise the files aren't clearly free.  Use the same notice that
74959         getdate.texi already uses.
74960         * doc/alloca-opt.texi: Add copyright notice.
74961         * doc/alloca.texi: Likewise.
74962         * doc/ctime.texi: Likewise.
74963         * doc/functions.texi: Likewise.
74964         * doc/gcd.texi: Likewise.
74965         * doc/gnulib-tool.texi: Likewise.
74966         * doc/inet_ntoa.texi: Likewise.
74967         * doc/visibility.texi: Likewise.
74968
74969         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74970         * doc/quote.texi: Add copyright notice.
74971
74972         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74973         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74974         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74975         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74976         is now obsolete, and give a pointer to the Sun list.
74977         Add copyright notice.
74978
74979 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * config/srclistvars.sh: Add copyright notice.
74982
74983 2006-08-14  Eric Blake  <ebb9@byu.net>
74984
74985         Import the following change from libc:
74986
74987         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74988
74989         Upstream bug 2997.
74990         * lib/misc/error.c: Add space between program name and message if file
74991         name is missing.
74992
74993 2006-08-12  Karl Berry  <karl@gnu.org>
74994
74995         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74996         remove, these originate in gnulib now.
74997
74998 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74999
75000         * doc/Makefile (standards.info standards.html standards.dvi):
75001         Also depend on make-stds.texi.
75002
75003 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75006         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75007
75008         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75009         in wchar_t.  Problem reported by Eric Blake.
75010
75011         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75012         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75013         Also, help the compiler to keep LEN in a register.
75014
75015 2006-08-11  Eric Blake  <ebb9@byu.net>
75016
75017         * users.txt: Sort.  Add tar.
75018
75019 2006-08-11  Bruno Haible  <bruno@clisp.org>
75020
75021         * users.txt: New file.
75022
75023 2006-08-11  Bruno Haible  <bruno@clisp.org>
75024
75025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75026         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75027
75028 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * modules/snprintf (Depends-on): Remove minmax.
75031         (Maintainer): Add self and Bruno.
75032
75033 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75034
75035         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75036         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75037         (EOVERFLOW): Define if the system does not.
75038         Do not include "minmax.h"; it wasn't used.
75039         (snprintf): Don't assume size_t promotes to an unsigned type.
75040         Fix bug when generated string was too long for the buffer: the
75041         buffer's contents are supposed to be the initial prefix of the
75042         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75043         exceeds INT_MAX; do the check ourselves.
75044
75045         Import the following changes from libc:
75046
75047         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75048
75049         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75050         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75051         set wc to the byte which couldn't be converted.
75052         (re_string_reconstruct): Don't clear valid_raw_len before calling
75053         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75054         tip_context using re_string_context_at.
75055
75056         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75057
75058         * lib/posix/regex.h: g++ still cannot handled [restrict].
75059
75060         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75061
75062         * lib/posix/regex.h: Remove special handling for VMS.
75063
75064 2006-08-10  Jim Meyering  <jim@meyering.net>
75065
75066         * modules/same-inode: New module.
75067         * modules/dev-ino: New module.
75068         * modules/cycle-check: Depend on these modules, rather than simply
75069         including their .h files.
75070         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75071         required via m4/cycle-check.m4.
75072         * modules/same: Depend on new same-inode module, rather than
75073         including same-inode.h.
75074         * modules/chdir-safer: New file.
75075
75076         * modules/chown (Depends-on): Add stat-macros.
75077
75078 2006-08-10  Jim Meyering  <jim@meyering.net>
75079
75080         * m4/cycle-check.m4: New file.
75081         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75082         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75083
75084 2006-08-10  Eric Blake  <ebb9@byu.net>
75085
75086         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75087         in from original proposal.
75088
75089 2006-08-10  Eric Blake  <ebb9@byu.net>
75090         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75091
75092         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75093         namespace.
75094
75095 2006-08-10  Bruno Haible  <bruno@clisp.org>
75096
75097         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75098         as well.
75099
75100 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75101
75102         Sync from coreutils.
75103
75104         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75105
75106         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75107         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75108
75109 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * modules/restrict: Remove; no longer needed now that we assume
75112         Autoconf 2.59 or later.
75113         * MODULES.html.sh: Remove 'restrict'.
75114         * modules/argp (Depends-on): Remove 'restrict'.
75115         * modules/base64 (Depends-on): Likewise.
75116         * modules/gc (Depends-on): Likewise.
75117         * modules/getaddrinfo (Depends-on): Likewise.
75118         * modules/glob (Depends-on): Likewise.
75119         * modules/inet_ntop (Depends-on): Likewise.
75120         * modules/inet_pton (Depends-on): Likewise.
75121         * modules/memxor (Depends-on): Likewise.
75122         * modules/regex (Depends-on): Likewise.
75123         * modules/strtok_r (Depends-on): Likewise.
75124         * modules/time_r (Depends-on): Likewise.
75125
75126 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75129         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75130         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75131         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75132         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75133         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75134         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75135         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75136
75137         Merge from coreutils.
75138         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75139         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75140         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75141         * m4/time_r.m4 (gl_TIME_R): Likewise.
75142
75143 2006-08-09  Karl Berry  <karl@gnu.org>
75144
75145         * config/srclist.txt: no more gettext-tools, per Bruno.
75146
75147 2006-08-08  Eric Blake  <ebb9@byu.net>
75148
75149         * modules/verror: New module.
75150         * MODULES.html.sh: Document it.
75151
75152 2006-08-08  Eric Blake  <ebb9@byu.net>
75153
75154         * lib/verror.h, lib/verror.c: New files.
75155
75156 2006-08-08  Eric Blake  <ebb9@byu.net>
75157
75158         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75159         verror_at_line output complies with GNU Coding Standards even when
75160         file is NULL.
75161
75162 2006-08-07  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75165         versions of AIX.
75166         Reported by Ralf Wildenhues.
75167
75168 2006-08-07  Bruno Haible  <bruno@clisp.org>
75169
75170         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75171         in an AC_DEFUN. Needed so that the autoconf snippets can use
75172         AC_REQUIRE.
75173
75174 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75175
75176         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75177         Initialize pkgdata_DATA.
75178         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75179         overriding it.
75180
75181 2006-08-06  Eric Blake  <ebb9@byu.net>
75182
75183         * lib/error.h: Fold in some upstream changes from glibc.
75184         * lib/error.c: Likewise.
75185
75186 2006-08-04  Bruno Haible  <bruno@clisp.org>
75187
75188         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75189         Make the mostlyclean-local rule depend on mostlyclean-generic.
75190         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75191
75192 2006-07-31  Bruno Haible  <bruno@clisp.org>
75193
75194         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75195         <stdlib.h>, <string.h>.
75196
75197 2006-07-30  Bruno Haible  <bruno@clisp.org>
75198
75199         * modules/readlink (License): Change to LGPL.
75200
75201 2006-07-30  Bruno Haible  <bruno@clisp.org>
75202
75203         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75204         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75205         set PKGDATADIR to point to it.
75206
75207 2006-07-30  Bruno Haible  <bruno@clisp.org>
75208
75209         * modules/csharpexec (configure.ac): Comment out macro invocation.
75210         * modules/javaexec (configure.ac): Likewise.
75211         * modules/javacomp-script (configure.ac): Likewise.
75212
75213         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75214
75215 2006-07-30  Bruno Haible  <bruno@clisp.org>
75216
75217         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75218         linked-list.
75219
75220 2006-07-30  Bruno Haible  <bruno@clisp.org>
75221
75222         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75223
75224 2006-07-30  Bruno Haible  <bruno@clisp.org>
75225
75226         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75227         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75228         get removed.
75229
75230 2006-07-29  Bruno Haible  <bruno@clisp.org>
75231
75232         Make it possible for gnulib-tool to work with locally modified or
75233         augmented gnulib repositories.
75234         * gnulib-tool (func_usage): Document --local-dir option.
75235         (local_gnulib_dir): New variable.
75236         Handle --local-dir option.
75237         (func_lookup_file): New function.
75238         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75239         (func_get_description, func_get_filelist, func_get_description,
75240         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75241         func_get_automake_snippet, func_get_include_directive,
75242         func_get_license, func_get_maintainer): Use func_lookup_file.
75243         (func_import, func_create_testdir): Use func_lookup_file.
75244
75245 2006-07-29  Bruno Haible  <bruno@clisp.org>
75246
75247         * modules/setenv (Depends-on): Add unistd.
75248
75249 2006-07-29  Bruno Haible  <bruno@clisp.org>
75250
75251         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75252
75253 2006-07-29  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75256
75257 2006-07-29  Bruno Haible  <bruno@clisp.org>
75258
75259         * gnulib-tool (import, update): If there is no Makefile.am, look at
75260         aclocal.m4, instead of bailing out.
75261
75262 2006-07-29  Bruno Haible  <bruno@clisp.org>
75263
75264         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75265         Categorize the options by when they are useful.
75266
75267 2006-07-29  Bruno Haible  <bruno@clisp.org>
75268
75269         * gnulib-tool (func_usage): Document option --no-libtool.
75270         Handle option --no-libtool.
75271         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75272         for changed semantics of $libtool variable.
75273         (func_import): Likewise. If libtool is not used, show this through
75274         an option --no-libtool.
75275         (func_create_testdir): Update.
75276
75277 2006-07-29  Bruno Haible  <bruno@clisp.org>
75278
75279         * gnulib-tool (func_import): Extend error message about missing
75280         --doc-base.
75281
75282 2006-07-29  Bruno Haible  <bruno@clisp.org>
75283
75284         * gnulib-tool (func_import): Don't create the $docbase directory if
75285         there is no file to store there.
75286
75287 2006-07-29  Bruno Haible  <bruno@clisp.org>
75288
75289         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75290         relevant, look for configure.ac there, not in the current directory.
75291         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75292
75293 2006-07-29  Bruno Haible  <bruno@clisp.org>
75294
75295         * gnulib-tool (SORT): New variable.
75296         (func_usage): Undocument --assume-autoconf option.
75297         Remove --assume-autoconf option handling.
75298         (autoconf_minversion): Determine from the contents of configure.ac.
75299         (func_import): Remove autoconf_minversion handling.
75300         Suggested by Eric Blake.
75301
75302 2006-07-29  Bruno Haible  <bruno@clisp.org>
75303
75304         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75305
75306 2006-07-29  Bruno Haible  <bruno@clisp.org>
75307
75308         * config/srclist.txt (*setenv.[ch]): Remove rules.
75309
75310 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75311
75312         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75313
75314 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75315
75316         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75317         arpa/inet.h.
75318
75319 2006-07-28  Simon Josefsson  <jas@extundo.com>
75320
75321         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75322         * modules/inet_pton (Depends-on): Likewise.
75323
75324 2006-07-28  Simon Josefsson  <jas@extundo.com>
75325
75326         * m4/netinet_in_h.m4: New file.
75327
75328 2006-07-28  Simon Josefsson  <jas@extundo.com>
75329
75330         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75331         #include's.
75332
75333 2006-07-28  Simon Josefsson  <jas@extundo.com>
75334
75335         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75336         #include's.
75337
75338 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75341         setgid on directories only if they set these bits.
75342         * lib/modechange.h: Remove obsolete comment about masks.
75343
75344 2006-07-28  Eric Blake  <ebb9@byu.net>
75345
75346         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75347         macro expansion.
75348
75349 2006-07-28  Bruno Haible  <bruno@clisp.org>
75350
75351         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75352
75353 2006-07-28  Bruno Haible  <bruno@clisp.org>
75354
75355         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75356
75357 2006-07-28  Bruno Haible  <bruno@clisp.org>
75358
75359         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75360         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75361         Define fallbacks.
75362         Avoids link error on FreeBSD 4.x.
75363         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75364
75365         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75366         encoding.
75367         * lib/mbswidth.c (iswcntrl): Likewise.
75368
75369 2006-07-27  Bruno Haible  <bruno@clisp.org>
75370
75371         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75372         test.
75373
75374 2006-07-27  Bruno Haible  <bruno@clisp.org>
75375
75376         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75377         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75378         defined.
75379
75380 2006-07-26  Eric Blake  <ebb9@byu.net>
75381
75382         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75383
75384 2006-07-26  Eric Blake  <ebb9@byu.net>
75385
75386         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75387         like mingw that lack mkstemp.
75388         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75389         avoid compilation warning on mingw.
75390
75391 2006-07-26  Bruno Haible  <bruno@clisp.org>
75392
75393         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75394         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75395         INT_FAST*_MIN, INTPTR_MIN.
75396
75397 2006-07-25  Bruno Haible  <bruno@clisp.org>
75398
75399         * modules/version-etc (Depends-on): Add stdarg.
75400
75401 2006-07-25  Bruno Haible  <bruno@clisp.org>
75402
75403         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75404         complex commands.
75405
75406 2006-07-25  Bruno Haible  <bruno@clisp.org>
75407
75408         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75409         defined in <stdarg.h> or config.h.
75410
75411 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75414         (gl_STDIO_SAFER): Remove.
75415
75416 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * MODULES.html.sh (File stream based Input/Output):
75419         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75420         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75421         * modules/fopen-safer, modules/tmpfile-safer: New files.
75422         * modules/stdio-safer: Remove.
75423
75424 2006-07-24  Bruno Haible  <bruno@clisp.org>
75425
75426         * modules/tmpdir: New file.
75427         * MODULES.html.sh (File system functions): Add it.
75428
75429 2006-07-24  Bruno Haible  <bruno@clisp.org>
75430
75431         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75432         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75433
75434 2006-07-24  Bruno Haible  <bruno@clisp.org>
75435
75436         * modules/clean-temp: New file.
75437
75438 2006-07-24  Bruno Haible  <bruno@clisp.org>
75439
75440         * m4/tmpdir.m4: New file, from GNU gettext.
75441
75442 2006-07-24  Bruno Haible  <bruno@clisp.org>
75443
75444         * lib/tmpdir.h: New file, from GNU gettext.
75445         * lib/tmpdir.c: New file, from GNU gettext.
75446
75447 2006-07-24  Bruno Haible  <bruno@clisp.org>
75448
75449         * lib/clean-temp.h: New file, from GNU gettext.
75450         * lib/clean-temp.c: New file, from GNU gettext.
75451
75452 2006-07-23  Eric Blake  <ebb9@byu.net>
75453
75454         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75455         (Depends-on): Add binary-io.
75456
75457 2006-07-23  Eric Blake  <ebb9@byu.net>
75458
75459         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75460
75461 2006-07-23  Eric Blake  <ebb9@byu.net>
75462
75463         * lib/tmpfile-safer.c: New file.
75464         * lib/stdio-safer.h (fopen_safer): Add prototype.
75465         * lib/stdio--.h (tmpfile): Make safer.
75466
75467 2006-07-23  Bruno Haible  <bruno@clisp.org>
75468
75469         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75470         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75471         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75472         gl_linked_remove_at): Use it.
75473
75474 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75475         and Simon Josefsson <jas@extundo.com>
75476
75477         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75478
75479         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75480
75481 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * modules/close-stream: New file.
75484         * modules/closeout (Description): Make it clear that it exits
75485         with a diagnostic on error.
75486         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75487         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75488
75489 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * m4/close-stream.m4: New file.
75492
75493 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75494
75495         * lib/close-stream.c, lib/close-stream.h: New files.
75496
75497 2006-07-22  Bruno Haible  <bruno@clisp.org>
75498
75499         Merge from GNU gettext 0.15.
75500
75501         2006-05-01  Bruno Haible  <bruno@clisp.org>
75502
75503                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75504
75505         2006-07-22  Bruno Haible  <bruno@clisp.org>
75506
75507                 * modules/javaversion: New file.
75508                 * MODULES.html.sh (Java): Add javaversion.
75509
75510         2006-03-12  Bruno Haible  <bruno@clisp.org>
75511
75512                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75513
75514         2005-12-04  Bruno Haible  <bruno@clisp.org>
75515
75516                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75517                 (untested).
75518
75519         2006-06-21  Bruno Haible  <bruno@clisp.org>
75520
75521                 Avoid warnings from recent versions of mcs.
75522                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75523                 -o, -L, -r any more. Use options documented since mcs-1.0
75524                 instead. Similarly for -g.
75525
75526         2005-12-04  Bruno Haible  <bruno@clisp.org>
75527
75528                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75529                 .resources, not .resource.
75530
75531         2005-07-09  Bruno Haible  <bruno@clisp.org>
75532
75533                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75534                 add a .dll suffix.
75535                 Reported by Mark Junker <mjscod@gmx.de>.
75536
75537         2006-07-22  Bruno Haible  <bruno@clisp.org>
75538
75539                 * modules/gettext: Upgrade to gettext-0.15.
75540                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75541                 m4/visibility.m4.
75542                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75543
75544 2006-07-22  Bruno Haible  <bruno@clisp.org>
75545
75546         Merge from GNU gettext 0.15.
75547
75548         2006-03-25  Bruno Haible  <bruno@clisp.org>
75549
75550                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75551
75552         2006-07-21  Bruno Haible  <bruno@clisp.org>
75553
75554                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75555                 "1.1".
75556
75557         2006-05-09  Bruno Haible  <bruno@clisp.org>
75558
75559                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75560                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75561                 for the conftestver execution.
75562
75563         2006-05-01  Bruno Haible  <bruno@clisp.org>
75564
75565                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75566                 optional target-version argument. Verify that the compiler
75567                 groks source of the specified source-version, or add -source
75568                 option as necessary. Verify that the compiler produces
75569                 bytecode in the specified target-version, or add -target and
75570                 -source options as necessary. Make the result of the test
75571                 available as variable CONF_JAVAC. Also log error output in
75572                 config.log.
75573
75574         2006-03-11  Bruno Haible  <bruno@clisp.org>
75575
75576                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75577
75578         2006-05-09  Bruno Haible  <bruno@clisp.org>
75579
75580                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75581                 CLASSPATH_SEPARATOR to a semicolon.
75582
75583         2006-03-12  Bruno Haible  <bruno@clisp.org>
75584
75585                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75586                 available as variable CONF_JAVA, for subsequent autoconf
75587                 tests. Also log error output in config.log.
75588
75589         2006-07-19  Bruno Haible  <bruno@clisp.org>
75590
75591                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75592                 that getline works on glibc2 systems. Needed to avoid trouble
75593                 in relocatable.c.
75594                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75595
75596         2005-12-04  Bruno Haible  <bruno@clisp.org>
75597
75598                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75599                 launcher (untested).
75600
75601         2005-12-04  Bruno Haible  <bruno@clisp.org>
75602
75603                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75604
75605         2006-07-22  Bruno Haible  <bruno@clisp.org>
75606
75607                 * gettext.m4: Update from GNU gettext-0.15.
75608                 * nls.m4: Likewise.
75609                 * po.m4: Likewise.
75610                 * inttypes-pri.m4: Likewise.
75611                 * inttypes-h.m4: Renamed from inttypes.m4.
75612                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75613
75614 2006-07-22  Bruno Haible  <bruno@clisp.org>
75615
75616         Merge from GNU gettext 0.15.
75617
75618         2005-07-05  Bruno Haible  <bruno@clisp.org>
75619
75620                 * printf-args.c (printf_fetchargs): Work around broken
75621                 definition of wint_t on mingw.
75622
75623         2005-02-12  Bruno Haible  <bruno@clisp.org>
75624
75625                 * xallocsa.h: Add extern "C" for C++.
75626
75627         2006-05-17  Bruno Haible  <bruno@clisp.org>
75628
75629                 Cygwin portability.
75630                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75631
75632         2006-04-30  Bruno Haible  <bruno@clisp.org>
75633
75634                 * progreloc.c: Include <mach-o/dyld.h> if available.
75635                 (find_executable): Use _NSGetExecutablePath when possible.
75636
75637         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75638
75639                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75640                 function.
75641
75642         2005-12-29  Bruno Haible  <bruno@clisp.org>
75643
75644                 * progreloc.c (set_program_name_and_installdir): Fix
75645                 compilation error.
75646
75647         2005-12-04  Bruno Haible  <bruno@clisp.org>
75648
75649                 Cygwin portability.
75650                 * progreloc.c: Include <windows.h> also on Cygwin.
75651                 (find_executable): Add support for Cygwin.
75652                 (set_program_name_and_installdir): Handle also platforms with
75653                 nonempty EXEEXT.
75654
75655         2006-07-11  Bruno Haible  <bruno@clisp.org>
75656
75657                 * javacomp.c: Fix a comment.
75658                 Reported by Jim Meyering.
75659
75660         2006-04-30  Bruno Haible  <bruno@clisp.org>
75661
75662                 * javacomp.h (compile_java_class): Add source_version,
75663                 target_version arguments.
75664                 * javacomp.c: Rewritten to choose only a compiler that
75665                 respects the specified source_version and target_version.
75666
75667         2006-06-27  Bruno Haible  <bruno@clisp.org>
75668
75669                 Assume correct S_ISDIR macro.
75670                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75671
75672         2006-07-22  Bruno Haible  <bruno@clisp.org>
75673
75674                 * javaversion.h: New file, from GNU gettext.
75675                 * javaversion.c: New file, from GNU gettext.
75676                 * javaversion.java: New file, from GNU gettext.
75677                 * javaversion.class: New file, from GNU gettext.
75678
75679         2006-05-17  Bruno Haible  <bruno@clisp.org>
75680
75681                 Cygwin portability.
75682                 * javaexec.c (execute_java_class): Test for jview program
75683                 also on Cygwin.
75684
75685         2006-04-09  Bruno Haible  <bruno@clisp.org>
75686
75687                 * fatal-signal.c: Don't include string.h.
75688                 (at_fatal_signal): Use a copying loop instead of memcpy.
75689
75690         2005-12-04  Bruno Haible  <bruno@clisp.org>
75691
75692                 * csharpexec.c: Add support for 'clix' launcher (untested).
75693                 (execute_csharp_using_sscli): New function.
75694                 (execute_csharp_program): Call it.
75695
75696         2006-06-21  Bruno Haible  <bruno@clisp.org>
75697
75698                 Avoid warnings from recent versions of mcs.
75699                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75700                 -o, -L, -r any more. Use options documented since mcs-1.0
75701                 instead. Similarly for -g.
75702
75703         2005-07-09  Bruno Haible  <bruno@clisp.org>
75704
75705                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75706                 add a .dll suffix.
75707                 Reported by Mark Junker <mjscod@gmx.de>.
75708
75709         2006-06-17  Bruno Haible  <bruno@clisp.org>
75710
75711                 * config.charset: Update for NetBSD 3.0.
75712
75713         2006-05-17  Bruno Haible  <bruno@clisp.org>
75714
75715                 Cygwin portability.
75716                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75717
75718         2006-05-16  Bruno Haible  <bruno@clisp.org>
75719
75720                 * localcharset.c [CYGWIN]: Include <windows.h>.
75721                 (get_charset_aliases): For Cygwin, return the same CPxxx
75722                 aliases list as under WIN32.
75723                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75724                 the environment variables. Fall back to GetACP().
75725
75726         2006-04-05  Bruno Haible  <bruno@clisp.org>
75727
75728                 * config.charset: Update Juan Manuel Guerrero's address.
75729
75730         2005-02-12  Bruno Haible  <bruno@clisp.org>
75731
75732                 * allocsa.h: Add extern "C" for C++.
75733
75734         2005-02-10  Bruno Haible  <bruno@clisp.org>
75735
75736                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75737                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75738
75739         2006-07-22  Bruno Haible  <bruno@clisp.org>
75740
75741                 * gettext.h: Update to GNU gettext-0.15.
75742
75743 2006-07-22  Bruno Haible  <bruno@clisp.org>
75744
75745         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75746         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75747         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75748
75749 2006-07-21  Eric Blake  <ebb9@byu.net>
75750
75751         * modules/stdlib-safer: New file.
75752         * MODULES.html.sh (File stream based Input/Output): Add
75753         stdlib-safer.
75754
75755 2006-07-21  Eric Blake  <ebb9@byu.net>
75756
75757         * lib/stdlib-safer.h: New file from coreutils, required by
75758         stdlib--.h.
75759
75760 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75761
75762         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75763
75764 2006-07-20  Bruno Haible  <bruno@clisp.org>
75765
75766         * gnulib-tool: Recognize new option --assume-autoconf.
75767         (autoconf_minversion): New variable.
75768         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75769
75770 2006-07-20  Bruno Haible  <bruno@clisp.org>
75771
75772         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75773
75774 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75775
75776         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75777         Reindent and repaginate.
75778
75779 2006-07-19  Derek Price  <derek@ximbiot.com>
75780
75781         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75782         Correct grammar.
75783
75784 2006-07-17  Bruno Haible  <bruno@clisp.org>
75785
75786         * modules/list: New file.
75787         * modules/array-list: New file.
75788         * modules/carray-list, modules/carray-list-tests: New files.
75789         * modules/linked-list, modules/linked-list-tests: New files.
75790         * modules/avltree-list, modules/avltree-list-tests: New files.
75791         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75792         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75793         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75794         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75795         * modules/oset: New file.
75796         * modules/array-oset: New file.
75797         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75798         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75799         * tests/test-carray_list.c: New file.
75800         * tests/test-linked_list.c: New file.
75801         * tests/test-avltree_list.c: New file.
75802         * tests/test-rbtree_list.c: New file.
75803         * tests/test-linkedhash_list.c: New file.
75804         * tests/test-avltreehash_list.c: New file.
75805         * tests/test-rbtreehash_list.c: New file.
75806         * tests/test-avltree_oset.c: New file.
75807         * tests/test-rbtree_oset.c: New file.
75808         * MODULES.html.sh (Container data structures): New section.
75809
75810 2006-07-17  Bruno Haible  <bruno@clisp.org>
75811
75812         * m4/gl_list.m4: New file.
75813
75814 2006-07-17  Bruno Haible  <bruno@clisp.org>
75815
75816         * lib/gl_list.h: New file.
75817         * lib/gl_list.c: New file.
75818         * lib/gl_array_list.h: New file.
75819         * lib/gl_array_list.c: New file.
75820         * lib/gl_carray_list.h: New file.
75821         * lib/gl_carray_list.c: New file.
75822         * lib/gl_linked_list.h: New file.
75823         * lib/gl_linked_list.c: New file.
75824         * lib/gl_anylinked_list1.h: New file.
75825         * lib/gl_anylinked_list2.h: New file.
75826         * lib/gl_avltree_list.h: New file.
75827         * lib/gl_avltree_list.c: New file.
75828         * lib/gl_anyavltree_list1.h: New file.
75829         * lib/gl_anyavltree_list2.h: New file.
75830         * lib/gl_rbtree_list.h: New file.
75831         * lib/gl_rbtree_list.c: New file.
75832         * lib/gl_anyrbtree_list1.h: New file.
75833         * lib/gl_anyrbtree_list2.h: New file.
75834         * lib/gl_anytree_list1.h: New file.
75835         * lib/gl_anytree_list2.h: New file.
75836         * lib/gl_linkedhash_list.h: New file.
75837         * lib/gl_linkedhash_list.c: New file.
75838         * lib/gl_anyhash_list1.h: New file.
75839         * lib/gl_anyhash_list2.h: New file.
75840         * lib/gl_avltreehash_list.h: New file.
75841         * lib/gl_avltreehash_list.c: New file.
75842         * lib/gl_rbtreehash_list.h: New file.
75843         * lib/gl_rbtreehash_list.c: New file.
75844         * lib/gl_anytreehash_list1.h: New file.
75845         * lib/gl_anytreehash_list2.h: New file.
75846
75847         * lib/gl_oset.h: New file.
75848         * lib/gl_oset.c: New file.
75849         * lib/gl_array_oset.h: New file.
75850         * lib/gl_array_oset.c: New file.
75851         * lib/gl_avltree_oset.h: New file.
75852         * lib/gl_avltree_oset.c: New file.
75853         * lib/gl_rbtree_oset.h: New file.
75854         * lib/gl_rbtree_oset.c: New file.
75855         * lib/gl_anytree_oset.h: New file.
75856
75857 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * m4/mkancesdirs.m4: New file.
75860         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75861         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75862         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75863         it.
75864
75865 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75868         * lib/mkancesdirs.h: New files.
75869         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75870         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75871         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75872         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75873         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75874         callers changed.  Revamp internals significantly, by not
75875         attempting to create directories that are temporarily more
75876         permissive than the final results.  Do not attempt to use
75877         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75878         This removes some race conditions, fixes some bugs, and simplifies
75879         things.  Use new dirchownmod function to do owner and mode changes.
75880         * lib/mkdir-p.h: Likewise.
75881         * lib/modechange.c (octal_to_mode): New function.
75882         (struct mode_change): New member mentioned.
75883         (make_node_op_equals): New arg mentioned.  All callers changed.
75884         (mode_compile): Keep track of which mode bits the user has explicitly
75885         mentioned.
75886         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75887         New arg PMODE_BITS, to keep track of which mode bits the user
75888         mentioned; it treats S_ISUID and S_ISGID speciall.
75889         All callers changed.
75890         * lib/modechange.h: Likewise.
75891
75892 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * MODULES.html.sh: Add mkancestors.
75895         * modules/mkancesdirs: New module.
75896         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75897         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75898         The chdir-safer and afs files are now orphans; I'll remove them
75899         unless someone speaks up.
75900         Add lib/dirchownmod.c, lib/dirchownmod.h.
75901         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75902         Add lchown, mkancesdirs.
75903         (Maintainer): Add self.
75904
75905 2006-07-15  Karl Berry  <karl@gnu.org>
75906
75907         * gnulib-tool: help message wording/arrangement.
75908
75909 2006-07-14  Simon Josefsson  <jas@extundo.com>
75910
75911         * doc/gnulib.texi (Libtool and Windows): New section.
75912
75913 2006-07-12  Simon Josefsson  <jas@extundo.com>
75914
75915         * modules/gendocs (License): Fix license, approved by Karl.
75916
75917 2006-07-12  Eric Blake  <ebb9@byu.net>
75918
75919         * MODULES.html.sh: Add gendocs.
75920
75921 2006-07-11  Eric Blake  <ebb9@byu.net>
75922
75923         * modules/fdl: New module, to install doc/fdl.texi.
75924         * MODULES.html.sh: Add new section for documentation modules.
75925         * gnulib-tool: Avoid space-tab.
75926         (--doc-base): New option, to manage files from doc.
75927
75928 2006-07-11  Eric Blake  <ebb9@byu.net>
75929
75930         * m4/absolute-header.m4: Fix comments to match recent change.
75931
75932 2006-07-11  Eric Blake  <ebb9@byu.net>
75933
75934         * gnulib-tool: List --doc-base before --tests-base.
75935
75936 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75937
75938         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75939
75940 2006-07-11  Bruno Haible  <bruno@clisp.org>
75941
75942         * README: Mention where to put documentation.
75943
75944 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75945
75946         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75947
75948 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75951         to stdint.m4.
75952
75953 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75956         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75957         "no/such/file/stdint.h" when there is no such file, so that
75958         the resulting C code can be parsed by dodgy compilers.
75959         Problems reported by Bob Proulx.
75960
75961 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75962
75963         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75964         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75965         macros into the GNU _D_EXACT_NAMLEN.
75966         * lib/savedir.c:  Likewise.
75967         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75968
75969 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75970         and Paul Eggert  <eggert@cs.ucla.edu>
75971
75972         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75973         * m4/savedir.m4:
75974         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75975         macros into the GNU _D_EXACT_NAMLEN.
75976
75977 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75978
75979         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75980         around the absolute name, to work around a problem with the HP-UX
75981         11.23 native C compiler, reported by Bob Proulx.
75982
75983 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * doc/maintain.texi, make-stds.texi: Sync from
75986         <http://savannah.gnu.org/projects/gnustandards>.
75987
75988 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75991
75992 2006-07-09  Jim Meyering  <jim@meyering.net>
75993
75994         * m4/glob.m4: Remove a doubled word in a comment.
75995
75996 2006-07-09  Jim Meyering  <jim@meyering.net>
75997
75998         * lib/argp-pv.c: Remove a doubled word in a comment.
75999         * lib/check-version.c (check_version): Likewise.
76000         * lib/javacomp.c (compile_java_class): Likewise.
76001
76002 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76005         for the benefit of people using Autoconf 2.60.  If you want to
76006         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76007         (or m4/onceonly.m4, if pre-2.57) manually.
76008
76009 2006-07-08  Jim Meyering  <jim@meyering.net>
76010
76011         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76012         comment.
76013         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76014         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76015         comment.
76016
76017 2006-07-08  Jim Meyering  <jim@meyering.net>
76018
76019         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76020
76021 2006-07-07  Simon Josefsson  <jas@extundo.com>
76022
76023         * tests/test-crc.c: Change expected crc value, the test vector
76024         were probably computed using the old broken crc.c?
76025
76026 2006-07-06  Simon Josefsson  <jas@extundo.com>
76027
76028         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76029         now the canonical place for the M4 file).
76030
76031         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76032         from the sys_socket dependency now.
76033
76034         * modules/inet_pton (Files): Ditto.
76035
76036         * modules/inet_ntop (Files): Ditto.
76037
76038 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76039
76040         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76041         not gl_PREREQ_GETUSERSHELL.
76042
76043 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76044
76045         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76046         with only one argument, for Autoconf 2.60.
76047         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76048         expand to nothing, so add a shell command to avoid syntax error.
76049         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76050
76051 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76052
76053         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76054
76055 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76058         no longer needed.  Check for isblank decl.
76059         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76060         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76061         of existence.
76062
76063 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76064
76065         * lib/getloadavg.c: Use __VMS, not VMS.
76066         * lib/getopt.c: Likewise.
76067         * lib/getpagesize.h: Likewise.
76068         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76069         and probably does not work.
76070
76071 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * lib/.cppi-disable: Add wcwidth.
76074         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76075         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76076         (ISGRAPH): Remove.  All uses changed to isgraph.
76077         (FOLD) [!defined _LIBC]: Remove special case.
76078         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76079         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76080         HAVE_ISBLANK.
76081         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76082         case.
76083
76084 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76085
76086         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76087         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76088         brackets.  Other minor changes to suppress some compiler
76089         warnings.
76090
76091 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76092         and Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76095         of invoking obsolescent AC_HEADER_DIRENT macro.
76096         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76097         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76098         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76100         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76101         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76102         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76103         * m4/readdir.m4: Remove; no longer needed.
76104
76105 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76106         and Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76109         Don't worry about this obsolete case any more.
76110         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76111         directories.
76112         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76113         worry about this obsolete case any more.
76114         * lib/fts.c: Likewise.
76115         * lib/getcwd.c: Likewise.
76116         * lib/glob.h: Likewise.
76117         * lib/savedir.c: Likewise.
76118
76119 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76120
76121         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76122         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76123         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76124         needed.
76125         All uses removed.
76126         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76127         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76128         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76129         needed.
76130         * m4/getdate.m4 (gl_GETDATE): Likewise.
76131         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76132         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76133         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76134         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76135         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76136         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76137         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76138         needed.
76139
76140 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76141
76142         * lib/memcasecmp.c: Include <limits.h>.
76143         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76144         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76145         Don't assume isdigit succeeds only on '0' through '9'.
76146
76147 2006-07-05  Eric Blake  <ebb9@byu.net>
76148
76149         * modules/getaddrinfo (Depends-on): Add snprintf.
76150
76151 2006-07-05  Eric Blake  <ebb9@byu.net>
76152
76153         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76154         to avoid 'header present but could not be compiled' on cygwin.
76155
76156 2006-07-05  Eric Blake  <ebb9@byu.net>
76157
76158         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76159         missing from netdb.h.
76160         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76161
76162 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76163
76164         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76165         no longer needed.
76166         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76167         * m4/getdate.m4 (gl_GETDATE): Likewise.
76168         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76169         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76170         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76171         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76172         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76173
76174 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76175
76176         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76177         All uses of is_space replaced by isspace.
76178         * lib/exit.h: Don't talk about STDC_HEADERS.
76179         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76180         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76181         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76182         replaced by isprint etc.
76183         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76184         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76185         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76186         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76187         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76188         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76189
76190 2006-07-05  Bruno Haible  <bruno@clisp.org>
76191
76192         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76193         the function exists, before testing against AIX.
76194         Reported by Martin Lambers <marlam@marlam.de>.
76195
76196 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76199         From Mark D. Baushke.
76200
76201 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76202
76203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76204         to the absolute name, not just one, to bypass Sun C 5.8's
76205         "warning: #include of /usr/include/... may be non-portable".
76206
76207 2006-07-04  Eric Blake  <ebb9@byu.net>
76208
76209         * modules/dirname-tests: New test module.
76210         * tests/test-dirname.c: New file, replacing dirname.c
76211         TEST_DIRNAME section that was recently deleted.
76212
76213 2006-07-04  Bruno Haible  <bruno@clisp.org>
76214
76215         Assume ANSI C header files and <ctype.h> functions.
76216         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76217         (mbsnwidth): Use isprint, iscntrl instead.
76218
76219 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         Merge from coreutils.
76222         * MODULES.html.sh: Add xstrtold.
76223         * modules/xstrtold: New file.
76224         * modules/cycle-check (Files): Add lib/same-inode.h.
76225         * modules/dirname (Files): Add m4/double-slash-root.m4.
76226         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76227         * modules/mkdir-p (Files): Add lib/same-inode.h.
76228         * modules/same (Files): Add lib/same-inode.h.
76229
76230 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76233         This is to keep the terminology clean; POSIX talks about
76234         "absolute pathnames", not "full pathnames", but the GNU
76235         Coding Standards say to use "path" for something else;
76236         so use "absolute" to keep both sides happy.
76237         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76238         Set gl_absolute_header, not gl_full_header_path.
76239         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76240         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76241         All uses changed.
76242
76243         Merge from coreutils.
76244
76245         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76248         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76249         want to require the building of c-strtod.o.
76250         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76251         needs -lm directly.
76252         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76253
76254         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76257         --as-needed option if available.  Problem reported by Albert Chin in
76258         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76259         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76260         cc merely issues a bunch of annoying warnings for --as-needed
76261         (this problem was reported by Bob Proulx).  Also, try linking with
76262         -lm to detect a bug in binutils 2.16 (this problem was reported
76263         by Ralf Wildenhues).
76264
76265         2006-06-18  Jim Meyering  <jim@meyering.net>
76266
76267         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76268         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76269         macro.
76270         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76271         also check for glibc-2.4's abort-inducing bug.
76272
76273         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76274         Low-probability clean-up should be to use rmdir to get rid of
76275         the just-created directory, not unlink.
76276
76277         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76278         configure fail, and request a bug report to inform us about it.
76279         Add a comment that, barring reports to the contrary, in 2007 we'll
76280         assume ftruncate is universally available.
76281
76282         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76285
76286         2006-03-12  Jim Meyering  <jim@meyering.net>
76287
76288         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76289         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76290         * m4/same.m4 (gl_SAME): Likewise.
76291         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76292
76293         2006-03-11  Eric Blake  <ebb9@byu.net>
76294
76295         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76296         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76297         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76298         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76299
76300 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76301
76302         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76303         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76304         reported by Mark D. Baushke, one in
76305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76306
76307         Merge from coreutils.
76308
76309         * lib/.cppi-disable: Add stdint_.h.
76310         * lib/.cvsignore: Add stdint.h.
76311
76312         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76315         both double and long double versions.
76316         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76317         * lib/xstrtold.c: New file.
76318         * lib/xstrtod.h (xstrtold): New decl.
76319
76320         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76321
76322         * lib/filemode.c (setst): Remove.
76323         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76324         (arguably) clearer, and the generated code is a bit smaller on my
76325         Debian GNU/Linux stable x86 host.
76326
76327         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76330         Assume that filemode.h includes sys/types.h and sys/stat.h.
76331         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76332         (ftypelet): Reorder to put common cases first, for efficiency.
76333         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76334         to do 'M'.
76335         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76336         of 10, for compatibility with FreeBSD.  All callers changed.
76337         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76338         types that can't be deduced solely from st_mode.  First arg is now a
76339         const pointer.
76340         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76341         (strmode): Renamed from mode_string.
76342         (filemodestring): New decl.
76343         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76344         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76345         needed.
76346         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76347
76348         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76351         fsusage.h now does that.  Include fsusage.h first, to test interface.
76352         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76353         at most one method (the old code could have generated decls that
76354         didn't conform to C89, not that this was ever exercised).
76355         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76356
76357         2006-03-19  Jim Meyering  <jim@meyering.net>
76358
76359         Work even in a chroot where d_ino values for entries in "/"
76360         don't match the stat.st_ino values for the same names.
76361         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76362         number, iterate through all entries again, using lstat instead.
76363         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76364         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76365
76366         * lib/getcwd.c (__getcwd): Clarify a comment.
76367         Use memcpy in place of a call to strcpy.
76368
76369         2006-03-12  Jim Meyering  <jim@meyering.net>
76370
76371         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76372         matches that of the current directory (which we're about to chdir ".."
76373         out of), then save the dev-ino of the parent, instead.
76374
76375         * lib/same-inode.h (SAME_INODE): New file/macro.
76376         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76377         Include "same-inode.h", instead.
76378         * lib/same.c: Likewise.
76379         * lib/cycle-check.h: Include "same-inode.h".
76380         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76381         * lib/cycle-check.c (SAME_INODE): Remove definition.
76382         * lib/root-dev-ino.h: Include "same-inode.h".
76383
76384         2006-03-11  Eric Blake  <ebb9@byu.net>
76385
76386         * lib/same.c (same_name): s/base_name/last_component/
76387         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76388         * lib/filenamecat.c (file_name_concat): Likewise.
76389
76390         2006-03-11  Eric Blake  <ebb9@byu.net>,
76391                     Paul Eggert  <eggert@cs.ucla.edu>
76392
76393         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76394         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76395         drive prefix.
76396         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76397         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76398         (last_component): New method.
76399         * lib/dirname.c (dir_len): Determine when drive letters need a
76400         subsequent slash.  Preserve // when it is special.
76401         (dir_name): Don't append dot when drive letter is absolute.
76402         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76403         * lib/basename.c (base_name): New semantics - malloc the result.
76404         Preserve // when it is special.  Preserve relative files that look
76405         like drive letters.
76406         (base_len): Preserve // when it is special.
76407         (last_component): New method, similar to old base_name semantics.
76408         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76409         base_name.  Strip redundant slashes from ///.
76410
76411 2006-07-03  Jim Meyering  <jim@meyering.net>
76412
76413         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76414         macro is used before the first cycle_check call.
76415
76416 2006-07-03  Eric Blake  <ebb9@byu.net>
76417
76418         * modules/dirname (Depends-on): Add xstrndup.
76419
76420 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76423         test cases, so that config.log is a bit easier to follow.
76424
76425 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76428         both are 64 bits, since this seems to be the tradition, and this
76429         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76430         we ever run into a host that prefers long long to long in this
76431         case, we'll need another configure-time test.  Problem reported by
76432         Jim Meyering.
76433
76434 2006-07-02  Eric Blake  <ebb9@byu.net>
76435
76436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76437
76438 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76439
76440         * modules/inttypes (Depends-on): No longer depends on stdint.
76441         * modules/stdint (Description): Say more about assumptions.
76442         Say that the fast types might differ.  Say macros are used.
76443         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76444         (Makefile.am): Revise list of substituted symbols to match
76445         new stdint.m4.
76446         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76447         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76448         * tests/test-stdint.c (verify_same_types)
76449         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76450         the code conforms to C99/C89.
76451         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76452         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76453
76454 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76457         but fix a bug, by requiring at least 64 bits.
76458         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76459         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76460         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76461         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76462
76463         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76464         changes.  Make 2.59 a prerequisite.  Check and substitute for
76465         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76466         inttypes.h.  Do not use special include files; just use the
76467         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76468         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76469         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76470         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76471         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76472         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76473         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76474         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76475         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76476         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76477         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76478         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76479         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76480         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76481         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76482         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76483         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76484         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76485         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76486         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76487         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76488         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76489         not check for things that C99 does not require, e.g., int8_t.  If
76490         a test isn't needed unless <stdint.h> isn't working, and is
76491         unlikely to be needed for any other reason, then don't do it
76492         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76493         size_t, since we assume C89 freestanding at least.  Do not check
76494         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76495         the right thing even if the types are not defined.  Instead use:
76496         (gl_STDINT_TYPE_PROPERTIES): New macro.
76497         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76498         testing whether <sys/types.h> clashes, as Autoconf does this for
76499         us now.  All uses removed.
76500         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76501         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76502         (gl_CHECK_TYPE_SAME):
76503         Remove; no longer needed.
76504         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76505         exists, since we'll return 0 anyway in that case.
76506         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76507
76508 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76511         possible collision with system files.
76512         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76513         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76514         WCHAR_MIN and WCHAR_MAX in this case.
76515         (<stddef.h>): Do not include; no longer needed.
76516         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76517         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76518         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76519         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76520         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76521         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76522         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76523         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76524         !defined(__c99))]: Include in this case too, since it's harmless
76525         now.
76526         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76527         dangerous to do so.
76528         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76529         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76530         (_STDINT_MIN, _STDINT_MAX): New macros.
76531         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76532         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76533         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76534         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76535         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76536         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76537         macros, not typedefs; this simplifies things quite a bit.
76538         Use long int for all types narrower than int64_t.
76539         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76540         Define in terms of long long int or int64_t or long int,
76541         not int64_t or int32_t.  This saves some compile-time testing.
76542         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76543         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76544         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76545         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76546         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76547         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76548         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76549         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76550         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76551         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76552         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76553         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76554         undef any previous version and define our own version, for
76555         simplicity and consistency with the new macros for types.
76556         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76557         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76558         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76559         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76560         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76561         @WINT_T_SUFFIX@ to keep things simple here.
76562         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76563         Simplify by assuming typical 8/16/32/64 host, since we're
76564         already doing that elsewhere anyway.
76565         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76566         and assume long long int is 64 bits if available.  This
76567         speeds up 'configure'.
76568
76569 2006-07-01  Eric Blake  <ebb9@byu.net>
76570
76571         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76572         Reported by Andreas Buening.
76573
76574 2006-07-01  Eric Blake  <ebb9@byu.net>
76575
76576         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76577
76578 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76579
76580         * lib/getaddrinfo.c: fixed typo
76581
76582 2006-06-29  Jim Meyering  <jim@meyering.net>
76583
76584         * modules/strftime (Maintainer): Add my name, since with the
76585         FPRINTFTIME changes strftime.c has forked from glibc.
76586
76587 2006-06-29  Eric Blake  <ebb9@byu.net>
76588
76589         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76590
76591 2006-06-29  Eric Blake  <ebb9@byu.net>
76592
76593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76594
76595 2006-06-29  Eric Blake  <ebb9@byu.net>
76596
76597         * lib/stat_.h: New file.
76598
76599 2006-06-29  Eric Blake  <ebb9@byu.net>
76600
76601         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76602         unused static function.
76603
76604 2006-06-29  Eric Blake  <ebb9@byu.net>
76605
76606         * doc/functions.texi (Function Portability): Document missing lstat
76607         on mingw.
76608
76609 2006-06-29  Eric Blake  <ebb9@byu.net>
76610
76611         * MODULES.html.sh: Add sys_stat.
76612         * modules/sys_stat: New module.
76613         * modules/mkstemp (Depends-on): Add sys_stat.
76614
76615 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76616
76617         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76618
76619 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76620
76621         * m4/c-bs-a.m4: Removed.
76622
76623 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76624
76625         * lib/strftime.c: Assume strftime() exists.
76626
76627 2006-06-29  Derek Price  <derek@ximbiot.com>
76628
76629         * modules/c-bs-a: Removed - \a is C89.
76630         * MODULES.html.sh: Remove c-bs-a.
76631
76632 2006-06-29  Bruno Haible  <bruno@clisp.org>
76633
76634         * modules/wcwidth (License): Change to LGPL.
76635
76636 2006-06-28  Simon Josefsson  <jas@extundo.com>
76637
76638         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76639         on _WIN32.
76640
76641         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76642         getnameinfo.
76643
76644 2006-06-28  Simon Josefsson  <jas@extundo.com>
76645
76646         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76647
76648 2006-06-28  Simon Josefsson  <jas@extundo.com>
76649
76650         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76651         functions there.  It will succeed on Windows XP, but on Windows
76652         2000 and (presumably) earlier, it will fail, and use the internal
76653         re-implementation.
76654         (use_win32_p): New function.
76655         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76656         Support AI_NUMERICSERV to disable getservbyname.
76657         (getnameinfo): New function, only supports
76658         NI_NUMERICHOST|NI_NUMERICSERV for now.
76659
76660         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76661         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76662         getnameinfo.
76663
76664 2006-06-28  Eric Blake  <ebb9@byu.net>
76665
76666         * modules/wcwidth: New file.
76667         * modules/mbchar (Depends-on): Add wcwidth.
76668         * modules/mbswidth (Depends-on): Add wcwidth.
76669         * MODULES.html.sh: Add wcwidth.
76670
76671 2006-06-28  Eric Blake  <ebb9@byu.net>
76672
76673         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76675
76676 2006-06-28  Eric Blake  <ebb9@byu.net>
76677
76678         * lib/xvasprintf.h: Fix comments.
76679
76680 2006-06-28  Eric Blake  <ebb9@byu.net>
76681
76682         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76683         * lib/mbswidth.c (wcwidth): Move from here...
76684         * lib/wcwidth.h: ...to this new file.
76685
76686 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76687
76688         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76689
76690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76691         it's obsolete.
76692         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76693
76694 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76695
76696         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76697         Autoconf 2.60 says this stuff was obsolete.
76698
76699 2006-06-28  Bruno Haible  <bruno@clisp.org>
76700
76701         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76702
76703 2006-06-28  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76706         gt_TYPE_WCHAR_T.
76707
76708 2006-06-28  Bruno Haible  <bruno@clisp.org>
76709
76710         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76711         declaration for wcwidth.
76712         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76713
76714 2006-06-28  Bruno Haible  <bruno@clisp.org>
76715
76716         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76717         (mkdir): Define using _mkdir.
76718
76719 2006-06-28  Bruno Haible  <bruno@clisp.org>
76720
76721         * lib/getaddrinfo.h: Fix POSIX URL.
76722         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76723         _WIN32.
76724         (use_win32_p): Make static.
76725         (getaddrinfo): Reject service name if it is empty or does not consist
76726         solely of decimal digits, or if its value is > 65535.
76727         (getnameinfo): Remove useless casts.
76728
76729 2006-06-27  Simon Josefsson  <jas@extundo.com>
76730
76731         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76732         Eggert and Martin Lambers.
76733
76734 2006-06-27  Simon Josefsson  <jas@extundo.com>
76735
76736         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76737         Eggert and Martin Lambers.
76738
76739 2006-06-27  Bruno Haible  <bruno@clisp.org>
76740
76741         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76742         result to 0, not to empty.
76743         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76744
76745 2006-06-27  Bruno Haible  <bruno@clisp.org>
76746
76747         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76748
76749 2006-06-26  Simon Josefsson  <jas@extundo.com>
76750
76751         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76752         present.
76753
76754 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76757         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76759
76760 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76761
76762         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76763
76764 2006-06-26  Bruno Haible  <bruno@clisp.org>
76765
76766         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76767
76768 2006-06-26  Bruno Haible  <bruno@clisp.org>
76769
76770         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76771
76772 2006-06-26  Bruno Haible  <bruno@clisp.org>
76773
76774         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76775         SGI C compiler in pre-C99 mode.
76776         Suggested by Mark D. Baushke and Larry Jones.
76777
76778 2006-06-26  Bruno Haible  <bruno@clisp.org>
76779
76780         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76781         WCHAR_MAX.
76782         Reported by Mark D. Baushke and Larry Jones.
76783
76784 2006-06-26  Bruno Haible  <bruno@clisp.org>
76785
76786         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76787         in pre-C99 mode.
76788         Suggested by Mark D. Baushke and Larry Jones.
76789
76790 2006-06-23  Simon Josefsson  <jas@extundo.com>
76791             Bruno Haible  <bruno@clisp.org>
76792
76793         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76794         Emit mostlyclean-local rule.
76795         (func_emit_tests_Makefile_am): Likewise.
76796         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76797
76798 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76799
76800         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76801
76802 2006-06-23  Bruno Haible  <bruno@clisp.org>
76803
76804         * tests/test-stdint.c: Update to match ISO C 99 Technical
76805         Corrigendum 1.
76806
76807 2006-06-23  Bruno Haible  <bruno@clisp.org>
76808
76809         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76810
76811 2006-06-23  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/stdint_.h: Treat IRIX like OpenBSD.
76814
76815 2006-06-23  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76818         ISO C 99 Technical Corrigendum 1.
76819
76820 2006-06-22  Simon Josefsson  <jas@extundo.com>
76821
76822         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76823         MinGW.
76824
76825 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76828         needed.  Some compiler complained about some of them.  Problem reported
76829         by Larry Jones in
76830         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76831
76832 2006-06-21  Simon Josefsson  <jas@extundo.com>
76833
76834         * tests/test-getaddrinfo.c: New file.
76835
76836         * modules/getaddrinfo-tests: New file.
76837
76838         * MODULES.html.sh: Add inet_pton.
76839
76840         * modules/inet_pton: New file.
76841
76842 2006-06-21  Simon Josefsson  <jas@extundo.com>
76843
76844         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76845         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76846         of using the (limited) gnulib implementation on Windows XP.
76847
76848         * m4/inet_pton.m4: New file.
76849
76850 2006-06-21  Simon Josefsson  <jas@extundo.com>
76851
76852         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76853         variable.
76854
76855         * lib/socket_.h: Don't define WINVER.
76856
76857         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76858         slightly modified to work in gnulib.
76859
76860 2006-06-21  Simon Josefsson  <jas@extundo.com>
76861
76862         * doc/gnulib.texi (Windows sockets): Add.
76863
76864 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         * lib/read-file.c (fread_file): Start with buffer allocation of
76867         0 bytes rather than 1 byte; this simplifies the code.
76868         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76869         code to free buffer and save/restore errno.
76870         (internal_read_file): Remove unused local.
76871
76872 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76873
76874         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76875         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76876         Problem reported by Denis Excoffier in
76877         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76878
76879 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76880
76881         * modules/sys_socket, modules/socklen: Include sys/types since
76882         FreeBSD 4.x's sys/socket.h needs it.
76883
76884 2006-06-19  Simon Josefsson  <jas@extundo.com>
76885
76886         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76887
76888 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76891
76892 2006-06-19  Bruno Haible  <bruno@clisp.org>
76893
76894         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76895         and FULL_PATH_INTTYPES_H in angle brackets.
76896         Reported by Mark D. Baushke <mdb@gnu.org>.
76897
76898 2006-06-17  Eric Blake  <ebb9@byu.net>
76899
76900         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76901         errno.
76902
76903 2006-06-17  Bruno Haible  <bruno@clisp.org>
76904
76905         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76906         <sys/inttypes.h>.
76907
76908 2006-06-17  Bruno Haible  <bruno@clisp.org>
76909
76910         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76911         whether errno is declared. Assume <errno.h> declares errno.
76912
76913 2006-06-17  Bruno Haible  <bruno@clisp.org>
76914
76915         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76916
76917 2006-06-17  Bruno Haible  <bruno@clisp.org>
76918
76919         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76920         problem on Solaris 2.5.1.
76921
76922 2006-06-16  Eric Blake  <ebb9@byu.net>
76923
76924         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76925         * lib/unicodeio.c [!defined errno]: Likewise.
76926         * lib/strtol.c [!defined errno]: Likewise.
76927         * lib/strtod.c [!defined errno]: Likewise.
76928
76929 2006-06-15  Eric Blake  <ebb9@byu.net>
76930
76931         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76932
76933 2006-06-15  Eric Blake  <ebb9@byu.net>
76934
76935         * config/srclist.txt (ssize_t.m4): Lose sync.
76936
76937 2006-06-15  Bruno Haible  <bruno@clisp.org>
76938
76939         * modules/stdint (Files): Include m4/full-header-path.m4,
76940         m4/size_max.m4, m4/wchar_t.m4.
76941         (Makefile.am): Many more substitutions.
76942         * modules/stdint-tests: New file.
76943         * tests/test-stdint.c: New file.
76944
76945 2006-06-15  Bruno Haible  <bruno@clisp.org>
76946
76947         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76948         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76949         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76950         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76951         gl_CHECK_TYPE_SAME): New macros.
76952
76953 2006-06-15  Bruno Haible  <bruno@clisp.org>
76954
76955         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76956
76957 2006-06-15  Bruno Haible  <bruno@clisp.org>
76958
76959         * lib/stdint_.h: Rewritten to be fully auto-configured.
76960         Fixes bug on HP-UX/IA64.
76961
76962 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * lib/getdate.y (__attribute__): Don't define if already defined.
76965         Problem reported by Larry Jones.
76966         * lib/utimens.c (__attribute__): Likewise.
76967
76968 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76971         reported by Andreas Schwab.
76972
76973 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76974             Bruno Haible  <bruno@clisp.org>
76975
76976         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76977         check for the declaration of strnlen and a run test that exposes the
76978         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76979         rpl_strndup.
76980
76981 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76982             Bruno Haible  <bruno@clisp.org>
76983
76984         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76985
76986 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76987
76988         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76989         compile test, for Tru64 4.0D.
76990
76991 2006-05-28  Karl Berry  <karl@gnu.org>
76992
76993         * config/srclist.txt (printf-args.c): lose sync.
76994
76995 2006-05-26  Martin Lambers  <marlam@marlam.de>
76996
76997         * lib/getpass.c: Updates the test for the native W32 API, and adds
76998         missing includes, thus fixing compilation warnings.
76999
77000 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77001
77002         * lib/exclude.c (exclude_fnmatch): New function.
77003         (excluded_file_name): Call exclude_fnmatch.
77004         * lib/exclude.h (excluded_file_name): New prototype
77005
77006 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77007
77008         * lib/tempname.c (small_open, large_open): New macros.
77009         (__open, __open64) [!_LIBC]: Remove.
77010         (__gen_tempname): Use small_open and large_open instead of __open
77011         and __open64.  This fixes a portability bug on HP-UX 11.11i
77012         reported by Simon Wing-Tang in
77013         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77014
77015 2006-05-24  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77018         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77019         Reported by Thorsten Maerz <torte@netztorte.de> via
77020         Aaron Stone <aaron@serendipity.cx>.
77021
77022 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77025         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77026         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77027         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77028         not really conditional on the cache.
77029         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77030
77031 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77034         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77035         (my_usleep): Don't mishandle maximum value.
77036
77037 2006-05-19  Jim Meyering  <jim@meyering.net>
77038
77039         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77040
77041 2006-05-17  Bruno Haible  <bruno@clisp.org>
77042
77043         Cygwin portability.
77044         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77045
77046 2006-05-17  Bruno Haible  <bruno@clisp.org>
77047
77048         * lib/stdint_.h: Fix recognition of Cygwin.
77049
77050 2006-05-15  Bruno Haible  <bruno@clisp.org>
77051
77052         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77053         on libtool patch by Ralf Wildenhues.
77054
77055 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77056
77057         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77058         test for C99 conformance; (bool) 0.5 is an integer constant
77059         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77060         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77061
77062 2006-05-11  Simon Josefsson  <jas@extundo.com>
77063
77064         * m4/xvasprintf.m4: Fix obvious typo.
77065
77066 2006-05-11  Jim Meyering  <jim@meyering.net>
77067
77068         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77069         James Lemley.
77070
77071 2006-05-10  Simon Josefsson  <jas@extundo.com>
77072
77073         * lib/md4.c: Typo fix, update copyright years.
77074         (K1, K2): Don't use L because it turn computations into 64-bit on
77075         64-bit platforms.
77076
77077 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77078
77079         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77080         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77081         unwanted sign propagation, e.g., on hosts with 64-bit int.
77082         There still are some problems with reeelly weird theoretical hosts
77083         (e.g., 33-bit int) but it's not worth worrying about now.
77084         * lib/sha1.c (rol): Likewise.
77085         (K1, K2, K3, K4): Remove unnecessary L suffix.
77086
77087 2006-05-10  Bruno Haible  <bruno@clisp.org>
77088
77089         * lib/des.c: Cast to avoid warnings.
77090
77091 2006-05-09  Bruno Haible  <bruno@clisp.org>
77092
77093         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77094         (Depends-on): Depend also on xsize, stdarg.
77095         (configure.ac): Add gl_XVASPRINTF.
77096
77097 2006-05-09  Bruno Haible  <bruno@clisp.org>
77098
77099         * m4/xvasprintf.m4: New file.
77100
77101 2006-05-09  Bruno Haible  <bruno@clisp.org>
77102
77103         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77104         (EOVERFLOW): Define fallback value.
77105         (xstrcat): New function.
77106         (xvasprintf): Recognize the special case of a string concatenation.
77107
77108 2006-05-08  Eric Blake  <ebb9@byu.net>
77109
77110         * gnulib-tool (func_version): Base copyright year on CVS date.
77111         (func_emit_copyright_notice): New function.
77112         (func_emit_lib_Makefile_am): Use it.
77113         (func_emit_tests_Makefile_am): Likewise.
77114         (func_import): Likewise.
77115
77116 2006-05-08  Bruno Haible  <bruno@clisp.org>
77117
77118         * modules/stdarg: New file.
77119         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77120
77121 2006-05-08  Bruno Haible  <bruno@clisp.org>
77122
77123         * m4/stdarg.m4: New file, from GNU gettext.
77124
77125 2006-05-08  Bruno Haible  <bruno@clisp.org>
77126
77127         * config/srclist.txt (build-aux/config.rpath): different from latest
77128         release.
77129
77130 2006-05-08  Bruno Haible  <bruno@clisp.org>
77131
77132         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77133
77134 2006-05-05  Jim Meyering  <jim@meyering.net>
77135
77136         * m4/warning.m4: New file, derived from bison's file by the same name.
77137
77138 2006-05-03  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/stdint_.h: Shorter URL.
77141         * lib/inttypes.h: Likewise.
77142
77143 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77146
77147 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * lib/verify.h: Document the internals better.  Most of this change
77150         was written by Bruno Haible.
77151
77152 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * doc/verify.texi: New file, partly based on a proposal by
77155         Bruno Haible.
77156
77157 2006-05-02  Bruno Haible  <bruno@clisp.org>
77158
77159         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77160         test from here...
77161         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77162
77163 2006-04-29  Bruno Haible  <bruno@clisp.org>
77164
77165         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77166         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77167
77168 2006-04-29  Bruno Haible  <bruno@clisp.org>
77169
77170         * gnulib-tool: Make --update option actually work.
77171
77172 2006-04-29  Bruno Haible  <bruno@clisp.org>
77173
77174         * doc/gcd.texi: New file.
77175         * doc/gnulib.texi: Include it.
77176
77177 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * lib/getdate.y (get_date): When adding relative date, start with the
77180         initial time, not with the result of the first mktime call.
77181
77182 2006-04-25  Bruno Haible  <bruno@clisp.org>
77183
77184         * gnulib-tool (func_import): Output the include directives in three
77185         blocks, sorted separately.
77186         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77187
77188 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77189
77190         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77191         to define main with arguments, for C++.  Reported by Eric Blake.
77192         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77193         Prefer 'int main ()' to 'int main (void)', for C++.
77194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77196         for 'main', for C99 and C++.
77197
77198 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77201         Don't assume that exit status -1 is valid.
77202         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77203         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77204         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77205         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77206         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77207         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77208         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77209         functions can be used without declaring them, or that you can
77210         exit with status -1.
77211         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77212
77213 2006-04-24  Karl Berry  <karl@gnu.org>
77214
77215         * config/srclist.txt (longdouble.m4): sync lost.
77216
77217 2006-04-24  Eric Blake  <ebb9@byu.net>
77218
77219         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77220
77221 2006-04-24  Bruno Haible  <bruno@clisp.org>
77222
77223         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77224         poll() implementation in AIX.
77225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77226
77227 2006-04-24  Bruno Haible  <bruno@clisp.org>
77228
77229         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77230         assigned exactly once.
77231
77232 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77233             Bruno Haible  <bruno@clisp.org>
77234
77235         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77236         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77237         for AM_CPPFLAGS.
77238
77239 2006-04-23  Bruno Haible  <bruno@clisp.org>
77240
77241         * modules/copy-file: Depend on unistd.
77242         * modules/execute: Likewise.
77243         * modules/fatal-signal: Likewise.
77244         * modules/findprog: Likewise.
77245         * modules/mkdtemp : Likewise.
77246         * modules/pipe: Likewise.
77247         * modules/wait-process: Likewise.
77248
77249 2006-04-23  Bruno Haible  <bruno@clisp.org>
77250
77251         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77252         condition was already detected.
77253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77254
77255 2006-04-23  Bruno Haible  <bruno@clisp.org>
77256
77257         * lib/copy-file.c: Include <unistd.h> unconditionally.
77258         * lib/execute.c: Likewise.
77259         * lib/fatal-signal.c: Likewise.
77260         * lib/findprog.c: Likewise.
77261         * lib/mkdtemp.c: Likewise.
77262         * lib/pipe.h: Likewise.
77263         * lib/pipe.c: Likewise.
77264         * lib/wait-process.h: Likewise.
77265
77266 2006-04-23  Bruno Haible  <bruno@clisp.org>
77267
77268         * gnulib-tool (func_usage): Fix --import description. Document
77269         --update.
77270         (func_import): Create temporary file in a temporary directory, if
77271         --dry-run is specified. Silence errors from 'grep' when there are no
77272         m4 files in $m4dir.
77273         (func_create_testdir): Silence errors from 'grep' when there are no
77274         m4 files in $m4dir.
77275         Reported by Karl Berry <karl@freefriends.org>.
77276
77277 2006-04-20  Bruno Haible  <bruno@clisp.org>
77278
77279         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77280         one argument, so that the code will be portable to Autoconf 2.60.
77281         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77282         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77283         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77284
77285 2006-04-19  Derek Price  <derek@ximbiot.com>
77286             Eric Blake  <ebb9@byu.net>
77287
77288         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77289         rather than "/full/path.h".  Update comment to match.  Shorten &
77290         generalize m4_translit call via AS_TR_CPP.
77291
77292 2006-04-19  Derek Price  <derek@ximbiot.com>
77293             Eric Blake  <ebb9@byu.net>
77294
77295         * lib/inttypes.h: Correct grammar in comment.
77296
77297 2006-04-18  Derek Price  <derek@ximbiot.com>
77298             Paul Eggert  <eggert@cs.ucla.edu>
77299
77300         * modules/inttypes: New file.
77301         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77302
77303 2006-04-18  Derek Price  <derek@ximbiot.com>
77304             Paul Eggert  <eggert@cs.ucla.edu>
77305
77306         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77307         New files.
77308
77309 2006-04-18  Derek Price  <derek@ximbiot.com>
77310             Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * lib/inttypes.h: New file.
77313         * lib/strtoimax.c: Assume <inttypes.h>.
77314
77315 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77316
77317         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77318         isn't mounted.  Problem reported by Kir Kolyshkin.
77319
77320 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77321
77322         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77323         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77324         Derek R. Price.
77325         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77326         implementation.
77327
77328 2006-04-12  Eric Blake  <ebb9@byu.net>
77329
77330         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77331         is now done automatically by the corresponding Autoconf macro.
77332
77333 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77336         time_r.h.
77337
77338 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         Merge regex changes from libc, removing some of our
77341         POSIX-conformance changes that were rejected and redoing them in a
77342         less-intrusive way.
77343
77344         * lib/regcomp.c (re_compile_internal, init_dfa):
77345         Length arg is now size_t, not Idx.  All uses changed.
77346         (peek_token): Forward decl now says internal_function.
77347         (__re_error_msgid, __re_error_msgid_idx):
77348         Now static rather than extern with attribute_hidden.
77349         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77350         For some reason libc prefers K&R style defns for external functions.
77351         (regerror) [!defined _LIBC]: Likewise.
77352         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77353         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77354         (build_range_exp, build_collating_symbol):
77355         Use K&R-style defn.
77356         (re_compile_fastmap): Use '\0' to memset, not 0.
77357         (utf8_sb_map): Make the calculations more obvious.
77358         (init_dfa, parse_bracket_exp, build_charclass_op):
77359         Call calloc and cast result, as glibc does.
77360         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77361         (build_range_exp, build_collating_symbol):
77362         Now internal functions.
77363
77364         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77365
77366         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77367         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77368         Don't depend on VMS; depend on __VMS instead, for POSIX
77369         namespace cleanness.
77370         (regoff_t): Define to ssize_t, not long int.
77371
77372         Remove the REG_ macros named below.  Instead, make the old names
77373         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77374         __USE_GNU_REGEX.
77375         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77376         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77377         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77378         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77379         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77380         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77381         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77382         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77383         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77384         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77385         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77386         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77387         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77388         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77389         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77390         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77391         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77392         (REG_NREGS):
77393         Remove.  All uses replaced by the old RE_* names.
77394         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77395         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77396         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77397         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77398         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77399         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77400         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77401         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77402         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77403         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77404         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77405         Don't bother having these macros be independent of each others'
77406         values, since they no longer exist in the POSIX name space.
77407
77408         Rename the following member names back to their old names,
77409         unless !__USE_GNU_REGEX.  All uses changed back.
77410         (buffer): Renamed from re_buffer.
77411         (allocated): Renamed from re_allocated.
77412         (used): Renamed from re_used.
77413         (syntax): Renamed from re_syntax.
77414         (fastmap): Renamed from re_fastmap.
77415         (translate): Renamed from re_translate.
77416         (can_be_null): Renamed from re_can_be_null.
77417         (regs_allocated): Renamed from re_regs_allocated.
77418         (fastmap_accurate): Renamed from re_fastmap_accurate.
77419         (no_sub): Renamed from re_no_sub.
77420         (not_bol): Renamed from re_not_bol.
77421         (not_eol): Renamed from re_not_eol.
77422         (newline_anchor): Renamed from re_newline_anchor.
77423         (num_regs): Renamed from rm_num_regs.
77424         (start): Renamed from rm_start.
77425         (end): Renamed from rm_end.
77426
77427         (free_state): Move up a bit.
77428
77429         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77430         #define to be empty.
77431         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77432         when that is what is intended.
77433         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77434         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77435         (MAX): New macro.
77436         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77437         All uses changed back to re_malloc, etc.  It's now the caller's
77438         responsibility to check for overflow; all callers changed.
77439         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77440         (re_x2nrealloc): Remove.
77441         (free_state): Remove decl.
77442
77443         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77444         (re_set_registers, re_exec):
77445         Use K&R-style defn.
77446
77447         2006-01-31  Roland McGrath  <roland@redhat.com>
77448
77449         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77450         Reported by Mike Frysinger <vapier@gentoo.org>.
77451
77452         2006-01-15  Andreas Jaeger  <aj@suse.de>
77453
77454         [BZ #1950]
77455         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77456         build_wcs_upper_buffer change.
77457         (build_wcs_upper_buffer): Change return type.
77458
77459         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77460
77461         * lib/regex_internal.h: Include <stdint.h> if available.
77462
77463         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77464
77465         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77466
77467         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77468
77469         * lib/regcomp.c: Adjust for changed secondary hash function.
77470
77471         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77472
77473         * lib/regex.h: Pretty printing.
77474         Clean up namespace a bit.
77475
77476         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77477
77478         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77479         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77480
77481         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77482                     Ulrich Drepper  <drepper@redhat.com>
77483
77484         [BZ #1302]
77485         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77486         changed.
77487         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77488
77489         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77490
77491         [BZ #281]
77492         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77493         * lib/regcomp.c: Remove unnecessary uses of
77494         unsigned RE_TRANSLATE_TYPE.
77495         * lib/regex_internal.h: Likewise.
77496         * lib/regex_internal.c: Likewise.
77497         * lib/regexec.c: Likewise.
77498         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77499
77500         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77501
77502         * lib/regexec.c (find_recover_state): Remove unnecessary
77503         initialization.
77504         (transit_state_bkref): Make DFA a const pointer.
77505         (get_subexp): Likewise.
77506         (check_arrival): Likewise.
77507         (update_cur_sifted_state): Likewise.
77508         (re_search_internal): Likewise.
77509         (prune_impossible_nodes): Likewise.
77510         (acquire_init_state_context): Likewise.
77511         (proceed_next_node): Likewise.
77512         (set_regs): Likewise.
77513         (free_fail_stack_return): Likewise.
77514         (check_arrival_expand_ecl): Mark DFA parameter as const.
77515         (check_arrival_expand_ecl_sub): Likewise.
77516         (check_subexp_limits): Likewise.
77517         (sub_epsilon_src_nodes):  Likewise.
77518         (add_epsilon_src_nodes):  Likewise.
77519         (merge_state_array): Likewise.
77520         (update_regs): Likewise.
77521         (build_trtable): Likewise.
77522         (sift_states_backward): Mark MCTX parameter as const.
77523         (build_sifted_states): Likewise.
77524         (update_cur_sifted_state): Likewise.
77525         (sift_states_mkref): Likewise.
77526         (check_arrival_expand_ecl): Mark eclosure as const.
77527         (check_dst_limits_calc_pos_1): Likewise.
77528         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77529         pointer.
77530
77531         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77532
77533         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77534         (transit_state_sb): Likewise.
77535         (transit_state_mb): Likewise.
77536         (sift_states_iter_mb): Likewise.
77537         (check_arrival_add_next_nodes): Likewise.
77538         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77539         [_LIBC] (re_search_2_stub): Use mempcpy.
77540
77541         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77542         mbrtowc for very simple UTF-8 case.
77543
77544         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77545         a pointer-to-const.
77546         (re_acquire_state_context): Likewise.
77547         * lib/regex_internal.h: Adjust prototypes.
77548
77549         * lib/regex.c: Prevent using C++ compilers.
77550
77551         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77552         (re_acquire_state_context): Likewise.
77553
77554 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77555
77556         * modules/regex (Depends-on): Add ssize_t.
77557
77558 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77561         translation table.
77562
77563 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77566
77567 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77568             Bruno Haible  <bruno@clisp.org>
77569
77570         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77571         <sys/types.h> and <inttypes.h>.
77572
77573 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77574
77575         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77576         `__error_t_defined', so argp.h will not typedef the former.
77577
77578 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77579
77580         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77581         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77582         glibc names.  Even if glibc is changed to conform to POSIX, the
77583         traditional names will be available anyway, since regex depends on
77584         the extensions module.  Also, fix a longstanding typo in the
77585         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77586         reported by Emanuele Giaquinta.  Also, change sense of cached
77587         variable, so that the message makes sense.
77588
77589 2006-03-24  Simon Josefsson  <jas@extundo.com>
77590
77591         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77592         including some doc fixes.
77593         (base64_encode_alloc): Fix +1 bug on allocation failures.
77594
77595 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77596
77597         * lib/base64.c (base64_encode): Do not read past end of array with
77598         unsanitized input on systems with CHAR_BIT > 8.
77599
77600 2006-03-24  Eric Blake  <ebb9@byu.net>
77601
77602         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77603
77604 2006-03-22  Karl Berry  <karl@gnu.org>
77605
77606         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77607         * config/srclistvars.sh (COREUTILS): new var.
77608
77609 2006-03-17  Jim Meyering  <jim@meyering.net>
77610
77611         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77612         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77613
77614 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77617         no longer needs it.  Instead, check that regoff_t is as least
77618         as wide as ptrdiff_t.
77619
77620         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77621         so that our regex.h stays compatible with the installed regex.
77622         This is helpful for installers who configure --without-included-regex.
77623         Problem reported by Emanuele Giaquinta.
77624
77625 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77628         Typedef to long int, not to off_, as POSIX will likely change
77629         in that direction.
77630
77631 2006-03-15  Eric Blake  <ebb9@byu.net>
77632
77633         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77634
77635 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77636
77637         * lib/argp-help.c (validate_uparams): Fix typo
77638         * lib/argp-parse.c (argp_default_options): Consistently begin help
77639         messages with a lowercase letter.
77640
77641 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77644         overrun buffers and shouldn't be used (much as gets shouldn't be
77645         used).
77646         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77647
77648 2006-03-08  Simon Josefsson  <jas@extundo.com>
77649
77650         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77651         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77652
77653 2006-03-08  Simon Josefsson  <jas@extundo.com>
77654
77655         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77656         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77657
77658 2006-03-08  Simon Josefsson  <jas@extundo.com>
77659
77660         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77661         signal that configure disabled the device.
77662
77663 2006-03-08  Simon Josefsson  <jas@extundo.com>
77664
77665         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77666         languages.
77667
77668 2006-03-07  Simon Josefsson  <jas@extundo.com>
77669
77670         * modules/getopt (Depends-on): Add unistd.
77671
77672         * modules/unistd: New file.
77673
77674 2006-03-07  Simon Josefsson  <jas@extundo.com>
77675
77676         * modules/gc-random: New file.
77677
77678 2006-03-07  Simon Josefsson  <jas@extundo.com>
77679
77680         * m4/unistd_h.m4: New file.
77681
77682 2006-03-07  Simon Josefsson  <jas@extundo.com>
77683
77684         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77685         test to be side-effect free by storing the result in the cache
77686         variable gl_cv_lib_readline, and moving the assignment of
77687         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77688         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77689
77690 2006-03-07  Simon Josefsson  <jas@extundo.com>
77691
77692         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77693         error on missing devices (the functions will return an error).
77694
77695         * m4/gc.m4: Move random stuff to gc-random.m4
77696
77697 2006-03-07  Simon Josefsson  <jas@extundo.com>
77698
77699         * lib/unistd_.h: New file.
77700
77701 2006-03-07  Simon Josefsson  <jas@extundo.com>
77702
77703         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77704
77705 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77706
77707         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77708         Problem reported by Juan Manuel Guerrero.
77709
77710 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77711
77712         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77713         the unistd module.
77714         * lib/getlogin_r.c: Likewise.
77715         * lib/getlogin_r.h: Likewise.
77716         * lib/glob.c: Likewise.
77717         * lib/pagealign_alloc.c: Likewise.
77718         * lib/unistd_.h: Remove; no longer needed.
77719
77720 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77721
77722         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77723         Add unistd.
77724         * modules/c-stack (Depends-on): Add unistd.
77725         * modules/getlogin_r: Likewise.
77726         * modules/glob: Likewise.
77727         * modules/pagealign_alloc: Likewise.
77728         * modules/unistd (Files): Remove lib/unistd_.h.
77729         (EXTRA_DIST): Remove.
77730         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77731         need unistd_.h.
77732         (MOSTLYCLEANFILES): Remove unistd.h-t.
77733
77734 2006-03-03  Simon Josefsson  <jas@extundo.com>
77735
77736         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77737
77738 2006-03-03  Simon Josefsson  <jas@extundo.com>
77739
77740         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77741         libidn and bison.
77742
77743 2006-03-03  Simon Josefsson  <jas@extundo.com>
77744
77745         * build-aux/maint.mk: Add indent target.
77746
77747 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77748
77749         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77750         our replacement poll.h in any case, to avoid a differing
77751         declaration from a system header.  Seen on AIX.
77752
77753 2006-03-01  Simon Josefsson  <jas@extundo.com>
77754
77755         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77756         <kasal@ucw.cz>.
77757
77758 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * modules/gettime (Depends-on): Add extensions module.
77761         * modules/nanosleep (Depends-on): Likewise.
77762         * modules/settime (Depends-on): Likewise.
77763
77764 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77765
77766         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77767         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77768         pedantically.
77769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77770         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77771
77772         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77773         not "==".  Reported by Ralf Wildenhues.
77774
77775 2006-03-01  Karl Berry  <karl@gnu.org>
77776
77777         * doc/Copyright/request-*: new files, synced from gnuorg.
77778
77779 2006-03-01  Karl Berry  <karl@gnu.org>
77780
77781         * config/srclist.txt (Copyright/*): new entries.
77782
77783 2006-02-28  Simon Josefsson  <jas@extundo.com>
77784
77785         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77786
77787 2006-02-27  Simon Josefsson  <jas@extundo.com>
77788
77789         * lib/base64.h: Indent #define's.  From Jim Meyering
77790         <jim@meyering.net>.
77791
77792 2006-02-27  Jim Meyering  <jim@meyering.net>
77793
77794         Revert the change of 2006-02-24, so these files can continue
77795         to be sync'd from gettext.
77796         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77797         of `config.h'.
77798
77799 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77800
77801         * modules/intprops: New file.
77802         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77803         Add intprops.
77804         * modules/getloadavg (Files): Remove lib/intprops.h.
77805         (Depends-on): Add intprops.
77806         * modules/human: Likewise.
77807         * modules/inttostr: Likewise.
77808         * modules/openat: Likewise.
77809         * modules/sig2str: Likewise.
77810         * modules/userspec: Likewise.
77811         * modules/utimecmp: Likewise.
77812         * modules/xnanosleep: Likewise.
77813         * modules/xstrtol: Likewise.
77814
77815 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77816
77817         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77818         * modules/lock-tests (TESTS): Use $(EXEEXT).
77819         * modules/tls-tests: Likewise.
77820         * modules/argp-tests: Likewise.
77821         (check_PROGRAMS): New var, replacing...
77822         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77823
77824 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77825
77826         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77827         `config.h'.
77828
77829 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77832
77833 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77834
77835         Sync from coreutils.
77836         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77837         gl_CHDIR_SAFER.
77838
77839 2006-02-22  Jim Meyering  <jim@meyering.net>
77840
77841         Sync from coreutils.
77842         * m4/chdir-safer.m4: New file.
77843
77844 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77845
77846         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77847         AT_FDCWD exceeds INT_MAX.
77848         * lib/openat.h (AT_FDCWD): Likewise.
77849
77850 2006-02-17  Eric Blake  <address@hidden>
77851
77852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77853
77854 2006-02-16  Simon Josefsson  <jas@extundo.com>
77855
77856         * modules/getaddrinfo (Depends-on): Add sys_socket.
77857
77858 2006-02-15  Simon Josefsson  <jas@extundo.com>
77859
77860         * build-aux/maint.mk: Add dsyntax-check rule.
77861
77862 2006-02-15  Eric Blake  <ebb9@byu.net>
77863
77864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77865         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77866         'present but cannot compile' warnings on cygwin.
77867         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77868         use ws2tcpip.h if sys/socket.h works.
77869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77870         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77871
77872 2006-02-14  Simon Josefsson  <jas@extundo.com>
77873
77874         * modules/maintainer-makefile (Files): Rename.
77875
77876         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77877         and (the local) Makefile.cfg to maint-cfg.mk.
77878
77879         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77880         to the latter.
77881
77882         * modules/maintainer-makefile: New module.
77883
77884         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77885         severaly stripped to make it possible to build it up from scratch
77886         with reliable tests.
77887
77888         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77889         fixes to permit overriding the default actions when configure and
77890         makefile are not available.
77891
77892 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         Sync from coreutils.
77895         * modules/lstat (Depends-on): Don't depend on xalloc.
77896         (License): Change from GPL to LGPL, since this is now simply a
77897         replacement for a libc function.
77898
77899 2006-02-14  Jim Meyering  <jim@meyering.net>
77900
77901         Sync from coreutils.
77902
77903         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77904         failure on deficient systems, and simplify gnulib lgpl dependencies.
77905         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77906         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77907
77908         * lib/xalloc-die.c: Remove unused definition of N_.
77909
77910 2006-02-14  Jim Meyering  <jim@meyering.net>
77911
77912         Sync from coreutils.
77913         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77914         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77915         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77916         double-quote uses of that variable, to accommodate the rare case in
77917         which getmntent is available in none of the libraries checked.  This
77918         happens at least on FreeBSD 5.0.
77919
77920 2006-02-13  Simon Josefsson  <jas@extundo.com>
77921
77922         * gnulib-tool (Usage): Fix --import, from
77923         karl@freefriends.org (Karl Berry).
77924
77925 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77926
77927         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77928
77929 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77930
77931         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77932         "autoupdate" on 2005-12-12.
77933
77934 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * modules/closeout (Depends-on): Remove atexit.
77937
77938 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77939
77940         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77941         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77942
77943 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77944
77945         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77946         __EXTENSIONS__ if this causes compilation to fail.  Problem
77947         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77948         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77949
77950 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77953         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77955         All uses changed.
77956
77957 2006-01-26  Simon Josefsson  <jas@extundo.com>
77958
77959         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77960         prototype is visible on mingw32.
77961
77962         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77963         for mingw32.
77964
77965         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77966         mingw32).
77967
77968 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77971         attempt to open for write; this always fails, at least on POSIX
77972         hosts.  This reinstates the 2006-01-09 change, which was
77973         inadvertently removed.
77974
77975 2006-01-26  Bruno Haible  <bruno@clisp.org>
77976
77977         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77978         Reported by Paul Eggert.
77979
77980 2006-01-26  Bruno Haible  <bruno@clisp.org>
77981             Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * lib/stdbool_.h (_Bool)
77984         [(! (defined __cplusplus || defined __BEOS__)
77985           && !defined __GNUC__
77986           && !(defined __HP_cc || defined __xlc__
77987                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77988                || defined __sgi))]:
77989         #define to signed char in these cases too; this simplifies
77990         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77991         etc., separately) and makes it more conservative.
77992
77993 2006-01-25  Simon Josefsson  <jas@extundo.com>
77994
77995         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77996         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77997         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77998
77999 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78000
78001         * lib/argp-namefrob.h: Bugfix. Remove stray #
78002
78003 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78004
78005         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78006         so that we test the test.
78007         Check for yet another HP-UX cc bug involving *bool |= bool.
78008
78009 2006-01-25  Karl Berry  <karl@gnu.org>
78010
78011         * config/srclist.txt (vasnprintf.c): sync lost.
78012
78013 2006-01-25  Jim Meyering  <jim@meyering.net>
78014
78015         Sync from the stable (b5) branch of coreutils:
78016
78017         * lib/fts.c (fts_children): Don't let close() clobber errno from
78018         failed fchdir().
78019
78020         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78021         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78022         a dangling symlink.  That can also happen at least for ELOOP.
78023         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78024         FYI, this bug predates the inclusion of fts.c in coreutils.
78025
78026         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78027         in their own block, so pre-c99 compilers don't object.
78028
78029         Avoid the double-free (first in fts_read, second in fts_close) that
78030         would occur when an `active' directory is made inaccessible (e.g.,
78031         via chmod a-x) during a traversal.
78032         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78033         before returning.  Reproduce this failure by
78034         mkdir -p a/b; cd a; chmod a-x . b
78035         Reported by Stavros Passas.
78036
78037 2006-01-25  Jim Meyering  <jim@meyering.net>
78038
78039         * lib/fileblocks.c: Remove more useless parentheses.
78040         * lib/readutmp.h: Likewise.
78041
78042 2006-01-25  Bruno Haible  <bruno@clisp.org>
78043
78044         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78045         warnings.
78046         Reported by Paul Eggert.
78047
78048 2006-01-25  Bruno Haible  <bruno@clisp.org>
78049
78050         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78051         rid of a trap command. For Solaris sh.
78052         Reported by Mark D. Baushke <mdb@gnu.org>.
78053
78054 2006-01-24  Simon Josefsson  <jas@extundo.com>
78055
78056         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78057         Bruno.
78058
78059 2006-01-24  Karl Berry  <karl@gnu.org>
78060
78061         * config/srclist.txt (argp-namefrob.h): sync lost.
78062
78063 2006-01-24  Jim Meyering  <jim@meyering.net>
78064
78065         * modules/openat (Files): Add lib/intprops.h.
78066         From Mark D. Baushke.
78067
78068 2006-01-24  Jim Meyering  <jim@meyering.net>
78069
78070         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78071         Reported by Mark D. Baushke.
78072
78073 2006-01-24  Jim Meyering  <jim@meyering.net>
78074
78075         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78076
78077 2006-01-24  Bruno Haible  <bruno@clisp.org>
78078
78079         * modules/strnlen (Maintainer): Change from glibc to all.
78080
78081 2006-01-24  Bruno Haible  <bruno@clisp.org>
78082
78083         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78084         Patch by Paul Eggert.
78085
78086 2006-01-24  Bruno Haible  <bruno@clisp.org>
78087
78088         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78089         already has it.
78090         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78091         2005-11-26.
78092
78093         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78094         'signed char' to avoid problems with the built-in _Bool type.
78095         Reported by Paul Eggert on 2005-11-26.
78096
78097 2006-01-24  Bruno Haible  <bruno@clisp.org>
78098
78099         * gnulib-tool (func_import): Avoid constructing complicated sed
78100         expressions inside backquote.
78101         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78102
78103 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78104
78105         These changes imported from libc.
78106         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78107         test and two separate function calls.
78108         * lib/strndup.c (__strndup): Add libc_hidden_def.
78109
78110 2006-01-23  Simon Josefsson  <jas@extundo.com>
78111
78112         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78113         Remove the test_*_SOURCES variable: automake infers it by default.
78114         * modules/tls-tests: Likewise.
78115
78116 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         Work around porting bugs reported by Dieter in
78119         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78120         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78121         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78122         Include "getopt.h" first, to check interface.
78123         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78124         !HAVE_DECL_GETENV.
78125         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78126         (__strndup): Revert to K&R-style function dfns, the glibc style.
78127         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78128         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78129         Include strnlen.h first, to get prototype properly.
78130         (strnlen): Renamed from __strnlen.
78131         Remove weak alias.
78132
78133 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78136
78137 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78138
78139         * config/srclist.txt: Adjust to reflect glibc reorganization.
78140         This affects only comments.
78141
78142 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78143
78144          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78145          Reported by Bruce Korb <bkorb@gnu.org>.
78146
78147 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78150         to pacify gcc -Wswitch-default.
78151
78152 2006-01-22  Bruno Haible  <bruno@clisp.org>
78153
78154         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78155         temporary buffer for sprintf, take into account the precision also
78156         for 'd', 'i', 'u', 'o', 'x', 'X'.
78157
78158 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78159
78160         * modules/argp-tests: New module
78161         * tests/test-argp.c: New file
78162         * tests/test-argp-2.sh: New file
78163
78164 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78165
78166         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78167         (__argp_base_name): Removed
78168         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78169         typo.
78170         (__argp_base_name): Provide macro definition or extern declaration
78171         depending on the configuration
78172
78173 2006-01-20  Simon Josefsson  <jas@extundo.com>
78174
78175         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78176
78177 2006-01-20  Simon Josefsson  <jas@extundo.com>
78178
78179         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78180
78181 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78184         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78185         Suggested by Bruno Haible.
78186
78187 2006-01-20  Karl Berry  <karl@gnu.org>
78188
78189         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78190         until changes propagate, I guess.
78191
78192 2006-01-19  Simon Josefsson  <jas@extundo.com>
78193
78194         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78195
78196 2006-01-19  Simon Josefsson  <jas@extundo.com>
78197
78198         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78199
78200 2006-01-19  Simon Josefsson  <jas@extundo.com>
78201
78202         * gnulib-tool: Set check_PROGRAMS.
78203
78204         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78205         modules/des-tests, modules/gc-arcfour-tests,
78206         modules/gc-arctwo-tests, modules/gc-des-tests,
78207         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78208         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78209         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78210         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78211         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78212         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78213         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78214         test_*_SOURCES.
78215
78216 2006-01-18  Simon Josefsson  <jas@extundo.com>
78217
78218         * modules/socklen (Depends-on): Depend on sys_socket.
78219
78220 2006-01-18  Simon Josefsson  <jas@extundo.com>
78221
78222         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78223         modules/des-tests, modules/gc-arcfour-tests,
78224         modules/gc-arctwo-tests, modules/gc-des-tests,
78225         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78226         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78227         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78228         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78229         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78230         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78231         $(EXEEXT) to automake TESTS variable, for mingw32.
78232
78233 2006-01-17  Simon Josefsson  <jas@extundo.com>
78234
78235         * modules/socklen (Include): Need sys/socket.h.
78236
78237 2006-01-17  Bruno Haible  <bruno@clisp.org>
78238
78239         * modules/ssize_t (Include): Add <sys/types.h>.
78240
78241 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78242
78243         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78244         it's not portable and it doesn't work with cross-compiles.
78245         Problem reported by Bruno Haible.  Fix missing-$ typo in
78246         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78247         -zignore from being used with Sun's C compiler.
78248
78249 2006-01-12  Simon Josefsson  <jas@extundo.com>
78250
78251         * lib/base64.c: Fix warning, reported by Bruno Haible
78252         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78253
78254 2006-01-12  Bruno Haible  <bruno@clisp.org>
78255
78256         * modules/ldd: New file.
78257         * build-aux/ldd.sh.in: New file.
78258         * MODULES.html.sh (Support for building libraries and executables): Add
78259         ldd.
78260
78261 2006-01-12  Bruno Haible  <bruno@clisp.org>
78262
78263         * m4/ldd.m4: New file.
78264
78265 2006-01-12  Bruno Haible  <bruno@clisp.org>
78266
78267         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78268         endless loop while replacing $auxdir with build-aux.
78269
78270 2006-01-11  Simon Josefsson  <jas@extundo.com>
78271
78272         * lib/stdint_.h (SIZE_MAX): Add missing (.
78273
78274 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78275
78276         Sync from coreutils.
78277         * lib/md5.c: Fix commentary typos.
78278         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78279         * lib/md5.h (__attribute__): Remove; unused.
78280         * lib/sha1.c: Fix commentary to match md5 better.
78281         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78282         so that we don't need to worry about alignment.  All uses changed.
78283         This merges the 2005-10-28 md5 change into sha1.
78284
78285 2006-01-11  Jim Meyering  <jim@meyering.net>
78286
78287         Sync from coreutils.
78288         * lib/md5.c (OP): Fix spacing.
78289
78290 2006-01-11  Bruno Haible  <bruno@clisp.org>
78291
78292         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78293         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78294         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78295
78296 2006-01-11  Bruno Haible  <bruno@clisp.org>
78297
78298         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78299         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78300         the "early" section as well.
78301
78302 2006-01-11  Bruno Haible  <bruno@clisp.org>
78303
78304         Avoid "ar: no archive members specified" error on MacOS X.
78305         * gnulib-tool (func_modules_add_dummy): New function.
78306         (func_import, func_create_testdir): Invoke it.
78307
78308 2006-01-11  Bruno Haible  <bruno@clisp.org>
78309
78310         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78311         with $auxdir in AC_CONFIG_FILES statements.
78312
78313 2006-01-11  Bruno Haible  <bruno@clisp.org>
78314
78315         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78316         Initialize also noinst_HEADERS to empty.
78317
78318 2006-01-11  Bruno Haible  <bruno@clisp.org>
78319
78320         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78321         variables.
78322         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78323         autoreconf.
78324
78325 2006-01-11  Bruno Haible  <bruno@clisp.org>
78326
78327         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78328         overridable by the user.
78329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78330
78331 2006-01-10  Simon Josefsson  <jas@extundo.com>
78332
78333         * modules/sys_socket: New file.
78334
78335 2006-01-10  Simon Josefsson  <jas@extundo.com>
78336
78337         * m4/sys_socket_h.m4: New file.
78338
78339 2006-01-10  Simon Josefsson  <jas@extundo.com>
78340
78341         * lib/socket_.h: New file.
78342
78343 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * modules/readutmp (Maintainer): Add myself.
78346
78347 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78350         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78351         People who are still concerned with buggy memcmp implementations
78352         can invoke gl_FUNC_MEMCMP themselves.
78353
78354 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * lib/regex_internal.h (BITSET_WORD_BITS):
78357         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78358         preprocessor mishandles large unsigned values as if they were signed.
78359         Problem reported by Claudio Fontana in
78360         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78361
78362 2006-01-10  Jim Meyering  <jim@meyering.net>
78363
78364         Avoid the double-free (first in fts_read, second in fts_close) that
78365         would occur when an `active' directory is made inaccessible (e.g.,
78366         via chmod a-x) during a traversal.
78367         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78368         before returning.  Reproduce this failure by
78369         mkdir -p a/b; cd a; chmod a-x . b
78370         Reported by Stavros Passas.
78371
78372         Sync from coreutils.
78373         * lib/sha1.c: Tweak grammar in a comment.
78374
78375 2006-01-10  Jim Meyering  <jim@meyering.net>
78376
78377         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78378         Patch by Joerg Sonnenberger.
78379
78380 2006-01-10  Bruno Haible  <bruno@clisp.org>
78381
78382         * modules/readutmp: Depend on module free.
78383         * modules/strtok_r: Depend on module restrict.
78384
78385 2006-01-10  Bruno Haible  <bruno@clisp.org>
78386
78387         * modules/gettext (configure.ac): Add an invocation of
78388         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78389
78390 2006-01-10  Bruno Haible  <bruno@clisp.org>
78391
78392         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78393         Reported by Werner Lemberg <wl@gnu.org>.
78394
78395 2006-01-10  Bruno Haible  <bruno@clisp.org>
78396
78397         * lib/localcharset.c: Update from GNU gettext.
78398
78399 2006-01-10  Bruno Haible  <bruno@clisp.org>
78400
78401         * lib/argp.h (__const): Remove macro. Use const instead.
78402         * lib/argp-fmtstream.h (__const): Likewise.
78403         * lib/glob_.h (__const): Remove macro.
78404         * lib/glob-libc.h: Use const instead of __const.
78405
78406 2006-01-10  Bruno Haible  <bruno@clisp.org>
78407
78408         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78409         variable.
78410         Needed to avoid an automake error regarding the 'gettext' module.
78411
78412 2006-01-09  Simon Josefsson  <jas@extundo.com>
78413
78414         * modules/inet_ntop (Depends-on): Add restrict.
78415
78416 2006-01-09  Simon Josefsson  <jas@extundo.com>
78417
78418         * modules/gc-rijndael-tests (License): Put under LGPL.
78419
78420         * modules/gc-des-tests (License): Likewise.
78421
78422         * modules/gc-arcfour-tests (License): Likewise.
78423
78424         * modules/gc-arctwo-tests (License): Likewise.
78425
78426         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78427
78428         * modules/gc-hmac-sha1-tests (Files): Likewise.
78429
78430         * modules/gc-hmac-md5-tests (License): Likewise.
78431
78432         * modules/gc-sha1-tests (License): Likewise.
78433
78434         * modules/gc-md5-tests (License): Likewise.
78435
78436         * modules/gc-md4-tests (License): Likewise.
78437
78438         * modules/gc-md2-tests (License): Likewise.
78439
78440         * modules/gc-tests (License): Likewise.
78441
78442         * modules/des-tests (License): Likewise.
78443
78444         * modules/md4-tests (License): Likewise.
78445
78446         * modules/md2-tests (License): Likewise.
78447
78448 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         Sync from coreutils:
78451
78452         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78453         * modules/lib-ignore: New file.
78454         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78455         chdir-safer.m4, lchmod.m4.
78456         * modules/openat: Add mkdirat.c, openat-priv.h.
78457
78458 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         Sync from coreutils.
78461         * m4/lib-ignore.m4: New file.
78462         * m4/lchmod.m4: New file.
78463
78464 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78465
78466         Sync from coreutils.
78467         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78468         for write access: POSIX says that must fail.
78469         * lib/fts.c (diropen): Likewise.
78470         * lib/save-cwd.c (save_cwd): Likewise.
78471         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78472         well, for minor improvements on hosts that lack O_DIRECTORY.
78473         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78474         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78475         Fall back on chown if open failed with EACCES.
78476
78477         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78478         Report an error at compile-time if only a 1-second nominal clock
78479         resolution is found.
78480
78481         * lib/lchmod.h: New file.
78482         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78483         (make_dir_parents): Use lchown rather than chown, and
78484         lchmod rather than chmod.
78485
78486         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78487         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78488         "proc" reported by n0dalus.
78489
78490         * lib/mountlist.c: Include <limits.h>.
78491         (dev_from_mount_options)
78492         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78493         New function.  It no longer assumes "dev=" has the System V meaning
78494         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78495         (read_file_system_list)
78496         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78497         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78498         dev= in that case.
78499
78500         * lib/posixtm.h (PDS_PRE_2000): New macro.
78501         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78502         allow_century.  All usages changed.  Reject dates outside the range
78503         1969-1999 if PDS_PRE_2000 is used.
78504
78505 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         Sync from coreutils.
78508         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78509         (Time of day items): Mention the possibility of leap seconds.
78510         Problem reported by Dr. David Alan Gilbert.
78511
78512 2006-01-09  Jim Meyering  <jim@meyering.net>
78513
78514         Sync from coreutils.
78515
78516         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78517
78518         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78519
78520         * lib/modechange.c (mode_compile): Reject an invalid mode string
78521         that starts with an octal digit.  From Andreas Gruenbacher.
78522
78523         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78524         and dup to open_safer and dup_safer, respectively.
78525         (openat_permissive): Fix typo in comment.
78526
78527         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78528         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78529         (_): Remove; no longer needed.
78530         (openat): Renamed from rpl_openat; no need for rpl_openat
78531         since openat.h renames openat for us.
78532         Replace most of the body with a call to openat_permissive,
78533         to avoid duplicate code.
78534         Port to (probably hypothetical) environments were mode_t is
78535         wider than int.
78536         (openat_permissive): Require mode arg, so that we can check
78537         types better.  Put it just after flags.  Change cwd failure
78538         indicator from pointer-to-bool to pointer-to-errno-value.
78539         All callers changed.
78540         Invoke openat_save_fail and/or openat_restore_fail if
78541         cwd_errno is null, so that openat can call us.
78542         (openat_permissive, fdopendir, fstatat, unlinkat):
78543         Simplify errno handling to avoid some duplicate code,
78544         as it's OK to set errno on success.
78545         * lib/openat.h: Revamp code so that function macros depend on
78546         __OPENAT_PREFIX only, not also on AT_FDCWD.
78547         (openat_ro): Remove.  Caller changed to use openat_permissive.
78548         (openat_permissive): Now a macro, if not a function.
78549         (openat_restore_fail, openat_save_fail): Now always functions,
78550         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78551
78552         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78553         and openat.c.
78554         * lib/mkdirat.c: Include openat-priv.h.
78555         Remove definitions of macros defined therein.
78556         * lib/openat.c: Likewise.
78557
78558         * lib/mkdirat.c (mkdirat): New file and function.
78559         * lib/openat.h (mkdirat): Declare.
78560
78561         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78562
78563         * lib/openat.h (openat_permissive): Declare.
78564         (openat_ro): Define.
78565
78566         * lib/openat.c (EXPECTED_ERRNO): New macro.
78567         (openat_permissive): New function -- used in remove.c rewrite.
78568         (all functions): Set errno just before returning, only if there
78569         was an actual failure.
78570         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78571
78572         Emulate openat-family functions using Linux's procfs, if possible.
78573         Idea and some code based on Ulrich Drepper's glibc changes.
78574
78575         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78576         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78577         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78578         before falling back on save_cwd and restore_cwd.
78579         (fdopendir, fstatat, unlinkat): Likewise.
78580
78581         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78582         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78583
78584         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78585         as second argument to va_arg.  Otherwise, some versions of gcc
78586         warn that `if this code is reached, the program will abort'.
78587
78588 2006-01-09  Jim Meyering  <jim@meyering.net>
78589
78590         Sync from coreutils.
78591         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78592         Require openat-priv.h.
78593
78594 2006-01-09  Bruno Haible  <bruno@clisp.org>
78595
78596         * modules/strnlen (Include): Use strnlen.h.
78597
78598 2006-01-09  Bruno Haible  <bruno@clisp.org>
78599
78600         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78601
78602 2006-01-09  Bruno Haible  <bruno@clisp.org>
78603
78604         * lib/sysexit_.h (EX_OK): New macro.
78605         Suggested by Martin Lambers <marlam@marlam.de>.
78606
78607 2006-01-09  Bruno Haible  <bruno@clisp.org>
78608
78609         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78610         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78611
78612 2006-01-09  Bruno Haible  <bruno@clisp.org>
78613
78614         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78615         numbers.
78616
78617 2006-01-09  Bruno Haible  <bruno@clisp.org>
78618
78619         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78620         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78621         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78622         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78623
78624 2006-01-09  Bruno Haible  <bruno@clisp.org>
78625
78626         * build-aux/javacomp.sh.in: New file, moved from lib/.
78627         * modules/javacomp-script (Files): Update.
78628         (configure.ac): Add AC_CONFIG_FILES invocation.
78629         (EXTRA_DIST): Remove variable.
78630
78631         * build-aux/javaexec.sh.in: New file, moved from lib/.
78632         * modules/javaexec (Files): Update.
78633         (configure.ac): Add AC_CONFIG_FILES invocation.
78634         (EXTRA_DIST): Remove javaexec.sh.in.
78635
78636         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78637         * modules/csharpcomp-script (Files): Update.
78638         (configure.ac): Add AC_CONFIG_FILES invocation.
78639         (EXTRA_DIST): Remove variable.
78640
78641         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78642         * modules/csharpexec (Files): Update.
78643         (configure.ac): Add AC_CONFIG_FILES invocation.
78644         (EXTRA_DIST): Remove csharpexec.sh.in.
78645
78646 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78647
78648         Sync from coreutils.
78649
78650         Add POSIX ACL support
78651         * lib/acl.h (copy_acl, set_acl): Add declarations.
78652         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78653         systems other than Linux.
78654         (chmod_or_fchmod): New function: use fchmod when possible,
78655         and chmod otherwise.
78656         (file_has_acl): Add a POSIX ACL implementation, with a
78657         Linux-specific subcase.
78658         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78659         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78660         acls are unsupported.
78661         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78662         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78663         are unsupported.
78664
78665 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78666
78667         Sync from coreutils.
78668         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78669
78670 2006-01-07  Bruno Haible  <bruno@clisp.org>
78671
78672         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78673         gl_EARLY.
78674
78675 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78678         Problem reported for Mingw by Mark Junker.
78679
78680 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78681
78682         * README: Gnulib normally doesn't generate a tarball.
78683
78684 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78687         long int, not int, for nanosecond counts, so that people who are
78688         used to POSIX struct timespec won't be surprised.  Reported by Jim
78689         Meyering.
78690
78691 2005-12-28  Bruno Haible  <bruno@clisp.org>
78692
78693         * build-aux/config.rpath: Update from GNU gettext.
78694
78695 2005-12-16  Jim Meyering  <jim@meyering.net>
78696
78697         * modules/fprintftime: New module.
78698         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78699
78700 2005-12-16  Jim Meyering  <jim@meyering.net>
78701
78702         * m4/fprintftime.m4: New file.
78703
78704 2005-12-16  Jim Meyering  <jim@meyering.net>
78705
78706         * lib/fprintftime.c, lib/fprintftime.h: New files.
78707
78708 2005-12-15  Simon Josefsson  <jas@extundo.com>
78709
78710         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78711         new m4/socklen.m4.
78712
78713 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78714
78715         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78716         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78717
78718 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78719
78720         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78721         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78722         struct uparams is valid. Fall back to the default values if it is
78723         not.
78724
78725 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78726
78727         * modules/argp (Files): Add argp-pin.c
78728         (Depends-on): dirname
78729         (lib_SOURCES): Add argp-pin.c
78730
78731 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78732
78733         * m4/argp.m4:  Check if program_invocation_name and
78734         program_invocation_short_name are declared and define appropriate
78735         macros if they are not.
78736
78737 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78738
78739         * lib/argp-help.c (__argp_base_name): New function
78740         (__argp_short_program_name): Rewrite using __argp_base_name
78741         * lib/argp-namefrob.h: Define program_invocation_name and
78742         program_invocation_short_name if requested
78743         (__argp_base_name): Add prototype
78744         * lib/argp-parse.c (argp_def): Use gettext wrappers
78745         (argp_default_parser): Use __argp_base_name
78746         * lib/argp-pin.c: New file. Defines program_invocation_name and
78747         program_invocation_short_name on systems that lack them.
78748
78749 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78750
78751         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78752         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78753         porting problem reported by Georg Schwarz in
78754         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78755
78756 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78759         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78760         porting problem reported by Georg Schwarz in
78761         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78762
78763 2005-12-05  Bruno Haible  <bruno@clisp.org>
78764
78765         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78766         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78767         Reported by Mark Junker <mjscod@gmx.de>.
78768
78769 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78772         Use implementation from Albert Chin, with some
78773         comments/corrections by Stepan Kasal and myself.
78774
78775 2005-12-02  Bruno Haible  <bruno@clisp.org>
78776
78777         * gnulib-tool (func_import): Accept GPLed build tool modules when
78778         --lgpl is given.
78779         * modules/csharpcomp-script: New file.
78780         * modules/csharpcomp: Depend on it.
78781         * modules/javacomp-script: New file.
78782         * modules/javacomp: Depend on it.
78783         Suggested by Simon Josefsson.
78784
78785 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78788         statement, to work around an HP-UX 10.20 compiler bug reported by
78789         Peter O'Gorman.
78790
78791 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * modules/savedir (Depends-on): Add openat.
78794
78795 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78796
78797         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78798         (uintmax_t) [defined uintmax_t]: Do not declare.
78799         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78800         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78801         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78802         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78803         sake of portability to weird hosts that C allows (though we don't
78804         know of any practical examples).
78805
78806         * lib/savedir.h (fdsavedir): New decl.
78807         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78808         contains most of the former guts of savedir.
78809         (savedir): Use savedirstream.
78810         Include "openat.h".
78811
78812 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78813
78814         * modules/obstack (Files): Add m4/ulonglong.m4.
78815         Problem reported by Davide Angelocola.
78816
78817 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78818
78819         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78820         coreutils no longer futzes with rounding modes.
78821
78822 2005-11-14  Jim Meyering  <jim@meyering.net>
78823
78824         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78825         replacement of mkstemp.
78826
78827 2005-11-10  Simon Josefsson  <jas@extundo.com>
78828
78829         * lib/readline.c: Remove EOL.
78830
78831 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * modules/gethrxtime (Depends-on): Add gettime.
78834
78835 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78836
78837         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78838         or gettimeofday; no longer needed.
78839
78840 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78843         time business.
78844         (gethrxtime) [! (HAVE_NANOUPTIME
78845         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78846         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78847         our own approximation.
78848
78849 2005-11-08  Eric Blake  <ebb9@byu.net>
78850
78851         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78852
78853 2005-11-08  Eric Blake  <ebb9@byu.net>
78854
78855         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78856
78857 2005-11-04  Bruno Haible  <bruno@clisp.org>
78858
78859         * gnulib-tool: Implement --update mode.
78860
78861 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78862
78863         Fix porting problem reported by Theodoros V. Kalamatianos.
78864         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78865         Don't assume that futimes failing means we must fail.
78866
78867 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78870         variables to suggest the intended function of the PATH_MAX check.
78871
78872 2005-10-30  Kean Johnston  <jkj@sco.com>
78873
78874         Trivial changes to support SCO systems.
78875         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78876         as PATH_MAX.
78877         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78878         where __ptr is null when no I/O is pending.
78879
78880 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78883         leave errno alone.  Problem reported by Dmitry V. Levin.
78884
78885 2005-10-28  Simon Josefsson  <jas@extundo.com>
78886
78887         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78888         Test more.
78889
78890         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78891
78892         * modules/md2, modules/md2-tests: New files.
78893
78894 2005-10-28  Simon Josefsson  <jas@extundo.com>
78895
78896         * m4/inet_ntop.m4: More tests.
78897
78898         * m4/gc-md2.m4, md2.m4: New file.
78899
78900 2005-10-28  Simon Josefsson  <jas@extundo.com>
78901
78902         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78903         "restrict" keywords, as per POSIX.  Protect the function
78904         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78905         Don't use K&R prototypes.  Check the sprintf return values.
78906         Re-define EAFNOSUPPORT if not present.  Indent.
78907
78908         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78909         suggested by Bruno Haible <bruno@clisp.org>.
78910
78911         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78912
78913         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78914
78915         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78916         libgcrypt).
78917
78918         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78919
78920         * lib/md2.h, lib/md2.c: New files.
78921
78922 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78923
78924         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78925         errno alone.  Problem reported by Frederic Jolliton.
78926
78927 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * modules/verify (License): Change from GPL to LGPL.  This is a
78930         tiny module and there are apparently near-equivalents that are
78931         under the BSD license.
78932
78933 2005-10-24  Simon Josefsson  <jas@extundo.com>
78934
78935         * modules/sha1: Relicense to LGPL.
78936
78937 2005-10-24  Simon Josefsson  <jas@extundo.com>
78938
78939         * lib/md4.h: Shrink buffer size, now that we changed the type.
78940
78941 2005-10-23  Simon Josefsson  <jas@extundo.com>
78942
78943         * gnulib-tool (func_import): Fix --tests-base.
78944
78945 2005-10-22  Simon Josefsson  <jas@extundo.com>
78946
78947         * modules/arcfour (Depends-on): Need stdint.
78948
78949 2005-10-22  Simon Josefsson  <jas@extundo.com>
78950
78951         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78952         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78953
78954 2005-10-22  Simon Josefsson  <jas@extundo.com>
78955
78956         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78957         suggested by Bruno Haible <bruno@clisp.org>.
78958
78959 2005-10-22  Simon Josefsson  <jas@extundo.com>
78960
78961         * lib/crc.h: Include stddef.h, for size_t.
78962
78963 2005-10-22  Simon Josefsson  <jas@extundo.com>
78964
78965         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78966         arcfour_context struct (simplify test vector testing in GNU
78967         Shishi).
78968
78969 2005-10-21  Simon Josefsson  <jas@extundo.com>
78970
78971         * modules/des, modules/des-tests: New files.
78972
78973         * modules/gc-des, modules/gc-des-tests: New files.
78974
78975         * tests/test-des.c, tests/test-gc-des.c: New file.
78976
78977 2005-10-21  Simon Josefsson  <jas@extundo.com>
78978
78979         * modules/arctwo, modules/arctwo-tests: New files.
78980
78981         * tests/test-arctwo.c: New file.
78982
78983         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78984
78985         * tests/test-gc-arctwo.c: New file.
78986
78987 2005-10-21  Simon Josefsson  <jas@extundo.com>
78988
78989         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78990         Bruno Haible <bruno@clisp.org>.
78991
78992         * m4/gc-des.m4: New file.
78993
78994 2005-10-21  Simon Josefsson  <jas@extundo.com>
78995
78996         * m4/arctwo.m4: New file.
78997
78998         * m4/gc-arctwo.m4: New file.
78999
79000 2005-10-21  Simon Josefsson  <jas@extundo.com>
79001
79002         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79003         block.
79004
79005 2005-10-21  Simon Josefsson  <jas@extundo.com>
79006
79007         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79008         <bruno@clisp.org>.
79009
79010         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79011
79012         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79013         Bruno Haible <bruno@clisp.org>.
79014
79015         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79016         <bruno@clisp.org>.
79017
79018 2005-10-21  Simon Josefsson  <jas@extundo.com>
79019
79020         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79021
79022 2005-10-21  Simon Josefsson  <jas@extundo.com>
79023
79024         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79025
79026 2005-10-21  Simon Josefsson  <jas@extundo.com>
79027
79028         * lib/des.h, lib/des.c: New files.
79029
79030         * lib/gc-gnulib.c: Support DES.c
79031
79032 2005-10-21  Simon Josefsson  <jas@extundo.com>
79033
79034         * lib/arctwo.h, lib/arctwo.c: New files.
79035
79036         * lib/gc-gnulib.c: Support ARCTWO.
79037
79038 2005-10-21  Simon Josefsson  <jas@extundo.com>
79039
79040         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79041         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79042
79043 2005-10-21  Simon Josefsson  <jas@extundo.com>
79044
79045         * gnulib-tool (func_import, func_create_testdir): Define automake
79046         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79047         Makefile.am snippet),
79048         suggested by Bruno Haible <bruno@clisp.org>.
79049
79050         * modules/gc (Makefile.am): Use it.
79051
79052 2005-10-21  Bruno Haible  <bruno@clisp.org>
79053
79054         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79055         patch.
79056
79057 2005-10-19  Simon Josefsson  <jas@extundo.com>
79058
79059         * tests/test-gc-rijndael.c: New file.
79060
79061         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79062
79063 2005-10-19  Simon Josefsson  <jas@extundo.com>
79064
79065         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79066         interface too.
79067
79068 2005-10-19  Simon Josefsson  <jas@extundo.com>
79069
79070         * tests/test-gc-arcfour.c: New file.
79071
79072         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79073
79074 2005-10-19  Simon Josefsson  <jas@extundo.com>
79075
79076         * modules/gc-md4, modules/gc-md4-tests: New file.
79077
79078         * tests/test-gc-md4.c: New file.
79079
79080 2005-10-19  Simon Josefsson  <jas@extundo.com>
79081
79082         * m4/gc-md4.m4: New file.
79083
79084 2005-10-19  Simon Josefsson  <jas@extundo.com>
79085
79086         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79087         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79088         <kasal@ucw.cz>.
79089
79090 2005-10-19  Simon Josefsson  <jas@extundo.com>
79091
79092         * m4/gc-arcfour.m4: New file.
79093
79094         * m4/gc-rijndael.m4: New file.
79095
79096 2005-10-19  Simon Josefsson  <jas@extundo.com>
79097
79098         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79099
79100 2005-10-19  Simon Josefsson  <jas@extundo.com>
79101
79102         * lib/gc-gnulib.c: Support ARCFOUR.
79103
79104 2005-10-19  Simon Josefsson  <jas@extundo.com>
79105
79106         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79107         support.
79108
79109         * lib/gc.h: Add ECB enum type.
79110
79111         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79112
79113 2005-10-18  Simon Josefsson  <jas@extundo.com>
79114
79115         * tests/test-md5.c: New file.
79116
79117         * modules/md5-tests: New file.
79118
79119 2005-10-18  Simon Josefsson  <jas@extundo.com>
79120
79121         * tests/test-md4.c: New file.
79122
79123         * modules/md4, modules/md4-tests: New files.
79124
79125 2005-10-18  Simon Josefsson  <jas@extundo.com>
79126
79127         * m4/md4.m4: New file.
79128
79129 2005-10-18  Simon Josefsson  <jas@extundo.com>
79130
79131         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79132
79133 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79134
79135         * gnulib-tool (func_create_testdir): Omit the second check whether
79136         BUILT_SOURCES in nonempty.
79137
79138 2005-10-17  Simon Josefsson  <jas@extundo.com>
79139
79140         * tests/test-rijndael.c: New file.
79141
79142 2005-10-17  Simon Josefsson  <jas@extundo.com>
79143
79144         * modules/sha1: Depend on stdint instead of md5.
79145
79146         * modules/md5: Depend on stdint, remove uint32_t.
79147
79148 2005-10-17  Simon Josefsson  <jas@extundo.com>
79149
79150         * modules/gc-sha1-tests: New file.
79151
79152         * tests/test-gc-sha1.c: New file.
79153
79154 2005-10-17  Simon Josefsson  <jas@extundo.com>
79155
79156         * m4/md5.m4: Remove call to uint32_t.m4.
79157
79158 2005-10-17  Simon Josefsson  <jas@extundo.com>
79159
79160         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79161
79162         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79163         md5.h.
79164
79165         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79166
79167         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79168
79169 2005-10-17  Simon Josefsson  <jas@extundo.com>
79170
79171         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79172
79173 2005-10-17  Simon Josefsson  <jas@extundo.com>
79174
79175         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79176
79177 2005-10-17  Simon Josefsson  <jas@extundo.com>
79178
79179         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79180
79181         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79182
79183 2005-10-17  Bruno Haible  <bruno@clisp.org>
79184
79185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79186         that it can also be used in a test.
79187
79188 2005-10-16  Bruno Haible  <bruno@clisp.org>
79189
79190         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79191         TESTS_ENVIRONMENT, so that individual tests can augment it.
79192
79193         * gnulib-tool (func_create_testdir): Use an intermediate target for
79194         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79195         macros, like $(ALLOCA_H), which cannot be passed through the command
79196         line.
79197
79198 2005-10-15  Simon Josefsson  <jas@extundo.com>
79199
79200         * modules/rijndael-tests: New file.
79201
79202         * modules/rijndael: New file.
79203
79204 2005-10-15  Simon Josefsson  <jas@extundo.com>
79205
79206         * m4/rijndael.m4: New file.
79207
79208 2005-10-15  Simon Josefsson  <jas@extundo.com>
79209
79210         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79211
79212         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79213
79214 2005-10-14  Simon Josefsson  <jas@extundo.com>
79215
79216         * tests/test-arcfour.c: New file.
79217
79218         * modules/arcfour, modules/arcfour-tests: New files.
79219
79220 2005-10-14  Simon Josefsson  <jas@extundo.com>
79221
79222         * m4/arcfour.m4: New file.
79223
79224 2005-10-14  Simon Josefsson  <jas@extundo.com>
79225
79226         * lib/arcfour.h, lib/arcfour.c: New files.
79227
79228 2005-10-14  Roland McGrath  <roland@redhat.com>
79229
79230         Import from libc.  [BZ #1331]
79231         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79232         macro argument.
79233         Reported by Matej Vela <vela@debian.org>.
79234
79235 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79238         include <wchar.h>; no longer needed.
79239
79240 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79243
79244 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79245         and  Ulrich Drepper  <drepper@redhat.com>
79246
79247         Import from libc.
79248         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79249         instead of inline stream orientation test and two separate
79250         function calls.  Pay no attention to USE_IN_LIBIO.
79251
79252 2005-10-13  Simon Josefsson  <jas@extundo.com>
79253
79254         * modules/gc-hmac-md5-tests: New file.
79255
79256         * tests/test-gc-hmac-sha1.c: New file.
79257
79258         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79259
79260         * modules/gc-hmac-md5-tests: New file.
79261
79262         * tests/test-gc-md5.c: New file.
79263
79264         * modules/gc-md5-tests: New file.
79265
79266 2005-10-13  Simon Josefsson  <jas@extundo.com>
79267
79268         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79269         Move memory allocation outside of loop.
79270
79271 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79272
79273         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79274         intermediate directory is in a read-only file system.  Problem
79275         reported by Eric Blake.
79276
79277 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79278
79279         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79280
79281 2005-10-12  Simon Josefsson  <jas@extundo.com>
79282
79283         * tests/test-hmac-sha1.c: New file.
79284
79285         * modules/hmac-sha1-tests: New file.
79286
79287         * modules/hmac-sha1: New file.
79288
79289 2005-10-12  Simon Josefsson  <jas@extundo.com>
79290
79291         * modules/gc-sha1: New file.
79292
79293 2005-10-12  Simon Josefsson  <jas@extundo.com>
79294
79295         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79296
79297         * tests/test-gc-pbkdf2-sha1.c: New file.
79298
79299 2005-10-12  Simon Josefsson  <jas@extundo.com>
79300
79301         * modules/gc-md5, modules/gc-hmac-md5: New files.
79302
79303         * modules/gc (Files): Remove md5, memxor and hmac files.
79304
79305 2005-10-12  Simon Josefsson  <jas@extundo.com>
79306
79307         * m4/gc-pbkdf2-sha1.m4: New file.
79308
79309         * m4/gc-hmac-sha1.m4: New file.
79310
79311         * m4/gc-sha1: New file.
79312
79313         * m4/hmac-sha1.m4: New file.
79314
79315 2005-10-12  Simon Josefsson  <jas@extundo.com>
79316
79317         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79318
79319         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79320
79321 2005-10-12  Simon Josefsson  <jas@extundo.com>
79322
79323         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79324         suggested by Bruno Haible <bruno@clisp.org>.
79325
79326 2005-10-12  Simon Josefsson  <jas@extundo.com>
79327
79328         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79329
79330 2005-10-12  Simon Josefsson  <jas@extundo.com>
79331
79332         * lib/gc-pbkdf2-sha1.c: New file.
79333
79334         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79335
79336 2005-10-12  Simon Josefsson  <jas@extundo.com>
79337
79338         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79339
79340         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79341
79342 2005-10-12  Simon Josefsson  <jas@extundo.com>
79343
79344         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79345         GC_USE_HMAC_MD5, respectively.
79346
79347         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79348         (gc_md5): Fix typo.
79349
79350         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79351
79352         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79353
79354         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79355
79356 2005-10-12  Bruno Haible  <bruno@clisp.org>
79357
79358         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79359         Reported by Stepan Kasal <kasal@ucw.cz>.
79360
79361 2005-10-11  Simon Josefsson  <jas@extundo.com>
79362
79363         * tests/test-crc.c: New file.
79364
79365         * modules/crc, modules/crc-tests: New files.
79366
79367 2005-10-11  Simon Josefsson  <jas@extundo.com>
79368
79369         * m4/crc.m4: New file.
79370
79371 2005-10-11  Simon Josefsson  <jas@extundo.com>
79372
79373         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79374
79375         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79376
79377         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79378
79379 2005-10-11  Simon Josefsson  <jas@extundo.com>
79380
79381         * lib/crc.h, lib/crc.c: New files.
79382
79383         * lib/gc.h (gc_hash_buffer): Add doc.
79384
79385 2005-10-11  Bruno Haible  <bruno@clisp.org>
79386
79387         * modules/c-strcasestr: New file.
79388         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79389
79390 2005-10-11  Bruno Haible  <bruno@clisp.org>
79391
79392         * modules/c-strcase: New file.
79393         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79394
79395 2005-10-11  Bruno Haible  <bruno@clisp.org>
79396
79397         * lib/strcasecmp.c: Include limits.h.
79398         (strcasecmp): Avoid integer overflow on exotic platforms.
79399         * lib/strncasecmp.c: Include limits.h.
79400         (strncasecmp): Avoid integer overflow on exotic platforms.
79401         Reported by Paul Eggert.
79402
79403 2005-10-11  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/c-strcasestr.h: New file, from GNU gettext.
79406         * lib/c-strcasestr.c: New file, from GNU gettext.
79407
79408 2005-10-11  Bruno Haible  <bruno@clisp.org>
79409
79410         * lib/c-strcase.h: New file, from GNU gettext.
79411         * lib/c-strcasecmp.c: New file, from GNU gettext.
79412         * lib/c-strncasecmp.c: New file, from GNU gettext.
79413
79414 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * modules/mempcpy (License): GPL -> LGPL.
79417         * modules/strchrnul (License): Likewise.
79418         * modules/sysexits (License): Likewise.
79419
79420 2005-10-08  Simon Josefsson  <jas@extundo.com>
79421
79422         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79423
79424 2005-10-07  Simon Josefsson  <jas@extundo.com>
79425
79426         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79427
79428 2005-10-06  Simon Josefsson  <jas@extundo.com>
79429
79430         * tests/test-hmac-md5.c: New file.
79431
79432         * modules/hmac-md5-tests: New file.
79433
79434         * modules/hmac-md5: New file.
79435
79436 2005-10-06  Simon Josefsson  <jas@extundo.com>
79437
79438         * m4/hmac-md5.m4: New file.
79439
79440         * m4/memxor.m4: Require gl_C_RESTRICT.
79441
79442 2005-10-06  Simon Josefsson  <jas@extundo.com>
79443
79444         * lib/memxor.c (memxor): Avoid casts and warnings.
79445
79446 2005-10-06  Simon Josefsson  <jas@extundo.com>
79447
79448         * lib/hmac-md5.c: New file.
79449
79450         * lib/hmac.h: New file.
79451
79452 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79455         promotes to int, not unsigned int, to catch the AIX 5.3
79456         compiler bug.
79457
79458 2005-10-05  Simon Josefsson  <jas@extundo.com>
79459
79460         * modules/memxor: New file.
79461
79462         * modules/iconv (Files): Move config.rpath to havelib, it is used
79463         there.
79464
79465         * modules/havelib (Files): Add config.rpath.
79466
79467 2005-10-05  Simon Josefsson  <jas@extundo.com>
79468
79469         * m4/memxor.m4: New file.
79470
79471 2005-10-05  Simon Josefsson  <jas@extundo.com>
79472
79473         * lib/memxor.c (memxor): Fix compiler error.
79474
79475         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79476         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79477
79478         * lib/memxor.h, lib/memxor.c: New files.
79479
79480         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79481         we assume all systems have it, suggested by Jim Meyering
79482         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79483         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79484         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79485         same reasons.
79486
79487 2005-10-05  Simon Josefsson  <jas@extundo.com>
79488
79489         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79490
79491 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79494         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79495         needed, since the source code now assumes these .h files.
79496
79497 2005-10-05  Derek Price  <derek@ximbiot.com>
79498
79499         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79500
79501 2005-10-05  Bruno Haible  <bruno@clisp.org>
79502
79503         * modules/stdint (License): Change to LGPL.
79504
79505 2005-10-04  Simon Josefsson  <jas@extundo.com>
79506
79507         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79508         D. Baushke" <mdb@gnu.org>.
79509
79510 2005-10-04  Bruno Haible  <bruno@clisp.org>
79511
79512         * lib/verify.h (verify_true): Provide alternative definition for C++.
79513
79514 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79517         (SSIZE_MAX): New macro, if not already defined.
79518         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79519         than 2 GiB.
79520
79521 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         Sync from coreutils.
79524         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79525         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79526         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79527         ULLONG_MAX doesn't work with 2.7.2.1.
79528
79529 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79532         From Ben Pfaff.
79533
79534         * modules/exclude (Depends-on): Depend on verify.
79535         * modules/strtoimax (Depends-on): Likewise.
79536         * modules/utimecmp (Depends-on): Likewise.
79537
79538 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79539
79540         * lib/exclude.c: Include verify.h.
79541         (verify): Remove.  All callers changed to use verify.h's version.
79542         * lib/strtoimax.c: Likewise.
79543         * lib/utimecmp.c: Likewis.e
79544
79545         Sync from coreutils.
79546         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79547         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79548         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79549         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79550         bother returning ENOSYS if settimeofday or stime fails; just let
79551         them return whatever errno they want to return.
79552         * lib/utimens.c: Include unistd.h, for dup2.
79553         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79554         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79555
79556 2005-10-02  Jim Meyering  <jim@meyering.net>
79557
79558         Sync from coreutils.
79559         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79560         from glibc-2.2.5 that fails for read-only files.
79561
79562 2005-10-02  Jim Meyering  <jim@meyering.net>
79563
79564         Sync from coreutils.
79565         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79566         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79567         `#if HAVE_CONFIG_H'.
79568         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79569         Remove AT_FDCWD test.
79570         Do not consume the fd unless successful.
79571         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79572         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79573         block, so that we don't even try to compile it if settimeofday is
79574         available.  This works around a compilation failure on OSF1 V5.1,
79575         due to stime requiring a `long int*' while tv_sec is `int'.
79576
79577 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79578
79579         Sync from coreutils.
79580         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79581         against `yes', rather than just testing for nonempty.
79582
79583 2005-10-01  Simon Josefsson  <jas@extundo.com>
79584
79585         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79586         and Darwin.
79587
79588         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79589         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79590         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79591         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79592         Check if struct addrinfo is declared.
79593
79594 2005-10-01  Simon Josefsson  <jas@extundo.com>
79595
79596         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79597         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79598         AI_* and EAI_* definitions.  Protect function declarations.
79599
79600 2005-10-01  Jim Meyering  <jim@meyering.net>
79601
79602         Sync from coreutils.
79603
79604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79605         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79606         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79607         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79608         in the inet and nsl libraries.  Required on Solaris 5.7.
79609
79610 2005-10-01  Jim Meyering  <jim@meyering.net>
79611
79612         Sync from coreutils.
79613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79614         in the inet and nsl libraries.  Required on Solaris 5.7.
79615
79616 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79617
79618         * lib/getdelim.c (getdelim): Remove unused variables.
79619
79620 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79623         so that the code works even with ancient cpp.  Portability problem
79624         with GCC 2.7.2.1 reported by Thomas M.Ott.
79625
79626 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * modules/regex (Depends-on): Add strcase.
79629
79630         * modules/gethostname (Licence): Change from GPL to LGPL, since
79631         gethostname.c is a trivial implementation of a standard library
79632         function.
79633         * modules/poll (License): Change from GPL to LGPL, since it's
79634         derived from LGPL code.
79635
79636 2005-09-27  Jim Meyering  <jim@meyering.net>
79637
79638         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79639         HAVE_CONFIG_H.
79640
79641         * lib/intprops.h (signed_type_or_expr__): Define.
79642         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79643         for unsigned types.
79644
79645 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * lib/verify.h (verify_expr): Remove, replacing with:
79648         (verify_true): New macro that returns true instead of void.
79649         (verify_type__): Remove.
79650         (verify): Use verify_true rather than verify_type__.
79651
79652 2005-09-26  Bruno Haible  <bruno@clisp.org>
79653
79654         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79655         is necessary.
79656         (lib_SOURCES): Remove mbchar.c.
79657         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79658         (Files): Add m4/mbrtowc.m4.
79659         * modules/mbiter: Likewise.
79660         * modules/mbuiter: Likewise.
79661
79662 2005-09-26  Bruno Haible  <bruno@clisp.org>
79663
79664         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79665         compile mbchar.c if they are not both present.
79666         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79667         * m4/mbiter.m4 (gl_MBITER): Likewise.
79668         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79669         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79670         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79671
79672 2005-09-25  Jim Meyering  <jim@meyering.net>
79673
79674         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79675         also uses socklen_t.
79676
79677 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79678
79679         * lib/utimens.c (ENOSYS): Define if not already defined.
79680         (futimens): Support having a null PATH if the file descriptor
79681         is nonnegative.
79682
79683         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79684         Remove.
79685         (__attribute): Define to empty unless GCC 3.1 or later.
79686         This works around a core dump on OpenBSD 3.4, which has GCC
79687         2.95.3, which dumps core when given __attribute__(()).  It also
79688         simplifies other tests, since we really don't want to bother with
79689         worrying about which ancient version of GCC supported what.
79690         Original problem reported by Yoann Vandoorselaere, with part of
79691         the fix suggested by Derek Price.
79692
79693 2005-09-24  Jim Meyering  <jim@meyering.net>
79694
79695         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79696         so we can once again use a positive bitfield width of 1 -- now we
79697         don't have to explain why we were using a bitfield width of 2.
79698
79699 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79702         and similarly for the other external symbols.  Problem reported
79703         by James Gallager.
79704
79705         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79706         bug reported by Jim Meyering.
79707
79708         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79709         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79710         not needed, since socklen is a prerequisite module.
79711
79712 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79715         Problem reported by Eric Blake.
79716         (getaddrinfo): Initialize se so that it's not garbage.
79717         Redo internal storage allocation so that it doesn't make unportable
79718         assumptions about alignment.
79719         Fix a memory leak.
79720
79721         * lib/utimens.c (futimens): Use futimesat if available.
79722         Prefer it to futimes since it doesn't have the futimes bug.
79723
79724         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79725         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79726         Instead, declare a function that returns a pointer to an array,
79727         and use verify_type__ to declare the size of the array.
79728         Problem and germ of a solution reported by Bruno Haible.
79729         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79730         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79731
79732 2005-09-23  Jim Meyering  <jim@meyering.net>
79733
79734         Sync from coreutils.
79735         Correct build failure (socklen_t not defined) on at least
79736         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79738
79739 2005-09-23  Jim Meyering  <jim@meyering.net>
79740
79741         * modules/getaddrinfo (Depends-on): Add socklen.
79742
79743 2005-09-23  Bruno Haible  <bruno@clisp.org>
79744
79745         * tests/test-verify.c: New file.
79746
79747 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         Sync from coreutils.
79750
79751         * modules/argmatch (Depends-on): Add verify.
79752         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79753         unistd-safer.
79754         * modules/save-cwd (Depends-on): Likewise.
79755
79756         * modules/openat (Files): Add lib/openat-die.c.
79757         (Depends-on): Remove error, exitfail.
79758         Add dirname.
79759
79760         * modules/verify: New file.
79761         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79762         with "verify" module.
79763
79764 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         Sync from coreutils.
79767
79768         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79769         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79770         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79771         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79772         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79773         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79774         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79775         Don't bother checking for string.h, stdlib.h, unistd.h.
79776         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79777         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79778         module's job.
79779         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79780         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79781
79782         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79783         (gl_GETDATE): Use it.
79784
79785         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79786
79787 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         Sync from coreutils.
79790
79791         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79792         stat-time.h.
79793         * lib/argmatch.h: Include verify.h
79794         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79795         (ARGMATCH_ASSERT): Remove; unused.
79796         * lib/canonicalize.c: Assume STDC_HEADERS.
79797         * lib/exclude.c: Include "strcase.h".
79798         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79799         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79800         and stdio-safer.h.
79801         (getusershell): Call fopen, not fopen_safer.
79802         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79803         Do not include unistd-safer.h.
79804         (save_cwd): Don't call fd_safer; no longer needed
79805         now that we include fcntl--.h.
79806
79807         * lib/getdate.y (relative_time): New type.
79808         (RELATIVE_TIME_0): New constant.
79809         (parser_control): Use relative_time instead of doing it ourselves.
79810         (%union): Add new relative_time rel member.
79811         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79812         Now typeless.
79813         (relunit, relunit_snumber): Now of type rel.
79814         (zone, rel, relunit, get_date): Adjust to above changes.
79815
79816         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79817         Do not include unistd-safer.h.
79818         (getloadavg): Don't call fd_safer; no longer needed
79819         now that we include fcntl--.h.
79820
79821         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79822         (make_dir_parents): Treat ENOSYS like EEXIST.
79823
79824         Improve quality of diagnostics on restore_cwd failure.
79825         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79826         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79827         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79828         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79829         each time through the loop.  Do not diagnose restore_cwd failure;
79830         that is the caller's job (and perhaps the caller does not care).
79831
79832         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79833         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79834         If the file already exists but is not a directory, don't bother
79835         to try to make its parents.
79836         Close potential file descriptor leak if we can't chdir("/") (!).
79837         Don't always return true if chdir($PWD) fails; return true only
79838         if the requested action was done successfully (except for the
79839         chdir($PWD)).
79840         Don't log final directory unless we actually made it.
79841         Refactor to avoid duplicate code to fix up permissions.
79842         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79843
79844         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79845         to make it a bit faster and (I hope) clearer.
79846         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79847         Fix bug in formats like %2N.
79848
79849         * lib/verify.h: New file.
79850
79851 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         Sync from coreutils.
79854         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79855
79856 2005-09-22  Jim Meyering  <jim@meyering.net>
79857
79858         Sync from coreutils.
79859
79860         * m4/lstat.m4 (gl_FUNC_LSTAT):
79861         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79862         Remove obsolete comment.
79863         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79864         * m4/xstrtod.m4: Likewise.
79865
79866         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79867
79868 2005-09-22  Jim Meyering  <jim@meyering.net>
79869
79870         Sync from coreutils.
79871
79872         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79873
79874         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79875         the .tm_year member, since otherwise gcc-4.0 would now warn about
79876         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79877
79878         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79879         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79880
79881         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79882         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79883         when run in a time zone for which daylight savings time is in effect
79884         for the starting date.
79885
79886         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79887         stop us from restricting permissions of just-created absolute-named
79888         directories.
79889         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79890         to restore initial working directory.
79891         * lib/mkdir-p.c (make_dir_parents): New parameter:
79892         different_working_dir, to tell caller if/when we change the working
79893         directory and are unable to return to the initial one.
79894         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79895         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79896         `return false'.  This fixes a bug introduced on 2004-07-30.
79897
79898         * lib/openat.c (fdopendir): Be sure to close the supplied
79899         file descriptor before returning.  This makes our replacement
79900         implementation a little closer to Solaris's, where fdopendir
79901         ties the file descriptor to the returned DIR* pointer.
79902         * lib/openat.c (unlinkat): New function.
79903         * lib/openat.h (unlinkat): Add prototype.
79904         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79905         (openat_restore_fail): Rename from openat_restore_die.
79906         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79907
79908         Provide an alternative to exiting immediately upon save_cwd or
79909         restore_cwd failure.  Now, an application can arrange e.g.,
79910         to perform a longjump in that case.
79911         * lib/openat.c: Include dirname.h.
79912         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79913         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79914         and openat_restore_die rather than calling error directly.
79915         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79916
79917         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79918         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79919         define.
79920
79921         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79922         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79923                             int utc, int nanoseconds);
79924         Background:
79925         date should not have to allocate a megabyte of virtual memory to
79926         handle a format argument like +%1048575T.  When implemented with
79927         strftime, it must allocate such a buffer, use strftime to fill it
79928         in, print it, then free it.
79929         With fprintftime, it simply prints everything and exits.
79930         With no need for memory allocation, that's one fewer way to fail.
79931         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79932         optional field width, not before, so we accept %9:z, not %:9z.
79933         (my_strftime): Be sure to use L_('x') for literals.
79934
79935         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79936         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79937         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79938         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79939         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79940         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79941         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79942         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79943         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79944         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79945         * lib/xgethostname.c, lib/xreadlink.c:
79946         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79947
79948         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79949         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79950         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79951         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79952         and don't include <sys/file.h>).
79953
79954 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79955
79956         Sync from coreutils.
79957
79958         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79959         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79960         [!LDAV_DONE]: Avoid unused variable warning.
79961
79962 2005-09-21  Bruno Haible  <bruno@clisp.org>
79963
79964         * lib/unicodeio.h (unicode_to_mb): New declaration.
79965
79966 2005-09-20  Derek Price  <derek@ximbiot.com>
79967
79968         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79969         getaddrinfo.h.
79970
79971 2005-09-20  Bruno Haible  <bruno@clisp.org>
79972
79973         * gnulib-tool: Remove trailing slashes from the values specified for
79974         --source-base, --m4-base, --tests-base, --aux-dir.
79975         Suggested by Simon Josefsson <jas@extundo.com>.
79976
79977 2005-09-20  Bruno Haible  <bruno@clisp.org>
79978
79979         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79980         func_modules_to_filelist, func_import, func_create_testdir): Make all
79981         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79982         change when gnulib-tool is invoked in a different locale.
79983
79984 2005-09-19  Simon Josefsson  <jas@extundo.com>
79985
79986         * m4/socklen.m4: Fix typo.
79987
79988 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79989
79990         Use a consistent style for including <config.h>.
79991         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79992         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79993         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79994         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79995         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79996         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79997         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79998         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79999         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80000         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80001         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80002         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80003         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80004         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80005         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80006         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80007         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80008         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80009         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80010         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80011         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80012         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80013         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80014         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80015         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80016         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80017         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80018         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80019         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80020         lib/xstrtoumax.c, lib/yesno.c:
80021         Standardize inclusion of config.h.
80022         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80023         lib/inttostr.h:  Removed inclusion of config.h from header files.
80024         * lib/inttostr.c:  Adjusted in-tree users.
80025         * lib/timespec.h: Remove superfluous warning to include config.h.
80026         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80027         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80028         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80029         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80030         config.h with HAVE_CONFIG_H.
80031
80032 2005-09-19  Jim Meyering  <jim@meyering.net>
80033
80034         * modules/pathmax (License): Change to LGPL.
80035
80036 2005-09-19  Derek Price  <derek@ximbiot.com>
80037
80038         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80039
80040 2005-09-19  Bruno Haible  <bruno@clisp.org>
80041
80042         * gnulib-tool (import): Provide default for --tests-base.
80043
80044 2005-09-19  Bruno Haible  <bruno@clisp.org>
80045
80046         * doc/quote.texi: New file, extracted from gnulib.texi.
80047         * doc/ctime.texi: New file, extracted from gnulib.texi.
80048         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80049         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80050         * doc/gnulib.texi: Include them.
80051
80052 2005-09-18  Bruno Haible  <bruno@clisp.org>
80053
80054         Portability fix.
80055         * gnulib-tool (func_readlink): New function.
80056         (func_ln_if_changed): Use it.
80057
80058 2005-09-18  Bruno Haible  <bruno@clisp.org>
80059
80060         * gnulib-tool: Support --with-tests also with --import.
80061         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80062         (func_import): Use variables $testsbase and $inctests. Emit a
80063         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80064         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80065         SUBDIRS += $testsdir.
80066         (func_create_testdir): Update.
80067
80068 2005-09-18  Bruno Haible  <bruno@clisp.org>
80069
80070         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80071         instead of $dry_run.
80072         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80073         (func_ln_if_changed): Don't handle dry-run here.
80074         (func_import): In dry-run mode, detect more precisely which actions
80075         would be performed, and don't use "...ing" verbs.
80076
80077 2005-09-18  Bruno Haible  <bruno@clisp.org>
80078
80079         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80080         (func_import): Use join on two temporary files instead of three nested
80081         loops, in order to determine which files are new or old.
80082
80083 2005-09-18  Bruno Haible  <bruno@clisp.org>
80084
80085         * gnulib-tool (func_import): Comment out code that spits out the
80086         new files with --dry-run.
80087
80088 2005-09-18  Bruno Haible  <bruno@clisp.org>
80089
80090         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80091
80092 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         * lib/stat-time.h: New file.
80095         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80096         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80097         in a different way.
80098         (timespec_cmp): New function.
80099         * lib/utimecmp.c: Include stat-time.h.
80100         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80101         members exist, not on the obsolescent ST_MTIM_NSEC.
80102         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80103
80104 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80105
80106         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80107
80108 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80109
80110         * MODULES.html.sh (File system functions): Add stat-time.
80111         * modules/stat-time: New file.
80112         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80113         is now done in a different way, by the stat-time module.
80114         * modules/utimecmp (Depends-on): Add stat-time.
80115
80116 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * m4/st_mtim.m4: Remove.  Superseded by...
80119         * m4/stat-time.m4: New file.
80120         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80121         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80122
80123 2005-09-15  Derek Price  <derek@ximbiot.com>
80124
80125         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80126
80127 2005-09-15  Derek Price  <derek@ximbiot.com>
80128
80129         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80130         * lib/regex_internal.c: Ditto, using this...
80131         (__GNUC_PREREQ): ...new macro.
80132         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80133         using...
80134         (__GNUC_PREREQ): ...this new macro.
80135
80136         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80137
80138 2005-09-15  Derek Price  <derek@ximbiot.com>
80139             Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80142         changes, consolidating in...
80143         * lib/regex_internal.h: ...this file.
80144
80145 2005-09-13  Jim Meyering  <jim@meyering.net>
80146
80147         * lib/canon-host.c: Filter through gnu indent and reword comments
80148         slightly.
80149         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80150
80151 2005-09-13  Derek Price  <derek@ximbiot.com>
80152
80153         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80154         failure.
80155         Reported by Jim Meyering  <jim@meyering.net>.
80156
80157 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80158
80159         * lib/base64.c: Typo.
80160         (base64_encode): Put b64str in initialized data section.
80161
80162 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         Merge glibc and coreutils changes into gnulib, plus a few
80165         extra fixes.
80166         * lib/md5.c: Use #error rather than a string.
80167         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80168         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80169         (__attribute__): Define to empty for non recent-GCC.
80170         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80171         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80172         Renamed from their non-__ counterparts, with new macros replacing
80173         them if not _LIBC.  Add __THROW attribute.
80174         (rol): Remove.
80175         (struct md5_ctx): Align buffer if using GCC.
80176         * lib/sha1.h (struct sha1_ctx): Likewise.
80177         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80178         The old name was backwards.
80179         (NOTSWAP): Remove; not used.
80180         (rol): New macro, moved here from md5.h.
80181         (sha1_process_block): Remove a FIXME that doesn't make sense.
80182
80183 2005-09-12  Derek Price  <derek@ximbiot.com>
80184
80185         Return usable errors from canon-host.
80186         * lib/canon-host.h: New file.
80187         * lib/canon-host.c (canon_host): Wrap...
80188         (canon_host_r): ...this new function, which now relies exclusively on
80189         getaddrinfo.
80190         (ch_strerror): New function.
80191         (last_cherror): New global.
80192         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80193         interface.
80194         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80195         void *.
80196         (freeaddrinfo): Free ai->ai_canonname when set.
80197
80198 2005-09-12  Derek Price  <derek@ximbiot.com>
80199
80200         Make canon-host require getaddrinfo.
80201         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80202         AC_LIBSOURCE canon-host.h.  Call...
80203         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80204         gl_GETADDRINFO.
80205         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80206
80207 2005-09-12  Derek Price  <derek@ximbiot.com>
80208
80209         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80210         LGPL.
80211         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80212
80213 2005-09-12  Derek Price  <derek@ximbiot.com>
80214
80215         * lib/gai_strerror.c: Include config.h when available.  Include
80216         getaddrinfo.h before other headers to test interface.
80217         Reported by Larry Jones <lawrence.jones@ugs.com>.
80218
80219 2005-09-12  Derek Price  <derek@ximbiot.com>
80220             Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * modules/glob (Files): Add glob-libc.h.
80223
80224 2005-09-12  Derek Price  <derek@ximbiot.com>
80225             Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80228         glob_.h, glob-libc.h.
80229         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80230
80231 2005-09-12  Derek Price  <derek@ximbiot.com>
80232             Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80235         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80236         protecting things that should be done only in gnulib contexts.
80237         * lib/glob_.h: New file, containing only the glob things needed for
80238         gnulib.
80239         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80240         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80241         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80242         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80243         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80244         and to respect the namespace rules better.
80245
80246 2005-09-08  Simon Josefsson  <jas@extundo.com>
80247
80248         * modules/socklen: New file.
80249
80250 2005-09-08  Simon Josefsson  <jas@extundo.com>
80251
80252         * m4/socklen.m4: New file.
80253
80254 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * modules/utimens (Files): Add m4/utimbuf.m4, since
80257         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80258         Reported by Sergey Poznyakoff.
80259
80260 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80263         definitions, since that's the preferred style in glibc.
80264         Fix a minor spacing issue, and update copyright notice to match
80265         glibc's.
80266
80267 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80270
80271 2005-09-06  Simon Josefsson  <jas@extundo.com>
80272
80273         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80274         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80275
80276 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80279         warning.
80280
80281 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         * config/srclist.txt: Add glibc bug 1302.
80284
80285 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80286
80287         Change bitset word type from unsigned int to unsigned long int,
80288         as this has better performance on typical 64-bit hosts.
80289         Port bitset code to hosts with unusual word sizes.
80290         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80291         (build_collating_symbol):
80292         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80293         argument is a bitset.  This is merely a style issue, but it makes
80294         it clearer that an entire array is expected.
80295         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80296         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80297         Port to the case where bitset_word is not the same as unsigned int.
80298         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80299         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80300         Likewise.
80301         * lib/regexec.c (check_dst_limits_calc_pos_1,
80302         check_subexp_matching_top):
80303         (build_trtable, group_nodes_into_DFAstates):
80304         Likewise.
80305         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80306         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80307         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80308         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80309         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80310         * lib/regcomp.c (optimize_subexps, lower_subexp):
80311         Work even if bitset_word has holes in its bitwise representation.
80312         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80313         * lib/regexec.c (check_dst_limits_calc_pos_1,
80314         check_subexp_matching_top):
80315         Likewise.
80316         * lib/regex_internal.c (re_string_reconstruct):
80317         Don't assume UCHAR_MAX == 255.
80318         * lib/regex_internal.h (bitset_set_all): Likewise.
80319         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80320         All uses changed.
80321         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80322         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80323         All uses changed.
80324         (BITSET_WORD_MAX): New macro.
80325         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80326         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80327         (bitset_empty, bitset_copy):
80328         Prefer sizeof (bitset) to multiplying it out ourselves.
80329         (bitset_not_merge): Remove; unused.
80330         (bitset_contain): Return bool, not unsigned int with one bit on.
80331         All callers changed.
80332         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80333         alignment than re_node_set; do this by defining a new internal
80334         type struct dests_alloc and using it to allocate memory.
80335
80336 2005-09-05  Bruno Haible  <bruno@clisp.org>
80337
80338         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80339         links.
80340
80341 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80342
80343         * modules/size_max (Makefile.am): Add size_max.h
80344
80345 2005-09-04  Derek Price  <derek@ximbiot.com>
80346
80347         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80348
80349 2005-09-03  Simon Josefsson  <jas@extundo.com>
80350
80351         * gnulib-tool: Fix typo.
80352
80353 2005-09-03  Simon Josefsson  <jas@extundo.com>
80354
80355         * config/srclist.txt: Add glibc bug 1293.
80356
80357 2005-09-03  Derek Price  <derek@ximbiot.com>
80358
80359         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80360         From Larry Jones <lawrence.jones@ugs.com>.
80361
80362 2005-09-02  Simon Josefsson  <jas@extundo.com>
80363
80364         * modules/socklen: New file.
80365
80366 2005-09-02  Simon Josefsson  <jas@extundo.com>
80367
80368         * modules/havelib: New module.
80369
80370         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80371         Use havelib.
80372
80373 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         Check for arithmetic overflow when calculating sizes, to prevent
80376         some buffer-overflow issues.  These patches are conservative, in the
80377         sense that when I couldn't determine whether an overflow was possible,
80378         I inserted a run-time check.
80379         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80380         macros.
80381         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80382         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80383         (re_xnrealloc, re_x2nrealloc): New inline functions.
80384         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80385         parse_bracket_exp):
80386         (build_equiv_class, build_charclass): Check for arithmetic overflow
80387         in size expression calculations.
80388         * lib/regex_internal.c (re_string_realloc_buffers):
80389         (build_wcs_upper_buffer, re_node_set_add_intersect):
80390         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80391         (re_dfa_add_node, register_state): Likewise.
80392         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80393         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80394         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80395         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80396
80397 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80400         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80401
80402 2005-09-02  Bruno Haible  <bruno@clisp.org>
80403
80404         Support for lib vs. lib64 distinction on biarch platforms.
80405         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80406         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80408
80409 2005-09-02  Bruno Haible  <bruno@clisp.org>
80410
80411         * gnulib-tool (import): In the other first-use case, provide defaults
80412         as well.
80413
80414 2005-09-02  Bruno Haible  <bruno@clisp.org>
80415
80416         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80417         patches not yet found in the latest gettext release.
80418
80419 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80422         to avoid a collision with bits/local_lim.h in glibc.
80423         All uses changed.  Problem reported by Dmitry V. Levin in
80424         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80425
80426         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80427         bugs in int versus size_t comparisons.
80428         (re_string_context_at): Fix bug where the code assumed that
80429         Idx is signed.
80430
80431         Use bool where appropriate.
80432         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80433         All callers changed.
80434         (calc_eclosure_iter): Likewise, for ROOT arg.
80435         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80436         (build_charclass_op): Likewise, for NON_MATCH arg.
80437         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80438         (re_string_construct_common): Likewise, for ICASE arg.
80439         * lib/regexec.c (re_search_2_stub, re_search_stub):
80440         Likewise, for RET_LEN arg.
80441         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80442         (set_regs): Likewise, for FL_BACKTRACK arg.
80443         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80444         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80445         (calc_eclosure_iter, parse_bracket_exp):
80446         Use bool for internal variables that are booleans.
80447         * lib/regexec.c (re_search_internal, check_matching,
80448         proceed_next_node):
80449         (set_regs, build_sifted_states, sift_states_bkref):
80450         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80451         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80452         (find_collation_sequence_value):
80453         Likewise.
80454         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80455         (re_node_set_compare):
80456         Return bool, not int. All callers changed.
80457         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80458         (build_trtable, check_node_accept): Likewise.
80459         * lib/regex_internal.h: Include stdbool.h.
80460
80461         Fix bugs uncovered when converting to bool.
80462         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80463         failure instead of charging ahead blindly.
80464         * lib/regex_internal.c (register_state): Likewise.
80465         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80466         for freeing internal storage.
80467         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80468         bitset pieces used as boolean, to avoid undefined behavior
80469         on hosts that do int overflow checking.
80470
80471 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * config/srclist.txt: Add glibc bugs 1285-1287.
80474
80475 2005-09-01  Jim Meyering  <jim@meyering.net>
80476
80477         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80478         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80479         Require gl_STAT_MACROS, too.
80480
80481 2005-09-01  Bruno Haible  <bruno@clisp.org>
80482
80483         * gnulib-tool (import): In the first-use case, provide defaults.
80484
80485 2005-09-01  Bruno Haible  <bruno@clisp.org>
80486
80487         * gnulib-tool (func_import): Remove the .tmp files.
80488
80489 2005-09-01  Bruno Haible  <bruno@clisp.org>
80490
80491         * gnulib-tool (func_import): Fix handling of symbolic links.
80492
80493 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80494
80495         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80496         old glibc regex code mishandles strings longer than 2**31 bytes.
80497         This patch fixes this when the regex code is used in gnulib
80498         (i.e., outside glibc).
80499
80500         This patch should not affect the use of the regex code inside
80501         glibc.  No doubt this problem also needs to be handled for glibc
80502         as well, but the result will be an incompatible change to the
80503         glibc ABI, and the old ABI will have to be supported too.  That
80504         can be the the subject for another patch.
80505
80506         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80507         governing whether the rest of this patch is active.  By default,
80508         the macro is disabled and the patch has no effect.
80509         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80510         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80511         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80512         (re_match_2, re_set_registers): Use the new types.
80513         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80514         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80515         New macros.
80516         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80517         (re_string_context_at, bin_tree_t, re_dfastate_t):
80518         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80519         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80520         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80521         (re_string_char_size_at, re_string_wchar_at):
80522         (re_string_elem_size_at):
80523         Use the new types and macros to port to 64-bit hosts.
80524         Use unsigned types for internal values, so that the code
80525         mostly works even for arrays larger than SSIZE_MAX.
80526         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80527         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80528         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80529         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80530         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80531         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80532         (calc_inveclosure, parse_dup_op, build_range_exp):
80533         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80534         (fetch_number, create_token_tree, mark_opt_subexp):
80535         Likewise.
80536         * lib/regex_internal.c (re_string_construct_common,
80537         create_ci_newstate):
80538         (create_cd_newstate, re_string_allocate, re_string_construct):
80539         (re_string_realloc_buffers, build_wcs_upper_buffer):
80540         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80541         (re_string_reconstruct, re_string_peek_byte_case):
80542         (re_string_fetch_byte_case, re_string_context_at):
80543         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80544         (re_node_set_init_copy, re_node_set_add_intersect):
80545         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80546         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80547         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80548         (re_acquire_state, re_acquire_state_context, register_state):
80549         Likewise.
80550         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80551         search_cur_bkref_entry):
80552         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80553         (re_search_internal, re_search_2_stub, re_search_stub)
80554         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80555         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80556         (update_cur_sifted_state, check_dst_limits):
80557         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80558         (check_subexp_limits, sift_states_bkref, merge_state_array):
80559         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80560         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80561         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80562         (expand_bkref_cache, check_node_accept_bytes):
80563         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80564         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80565         (acquire_init_state_context, check_halt_node_context):
80566         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80567         (sift_states_backward, clean_state_log_if_needed):
80568         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80569         (find_recover_state, transit_state_sb, transit_state_mb):
80570         (transit_state_bkref, build_trtable, match_ctx_clean):
80571         Likewise.
80572         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80573         to work around an assumption that REG_MISSING is negative.
80574
80575         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80576         (seek_collating_symbol_entry) [defined _LIBC]:
80577         (lookup_collation_sequence_value) [defined _LIBC]:
80578         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80579         Use prototypes rather than old-style function definitions.
80580         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80581         (transit_state_sb) [0]:
80582         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80583
80584         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80585         rm_eo.
80586
80587         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80588         (optimize_subexps, lower_subexp):
80589         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80590         since the signed shift might overflow.  Use 1u<<31 instead.
80591         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80592         Likewise.
80593         * lib/regexec.c (check_dst_limits_calc_pos_1,
80594         check_subexp_matching_top): Likewise.
80595
80596         * lib/regcomp.c (optimize_subexps, lower_subexp):
80597         Use CHAR_BIT rather than 8, for clarity.
80598         * lib/regexec.c (check_dst_limits_calc_pos_1):
80599         (check_subexp_matching_top): Likewise.
80600         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80601         have to worry about portability issues when shifting it left.
80602         Remove no-longer-needed test for table_size > 0.
80603         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80604         in a word, as the resulting behavior is undefined.
80605         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80606         in one case, a <= should have been an <, and in another case the
80607         whole test was missing.
80608         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80609         the standard name CHAR_BIT.
80610         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80611         this is not true on one's complement and signed-magnitude hosts.
80612
80613         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80614         next_last_offset.
80615         (struct re_dfa_t): Remove unused member states_alloc.
80616         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80617
80618 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80619
80620         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80621         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80622         and large-file glibc and in 32-bit large-file Solaris.
80623
80624 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80627         lengths fit in regoff_t; this isn't true if regoff_t is the same
80628         width as size_t.
80629         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80630         (= START + RANGE) instead of RANGE.  This avoids overflow
80631         problems when regoff_t is the same width as size_t.
80632         All callers changed.
80633         (re_search_2_stub): Check for overflow when adding the
80634         sizes of the two strings.
80635         (re_search_stub): Check for overflow when adding START
80636         to RANGE; if it occurs, substitute the extreme value.
80637
80638 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80641
80642 2005-08-31  Jim Meyering  <jim@meyering.net>
80643
80644         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80645         a pointer-to-const.
80646         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80647         (register_state): Likewise.
80648         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80649         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80650         (group_nodes_into_DFAstates): Likewise.
80651
80652 2005-08-31  Jim Meyering  <jim@meyering.net>
80653
80654         * check-module: Add a FIXME comment.
80655
80656 2005-08-31  Eric Blake  <ebb9@byu.net>
80657
80658         * modules/unistd-safer (Files): Add unistd--.h.
80659         * modules/stdio-safer (Files): Add stdio--.h.
80660
80661 2005-08-31  Derek Price  <derek@ximbiot.com>
80662
80663         * lib/getdelim.c (getdelim): Return EOF on EOF.
80664         Reported by Larry Jones <lawrence.jones@ugs.com>.
80665
80666 2005-08-31  Bruno Haible  <bruno@clisp.org>
80667
80668         Avoid unnecessary diffs in the generated lib/Makefile.am.
80669         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80670         the generated files.
80671         (func_import): Don't set cmd.
80672
80673 2005-08-31  Bruno Haible  <bruno@clisp.org>
80674
80675         * lib/strstr.c: Include <stddef.h>, for NULL.
80676         * lib/strcasestr.c: Likewise.
80677         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80678
80679 2005-08-31  Bruno Haible  <bruno@clisp.org>
80680
80681         * gnulib-tool: New option --macro-prefix.
80682         (func_import): Use macro_prefix.
80683         (import): Handle option --macro-prefix.
80684
80685 2005-08-31  Bruno Haible  <bruno@clisp.org>
80686
80687         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80688         Also use new variables cached_lgpl, cached_libtool.
80689
80690 2005-08-31  Bruno Haible  <bruno@clisp.org>
80691
80692         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80693         always instantiating them.
80694
80695 2005-08-31  Bruno Haible  <bruno@clisp.org>
80696
80697         * gnulib-tool (func_import): Read the previous cached settings
80698         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80699         earlier added by gnulib but are now dropped. Warn when a gnulib file
80700         overwrites a non-gnulib file.
80701
80702 2005-08-31  Bruno Haible  <bruno@clisp.org>
80703
80704         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80705         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80706         projects that don't keep autogenerated files in CVS. Put into
80707         actioncmd only the specified modules, not the transitive closure.
80708
80709 2005-08-31  Bruno Haible  <bruno@clisp.org>
80710
80711         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80712         Create directories that shall be filled.
80713         (import): Don't look for gl_* macros in configure.ac. Recurse across
80714         all directories containing a gnulib-cache.m4 files, if meaningful.
80715
80716 2005-08-31  Bruno Haible  <bruno@clisp.org>
80717
80718         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80719         (import): Set seen_libtool when we see gl_LIBTOOL.
80720
80721 2005-08-31  Bruno Haible  <bruno@clisp.org>
80722
80723         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80724         declaration macro definitions from generated gnulib.m4.
80725
80726 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80727
80728         * lib/iconvme.h: Add prototype for iconv_alloc.
80729
80730 2005-08-29  Simon Josefsson  <jas@extundo.com>
80731
80732         * lib/iconvme.c: Fix errno.
80733
80734 2005-08-29  Bruno Haible  <bruno@clisp.org>
80735
80736         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80737         that it works when the directory contains spaces.
80738
80739 2005-08-29  Bruno Haible  <bruno@clisp.org>
80740
80741         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80742
80743 2005-08-29  Bruno Haible  <bruno@clisp.org>
80744
80745         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80746         Emit more advice.
80747
80748 2005-08-29  Bruno Haible  <bruno@clisp.org>
80749         and Stepan Kasal  <kasal@ucw.cz>
80750
80751         * check-module: If more parameters are given, check each of them
80752         separately; add more exceptions, as noted by Jim Meyering.
80753         (check_module): New procedure.
80754         (%exempt_header): Now contains all exceptions.
80755
80756 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80757
80758         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80759
80760 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80761
80762         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80763
80764 2005-08-28  Bruno Haible  <bruno@clisp.org>
80765
80766         * m4/gnulib-tool.m4: New file.
80767
80768 2005-08-27  Jim Meyering  <jim@meyering.net>
80769
80770         * modules/unistd-safer (Files): Add pipe-safer.c.
80771         * modules/fcntl-safer (Files): Add creat-safer.c.
80772
80773 2005-08-27  Jim Meyering  <jim@meyering.net>
80774
80775         * m4/stdlib-safer.m4: New file.  From coreutils.
80776         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80777         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80778         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80779         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80780         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80781
80782 2005-08-27  Jim Meyering  <jim@meyering.net>
80783
80784         * lib/fopen-safer.c: Merge minor changes from coreutils.
80785         * lib/dup-safer.c: Likewise.
80786         * lib/fd-safer.c: Likewise.
80787
80788         Merge from coreutils.
80789         * lib/stdio--.h: New file.
80790         * lib/stdlib--.h: New file.
80791         * lib/mkstemp-safer.c: New file.
80792
80793         GNU tar needs these.
80794         * lib/pipe-safer.c: New file.
80795         * lib/creat-safer.c: New file.
80796         * lib/fcntl--.h (creat): Define to creat_safer.
80797         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80798         * lib/unistd--.h (pipe): Define to pipe_safer.
80799         * lib/unistd-safer.h: Declare pipe_safer.
80800
80801 2005-08-26  Simon Josefsson  <jas@extundo.com>
80802
80803         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80804         Haible <bruno@clisp.org>.
80805
80806 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         * lib/regex_internal.h: Remove all references to
80809         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80810         or better.
80811         (bitset_not, bitset_merge, bitset_not_merge):
80812         (bitset_mask, re_string_allocate, re_string_construct):
80813         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80814         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80815         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80816         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80817         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80818         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80819         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80820         (re_acquire_state_context):
80821         Remove unnecessary forward decls.
80822         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80823         Put __attribute at function definition,
80824         now that the function decl has been removed.
80825         * lib/regex_internal.c (re_string_peek_byte_case):
80826         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80827         Likewise.
80828
80829 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80830
80831         * m4/regex.m4: Add AC_PREREQ(2.50).
80832         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80833
80834 2005-08-25  Simon Josefsson  <jas@extundo.com>
80835
80836         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80837         __fsetlocking.
80838
80839 2005-08-25  Simon Josefsson  <jas@extundo.com>
80840
80841         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80842         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80843         GLIBC specific code.
80844
80845 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         Make regex safe for g++.  This fixes one real bug (an "err"
80848         that should have been "*err").  g++ problem reported by
80849         Sam Steingold.
80850         * lib/regex_internal.h (re_calloc): New macro, consistent with
80851         re_malloc etc.  All callers of calloc changed to use re_calloc.
80852         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80853         not int.  All callers changed.
80854         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80855         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80856         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80857         (find_recover_state): Change "err" to "*err"; this fixes what
80858         appears to be a real bug.
80859         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80860         versus int.
80861
80862 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80863
80864         * modules/regex (Depends-on): Add malloc, since the code
80865         assumes that !malloc(0) means failure.
80866
80867 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80870
80871         alloca modernization/simplification for regex.
80872         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80873         needs to be at the start of the file, and can be moved into
80874         regex_internal.h and simplified.
80875         * lib/regex_internal.h: Include <alloca.h>.
80876         (__libc_use_alloca) [!defined _LIBC]: New macro.
80877         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80878         now works outside glibc.
80879
80880 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * config/srclist.txt: Add glibc bugs 1241, 1245.
80883
80884 2005-08-25  Jim Meyering  <jim@meyering.net>
80885
80886         * lib/open-safer.c: Include <config.h>.
80887         Otherwise, we'd lose LARGEFILE support in any file using
80888         e.g. "fcntl--.h"
80889
80890 2005-08-25  Bruno Haible  <bruno@clisp.org>
80891
80892         * m4/minmax.m4: Require autoconf 2.52.
80893         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80894         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80895         alternatives of translit over the alphabet.
80896         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80897
80898 2005-08-24  Simon Josefsson  <jas@extundo.com>
80899
80900         * tests/test-getpass.c: New file.
80901
80902 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80903
80904         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80905         for GNU regex features.
80906
80907 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80910         * lib/regex.h (regerror): Likewise.
80911
80912         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80913         requires this.  (The code never needed it.)
80914
80915         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80916         All uses of recently-renamed identifiers changed to use the new,
80917         POSIX-compliant names.  The code will build and run just fine
80918         without these changes, but it's better to eat our own dog food
80919         and use the standard-conforming names.
80920
80921         * lib/regex.h: Fix a multitude of POSIX name space violations.
80922         These changes have an effect only for programs that define
80923         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80924         do not change anything for programs compiled in the normal way.
80925         Also, there is no effect on the ABI.
80926
80927         (_REGEX_SOURCE): New macro.
80928         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80929         defined and _GNU_SOURCE is not; this fixes a name space violation.
80930
80931         Rename the following macros to obey POSIX requirements.
80932         The old names are still visible as macros if _REGEX_SOURCE is defined.
80933         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80934         RE_BACKSLASH_ESCAPE_IN_LISTS.
80935         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80936         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80937         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80938         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80939         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80940         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80941         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80942         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80943         (REG_INTERVALS): renamed from RE_INTERVALS.
80944         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80945         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80946         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80947         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80948         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80949         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80950         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80951         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80952         RE_UNMATCHED_RIGHT_PAREN_ORD.
80953         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80954         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80955         (REG_DEBUG): renamed from RE_DEBUG.
80956         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80957         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80958         unusual, since we can't clash with the POSIX REG_ICASE.
80959         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80960         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80961         (REG_NO_SUB): renamed from RE_NO_SUB.
80962         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80963         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80964         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80965         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80966         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80967         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80968         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80969         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80970         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80971         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80972         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80973         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80974         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80975         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80976         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80977         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80978         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80979         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80980         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80981         (REG_FIXED): Renamed from REGS_FIXED.
80982         (REG_NREGS): Renamed from RE_NREGS.
80983
80984         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80985         of other REG_* macros, since POSIX says the user is allowed to
80986         #undef these macros selectively.
80987
80988         (reg_errcode_t): Update comment stating what other tables need
80989         to be consistent.
80990
80991         Rename the following enum values to obey POSIX requirements.
80992         The old names are still visible as macros.
80993         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80994         is not defined, since GNU is supposed to be a superset of POSIX as
80995         much as possible, and since we want reg_errcode_t to be a signed
80996         type for implementation consistency.
80997         (_REG_NOERROR): Renamed from REG_NOERROR.
80998         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80999         (_REG_BADPAT): Renamed from REG_BADPAT.
81000         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81001         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81002         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81003         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81004         (_REG_EBRACK): Renamed from REG_EBRACK.
81005         (_REG_EPAREN): Renamed from REG_EPAREN.
81006         (_REG_EBRACE): Renamed from REG_EBRACE.
81007         (_REG_BADBR): Renamed from REG_BADBR.
81008         (_REG_ERANGE): Renamed from REG_ERANGE.
81009         (_REG_ESPACE): Renamed from REG_ESPACE.
81010         (_REG_BADRPT): Renamed from REG_BADRPT.
81011         (_REG_EEND): Renamed from REG_EEND.
81012         (_REG_ESIZE): Renamed from REG_ESIZE.
81013         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81014         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81015         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81016         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81017         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81018
81019         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81020         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81021         changed.  But support the old name if the new one is not defined
81022         and if _REGEX_SOURCE.
81023
81024         Change the following member names in struct re_pattern_buffer.
81025         The old names are still supported if !_REGEX_SOURCE.
81026         The new names are always supported, regardless of _REGEX_SOURCE.
81027         (re_buffer): Renamed from buffer.
81028         (re_allocated): Renamed from allocated.
81029         (re_used): Renamed from used.
81030         (re_syntax): Renamed from syntax.
81031         (re_fastmap): Renamed from fastmap.
81032         (re_translate): Renamed from translate.
81033         (re_can_be_null): Renamed from can_be_null.
81034         (re_regs_allocated): Renamed from regs_allocated.
81035         (re_fastmap_accurate): Renamed from fastmap_accurate.
81036         (re_no_sub): Renamed from no_sub.
81037         (re_not_bol): Renamed from not_bol.
81038         (re_not_eol): Renamed from not_eol.
81039         (re_newline_anchor): Renamed from newline_anchor.
81040
81041         Change the following member names in struct re_registers.
81042         The old names are still supported if !_REGEX_SOURCE.
81043         The new names are always supported, regardless of _REGEX_SOURCE.
81044         (rm_num_regs): Renamed from num_regs.
81045         (rm_start): Renamed from start.
81046         (rm_end): Renamed from end.
81047
81048         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81049         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81050         Prepend __ to parameter names.
81051
81052         Undo yesterday's changes.
81053
81054 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81055
81056         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81057         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81058         lib/regex.c.
81059
81060 2005-08-24  Jim Meyering  <jim@meyering.net>
81061
81062         Sync from coreutils.
81063         * m4/fcntl-safer.m4: New file.
81064
81065         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81066         and object files for this module.
81067
81068 2005-08-24  Jim Meyering  <jim@meyering.net>
81069
81070         Sync from coreutils.
81071         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81072
81073 2005-08-24  Jim Meyering  <jim@meyering.net>
81074
81075         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81076         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81077
81078 2005-08-24  Jim Meyering  <jim@meyering.net>
81079
81080         * modules/fcntl-safer: New module.
81081         * modules/fts (Depends-on): Add fcntl-safer.
81082         * MODULES.html.sh (File descriptor based Input/Output):
81083         Add fcntl-safer.
81084
81085 2005-08-24  Bruno Haible  <bruno@clisp.org>
81086
81087         Support for unit test modules.
81088         * modules/README: Mention tests modules.
81089         * modules/TEMPLATE-TESTS: New file.
81090         * gnulib-tool: New options --extract-tests-module, --with-tests and
81091         --tests-base (unused for the moment).
81092         (testsbase, inctests): New variables.
81093         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81094         (func_verify_module): Exclude TEMPLATE-TESTS.
81095         (func_verify_nontests_module, func_verify_tests_module): New functions.
81096         (func_get_dependencies): Add implicit dependency for tests modules.
81097         (func_get_tests_module): New function.
81098         (func_modules_transitive_closure): When --with-tests was specified,
81099         include the unit tests as well, unless explicitly avoided.
81100         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81101         (func_emit_tests_Makefile_am): New function.
81102         (func_create_testdir): When --with-tests was specified, emit a
81103         tests/ directory.
81104         * MODULES.html.sh (Future developments): Update.
81105
81106 2005-08-24  Bruno Haible  <bruno@clisp.org>
81107
81108         * modules/tls-tests: New file.
81109         * tests/test-tls.c: New file, from GNU gettext.
81110
81111 2005-08-24  Bruno Haible  <bruno@clisp.org>
81112
81113         * modules/lock-tests: New file.
81114         * tests/test-lock.c: New file, from GNU gettext.
81115
81116 2005-08-24  Bruno Haible  <bruno@clisp.org>
81117
81118         * lib/lock.h: Add multiple inclusion guard.
81119         * lib/tls.h: Add multiple inclusion guard.
81120
81121 2005-08-24  Bruno Haible  <bruno@clisp.org>
81122
81123         * gnulib-tool: Add support for the --aux-dir option to
81124         --create-testdir, --create-megatestdir, --test, --megatest.
81125         (func_create_testdir, func_create_megatestdir): Optionally emit a
81126         AC_CONFIG_AUX_DIR directive.
81127         (create-testdir, create-megatestdir, test, megatest): Provide a
81128         default value for $auxdir.
81129
81130 2005-08-24  Bruno Haible  <bruno@clisp.org>
81131
81132         * gnulib-tool (import): Use compound statement instead of subshell
81133         where possible.
81134
81135 2005-08-24  Bruno Haible  <bruno@clisp.org>
81136
81137         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81138
81139 2005-08-24  Bruno Haible  <bruno@clisp.org>
81140
81141         * gnulib-tool (func_version): Update.
81142
81143 2005-08-24  Bruno Haible  <bruno@clisp.org>
81144
81145         * gnulib-tool (func_import, func_create_testdir,
81146         func_create_megatestdir): Quote all autoconf macro arguments.
81147
81148 2005-08-24  Bruno Haible  <bruno@clisp.org>
81149
81150         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81151         option --force, because --force causes the aclocal.m4 of each
81152         subdirectory to be newer than the corresponding config.h.in.
81153
81154 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81155
81156         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81157         All contents moved to gl_REGEX.
81158         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81159         assume that it does.
81160
81161 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         * lib/regex.h (REG_NOSYS)
81164         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81165         Define, since POSIX requires it as of 2001.
81166         (_REG_ENOSYS)
81167         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81168         New private symbol, used to keep the enum signed in all cases.
81169         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81170         Youngman in
81171         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81172
81173         * lib/regex_internal.c (re_string_skip_chars, register_state):
81174         (calc_state_hash):
81175         Remove forward decls; no longer needed now that we use prototypes.
81176         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81177         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81178         (clean_state_log_if_needed): Likewise.
81179
81180 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81181
81182         * config/srclist.txt: Add glibc bugs 1231-1233.
81183
81184 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81185
81186         Fix problems reported by Sam Steingold in
81187         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81188         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81189         assumed that reg_errcode_t is a signed type, which is not
81190         necessarily true if _XOPEN_SOURCE is not defined.
81191         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81192         since some compilers warn about it otherwise.
81193
81194 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81195
81196         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81197         (init_word_char, create_initial_state, duplicate_node_closure):
81198         (fetch_token, peek_token_bracket, build_range_exp):
81199         (build_collating_symbol): Remove forward decls; no longer needed
81200         now that we use prototypes.
81201
81202         * lib/regcomp.c:
81203         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81204         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81205         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81206         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81207         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81208         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81209         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81210         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81211         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81212         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81213         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81214         (build_charclass, build_charclass_op, fetch_number, create_tree):
81215         (create_token_tree, mark_opt_subexp, duplicate_tree):
81216         Use prototypes rather than old-style definitions.
81217
81218         * lib/regex_internal.c:
81219         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81220         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81221         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81222         (re_string_reconstruct, re_string_peek_byte_case):
81223         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81224         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81225         (re_node_set_init_copy, re_node_set_add_intersect):
81226         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81227         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81228         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81229         (re_acquire_state, re_acquire_state_context, register_state):
81230         (create_ci_newstate, create_cd_newstate, free_state):
81231         Likewise.
81232         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81233         re_search_2):
81234         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81235         (re_search_internal, prune_impossible_nodes):
81236         (acquire_init_state_context, check_matching, static):
81237         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81238         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81239         (update_regs, sift_states_backward, build_sifted_states):
81240         (clean_state_log_if_needed, merge_state_array):
81241         (update_cur_sifted_state, add_epsilon_src_nodes):
81242         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81243         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81244         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81245         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81246         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81247         (check_arrival, check_arrival_add_next_nodes):
81248         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81249         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81250         (check_node_accept_bytes, check_node_accept, extend_buffers):
81251         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81252         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81253         (sift_ctx_init):
81254         Likewise.
81255
81256         * lib/regex_internal.h:
81257         (re_string_allocate, re_string_construct, re_string_reconstruct):
81258         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81259         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81260         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81261         (re_string_context_at, re_string_peek_byte_case):
81262         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81263         is defined, since we now use prototypes always.
81264
81265         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81266         C89 or better.  All uses removed.
81267
81268 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81269
81270         * config/srclist.txt: Add glibc bugs 1220-1227.
81271
81272 2005-08-20  Jim Meyering  <jim@meyering.net>
81273
81274         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81275         of unused local, dfa.
81276
81277 2005-08-20  Bruno Haible  <bruno@clisp.org>
81278
81279         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81280
81281 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81284         (re_node_set_insert_last, re_dfa_add_node):
81285         Rename local variables to avoid GCC shadowing warnings.
81286
81287 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81288
81289         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81290         [defined lint]: Suppress bogus uninitialized-variable warnings.
81291
81292         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81293         and let the caller return REG_ESPACE if out of space.  This
81294         removes an uninitialied-variable warning with GCC 4.0.1, and also
81295         avoids taking the address of a local variable.  All callers
81296         changed.
81297
81298 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81301         $LIBCSRC/posix/regexec.c.
81302         Add glibc bug 1217 for regcomp.c.
81303
81304 2005-08-19  Jim Meyering  <jim@meyering.net>
81305
81306         * lib/regexec.c (proceed_next_node): Redo local variables to
81307         avoid GCC shadowing warnings.
81308
81309 2005-08-18  Bruno Haible  <bruno@clisp.org>
81310
81311         * lib/strstr.c (strstr): Fix return value in multibyte case.
81312         * lib/strcasestr.c (strcasestr): Likewise.
81313
81314 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81315
81316         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81317
81318 2005-08-17  Jim Meyering  <jim@meyering.net>
81319
81320         Make the %s format (seconds since the epoch) work for a negative
81321         number and when used with a zero-padded field width, e.g. %015s.
81322
81323         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81324         label so that it precedes the code to set `digits'.  Otherwise,
81325         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81326         print `00-22'.  Now, it prints `-0022', as it should.
81327
81328 2005-08-17  Bruno Haible  <bruno@clisp.org>
81329
81330         * modules/strstr (Files): Add m4/mbrtowc.m4.
81331         (Depends-on): Add mbuiter.
81332
81333 2005-08-17  Bruno Haible  <bruno@clisp.org>
81334
81335         * modules/strcasestr: New file.
81336         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81337         strcasestr.
81338
81339 2005-08-17  Bruno Haible  <bruno@clisp.org>
81340
81341         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81342
81343 2005-08-17  Bruno Haible  <bruno@clisp.org>
81344
81345         * modules/mbuiter: New file.
81346         * MODULES.html.sh (Extended multibyte and wide character utilities):
81347         Add mbuiter.
81348
81349 2005-08-17  Bruno Haible  <bruno@clisp.org>
81350
81351         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81352         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81353
81354 2005-08-17  Bruno Haible  <bruno@clisp.org>
81355
81356         * m4/strcasestr.m4: New file.
81357
81358 2005-08-17  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81361         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81362
81363 2005-08-17  Bruno Haible  <bruno@clisp.org>
81364
81365         * lib/strcasestr.h: New file.
81366         * lib/strcasestr.c: New file.
81367
81368 2005-08-17  Bruno Haible  <bruno@clisp.org>
81369
81370         * lib/strcasecmp.c: Use mbuiter.h.
81371
81372 2005-08-17  Bruno Haible  <bruno@clisp.org>
81373
81374         * lib/mbuiter.h: New file.
81375
81376 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81379         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81380         and gl_GETOPT are both invoked via different paths (as happens
81381         with GNU tar CVS because it uses both argp and getopt), the former
81382         wins.
81383
81384 2005-08-16  Bruno Haible  <bruno@clisp.org>
81385
81386         * modules/tls: New file.
81387         * MODULES.html.sh (Multithreading): Add tls.
81388
81389 2005-08-16  Bruno Haible  <bruno@clisp.org>
81390
81391         * modules/strnlen1: New file.
81392         * MODULES.html.sh (String handling): Add strnlen1.
81393
81394 2005-08-16  Bruno Haible  <bruno@clisp.org>
81395
81396         * modules/strcase (Files): Add m4/mbrtowc.m4.
81397         (Depends-on): Add strnlen1, mbchar.
81398
81399 2005-08-16  Bruno Haible  <bruno@clisp.org>
81400
81401         * modules/mbiter: New file.
81402         * MODULES.html.sh (Extended multibyte and wide character utilities):
81403         Add mbiter.
81404
81405 2005-08-16  Bruno Haible  <bruno@clisp.org>
81406
81407         * modules/mbfile: New file.
81408         * MODULES.html.sh (Extended multibyte and wide character utilities):
81409         Add mbfile.
81410
81411 2005-08-16  Bruno Haible  <bruno@clisp.org>
81412
81413         * modules/mbchar: New file.
81414         * MODULES.html.sh (Extended multibyte and wide character utilities):
81415         New section.
81416
81417 2005-08-16  Bruno Haible  <bruno@clisp.org>
81418
81419         * m4/tls.m4: New file, from GNU gettext.
81420
81421 2005-08-16  Bruno Haible  <bruno@clisp.org>
81422
81423         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81424         always.
81425         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81426
81427 2005-08-16  Bruno Haible  <bruno@clisp.org>
81428
81429         * m4/mbiter.m4: New file.
81430
81431 2005-08-16  Bruno Haible  <bruno@clisp.org>
81432
81433         * m4/mbfile.m4: New file.
81434
81435 2005-08-16  Bruno Haible  <bruno@clisp.org>
81436
81437         * m4/mbchar.m4: New file.
81438
81439 2005-08-16  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/tls.h: New file, from GNU gettext.
81442         * lib/tls.c: New file, from GNU gettext.
81443
81444 2005-08-16  Bruno Haible  <bruno@clisp.org>
81445
81446         * lib/strnlen1.h: New file.
81447         * lib/strnlen1.c: New file.
81448
81449 2005-08-16  Bruno Haible  <bruno@clisp.org>
81450
81451         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81452         (mbi_init): Update.
81453         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81454         NUL byte, not after it.
81455
81456 2005-08-16  Bruno Haible  <bruno@clisp.org>
81457
81458         * lib/strcase.h (strcasecmp): Add note in comments.
81459         * lib/strncasecmp.c: Use code from strcasecmp.c.
81460         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81461         (strcasecmp): Work correctly in multibyte locales.
81462
81463 2005-08-16  Bruno Haible  <bruno@clisp.org>
81464
81465         * lib/mbiter.h: New file.
81466
81467 2005-08-16  Bruno Haible  <bruno@clisp.org>
81468
81469         * lib/mbfile.h: New file.
81470
81471 2005-08-16  Bruno Haible  <bruno@clisp.org>
81472
81473         * lib/mbchar.h: New file.
81474         * lib/mbchar.c: New file.
81475
81476 2005-08-16  Bruno Haible  <bruno@clisp.org>
81477
81478         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81479         the valid ones. Makes the comparison operations transitive:
81480         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81481         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81482
81483 2005-08-15  Simon Josefsson  <jas@extundo.com>
81484
81485         * modules/ssize_t (License): Change to 'unlimited'.
81486
81487         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81488
81489 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81492         Add comments for each pending glibc patch.
81493
81494 2005-08-15  Bruno Haible  <bruno@clisp.org>
81495
81496         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81497         __cplusplus is defined.
81498
81499 2005-08-14  Jim Meyering  <jim@meyering.net>
81500
81501         Sync from coreutils.
81502
81503         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81504         Use the hash-table-based cycle-detection code not just when
81505         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81506         Reported by James Youngman in
81507         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81508         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81509         FTS_TIGHT_CYCLE_CHECK.
81510         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81511         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81512         once again.
81513         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81514         * lib/fts.c (fd_safer): Remove decl.
81515         Include fcntl--.h rather than unistd-safer.h
81516         (fts_safe_changedir): Don't call fd_safer; no longer needed
81517         now that we include fcntl--.h.
81518
81519 2005-08-12  Simon Josefsson  <jas@extundo.com>
81520
81521         * modules/getndelim2: Use ssize_t module.
81522         * modules/getnline: Likewise.
81523         * modules/safe-read: Likewise.
81524         * modules/xreadlink: Likewise.
81525
81526         * modules/ssize_t: New file.
81527
81528 2005-08-12  Simon Josefsson  <jas@extundo.com>
81529
81530         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81531
81532 2005-08-12  Simon Josefsson  <jas@extundo.com>
81533
81534         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81535         ssize_t.
81536
81537 2005-08-12  Simon Josefsson  <jas@extundo.com>
81538
81539         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81540         readline, getdelim and check_version.
81541         (Support for systems lacking ISO C 99: Sizes of integer types):
81542         Add size_max.
81543
81544 2005-08-12  Bruno Haible  <bruno@clisp.org>
81545
81546         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81547
81548 2005-08-11  Simon Josefsson  <jas@extundo.com>
81549
81550         * modules/readline: New file.
81551
81552         * modules/strnlen (Files): Add strnlen.h.
81553
81554 2005-08-11  Simon Josefsson  <jas@extundo.com>
81555
81556         * m4/readline.m4: New file.
81557
81558 2005-08-11  Simon Josefsson  <jas@extundo.com>
81559
81560         * lib/readline.h, readline.c: New file.
81561
81562 2005-08-11  Simon Josefsson  <jas@extundo.com>
81563
81564         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81565         gl_AVOID.
81566
81567 2005-08-11  Bruno Haible  <bruno@clisp.org>
81568
81569         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81570
81571 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81572
81573         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81574
81575 2005-08-10  Simon Josefsson  <jas@extundo.com>
81576
81577         * tests/test-iconvme.c: New file.
81578
81579 2005-08-10  Simon Josefsson  <jas@extundo.com>
81580
81581         * m4/strnlen.m4: New file.
81582
81583         * m4/strndup.m4: Don't check for strnlen declaration, done in
81584         strnlen.m4.
81585
81586 2005-08-10  Simon Josefsson  <jas@extundo.com>
81587
81588         * lib/strndup.c: Use strnlen.h.
81589
81590         * lib/strnlen.h: New file.
81591
81592 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81593
81594         * README: Typos.
81595
81596 2005-08-02  Simon Josefsson  <jas@extundo.com>
81597
81598         * modules/readline: New file.
81599
81600 2005-08-02  Simon Josefsson  <jas@extundo.com>
81601
81602         * modules/getdelim: New file.
81603
81604         * modules/getline: Rewrite, don't use getndelim2.
81605
81606 2005-08-02  Simon Josefsson  <jas@extundo.com>
81607
81608         * m4/getline.m4: Separate out getdelim stuff into separate module.
81609
81610         * m4/getdelim.m4: New file.
81611
81612 2005-08-02  Simon Josefsson  <jas@extundo.com>
81613
81614         * lib/getline.h, getline.c: Rewrite.
81615
81616         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81617
81618 2005-07-31  Bruno Haible  <bruno@clisp.org>
81619
81620         * lib/lock.h (gl_lock_initializer): New macro.
81621         (gl_lock_define_initialized): Use it.
81622         (gl_rwlock_initializer): New macro.
81623         (gl_rwlock_define_initialized): Use it.
81624         (gl_recursive_lock_initializer): New macro.
81625         (gl_recursive_lock_define_initialized): Use it.
81626
81627 2005-07-30  Karl Berry  <karl@gnu.org>
81628
81629         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81630         Report from Ben Pfaff, regarding getopt.
81631
81632 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81633
81634         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81635         normal way.
81636         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81637         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81638         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81639         (gl_GETOPT): Use the new macros.  Most of the implementation
81640         is moved to the new macros.  This is for programs like Emacs
81641         that don't want all the functionality of gl_GETOPT.
81642
81643 2005-07-26  Bruno Haible  <bruno@clisp.org>
81644
81645         * m4/lock.m4: Update from GNU gettext.
81646
81647 2005-07-26  Bruno Haible  <bruno@clisp.org>
81648
81649         * lib/lock.h: Update from GNU gettext.
81650         * lib/lock.c: Update from GNU gettext.
81651
81652 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81655         obsolescent AC_TRY_RUN.  Include the default includes files, for
81656         'exit'.
81657
81658 2005-07-24  Bruno Haible  <bruno@clisp.org>
81659
81660         * modules/visibility: New file.
81661         * MODULES.html.sh (Misc): Add visibility.
81662
81663 2005-07-24  Bruno Haible  <bruno@clisp.org>
81664
81665         * m4/visibility.m4: New file.
81666
81667 2005-07-24  Bruno Haible  <bruno@clisp.org>
81668
81669         * doc/visibility.texi: New file.
81670
81671 2005-07-22  Bruno Haible  <bruno@clisp.org>
81672
81673         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81674         $(ALLOCA_H), redundant through BUILT_SOURCES.
81675         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81676         redundant through BUILT_SOURCES.
81677         * modules/byteswap (Makefile.am): Remove explicit dependency on
81678         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81679         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81680         $(FNMATCH_H), redundant through BUILT_SOURCES.
81681         * modules/getopt (Makefile.am): Remove explicit dependency on
81682         $(GETOPT_H), redundant through BUILT_SOURCES.
81683         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81684         redundant through BUILT_SOURCES.
81685         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81686         redundant through BUILT_SOURCES.
81687         * modules/stdbool (Makefile.am): Remove explicit dependency on
81688         $(STDBOOL_H), redundant through BUILT_SOURCES.
81689         * modules/stdint (Makefile.am): Remove explicit dependency on
81690         $(STDINT_H), redundant through BUILT_SOURCES.
81691         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81692         Remove explicit dependency on $(SYSEXITS_H).
81693         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81694
81695 2005-07-18  Simon Josefsson  <jas@extundo.com>
81696
81697         * lib/check-version.c (check_version): Accept identical versions too.
81698
81699 2005-07-18  Bruno Haible  <bruno@clisp.org>
81700
81701         * modules/lock: New file.
81702         * MODULES.html.sh (Multithreading): New section.
81703
81704 2005-07-18  Bruno Haible  <bruno@clisp.org>
81705
81706         * m4/lock.m4: New file, from GNU gettext.
81707
81708 2005-07-18  Bruno Haible  <bruno@clisp.org>
81709
81710         * lib/lock.h: New file, from GNU gettext.
81711         * lib/lock.c: New file, from GNU gettext.
81712
81713 2005-07-18  Bruno Haible  <bruno@clisp.org>
81714
81715         * lib/lock.h (gl_once_t): New type.
81716         (gl_once_define, gl_once): New macros.
81717         * lib/lock.c (fresh_once): New variable.
81718         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81719         functions.
81720
81721 2005-07-16  Simon Josefsson  <jas@extundo.com>
81722
81723         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81724         workaround, suggested by Bruno.
81725
81726 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81727
81728         * modules/xalloc (Depends-on): Add xalloc-die.
81729         * modules/xvasprintf (Depends-on): Add xalloc-die.
81730
81731 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81732
81733         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81734         with a minor change.
81735
81736 2005-07-15  Bruno Haible  <bruno@clisp.org>
81737
81738         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81739         When using lib/poll.c, define poll as rpl_poll.
81740
81741 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81742
81743         * modules/argp (Depends-on): Remove unlocked-io.
81744
81745 2005-07-14  Derek Price  <derek@ximbiot.com>
81746
81747         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81748         for glob symlink bug.
81749
81750 2005-07-14  Bruno Haible  <bruno@clisp.org>
81751
81752         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81753         Instead, test for *_unlocked function declarations directly.
81754
81755 2005-07-11  Simon Josefsson  <jas@extundo.com>
81756
81757         * modules/size_max: New file.
81758
81759         * modules/xsize: Depend on size_max module for size_max.m4.
81760
81761 2005-07-11  Simon Josefsson  <jas@extundo.com>
81762
81763         * lib/size_max.h: New file.
81764
81765 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81766
81767         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81768         copyright symbol and the year.
81769         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81770         (version_etc_va): Use parameterized copyright notice.
81771         Reword to conform to the current GNU coding standards.
81772
81773 2005-07-11  Karl Berry  <karl@gnu.org>
81774
81775         * doc/gnulib.texi (Quoting): new node.
81776         (Initial import): more info, from Patrice.
81777
81778 2005-07-11  Bruno Haible  <bruno@clisp.org>
81779
81780         * gnulib-tool (func_usage): Document option --avoid.
81781         (Command line options): Handle --avoid.
81782         (func_acceptable): New function.
81783         (func_modules_transitive_closure): Use it.
81784
81785 2005-07-11  Bruno Haible  <bruno@clisp.org>
81786
81787         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81788         Reported by Jim Meyering.
81789
81790 2005-07-10  Bruno Haible  <bruno@clisp.org>
81791
81792         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81793         Needed when size_t is smaller than 'unsigned int'.
81794         Reported by Paul Eggert.
81795
81796 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81797
81798         * modules/argp (Depends-on): Add unlocked-io
81799
81800 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81801
81802         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81803         block of defines.
81804
81805 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81806
81807         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81808         fix now.
81809
81810 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81811         and Paul Eggert  <eggert@cs.ucla.edu>
81812
81813         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81814         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81815
81816 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * modules/regex (Files): Add lib/regex_internal.c,
81819         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81820         (Depends-on): Add extensions.
81821         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81822
81823 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81826         pathconf.
81827         * m4/same.m4 (gl_SAME): Likewise.
81828         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81829
81830         * m4/regex.m4: Adjust to new libc regex implementation.
81831         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81832         all the .c and .h parts of (the new) regex.
81833         Quote the m4 stuff better.
81834         Check for RE_ICASE bug of old gnulib.
81835         Check for REG_STARTEND of recent libc.
81836         Rename local variables from jm_* to gl_*.
81837         Quote operand of "test -f".
81838         Say "recent enough" version of libc, not "version 2".
81839         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81840         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81841         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81842         Remove check for btowc, isascii.
81843         Require AM_LANGINFO_CODESET.
81844
81845 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * lib/regex.c, regex.h: Sync from libc.
81848         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81849         * lib/regexec.c:
81850         New files, synced from libc, except that regex_internal.h
81851         currently has a small porting fix.
81852
81853 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81856         regex_internal.c, regexec.c.
81857         Add regex_internal.h too, but as a comment, since the libc version
81858         is currently broken in gnulib mode.
81859
81860 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81861
81862         Support programs like Emacs that use gnulib but not gettext.
81863         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81864         * modules/gettext-h: New file.
81865         * modules/gettext (Files): Remove lib/gettext.h.
81866         (Depends-on): Add gettext-h.
81867         (Makefile.am): Remove lib_SOURCES.
81868         * modules/argmatch, modules/c-stack, modules/closeout:
81869         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81870         * modules/execute, modules/file-type, modules/getaddrinfo:
81871         * modules/getopt, modules/human, modules/javacomp:
81872         * modules/javaexec, modules/mkdir-p, modules/obstack:
81873         * modules/openat, modules/pagealign_alloc, modules/pipe:
81874         * modules/quotearg, modules/regex, modules/rpmatch:
81875         * modules/unicodeio, modules/userspec, modules/version-etc:
81876         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81877         * modules/xsetenv:
81878         Depend on gettext-h, not gettext.
81879
81880 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81881
81882         * gnulib-tool (func_import): Add support for 'public domain' license.
81883         * modules/alloca, modules/atexit, modules/memmove:
81884         Now public domain, not GPL.
81885         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81886         * modules/realloc, modules/strerror, modules/strtod:
81887         Now LGPL, not GPL.
81888
81889 2005-07-05  Bruno Haible  <bruno@clisp.org>
81890
81891         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81892         autoconf CVS. Needed for mingw.
81893
81894 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         Remove the dependency of the strftime module on the tzset module.
81897         * modules/strftime (Depends-on): Remove dependency on tzset.
81898
81899 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81900
81901         Remove the dependency of the strftime module on the tzset module.
81902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81903         gl_FUNC_TZSET_CLOBBER.
81904
81905 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81906
81907         Remove the dependency of the strftime module on the tzset module.
81908         * lib/strftime.c (my_strftime)
81909         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81910         Copy the input structure, to work around some of the bug with
81911         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81912         Solaris releases, you should also use the tzset module, but we won't
81913         require it as a dependency any more since we don't want LGPLed code
81914         to depend on GPLed code.
81915
81916 2005-07-02  Jim Meyering  <jim@meyering.net>
81917
81918         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81919         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81920         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81921         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81922
81923 2005-07-02  Jim Meyering  <jim@meyering.net>
81924
81925         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81926
81927 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81930         declares only 'struct timespec;' (!).
81931
81932 2005-07-01  Jim Meyering  <jim@meyering.net>
81933
81934         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81935         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81936         * lib/save-cwd.c, tempname.c:
81937         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81938         and don't include <sys/file.h>).
81939
81940 2005-06-29  Jim Meyering  <jim@meyering.net>
81941
81942         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81943         type name.  Use the variable name instead.
81944         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81945         Likewise.
81946
81947 2005-06-28  Simon Josefsson  <jas@extundo.com>
81948
81949         * modules/check-version (Files): Add check-version.m4.
81950
81951 2005-06-28  Simon Josefsson  <jas@extundo.com>
81952
81953         * m4/check-version.m4: New file, suggested by Jim Meyering
81954         <jim@meyering.net>.
81955
81956 2005-06-28  Simon Josefsson  <jas@extundo.com>
81957
81958         * lib/check-version.h, lib/check-version.c: New files.
81959
81960 2005-06-28  Simon Josefsson  <jas@extundo.com>
81961
81962         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81963         collision with global variable.  Better indentation.  Don't
81964         increment buffer pointer beyond buffer end.  Based on comments
81965         from Paul Eggert <eggert@cs.ucla.edu>.
81966
81967         * lib/base64.h: Indent.
81968
81969 2005-06-28  Simon Josefsson  <jas@extundo.com>
81970
81971         * doc/gnulib.texi (Library version handling): New section.
81972
81973 2005-06-28  Jim Meyering  <jim@meyering.net>
81974
81975         * check-module (find_included_lib_files): Hard-code another
81976         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81977         but modules/fts-lgpl (correctly) does not list those files.
81978
81979         * modules/canonicalize (Files): Add lib/pathmax.h.
81980
81981 2005-06-25  Simon Josefsson  <jas@extundo.com>
81982
81983         * modules/check-version: New file.
81984
81985 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81986
81987         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81988         initializer of struct addrinfo, as an indication that we don't
81989         care how many members the structure has.
81990
81991 2005-06-24  Derek Price  <derek@ximbiot.com>
81992         and Bruno Haible  <bruno@clisp.org>
81993
81994         Remove stat module & update lstat.
81995         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81997         * m4/stat.m4: Remove this file.
81998
81999 2005-06-24  Derek Price  <derek@ximbiot.com>
82000         and Bruno Haible  <bruno@clisp.org>
82001
82002         Remove stat module & update lstat.
82003         * lib/stat.c: Remove this file...
82004         (slash_aware_lstat): ...moving this content and its support...
82005         * lib/lstat.c (rpl_lstat): ...into here.
82006         * lib/lstat.h: New file.
82007
82008 2005-06-24  Derek Price  <derek@ximbiot.com>
82009         and Bruno Haible  <bruno@clisp.org>
82010
82011         Remove stat module & update lstat.
82012         * config/srclist.txt (libc sources): Remove stat.
82013
82014 2005-06-24  Derek Price  <derek@ximbiot.com>
82015         and Bruno Haible  <bruno@clisp.org>
82016
82017         Remove stat module & update lstat.
82018         * MODULES.html.sh (stat): Remove.
82019         * MODULES.html: Regenerated.
82020         * modules/lstat (Description): Correct function name.
82021         (Files): Add "lstat.h".
82022         (Depends-on): Remove stat, add xalloc, stat-macros.
82023         * modules/stat: Remove this file.
82024         (Include): Add "lstat.h", remove <sys/stat.h>.
82025
82026 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82027
82028         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82029         (ranged_convert): Don't save conversion in a temporary struct.
82030         This causes a warning with GCC 4.0.0, and anyway in the typical
82031         case it's not worth the extra 100 bytes or so of code.
82032         (ranged_convert, __mktime_internal): When calling a function via a
82033         pointer P, use P () rather than (*P) (), as we now assume C89 or
82034         better.
82035
82036 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82039         "who -r" failed to give output.  Problem reported by Tim Waugh.
82040
82041         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82042         (xcalloc): Use it to avoid needless tests.
82043         Problem reported by Jim Meyering.
82044
82045 2005-06-20  Derek Price  <derek@ximbiot.com>
82046
82047         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82048         unnecessary for Autoconfs > 2.59c.
82049
82050 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82051
82052         * lib/argp.h (__option_is_short): Check upper limit of
82053         __key. Isprint() requires its argument to have the value
82054         of an unsigned char or EOF.
82055
82056 2005-06-16  Jim Meyering  <jim@meyering.net>
82057
82058         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82059         when either N or S is zero.
82060
82061 2005-06-16  Derek Price  <derek@ximbiot.com>
82062
82063         * m4/bison.m4: Declare YACC & YFLAGS precious.
82064
82065 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82066
82067         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82068         multibyte string or pattern, fall back on unibyte matching.
82069         Problem reported by James Youngman.
82070
82071 2005-06-08  Bruno Haible  <bruno@clisp.org>
82072
82073         * modules/csharpcomp: New file.
82074         * MODULES.html.sh (C#): Add csharpcomp.
82075
82076 2005-06-08  Bruno Haible  <bruno@clisp.org>
82077
82078         * m4/csharpcomp.m4: New file, from GNU gettext.
82079
82080 2005-06-08  Bruno Haible  <bruno@clisp.org>
82081
82082         * lib/csharpcomp.h: New file, from GNU gettext.
82083         * lib/csharpcomp.c: New file, from GNU gettext.
82084         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82085
82086 2005-06-08  Bruno Haible  <bruno@clisp.org>
82087
82088         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82089         warning on mingw.
82090
82091 2005-06-07  Derek Price  <derek@ximbiot.com>
82092
82093         Sync from CVS.
82094         * lib/glob_.h: Indent nested #ifdef.
82095
82096 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         Sync from coreutils.
82099         Use "file name" when talking about file names, instead of "filename"
82100         or "path", as per the GNU coding standards.
82101         * lib/mkdir-p.c: Renamed from makepath.c.
82102         (make_dir_parents): Renamed from make_path.  All callers changed.
82103         * lib/mkdir-p.h: Likewise.  All includers changed.
82104         * lib/filenamecat.c: Renamed from path-concat.c.
82105         (file_name_concat): Renamed from path_concat.  All callers changed.
82106         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82107         * lib/filenamecat.h: Likewise.  All includers changed.
82108         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82109         in comments or local variable names.
82110         * lib/basename.c: Likewise.
82111         * lib/canonicalize.c, canonicalize.h: Likewise.
82112         * lib/dirname.c, dirname.h: Likewise.
82113         * lib/euidaccess.c: Likewise.
82114         * lib/exclude.c: Likewise
82115         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82116         * lib/fsusage.c, fsuage.h: Likewise.
82117         * lib/fts.c, fts_.h: Likewise.
82118         * lib/getcwd.c: Likewise.
82119         * lib/getloadavg.c: Likewise.
82120         * lib/mkstemp.c: Likewise.
82121         * lib/mountlist.c, mountlist.h: Likewise.
82122         * lib/openat.c, openat.h: Likewise.
82123         * lib/readlink-stub.c: Likewise.
82124         * lib/readutmp.c, readutmp.h: Likewise.
82125         * lib/rename.c: Likewise.
82126         * lib/rmdir.c: Likewise.
82127         * lib/same.c: Likewise.
82128         * lib/savedir.c: Likewise.
82129         * lib/stripslash.c: Likewise.
82130         * lib/tempname.c: Likewise.
82131         * lib/xreadlink.c: Likewise.
82132         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82133         All uses changed.
82134         * lib/exclude.h: Likewise.
82135
82136         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82137         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82138         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82139         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82140         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82141         files have been getting away with it for years (MORE/BSD 4.3
82142         is extinct now).
82143         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82144         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82145
82146         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82147         Define to 256, not 255, as per modern POSIX.
82148
82149 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82150
82151         Sync from coreutils.
82152         Use "file name" when talking about file names, instead of "filename"
82153         or "path", as per the GNU coding standards.
82154         * MODULES.html.sh: mkdir-p renamed from makepath.
82155         filenamecat renamed from path-concat.
82156         * modules/filenamecat: Renamed from modules/path-concat.
82157         (Files): filenamecat.h and filenamecat.c renamed from
82158         path-concat.h and path-concat.c.
82159         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82160         (Include): filenamecat.h, not path-concat.h.
82161         * modules/mkdir-p: Renamed from modules/makepath.
82162         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82163         makepath.c.
82164         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82165         (Include): mkdir-p.h, not makepath.h.
82166
82167 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         Sync from coreutils.
82170         * m4/mkdir-p.m4: Renamed from makepath.m4.
82171         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82172         Rename files from makepath.c to mkdir-p.c, and from
82173         makepath.h to mkdir-p.h.
82174         * m4/filenamecat.m4: Renamed from path-concat.m4.
82175         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82176         Rename files from path-concat.c to filenamecat.c,
82177         and from path-concat.h to filenamecat.h.
82178         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82179         "file name" in local variables or comments.
82180         * m4/rename.m4: Likewise.
82181
82182 2005-06-01  Bruno Haible  <bruno@clisp.org>
82183
82184         * modules/csharpexec: New file.
82185         * MODULES.html.sh (C#): New section.
82186
82187 2005-06-01  Bruno Haible  <bruno@clisp.org>
82188
82189         * m4/csharp.m4: New file, from GNU gettext.
82190         * m4/csharpexec.m4: New file, from GNU gettext.
82191
82192 2005-06-01  Bruno Haible  <bruno@clisp.org>
82193
82194         * lib/csharpexec.h: New file, from GNU gettext.
82195         * lib/csharpexec.c: New file, from GNU gettext.
82196         * lib/csharpexec.sh.in: New file, from GNU gettext.
82197
82198 2005-05-31  Derek Price  <derek@ximbiot.com>
82199             Paul Eggert  <eggert@cs.ucla.edu>
82200
82201         Sync from cvs.
82202         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82203
82204 2005-05-31  Derek Price  <derek@ximbiot.com>
82205             Paul Eggert  <eggert@cs.ucla.edu>
82206
82207         Sync from cvs.
82208         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82209
82210 2005-05-29  Derek Price  <derek@ximbiot.com>
82211
82212         * config/srclist.txt (glob_.h, glob.c): Add these files.
82213
82214 2005-05-29  Derek Price  <derek@ximbiot.com>
82215
82216         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82217         * modules/glob: New file.
82218         * modules/getlogin_r: Add link to POSIX spec in description.
82219
82220 2005-05-29  Derek Price  <derek@ximbiot.com>
82221             Paul Eggert  <eggert@cs.ucla.edu>
82222
82223         * m4/glob.m4: New file.
82224
82225 2005-05-29  Derek Price  <derek@ximbiot.com>
82226             Paul Eggert  <eggert@cs.ucla.edu>
82227
82228         * lib/glob_.h, lib/glob.c: New files.
82229
82230 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82231
82232         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82233         * modules/fts-lgpl (Depends-on): Remove gettext.
82234
82235 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82236
82237         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82238         and don't require gt_INTTYPES_PRI.
82239
82240 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82241
82242         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82243
82244         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82245         the configuration hassle isn't worth it.
82246         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82247         (LONGEST_MODIFIER, PRIuMAX): Remove.
82248
82249 2005-05-27  Bruno Haible  <bruno@clisp.org>
82250
82251         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82252
82253 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82256         _POSIX_PTHREAD_SEMANTICS for Solaris.
82257
82258 2005-05-25  Derek Price  <derek@ximbiot.com>
82259
82260         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82261
82262 2005-05-25  Derek Price  <derek@ximbiot.com>
82263             Paul Eggert  <eggert@cs.ucla.edu>
82264
82265         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82266         * lib/getlogin_r.c, getlogin_r.h: New files.
82267
82268 2005-05-25  Bruno Haible  <bruno@clisp.org>
82269             Derek Price  <derek@ximbiot.com>
82270
82271         * lib/getlogin_r.h: Simplify API documentation.
82272
82273 2005-05-23  Derek Price  <derek@ximbiot.com>
82274
82275         * modules/minmax (Files): Add m4/minmax.m4.
82276         (configure.ac): Add gl_MINMAX.
82277
82278 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82279
82280         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82281         so that unistd-safer.h (GPL'ed code) need not be included.
82282
82283 2005-05-22  Bruno Haible  <bruno@clisp.org>
82284
82285         * m4/minmax.m4: New file.
82286         Based on a patch by Derek Price <derek@ximbiot.com>.
82287
82288 2005-05-22  Bruno Haible  <bruno@clisp.org>
82289
82290         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82291         (INT64_MIN): Fix definition.
82292         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82293
82294         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82295         NEED_SIGNED_INT_TYPES.
82296
82297         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82298         HAVE_SYSTEM_INTTYPES.
82299
82300 2005-05-22  Bruno Haible  <bruno@clisp.org>
82301
82302         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82303         Also include <sys/param.h> if it defines MIN, MAX.
82304         Based on a patch by Derek Price <derek@ximbiot.com>.
82305
82306 2005-05-21  Jim Meyering  <jim@meyering.net>
82307
82308         * modules/fts (Files): Add m4/inttypes-pri.m4.
82309         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82310
82311 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82312
82313         New fts module.
82314         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82315         (setup_dir, free_dir): New functions.
82316         (enter_dir, leave_dir): Define trivial
82317         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82318         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82319         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82320         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82321         Move to fts-cycle.c.
82322         (fts_open): Use setup_dir.
82323         (fts_close): Use free_dir.
82324         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82325         This adds a label and some gotos, but the alternatives were messier.
82326         Check for memory allocation failure when entering a dir.
82327         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82328         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82329         (FTS): New member fts_cycle, that is a union that contains the
82330         old active_dir_ht and cycle_state.  All uses changed to mention
82331         fts_cycle.ht and fts_cycle.state.
82332         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82333         fts.c, with the following changes:
82334         (setup_dir, free_dir): New functions.
82335         (enter_dir): Now returns bool.  Return true if successful, false
82336         if memory exhausted.  All callers changed.
82337         Do not bother partly cleaning up on
82338         memory allocation failure; that is free_dir's job.
82339         However, free ad if hash_insert fails, to avoid memory leak.
82340         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82341         fts->fts_options to see which union member to use.
82342
82343 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82346         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82347
82348 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82349
82350         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82351
82352 2005-05-20  Jim Meyering  <jim@meyering.net>
82353
82354         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82355         Now a macro, to pacify GCC.
82356
82357 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82358
82359         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82360         of -1.
82361
82362 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82363
82364         * lib/chown.c (rpl_chown): Return -1 on failure.
82365
82366 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82369         Don't check for stddef.h.
82370         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82371         don't use its results.
82372         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82373         since we include them unconditionally.  Don't require
82374         AM_STDBOOL_H, since stdbool is a prerequisite.
82375         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82376         since we assume C89 or better.
82377         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82378         as we don't use their results.
82379         Don't check for fchdir, memmove, memset, strrchr, as we use
82380         them unconditionally.
82381         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82382         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82383
82384 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82385
82386         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82387         Include <stddef.h> unconditionally, since we assume C89 now.
82388         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82389         * lib/fts.c: Include fts_.h first, to check interface.
82390         Do not include intprops.h; no longer needed.
82391         Include cycle-check.h and hash.h, since fts_.h no longer does.
82392         Remove unnecessary casts of closedir to void.
82393         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82394         decide whether to decrement nlinks.
82395         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82396         (FTS): Use struct hash_table * instead of Hash_table, so that
82397         we no longer need to include hash.h here.
82398
82399 2005-05-18  Jim Meyering  <jim@meyering.net>
82400
82401         * modules/dirfd (License): Change to LGPL.  Most of the code
82402         is already in the public domain.
82403
82404 2005-05-18  Jim Meyering  <jim@meyering.net>
82405
82406         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82407         Reported by Yoann Vandoorselaere.
82408
82409 2005-05-17  Jim Meyering  <jim@meyering.net>
82410
82411         * m4/fts.m4: New file, from coreutils.
82412
82413 2005-05-17  Jim Meyering  <jim@meyering.net>
82414
82415         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82416
82417 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82418
82419         Sync from coreutils.
82420         * m4/unlinkdir.m4: New file.
82421
82422 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82423
82424         Sync from coreutils.
82425         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82426         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82427         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82428         White space changes only.
82429         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82430         special.
82431         * lib/yesno.c: Include getline.h, not ctype.h.
82432         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82433         Use getline to remove arbitrary restriction on response length.
82434
82435 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82436
82437         * config/srclist-update: Spell out "Street" in FSF postal
82438         mail address; this is the style the FSF seems to prefer.
82439
82440         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82441         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82442         this updates FSF postal mail address.
82443
82444         Sync from coreutils.
82445         * modules/unlinkdir: New file.
82446         * modules/yesno (Depends-on): Add getline.
82447         * MODULES.html.sh (File system functions): Add unlinkdir.
82448
82449 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82452         lib/strsep.h:
82453         Change the initial comment to refer to GPL, not LGPL.
82454         gnulib-tool will change it to LGPL as needed.
82455
82456         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82457         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82458         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82459         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82460         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82461         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82462         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82463         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82464         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82465         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82466         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82467         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82468         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82469         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82470         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82471         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82472         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82473         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82474         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82475         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82476         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82477         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82478         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82479         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82480         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82481         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82482         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82483         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82484         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82485         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82486         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82487         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82488         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82489         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82490         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82491         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82492         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82493         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82494         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82495         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82496         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82497         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82498         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82499         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82500         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82501         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82502         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82503         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82504         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82505         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82506         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82507         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82508         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82509         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82510         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82511         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82512         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82513         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82514         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82515         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82516         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82517         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82518         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82519         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82520         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82521         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82522         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82523         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82524         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82525         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82526         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82527         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82528         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82529         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82530         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82531         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82532         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82533         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82534         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82535         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82536         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82537         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82538         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82539         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82540         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82541         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82542         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82543         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82544         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82545         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82546         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82547         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82548         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82549         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82550         lib/yesno.c, lib/yesno.h:
82551         Update FSF postal mail address.
82552
82553 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82554
82555         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82556         tests/test-memmem.c, tests/test-stpncpy.c:
82557         Update FSF postal mail address.
82558
82559 2005-05-13  Bruno Haible  <bruno@clisp.org>
82560
82561         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82562         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82563         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82564         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82565         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82566         Add support for 64-bit integers in the MSVC compiler.
82567
82568 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82569
82570         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82571
82572 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82573
82574         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82575
82576 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82577
82578         * doc/getdate.texi (General date syntax): Don't say that date
82579         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82580         Problem reported by Nic Ferrier.
82581
82582 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82583
82584         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82585         specified in ai_socktype. Fix invalid ai_protocol
82586         check. ai_protocol is usually set to 0 or depending on
82587         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82588         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82589         ai_socktype / ai_protocol in the returned addrinfo structure.
82590
82591 2005-05-10  Simon Josefsson  <jas@extundo.com>
82592
82593         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82594         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82595
82596 2005-05-10  Karl Berry  <karl@gnu.org>
82597
82598         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82599         (from http://www.gnu.org/licenses).
82600         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82601         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82602         fdl.texi suffices.
82603
82604 2005-05-10  Karl Berry  <karl@gnu.org>
82605
82606         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82607         (COPYING.DOC): remove.
82608
82609         * config/srclist-update: new FSF address.
82610
82611 2005-05-10  Derek Price  <derek@ximbiot.com>
82612
82613         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82614         possible.
82615
82616 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82617             Bruno Haible  <bruno@clisp.org>
82618
82619         * modules/inet_ntop: New file.
82620         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82621         inet_ntop.
82622
82623 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82624             Bruno Haible  <bruno@clisp.org>
82625
82626         * m4/inet_ntop.m4: New file.
82627
82628 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82629             Bruno Haible  <bruno@clisp.org>
82630
82631         * lib/inet_ntop.h: New file.
82632         * lib/inet_ntop.c: New file, from glibc with modifications.
82633
82634 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * modules/time_r (License): Change to LGPL.
82637         * modules/extensions (License): Change to LGPL.  Actually,
82638         the license is more permissive than that, but currently gnulib-tool
82639         doesn't know how to handle more-permissive licenses.
82640
82641         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82642         Problem reported by Dave Love.
82643
82644 2005-05-08  Jim Meyering  <jim@meyering.net>
82645
82646         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82647         blank.
82648
82649 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82650
82651         * modules/argmatch (Depends-on): Add stdbool.
82652         * modules/backupfile (Depends-on): Likewise.
82653         * modules/chdir-long (Depends-on): Likewise.
82654         * modules/closeout (Depends-on): Likewise.
82655         * modules/cycle-check (Depends-on): Likewise.
82656         * modules/dirname (Depends-on): Likewise.
82657         * modules/fnmatch (Depends-on): Likewise.
82658         * modules/fsusage (Depends-on): Likewise.
82659         * modules/fwriteerror (Depends-on): Likewise.
82660         * modules/getcwd (Depends-on): Likewise.
82661         * modules/getloadavg (Depends-on): Likewise.
82662         * modules/hard-locale (Depends-on): Likewise.
82663         * modules/makepath (Depends-on): Likewise.
82664         * modules/mountlist (Depends-on): Likewise.
82665         * modules/nanosleep (Depends-on): Likewise.
82666         * modules/posixtm (Depends-on): Likewise.
82667         * modules/quotearg (Depends-on): Likewise.
82668         * modules/readtokens (Depends-on): Likewise.
82669         * modules/readtokens0 (Depends-on): Likewise.
82670         * modules/readutmp (Depends-on): Likewise.
82671         * modules/save-cwd (Depends-on): Likewise.
82672         * modules/strftime (Depends-on): Likewise.
82673         * modules/userspec (Depends-on): Likewise.
82674         * modules/utimecmp (Depends-on): Likewise.
82675         * modules/xgetcwd (Depends-on): Likewise.
82676         * modules/xnanosleep (Depends-on): Likewise.
82677         * modules/xstrtod (Depends-on): Likewise.
82678         * modules/yesno (Depends-on): Likewise.
82679
82680 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82683         needless checks.
82684
82685 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         Merge from coreutils.  Among other things,
82688         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82689         * lib/fd-safer.c: New file.
82690         * lib/fcntl-safer.h, open-safer.c: Remove.
82691         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82692         * lib/dup-safer.c: Include unistd-safer.h first.
82693         Don't include errno.h.
82694         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82695         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82696         * lib/file-type.c: Rely on file-type.h change.
82697         * lib/getloadavg.c: Include unistd-safer.h.
82698         (getloadavg): Use safer open.
82699         * lib/getusershell.c: Include "stdio-safer.h".
82700         (getusershell): Use safer fopen.
82701         * lib/long-options.c (long_options): Use NULL rather than 0.
82702         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82703         'free'.
82704         * lib/modechange.c: Likewise.
82705         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82706         (MODE_DONE): New constant.
82707         (struct mode_change): Remove 'next' member.
82708         (make_node_op_equals): New function; like the old one of the
82709         same name, except it allocates an array.
82710         (mode_compile, mode_create_from_ref): Use it.
82711         (mode_compile): Allocate result as an array, not a linked list.
82712         Parse octal string ourself, so that we catch mistakes like "+0".
82713         (mode_adjust): Arg is an array, not a linked list.
82714         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82715         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82716         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82717         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82718         Remove.  This is now stat-macros.h's job.
82719         (talloc): Remove.  All callers replaced by xalloc, so that
82720         our invokers don't have to worry about reporting memory failures.
82721         (make_node_op_equals): Remove.
82722         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82723         New constants.
82724         (struct mode_change): Moved here from modechange.h.
82725         (mode_append_entry): Remove.
82726         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82727         apps to have incorrect behavior.  Use simpler algorithm for head
82728         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82729         Detect more invalid usages rather than having somewhat-random behavior.
82730         Don't insert an "a=" action, as that leads to incorrect behavior.
82731         (mode_compile, mode_create_from_ref): Return NULL on error instead
82732         of an enum, since now there's only one way to have an error.  All
82733         callers changed.
82734         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82735         at the correct time.  Simplify calculation of "+u" and its ilk.
82736         Don't mishandle "+X".
82737         (mode_free): Remove "register" and localize decls.
82738         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82739         (struct mode_change): Move to modechange.c; callers don't
82740         need to see this stuff.
82741         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82742         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82743         (mode_change, mode_adjust): Reflect the new signatures noted above.
82744         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82745         that might redefine system include files.
82746         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82747         (my_usleep): Use NULL rather than (void *) 0.
82748         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82749         Use siginterrupt to specify that system calls should be interrupted.
82750         (rpl_nanosleep): Move initialization of suspended closer to call of
82751         my_usleep.
82752         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82753         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82754         (desirable_utmp_entry): New function.
82755         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82756         using x2nrealloc, to simplify logic.
82757         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82758         size calculation.  Do not assume utmp file is a regular file.
82759         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82760         (READ_UTMP_CHECK_PIDS): New constant.
82761         * lib/save-cwd.c: Include unistd-safer.h.
82762         (save_cwd): Use fd_safer.
82763         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82764         [!_LIBC] Include "stat-macros.h" instead.
82765         * lib/unistd-safer.h (fd_safer): New decl.
82766
82767 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * modules/getloadavg (Depends-on): Add unistd-safer.
82770         * modules/getusershell (Depends-on): Add stdio-safer.
82771         * modules/lstat (Depends-on): Remove xalloc.
82772         * modules/mkstemp (Depends-on): Add stat-macros.
82773         * modules/modechange (Depends-on): Remove xstrtol.
82774         Add stat-macros, xalloc.
82775         * modules/save-cwd (Depends-on): Add unistd-safer.
82776         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82777         * modules/unistd-safer (Files): Add lib/fd-safer.c
82778         (Makefile.am): Remove lib_SOURCES.
82779
82780         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82781         Remove fcntl-safer; unistd-safer supersedes it.
82782
82783 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82786         AC_HEADER_STAT.
82787         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82788         (gl_PREREQ_CHOWN): Remove.
82789         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82790         it.  Don't require AC_HEADER_STAT.
82791         (gl_PREREQ_LSTAT): Remove.
82792         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82793         Don't require AC_HEADER_STAT.
82794         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82795         (gl_PREREQ_RMDIR): Remove.
82796         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82797         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82798         the stat-macros module a prerequisite.
82799         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82800         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82801         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82802         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82803         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82804         variable names.
82805         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82806         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82807         variable prefixes.
82808         * m4/fcntl-safer.m4: Remove.
82809         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82810         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82811         Invoke gl_PREREQ_FD_SAFER.
82812         (gl_PREREQ_FD_SAFER): New macro.
82813         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82814         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82815         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82816         Remove duplicate call to AC_LIBOBJ(readutmp).
82817         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82818
82819         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82820         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82821
82822 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82823
82824         * MODULES.html.sh (Misc): Add byteswap.
82825
82826 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82827
82828         * modules/getcwd (Depends-on): Add extensions.
82829         * modules/openat (Depends-on): Likewise.
82830
82831 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82832
82833         * modules/byteswap: New file.
82834
82835 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82836
82837         * m4/byteswap.m4: New file.
82838
82839 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82840
82841         * lib/byteswap_.h: New file.
82842
82843 2005-04-25  Karl Berry  <karl@gnu.org>
82844
82845         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82846
82847 2005-04-25  Albert Chin  <china@thewrittenword.com>
82848
82849         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82850         Toolkit C bug.
82851
82852 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82853
82854         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82855         (func_ln_if_changed): Remove forcibly for no error message
82856         in case file does not exist.
82857
82858 2005-04-19  Simon Josefsson  <jas@extundo.com>
82859
82860         * gnulib-tool (Options): Make --symlink mean --symbolic.
82861
82862 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82863
82864         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82865
82866 2005-04-16  Simon Josefsson  <jas@extundo.com>
82867
82868         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82869
82870 2005-04-15  Simon Josefsson  <jas@extundo.com>
82871
82872         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82873
82874 2005-04-15  Simon Josefsson  <jas@extundo.com>
82875
82876         * gnulib-tool: Rename --symlink to --symbolic.
82877
82878 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82879
82880         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82881         symbolic links to files instead of copying/moving.  Add --aux-dir,
82882         specifying directory relative --dir where auxiliary build tools
82883         are placed.
82884
82885 2005-04-14  Bruno Haible  <bruno@clisp.org>
82886
82887         * modules/allocsa (License): Change to LGPL.
82888         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82889
82890 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82893         that "UTC +1 second" continues to work.  Problem reported
82894         by Dmitry V. Levin.
82895         (relunit_snumber): New rule.
82896         (relunit): Use it.
82897
82898 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82899
82900         * lib/getdate.y (universal_time_zone_table): New constant.
82901         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82902         universal_time_zone_table.
82903         (lookup_zone): Prefer universal_time_zone_table to
82904         local_time_zone_table, so that "GMT" time stamps are allowed in
82905         London during the summer.  Problem reported by Ian Abbott.
82906
82907 2005-04-12  Jim Meyering  <jim@meyering.net>
82908
82909         * lib/human.c (humblock): Set *options even when returning due to
82910         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82911         warning from gcc-4.
82912
82913 2005-04-09  Jim Meyering  <jim@meyering.net>
82914
82915         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82916         -Wuninitialized: initialize tm0.tm_year.
82917
82918 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82921         count, since there's no maximum.  All uses changed.
82922         Add member dsts_seen.
82923         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82924         not being INT_MAX.
82925         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82926         Use pc_rels_seen to decide whther a date is absolute.
82927
82928         * lib/getdate.y (number): Don't overwrite year.
82929         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82930         check.
82931
82932 2005-04-02  Simon Josefsson  <jas@extundo.com>
82933
82934         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82935         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82936
82937 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82938
82939         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82940         where no absolute path name can be longer than PATH_MAX.
82941
82942 2005-03-27  Jim Meyering  <jim@meyering.net>
82943
82944         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82945
82946 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82949         "one's complement" -> "ones' complement" in comment, as per Knuth.
82950         "value of type" -> "type or expression" in comment.
82951         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82952
82953 2005-03-26  Jim Meyering  <jim@meyering.net>
82954
82955         Comment nits.
82956         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82957         Correct typos: s/or/of/.
82958
82959 2005-03-26  Jim Meyering  <jim@meyering.net>
82960
82961         * modules/check-include-files: Move to ../ and rename to...
82962         * check-module: ...this.
82963
82964 2005-03-25  Jim Meyering  <jim@meyering.net>
82965
82966         * modules/xvasprintf (Files): Add xalloc.h.
82967
82968 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82969
82970         * modules/gettext (Files): config/config.rpath ->
82971         build-aux/config.rpath
82972         * modules/iconv (Files): Likewise.
82973         Problem reported by Oskar Liljeblad.
82974
82975 2005-03-23  Jim Meyering  <jim@meyering.net>
82976
82977         * modules/check-include-files: New script to check for
82978         missing dependencies, multiple includes, etc.
82979
82980         * modules/c-strtold (Depends-on): Add xalloc.
82981         * modules/c-strtod (Depends-on): Add xalloc.
82982         * modules/hash (Depends-on): Add xalloc.
82983         (Files): Remove lib/xalloc.h.
82984
82985         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82986         * modules/userspec (Files): Add lib/inttostr.h.
82987
82988 2005-03-23  Jim Meyering  <jim@meyering.net>
82989
82990         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82991
82992 2005-03-22  Jim Meyering  <jim@meyering.net>
82993
82994         * modules/stat-macros: New module.
82995         * modules/canonicalize, modules/euidaccess, modules/file-type,
82996         * modules/filemode, modules/lchown, modules/makepath,
82997         * modules/rmdir, modules/stat: Depend on new stat-macros module
82998         rather than listing lib/stat-macros.h manually.
82999         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83000
83001 2005-03-22  Jim Meyering  <jim@meyering.net>
83002
83003         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83004
83005 2005-03-22  Bruno Haible  <bruno@clisp.org>
83006
83007         * config/srclist.txt: Replace target directory 'config' with
83008         'build-aux'.
83009         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83010         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83011         ../build-aux/.
83012
83013 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83014
83015         * modules/chdir-long (Depends-on): Add mempcpy.
83016
83017         * modules/acl, modules/backupfile, modules/c-strtod,
83018         modules/c-strtold, modules/canon-host, modules/canonicalize,
83019         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83020         modules/exclude, modules/exitfail, modules/file-type,
83021         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83022         modules/getdate, modules/getline, modules/getpagesize,
83023         modules/getpass, modules/getugroups, modules/group-member,
83024         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83025         modules/inttostr, modules/long-options, modules/makepath,
83026         modules/md5, modules/memcasecmp, modules/memcoll,
83027         modules/modechange, modules/mountlist, modules/path-concat,
83028         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83029         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83030         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83031         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83032         modules/strftime, modules/strndup, modules/strverscmp,
83033         modules/timespec, modules/unlocked-io, modules/userspec,
83034         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83035         modules/yesno:
83036         Remove lib_SOURCES line from Makefile.am section, as this is now
83037         done automatically by the corresponding Autoconf macro.
83038
83039 2005-03-21  Jim Meyering  <jim@meyering.net>
83040
83041         Changes imported from coreutils.
83042
83043         * lib/cycle-check.c: Don't include xalloc.h.
83044
83045         * lib/path-concat.c: Don't include assert.h.
83046         (path_concat): Remove assertion that would have triggered
83047         for ABASE starting with more than one slash.
83048         Reported by Andreas Schwab.
83049
83050         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83051         properly when ABASE is an absolute file name.
83052         Correct the description of this function.
83053         Include <assert.h>.
83054         Add an assertion and a test driver.
83055         This fixes a bug introduced on 2004-07-02.
83056         Andreas Schwab reported the resulting failure of cp --parents:
83057         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83058
83059 2005-03-21  Jim Meyering  <jim@meyering.net>
83060
83061         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83062         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83063
83064 2005-03-21  Jim Meyering  <jim@meyering.net>
83065         and  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83068         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83069         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83070         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83071         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83072         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83073         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83074         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83075         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83076         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83077         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83078         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83079         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83080         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83081         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83082         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83083         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83084         for these modules.
83085
83086 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83087
83088         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83089         (which shouldn't happen), generate nothing instead of returning 0
83090         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83091
83092 2005-03-16  Bruno Haible  <bruno@clisp.org>
83093
83094         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83095         HAVE_LONGLONG_64BIT.
83096
83097 2005-03-16  Bruno Haible  <bruno@clisp.org>
83098
83099         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83100         HAVE_LONGLONG_64BIT.
83101
83102 2005-03-16  Bruno Haible  <bruno@clisp.org>
83103
83104         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83105         HAVE_LONGLONG_64BIT.
83106
83107 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83110         reliably distinguish strftime failure from empty output on POSIX
83111         hosts.
83112
83113 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83114
83115         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83116         (iconv_string): Don't guess a size-zero buffer, as that might cause
83117         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83118         result would be 'too large', where 'too large' is (heuristically)
83119         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83120         overflow concerns.  This will prevent some unwanted malloc failures
83121         when the inputs are very large.
83122
83123 2005-03-15  Karl Berry  <karl@gnu.org>
83124
83125         * config/srclist.txt (config.rpath): from gettext.
83126         * config/config.rpath: update.
83127
83128 2005-03-15  Bruno Haible  <bruno@clisp.org>
83129
83130         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83131         to 'negate'.
83132
83133         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83134         variable.
83135
83136         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83137         results.
83138
83139 2005-03-14  Simon Josefsson  <jas@extundo.com>
83140
83141         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83142         <fx@gnu.org>.
83143
83144 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83145
83146         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83147         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83148         intprops.h.
83149         * lib/strtol.c: Likewise.
83150
83151 2005-03-14  Jim Meyering  <jim@meyering.net>
83152
83153         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83154         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83155         to be nonzero so that we (and caller) can detect the difference
83156         between a valid zero-length expansion and an error return, even
83157         when the underlying strftime fails before writing anything into
83158         that location.
83159
83160 2005-03-14  Bruno Haible  <bruno@clisp.org>
83161
83162         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83163         Update from GNU gettext 0.14.3.
83164
83165 2005-03-10  Jim Meyering  <jim@meyering.net>
83166
83167         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83168
83169 2005-03-10  Jim Meyering  <jim@meyering.net>
83170
83171         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83172         so that this module works on systems without fchdir.
83173
83174 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83175
83176         Factor int-properties macros into a single file, except for
83177         glibc-related files.
83178         * lib/intprops.h: New file.
83179         * lib/getloadavg.c: Include it instead of limits.h.
83180         (INT_STRLEN_BOUND): Remove.
83181         * lib/human.c: Include intprops.h.
83182         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83183         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83184         302/1000.
83185         * lib/inttostr.h: Include intprops.h instead of limits.h.
83186         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83187         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83188         for consistency with intprops.h.
83189         (time_t_is_integer, twos_complement_arithmetic): Use them.
83190         * lib/sig2str.h: Include <signal.h>, intprops.h.
83191         (INT_STRLEN_BOUND): Remove.
83192         * lib/strftime.c (TYPE_SIGNED): Remove.
83193         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83194         * lib/strtol.c: Adjust comments to match intprops.h.
83195         * lib/userspec.c: Include intprops.h.
83196         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83197         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83198         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83199         instead of rolling our own expressions.
83200         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83201
83202         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83203         instead of int.
83204         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83205         the right thing even if adding 1900 would overflow.  Similarly
83206         for tm_mon + 1 and tm_yday + 1.
83207         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83208         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83209         (DO_SIGNED_NUMBER): New macro.
83210         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83211
83212 2005-03-07  Bruno Haible  <bruno@clisp.org>
83213
83214         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83215
83216 2005-03-07  Bruno Haible  <bruno@clisp.org>
83217
83218         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83219
83220 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83221
83222         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83223         (func_import): Only replace files via --import when they have actually
83224         changed.
83225
83226 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83227
83228         * m4/mmap-anon.m4: New file.
83229         * m4/pagealign_alloc.m4: New file.
83230
83231 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83232             Bruno Haible  <bruno@clisp.org>
83233
83234         * modules/pagealign_alloc: New file.
83235         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83236
83237 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83238             Bruno Haible  <bruno@clisp.org>
83239
83240         * lib/pagealign_alloc.h: New file.
83241         * lib/pagealign_alloc.c: New file.
83242
83243 2005-03-03  Bruno Haible  <bruno@clisp.org>
83244
83245         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83246         Use an all-permissive copyright notice, recommended by RMS.
83247
83248 2005-03-02  Bruno Haible  <bruno@clisp.org>
83249
83250         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83251         of AIX, the replacement has to be done only after <string.h> is
83252         included, therefore not in config.h. stpncpy.h does the replacement,
83253         and stpncpy.c uses it.
83254
83255 2005-03-02  Bruno Haible  <bruno@clisp.org>
83256
83257         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83258         stpncpy.c uses it.
83259
83260 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83261
83262         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83263         The workaround isn't strictly needed for POSIX conformance, and
83264         it's too much of a pain to configure and maintain.  We'll ask
83265         people to fix their kernels instead.
83266         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83267         (NANOSLEEP_BUG_WORKAROUND): Remove.
83268         (xnanosleep): Remove the workaround.
83269
83270 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83273         Reported by Derek Price.
83274         (Include): Add "timespec.h".
83275
83276         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83277
83278 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83279
83280         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83281         to detect nanosleep bug.
83282
83283 2005-03-01  Bruno Haible  <bruno@clisp.org>
83284
83285         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83286
83287 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83288
83289         * modules/gethrxtime: New file.
83290         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83291         (Depends-on): Add gethrxtime.
83292         (configure.ac): Add gl_XNANOSLEEP.
83293         (Makefile.am): Remove lib_SOURCES line.
83294
83295 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83296
83297         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83298         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83299
83300 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83301
83302         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83303         * lib/timespec.h (gettime): Return void, since it always
83304         succeeds now.  All uses changed.
83305         * lib/gettime.c (gettime): Likewise.
83306         [HAVE_NANOTIME]: Prefer nanotime.
83307         Assume gettimeofday succeeds, as POSIX requires.
83308         Assime time () succeeds, since other code already does.
83309         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83310         (timespec_subtract): Remove.
83311         (NANOSLEEP_BUG_WORKAROUND): New constant.
83312         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83313         things considerably.  Use it only on GNU/Linux hosts, since the
83314         workaround shouldn't be needed elsewhere.
83315
83316 2005-02-24  Bruno Haible  <bruno@clisp.org>
83317
83318         * modules/gettext (Files): Add m4/glibc2.m4.
83319
83320 2005-02-24  Bruno Haible  <bruno@clisp.org>
83321
83322         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83323         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83324         * m4/progtest.m4:
83325         Update from GNU gettext 0.14.2.
83326         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83327
83328 2005-02-24  Bruno Haible  <bruno@clisp.org>
83329
83330         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83331         * lib/config.charset: Update from GNU gettext 0.14.2.
83332
83333 2005-02-24  Bruno Haible  <bruno@clisp.org>
83334
83335         * lib/gettext.h: Update from GNU gettext 0.14.2.
83336
83337 2005-02-23  Simon Josefsson  <jas@extundo.com>
83338
83339         * m4/iconvme.m4: New file.
83340
83341 2005-02-23  Jim Meyering  <jim@meyering.net>
83342
83343         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83344         change.
83345         Thanks to Bruno Haible for catching it.
83346
83347 2005-02-22  Simon Josefsson  <jas@extundo.com>
83348
83349         * modules/iconvme: New file.
83350
83351         * MODULES.html.sh: Add iconvme.
83352
83353 2005-02-22  Simon Josefsson  <jas@extundo.com>
83354
83355         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83356
83357 2005-02-22  Simon Josefsson  <jas@extundo.com>
83358
83359         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83360
83361 2005-02-22  Jim Meyering  <jim@meyering.net>
83362
83363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83364         s/ifndef/ifdef/.
83365
83366 2005-02-20  Neil Conway  <neilc@samurai.com>
83367
83368         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83369         returned by OSX/Darwin if the specified buffer is not large
83370         enough for the hostname.
83371
83372 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83373
83374         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83375         pass it to _help, otherwise the latter coredumps trying to
83376         dereference state.root_argp.
83377
83378 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         * modules/chdir-long (Depends-on): Add memrchr.
83381         * modules/memrchr (Files): Add lib/memrchr.h.
83382         (Include): "memrchr.h".
83383
83384 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83385
83386         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83387
83388 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83389
83390         * lib/memrchr.h: New file.
83391         * lib/chdir-long.c: Include it.
83392         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83393         Don't bother including stddef.h.
83394
83395 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83398         inclusion.
83399         Include <sys/types.h>, for dev_t.
83400         (ME_DUMMY, ME_REMOTE): Move from here....
83401         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83402         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83403         Dmitry V. Levin.
83404         Include mountlist.h first, to test the interface.
83405
83406 2005-01-29  Bruno Haible  <bruno@clisp.org>
83407
83408         * lib/progname.c (program_name): Initialize.
83409         Needed when linking statically on MacOS X.
83410
83411 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         Sync from coreutils.
83414         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83415         (Depends-on): Add c-strtod.
83416         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83417
83418 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83419
83420         Sync from coreutils.
83421         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83422
83423         Remove files that are specific to coreutils.
83424         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83425
83426 2005-01-28  Bruno Haible  <bruno@clisp.org>
83427
83428         * modules/javacomp: New file.
83429         * MODULES.html.sh (Java): Add javacomp.
83430
83431 2005-01-28  Bruno Haible  <bruno@clisp.org>
83432
83433         * m4/javacomp.m4: New file, from GNU gettext.
83434
83435 2005-01-28  Bruno Haible  <bruno@clisp.org>
83436
83437         * lib/javacomp.sh.in: New file, from GNU gettext.
83438         * lib/javacomp.h: New file, from GNU gettext.
83439         * lib/javacomp.c: New file, from GNU gettext.
83440
83441 2005-01-26  Simon Josefsson  <jas@extundo.com>
83442
83443         * lib/gai_strerror.c: Use GPL in header.
83444
83445 2005-01-26  Bruno Haible  <bruno@clisp.org>
83446
83447         * modules/javaexec: New file.
83448         * MODULES.html.sh (Java): Add javaexec.
83449
83450 2005-01-26  Bruno Haible  <bruno@clisp.org>
83451
83452         * m4/javaexec.m4: New file, from GNU gettext.
83453
83454 2005-01-26  Bruno Haible  <bruno@clisp.org>
83455
83456         * lib/javaexec.sh.in: New file, from GNU gettext.
83457         * lib/javaexec.h: New file, from GNU gettext.
83458         * lib/javaexec.c: New file, from GNU gettext.
83459
83460 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83461
83462         * modules/lchown (Depends-on): Remove lchown.h
83463
83464 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83465
83466         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83467         must be defined if the header file was not found, in order
83468         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83469
83470 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83471
83472         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83473         initializers for struct pentry_state.
83474         (__argp_error): Check return value of __asprintf
83475         (__argp_failure): Translate error message
83476
83477         * lib/argp-parse.c: Removed braces around the expansion of N_()
83478
83479 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83480
83481         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83482         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83483         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83484         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83485         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83486         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83487         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83488         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83489         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83490         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83491         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83492         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83493         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83494         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83495         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83496         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83497         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83498         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83499         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83500         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83501         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83502         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83503         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83504         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83505         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83506         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83507         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83508         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83509         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83510         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83511         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83512         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83513         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83514         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83515         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83516         Use an all-permissive copyright notice, recommended by RMS.
83517
83518 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83519
83520         * modules/chdir-long (Depends-on): Remove mempcpy.
83521
83522 2005-01-21  Jim Meyering  <jim@meyering.net>
83523
83524         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83525         same value as for Solaris 9.
83526
83527         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83528         component length.  This included changing the parameter to be
83529         of type `char *' rather than `char const *'.
83530         * lib/chdir-long.h (chdir_long): Update prototype.
83531
83532         * lib/openat.c (fdopendir, fstatat): New functions.
83533         * lib/openat.h: Include headers required for use of DIR and struct
83534         stat.
83535         [AT_SYMLINK_NOFOLLOW]: Define.
83536         (fdopendir, fstatat): Add prototypes.
83537
83538 2005-01-21  Bruno Haible  <bruno@clisp.org>
83539
83540         * modules/classpath: New file.
83541         * MODULES.html.sh (Java): Add classpath.
83542
83543 2005-01-21  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/classpath.h: New file, from GNU gettext.
83546         * lib/classpath.c: New file, from GNU gettext.
83547
83548 2005-01-20  Simon Josefsson  <jas@extundo.com>
83549
83550         * modules/version-etc-fsf: New file.
83551
83552 2005-01-20  Simon Josefsson  <jas@extundo.com>
83553
83554         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83555         * lib/version-etc.c: Remove version_etc_copyright.
83556         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83557         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83558
83559 2005-01-20  Simon Josefsson  <jas@extundo.com>
83560
83561         * lib/base64.h (isbase64): Add.
83562
83563         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83564         using a unsigned prototype, don't inline.
83565         (base64_decode): Use it.
83566
83567 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83568
83569         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83570         it.
83571
83572 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83573
83574         * lib/save-cwd.c (save_cwd): Remove code to support the case
83575         where fchdir is missing or flaky.
83576
83577 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83580
83581 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83582
83583         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83584         AC_LIBSOURCES now does this.
83585         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83586         with new ullong_max module.
83587
83588 2005-01-19  Bruno Haible  <bruno@clisp.org>
83589
83590         * modules/sh-quote: New file.
83591         * MODULES.html.sh (Executing programs): Add sh-quote.
83592
83593 2005-01-19  Bruno Haible  <bruno@clisp.org>
83594
83595         * lib/sh-quote.h: New file, from GNU gettext.
83596         * lib/sh-quote.c: New file, from GNU gettext.
83597
83598 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83599
83600         Merge from coreutils.
83601         * m4/ullong_max.m4: New file.
83602         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83603         (gl_MACROS): Assume localeconv exists.
83604
83605 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         Merge changes from coreutils, as described below in several
83608         changelogs dated today.
83609
83610         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83611         (O_DIRECTORY): Remove; not needed here, since "." must be
83612         a directory.  All uses removed.
83613         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83614         universal on Suns, and we also need to test for IRIX.
83615         Revamp code to use 'if' rather than '#if'.
83616         Avoid unnecessary comparison of cwd->desc to 0.
83617
83618         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83619         for known valid error numbers rather than observed invalid ones.
83620
83621 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83622
83623         * modules/ullong_max: New file.
83624
83625         * modules/chdir-long, modules/openat: New files.
83626         * modules/save-cwd (Depends-on): Depend on chdir-long.
83627         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83628
83629 2005-01-18  Jim Meyering  <jim@meyering.net>
83630
83631         Merge from coreutils.
83632         * m4/chdir-long.m4, m4/openat.m4: New files.
83633         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83634         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83635         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83636         is sane and DOES follow symlinks.  Besides, testing 20 different
83637         systems found no broken chown implementations.
83638         Prompted by a change in rsync's copy of this macro.
83639         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83640
83641         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83642
83643         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83644         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83645         NULL-means-set-to-current-time semantics.
83646         Remove temporary file immediately, rather than waiting
83647         for configure's at-exit trap code to do it.
83648
83649 2005-01-18  Jim Meyering  <jim@meyering.net>
83650
83651         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83652
83653         * lib/utimens.c (futimens): Account for the fact that futimes
83654         can also fail with errno == ENOSYS or errno == ENOENT.
83655         Patch from Dmitry V. Levin.
83656
83657         Change the name of the robust chdir function from chdir to chdir_long.
83658         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83659         (restore_cwd): Use chdir_long, not chdir.
83660         * lib/chdir-long.c: Renamed from chdir.c.
83661         * lib/chdir-long.h: Renamed from chdir.h.
83662         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83663         Hurd.
83664
83665 2005-01-18  Bruno Haible  <bruno@clisp.org>
83666
83667         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83668         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83669         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83670         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83671         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83672         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83673         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83674         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83675         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83676         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83677         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83678         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83679         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83680         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83681         Use an all-permissive copyright notice, recommended by RMS.
83682
83683 2005-01-18  Bob Proulx  <bob@proulx.com>
83684
83685         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83686         simplify offsetof() macro construct to avoid compile failure with
83687         native HP-UX 11.0 ANSI C compiler.
83688
83689 2005-01-17  Bruno Haible  <bruno@clisp.org>
83690
83691         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83692         redundant because stpncpy.m4 takes care of it.
83693
83694 2005-01-17  Bruno Haible  <bruno@clisp.org>
83695
83696         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83697
83698 2005-01-17  Bruno Haible  <bruno@clisp.org>
83699
83700         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83701         used.
83702
83703 2005-01-17  Bruno Haible  <bruno@clisp.org>
83704
83705         * lib/fwriteerror.h (fwriteerror): Change specification to include
83706         fclose.
83707         * lib/fwriteerror.c: Include <stdbool.h>.
83708         (fwriteerror): At the end, close the file stream. Record whether
83709         stdout was already closed.
83710
83711 2005-01-17  Bruno Haible  <bruno@clisp.org>
83712
83713         * lib/execute.c (environ): Declare if needed.
83714         * lib/pipe.c (environ): Likewise.
83715         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83716
83717 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83718
83719         * modules/argp: Depend on vsnprintf
83720
83721 2005-01-10  Jim Meyering  <jim@meyering.net>
83722
83723         * modules/closeout (Depends-on): Add atexit.
83724
83725 2005-01-06  Bruno Haible  <bruno@clisp.org>
83726
83727         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83728
83729 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83730
83731         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83732         definitions to be after all include files, to avoid collisions.
83733         Problem reported by Bob Proulx.
83734
83735 2005-01-04  Jim Meyering  <jim@meyering.net>
83736
83737         Changes imported from coreutils.
83738         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83739         as the mkstemp template, use a temporary directory and an
83740         8.3-friendly template to avoid trouble on systems like DJGPP.
83741         Reported by Juan M. Guerrero via Stepan Kasal.
83742         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83743         close. Remove the temporary directory right away, rather than waiting
83744         for configure's at-exit trap code to do it.
83745         Suggestion from Stepan Kasal.
83746
83747 2005-01-01  Simon Josefsson  <jas@extundo.com>
83748
83749         * gnulib-tool: Print #include directives when --import'ing.
83750
83751 2004-12-28  Simon Josefsson  <jas@extundo.com>
83752
83753         * tests/test-base64.c: Include required header files.  Remove
83754         unused variables.
83755
83756 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         * modules/error (Depends-on): Remove gettext.
83759
83760 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83761
83762         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83763         not needed.  This removes a dependency on the gettext module.
83764         [defined _LIBC]: Do not include <libintl.h>; not needed.
83765
83766 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83769         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83770
83771 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83772
83773         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83774         HAVE_DECL_STRTOLD.
83775
83776 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83777
83778         * modules/getdate (Depends-on): Remove alloca-opt.
83779
83780 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83783
83784 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * lib/argp-parse.c: Include <stddef.h>.
83787         (alignof, alignto): New macros.
83788         (parser_init): Don't assume that void * is aligned sufficiently
83789         for struct option.
83790
83791         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83792         need to extend the stack.
83793         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83794         large.
83795
83796 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83797
83798         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83799
83800 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83801
83802         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83803         (2004-10-24) change.  Apparently this was a false alarm.
83804
83805         * modules/getdate: Depend on alloca-opt, not alloca.
83806
83807 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83810         Remove now-obsolete comment about AIX.
83811         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83812         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83813         (YYMAXDEPTH): New macro.
83814
83815 2004-12-18  Simon Josefsson  <jas@extundo.com>
83816
83817         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83818
83819 2004-12-18  Bruno Haible  <bruno@clisp.org>
83820
83821         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83822
83823 2004-12-18  Bruno Haible  <bruno@clisp.org>
83824
83825         * lib/fatal-signal.c (fatal_signals): Make non-const.
83826         (init_fatal_signals): New function.
83827         (uninstall_handlers, install_handlers): Ignore signals that were set to
83828         SIG_IGN.
83829         (at_fatal_signal): Call init_fatal_signals.
83830         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83831         SIG_IGN.
83832         Reported by Paul Eggert.
83833
83834 2004-12-18  Bruno Haible  <bruno@clisp.org>
83835
83836         * doc/alloca.texi: New file.
83837         * doc/alloca-opt.texi: New file.
83838
83839 2004-12-17  Jim Meyering  <jim@meyering.net>
83840
83841         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83842         Otherwise, install-sh could exit with improper exit status when
83843         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83844
83845 2004-12-16  Simon Josefsson  <jas@extundo.com>
83846
83847         * tests/test-base64.c: Add license.
83848
83849 2004-12-15  Stepan Kasal  <address@hidden>
83850
83851         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83852
83853 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83854
83855         * modules/getcwd (Files): Add m4/d-ino.m4.
83856         Suggested by Mark D. Baushke.
83857
83858 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83859
83860         * lib/getdate.y (textint): New member "negative".
83861         (time_zone_hhmm): New function.
83862         Expect 14 shift-reduce conflicts, not 13.
83863         (o_colon_minutes): New rule.
83864         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83865         (yylex): Set the "negative" member of signed numbers.
83866
83867 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * doc/getdate.texi (Time of day items, Time zone items):
83870         Describe new formats +00:00, UTC+00:00.
83871
83872 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83873
83874         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83875         spurious "-l"s.  Problem reported by Stepan Kasal.
83876
83877 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83878
83879         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83880         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83881
83882 2004-12-04  Simon Josefsson  <jas@extundo.com>
83883
83884         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83885         Vandoorselaere <yoann@prelude-ids.org>.
83886
83887 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         Changes imported from coreutils.
83890         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83891         exist.
83892         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83893
83894 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83895
83896         Changes imported from coreutils.
83897         * lib/hard-locale.c: Assume <locale.h> exists.
83898         Include "strdup.h".
83899         (GLIBC_VERSION): New macro.
83900         (hard_locale): Assume setlocale exists.
83901         Rewrite to avoid #ifdef.
83902         Use strdup rather than malloc + strcpy.
83903         * lib/human.c: Assume <locale.h> exists.
83904         (human_readable): Assume localeconv exists.
83905
83906 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         * modules/hard-locale (Depends-on): Add strdup.
83909
83910 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83911
83912         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83913         convert T2, not T.  (Imported from libc.)
83914
83915 2004-11-30  Simon Josefsson  <jas@extundo.com>
83916
83917         * modules/restrict (License): Change to LGPL.
83918
83919 2004-11-30  Simon Josefsson  <jas@extundo.com>
83920
83921         * m4/restrict.m4: Add copyright and copying conditions.
83922
83923 2004-11-30  Simon Josefsson  <jas@extundo.com>
83924
83925         * m4/base64.m4: New file.
83926
83927 2004-11-30  Simon Josefsson  <jas@extundo.com>
83928
83929         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83930         base64.
83931
83932         * tests/test-base64.c: New file.
83933
83934         * modules/base64: New file.
83935
83936 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83939         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83940
83941         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83942
83943 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83946         (__getcwd.c): Don't restore errno; glibc doesn't.
83947         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83948         first, falling back to our code only if its results look suspicious.
83949         Ensure that the resulting buffer is only as large as necessary.
83950
83951         * lib/readutmp.c: Include readutmp.h first.
83952         Include <errno.h>, since readutmp.h no longer does that.
83953         * lib/readutmp.h: Don't include <errno.h>,
83954         <sys/param.h>, <time.h>; not needed to establish interface.
83955         (errno): Remove decl.
83956         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83957         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83958         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83959
83960 2004-11-28  Simon Josefsson  <jas@extundo.com>
83961
83962         * lib/base64.h, base64.c: New file.
83963
83964 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83965
83966         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83967
83968 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83971         (Depends-on): Remove pathmax, same.  Add mempcpy.
83972         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83973         (Makefile.am): Append getcwd.h to lib_SOURCES.
83974         (Include): Add getcwd.h.
83975         (Maintainer): Change from Jim Meyering to "all, glibc",
83976         since getdate now uses intended-for-glibc code.
83977         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83978         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83979
83980 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83981
83982         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83983         HP's ANSI C compiler.
83984         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83985         Declaring int functions causes warnings on some modern systems and
83986         shouldn't be needed to compile on ancient ones.
83987         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83988         defined.
83989
83990         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83991         with the following changes.
83992         (__set_errno): Parenthesize properly.
83993         Include <stdbool.h>.
83994         (MIN, MAX, MATCHING_INO): New macros.
83995         (__getcwd): Define with prototype, not K&R form.
83996         Use heuristics to allocate default buffer on stack if possible.
83997         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83998         behavior, and to avoid the PATH_MAX limit when computing
83999         ../../../../...
84000         Use MATCHING_INO to compare inode number to file.
84001         Check for arithmetic overflow in size calculations.
84002         Fix bug in reallocation of dot array that caused getcwd to fail
84003         on directories nested deeper than 75.
84004         Be more careful about saving errno on error.
84005         Do not use realloc; use only free+malloc, as this is a bit
84006         more flexible and avoids a needless copy operation.
84007         Do not inspect st_dev and st_ino for symbolic links; POSIX
84008         doesn't specify the latter.
84009         Check for closedir errors.
84010         Avoid needless casts.
84011         Use "#ifdef weak_alias" around weak_alias, to be like other
84012         glibc code.
84013         The following changes to getcwd.c have effect only when used in
84014         gnulib; they have no effect inside glibc proper.
84015         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84016         as alloca isn't used.
84017         (alloca, __alloca): Likewise.
84018         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84019         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84020         unconditionally, as gnulib assumes C89 or better.
84021         Do not include <sys/param.h>.
84022         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84023         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84024         better.
84025         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84026         Include <dirent.h> in a way that is compatible with modern Autoconf.
84027         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84028         New macros, if not already defined.
84029         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84030         Use "_LIBC", not "defined _LIBC", for consistency.
84031         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84032         a mempcpy module.
84033         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84034         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84035         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84036         credit only to Jim Meyering and adjust the copyright dates.
84037         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84038         <stdlib.h>, <unistd.h>, "pathmax.h".
84039         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84040         (INITIAL_BUFFER_SIZE): Remove.
84041         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84042
84043 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84044
84045         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84046         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84047         Use the _ONCE methods, for efficiency.
84048         Check for fcntl.h.  In test program, include <errno.h>
84049         and <fcntl.h> if available.  Remove old K&R cruft from
84050         test program.  Check for common errors in GNU/Linux,
84051         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84052         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84053         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84054         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84055         name accordingly.
84056         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84057         accommodate new getcwd.c.
84058         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84059         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84060         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84061         that's all we need now.
84062
84063 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84064
84065         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84066         argp-parse.c depends on getopt internals, that means we should
84067         always use our getopt, to be on the safe side.
84068         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84069         order not to spoil the result of an eventual previous invocation
84070         of gl_GETOPT_SUBSTITUTE.
84071
84072 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84073
84074         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84075         redefinition warnings. To avoid them, include the defines
84076         in `#if !defined __need_getopt ... #endif'. The only place
84077         where __getopt_argv_const is used is in definitions
84078         of getopt_long and getopt_long_only below, which are as well
84079         protected by `#ifndef __need_getopt'.
84080         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84081         __need_getopt after including <stdio.h> and <unistd.h> These
84082         headers might have defined it.
84083
84084 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84085
84086         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84087
84088 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84089
84090         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84091         (futimens): New function, which uses futimes if available.
84092         (futimens, utimens): Support timespec==NULL, with same semantics
84093         as utime and utimens.
84094         * lib/utimens.h (futimens): New decl.
84095
84096 2004-11-23  Jim Meyering  <jim@meyering.net>
84097
84098         * lib/getopt_.h: Remove trailing blanks.
84099
84100 2004-11-23  Jim Meyering  <jim@meyering.net>
84101
84102         * lib/__fpending.c: Add comment.
84103
84104 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84105
84106         * modules/canonicalize (Depends-on): Add xreadlink.
84107         Problem reported by James Youngman.
84108
84109 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84110
84111         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84112         New macros.
84113         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84114         optopt): Use them instead of invoking ## directly; otherwise, the
84115         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84116
84117 2004-11-19  Bruno Haible  <bruno@clisp.org>
84118
84119         * lib/strtok_r.c: Move comments from here...
84120         * lib/strtok_r.h: ... to here.
84121
84122 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84123
84124         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84125         implementations that mishandle size_t overflow.
84126
84127 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84128
84129         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84130         might fail.  Problem reported by Yoann Vandoorselaere.
84131         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84132         implementations that mishandle size_t overflow.
84133
84134 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84135
84136         * modules/canon-host (Depends-on): Add strdup.
84137
84138 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84139
84140         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84141
84142 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84143
84144         * lib/canon-host.c: Include "strdup.h".
84145         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84146         Use strdup instead of malloc/strcpy to duplicate strings.
84147
84148         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84149         (human_space_before_unit): New constant.
84150         * lib/human.c (human_readable): Support it.
84151
84152         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84153         (xgetcwd): Set errno correctly when failing.
84154         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84155         the failure is actually due to a PATH_MAX problem.
84156
84157         Further getopt changes to make it more likely that glibc will
84158         buy the changes back.
84159         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84160         (getopt): Use it, so to preserve glibc semantic
84161         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84162         when compiling for libc.
84163         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84164         (getopt_long, getopt_long_only): Use it.
84165
84166         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84167         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84168         (getopt): Argv is now char * const *, as per standard.
84169         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84170         not char *__getopt_argv_const *.
84171         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84172         _getopt_long_only_r): Likewise.
84173         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84174         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84175         _getopt_long_r, _getopt_long_only_r): Likewise.
84176         * lib/getopt_.h (__getopt_argv_const): Remove.
84177         (getopt): Argv is now char * const *, as per standard.
84178
84179         * lib/getdate.y (tORDINAL): New token.
84180         (day, relunit): Allow it for relative times.
84181         (relative_time_table): Use tORDINAL for ordinals.
84182
84183 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84184
84185         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84186         Document that "second" isn't allowed as an ordinal number.
84187
84188 2004-11-16  Jim Meyering  <jim@meyering.net>
84189
84190         * modules/closeout (Depends-on): Add fpending.
84191
84192 2004-11-15  Jim Meyering  <jim@meyering.net>
84193
84194         * lib/closeout.c: Include "__fpending.h" once again.
84195         Include <stdbool.h>.
84196         (close_stdout): Don't fail just because stdout was closed initially,
84197         since some programs don't write to stdout in the normal course of
84198         operation (other than --version and --help), and we don't want this
84199         function to make e.g. `touch file >&-' fail.
84200         But do fail if it was closed and someone has tried to write to it.
84201         E.g., `printf foo >&-' must fail.
84202
84203 2004-11-13  Jim Meyering  <jim@meyering.net>
84204
84205         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84206
84207 2004-11-12  Simon Josefsson  <jas@extundo.com>
84208
84209         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84210         small doc fix is still pending.
84211
84212 2004-11-11  Simon Josefsson  <jas@extundo.com>
84213
84214         * modules/strtok_r: New file.
84215
84216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84217         strtok_r.
84218
84219 2004-11-11  Simon Josefsson  <jas@extundo.com>
84220
84221         * m4/strtok_r.m4: New file.
84222
84223         * m4/getopt.m4: Replace opterr.
84224
84225 2004-11-11  Simon Josefsson  <jas@extundo.com>
84226
84227         * lib/strtok_r.h, strtok_r.c: New file.
84228
84229 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84232         of replacing opterr, getopt, etc.  This should handle the
84233         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84234
84235 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84236
84237         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84238         we can stop lying to compilers about the constness of argv when we
84239         are compiled outside glibc.
84240         (getopt, getopt_long, getopt_long_only): Use it.
84241         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84242         _getopt_internal, getopt): Likewise.
84243         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84244         _getopt_long_only_r): Likewise.
84245         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84246         _getopt_long_r, _getopt_long_only_r): Likewise.
84247
84248         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84249         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84250         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84251         the other external symbols.
84252         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84253         declaration, since the above renaming now works around collisions.
84254
84255 2004-11-11  Jim Meyering  <jim@meyering.net>
84256
84257         * lib/linebreak.c: Remove trailing blanks.
84258         * lib/alloca_.h: Likewise.
84259         * lib/acosl.c: Likewise.
84260         * lib/euidaccess.c: Likewise.
84261         * lib/allocsa.h: Likewise.
84262
84263 2004-11-10  Simon Josefsson  <jas@extundo.com>
84264
84265         * m4/getaddrinfo.m4: New file.
84266
84267 2004-11-10  Simon Josefsson  <jas@extundo.com>
84268
84269         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84270
84271 2004-11-10  Simon Josefsson  <jas@extundo.com>
84272
84273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84274         getaddrinfo.
84275
84276         * modules/getaddrinfo: New file.
84277
84278 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84279
84280         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84281
84282 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         * lib/mktime.c (SHR): New macro, which is a portable
84285         substitute for >> that should work even on Crays.
84286         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84287         Problem reported by Mark D. Baushke in
84288         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84289         * lib/getdate.y (SHR): Likewise.
84290         (tm_diff): Use it.
84291         * lib/strftime.c (SHR): Likewise.
84292         (tm_diff): Use it.
84293         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84294         quote_these_too, so that right shifts are well defined.  All uses
84295         changed.
84296
84297 2004-11-10  Jim Meyering  <jim@meyering.net>
84298
84299         Ensure that no close failure goes unreported.
84300         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84301         return early when it seems there's nothing to flush.
84302         Don't include __fpending.h.
84303
84304 2004-11-10  Jim Meyering  <jim@meyering.net>
84305
84306         * modules/closeout (Depends-on): Remove fpending.
84307
84308 2004-11-10  Jim Meyering  <jim@meyering.net>
84309
84310         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84311
84312 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84315         gl_FUNC_STRFTIME.
84316         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84317         and AC_REQUIRE when possible, to avoid duplicate checks.
84318         Check for <wchar.h>.
84319
84320 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84323
84324 2004-11-09  Bruno Haible  <bruno@clisp.org>
84325
84326         * m4/sockpfaf.m4: New file.
84327
84328 2004-11-05  Bruno Haible  <bruno@clisp.org>
84329
84330         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84331         Reported by Mark D. Baushke <mdb@cvshome.org>.
84332
84333 2004-11-04  Bruno Haible  <bruno@clisp.org>
84334
84335         2004-09-11  Bruno Haible  <bruno@clisp.org>
84336                 * allocsa.valgrind: New file.
84337         2004-02-06  Bruno Haible  <bruno@clisp.org>
84338                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84339                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84340                 Reported by Christopher Seip <chris.seip@hp.com>.
84341
84342 2004-11-04  Bruno Haible  <bruno@clisp.org>
84343
84344         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84345         (Makefile.am): Distribute it.
84346
84347 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84350         with errno == ERANGE if the buffer is too small.
84351         Problem reported by Mark D. Baushke.
84352
84353 2004-11-03  Albert Chin  <china@thewrittenword.com>
84354             Paul Eggert  <eggert@cs.ucla.edu>
84355
84356         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84357         equivalent, substitute $ac_type for equivalent type rather than
84358         blindly using uint32_t *always* which won't work if uint32_t is not
84359         available.  Define _UINT32_T to work around typedef of uint32_t if
84360         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84361         2.5.1.
84362
84363 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         * m4/jm-macros.m4: Sync from coreutils.
84366         (gl_MACROS): Check for mbrlen, for pathchk.
84367         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84368
84369 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84370
84371         * lib/xreadlink.c (MAXSIZE): New macro.
84372         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84373         size does not exceed MAXSIZE.  Avoid cast.
84374         As suggested by Mark D. Baushke in
84375         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84376         if readlink fails with buffer size just under MAXSIZE, try again
84377         with MAXSIZE.
84378
84379 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84380
84381         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84382
84383 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84384         and  Paul Eggert  <eggert@cs.ucla.edu>
84385
84386         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84387         (get_date): Overparenthesize to avoid GCC warning.
84388
84389 2004-11-02  Bruno Haible  <bruno@clisp.org>
84390
84391         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84392         returns void.
84393
84394 2004-11-02  Bruno Haible  <bruno@clisp.org>
84395
84396         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84397         function returns void.
84398
84399 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84400
84401         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84402         fflush_unlocked, flockfile, funlockfile, funlockfile,
84403         fputs_unlocked, putc_unlocked.
84404
84405 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84406
84407         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84408         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84409         already declared.
84410
84411 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * modules/getdate (Files): Add doc/getdate.texi.
84414         (Depends-on): Add setenv, xalloc.
84415
84416 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84417
84418         * lib/getdate.y: Add support for TZ="foo" within a date string.
84419         Fix some bugs near time_t boundaries.  Reject dates with
84420         out-of-range components, e.g., "Sept 31".
84421         Include <stdlib.h>, "setenv.h", "xalloc.h".
84422         (ISDIGIT_LOCALE): Remove; unused.
84423         Note that the TZ and time functions used here are not reentrant.
84424         (mktime_ok, get_tz): New functions.
84425         (TZBUFSIZE): New constant.
84426         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84427         This requires that we sometimes generate our own TZ="XXX..." setting.
84428
84429 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84430
84431         * doc/getdate.texi: New file, from coreutils with modifications for
84432         the new TZ parsing.
84433
84434 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84435
84436         * lib/mktime.c (not_equal_tm): Remove redundant check.
84437
84438 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84439
84440         * modules/regex (lib_SOURCES): Add regex.c.
84441         Reported by James Youngman in
84442         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84443
84444 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84445
84446         * lib/getdate.y: Use Bison 1.875 features, and some minor
84447         code cleanups.  This change does not affect semantics.
84448         Don't include <stdlib.h>; no longer needed.
84449         Don't include unlocked-io.h; only the "#if TEST" code uses
84450         stdio, and performance isn't crucial there.
84451         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84452         Bison 1.875 features as described below.
84453         All uses of "PC." replaced by "pc->".
84454         (YYSTYPE): Add a forward declaration.
84455         (yylex, yyerror): Use full prototypes in forward decls.
84456         Use "%pure-parser" rather than obsolescent "%pure_parser".
84457         Use %parse-param and %lex-param instead of obsolescent
84458         YYPARSE_PARAM and YYLEX_PARAM.
84459         (meridian_table, month_and_day_table, time_units_table,
84460         relative_time_table, time_zone_table, military_table,
84461         lookup_zone, lookup_word, get_date):
84462         Use NULL instead of 0 where appropriate.
84463         (to_hour): Avoid abort (), to avoid a dependency on
84464         stdlib.h.
84465         (yyerror, yylex): Now accepts parser_control * arg.
84466         (main) [TEST]: Use '\0' rather than 0 for char.
84467
84468 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84471
84472 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84473
84474         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84475         It's now the caller's responsibility to handle the case where
84476         !HAVE_GETPAGESIZE && !defined getpagesize.
84477
84478         * lib/mktime.c (leapyear): Arg is long int, not int.
84479
84480 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84481
84482         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84483
84484 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84485
84486         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84487         missing.  Problem reported by James Youngman.
84488
84489 2004-10-16  Simon Josefsson  <jas@extundo.com>
84490
84491         * gnulib-tool: Fix comments.  Fix parse problem.
84492         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84493
84494 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84495
84496         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84497         implementation of getopt_long.  Problem reported by Alexander Taler in:
84498         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84499
84500 2004-10-15  Bruno Haible  <bruno@clisp.org>
84501
84502         * gnulib-tool: Untabify. Initialize supplied_libname.
84503         (func_usage): More homogenous output.
84504         (func_modules_transitive_closure, func_modules_to_filelist,
84505         func_emit_lib_Makefile_am): New functions.
84506         (func_import): New function, extracted from big case statement. Use
84507         func_get_license, func_modules_transitive_closure,
84508         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84509         opt_lgpl. Don't use test -a, as it's not portable.
84510         (func_create_testdir): Use func_modules_transitive_closure,
84511         func_modules_to_filelist, func_emit_lib_Makefile_am.
84512
84513 2004-10-15  Bruno Haible  <bruno@clisp.org>
84514
84515         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84516
84517 2004-10-15  Bruno Haible  <bruno@clisp.org>
84518
84519         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84520         the portions belonging to each module.
84521         Suggested by Derek Robert Price <derek@ximbiot.com>.
84522
84523 2004-10-12  Simon Josefsson  <jas@extundo.com>
84524
84525         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84526         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84527         to real functions.
84528
84529 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84530
84531         * modules/vsnprintf: New file.
84532
84533 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84534
84535         * m4/vsnprintf.m4: New file.
84536
84537 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84538
84539         * lib/vsnprintf.h: New file.
84540         * lib/vsnprintf.c: New file.
84541
84542 2004-10-11  Bruno Haible  <bruno@clisp.org>
84543
84544         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84545         vsnprintf.
84546
84547 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84548
84549         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84550
84551 2004-10-07  Bruno Haible  <bruno@clisp.org>
84552
84553         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84554         fits into the provided buffer.
84555
84556 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84557
84558         * lib/diacrit.c, diacrit.h: Add GPL notice.
84559
84560         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84561         notice.
84562         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84563         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84564         This avoids a potential constant-folding bug.
84565
84566 2004-10-05  Bruno Haible  <bruno@clisp.org>
84567
84568         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84569         for the declaration of strsep.
84570
84571 2004-10-05  Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84574
84575 2004-10-04  Simon Josefsson  <jas@extundo.com>
84576
84577         * modules/memmem: New file.
84578         * tests/test-memmem.c: New file.
84579         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84580
84581 2004-10-04  Simon Josefsson  <jas@extundo.com>
84582
84583         * m4/memmem.m4: New file.
84584
84585 2004-10-04  Simon Josefsson  <jas@extundo.com>
84586
84587         * lib/memmem.h: New file.
84588         * lib/memmem.c: New file, taken from glibc.
84589
84590 2004-10-04  Simon Josefsson  <jas@extundo.com>
84591
84592         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84593         '#ifdef USE_UNLOCKED_IO'.
84594
84595 2004-10-04  Simon Josefsson  <jas@extundo.com>
84596
84597         * config/srclist.txt: Add memmem from glibc.
84598
84599 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84602
84603         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84604         modules/exclude, modules/getdate, modules/getline,
84605         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84606         modules/getusershell, modules/linebuffer, modules/md5,
84607         modules/mountlist, modules/posixtm, modules/readtokens,
84608         modules/readutmp, modules/regex, modules/sha1,
84609         modules/version-etc, modules/yesno:
84610         Remove dependency on unlocked-io.
84611
84612 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84615
84616         * m4/unlocked-io.m4: Add copyright notice.
84617         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84618
84619 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84620
84621         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84622         * lib/xmalloc.c (xmemdup): Likewise.
84623         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84624         XFREE): Remove these long-obsolescent macros.
84625         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84626         * lib/xstrdup.c: Remove.
84627
84628         * lib/regex.c (re_comp): Cast gettext return value to char *,
84629         Problem reported by Martin Neitzel via Mark D. Baushke.
84630
84631 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84634         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84635         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84636         regex.c, sha1.c, version-etc.c, yesno.c:
84637         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84638         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84639         the includer's responsibility.
84640
84641         Sync from coreutils.
84642
84643         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84644         points to the start of a string, as the C Standard says the
84645         resulting behavior is undefined.
84646
84647         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84648         simple -> simple_backups, numbered_existing ->
84649         numbered_existing_backups, numbered -> numbered_backups
84650         to avoid shadowing problems.  All uses changed.
84651         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84652         * lib/backupfile.c (check_extension, numbered_backup):
84653         Rename locals to avoid shadowing 'basename'.
84654         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84655         once.
84656
84657         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84658         * lib/.cvsignore: Add getopt.h.
84659
84660 2004-10-04  Bruno Haible  <bruno@clisp.org>
84661
84662         * modules/README: New file.
84663         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84664         not a module.
84665
84666 2004-10-02  Jim Meyering  <jim@meyering.net>
84667
84668         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84669
84670 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84671
84672         * modules/strsep: New file.
84673
84674 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84675
84676         * m4/strsep.m4: New file.
84677
84678 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84679
84680         * lib/strsep.h: New file.
84681         * lib/strsep.c: New file.
84682
84683 2004-10-01  Simon Josefsson  <jas@extundo.com>
84684
84685         * lib/snprintf.c (snprintf): Handle size==0.
84686
84687 2004-10-01  Simon Josefsson  <jas@extundo.com>
84688             Bruno Haible  <bruno@clisp.org>
84689
84690         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84691         (snprintf): Declare 'args'.
84692
84693 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84694
84695         * lib/snprintf.c: Remove comments as to why each header is needed.
84696
84697 2004-10-01  Bruno Haible  <bruno@clisp.org>
84698
84699         * MODULES.html.sh: Add strsep.
84700
84701 2004-09-30  Simon Josefsson  <jas@extundo.com>
84702
84703         * modules/snprintf: New file.
84704
84705 2004-09-30  Simon Josefsson  <jas@extundo.com>
84706
84707         * m4/snprintf.m4: New file.
84708
84709 2004-09-30  Simon Josefsson  <jas@extundo.com>
84710
84711         * lib/snprintf.h, lib/snprintf.c: New files.
84712
84713 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84714
84715         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84716         (hol_entry_help): Never translate an empty string.
84717         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84718         * lib/argp.h (OPTION_NO_TRANS): New option.
84719
84720 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84721
84722         * modules/argp (Maintainer): Replace Simon Josefsson
84723         by Sergey Poznyakoff.
84724
84725 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84728         changes merged back into glibc.
84729
84730 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84731
84732         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84733
84734 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84735
84736         * lib/xvasprintf.c: Include xalloc.h.
84737         (xvasprintf): Use xalloc_die, not xmalloc_die.
84738
84739 2004-09-29  Bruno Haible  <bruno@clisp.org>
84740
84741         * modules/alloca-opt: New file, derived from modules/alloca.
84742         * modules/allocsa: Depend on alloca-opt instead of alloca.
84743         * modules/setenv: Likewise.
84744         * modules/vasnprintf: Likewise.
84745         * MODULES.html.sh: Add alloca-opt.
84746
84747 2004-09-28  Simon Josefsson  <jas@extundo.com>
84748
84749         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84750         LGPL, and to replace license template from GPL to LGPL.
84751
84752 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84753
84754         * modules/dummy: Change license to LGPL.
84755
84756 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84759
84760 2004-09-24  Simon Josefsson  <jas@extundo.com>
84761
84762         * modules/minmax (License): Change from GPL to LGPL.
84763
84764 2004-09-23  Simon Josefsson  <jas@extundo.com>
84765
84766         * gnulib-tool (--import): Typo.
84767
84768 2004-09-23  Simon Josefsson  <jas@extundo.com>
84769
84770         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84771
84772 2004-09-22  Bruno Haible  <bruno@clisp.org>
84773
84774         * modules/*: Add 'License' field.
84775         * gnulib-tool: Accept --extract-license option.
84776         (func_get_license): New function.
84777
84778 2004-09-21  Bruno Haible  <bruno@clisp.org>
84779
84780         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84781         Reported by Simon Josefsson.
84782
84783 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84784
84785         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84786         gl_AC_TYPE_LONG_LONG.
84787
84788 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84789
84790         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84791
84792 2004-09-18  Simon Josefsson  <jas@extundo.com>
84793         and  Paul Eggert  <eggert@cs.ucla.edu>
84794
84795         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84796         calls with autoreconf.  Define GL_LIB.
84797
84798 2004-09-14  Karl Berry  <karl@gnu.org>
84799
84800         * config/srclist.txt: unsync setenv.c, sigh.
84801
84802 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84803
84804         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84805         Problem reported by Bruno Haible in:
84806         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84807
84808 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84809
84810         * config/srclist.txt: Comment out argp-pvh.c.
84811
84812 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84815         in case some system header has #define'd it.  Problem reported by
84816         Soeren D. Schulze in
84817         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84818
84819 2004-09-09  Karl Berry  <karl@gnu.org>
84820
84821         * regex.[ch]: delete from the root.  These were supposed to be
84822                 synced with emacs cvs, but this has not happened for about
84823                 a year, and anyway nothing else uses emacs regex.[ch].
84824                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84825                 lib/regex[.ch] is untouched.
84826
84827 2004-09-09  Bruno Haible  <bruno@clisp.org>
84828
84829         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84830
84831 2004-09-09  Bruno Haible  <bruno@clisp.org>
84832
84833         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84834         modifications.
84835         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84836
84837 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84838
84839         * modules/xvasprintf: New file.
84840         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84841
84842 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84843
84844         * lib/xvasprintf.h: New file.
84845         * lib/xvasprintf.c: New file.
84846         * lib/xasprintf.c: New file.
84847
84848 2004-09-08  Bruno Haible  <bruno@clisp.org>
84849
84850         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84851
84852 2004-09-08  Bruno Haible  <bruno@clisp.org>
84853
84854         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84855         length is > INT_MAX.
84856         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84857         more.
84858
84859 2004-09-08  Bruno Haible  <bruno@clisp.org>
84860
84861         * lib/stdint_.h: New file, taken from GNU clisp.
84862
84863 2004-09-08  Bruno Haible  <bruno@clisp.org>
84864             Oskar Liljeblad  <oskar@osk.mine.nu>
84865
84866         * modules/stdint: New file.
84867         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84868
84869 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         Import from coreutils.
84872         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84873         strings on unbounded length.  alloca's performance benefits aren't
84874         that important here.
84875         (V_STRDUP): Remove.
84876         (parse_with_separator): New function, with most of the internals
84877         of the old parse_user_spec.  Allow user to omit both user and group,
84878         for compatibility with FreeBSD.
84879         Clone only the user name, not the entire spec.
84880         Do not set *uid, *gid unless entirely successful.
84881         Avoid memory leak in some failing cases.
84882         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84883         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84884         (parse_user_spec): Rewrite to use parse_with_separator.
84885
84886 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84887
84888         * modules/userspec: Don't depend on alloca.
84889
84890 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84891
84892         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84893
84894 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84895
84896         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84897         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84898         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84899
84900 2004-08-16  Simon Josefsson  <jas@extundo.com>
84901
84902         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84903         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84904         Add --dry-run for --import.
84905         Let user provided command line parameters override configure.ac
84906         settings.
84907
84908 2004-08-12  Simon Josefsson  <jas@extundo.com>
84909
84910         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84911         as discussed with Paul Eggert in threads rooted at
84912         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84913         and
84914         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84915         Before, the test was empty, and relied on ELIDE_CODE in source
84916         code.)
84917         (gl_PREREQ_GETOPT): New macro.
84918         (gl_GETOPT): Use them.
84919
84920 2004-08-12  Simon Josefsson  <jas@extundo.com>
84921
84922         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84923         * lib/getopt_.h: Renamed from getopt.h.
84924
84925 2004-08-12  Simon Josefsson  <jas@extundo.com>
84926
84927         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84928         Change default library name from libfoo to libgnu.
84929         Now, if you have a configure.ac that says:
84930                 gl_SOURCE_BASE(gl)
84931                 gl_M4_BASE(gl/m4)
84932                 gl_MODULES(error getopt etcetera)
84933                 gl_INIT
84934         you can import all you need by running:
84935                 ../gnulib/gnulib-tool --import
84936
84937         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84938         (Makefile.am): Rewrite, use logic from argz.
84939         (Include): Use <getopt.h> instead of "getopt.h".
84940
84941 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84942
84943         * modules/argp (Files): Add m4/unlocked-io.m4.
84944         (Depends-on): Add extensions.
84945
84946 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84949         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84950         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84951         Check for program_invocation_name, program_invocation_short_name,
84952         flockfile, funlockfile, features.h, _getopt_long_only_r.
84953
84954 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84955
84956         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84957         its complicated substitute.
84958         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84959         and program_invocation_name.
84960         (__argp_basename) [!_LIBC]: Remove; the only use was
84961         replaced by its body.
84962         (__argp_short_program_name): Change condition from
84963         !defined __argp_short_program_name to
84964         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84965         to match argp-namefrob.h.
84966         (__argp_failure): Don't assume strerror_r returns char *.
84967         * lib/argp-parse.c (N_): Define unconditionally.
84968         (argp_default_options): Fill out initializers with 0 to avoid
84969         gcc warnings.
84970
84971 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84972
84973         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84974         getopt1.c.
84975
84976 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         Merge from coreutils.
84979
84980         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84981
84982         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84983         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84984
84985 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84986
84987         Merge from coreutils.
84988
84989         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84990         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84991         for Reliant Unix 5.43.
84992
84993         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84994         (union fooround): Use uintmax_t, not long int.
84995         The rest is a merge from libc:
84996         [defined _LIBC]: Include <shlib-compat.h>.
84997         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84998
84999         * lib/settime.c (settime): Recode to avoid warning with
85000         Sun Forte C 6U2.
85001
85002         * lib/strverscmp.c: Convert to UTF-8.
85003
85004 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85005
85006         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85007         m4/uintmax_t.m4.
85008
85009 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * modules/xalloc-die: New file.
85012         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85013
85014         * modules/md5 (Files): Add m4/uint32_t.m4.
85015         * modules/sha1: Renamed from modules/sha.
85016         (Files):
85017         Rename lib/sha.h to lib/sha1.h.
85018         Rename lib/sha.c to lib/sha1.c.
85019         Rename m4/sha.m4 to m4/sha1.m4.
85020         (lib_SOURCES): Likewise.
85021         (configure.ac): Rename gl_SHA to gl_SHA1.
85022         (Include): sha.h -> sha1.h.
85023
85024 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85025
85026         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85027         * m4/sha1.m4: Renamed from sha.m4.
85028         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85029
85030 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         * lib/obstack.h (obstack_empty_p):
85033         Don't assume that chunk->contents is suitably aligned.
85034         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85035         Likewise. Problem reported by Benno in
85036         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85037
85038         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85039         readable.  This could be improved further but it'd take some work.
85040
85041 2004-08-08  Simon Josefsson  <jas@extundo.com>
85042
85043         * modules/xgethostname (Depends-on): Remove exit and error (not
85044         used).
85045
85046         * modules/getpass-gnu: Add getpass.h.
85047         (Depends-on): Add stdbool.
85048         * modules/getpass: Add getpass.h.
85049
85050 2004-08-08  Simon Josefsson  <jas@extundo.com>
85051
85052         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85053         Check getpass declaration.
85054
85055 2004-08-08  Simon Josefsson  <jas@extundo.com>
85056
85057         * lib/xgethostname.c: Don't include error.h (not used).
85058
85059         * lib/getpass.h: Add.
85060         * lib/getpass.c: Include getpass.h first.
85061
85062 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85063
85064         * lib/xalloc-die.c: New file.
85065         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85066         All uses removed.
85067         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85068         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85069         xalloc-die.c.
85070         (_, N_, xalloc_die): Move to xalloc-die.c.
85071         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85072         so that we needn't mess with xalloc_msg_memory_exhausted.
85073
85074         * lib/sha1.h: Renamed from sha.h.
85075         (SHA1_H): Renamed from _SHA_H.
85076         (sha1_ctx): Renamed from sha_ctx.
85077         (sha1_init_ctx): Renamed from sha_init_ctx.
85078         (sha1_process_block): Renamed from sha_process_block.
85079         (sha1_process_bytes): Renamed from sha_process_bytes.
85080         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85081         (sha1_read_ctx): Renamed from sha_read_ctx.
85082         (sha1_stream): Renamed from sha_stream.
85083         (sha1_buffer): Renamed from sha_buffer.
85084         * lib/sha1.c: Likewise; renamed from sha.c.
85085         Do not include <sys/types.h>.
85086         Include <stddef.h> rather than <stdlib.h>.
85087
85088 2004-08-08  Bruno Haible  <bruno@clisp.org>
85089
85090         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85091         FILESYSTEM_PREFIX_LEN.
85092         * lib/progreloc.c: Likewise.
85093         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85094
85095 2004-08-06  Simon Josefsson  <jas@extundo.com>
85096
85097         * modules/progname (Depends-on): Don't depend on stdbool.
85098
85099 2004-08-06  Simon Josefsson  <jas@extundo.com>
85100
85101         * modules/getsubopt: New file.
85102         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85103         getsubopt.
85104
85105 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         More merge from coreutils.
85108
85109         * m4/utimens.m4, m4/utimecmp.m4: New files.
85110         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85111         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85112         prereq.m4, sha.m4: Import changes from coreutils.
85113
85114 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85115
85116         More merge from coreutils.
85117         * modules/raise, modules/readtokens0, modules/utimens:
85118         * modules/utimecmp, module/xnanosleep: New files.
85119         * modules/strftime: Add lib/strftime.h.
85120         Change include from <time.h> to "strftime.h".
85121         * modules/yesno: Add lib/yesno.h.
85122         * modules/backupfile: Remove lib/addext.c.
85123         * modules/euidaccess: Add stat-macros.h.
85124         * modules/canonicalize, modules/euidaccess,
85125         modules/filemode, modules/lchown, modules/makepath,
85126         modules/rmdir, modules/stat: Likewise.
85127
85128 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         Merge from tar.
85131         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85132         SIZE_MAX is a valid preprocessor constant.
85133         (__argp_basename): Change from "#ifndef _LIBC"
85134         to "#ifndef __argp_short_program_name", so that
85135         we don't compile these functions for tar.
85136
85137         More merges from coreutils.
85138         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85139         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85140         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85141         * lib/addext.c: Remove; no longer needed.
85142         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85143         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85144         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85145         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85146         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85147         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85148         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85149         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85150         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85151         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85152         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85153         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85154         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85155         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85156         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85157         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85158         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85159         Import changes from coreutils.
85160
85161 2004-08-05  Simon Josefsson  <jas@extundo.com>
85162
85163         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85164
85165 2004-08-05  Simon Josefsson  <jas@extundo.com>
85166
85167         * m4/getsubopt.m4: New file.
85168
85169 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85170
85171         Merge from coreutils.
85172
85173         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85174         * m4/getcwd-path-max.m4: New files.
85175
85176         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85177         FILESYSTEM_PREFIX_LEN ->
85178         FILE_SYSTEM_PREFIX_LEN.
85179         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85180         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85181         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85182         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85183
85184         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85185         prerequisite modules now handle the DOS stuff.
85186         Don't check for unistd.h.
85187
85188 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85189
85190         Merge from coreutils.
85191
85192         * lib/.gdb-history: Remove; this doesn't belong here.
85193
85194         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85195         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85196         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85197         * lib/getcwd.c: New files.
85198
85199         * lib/dirname.h: Include <stdbool.h>.
85200         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85201         for consistency with POSIX terminology.  All uses changed.
85202         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85203         (strip_trailing_slashes): Use bool for booleans.
85204         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85205
85206         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85207         sometimes returns a positive errno value even when it succeeds.
85208         (print_errno_message) [!LIBC]: Fall back on strerror if
85209         __strerror_r fails.
85210
85211         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85212         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85213         (longest_relative_suffix): New function.
85214         (path_concat): Use it.  Assume first argument is not NULL.
85215         Port to DOS.  Omit redundant separators.
85216         Report an error instead of returning NULL.
85217         Use mempcpy instead of memcpy.
85218         (xpath_concat): Remove: not declared or used.
85219
85220         * lib/same.h: Include <stdbool.h>
85221         (same_name): Return bool, not int.
85222         * lib/same.c (same_name): Likewise.
85223         (errno): Don't declare; we assume C89 or better now.
85224
85225         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85226         if not already defined.
85227
85228         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85229         * lib/dup-safer.c (errno): Likewise.
85230
85231 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85232
85233         Merge from coreutils.
85234         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85235         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85236         * modules/path-concat: Don't depend on strdup.
85237
85238 2004-08-03  Simon Josefsson  <jas@extundo.com>
85239
85240         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85241         * lib/progname.h: Don't include stdbool.h.
85242
85243 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85246         * MODULES.html.sh (func_all_modules): Remove fatal.
85247
85248 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85251
85252 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85255         working.
85256
85257 2004-08-02  Simon Josefsson  <jas@extundo.com>
85258
85259         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85260         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85261         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85262
85263 2004-08-01  Simon Josefsson  <jas@extundo.com>
85264
85265         * lib/xgetdomainname.c: Include stdlib.h, for free().
85266
85267 2004-07-19  Bruno Haible  <bruno@clisp.org>
85268
85269         * MODULES.html.sh (func_all_modules): Add dummy.
85270
85271 2004-07-16  Simon Josefsson  <jas@extundo.com>
85272
85273         * modules/dummy: New file.
85274
85275 2004-07-16  Simon Josefsson  <jas@extundo.com>
85276
85277         * lib/dummy.c: New file.
85278
85279 2004-07-16  Bruno Haible  <bruno@clisp.org>
85280
85281         * lib/backupfile.h: Add extern "C" for C++.
85282         * lib/closeout.h: Likewise.
85283         * lib/copy-file.h: Likewise.
85284         * lib/findprog.h: Likewise.
85285         * lib/full-write.h: Likewise.
85286         * lib/pathname.h: Likewise.
85287         * lib/progname.h: Likewise.
85288         * lib/stpcpy.h: Likewise.
85289         * lib/stpncpy.h: Likewise.
85290         * lib/strcase.h: Likewise.
85291         * lib/strstr.h: Likewise.
85292         * lib/xalloc.h: Likewise.
85293
85294         * lib/mbswidth.h: Add extern "C" for C++.
85295         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85296
85297 2004-07-13  Robert Millan  <robertmh@gnu.org>
85298
85299         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85300
85301 2004-07-09  Simon Josefsson  <jas@extundo.com>
85302
85303         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85304         failed without this.)
85305
85306 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85307
85308         * modules/chown (Files): Add lib/fchown-stub.c, since
85309         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85310
85311 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         * lib/fchown-stub.c: New file.
85314
85315 2004-06-24  Jim Meyering  <jim@meyering.net>
85316
85317         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85318
85319 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         * modules/argz: Omit "#include".
85322
85323         * MODULES.html.sh (func_all_modules): Add calloc, to match
85324         2004-06-01 addition of calloc module.
85325
85326 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85327
85328         * m4/argz.m4: New file, which is autoupdated from libtool.
85329
85330 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85333         libtool.
85334
85335 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * config/srclist-update: Don't insist on "USA." before the
85338         close-comment, as libtool omits the period and puts the */ on a
85339         separate line.
85340         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85341         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85342
85343 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85344
85345         * modules/argz: New file.
85346         * MODULES.html.sh (func_all_modules): Add argz.
85347
85348 2004-06-12  Jim Meyering  <jim@meyering.net>
85349         and  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * modules/hash (Files): Add lib/xalloc.h.
85352         * modules/pipe (Depends-on): Add wait-process.
85353         * modules/stat (Depends-on): Add xalloc.
85354         * modules/userspec (Files): Add lib/userspec.h.
85355         * modules/xstrto
85356
85357         Upgrade from gettext-0.13.
85358         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85359         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85360         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85361
85362 2004-06-10  Jim Meyering  <jim@meyering.net>
85363
85364         * lib/calloc.c: New file.
85365
85366 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85367
85368         * lib/getdate.y (yylex): Allow space between sign and number.
85369         Problem reported by Dan Jacobson.
85370
85371 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85372
85373         Merge from coreutils CVS.
85374
85375         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85376         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85377         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85378         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85379         xstrtol.m4: Fix copyright date and/or serial number.
85380
85381         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85382         See if we need an fchown replacement.
85383         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85384         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85385         and use the replacement function if we detect either defect.
85386
85387         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85388         gl_UTIMECMP.
85389
85390 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85391         and  Jim Meyering  <jim@meyering.net>
85392
85393         Merge from coreutils CVS.
85394
85395         * lib/stat-macros.h: New file, with contents from file-type.h
85396         and coreutils' system.h.
85397         * lib/file-type.c: Include "stat-macros.h".
85398         * lib/file-type.h (file_type): Move all macro definitions to new file,
85399         stat-macros.h.
85400
85401         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85402         Wrap old code with this conditional.
85403         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85404         function that does not dereference symlinks.
85405         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85406
85407         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85408         dependency problems.
85409         (xreadlink): Accept new arg SIZE, for efficiency.
85410         All decls and uses changed.
85411         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85412
85413         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85414         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85415
85416         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85417         sysexits.h.
85418
85419 2004-06-01  Jim Meyering  <jim@meyering.net>
85420
85421         * m4/calloc.m4: New file.
85422
85423 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85426         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85427         Also, fix a typo in a diagnostic.
85428
85429 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85430
85431         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85432         or AC_FUNC_REALLOC.
85433
85434 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85437         macros to be defined.
85438         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85439         the allocator returns NULL because the requested size is zero.
85440
85441 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85444         var.  Add comment explaining why libc still defines it.  This
85445         merges the following patch from glibc:
85446         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85447
85448 2004-05-20  Andreas Schwab  <schwab@suse.de>
85449
85450         * m4/free.m4: Replace free if it not known to work, not the other
85451         way round.
85452
85453 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85456         present in glibc since revision 1.1 of this file.
85457         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85458         obstack_alignment_mask, obstack_alloc, obstack_base,
85459         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85460         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85461         obstack_grow0, obstack_init, obstack_int_grow,
85462         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85463         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85464         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85465         nonexistent functions.
85466
85467 2004-05-18  Karl Berry  <karl@gnu.org>
85468
85469         * config/srclist.txt: break link for vasnprintf.c.
85470
85471 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         Port obstack to the AS/400, where pointers are 16 bytes wide and
85474         you cannot cast an integer to a valid pointer.  This patch is
85475         currently waiting to be integrated into glibc; see
85476         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85477
85478         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85479         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85480         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85481         (struct obstack): temp member is now a union of a pointer and
85482         an integer, instead of an integer.  All integer uses changed.
85483         This does not affect the physical layout of struct obstack,
85484         except on hosts (like the AS/400) where the size or alignment of
85485         void * is greater than that of ptrdiff_t.
85486         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85487         __STDC__)]: Store temporary in pointer member of union, not
85488         integer member.
85489         * lib/obstack.c: Include <stddef.h>, for offsetof.
85490         (struct fooalign): Remove; it doesn't need a name.
85491         (union fooround): Change double to long double, and add void *.
85492         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85493         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85494         not a macro.  Hence the values are always int; so remove all
85495         casts-to-int in uses.
85496
85497 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85498
85499         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85500         we can get this patch merged into glibc.
85501
85502 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85503             Paul Eggert  <eggert@cs.ucla.edu>
85504
85505         * m4/argp: Depend on alloca.
85506
85507 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85508             Paul Eggert  <eggert@cs.ucla.edu>
85509
85510         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85511         freecoding.
85512
85513 2004-05-17  Bruno Haible  <bruno@clisp.org>
85514
85515         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85516         precision that consists of a '.' followed by an empty digit string.
85517         Patch by Tor Lillqvist <tml@iki.fi>.
85518
85519 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85520
85521         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85522         for backward compatibility with older code.  We need our own
85523         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85524         it under some other name, and our alloca.h will define it.
85525
85526 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85527             Derek Price  <derek@ximbiot.com>
85528
85529         * lib/alloca.c: Include <alloca.h>, to get our interface.
85530         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85531         include <alloca.h> first.  Use C89 prototype for alloca; this
85532         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85533         Use #elif for simplicity, since we can assume C89 now.
85534         Don't try to source the system alloca.h since it will not be found
85535         and to prevent recursively including its replacement.
85536         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85537         * lib/regex.c: Likewise.
85538
85539 2004-05-16  Derek Price  <derek@ximbiot.com>
85540             Paul Eggert  <eggert@cs.ucla.edu>
85541
85542         getline cleanup.  This changes the getndelim2 API: both order of
85543         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85544         no delimiter).
85545
85546         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85547         interface does that.
85548         (getline): Always use getdelim, so that we don't have two
85549         copies of this code.
85550         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85551         if available.
85552         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85553         (GETNDELIM2_MAXIMUM): New macro.
85554         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85555         instead of the old practice of delim2==0.  All callers changed.
85556         Return -1 on overflow, instead of returning junk.
85557         Do not set *linesize unless allocation succeeds.
85558         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85559         that we include sys/types.h.
85560         * lib/getnline.h: Likewise.
85561         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85562         (getndelim2): Reorder arguments.
85563         * lib/getnline.c (getnline, getndelim):
85564         Don't discard the NMAX argument.
85565         (getnline): Invoke getndelim, to avoid code duplication.
85566         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85567         of (size_t) -1 by callers of the getnline family.
85568
85569 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85572         Check for gettimeofday.
85573         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85574         Check for settimeofday, stime.
85575
85576 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85577
85578         * lib/nanosleep.c (suspended): Change its type from int to
85579         sig_atomic_t volatile.
85580         (first_call): Make it private to rpl_nanosleep, and have it
85581         be zero initially as that's a bit faster.
85582         (my_usleep): Round up fractional times instead of truncating them,
85583         as this is the usual meaning for 'sleep'.
85584
85585         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85586         doesn't work.
85587         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85588         (ENOSYS): Define if not defined.
85589         (settime): Fall back on stime if it exists and settimeofday fails.
85590         But don't bother with fallbacks if a method fails with errno == EPERM.
85591
85592 2004-05-11  Jim Meyering  <jim@meyering.net>
85593
85594         Prior to this change, the save_cwd caller required read access to the
85595         current directory on most systems (ones with the fchdir function).
85596
85597         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85598         fails, try write-only, and finally, resort to using xgetcwd.
85599
85600 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         * lib/obstack.c, obstack.h: Import changes from libc.
85603
85604 2004-04-28  Bruno Haible  <bruno@clisp.org>
85605
85606         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85607         also implicitly appends .exe to executables.
85608         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85609         accepts Windows pathnames.
85610         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85611         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85612         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85613         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85614         Reported by Derek Robert Price <derek@ximbiot.com>.
85615
85616 2004-04-21  Karl Berry  <karl@gnu.org>
85617
85618         * config/srclist.txt (localcharset.c): break sync.
85619
85620 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85621
85622         * m4/host-os.m4: Add a copyright notice.
85623
85624 2004-04-20  Jim Meyering  <jim@meyering.net>
85625
85626         Change UTILS_ to gl_ in AC_DEFINE'd names.
85627         Change utils_- and jm_-prefixed variables, too.
85628         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85629         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85630         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85631
85632         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85633         Don't emit trailing blanks.
85634         Also rename jm_-prefixed variables to have gl_ prefix.
85635
85636         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85637         Also rename jm_-prefixed variables to have gl_ prefix.
85638
85639         * m4/jm-macros.m4: Reflect the renamings.
85640         * m4/prereq.m4: Likewise.
85641
85642 2004-04-20  Jim Meyering  <jim@meyering.net>
85643
85644         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85645         memory.
85646
85647 2004-04-20  Jim Meyering  <jim@meyering.net>
85648             Bruno Haible  <bruno@clisp.org>
85649
85650         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85651         memory when realloc fails.
85652
85653 2004-04-19  Jim Meyering  <jim@meyering.net>
85654
85655         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85656         now that readutmp.c may call `free (0)'.
85657
85658 2004-04-19  Bruno Haible  <bruno@clisp.org>
85659
85660         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85661         * m4/inttypes_h.m4: Likewise.
85662         * m4/stdint_h.m4: Likewise.
85663         * m4/intmax_t.m4: Likewise.
85664         * m4/uintmax_t.m4: Likewise.
85665
85666 2004-04-18  Jim Meyering  <jim@meyering.net>
85667
85668         * m4/prereq.m4: Don't forbid jm_ prefix.
85669
85670         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85671         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85672         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85673         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85674         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85675         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85676         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85677         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85678         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85679         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85680         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85681         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85682         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85683         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85684         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85685         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85686         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85687         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85688         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85689
85690 2004-04-18  Jim Meyering  <jim@meyering.net>
85691
85692         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85693         failure, don't leak memory and do call END_UTMP_ENT.
85694
85695 2004-04-16  Jim Meyering  <jim@meyering.net>
85696
85697         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85698         coreutils' stat program.
85699         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85700
85701 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85702
85703         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85704         C89.
85705         (CHAR_BIT): Remove, since we assume C89.
85706         Include <stdint.h> if available, as per current Autoconf CVS advice.
85707
85708 2004-03-31  Jim Meyering  <jim@meyering.net>
85709
85710         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85711         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85712         * m4/xalloc.m4: Likewise.
85713
85714 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85715
85716         Merge from coreutils.
85717
85718         * m4/inttostr.m4: New file.
85719         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85720         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85721         Require gl_CLOCK_TIME.
85722         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85723
85724 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85725
85726         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85727         not bool, to be more consistent with Unix conventions.
85728         Suggested by Bruno Haible.
85729
85730         Merge from coreutils.
85731
85732         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85733         * lib/umaxtostr.c: New files.
85734
85735         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85736         the usual <time.h> dance.
85737         (get_date): Change signature to support fractional time stamps.
85738         All callers changed.
85739         * lib/getdate.y: Include "getdate.h" first, as we can now
85740         assume C89 and don't need to worry about 'const'.
85741         Similarly, include "unlocked-io.h" near start, not in middle.
85742         Include <limits.h>.
85743         (textint.value): Use long int rather than int.
85744         (textint.digits): Use size_t rather than int.
85745         (BILLION, LOG10_BILLION): New constants.
85746         (parser_control): New member rel_ns.  Members day_ordinal,
85747         time_zone, month, day, hour, minutes, rel_year, rel_month,
85748         rel_day, rel_hour, rel_minutes, rel_seconds
85749         are now long int, not int.  Member seconds is now struct timespec,
85750         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85751         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85752         not int.
85753         (%union.intval): Now long int, not int.
85754         New member timespec.
85755         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85756         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85757         (spec): Now is a timespec or an item list.
85758         (timespec, items): New nonterminals.
85759         (time, rel, relunit, number, get_date):
85760         Add support for fractional seconds.
85761         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85762         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85763         (to_hour): First arg is now long int, not int.
85764         (to_year): Returns long int, not int.
85765         Don't treat year -70 like 70.
85766         (tm_diff): Returns long int, not int.
85767         (lookup_word): Use bool instead of int when appropriate.
85768         (yylex): Use size_t for count, not int.
85769         Detect overflow when parsing large integer constants.
85770         Add support for fractions.
85771         (get_date): Make pointers 'const' if possible.
85772         Use more-portable code to detect integer overflow.
85773         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85774         Don't use ctime; it's not reliable if the year has >4 digits.
85775
85776         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85777         This is for compatibility with BSD.
85778
85779         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85780         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85781         From coreutils' system.h.
85782
85783         * lib/userspec.c: Don't include "posixver.h".
85784         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85785         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85786         compatible extension.  Simplify code by removing a boolean int
85787         that was always nonzero if a string was nonnull.
85788
85789 2004-03-30  Jim Meyering  <jim@meyering.net>
85790
85791         Merge from coreutils.
85792
85793         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85794         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85795         on some systems one must include <grp.h> before it.
85796         Reported by Christian Krackowizer.
85797
85798 2004-03-30  Jim Meyering  <jim@meyering.net>
85799
85800         Merge from coreutils.
85801
85802         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85803
85804         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85805         an empty input stream.
85806
85807         * lib/readtokens.c: Include <stdbool.h>.
85808         (readtoken): Use `size_t' rather than int/long.
85809         All callers adjusted.
85810         Use `bool' rather than `int' where appropriate.
85811         Use memset rather than an explicit loop.
85812         Use x2nrealloc rather than xrealloc.
85813         Allow the use of `\0' as a delimiter.
85814         (readtokens): Likewise.
85815         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85816
85817 2004-03-30  Jim Meyering  <jim@meyering.net>
85818
85819         * m4/realloc.m4: Remove file, since now it does no more than
85820         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85821         the `configure.ac' section of module/realloc.
85822         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85823
85824 2004-03-30  Bruno Haible  <bruno@clisp.org>
85825
85826         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85827         nonnull.
85828
85829 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85830
85831         Merge changes to getloadavg.c from coreutils and Emacs.
85832
85833         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85834         Define to an expression, not to the empty string.
85835         Include cloexec.h and xalloc.h.
85836         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85837         Use set_cloexec_flag rather than rolling our own.
85838         * lib/cloexec.c, lib/cloexec.h: New files.
85839
85840 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85841
85842         * m4/cloexec.m4: New file.
85843
85844 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85845
85846         * lib/getopt.h: Sync with libc CVS.
85847
85848 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85849             Bruno Haible  <bruno@clisp.org>
85850
85851         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85852         mbswidth.
85853
85854 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85855             Bruno Haible  <bruno@clisp.org>
85856
85857         * lib/mbswidth.h: Include <wchar.h> only if
85858         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85859         <wchar.h>.
85860         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85861
85862 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85863
85864         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85865         Sync with libc CVS.
85866         * lib/getopt_int.h: New file, also synced from libc.
85867
85868 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85869
85870         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85871         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85872         Bring back getopt.c, getopt.h, getopt1.c.
85873
85874 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85875
85876         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85877         All uses changed.  Check for sa_sigaction member; this fixes
85878         a bug first reported by Jason Andrade in
85879         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85880
85881 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85882
85883         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85884         '#if' expressions.  Unlike the code it replaces, it does not
85885         depend on (defined _SC_PAGESIZE).  However, it does depend on
85886         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85887         first reported by Jason Andrade in
85888         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85889
85890 2004-02-25  Simon Josefsson  <jas@extundo.com>
85891
85892         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85893
85894 2004-02-25  Simon Josefsson  <jas@extundo.com>
85895
85896         * lib/strdup.h: New file.
85897         * lib/strdup.c: Include it.
85898         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85899         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85900
85901 2004-02-23  Karl Berry  <karl@gnu.org>
85902
85903         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85904         (from fencepost.gnu.org:/gd/gnuorg).
85905
85906 2004-02-23  Karl Berry  <karl@gnu.org>
85907
85908         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85909         * config/srclist.txt: add maintain/standards documents.
85910
85911 2004-02-18  Bruno Haible  <bruno@clisp.org>
85912
85913         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85914         Reported by Derek Robert Price <derek@ximbiot.com>.
85915
85916 2004-02-16  Karl Berry  <karl@gnu.org>
85917
85918         * config/mkinstalldirs, install-sh: update from automake.
85919
85920 2004-02-06  Karl Berry  <karl@gnu.org>
85921
85922         * m4/po.m4: update from gettext 0.14.1.
85923
85924 2004-02-06  Karl Berry  <karl@gnu.org>
85925
85926         * lib/config.charset: update from gettext 0.14.1.
85927
85928 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85929
85930         Add comments and code, prompted by suggestions from Bruno Haible
85931         for sh-quote.
85932         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85933         describing the enum quoting_style values.
85934         * lib/quotearg.c (quotearg_alloc): New function.
85935         (quotearg_buffer_restyled): Treat lone { and } as special.
85936         Treat = as special.  Work around bug with older shells
85937         that "see" a '\' that is really the 2nd byte of a multibyte char.
85938         Quote empty string with shell_quoting_style.
85939
85940 2004-02-03  Bruno Haible  <bruno@clisp.org>
85941
85942         * m4/pipe.m4: New file, from GNU gettext.
85943
85944 2004-02-03  Bruno Haible  <bruno@clisp.org>
85945
85946         * lib/pipe.h: New file, from GNU gettext.
85947         * lib/pipe.c: New file, from GNU gettext.
85948
85949 2004-01-27  Bruno Haible  <bruno@clisp.org>
85950
85951         * m4/execute.m4: New file, from GNU gettext.
85952
85953 2004-01-27  Bruno Haible  <bruno@clisp.org>
85954
85955         * lib/execute.h: New file, from GNU gettext.
85956         * lib/execute.c: New file, from GNU gettext.
85957         * lib/w32spawn.h: New file, from GNU gettext.
85958
85959 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85960
85961         Merge from diffutils.
85962
85963         * lib/file-type.c (file_type): Add typed memory objects.
85964         * lib/file-type.h (S_TYPEISTMO): New macro.
85965
85966         * lib/c-stack.h (c_stack_action): Remove argv argument.
85967         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85968         (die): Don't calculate message unless segv_action returns.
85969         (get_stack_location, min_address_from_argv, max_address_from_argv,
85970         volatile stack_base, volatile_stack_size): Remove.
85971         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85972         that every segmentation violation is a stack overflow.  (Ouch!)
85973         See Debian bug 136249 (still outstanding) for more info about why
85974         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85975
85976 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85977
85978         Exit-status fix from coreutils.
85979
85980         Use exit_failure consistently in place of EXIT_FAILURE,
85981         so that program exit statuses are consistent on failure.
85982
85983         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85984         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85985         * lib/argmatch.h: Comment fix to match the above.
85986         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85987         Now a macro referring to exit_failure, instead of a separate
85988         variable.  Include "exitfail.h" to get it.
85989         * lib/xstrtol.h: Include "exitfail.h".
85990         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85991
85992         * lib/long-options.c (parse_long_options): Use prototype
85993         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85994         for clarity.
85995
85996 2004-01-21  Jim Meyering  <jim@meyering.net>
85997
85998         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85999         so as not to conflict with a different-sized __mktime_internal
86000         function in GNU libc.
86001         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86002         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86003
86004 2004-01-20  Karl Berry  <karl@gnu.org>
86005
86006         * config/config.guess: update from config.
86007
86008         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86009
86010 2004-01-20  Bruno Haible  <bruno@clisp.org>
86011
86012         Safer stack allocation.
86013         * lib/setenv.c: Include allocsa.h.
86014         (alloca): Remove fallback definition.
86015         (freea): Remove macro.
86016         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86017         instead of freea.
86018
86019 2004-01-20  Bruno Haible  <bruno@clisp.org>
86020
86021         * m4/eealloc.m4: New file, from GNU gettext.
86022
86023 2004-01-20  Bruno Haible  <bruno@clisp.org>
86024
86025         * m4/allocsa.m4: New file, from GNU gettext.
86026
86027 2004-01-20  Bruno Haible  <bruno@clisp.org>
86028
86029         * lib/xallocsa.h: New file, from GNU gettext.
86030         * lib/xallocsa.c: New file, from GNU gettext.
86031
86032 2004-01-20  Bruno Haible  <bruno@clisp.org>
86033
86034         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86035
86036 2004-01-20  Bruno Haible  <bruno@clisp.org>
86037
86038         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86039         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86040         specially.
86041
86042 2004-01-20  Bruno Haible  <bruno@clisp.org>
86043
86044         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86045         patch.
86046
86047 2004-01-20  Bruno Haible  <bruno@clisp.org>
86048
86049         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86050
86051 2004-01-20  Bruno Haible  <bruno@clisp.org>
86052
86053         * lib/eealloc.h: New file.
86054
86055 2004-01-20  Bruno Haible  <bruno@clisp.org>
86056
86057         * lib/binary-io.h: Avoid warnings on Cygwin.
86058
86059 2004-01-20  Bruno Haible  <bruno@clisp.org>
86060
86061         * lib/allocsa.h: New file, from GNU gettext.
86062         * lib/allocsa.c: New file, from GNU gettext.
86063
86064 2004-01-18  Karl Berry  <karl@gnu.org>
86065
86066         * doc/gpl.texi, doc/lgpl.texi: new files.
86067
86068 2004-01-18  Karl Berry  <karl@gnu.org>
86069
86070         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86071         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86072
86073 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86074
86075         Merge from coreutils.
86076
86077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86078         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86079         (gl_DEFAULT_POSIX2_VERSION): Move
86080         the documentation from 'configure' into 'config.hin',
86081         so that 'configure --help' isn't burdened by it and
86082         we don't have to worry about its formatting there.
86083         Reword the documentation so that it's more succinct
86084         and can be run together into a single paragraph.
86085         * m4/same.m4 (gl_SAME): Check for pathconf.
86086
86087 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86088
86089         Merge from coreutils.
86090
86091         * lib/posixver.c: Include posixver.h.
86092
86093         * lib/same.c: Include <stdbool.h>, <limits.h>.
86094         (_POSIX_NAME_MAX): Define if not defined.
86095         (MIN): New macro.
86096         (same_name): If file names are silently truncated, report
86097         that the file names are the same if they are the same after
86098         the silent truncation.
86099
86100         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86101         conversion function.
86102         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86103         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86104         longer needed.
86105
86106 2004-01-15  Jim Meyering  <jim@meyering.net>
86107
86108         Merge from coreutils.
86109
86110         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86111         if no library is required.
86112         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86113         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86114         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86115         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86116         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86117         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86118         value, $ac_cv_search_crypt, if it's "none required".
86119         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86120         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86121         not gl_FUNC_GETLOADAVG.
86122         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86123         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86124
86125 2004-01-15  Jim Meyering  <jim@meyering.net>
86126
86127         Merge from coreutils.
86128
86129         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86130         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86131         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86132
86133         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86134         optional configure-time default.
86135
86136         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86137
86138         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86139
86140 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86141
86142         Merge from coreutils.
86143
86144         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86145         value, $ac_cv_search_nanosleep, if it's "none required".
86146
86147 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86148
86149         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86150         with like-named macro in fnmatch.c.
86151         (EXT): Use an internal constant instead.
86152
86153         Merge fnmatch patches from glibc.
86154         * lib/fnmatch.c (mbsinit): Remove define.
86155         Add libc_hidden_ver (__fnmatch, fnmatch).
86156         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86157         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86158
86159 2004-01-14  Karl Berry  <karl@gnu.org>
86160
86161         * config/install-sh: update from automake.
86162
86163 2004-01-13  Karl Berry  <karl@gnu.org>
86164
86165         * config/install-sh: update from automake.
86166
86167 2004-01-09  Karl Berry  <karl@gnu.org>
86168
86169         * config/install-sh: update from automake.
86170
86171 2004-01-05  Karl Berry  <karl@gnu.org>
86172
86173         * config/config.{sub,guess}: update from config.
86174
86175 2003-12-31  Karl Berry  <karl@gnu.org>
86176
86177         * config/depcomp: update from automake.
86178
86179 2003-12-14  Karl Berry  <karl@gnu.org>
86180
86181         * lib/config.charset: update from gettext-runtime.
86182
86183 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86184
86185         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86186         Bug reported by Alfred M. Szmidt.
86187
86188 2003-12-03  Bruno Haible  <bruno@clisp.org>
86189
86190         * m4/gettext.m4: Upgrade from gettext-0.13.
86191         * m4/po.m4: Upgrade from gettext-0.13.
86192         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86193         * m4/intmax.m4: New file, from gettext-0.13.
86194         * m4/printf-posix.m4: New file, from gettext-0.13.
86195
86196 2003-11-29  Karl Berry  <karl@gnu.org>
86197
86198         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86199
86200 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86201             Bruno Haible  <bruno@clisp.org>
86202
86203         * lib/printf-parse.h: Don't include sys/types.h.
86204         (ARG_NONE): New macro.
86205         (char_directive): Change type of *arg_index fields to size_t.
86206         * lib/printf-parse.c: Don't include sys/types.h.
86207         (SSIZE_MAX): Remove macro.
86208         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86209         Remove unnecessary overflow check.
86210         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86211         fields.
86212
86213 2003-11-25  Bruno Haible  <bruno@clisp.org>
86214
86215         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86216
86217 2003-11-25  Bruno Haible  <bruno@clisp.org>
86218
86219         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86220         gt_TYPE_SSIZE_T.
86221
86222 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86223
86224         * modules/alloca: Remove dependency on xalloc.
86225
86226 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86227
86228         * lib/alloca.c: Remove dependency on xalloc module.
86229         (xalloc_die): Remove.
86230         (memory_full) [!defined emacs]: New macro.
86231         [!defined emacs]: Don't include xalloc.h.
86232         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86233         address arithmetic overflows.  Change datatypes a bit to avoid
86234         unnecessary casts.
86235
86236 2003-11-22  Jim Meyering  <jim@meyering.net>
86237
86238         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86239         s/size/size_t/.
86240
86241 2003-11-21  Karl Berry  <karl@gnu.org>
86242
86243         * config/config.{sub,guess}: update from config.
86244
86245 2003-11-18  Karl Berry  <karl@gnu.org>
86246
86247         * config/config.{sub,guess}: update from config.
86248
86249         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86250
86251 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86252
86253         * README: Mention that S+T cannot overflow if S is the size of
86254         an existing object and T is sufficiently small.
86255
86256 2003-11-17  Jim Meyering  <jim@meyering.net>
86257
86258         On systems without utime and without a utimes function capable of
86259         dealing with a NULL struct utimbuf* argument, this utime replacement
86260         could -- in unusual circumstances -- leak a file descriptor.
86261         * lib/utime.c: Include <unistd.h> and <errno.h>.
86262         (utime_null): Be sure to close `fd' and to preserve errno.
86263         Reported by Geoff Collyer via Arnold Robbins.
86264
86265 2003-11-17  Bruno Haible  <bruno@clisp.org>
86266
86267         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86268         (Depends-on): Add xsize.
86269
86270 2003-11-17  Bruno Haible  <bruno@clisp.org>
86271
86272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86273
86274 2003-11-17  Bruno Haible  <bruno@clisp.org>
86275
86276         * lib/vasnprintf.c (alloca): Remove fallback definition.
86277         (freea): Remove definition.
86278         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86279         Reported by Paul Eggert.
86280
86281 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86282             Bruno Haible  <bruno@clisp.org>
86283
86284         Protect against address arithmetic overflow.
86285         * lib/printf-args.h: Include stddef.h.
86286         (arguments): Change type of field 'count' to size_t.
86287         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86288         'unsigned int' where appropriate.
86289         * lib/printf-parse.h: Include sys/types.h.
86290         (char_directive): Change type of *arg_index fields to ssize_t.
86291         (char_directives): Change type of fields 'count', max_*_length to
86292         size_t.
86293         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86294         (SSIZE_MAX): Define fallback value.
86295         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86296         instead of 'int' where appropriate. Check a_allocated, d_allocated
86297         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86298         * lib/vasnprintf.c: Include xsize.h.
86299         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86300         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86301         overflow. Avoid wraparound when converting a width or precision from
86302         decimal to binary.
86303
86304 2003-11-16  Bruno Haible  <bruno@clisp.org>
86305
86306         Update from GNU gettext.
86307         * lib/printf-parse.c: Generalize to it can be compiled for wide
86308         strings.
86309         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86310         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86311         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86312         SNPRINTF): New macros.
86313         Don't include <alloca.h> if the file is used inside libintl.
86314         (local_wcslen): New function, for Solaris 2.5.1.
86315         (VASNPRINTF): Use it instead of wcslen.
86316
86317 2003-11-16  Bruno Haible  <bruno@clisp.org>
86318
86319         * lib/xsize.h (xmax): New function.
86320         (xsum, xsum3, xsum4): Declare as "pure" functions.
86321
86322 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86323
86324         * modules/xalloc (Files): Undo latest change, since xalloc.h
86325         no longer needs SIZE_MAX or PTRDIFF_MAX.
86326
86327 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86328
86329         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86330         gl_PTRDIFF_MAX.
86331
86332 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86333
86334         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86335         "return", to pacify some unknown compiler.  Problem reported
86336         by Joerg Schilling.
86337
86338 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86339
86340         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86341         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86342         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86343         heuristic is just as accurate as far as we know, and it removes a
86344         dependency on size_max.m4 and ptrdiff_max.m4.
86345
86346 2003-11-11  Bruno Haible  <bruno@clisp.org>
86347
86348         * modules/xsize (Files): Add m4/size_max.m4.
86349         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86350
86351 2003-11-11  Bruno Haible  <bruno@clisp.org>
86352
86353         * m4/size_max.m4: New file.
86354         * m4/ptrdiff_max.m4: New file.
86355         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86356         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86357         (gl_XALLOC): Invoke it.
86358
86359 2003-11-11  Bruno Haible  <bruno@clisp.org>
86360
86361         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86362         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86363         defined.
86364
86365 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86366
86367         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86368         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86369         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86370         From Bruno Haible.
86371         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86372         not (size_t) -1, since it's defined here.
86373
86374 2003-11-09  Karl Berry  <karl@gnu.org>
86375
86376         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86377
86378 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86379
86380         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86381         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86382         Reject sizes of exactly SIZE_MAX bytes.
86383         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86384         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86385
86386 2003-11-05  Bruno Haible  <bruno@clisp.org>
86387
86388         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86389         SIZE_MAX defined in <limits.h> on Solaris.
86390
86391 2003-11-04  Jim Meyering  <jim@meyering.net>
86392
86393         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86394         variable names, rather than @VAR@.
86395         * modules/poll: Likewise.
86396
86397 2003-11-04  Bruno Haible  <bruno@clisp.org>
86398
86399         * modules/xsize: New file.
86400         * modules/linebreak: Depend on xsize.
86401         * MODULES.html.sh (func_all_modules): Add xsize.
86402
86403 2003-11-04  Bruno Haible  <bruno@clisp.org>
86404
86405         * m4/xsize.m4: New file.
86406
86407 2003-11-04  Bruno Haible  <bruno@clisp.org>
86408
86409         * lib/xsize.h: New file.
86410         * lib/linebreak.c: Include xsize.h.
86411         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86412         argument for overflow.
86413         Suggested by Paul Eggert.
86414
86415 2003-11-03  Karl Berry  <karl@gnu.org>
86416
86417         * config/config.{guess,sub}: update from config.
86418
86419 2003-11-03  Jim Meyering  <jim@meyering.net>
86420
86421         * modules/userspec (lib_SOURCES): Add userspec.h.
86422         (Include): Add "userspec.h".
86423         Improve description.
86424
86425 2003-11-03  Jim Meyering  <jim@meyering.net>
86426
86427         * lib/userspec.c: Include "userspec.h".
86428         * lib/userspec.h: New file.
86429
86430 2003-11-03  Bruno Haible  <bruno@clisp.org>
86431
86432         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86433
86434 2003-11-03  Bruno Haible  <bruno@clisp.org>
86435
86436         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86437         available, to avoid (extremely rare) race condition.
86438         Suggested by Paul Eggert.
86439
86440 2003-11-02  Karl Berry  <karl@gnu.org>
86441
86442         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86443
86444 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86445
86446         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86447         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86448         (read_filesystem_list): Set and use me_type_malloced.
86449         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86450         whatever the type happens to be), for brevity and consistency.
86451         Check for size calculation overflow on Alphas running OSF/1.
86452
86453 2003-10-31  Jim Meyering  <jim@meyering.net>
86454
86455         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86456
86457         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86458
86459 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86460             Bruno Haible  <bruno@clisp.org>
86461
86462         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86463         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86464
86465 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86466
86467         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86468         netbsd*-gnu*.  Suggested by Robert Millan.
86469
86470 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86471
86472         * modules/group-member: Depend on stdbool.
86473
86474 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86475
86476         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86477
86478 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86479
86480         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86481         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86482         after the 'gnu' in these cases.  This fixes some bugs in the
86483         previous change, and is based on suggestions by Robert Millan.
86484
86485 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86486
86487         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86488         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86489         no longer needed.
86490         * lib/quotearg.c (quotearg_n_options): Use it.
86491         * lib/group-member.c: Include <stdbool.h>.
86492         (free_group_info): Arg is now const *; don't free arg.
86493         (get_group_info): Now returns bool and accepts struct group_info *,
86494         rather than returning a malloc'ed struct group_info *.
86495         All uses changed.  Check for overflow in internal size calculation.
86496
86497         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86498         rather than xmalloc/xrealloc.
86499         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86500         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86501         conformance bug: the old code used a pointer after freeing the
86502         storage that it addressed.
86503         * lib/hash.c (hash_initialize): Simplify the code by using
86504         xalloc_oversized rather than doing it by hand.
86505         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86506         the buffer preserved.  Use free and xmalloc instead.
86507         * lib/quotearg.c (quotearg_n_options): Likewise.
86508         Use a simpler test for size overflow.  Don't use xalloc_oversized
86509         because unsigned int might be wider than size_t (!); this suggests
86510         that we should switch from unsigned int to size_t for slot numbers.
86511
86512 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86513
86514         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86515         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86516         NetBSD kernels.  Requested by Richard Stallman.
86517
86518 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86519
86520         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86521         to allocate the returned structure.  Do not allocate a subarray,
86522         as x2nrealloc will do that.
86523         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86524         instead of xnrealloc.
86525         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86526
86527 2003-10-27  Bruno Haible  <bruno@clisp.org>
86528
86529         * lib/stdbool_.h: Better support for BeOS.
86530
86531 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86532
86533         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86534         now uses inline.
86535
86536 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86537
86538         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86539         callers that want to do their own size-overflow checking.  Include
86540         <stdbool.h>, since xalloc_oversized returns bool.
86541         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86542         to use xalloc_oversized.
86543
86544         Add two functions x2realloc, x2nrealloc, for programs that grow
86545         arrays dynamically by doubling their sizes.
86546         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86547         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86548         New functions.
86549
86550         Port to C99 semantics for 'inline' of external functions.
86551         Bug reported by Bruno Haible.
86552         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86553         with the old contents of xnmalloc.
86554         (xnmalloc, xmalloc): Use it.
86555         (xnrealloc_inline): New static inline function,
86556         with the old contents of xnrealloc.
86557         (xnrealloc, xrealloc): Use it.
86558
86559         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86560         that.
86561
86562 2003-10-26  Karl Berry  <karl@gnu.org>
86563
86564         * config/srclist.txt (COPYING.DOC): no longer available from
86565         /gd/gnuorg; don't know where the ultimate source is.
86566
86567 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86568
86569         Fix several address-calculation bugs in the hash modules,
86570         plus some minor code cleanup.
86571
86572         * lib/hash.h: Include <stdbool.h>, for bool.
86573         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86574         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86575         hash_get_n_entries, hash_get_max_bucket_length,
86576         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86577         hash_rehash): Use size_t rather than unsigned.
86578         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86579         hash_get_n_buckets_used, hash_get_n_entries,
86580         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86581         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86582         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86583         Likewise.
86584         (SIZE_MAX): Define if not defined.
86585         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86586         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86587         hash_print):
86588         Use const * when possible.
86589         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86590         (check_tuning): Fix bug: if tuning parameters were very close to
86591         0 or 1, rounding errors could have caused subscript violations.
86592         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86593         (hash_initialize): Add 'fail:' label
86594         to free table and return NULL, and use it to simplify code.
86595         Use calloc rather than clearing the storage ourself.
86596         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86597         buffer size calculations.
86598         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86599         Include <stddef.h>, for size_t.
86600         * lib/hash-pjw.c (hash_pjw): Likewise.
86601         Switch to method described by Bruno Haible.
86602         Include <limits.h>, for CHAR_BIT.
86603         (SIZE_BITS): New macro.
86604
86605 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86606
86607         * m4/getline.m4 (AM_FUNC_GETLINE):
86608         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86609         hosts.  Problem reported by Derek Robert Price in
86610         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86611         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86612         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86613
86614 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86615
86616         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86617         ceiling the allocation at NMAX bytes rather than silently
86618         discarding input bytes before NMAX is reached.  This makes
86619         a difference only if NMAX exceeds SIZE_MAX / 2.
86620
86621         * lib/obstack.c: Merge from glibc.
86622         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86623         Add libc_hidden_def (_obstack_newchunk).
86624         (_obstack_free) [! defined _LIBC]: Remove.
86625         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86626         a clone of the function body.
86627         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86628         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86629
86630         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86631         glibc.
86632         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86633         arg to memcpy.
86634
86635         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86636         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86637         Don't use lvalue casts, as GCC plans to remove support for them
86638         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86639         was also present in the non-GCC version, indicating that this
86640         code had always been buggy and had never been widely used.
86641         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86642         Use the fast variant of each macro, rather than copying the
86643         definiens of the fast variant; that way, we'll be more likely to
86644         catch future bugs in the fast variants.
86645
86646 2003-10-20  Bruno Haible  <bruno@clisp.org>
86647
86648         * modules/wait-process: New file.
86649         * MODULES.html.sh (func_all_modules): Add wait-process.
86650
86651 2003-10-20  Bruno Haible  <bruno@clisp.org>
86652
86653         * m4/wait-process.m4: New file.
86654
86655 2003-10-20  Bruno Haible  <bruno@clisp.org>
86656
86657         * lib/wait-process.h: New file, from GNU gettext.
86658         * lib/wait-process.c: New file, from GNU gettext.
86659
86660 2003-10-19  Jim Meyering  <jim@meyering.net>
86661
86662         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86663         HPUX 10.20.
86664
86665 2003-10-18  Karl Berry  <karl@gnu.org>
86666
86667         * config/config.guess: update from config.
86668
86669 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86670
86671         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86672         (getgroups): First arg is int, not size_t.
86673         Don't let 'free' mangle errno.
86674
86675 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86676
86677         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86678
86679 2003-10-16  Karl Berry  <karl@gnu.org>
86680
86681         * config/config.{guess,sub}: update from config.
86682
86683 2003-10-16  Jim Meyering  <jim@meyering.net>
86684
86685         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86686         memcpy.
86687
86688 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86689
86690         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86691         (SIZE_MAX): Remove.
86692         (new_exclude, add_exclude_file): Initial size no longer needs to
86693         be a power of 2.
86694         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86695         our own address arithmetic overflow checking.
86696
86697         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86698         (fnmatch): Do not alloca more than 2000 wide characters;
86699         instead, use malloc for large buffers.
86700         Check for address arithmetic overflow, and return -1
86701         with errno set to ENOMEM in that case.
86702         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86703         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86704         instead, return -1.  Check for address arithmetic overflow.
86705
86706 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86707
86708         Handle invalid suffixes and overflow independently, so that
86709         callers can treat them independently as needed.  Fix some bugs in
86710         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86711         suffix for a human-readable blocksize.  The major caller-visible
86712         change is the addition of a new
86713         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86714         that both overflow and suffix chars were found.
86715
86716         * lib/human.c (humblock): Don't check separately for invalid suffix
86717         char; that is xstrtoumax's job (now that its bug is fixed).
86718         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86719         INTMAX_MAX]: New macros.
86720         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86721         TYPE_MAXIMUM): New macros.
86722         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86723         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86724         if overflow occurs, as it's what __strtol does and it's more useful
86725         in practice.
86726         (__xstrtol): If __strtol reports some error other than ERANGE,
86727         reflect it to the caller as LONGINT_INVALID.  If it reports
86728         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86729         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86730         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86731         value.
86732         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86733         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86734         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86735         [defined UINTMAX_MAX]: New macros.
86736
86737 2003-10-14  Bruno Haible  <bruno@clisp.org>
86738
86739         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86740
86741 2003-10-14  Bruno Haible  <bruno@clisp.org>
86742
86743         * m4/sig_atomic_t: New file, from GNU gettext.
86744         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86745
86746 2003-10-14  Bruno Haible  <bruno@clisp.org>
86747
86748         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86749         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86750         Also use volatile where needed.
86751
86752 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86753
86754         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86755         Change maintainer from Bruno Haible to 'all'.
86756
86757 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86758
86759         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86760
86761 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86762
86763         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86764         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86765         and define in terms of the other primitives.
86766         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86767         (SIZE_MAX): Define if not already defined.
86768         (array_size_overflow): New function.
86769         (xalloc_die): Abort instead of exiting if 'error' returns.
86770         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86771         (xmalloc, xrealloc): Use them.
86772         (xcalloc): Check for address arithmetic overflow.
86773         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86774         a bit faster than strcpy.
86775
86776 2003-10-10  Simon Josefsson  <jas@extundo.com>
86777
86778         * modules/argp (Depends-on): Add restrict and strcase.
86779
86780 2003-10-10  Simon Josefsson  <jas@extundo.com>
86781
86782         * m4/argp.m4: Add AC_C_INLINE.
86783
86784 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86785
86786         Merge getpass from libc, plus a few fixes.
86787
86788         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86789         Include <stdbool.h>.
86790         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86791         __fsetlocking to empty.
86792         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86793         do include <bits/libc-lock.h>.
86794         Do not include <fcntl.h>; not needed.
86795         [_LIBC]: Include <wchar.h>.
86796         (NOTCANCEL_MODE): New macro.
86797         (flockfile, funlockfile) [_LIBC]: New macros.
86798         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86799         [!_LIBC]: New macros.
86800         (call_fclose): New function.
86801         (getpass): Use it.  Save tty stream separately; this simplifies the
86802         code and makes it more reliable if stdin happens to equal stdout.
86803         Invoke __fsetlocking on tty.
86804         Handle thread cancellation if needed.
86805         Namespace cleanup (use __tcgetattr, __getline).
86806         Use bool for Booleans.
86807         [USE_IN_LIBIO]: Handle wide streams.
86808         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86809         stream might go where.
86810
86811         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86812         doesn't have to include <stdio.h> before us.
86813         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86814         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86815         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86816         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86817         if not declared, so that we can use getpass.c code from libc without
86818         rewriting it.
86819         (flockfile, ftrylockfile, funlockfile): New macros.
86820
86821 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86822
86823         * modules/getpass: Depend on stdbool.
86824
86825 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86826
86827         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86828
86829 2003-10-07  Karl Berry  <karl@gnu.org>
86830
86831         * config/config.{guess,sub}: update from config.
86832
86833 2003-10-06  Jim Meyering  <jim@meyering.net>
86834             Bruno Haible  <bruno@clisp.org>
86835
86836         This lets translators provide better translations for the
86837         "Written by ..." part of --version output.
86838         * lib/version-etc.h: Include stdarg.h.
86839         (version_etc_copyright): Declare as readonly.
86840         (version_etc): Make this function variadic with a NULL-terminated list
86841         of author name strings.
86842         (version_etc_va): New declaration.
86843         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86844         (version_etc_copyright): Declare as readonly.
86845         (version_etc_va): New function. Provide a different translatable string
86846         for each possible number of authors < 10. Abbreviate when there are 10
86847         authors or more.
86848         (version_etc): Make this function variadic. Call version_etc_va.
86849         Suggestion from Gary V. Vaughan.
86850
86851         * lib/long-options.h (parse_long_options): Change prototype: the
86852         authors string is moved to the end and becomes variadic.
86853         * lib/long-options.c: Include stdarg.h.
86854         (parse_long_options): Make this function variadic, too.
86855         Call version_etc_va, not version_etc.
86856
86857 2003-10-06  Bruno Haible  <bruno@clisp.org>
86858
86859         * modules/version-etc-2: Remove file.
86860         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86861
86862 2003-10-06  Bruno Haible  <bruno@clisp.org>
86863
86864         * modules/fatal-signal: New file.
86865         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86866
86867 2003-10-06  Bruno Haible  <bruno@clisp.org>
86868
86869         * m4/fatal-signal.m4: New file.
86870         * m4/signalblocking.m4: New file, from GNU gettext.
86871
86872 2003-10-06  Bruno Haible  <bruno@clisp.org>
86873
86874         * lib/version-etc-2.h: Remove file.
86875         * lib/version-etc-2.c: Remove file.
86876
86877 2003-10-06  Bruno Haible  <bruno@clisp.org>
86878
86879         * lib/fatal-signal.h: New file, from GNU gettext.
86880         * lib/fatal-signal.c: New file, from GNU gettext.
86881
86882 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86883
86884         * README: Rework advice for preventing empty .o files.
86885         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86886         not <sys/types.h>.
86887
86888 2003-10-04  Karl Berry  <karl@gnu.org>
86889
86890         * lib/argp*: update from libc.
86891
86892 2003-10-04  Karl Berry  <karl@gnu.org>
86893
86894         * config/config.{guess,sub}: update from config.
86895
86896 2003-10-02  Bruno Haible  <bruno@clisp.org>
86897
86898         * modules/lchown (Include): Add lchown.h.
86899         * modules/time_r (Include): Use "..." syntax.
86900         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86901
86902 2003-10-01  Simon Josefsson  <jas@extundo.com>
86903
86904         * MODULES.html.sh (func_all_modules): Move gethostname from section
86905         'based on' to section 'lacking' POSIX:2001.
86906
86907 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86908
86909         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86910         to output mode on the same stream.
86911
86912 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86913
86914         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86915         Fix arg typo in previous patch.
86916
86917 2003-09-28  Jim Meyering  <jim@meyering.net>
86918
86919         * lib/error.c: Correct cpp indentation.
86920
86921 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86922
86923         * modules/free: New file.
86924
86925 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86926
86927         * m4/free.m4: New file.
86928
86929 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86930
86931         * lib/minmax.h (MIN, MAX)
86932         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86933         Omit the special code that used __typeof__, since we worry that
86934         it could be more trouble than it's worth.  See:
86935         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86936         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86937
86938         * lib/free.c: New file.
86939
86940 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86941
86942         Trivial fixes to Makefile.am parts of module listings.
86943         * modules/strstr: Append strstr.h to lib_SOURCES.
86944         * modules/strcase: Likewise, for strcase.h.
86945
86946 2003-09-27  Karl Berry  <karl@gnu.org>
86947
86948         * config/mkinstalldirs: update from automake.
86949
86950 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86951
86952         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86953         (error_tail): Do not loop, reallocating temporary buffer, since
86954         the output cannot contain more wide characters than the input
86955         contains bytes, the size must be big enough already.  This avoids
86956         one potential size overflow calculation.  Check for size overflow
86957         when calculating temporary buffer size.  Free temporary buffer
86958         when done, if it was allocated with malloc; this plugs a memory
86959         leak.  Remove casts from void * to pointers, that are no longer
86960         needed now that we're assuming C89 or better.
86961
86962         Merge error changes from glibc.
86963
86964         * lib/error.c, error.h: Update copyright notice header to match glibc.
86965         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86966         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86967         Disable cancellation while printing error.
86968         * lib/error.h: Prepend __ to parameter names.
86969
86970 2003-09-26  Jim Meyering  <jim@meyering.net>
86971
86972         * lib/error.c (error_tail): Move some declarations
86973         into inner scope where the local variables are used.
86974
86975 2003-09-26  Bruno Haible  <bruno@clisp.org>
86976
86977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86978         stpncpy().
86979         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86980
86981 2003-09-26  Bruno Haible  <bruno@clisp.org>
86982
86983         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86984         (stpncpy): Define as alias for gnu_stpncpy.
86985         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86986
86987 2003-09-25  Simon Josefsson  <jas@extundo.com>
86988
86989         * lib/xgetdomainname.h: New file.
86990         * lib/xgetdomainname.c: New file.
86991
86992 2003-09-25  Simon Josefsson  <jas@extundo.com>
86993             Bruno Haible  <bruno@clisp.org>
86994
86995         * modules/getdomainname: New file.
86996         * modules/xgetdomainname: New file.
86997         * MODULES.html.sh (func_all_modules): Add getdomainname,
86998         xgetdomainname.
86999
87000 2003-09-25  Simon Josefsson  <jas@extundo.com>
87001             Bruno Haible  <bruno@clisp.org>
87002
87003         * m4/getdomainname.m4: New file.
87004
87005 2003-09-25  Simon Josefsson  <jas@extundo.com>
87006             Bruno Haible  <bruno@clisp.org>
87007
87008         * lib/getdomainname.h: New file.
87009         * lib/getdomainname.c: New file.
87010
87011 2003-09-25  Karl Berry  <karl@gnu.org>
87012
87013         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87014
87015 2003-09-25  Karl Berry  <karl@gnu.org>
87016
87017         * config/install-sh: update from automake.
87018
87019 2003-09-25  Bruno Haible  <bruno@clisp.org>
87020
87021         * modules/version-etc-2: New file, from modules/version-etc with
87022         modifications.
87023         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87024
87025 2003-09-25  Bruno Haible  <bruno@clisp.org>
87026
87027         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87028         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87029
87030 2003-09-24  Simon Josefsson  <jas@extundo.com>
87031
87032         * modules/xgethostname: Add xgethostname.h.
87033
87034 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87035
87036         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87037         the buffer associated with the argument.  Bug reported by
87038         Simon Josefsson.
87039
87040 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87041
87042         * README: Document assumptions that 'int' is at least 32 bits
87043         wide, that integer arithmetic is 2's complement without overflow,
87044         that there are no holes in integer values, that adding sizes of
87045         two nonoverlapping objects can't overflow, and that all-bits-zero
87046         yields scalar zero.  Fix spelling and capitalization typos.
87047
87048 2003-09-19  Karl Berry  <karl@gnu.org>
87049
87050         * lib/argp.h: update from libc.
87051
87052 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87053
87054         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87055         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87056         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87057
87058 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87059
87060         * gnulib-tool: Use "test -h", not "test -L", for portability
87061         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87062         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87063         (sed_extract_prog): Issue s commands one-by-one, rather than
87064         using \| in one s command.
87065
87066 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87067
87068         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87069         input error, instead of returning NULL the next time we are called
87070         (and therefore losing track of errno).
87071
87072 2003-09-16  Bruno Haible  <bruno@clisp.org>
87073
87074         * gnulib-tool (func_create_testdir): Warn about duplicated
87075         dependencies.
87076
87077 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87078
87079         * modules/argmatch, modules/fatal, modules/obstack,
87080         modules/xalloc, modules/xgethostname: Sort dependencies by
87081         importance, not alphabetically.
87082
87083 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87084
87085         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87086         fails, so that the caller gets the proper errno.
87087
87088         * lib/readutmp.c (read_utmp): Likewise.
87089         Check for fstat error.  Close stream and free storage
87090         when failing.
87091
87092 2003-09-14  Karl Berry  <karl@gnu.org>
87093
87094         * config/srclist.txt (strdup.c): disable for c89 changes.
87095
87096 2003-09-14  Jim Meyering  <jim@meyering.net>
87097
87098         * lib/getloadavg.c: Correct cpp indentation.
87099         * lib/strdup.c: Likewise.
87100         * lib/vasnprintf.c: Likewise.
87101
87102 2003-09-14  Bruno Haible  <bruno@clisp.org>
87103
87104         * modules/fwriteerror: New file.
87105         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87106
87107 2003-09-14  Bruno Haible  <bruno@clisp.org>
87108
87109         * lib/fwriteerror.h: New file.
87110         * lib/fwriteerror.c: New file.
87111
87112 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87113
87114         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87115         modules/xgethostname, modules/xalloc: Depend on exit.
87116
87117 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87118
87119         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87120
87121         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87122         and AC_MINIX, too, so that their extensions are available.
87123
87124         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87125         This macro has been superseded by gl_BACKUPFILE.
87126
87127         More patches to assume C89 or better.
87128
87129         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87130
87131         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87132         unconditionally.
87133         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87134         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87135         Include <string.h>, <stdlib.h> unconditionally.
87136         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87137         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87138         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87139         headers or for string.h.
87140         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87141         or strtoul.
87142
87143         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87144         headers.
87145         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87146         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87147         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87148         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87149         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87150         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87151         memcpy, memset.
87152         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87153         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87154         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87155         strtol.
87156         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87157         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87158         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87159         strtoul.
87160
87161 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87162
87163         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87164         * lib/obstack.c [!defined _LIBC]: Likewise.
87165         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87166         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87167         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87168
87169         More changes to assume C89 or better.
87170
87171         * lib/error.c (error_tail): Assume vprintf.
87172
87173         * lib/argmatch.c (getenv): Remove decl.
87174         * lib/progreloc.c (get_full_program_name): Define via prototype.
87175         * lib/setenv.c (clearenv): Likewise.
87176         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87177         needed.
87178         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87179         (malloc, memcpy): Remove decls.
87180         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87181         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87182         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87183         (memcpy): Remove macro.
87184         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87185         (__P): Remove.  All uses removed.
87186         (PTR): Remove.  All uses changed to void *.
87187         (CHAR_BIT, NULL): Remove.
87188         (spaces, zeros, memset_space, memset_zero)
87189         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87190         Remove.
87191         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87192         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87193         Define with prototype.
87194         Remove now-unnecessary prototype decl.
87195         (extra_args_spec): Assume ANSI C.  All uses changed.
87196         (extra_args_spec_iso): Remove.
87197         (my_strftime, emacs_strftimeu): Define via prototype.
87198         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87199         unconditionally.
87200         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87201         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87202         (strtoul, strtol): Remove decls.
87203         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87204         LONG_MAX): Remove.
87205         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87206         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87207         (LOCALE_PARAM_PROTO): New macro.
87208         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87209         (INTERNAL (strtol), strtol): Define with a prototype.
87210         (PARAMS): Remove.  All uses removed.
87211         * lib/tempname.c: Include <string.h> unconditionally.
87212         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87213         * lib/xgethostname.c (main): Define with a prototype.
87214         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87215         Include <stdlib.h> unconditionally.
87216         (calloc, malloc, realloc, free): Remove decls.
87217         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87218         Include <stdlib.h> unconditionally.  Sort include file names.
87219         (strtod): Remove.
87220         (xstrtod): Define with a prototype.
87221         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87222         (strtol, strtoul): Remove decls.
87223
87224 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87225
87226         More patches to assume C89 or better.
87227         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87228         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87229         string.h, memchr, STDC_HEADERS.
87230
87231 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87232
87233         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87234         Include <stdlib.h>, <string.h> unconditionally.
87235         Remove now-unnecessary cast to char *.
87236         * lib/strnlen.c: Include <string.h> unconditionally.
87237         * lib/yesno.c (yesno): Define with a prototype.
87238
87239 2003-09-11  Bruno Haible  <bruno@clisp.org>
87240
87241         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87242
87243 2003-09-10  Jim Meyering  <jim@meyering.net>
87244
87245         * lib/error.c: Correct indentation of cpp directives.
87246
87247 2003-09-10  Bruno Haible  <bruno@clisp.org>
87248
87249         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87250         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87251         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87252         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87253         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87254         <stdlib.h> and <string.h> checks.
87255         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87256         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87257
87258 2003-09-10  Bruno Haible  <bruno@clisp.org>
87259
87260         * lib/strcspn.c: Include <string.h> unconditionally.
87261         * lib/strpbrk.c: Include <string.h> unconditionally.
87262         * lib/strstr.c: Include <string.h> unconditionally.
87263         * lib/unicodeio.c: Include <string.h> unconditionally.
87264         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87265         * lib/unsetenv.c: Likewise.
87266         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87267         * lib/yesno.c: Include <stdlib.h> unconditionally.
87268         (rpmatch): Add prototype.
87269
87270 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87271
87272         More patches to assume C89 or better.
87273         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87274         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87275         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87276         or for string.h.
87277         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87278         stdlib.h.
87279         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87280         C headers.
87281         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87282         string.h.
87283         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87284         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87285         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87286         or for string.h.
87287         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87288         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87289         C headers.
87290         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87291         memcpy.
87292         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87293         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87294         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87295         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87296         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87297         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87298         string.h, free.
87299         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87300         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87301         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87302         C headers, or for string.h.
87303         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87304         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87305         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87306         headers, memory.h, stdlib.h, string.h, strings.h.
87307         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87308         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87309         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87310         strchr.
87311         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87312         headers, memory.h, string.h.
87313         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87314         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87315         free.
87316         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87317         headers.
87318         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87319         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87320         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87321         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87322         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87323
87324 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87325
87326         More K&R removal.
87327
87328         * lib/acosl.c (main): Use a prototype.
87329         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87330         tanl.c: Likewise.
87331
87332         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87333
87334         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87335         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87336         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87337         with a prototype.
87338         * lib/getopt.c (const): Remove macro.
87339         Include <string.h> unconditionally.
87340         (my_index): Remove; all uses changed to strchr.
87341         (strlen): Remove decl.
87342         (exchange): Remove forward decl; no longer needed.
87343         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87344         Define with prototype.
87345         * lib/getopt1.c (const): Remove macro.
87346         (getopt_long, getopt_long_only, main): Define with prototype.
87347
87348         * lib/getugroups.c: Include <string.h> unconditionally.
87349
87350         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87351         (getusershell, setusershell, endusershell, readname, main):
87352         Define with prototypes.
87353
87354         * lib/group-member.c: Include group-member.h first.
87355         Include <stdlib.h> unconditionally.
87356
87357         * lib/hard-locale.c: Include hard-locale.h first.
87358         Include <stdlib.h>, <string.h> unconditionally.
87359
87360         * lib/hash.c (free, malloc): Remove decls.
87361         Include <stdlib.h> unconditionally.
87362
87363         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87364         (getenv): Do not declare.
87365
87366         * lib/idcache.c: Include <string.h> unconditionally.
87367
87368         * lib/long-options.c: Include long-options.h first, to test interface.
87369         Include <stdlib.h> unconditionally.
87370
87371         * lib/makepath.c: Include makepath.h first, to test interface.
87372         Include <stdlib.h> and <string.h> unconditionally.
87373
87374         * lib/linebuffer.c: Include <stdlib.h>.
87375         (free): Remove decl.
87376
87377         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87378         stddef.h. rpl_malloc returns void *, not char *.
87379         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87380         prototype.
87381
87382         * lib/md5.h: Include <limits.h> unconditionally.
87383         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87384         (__P): Remove; all uses removed.
87385         * lib/md5.c: Include "md5.h" first.
87386         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87387         md5_buffer, md5_process_bytes, md5_process_block):
87388         Define with prototypes.
87389         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87390         * lib/sha.c: Include "sha.h" first.
87391         Include <stdlib.h>, <string.h> unconditionally.
87392
87393         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87394         * lib/memcmp.c (__ptr_t): Likewise.
87395         * lib/memrchr.c (__ptr_t): Likewise.
87396         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87397         Include <string.h> unconditionally.
87398         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87399         * lib/memchr.c: Include <stdlib.h> unconditionally.
87400         * lib/memchr.c (LONG_MAX): Remove.
87401         * lib/memrchr.c (LONG_MAX): Likewise.
87402         * lib/memchr.c (__memchr): Define via a prototype.
87403         * lib/memrchr.c (__memrchr): Likewise.
87404         * lib/memcmp.c (__P): Remove, and remove all uses.
87405         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87406         Remove forward decls; no longer needed.
87407         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87408         Use types required by C89 in prototype.
87409
87410         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87411         * lib/savedir.c: Likewise.
87412         * lib/mkdir.c (free): Remove decl.
87413         * lib/rmdir.c (rmdir): Define with a prototype.
87414         * lib/savedir.c: Include savedir.h first, to test interface.
87415
87416         * lib/mktime.c (STDC_HEADERS): Remove.
87417         Include <stdlib.h>, <string.h> unconditionally.
87418
87419         * lib/modechange.c: Include <stdlib.h> unconditionally.
87420         (malloc): Remove decl.
87421
87422         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87423         (free): Remove decl.
87424
87425         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87426         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87427         (This type really should be intptr_t, but that's a C99ism.)
87428         (_obstack_memcpy): Remove: all uses changed to memcpy.
87429         Include <string.h> unconditionally.
87430         (struct obstack): Assume __STDC__ for types of members
87431         chunkfun, freefun, extra_arg.
87432         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87433         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87434         obstack_begin, obstack_specify_allocation,
87435         obstack_specify_allocation_with_arg, obstack_chunkfun,
87436         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87437         Remove unprototyped decls and the macros that use them.
87438         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87439         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87440         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87441         (defined __STDC__ && __STDC__)]:
87442         Remove nonprototyped code.
87443         Include <stdlib.h> unconditionally.
87444         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87445         _obstack_allocated_p, _obstack_free, obstack_free,
87446         _obstack_memory_used, print_and_abort):
87447         Define using prototypes.
87448         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87449         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87450         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87451         obstack_next_free, obstack_object_size, obstack_room) [0]:
87452         Remove unused, unprototyped code.
87453
87454         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87455
87456         * lib/physmem.c (physmem_total, physmem_available, main): Define
87457         with prototypes.
87458
87459         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87460         (main): Define with a prototype.
87461
87462         * lib/posixver.c (getenv): Remove decl.
87463
87464         * lib/putenv.c (malloc): Returns void *, not char *.
87465         Include <string.h> unconditionally.
87466         (strchr, memcpy, NULL): Do not define.
87467
87468         * lib/readtokens.c: Include readtokens.h first, to test interface.
87469         Include <stdlib.h>, <string.h> unconditionally.
87470         (init_tokenbuffer): Define with a prototype.
87471
87472         * lib/regex.c (PARAMS): Remove.  All uses removed.
87473         All uses of _RE_ARGS removed, too.
87474         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87475         unconditionally.
87476         (bzero): Assume memset exists.
87477         (memcmp, memcpy, NULL): Remove.
87478         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87479         char, or assignments to local vars of type signed char.
87480         (init_syntax_once, PREFIX(extract_number_and_incr),
87481         PREFIX(print_partial_compiled_pattern),
87482         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87483         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87484         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87485         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87486         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87487         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87488         wcs_compile_range, byte_compile_range, truncate_wchar,
87489         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87490         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87491         count_mbs_length, wcs_re_match_2_internal,
87492         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87493         PREFIX(alt_match_null_string_p),
87494         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87495         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87496         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87497         now-unnecessary declaration, if any.
87498         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87499         regcomp, regexec):
87500         Remove now-unnecessary casts among pointer types.
87501         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87502
87503         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87504         (free): Remove decl.
87505
87506         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87507
87508         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87509         (free): Remove decl.
87510
87511         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87512         * lib/xgetcwd.c: Likewise.
87513
87514         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87515         (free): Remove decl.
87516
87517         * lib/strchrnul.c (strchrnul): Define with a prototype.
87518         Fix bug: c_in was not converted to char before searching.
87519
87520         The following changes are not K&R related:
87521
87522         * lib/group-member.h: Include <sys/types.h>, so that this file is
87523         self-contained.
87524         * lib/makepath.h: Likewise.
87525
87526         * lib/getusershell.c (readname, default_index, line_size, readname):
87527         Use size_t, not int, for sizes.
87528         (readname): If the size overflows, report an error instead of
87529         looping forever.
87530
87531 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87532
87533         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87534         libc.
87535
87536 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87537
87538         * README: New section: portability guidelines.
87539
87540 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87541
87542         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87543         C89 spec.
87544
87545 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87546
87547         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87548
87549 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87550
87551         Assume C89 or better; remove K&R cruft.
87552         A few of these changes were first proposed by Derek Robert Price
87553         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87554
87555         * lib/addext.c: Include <string.h> unconditionally.
87556         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87557         Don't declare getenv or malloc.
87558
87559         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87560         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87561         (NULL): Remove.
87562         (find_stack_direction, alloca): Use prototypes.
87563
87564         * lib/atexit.c (atexit): Define using a prototype.
87565
87566         * lib/basename.c, dirname.c, stripslash.c:
87567         Include <string.h> unconditionally.
87568
87569         * lib/bcopy.c: Include <stddef.h>.
87570         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87571
87572         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87573
87574         * lib/error.h (error, error_at_line, error_print_progname)
87575         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87576         * lib/error.c: Include error.h first, to check interface.
87577         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87578         (VA_START): Remove; all uses changeed to va_start.
87579         (exit, strerror): Remove decls.
87580         (error_print_progname): Prototype uncondionally.
87581         Don't include <errno.h>; no longer needed.
87582         (private_strerror): Remove.
87583         (error_tail): Always define.
87584         (error, error_at_line): Assume C89 or better; always use prototypes.
87585         * lib/fatal.c: Include "fatal.h" first, to test interface.
87586         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87587         (VA_START): Remove; all uses changed to va_start.
87588         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87589         this case.
87590         (exit): Remove decl.
87591         (fatal): Prototype unconditionally.  Assume va_start works.
87592         Abort at end, to pacify gcc.
87593
87594         * lib/euidaccess.c (main): Define with a prototype.
87595
87596         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87597
87598         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87599
87600         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87601         prototypes.
87602         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87603         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87604         (getenv): Remove decl.
87605         (fnmatch): Define using a prototype.
87606         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87607         (FCT): Define using a prototype.
87608
87609         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87610
87611         * lib/gethostname.c: Include <stddef.h>.
87612         (gethostname): Define with prototype.  Length is size_t, not int.
87613
87614 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87615
87616         Assume C89 or better; remove K&R cruft.
87617         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87618         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87619         string.h, getenv, malloc.
87620         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87621         headers.
87622         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87623         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87624         do not check for strerror.
87625         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87626         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87627         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87628         do not check for doprnt or vprintf.
87629         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87630         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87631
87632 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87633
87634         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87635         getversion.c should have been removed then, but was accidentally
87636         preserved.
87637
87638         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87639         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87640
87641 2003-09-08  Karl Berry  <karl@gnu.org>
87642
87643         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87644                 config, forget about prep.
87645
87646         * config/depcomp, missing: update from automake.
87647
87648 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87649
87650         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87651         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87652
87653 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87654
87655         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87656         copy_tm_result.  Bug reported by Simon Josefsson in
87657         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87658
87659 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87660
87661         * m4/time_r.m4: New file.
87662         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87664         is. Check for timegm declaration.
87665         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87666         Do not check for gmtime_r.
87667         Replace mktime if __mktime_internal does not exist and if mktime
87668         hasn't been replaced already.
87669
87670 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87671
87672         * lib/time_r.c, lib/time_r.h: New files.
87673
87674         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87675         __localtime_r.
87676         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87677         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87678
87679         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87680         __gmtime_r.
87681         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87682         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87683         Include <time_r.h>.
87684
87685         * lib/timegm.c: Switch to glibc implementation, with the following
87686         changes:
87687         [defined HAVE_CONFIG_H]: Include <config.h>.
87688         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87689         (__mktime_internal) [!defined _LIBC]: New decl.
87690         (__gmtime_r) [!defined _LIBC]: New macro and function.
87691         (timegm): Use a prototype, since gnulib assumes C89.
87692         Do not bother declaring tmp to be const, as it's not really usefu.
87693         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87694         (timegm): Declare only if HAVE_DECL_TIMEGM.
87695
87696 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87697
87698         * MODULES.html.sh (func_all_modules): Add time_r.
87699         * modules/time_r: New file.
87700         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87701         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87702
87703 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87704
87705         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87706         Bug reported by Lute Kamstra in
87707         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87708
87709         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87710         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87711         course with correspondingly smaller numbers for tomorrow and
87712         yesterday.  From Tadayoshi Funaba.  Originally installed into
87713         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87714         coreutils merge?).
87715
87716 2003-08-31  Simon Josefsson  <jas@extundo.com>
87717
87718         * modules/timegm: New file.
87719         * MODULES.html.sh (func_all_modules): Add timegm.
87720
87721 2003-08-31  Simon Josefsson  <jas@extundo.com>
87722
87723         * m4/timegm.m4: New file.
87724
87725 2003-08-31  Simon Josefsson  <jas@extundo.com>
87726
87727         * lib/timegm.h: New file.
87728         * lib/timegm.c: New file.  Based on
87729         wget-1.8.2/src/http.c:mktime_from_utc.
87730
87731 2003-08-31  Karl Berry  <karl@gnu.org>
87732
87733         * lib/argp.h: update from libc.
87734
87735 2003-08-28  Bruno Haible  <bruno@clisp.org>
87736
87737         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87738         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87739         followed by '#define fnmatch fnmatch_posix' gives an error.
87740
87741 2003-08-28  Bruno Haible  <bruno@clisp.org>
87742
87743         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87744         warning on QNX, which defines O_BINARY to 000000.
87745
87746 2003-08-27  Jim Meyering  <jim@meyering.net>
87747
87748         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87749         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87750         would fail after 32.  Reported by Danny Levinson.  Details here:
87751         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87752
87753 2003-08-24  Bruno Haible  <bruno@clisp.org>
87754
87755         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87756         MSVC7 <stdio.h> is included later.
87757
87758 2003-08-22  Simon Josefsson  <jas@extundo.com>
87759
87760         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87761
87762 2003-08-20  Karl Berry  <karl@gnu.org>
87763
87764         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87765
87766 2003-08-20  Bruno Haible  <bruno@clisp.org>
87767
87768         * modules/progname: New file.
87769         * MODULES.html.sh (func_all_modules): Add progname.
87770
87771 2003-08-20  Bruno Haible  <bruno@clisp.org>
87772
87773         * lib/progname.h: New file, from GNU gettext.
87774         * lib/progname.c: New file, from GNU gettext.
87775         * lib/progreloc.c: New file, from GNU gettext.
87776
87777 2003-08-19  Jim Meyering  <jim@meyering.net>
87778
87779         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87780         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87781
87782 2003-08-19  Bruno Haible  <bruno@clisp.org>
87783
87784         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87785         more.
87786
87787 2003-08-19  Bruno Haible  <bruno@clisp.org>
87788
87789         * lib/xstrdup.c: Assume <string.h> exists.
87790
87791 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87792
87793         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87794         in makefile rules.
87795
87796 2003-08-18  Jim Meyering  <jim@meyering.net>
87797
87798         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87799         * m4/lib-ld.m4: Likewise.
87800
87801 2003-08-18  Jim Meyering  <jim@meyering.net>
87802
87803         * lib/setenv.h: Indent nested cpp directive.
87804         * lib/vasnprintf.c: Remove trailing blanks.
87805
87806 2003-08-17  Simon Josefsson  <jas@extundo.com>
87807
87808         * modules/xstrndup: New file.
87809         * MODULES.html.sh (func_all_modules): Add xstrndup.
87810
87811 2003-08-17  Simon Josefsson  <jas@extundo.com>
87812
87813         * modules/argp: Fix autoconf macro name. Add more dependencies.
87814
87815 2003-08-17  Simon Josefsson  <jas@extundo.com>
87816
87817         * m4/xstrndup.m4: New file.
87818
87819 2003-08-17  Simon Josefsson  <jas@extundo.com>
87820
87821         * m4/argp.m4: New file.
87822
87823 2003-08-17  Simon Josefsson  <jas@extundo.com>
87824             Bruno Haible  <bruno@clisp.org>
87825
87826         * lib/xstrndup.h: New file.
87827         * lib/xstrndup.c: New file.
87828
87829 2003-08-17  Bruno Haible  <bruno@clisp.org>
87830
87831         * modules/strndup (Files, Include): Add lib/strndup.h.
87832
87833 2003-08-17  Bruno Haible  <bruno@clisp.org>
87834
87835         * modules/euidaccess (Files): Add lib/euidaccess.h.
87836
87837 2003-08-17  Bruno Haible  <bruno@clisp.org>
87838
87839         * lib/strndup.h: New file.
87840
87841 2003-08-17  Bruno Haible  <bruno@clisp.org>
87842
87843         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87844         like AC_GNU_SOURCE.
87845         * modules/extensions (configure.ac): Comment out the invocation of
87846         gl_USE_SYSTEM_EXTENSIONS.
87847
87848 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87849
87850         Merges from coreutils, etc.
87851         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87852         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87853         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87854         fixing a typo.
87855         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87856         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87857
87858 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87859
87860         Document merge from coreutils.
87861         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87862         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87863         * modules/utime: Add m4/utimes-null.m4.
87864
87865 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87866
87867         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87868         space, undoing this 2003-08-12 change:
87869         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87870
87871 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87872
87873         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87874         strtoul.c from libc, undoing this 2003-08-12 change:
87875         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87876
87877 2003-08-16  Jim Meyering  <jim@meyering.net>
87878
87879         Merges from coreutils.
87880         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87881         prefix.  Adjust cache variables similarly.  Create 500 rather than
87882         just 300 files, to exercise bug on Darwin6.5, too.
87883         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87884         $missing_dir.
87885         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87886         AM_SYS_POSIX_TERMIOS.
87887         Reported by mkc@mathdogs.com.
87888         Also change use of $am_cv_sys_posix_termios
87889         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87890         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87891         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87892         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87893         in /proc/mounts until it finds one with matching device number.  This
87894         is unnecessary when the FILE argument *is* a mount point.  No stat call
87895         is necessary in that case.  So, disable the statvfs-testing code on
87896         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87897         as RedHat bug# 84846.
87898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87899         to 1MB, so as not to render systems with no stack size limit (e.g.,
87900         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87901         Include <unistd.h>.  On some systems,
87902         it is required for the definition of _SC_PAGESIZE.
87903
87904 2003-08-16  Jim Meyering  <jim@meyering.net>
87905
87906         Merge from coreutils.
87907         * lib/xstrtoimax.c: #else #if -> #elif.
87908         * lib/xstrtoumax.c: Likewise.
87909
87910 2003-08-16  Jim Meyering  <jim@meyering.net>
87911
87912         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87913         * m4/utimes.m4: Removed.
87914         * m4/utimes-null.m4: Renamed from utimes.m4.
87915
87916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87917         to 1MB, so as not to render systems with no stack size limit (e.g.,
87918         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87919         Include <unistd.h>.  On some systems,
87920         it is required for the definition of _SC_PAGESIZE.
87921
87922 2003-08-16  Jim Meyering  <jim@meyering.net>
87923         and Paul Eggert  <eggert@cs.ucla.edu>
87924
87925         Merges from coreutils, etc.
87926
87927         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87928         using the latest version from cvs.  This avoids problems with #line
87929         directives using a vendor (Sun) compiler.
87930         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87931         Don't set GETGROUPS_LIB here; now it's
87932         done via getgroups.m4's wrapper function.
87933         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87934         rather than just in sh-util/configure.in, so that the
87935         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87936         same.
87937         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87938         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87939         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87940         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87941         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87942         Remove code that is now done by the newly-required macros.
87943         Append $(EXEEXT) to DF_PROG.
87944         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87945         Do not invoke or require the following here,
87946         since prereq.m4 or some gnulib .m4 now does this for us:
87947         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87948         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87949         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87950         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87951         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87952         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87953         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87954         AC_FUNC_OBSTACK.
87955         Do not replace the following functions, as this is now the job
87956         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87957         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87958         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87959         atexit getpass, strdup, getpagesize.
87960         Replace 'raise'.
87961         Do not check for the following functions, as this is now the job
87962         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87963         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87964         setregid.
87965         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87966         Check for sys/sysctl.h.
87967         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87968         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87969         of checking for ssize_t ourselves.
87970
87971         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87972         Require every macro that gnulib/modules/* suggests for us.
87973         (jm_PREREQ_ADDEXT): New macro.
87974         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87975         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87976
87977         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87978         (gl_PHYSMEM): Use it.
87979         Also check for `table' function.
87980         Check for new headers and functions.
87981         Add check for sys/sysmp.h.
87982         With suggestions from Kaveh Ghazi.
87983         Ignore headers that are present but cannot be compiled.  This
87984         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87985         C 5.4.
87986
87987 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87988
87989         Document merge from coreutils.
87990         * modules/userspec: Depend on posixver.
87991         * modules/strftime: Depend on tzset.
87992
87993 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87994
87995         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87996         rather than tab, after '#' in shell-script copyright notices.
87997         Suggested by Bruno Haible.
87998
87999 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88000
88001         * config/srclist-update: Use three spaces, rather than tab, after '#'
88002         in shell-script copyright notices.  Suggested by Bruno Haible.
88003         Remove unnecessary parenthesization in regular expression.
88004
88005 2003-08-15  Jim Meyering  <jim@meyering.net>
88006
88007         Merge from coreutils.
88008         * lib/xgethostname.c: Include <stdlib.h>.
88009         (xghostname): Don't exit for anything other than memory-related
88010         failure; just return NULL.
88011         * lib/userspec.c: Include "posixver.h".
88012         (parse_user_spec): Accept `.' as a separator only
88013         in pre-POSIX-200112 mode.
88014         * lib/strtoimax.c: Use #elif rather than #else #if.
88015         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88016         Remove function, now that we can rely on a working tzset function.
88017         [!_LIBC]: Ensure that the required autoconf test has been run.
88018         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88019         Use underlying_strftime for %r.
88020         * lib/sha.c: Merge in some clean-up and optimization changes from
88021         glibc.
88022         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88023         Ensure that it is a multiple of 64.
88024         Rearrange loop exit tests so as to avoid performing an
88025         additional fread after encountering an error or EOF.
88026         * lib/realloc.c: Update copyright date.
88027
88028 2003-08-15  Jim Meyering  <jim@meyering.net>
88029         and Paul Eggert  <eggert@twinsun.com>
88030
88031         Merge from coreutils.
88032         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88033         member but strut utmpx does not.  Needed for AIX 4.3.3.
88034         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88035
88036 2003-08-15  Jim Meyering  <jim@meyering.net>
88037         and Paul Eggert  <eggert@cs.ucla.edu>
88038
88039         Merges from coreutils, etc.
88040         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88041         Require gl_FUNC_TZSET_CLOBBER.
88042         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88043         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88044         members.
88045
88046 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88047
88048         Help the merge from coreutils.
88049         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88050         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88051         * m4/tzset.m4: Use it too.
88052
88053 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88054
88055         * modules/tzset: New file.
88056
88057 2003-08-14  Jim Meyering  <jim@meyering.net>
88058
88059         Merges from coreutils.
88060         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88061         variable names, rather than @FNMATCH_H@.
88062         * modules/alloca: Likewise for $(ALLOCA_H).
88063
88064         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88065         the three copies of the literal target, `fnmatch.h'.
88066         * modules/alloca (alloca.h): Likewise.
88067
88068 2003-08-14  Jim Meyering  <jim@meyering.net>
88069
88070         Merge from coreutils.
88071         * m4/tzset.m4: New file.
88072         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88073         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88074         otherwise, AIX 5.1 systems would end up using the latter.
88075         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88076         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88077         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88078         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88079
88080 2003-08-14  Jim Meyering  <jim@meyering.net>
88081
88082         Merge from coreutils.
88083         * lib/obstack.h: Whitespace changes.
88084         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88085         and xcalloc return values.
88086         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88087         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88088         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88089         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88090         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88091         error from mntctl.
88092         Use mntctl's return value to drive the entry-processing loop, since
88093         we can't rely on the value of the vmt_length member in the last
88094         entry.  On some systems doing so could result in exhausting
88095         virtual memory.  Based in part on a patch from Mike Jetzer.
88096
88097 2003-08-14  Jim Meyering  <jim@meyering.net>
88098         and Paul Eggert  <eggert@twinsun.com>
88099
88100         Merges from coreutils, plus other fixes.
88101         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88102         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88103         for credits and details.  Thanks to Kaveh Ghazi for helping
88104         to keep these files in sync.
88105         (ARRAY_SIZE): Define it.
88106         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88107         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88108         (memcasecmp): Don't assume size_t fits in unsigned int.
88109         Remove casts and duplicate code.
88110         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88111         (memcpy): Remove definition.
88112         Merge in some clean-up and optimization changes from glibc.
88113         [BLOCKSIZE]: Move definition to top of file.
88114         Ensure that it is a multiple of 64.
88115         Rearrange loop exit tests so as to avoid performing an
88116         additional fread after encountering an error or EOF.
88117         * lib/md5.h (md5_uintptr): Define.
88118         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88119         return to the initial working directory.  Preserve errno
88120         for caller.
88121         * lib/idcache.c: Include "xalloc.h".
88122         (xmalloc, xrealloc): Remove decls.
88123         (getuser): Remove casts no longer required in C89.
88124         * lib/human.c: Include stdio.h, for sprintf.
88125         * lib/group-member.c: Include "xalloc.h".
88126         (xmalloc, xrealloc): Remove decls.
88127         (get_group_info): Remove casts no longer required in C89.
88128         * lib/getusershell.c (readname): Remove casts no longer required in
88129         C89.
88130         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88131         * lib/getline.c: Whitespace fix, from coreutils.
88132
88133 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88134
88135         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88136         Check for isascii.
88137
88138         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88139         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88140         Undo previous (whitespace-only) change.
88141
88142 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88143
88144         * lib/exclude.c: Include <ctype.h>
88145         (IN_CTYPE_DOMAIN): New macro.
88146         (is_space): New fn.
88147         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88148         and empty lines.
88149
88150         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88151         Undo previous (whitespace-only) change.
88152
88153 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88154
88155         * config/srclist-update: Change update back to the old behavior,
88156         leaving whitespace alone.  Use one 'sed' command rather than a
88157         pipeline.
88158         (fixlicense): Now a variable, not a function.
88159         (remove_trailing_blanks): Remove.
88160         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88161         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88162         Undo previous (whitespace-only) change.
88163
88164 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88165
88166         Merge from coreutils.
88167         * modules/euidaccess: Add lib_SOURCES, include for new
88168         file euidaccess.h
88169
88170 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88171
88172         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88173         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88174         Normalize leading white space and remove trailing white space.
88175
88176         Merge from coreutils
88177         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88178
88179         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88180         0.12.1.  These files are now being upgraded automatically by
88181         ../config/srclist-update.
88182
88183 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88186         Normalize leading white space and remove trailing white space.
88187         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88188         notice, as per ../config/srclist-update.
88189
88190         Merge from coreutils.
88191         * lib/euidaccess.h: New file.
88192         * lib/euidaccess.c: Include it.
88193         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88194         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88195         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88196
88197 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88198
88199         * config/srclist-update: Add copyright notice.
88200         (remove_id_lines, remove_trailing_blanks): New constants.
88201         (fixfile): Use them to normalize spacing a bit in copied files.
88202         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88203         Normalize leading white space and remove trailing white space.
88204
88205         * config/texinfo.tex: Sync with texinfo.
88206
88207         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88208         strtoul.c from libc, to merge coreutils whitespace changes.
88209
88210         * config/srclist.txt: Get the following m4 files from gettext:
88211         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88212         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88213         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88214         wint_t.m4.
88215
88216 2003-08-12  Karl Berry  <karl@gnu.org>
88217
88218         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88219         been made.
88220
88221 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88222
88223         * modules/gnu-source, m4/gnu-source.m4:
88224         Remove; we're assuming Autoconf 2.54 or later now.
88225         Suggested by Bruno Haible.
88226         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88227
88228 2003-08-11  Bruno Haible  <bruno@clisp.org>
88229
88230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88231
88232 2003-08-11  Bruno Haible  <bruno@clisp.org>
88233
88234         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88235         (vasnprintf): Use it instead of wcslen.
88236
88237 2003-08-11  Bruno Haible  <bruno@clisp.org>
88238
88239         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88240         value to ensure that _Bool promotes to int. Use #define for _Bool when
88241         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88242
88243 2003-08-10  Karl Berry  <karl@gnu.org>
88244
88245         * lib/regex.h: update from libc (whitespace fix).
88246
88247 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88248
88249         Merge some files from coreutils.  These changes were
88250         originally made by Jim Meyering.
88251         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88252         many older Unixes require this.
88253         * lib/alloca.c (alloca): Remove cast to argument of free;
88254         no longer needed in C89.
88255         * lib/alloca_.h, regex.h: Fix white space to match
88256         what GNU indent does.
88257
88258 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88259
88260         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88261         apparently Emacs's Unicode mode got confused before my 2003-08-05
88262         checkin.
88263
88264 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88265
88266         * m4/extensions.m4: New file.
88267         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88268         Require gl_USE_SYSTEM_EXTENSIONS.
88269         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88270         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88271
88272 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88273
88274         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88275         * modules/extensions, modules/gnu-source: New files.
88276         * modules/timespec, modules/unlocked-io: Depend on extensions.
88277
88278 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88279
88280         * modules/restrict: New file.
88281         * MODULES.html.sh (func_all_modules): Add restrict.
88282         * modules/regex: Depend on restrict.
88283
88284 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88285
88286         * m4/restrict.m4: New file.
88287         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88288
88289 2003-08-07  Bruno Haible  <bruno@clisp.org>
88290
88291         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88292         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88293
88294 2003-08-07  Bruno Haible  <bruno@clisp.org>
88295
88296         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88297         makes the module 'getndelim2' compatible with the module 'getline'.
88298
88299 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88300
88301         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88302         byte with "\201" to avoid glitches when editing that source file
88303         with multi-gnome-terminal.
88304
88305 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88306
88307         * lib/bumpalloc.h: Remove.
88308
88309 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88310
88311         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88312         * modules/bumpalloc: Remove.
88313
88314 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88315
88316         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88317         GNU coding style.
88318
88319         Merge from coreutils.
88320         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88321         1. From glibc.
88322         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88323         from Karl Berry, implemented by Jim Meyering.
88324         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88325         from Dmitry V. Levin.
88326         Remove anachronistic cast of xrealloc.
88327         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88328         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88329         type. Otherwise, it wouldn't compile with at least /bin/cc on
88330         ymp-cray-unicos9.0.2.X.
88331         Combine two mostly-identical uses of alloca into one.
88332         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88333
88334 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88335
88336         [From Emacs.]
88337
88338         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88339         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88340         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88341         obsolete NLIST_NAME_UNION.
88342         [__GNU__]: Undef BSD and FSCALE.
88343         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88344
88345 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88346
88347         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88348         an enum type, so that it's guaranteed to promote to int.  See:
88349         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88350
88351 2003-08-03  Karl Berry  <karl@gnu.org>
88352
88353         * config/depcomp: update from automake.
88354
88355 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88356
88357         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88358         (strerror): Don't assume that a printable int fits in 14 bytes.
88359
88360 2003-07-31  Bruno Haible  <bruno@clisp.org>
88361
88362         * modules/getpass-gnu: New file.
88363         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88364
88365 2003-07-31  Bruno Haible  <bruno@clisp.org>
88366
88367         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88368
88369 2003-07-24  Karl Berry  <karl@gnu.org>
88370
88371         * config/missing: update from automake.
88372
88373 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88374             Bruno Haible  <bruno@clisp.org>
88375
88376         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88377         * lib/getline.c (getline, getdelim): Likewise.
88378         Remove _GNU_SOURCE define; now it's defined in config.h through
88379         m4/getline.m4.
88380
88381 2003-07-23  Karl Berry  <karl@gnu.org>
88382
88383         * config/config.sub: update from prep.
88384
88385 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88386
88387         * modules/xalloc (Depends-on): Add exitfail.
88388         * modules/xmemcoll: Likewise.
88389
88390 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88391
88392         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88393         over-parenthesization in macros.
88394
88395         Sync with coreutils.
88396
88397         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88398         required by C99.
88399
88400         Use `exit_failure' for xalloc and xmemcoll instead of their own
88401         private exit-failure variables.
88402         * lib/xalloc.h (xalloc_exit_failure): Remove.
88403         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88404         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88405         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88406         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88407         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88408
88409 2003-07-20  Jim Meyering  <jim@meyering.net>
88410
88411         * modules/closeout (Depends-on): Add exitfail.
88412         Suggestion from Bruno Haible.
88413
88414 2003-07-19  Karl Berry  <karl@gnu.org>
88415
88416         * config/config.sub: update from prep.
88417
88418 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88419
88420         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88421         Remove.
88422         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88423         to test that it can stand by itself.  Include "exitfail.h".
88424         Clients should set exit_failure instead.
88425         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88426
88427 2003-07-18  Bruno Haible  <bruno@clisp.org>
88428
88429         * modules/getndelim2: New file.
88430         * modules/getline: Share files with module getndelim2.
88431         * modules/getnline: Depend on getndelim2 instead of sharing files with
88432         it. Add getnline.c to lib_SOURCES.
88433         * MODULES.html.sh (func_all_modules): Add getndelim2.
88434
88435 2003-07-18  Bruno Haible  <bruno@clisp.org>
88436
88437         * m4/getndelim2.m4: New file.
88438         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88439         invoke gl_PREREQ_GETNDELIM2.
88440         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88441         gl_PREREQ_GETNDELIM2.
88442         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88443         gl_GETNDELIM2.
88444
88445 2003-07-18  Bruno Haible  <bruno@clisp.org>
88446
88447         * lib/getndelim2.h: New file.
88448         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88449         getndelim2.h.
88450         (getndelim2): Make non-static. Change return type to ssize_t.
88451         * lib/getline.h: Change argument names.
88452         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88453         * lib/getnline.c: Include getndelim2.h.
88454
88455 2003-07-18  Andreas Schwab  <schwab@suse.de>
88456
88457         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88458
88459 2003-07-17  Karl Berry  <karl@gnu.org>
88460
88461         * config/config.sub: update from prep.
88462
88463 2003-07-17  Bruno Haible  <bruno@clisp.org>
88464
88465         * modules/getnline: New file.
88466         * modules/getline: Add lib/getndelim2.c to source file list.
88467         * MODULES.html.sh (func_all_modules): Add getnline.
88468
88469 2003-07-17  Bruno Haible  <bruno@clisp.org>
88470
88471         * m4/getnline.m4: New file.
88472
88473 2003-07-17  Bruno Haible  <bruno@clisp.org>
88474
88475         * m4/Makefile.am.in: Remove file.
88476         * m4/Makefile.am: Remove file.
88477         * m4/Makefile.in: Remove file.
88478
88479 2003-07-17  Bruno Haible  <bruno@clisp.org>
88480
88481         * lib/getnline.h: New file.
88482         * lib/getnline.c: New file.
88483         * lib/getndelim2.c: New file, extracted from getline.c.
88484         (getndelim2): Renamed from getdelim2, with added nmax argument.
88485         * lib/getline.c: Include getndelim2.c.
88486         (getdelim2): Moved out to getndelim2.c.
88487         (getline, getdelim): Update.
88488
88489 2003-07-17  Bruno Haible  <bruno@clisp.org>
88490
88491         * lib/Makefile.am: Remove file.
88492         * lib/Makefile.in: Remove file.
88493
88494 2003-07-17  Bruno Haible  <bruno@clisp.org>
88495
88496         * configure.in: Remove file.
88497         * Makefile.in: Remove file.
88498
88499 2003-07-17  Bruno Haible  <bruno@clisp.org>
88500
88501         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88502
88503 2003-07-16  Karl Berry  <karl@gnu.org>
88504
88505         * config/srclist-update: was running fixlicense twice, which caused
88506                 texinfo.tex to be nullified for some reason.  Simplify,
88507                 $gplsrc is no longer needed as far as I can see?
88508
88509 2003-07-16  Jim Meyering  <jim@meyering.net>
88510
88511         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88512
88513 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88514
88515         * config/srclist.txt: Get the following files from gettext-runtime/intl
88516         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88517         ref-del.sin.  From Bruno Haible.
88518         * config/srclist-update (fixfile): Change grep pattern again, since the
88519         previous fix didn't work (there was another trailing $).  Use
88520         '[$]' to escape the $s.
88521
88522 2003-07-15  Karl Berry  <karl@gnu.org>
88523
88524         * lib/vasnprintf.c: update from gettext.
88525
88526 2003-07-15  Karl Berry  <karl@gnu.org>
88527
88528         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88529         gets expanded when surrounded by '$'.
88530
88531 2003-07-15  Jim Meyering  <jim@meyering.net>
88532
88533         * modules/save-cwd: Don't depend on error.  From Derek Price.
88534
88535 2003-07-15  Jim Meyering  <jim@meyering.net>
88536
88537         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88538
88539 2003-07-14  Simon Josefsson  <jas@extundo.com>
88540
88541         * modules/mempcpy: New file.
88542         * MODULES.html.sh (func_all_modules): Add mempcpy.
88543
88544 2003-07-14  Simon Josefsson  <jas@extundo.com>
88545
88546         * m4/mempcpy.m4: New file.
88547
88548 2003-07-14  Simon Josefsson  <jas@extundo.com>
88549
88550         * lib/mempcpy.h: New file.
88551         * lib/mempcpy.c: New file.
88552
88553 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88554
88555         * modules/getdate, modules/posixtm: Depend on mktime.
88556
88557 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88558
88559         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88560         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88561         unicodeio.c, unicodeio.h, unlocked-io.h:
88562         Switch from LGPL to GPL.
88563
88564 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88565
88566         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88567         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88568         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88569         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88570         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88571         updated automatically by ../config/srclist-update.  This changes
88572         their license from LPGL to GPL.
88573
88574 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88575
88576         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88577         assumed to refer to the root of the most recent stable gettext version.
88578         * config/srclistvars.sh: Add defaults for eggert.
88579         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88580         Match "This program" as well as "The program".  This is needed
88581         for gettext.
88582
88583 2003-07-14  Jim Meyering  <jim@meyering.net>
88584
88585         Don't emit diagnostics.  Let callers do that.
88586         * lib/save-cwd.c: Don't include "error.h".
88587         (save_cwd): Don't call error.  Ensure that errno is valid
88588         when returning nonzero.
88589
88590         * lib/save-cwd.h (restore_cwd): Update prototype.
88591         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88592         Simplify.  Don't call error upon failure.  Let callers do that.
88593         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88594         when auditing is enabled.  But don't bother updating the #if.
88595
88596 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88597
88598         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88599         it breaks C++ compilation.
88600         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88601
88602 2003-07-10  Simon Josefsson  <jas@extundo.com>
88603
88604         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88605
88606 2003-07-10  Jim Meyering  <jim@meyering.net>
88607
88608         * m4/clock_time.m4: Remove trailing blank.
88609         * m4/intmax_t.m4: Likewise.
88610
88611 2003-07-10  Jim Meyering  <jim@meyering.net>
88612
88613         * lib/vasnprintf.c: Remove trailing blanks.
88614         Make cpp indentation consistent.
88615
88616 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88617
88618         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88619         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88620         Switch from LGPL to GPL.
88621
88622 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88623
88624         * config/srclist.txt: Sort sublists.  Add
88625         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88626         that differ from gnulib for one reason or another; we'd like this list
88627         to be smaller but for now let's document what we have.
88628
88629 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88630
88631         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88632         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88633         and sweeter "eval x=$x".
88634         * config/srclist.txt: Get lib/argp* from glibc.
88635
88636 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88637
88638         * lib/mktime.c: Fix some boundary cases and remove need for floating
88639         point.
88640
88641         Issue a compile-time diagnostic if time_t is floating point, or if
88642         two's complement arithmetic is not in effect, or if arithmetic
88643         right shift does not propagate the sign.  These assumptions were
88644         all in the original code but they weren't checked.
88645
88646         (TIME_T_MIDPOINT, verify): New macros.
88647         (__isleap): Remove; it has integer overflow problems.
88648         (leapyear): New function, without those problems.
88649         (ydhms_tm_diff): Remove; splitting into two parts.
88650         (ydhms_diff): New function, containing the arithmetic part of
88651         the old ydhms_tm_diff function.  Issue a compile-time
88652         diagnostic if we are not using C99 integer division.
88653         Avoid casts when possible.
88654         (guess_time_tm): New function, containing the checking part of
88655         the old ydhms_tm_diff function.  Return the new value, rather than
88656         the difference between it and the old.  Accept a new argument T
88657         so that *T specifies the old value.  Check for overflow in the result.
88658
88659         (__mktime_internal): Use a time_t offset, not a long int offset.
88660         This undoes the 2003-06-04 change, which is no longer needed now
88661         that we have better overflow checking.
88662         (localtime_offset): Likewise.
88663
88664         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88665         and long are 64-bit but int is only 32-bit.
88666         (ydhms_diff): Use long int to store year1 and yday1.
88667         Issue a compile-time diagnostic if long int is not wide enough.
88668
88669         (__mktime_internal): Use long int to store adjusted year and yday.
88670         Use plain C rather than preprocessor commands, if that doesn't
88671         affect efficiency.
88672         Check for overflow (and try to repair) after each probe
88673         rather than checking only at the very end.  This avoids some bugs
88674         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88675         does not equal GMT offset at maximum time).
88676         Use integer to check for overflow rather than floating point; this
88677         is more portable to non-IEEE hosts, and is a tad faster.
88678         When we detect that we are oscillating between two values,
88679         don't check whether tm_isdst has the requested value, since
88680         we already know the answer.  When tm_isdst has the wrong value,
88681         use a different heuristic to find the right one, based on the
88682         extreme values actually observed in practice in tz2003a,
88683         rather than the (overly optimistic) "previous 3 calendar quarters".
88684
88685         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88686         "T const" to accommodate glibc style.
88687         (check_result): Use less-confusing report format.  "long" -> "long int.
88688         (main): Likewise.
88689         Don't loop if the iteration overflows time_t.
88690         Allow a negative step in the iteration.
88691
88692 2003-07-06  Karl Berry  <karl@gnu.org>
88693
88694         * config/depcomp: update from automake.
88695         * config/config.sub: update from prep.
88696
88697 2003-07-03  Karl Berry  <karl@gnu.org>
88698
88699         * config/config.guess: update from prep.
88700
88701 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88702
88703         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88704         xreadlink.c now includes it unconditionally.
88705
88706 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88707
88708         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88709         having it depend on HAVE_SYS_TYPES_H.
88710
88711 2003-07-01  Bruno Haible  <bruno@clisp.org>
88712
88713         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88714         <sys/types.h> should be sufficient.
88715         Reported by Paul Eggert.
88716
88717 2003-06-26  Karl Berry  <karl@gnu.org>
88718
88719         * config/depcomp: update from automake.
88720
88721 2003-06-26  Bruno Haible  <bruno@clisp.org>
88722
88723         * modules/human: Depend on module stdbool.
88724
88725 2003-06-25  Bruno Haible  <bruno@clisp.org>
88726
88727         * modules/readlink: New file.
88728         * modules/xreadlink: Depend on it.
88729         * MODULES.html.sh (func_all_modules): Add readlink.
88730
88731 2003-06-25  Bruno Haible  <bruno@clisp.org>
88732
88733         * m4/readlink.m4: New file.
88734
88735 2003-06-25  Bruno Haible  <bruno@clisp.org>
88736
88737         * lib/readlink.c: New file.
88738
88739 2003-06-22  Karl Berry  <karl@gnu.org>
88740
88741         * config/srclist.txt: update mkinstalldirs from automake.
88742         * config/mkinstalldirs: update.
88743
88744 2003-06-22  Bruno Haible  <bruno@clisp.org>
88745
88746         Portability to mingw32.
88747         * m4/ssize_t.m4: New file, from GNU gettext.
88748         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88749         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88750
88751 2003-06-22  Bruno Haible  <bruno@clisp.org>
88752
88753         * modules/safe-read: Add m4/ssize_t.m4.
88754         * modules/xreadlink: Add m4/ssize_t.m4.
88755
88756 2003-06-20  Bruno Haible  <bruno@clisp.org>
88757
88758         Assume C89, so PARAMS isn't needed.
88759         * lib/unicodeio.h (PARAMS): Remove.
88760         * lib/unicodeio.c: Don't use PARAMS.
88761
88762 2003-06-18  Karl Berry  <karl@gnu.org>
88763
88764         * config/config.{guess,sub}: update from prep.
88765
88766 2003-06-18  Jim Meyering  <jim@meyering.net>
88767
88768         Merge changes from coreutils.
88769         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88770         Remove explicit declarations of xmalloc and realloc.
88771         Include xalloc.h.
88772         (read_utmp): Remove anachronistic cast of xmalloc.
88773
88774 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88775
88776         Assume C89, so PARAMS isn't needed.
88777         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88778         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88779         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88780         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88781         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88782         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88783         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88784         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88785         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88786         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88787         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88788         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88789         no longer needed. Anyway, config.h should always be included before any
88790         other file.
88791
88792 2003-06-11  Simon Josefsson  <jas@extundo.com>
88793
88794         * modules/sysexits: New file.
88795         * MODULES.html.sh (func_all_modules): Add sysexits.
88796
88797 2003-06-11  Simon Josefsson  <jas@extundo.com>
88798
88799         * lib/sysexit_.h: New file.
88800
88801 2003-06-11  Derek Price  <derek@ximbiot.com>
88802
88803         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88804         necessary.
88805
88806 2003-06-11  Bruno Haible  <bruno@clisp.org>
88807
88808         * m4/sysexits.m4: New file.
88809
88810 2003-06-10  Simon Josefsson  <jas@extundo.com>
88811
88812         * lib/argp.h: New file, from glibc.
88813         * lib/argp-ba.c: New file, from glibc.
88814         * lib/argp-eexst.c: New file, from glibc.
88815         * lib/argp-fmtstream.c: New file, from glibc.
88816         * lib/argp-fmtstream.h: New file, from glibc.
88817         * lib/argp-fs-xinl.c: New file, from glibc.
88818         * lib/argp-help.c: New file, from glibc.
88819         * lib/argp-namefrob.h: New file, from glibc.
88820         * lib/argp-parse.c: New file, from glibc.
88821         * lib/argp-pv.c: New file, from glibc.
88822         * lib/argp-pvh.c: New file, from glibc.
88823         * lib/argp-xinl.c: New file, from glibc.
88824
88825 2003-06-10  Simon Josefsson  <jas@extundo.com>
88826
88827         * modules/strchrnul: New file.
88828
88829 2003-06-10  Simon Josefsson  <jas@extundo.com>
88830
88831         * modules/argp: New file.
88832
88833 2003-06-10  Simon Josefsson  <jas@extundo.com>
88834
88835         * m4/strchrnul.m4: New file.
88836
88837 2003-06-10  Simon Josefsson  <jas@extundo.com>
88838
88839         * lib/strchrnul.h: New file.
88840         * lib/strchrnul.c: New file.
88841
88842 2003-06-10  Bruno Haible  <bruno@clisp.org>
88843
88844         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88845
88846 2003-06-07  Karl Berry  <karl@gnu.org>
88847
88848         * config/config.{guess,sub}: update from prep.
88849
88850 2003-06-07  Jim Meyering  <jim@meyering.net>
88851
88852         * modules/strtod: Use $(...) notation, not @...@ for
88853         AC_REPLACE'd variables.
88854         * modules/localcharset: Likewise.
88855
88856 2003-06-07  Jim Meyering  <jim@meyering.net>
88857
88858         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88859         in place of my name in the copyright comment.
88860         Remove definition and uses of __P.
88861
88862         From coreutils.
88863         * lib/stat.c: Don't declare xmalloc explicitly.
88864         Instead, include "xalloc.h".
88865         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88866         xrealloc, and xcalloc return values.
88867         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88868         Improve comment.
88869         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88870
88871 2003-06-07  Bruno Haible  <bruno@clisp.org>
88872
88873         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88874         avoid AC_CONFIG_LINKS.
88875         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88876         fnmatch.h, to avoid AC_CONFIG_LINKS.
88877         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88878
88879 2003-06-07  Bruno Haible  <bruno@clisp.org>
88880
88881         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88882         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88883         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88884         directory.
88885         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88886         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88887         directory.
88888
88889 2003-06-06  Jim Meyering  <jim@meyering.net>
88890
88891         Merge from coreutils.
88892         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88893         Consolidate declarations and initializations of *_base* locals.
88894
88895         Merge from coreutils.
88896         This avoids a core dump on systems without GNU putenv,
88897         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88898         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88899         (unsetenv): New static function, from GNU libc.
88900         (rpl_putenv): Use it.
88901
88902         * lib/modechange.c: Remove trailing blanks.
88903
88904         Merge from coreutils.
88905         * lib/fsusage.c: Remove declaration of statfs.
88906         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88907
88908         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88909
88910 2003-06-06  Jim Meyering  <jim@meyering.net>
88911
88912         * lib/stdbool_.h: Renamed from stdbool.h.in.
88913
88914 2003-06-06  Jim Meyering  <jim@meyering.net>
88915             Bruno Haible  <bruno@clisp.org>
88916
88917         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88918         Adjust Makefile.am snippet not to redirect directly to target.
88919         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88920
88921 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88922
88923         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88924         mismatch, look in future quarters as well as past.  This fixes a
88925         bug when processing fall-backwards gaps immediately after a long
88926         period of daylight-saving time.
88927
88928         * lib/mktime.c: Assume freestanding C89 or better.
88929         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88930         (__P): Remove; not used.
88931         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88932         (mktime, not_equal_tm, print_tm, check_result,
88933         main): Use prototypes.  Use const * where appropriate.
88934         (main): Fix typo in testing code that uncovered by above changes.
88935         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88936
88937 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88938
88939         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88940         locale.h, localeconv.  This merges changes from coreutils.
88941
88942         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88943         It can be removed after the next Autoconf is released.
88944         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88945         needed.
88946
88947 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88948
88949         * lib/mktime.c: Fix Debian bug 177940
88950         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88951         (localtime_offset): Now long int, not time_t, because we want it
88952         to be guaranteed to be signed.  All uses changed.
88953         (__mktime_internal): If overflow would occur when adding offset,
88954         don't add it.
88955
88956         Merge 'human' changes from coreutils.  Rewrite to support
88957         locale-specific notations like thousands separators.
88958         * lib/human.c: Simplify authorship notice.
88959         Include human.h immediately after config.h.
88960         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88961         <limits.h>: Do not include, since human.h does.
88962         (SIZE_MAX, UINTMAX_MAX): New macros.
88963         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88964         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88965         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88966         (power_letter): Renamed from suffixes.
88967         (generate_suffix_backwards): Remove.
88968         (adjust_value): Now takes int style (because of human.h changes)
88969         and long double value (for greater precision on some platforms).
88970         (group_number): New function.
88971         (human_readable): Use it.  Use integer options, not enum.
88972         Put the options before the sizes in the arg list.
88973         Support all the new options.
88974         The old human_readable function has been removed;
88975         use inttostr.h instead.
88976         (human_readable, default_block_size, humblock):
88977         Use uintmax_t, not int, for block sizes.
88978         (human_readable_inexact, block_size_types): Remove.
88979         (block_size_opts): New constant.
88980         (human_options): Renamed from human_block_size, with new signature
88981         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88982         * lib/human.h: Add copyright and authorship notice.
88983         Include <limits.h> and <stdbool.h> unconditionally.
88984         (PARAMS): Remove.  All uses removed.
88985         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88986         (enum human_inexact_style): Remove tag; now a nameless enum.
88987         (human_floor, human_ceiling, human_round_to_even): Now have
88988         values 2, 0, 1 rather than -1, 1, 0.
88989         (human_group_digits, human_suppress_point_zero, human_autoscale,
88990         human_base_1024, human_SI, human_B): New constants.
88991         (human_readable_inexact, human_block_size): Remove.
88992         (human_readable): Size args are now uintmax_t, not int.
88993         (human_options): New decl.
88994
88995         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88996         unnecessary now that we assume C89 or better.  This change
88997         imported from coreutils.
88998
88999         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89000         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89001         in the 2003-05-30 sync from glibc.
89002
89003         .h files should stand alone, but we shouldn't include <sys/types.h>
89004         if we can get away with just <stddef.h>.
89005
89006         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89007         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89008         rather than <sys/types.h>, as we merely need size_t.
89009         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89010         to get size_t.
89011         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89012         Include <stdio.h>, to get FILE.
89013         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89014         memcasecmp.h has included <stddef.h> and all we need is size_t.
89015         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89016         our interface, instead of including <sys/types.h>
89017
89018 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89019
89020         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89021         now, as glibc mktime is buggy on non-glibc systems.
89022
89023 2003-06-03  Karl Berry  <karl@gnu.org>
89024
89025         * config/config.sub: update from prep.
89026
89027 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89028
89029         [from coreutils]
89030         Fix some minor time-related bugs with POSIX time arguments.
89031         Some valid time stamps were being rejected (notably -1, and
89032         time stamps before 1900 on 64-bit hosts).  And some invalid
89033         time stamps were being accepted, e.g. September 31.
89034
89035         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89036         that we can return (time_t) -1 successfully.
89037         * lib/posixtm.c: Likewise.
89038         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89039         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89040         (t): Remove static var.
89041         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89042         of static var.  All uses changed.
89043         (year): Do not reject years before 1900; they can occur with
89044         64-bit time_t.
89045         (posix_time_parse): Do not check for out-of-range components;
89046         that is now the caller's responsibility, since our checks were
89047         only approximations.
89048         (posixtime): Use mktime to check for out-of-range components,
89049         since it knows them exactly.
89050         If mktime returns (time_t) -1, check whether an error actually occurred
89051         by invoking localtime on -1.
89052         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89053         posixtime failures better.
89054         Improve the test data (in comments only).
89055
89056 2003-06-02  Karl Berry  <karl@gnu.org>
89057
89058         * config/mkinstalldirs (version): new variable.
89059         (--version): new option.
89060         (usage): improve message.
89061
89062 2003-05-30  Karl Berry  <karl@gnu.org>
89063
89064         * lib/mktime.c: update from libc.
89065
89066 2003-05-30  Bruno Haible  <bruno@clisp.org>
89067
89068         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89069         * config/config.rpath: Upgrade to gettext-0.12.1.
89070
89071 2003-05-30  Bruno Haible  <bruno@clisp.org>
89072
89073         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89074         * m4/nls.m4: New file, from gettext-0.12.1.
89075         * m4/po.m4: New file, from gettext-0.12.1.
89076         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89077
89078 2003-05-30  Bruno Haible  <bruno@clisp.org>
89079
89080         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89081         * lib/localcharset.h: Likewise.
89082         * lib/localcharset.c: Likewise.
89083
89084 2003-05-29  Karl Berry  <karl@gnu.org>
89085
89086         * config/config.rpath: update from gettext.
89087
89088 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89089
89090         Assume the headers required for C89 freestanding compilers.
89091         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89092         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89093         * m4/human.m4 (gl_HUMAN): Likewise.
89094         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89095         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89096         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89097         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89098         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89099         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89100
89101 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89102
89103         Assume the headers required for C89 freestanding compilers.
89104         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89105         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89106         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89107         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89108         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89109         define, since <limits.h> is guaranteed to do that.
89110         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89111         * lib/exclude.c: Include <stdbool.h> unconditionally.
89112         * lib/tempname.c: Include <stddef.h> unconditionally.
89113         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89114         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89115         <stddef.h> does that.
89116         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89117         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89118         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89119         needed.
89120         * lib/xstrtol.c: Likewise.
89121         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89122         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89123
89124         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89125         warnings on some platforms.
89126
89127         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89128         arbitrarily.
89129
89130 2003-05-26  Jim Meyering  <jim@meyering.net>
89131
89132         Merge in a change from coreutils:
89133         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89134         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89135         that condition, rather than `-1' which is slightly misleading.
89136         Change the name of the cache variable to have the gl_ prefix.
89137         Prompted by a patch from Richard Dawe for DJGPP.
89138
89139 2003-05-24  Karl Berry  <karl@gnu.org>
89140
89141         * config/config.guess: update from prep.
89142
89143 2003-05-22  Karl Berry  <karl@gnu.org>
89144
89145         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89146
89147 2003-05-20  Karl Berry  <karl@gnu.org>
89148
89149         * config/config.guess: update from prep.
89150
89151 2003-05-18  Karl Berry  <karl@gnu.org>
89152
89153         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89154         might actually be set by the user.
89155
89156         * config/depcomp, install-sh, mdate-sh: update from automake.
89157
89158 2003-05-17  Bruno Haible  <bruno@clisp.org>
89159
89160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89161         invalid expansion for AC_EGREP_CPP.
89162         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89163         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89164         Suggested by Akim Demaille <akim@epita.fr> in
89165         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89166
89167 2003-05-12  Jim Meyering  <jim@meyering.net>
89168
89169         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89170         the space-padded-by-default conversion specifiers, %e, %k, %l.
89171
89172 2003-05-12  Bruno Haible  <bruno@clisp.org>
89173
89174         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89175         the string is longer than 4 KB.
89176
89177 2003-05-11  Karl Berry  <karl@gnu.org>
89178
89179         * config/config.{guess,sub}: update from prep.
89180
89181 2003-05-09  Bruno Haible  <bruno@clisp.org>
89182
89183         * modules/error: Add m4/strerror_r.m4 to file list.
89184
89185 2003-05-03  Bruno Haible  <bruno@clisp.org>
89186
89187         Upgrade to Unicode-4.0.
89188         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89189         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89190         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89191         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89192         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89193         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89194         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89195         Change width of U+E0100..U+E01EF from 1 to 0.
89196
89197 2003-04-25  Jim Meyering  <jim@meyering.net>
89198
89199         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89200         of type size_t, not int.
89201
89202 2003-04-25  Bruno Haible  <bruno@clisp.org>
89203
89204         * lib/copy-file.c: Include <stddef.h>, for size_t.
89205
89206 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89207
89208         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89209         code which expansion is under static control.  Patch imported from
89210         Akim Demaille's patch to Bison; see
89211         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89212
89213 2003-04-14  Bruno Haible  <bruno@clisp.org>
89214
89215         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89216
89217 2003-04-11  Jim Meyering  <jim@meyering.net>
89218
89219         Merge changes from Coreutils.
89220
89221         2003-03-22  Jim Meyering  <jim@meyering.net>
89222
89223         * lib/strftime.c (widen): Cast alloca return value to proper type.
89224
89225         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89226
89227         From GNU libc.
89228         * lib/strftime.c (my_strftime): Handle very large width
89229         specifications for numeric values correctly.  Improve checks for
89230         overflow.
89231
89232         2003-01-19  Jim Meyering  <jim@meyering.net>
89233
89234         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89235         definitions.
89236         (nl_get_alt_digit) [! defined my_strftime]: Define.
89237         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89238         _nl_get_alt_digit and _nl_get_walt_digit.
89239
89240         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89241         libc. These changes have no effect outside of _LIBC.
89242
89243 2003-04-10  Bruno Haible  <bruno@clisp.org>
89244
89245         * modules/findprog: New file.
89246         * MODULES.html.sh (func_all_modules): Add it.
89247
89248 2003-04-10  Bruno Haible  <bruno@clisp.org>
89249
89250         * m4/findprog.m4: New file.
89251         * m4/eaccess.m4: New file.
89252
89253 2003-04-10  Bruno Haible  <bruno@clisp.org>
89254
89255         * lib/findprog.h: New file, from GNU gettext.
89256         * lib/findprog.c: New file, from GNU gettext.
89257
89258 2003-04-05  Jim Meyering  <jim@meyering.net>
89259
89260         Merge changes from Coreutils.
89261
89262         * lib/exclude.h (PARAMS): Remove definition and uses.
89263         * lib/exclude.c: Remove uses of `PARAMS'.
89264
89265         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89266         Add test-cases for DOS filenames. Declare program_name.
89267         (main): Set up program_name.  Patch by Rich Dawe.
89268
89269         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89270         error from mntctl.
89271         Use mntctl's return value to drive the entry-processing loop, since
89272         we can't rely on the value of the vmt_length member in the last
89273         entry.  On some systems doing so could result in exhausting
89274         virtual memory.  Based in part on a patch from Mike Jetzer.
89275
89276 2003-04-04  Bruno Haible  <bruno@clisp.org>
89277
89278         * modules/linebreak: New file.
89279         * MODULES.html.sh (func_all_modules): Add it.
89280
89281 2003-04-04  Bruno Haible  <bruno@clisp.org>
89282
89283         * m4/linebreak.m4: New file.
89284
89285 2003-04-04  Bruno Haible  <bruno@clisp.org>
89286
89287         * lib/linebreak.h: New file, from GNU gettext.
89288         * lib/linebreak.c: New file, from GNU gettext with slight
89289         modifications.
89290         * lib/lbrkprop.h: New file, from GNU gettext.
89291
89292 2003-04-03  Bruno Haible  <bruno@clisp.org>
89293
89294         * modules/utf8-ucs4: New file.
89295         * modules/utf16-ucs4: New file.
89296         * modules/ucs4-utf8: New file.
89297         * modules/ucs4-utf16: New file.
89298         * MODULES.html.sh (func_all_modules): Add them.
89299
89300 2003-04-03  Bruno Haible  <bruno@clisp.org>
89301
89302         * m4/utf-ucs4.m4: New file.
89303         * m4/ucs4-utf.m4: New file.
89304
89305 2003-04-03  Bruno Haible  <bruno@clisp.org>
89306
89307         * lib/utf8-ucs4.h: New file, from GNU gettext.
89308         * lib/utf16-ucs4.h: New file, from GNU gettext.
89309         * lib/ucs4-utf8.h: New file, from GNU gettext.
89310         * lib/ucs4-utf16.h: New file, from GNU gettext.
89311
89312 2003-04-02  Bruno Haible  <bruno@clisp.org>
89313
89314         * modules/binary-io: New file.
89315         * MODULES.html.sh (func_all_modules): Add it.
89316
89317 2003-04-02  Bruno Haible  <bruno@clisp.org>
89318
89319         * lib/binary-io.h: New file, from GNU gettext.
89320
89321 2003-04-01  Bruno Haible  <bruno@clisp.org>
89322
89323         * modules/pathname: New file.
89324         * MODULES.html.sh (func_all_modules): Add it.
89325
89326 2003-04-01  Bruno Haible  <bruno@clisp.org>
89327
89328         * lib/pathname.h: New file, from GNU gettext.
89329         * lib/concatpath.c: New file, from GNU gettext.
89330
89331 2003-03-30  Bruno Haible  <bruno@clisp.org>
89332
89333         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89334
89335 2003-03-30  Bruno Haible  <bruno@clisp.org>
89336
89337         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89338         function chown() doesn't exist.
89339
89340 2003-03-28  Bruno Haible  <bruno@clisp.org>
89341
89342         * modules/copy-file: New file.
89343         * MODULES.html.sh (func_all_modules): Add it.
89344
89345 2003-03-28  Bruno Haible  <bruno@clisp.org>
89346
89347         * m4/copy-file.m4: New file.
89348
89349 2003-03-28  Bruno Haible  <bruno@clisp.org>
89350
89351         * lib/copy-file.h: New file, from GNU gettext.
89352         * lib/copy-file.c: New file, from GNU gettext.
89353
89354 2003-03-18  Jim Meyering  <jim@meyering.net>
89355
89356         * lib/quote.c (quote_n): Fix typo in comment.
89357
89358 2003-03-18  Bruno Haible  <bruno@clisp.org>
89359
89360         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89361         checking.
89362         * m4/onceonly_2_57.m4: Likewise.
89363
89364 2003-03-17  Bruno Haible  <bruno@clisp.org>
89365
89366         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89367         (m4_quote): Remove macro.
89368         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89369
89370 2003-03-14  Jim Meyering  <jim@meyering.net>
89371
89372         Merge changes from Coreutils.
89373         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89374         to be const, in order to avoid warnings.
89375         (obstack_room): Likewise.
89376         (obstack_empty_p): Likewise.
89377
89378 2003-03-14  Bruno Haible  <bruno@clisp.org>
89379
89380         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89381         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89382
89383 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89384
89385         Merge changes from Bison.
89386         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89387         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89388         when compiling Bison 1.875's `bitset bset = obstack_alloc
89389         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89390         * lib/hash.c: Include <stdbool.h> unconditionally.
89391
89392 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89393
89394         * m4/onceonly.m4 (m4_quote): New macro.
89395         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89396         Quote AC_FOREACH variable-expansions properly.
89397
89398 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89399
89400         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89401
89402 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89403
89404         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89405         Reported by Bruce Becker; see:
89406         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89407
89408 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89409             Bruno Haible  <bruno@clisp.org>
89410
89411         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89412         Reported by John Hughes, see
89413         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89414
89415 2003-02-20  Bruno Haible  <bruno@clisp.org>
89416
89417         * MODULES.html.sh (func_all_modules): Add poll.
89418
89419 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89420
89421         * modules/poll: New file.
89422
89423 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89424
89425         * lib/poll_.h: New file.
89426         * lib/poll.c: New file.
89427
89428 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89429
89430         * m4/poll.m4: New file.
89431
89432 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89433
89434         * modules/mathl: New file.
89435
89436 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89437
89438         * lib/mathl.h: New file.
89439         * lib/acosl.c: New file.
89440         * lib/asinl.c: New file.
89441         * lib/atanl.c: New file.
89442         * lib/ceill.c: New file.
89443         * lib/cosl.c: New file.
89444         * lib/expl.c: New file.
89445         * lib/floorl.c: New file.
89446         * lib/frexpl.c: New file.
89447         * lib/ldexpl.c: New file.
89448         * lib/logl.c: New file.
89449         * lib/sincosl.c: New file.
89450         * lib/sinl.c: New file.
89451         * lib/sqrtl.c: New file.
89452         * lib/tanl.c: New file.
89453         * lib/trigl.c: New file.
89454         * lib/trigl.h: New file.
89455
89456 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89457
89458         * m4/mathl.m4: New file.
89459
89460 2003-02-18  Bruno Haible  <bruno@clisp.org>
89461
89462         * MODULES.html.sh (func_all_modules): Add mathl.
89463
89464 2003-02-17  Bruno Haible  <bruno@clisp.org>
89465
89466         * modules/mkdtemp: New module.
89467         * MODULES.html.sh (func_all_modules): Add it.
89468
89469 2003-02-17  Bruno Haible  <bruno@clisp.org>
89470
89471         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89472
89473 2003-02-17  Bruno Haible  <bruno@clisp.org>
89474
89475         * lib/mkdtemp.h: New file, from GNU gettext.
89476         * lib/mkdtemp.c: New file, from GNU gettext.
89477
89478 2003-02-02  Jim Meyering  <jim@meyering.net>
89479
89480         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89481         e.g. glibc-2.2.93.
89482
89483 2003-01-31  Bruno Haible  <bruno@clisp.org>
89484
89485         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89486         'rpl_rename'.
89487         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89488         'rpl_strnlen'.
89489         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89490         'rpl_strtod'.
89491         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89492         'rpl_utime'.
89493
89494 2003-01-31  Bruno Haible  <bruno@clisp.org>
89495
89496         * lib/rename.c: #undef rename before defining rpl_rename.
89497         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89498
89499 2003-01-30  Bruno Haible  <bruno@clisp.org>
89500
89501         * modules/vasnprintf, modules/vasprintf: New modules.
89502         * MODULES.html.sh (func_all_modules): Add them.
89503
89504 2003-01-30  Bruno Haible  <bruno@clisp.org>
89505
89506         * m4/signed.m4: New file, from GNU gettext.
89507         * m4/longdouble.m4: New file, from GNU gettext.
89508         * m4/wchar_t.m4: New file, from GNU gettext.
89509         * m4/wint_t.m4: New file, from GNU gettext.
89510         * m4/vasnprintf.m4: New file.
89511         * m4/vasprintf.m4: New file.
89512
89513 2003-01-30  Bruno Haible  <bruno@clisp.org>
89514
89515         * lib/printf-args.h: New file, from GNU gettext.
89516         * lib/printf-args.c: New file, from GNU gettext.
89517         * lib/printf-parse.h: New file, from GNU gettext.
89518         * lib/printf-parse.c: New file, from GNU gettext.
89519         * lib/vasnprintf.h: New file, from GNU gettext.
89520         * lib/vasnprintf.c: New file, from GNU gettext.
89521         * lib/asnprintf.c: New file, from GNU gettext.
89522         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89523         * lib/vasprintf.c: New file, from GNU gettext.
89524         * lib/asprintf.c: New file, from GNU gettext.
89525
89526 2003-01-29  Bruno Haible  <bruno@clisp.org>
89527
89528         * modules/stpncpy: New module.
89529         * MODULES.html.sh (func_all_modules): Add it.
89530
89531 2003-01-29  Bruno Haible  <bruno@clisp.org>
89532
89533         * m4/stpncpy.m4: New file.
89534
89535 2003-01-29  Bruno Haible  <bruno@clisp.org>
89536
89537         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89538         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89539
89540 2003-01-28  Bruno Haible  <bruno@clisp.org>
89541
89542         * modules/c-ctype: New module.
89543         * MODULES.html.sh (func_all_modules): Add it.
89544
89545 2003-01-28  Bruno Haible  <bruno@clisp.org>
89546
89547         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89548         Paul Eggert.
89549         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89550         Paul Eggert.
89551
89552 2003-01-27  Bruno Haible  <bruno@clisp.org>
89553
89554         * modules/xsetenv: New module.
89555         * MODULES.html.sh (func_all_modules): Add it.
89556
89557 2003-01-27  Bruno Haible  <bruno@clisp.org>
89558
89559         * lib/xsetenv.h: New file, from GNU gettext.
89560         * lib/xsetenv.c: New file, from GNU gettext.
89561
89562 2003-01-23  Jim Meyering  <jim@meyering.net>
89563
89564         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89565         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89566
89567 2003-01-23  Bruno Haible  <bruno@clisp.org>
89568
89569         * modules/minmax: New module.
89570         * MODULES.html.sh (func_all_modules): Add it.
89571
89572 2003-01-23  Bruno Haible  <bruno@clisp.org>
89573
89574         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89575         Eggert.
89576
89577 2003-01-22  Bruno Haible  <bruno@clisp.org>
89578
89579         * modules/exit: New module.
89580         * MODULES.html.sh (func_all_modules): Add it.
89581
89582 2003-01-22  Bruno Haible  <bruno@clisp.org>
89583
89584         * lib/exit.h: New file, from GNU gettext.
89585
89586 2003-01-19  Bruno Haible  <bruno@clisp.org>
89587
89588         * gnulib-tool: Recognize option --extract-maintainer.
89589         (func_get_maintainer): New function.
89590         * modules/*: Add Maintainer entry.
89591
89592 2003-01-16  Jim Meyering  <jim@meyering.net>
89593
89594         * m4/regex.m4: The `regex' struct is both input and output.
89595         Initialize it before each use.  Patch by Tim Waugh.
89596
89597 2003-01-16  Bruno Haible  <bruno@clisp.org>
89598
89599         * MODULES.html.sh: Add a table of contents. Add the module name as
89600         leftmost column. Add hyperlinks.
89601
89602 2003-01-15  Bruno Haible  <bruno@clisp.org>
89603
89604         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89605
89606 2003-01-15  Bruno Haible  <bruno@clisp.org>
89607
89608         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89609         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89610         suffix.
89611
89612 2003-01-15  Bruno Haible  <bruno@clisp.org>
89613
89614         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89615
89616 2003-01-15  Bruno Haible  <bruno@clisp.org>
89617
89618         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89619         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89620
89621 2003-01-14  Jim Meyering  <jim@meyering.net>
89622
89623         * lib/same.c (same_name): Tweak a comment.
89624
89625 2003-01-14  Bruno Haible  <bruno@clisp.org>
89626
89627         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89628         when a string comparison is sufficient.
89629
89630 2003-01-14  Bruno Haible  <bruno@clisp.org>
89631
89632         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89633         'unsigned int'.
89634
89635 2003-01-14  Bruno Haible  <bruno@clisp.org>
89636
89637         * lib/hash-pjw.c: Add comment about low quality of this function.
89638
89639 2003-01-13  Bruno Haible  <bruno@clisp.org>
89640
89641         * modules/stpcpy: Distribute lib/stpcpy.h.
89642         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89643
89644 2003-01-13  Bruno Haible  <bruno@clisp.org>
89645
89646         * modules/*: Add a description.
89647         * modules/strpbrk: Fix Makefile.am snippet.
89648         * modules/strtoimax: Fix dependencies.
89649         * modules/strtoumax: Likewise.
89650
89651 2003-01-13  Bruno Haible  <bruno@clisp.org>
89652
89653         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89654         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89655         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89656
89657 2003-01-13  Bruno Haible  <bruno@clisp.org>
89658
89659         * gnulib-tool (func_create_testdir): Store config/* files in the main
89660         directory.
89661         * config.rpath: Move to ...
89662         * config/config.rpath: ... here.
89663         * modules/gettext: Contains config/config.rpath, not config.rpath.
89664         * modules/iconv: Likewise.
89665
89666 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89667
89668         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89669         to avoid collisions with libcurses and libreadline.
89670
89671         * m4/getstr.m4: Remove.
89672         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89673
89674 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89675
89676         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89677         to avoid collisions with libcurses and libreadline.
89678
89679         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89680         * lib/getstr.h, getstr.c: Remove.
89681         * lib/getline.c: Include "getline.h", to check interface.
89682         Move body of old getstr.c here: this defines MIN_CHUNK and
89683         declares getdelim2, which is renamed from getstr.
89684         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89685
89686         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89687         All uses changed.
89688         * lib/linebuffer.h: Likewise.
89689         (readline): Remove backward-compatibility macro.
89690
89691 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89692
89693         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89694         to avoid collisions with libcurses and libreadline.
89695         * getstr: Remove.
89696         * MODULES.html.sh: Remove getstr.
89697         * modules/getline: Depend on unlocked-io, not getstr.
89698
89699 2003-01-12  Jim Meyering  <jim@meyering.net>
89700
89701         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89702
89703 2003-01-10  Bruno Haible  <bruno@clisp.org>
89704
89705         * modules/alloca: Change Makefile.am requirements. Simplify Include
89706         requirements. Add lib/alloca_.h to file list.
89707
89708 2003-01-10  Bruno Haible  <bruno@clisp.org>
89709
89710         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89711
89712 2003-01-10  Bruno Haible  <bruno@clisp.org>
89713
89714         * lib/alloca_.h: New file.
89715         * lib/getdate.y: Unconditionally include alloca.h.
89716         * lib/makepath.c: Likewise.
89717         * lib/setenv.c: Likewise.
89718         * lib/userspec.c: Likewise.
89719
89720 2003-01-09  Karl Berry  <karl@gnu.org>
89721
89722         * MODULES.html.sh: include `dirname $0` in PATH, to find
89723         gnulib-tool.
89724
89725 2003-01-09  Bruno Haible  <bruno@clisp.org>
89726
89727         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89728         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89729
89730 2003-01-09  Bruno Haible  <bruno@clisp.org>
89731
89732         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89733
89734 2003-01-09  Bruno Haible  <bruno@clisp.org>
89735
89736         * lib/stdbool.h.in: New file.
89737
89738 2003-01-09  Bruno Haible  <bruno@clisp.org>
89739
89740         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89741         * MODULES.html.sh: Likewise.
89742
89743 2003-01-08  Jim Meyering  <jim@meyering.net>
89744
89745         * lib/full-write.c: Undefine and define-away `const' after inclusion
89746         of errno.h, not before.  Suggestion from Bruno Haible.
89747
89748 2003-01-08  Bruno Haible  <bruno@clisp.org>
89749
89750         * modules/full-read: Depend on full-write.
89751
89752 2003-01-08  Bruno Haible  <bruno@clisp.org>
89753
89754         * lib/safe-read.c: Include specification header first, to ensure its
89755         selfcontainedness.
89756         * lib/full-write.c: Likewise.
89757
89758 2003-01-07  Jim Meyering  <jim@meyering.net>
89759
89760         * lib/full-write.c: Rework so that it may serve to define full_read,
89761         too.
89762         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89763
89764 2003-01-07  Bruno Haible  <bruno@clisp.org>
89765
89766         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89767         <inttypes.h>.
89768         * lib/xstrtol.h: Likewise.
89769         * lib/xstrtoimax.c: Likewise.
89770         * lib/xstrtoumax.c: Likewise.
89771         * lib/human.h: Likewise.
89772
89773         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89774         on systems that have <inttypes.h> but not <stdint.h>.
89775
89776 2003-01-07  Bruno Haible  <bruno@clisp.org>
89777
89778         * MODULES.html.sh: Add copyright notice.
89779         (missed_files): Omit CVS directory entries.
89780         (func_module): Make it work with sed-3.02.
89781         * MODULES.txt: Remove file.
89782
89783 2003-01-06  Jim Meyering  <jim@meyering.net>
89784
89785         * lib/version-etc.c: Update year in translatable copyright string.
89786
89787 2003-01-03  Karl Berry  <karl@gnu.org>
89788
89789         * config/config.{guess,sub}: update from prep.
89790
89791 2003-01-02  Karl Berry  <karl@gnu.org>
89792
89793         * doc/COPYING.DOC: belatedly updated to 1.2.
89794
89795 2003-01-01  Karl Berry  <karl@gnu.org>
89796
89797         * gnulib-tool (func_verify_module): report module name $module in
89798         error message, not $1.
89799         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89800         be created, only if it doesn't exist.
89801         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89802
89803 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89804
89805         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89806
89807 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89808
89809         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89810         memcmp if strcoll doesn't work.
89811
89812 2002-12-31  Bruno Haible  <bruno@clisp.org>
89813
89814         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89815         nonempty.
89816
89817 2002-12-31  Bruno Haible  <bruno@clisp.org>
89818
89819         * lib/memcoll.c (STRCOLL): New macro.
89820         (memcoll): Use it.
89821
89822 2002-12-31  Bruno Haible  <bruno@clisp.org>
89823
89824         * lib/localcharset.h: New file.
89825         * lib/localcharset.c: Include it.
89826         * lib/unicodeio.c: Likewise.
89827
89828 2002-12-31  Bruno Haible  <bruno@clisp.org>
89829
89830         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89831         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89832
89833 2002-12-31  Bruno Haible  <bruno@clisp.org>
89834
89835         * lib/getline.h: Include <stddef.h>, for size_t.
89836
89837         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89838         * lib/unicodeio.c: Don't include <stddef.h>.
89839
89840 2002-12-31  Bruno Haible  <bruno@clisp.org>
89841
89842         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89843         HAVE_TM_ZONE.
89844
89845 2002-12-24  Karl Berry  <karl@gnu.org>
89846
89847         * config/config.guess: update from prep.
89848
89849 2002-12-24  Bruno Haible  <bruno@clisp.org>
89850
89851         General infrasructure.
89852         * m4/README: Rewritten.
89853         * m4/onceonly.m4: New file.
89854         * m4/onceonly_2_57.m4: New file.
89855
89856         Module atexit.
89857         * m4/atexit.m4: New file.
89858
89859         Module strtod.
89860         * m4/strtod.m4: New file.
89861
89862         Module strtol.
89863         * m4/strtol.m4: New file.
89864
89865         Module strtoul.
89866         * m4/strtoul.m4: New file.
89867
89868         Module memchr.
89869         * m4/memchr.m4: New file.
89870
89871         Module memcmp.
89872         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89873         (jm_FUNC_MEMCMP): Invoke it.
89874
89875         Module memcpy.
89876         * m4/memcpy.m4: New file.
89877
89878         Module memmove.
89879         * m4/memmove.m4: New file.
89880
89881         Module memset.
89882         * m4/memset.m4: New file.
89883
89884         Module strcspn.
89885         * m4/strcspn.m4: New file.
89886
89887         Module strpbrk.
89888         * m4/strpbrk.m4: New file.
89889
89890         Module strstr.
89891         * m4/strstr.m4: New file.
89892
89893         Module strerror.
89894         * m4/strerror.m4: New file.
89895
89896         Module mktime.
89897         * m4/mktime.m4: Renamed from jm-mktime.m4.
89898         (gl_PREREQ_MKTIME): New macro.
89899         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89900
89901         Module malloc.
89902         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89903         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89904         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89905
89906         Module realloc.
89907         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89908         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89909         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89910
89911         Module strftime.
89912         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89913         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89914         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89915         gl_TM_GMTOFF.
89916         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89917
89918         Module xalloc.
89919         * m4/xalloc.m4: New file.
89920
89921         Module alloca.
89922         * m4/alloca.m4: New file.
89923
89924         Module putenv.
89925         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89926         (jm_FUNC_PUTENV): Invoke it.
89927
89928         Module setenv.
89929         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89930         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89931         when invoked twice.
89932         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89933         gt_FUNC_SETENV.
89934
89935         Module memrchr.
89936         * m4/memrchr.m4: New file.
89937
89938         Module stpcpy.
89939         * m4/stpcpy.m4: New file.
89940
89941         Module strcase.
89942         * m4/strcase.m4: New file.
89943
89944         Module strdup.
89945         * m4/strdup.m4: New file.
89946
89947         Module strnlen.
89948         * m4/strnlen.m4: New file.
89949
89950         Module strndup.
89951         * m4/strndup.m4: New file.
89952
89953         Module xstrtod.
89954         * m4/xstrtod.m4: New file.
89955
89956         Module xstrtol.
89957         * m4/xstrtol.m4: New file.
89958
89959         Module getdate.
89960         * m4/getdate.m4: New file.
89961
89962         Module unlocked-io.
89963         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89964         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89965         * m4/jm-glibc-io.m4n: Remove file.
89966
89967         Module long-options.
89968         * m4/long-options.m4: New file.
89969
89970         Module md5.
89971         * m4/md5.m4: New file.
89972
89973         Module sha.
89974         * m4/sha.m4: New file.
89975
89976         Module getstr.
89977         * m4/getstr.m4: New file.
89978
89979         Module getline.
89980         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89981         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89982         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89983         simply getline. Infoke gl_PREREQ_GETLINE.
89984
89985         Module obstack.
89986         * m4/obstack.m4: New file.
89987
89988         Module hash.
89989         * m4/hash.m4: New file.
89990
89991         Module readtokens.
89992         * m4/readtokens.m4: New file.
89993
89994         Module strverscmp.
89995         * m4/strverscmp.m4: New file.
89996
89997         Module stdbool.
89998         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89999         OSF/1.
90000
90001         Module strtoll.
90002         * m4/strtoll.m4: New file.
90003
90004         Module strtoull.
90005         * m4/strtoull.m4: New file.
90006
90007         Module strtoimax.
90008         * m4/strtoimax.m4: New file.
90009
90010         Module strtoumax.
90011         * m4/strtoumax.m4: New file.
90012
90013         Module xstrtoimax.
90014         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90015         jm_AC_PREREQ_XSTRTOIMAX.
90016         Moved the strtol prerequisites to strtol.m4.
90017         Moved the strtoll prerequisites to strtoll.m4.
90018         Moved the strtoimax prerequisites to strtoimax.m4.
90019
90020         Module xstrtoumax.
90021         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90022         jm_AC_PREREQ_XSTRTOUMAX.
90023         Moved the strtoul prerequisites to strtoul.m4.
90024         Moved the strtoull prerequisites to strtoull.m4.
90025         Moved the strtoumax prerequisites to strtoumax.m4.
90026
90027         Module chown.
90028         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90029         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90030
90031         Module dup2.
90032         * m4/dup2.m4: New file.
90033
90034         Module ftruncate.
90035         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90036         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90037
90038         Module getgroups.
90039         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90040         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90041
90042         Module gettimeofday.
90043         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90044         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90045         gl_PREREQ_GETTIMEOFDAY.
90046
90047         Module mkdir.
90048         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90049         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90050
90051         Module mkstemp.
90052         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90053         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90054         jm_AC_TYPE_UINTMAX_T.
90055         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90056
90057         Module stat.
90058         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90059         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90060
90061         Module lstat.
90062         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90063         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90064
90065         Module timespec.
90066         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90067         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90068         * m4/st_mtim.m4: Indentation.
90069
90070         Module nanosleep.
90071         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90072         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90073         gl_PREREQ_NANOSLEEP.
90074
90075         Module regex.
90076         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90077         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90078         (gl_REGEX): New macro.
90079
90080         Module rename.
90081         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90082         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90083
90084         Module rmdir.
90085         * m4/rmdir.m4: New file.
90086
90087         Module utime.
90088         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90089         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90090         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90091
90092         Module dirname.
90093         * m4/dirname.m4: New file.
90094
90095         Module getopt.
90096         * m4/getopt.m4: New file.
90097
90098         Module unistd-safer.
90099         * m4/unistd-safer.m4: New file.
90100
90101         Module fnmatch.
90102         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90103         declaration.
90104         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90105         (gl_FUNC_FNMATCH_POSIX): New macro.
90106         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90107         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90108         simply fnmatch.
90109
90110         Module exclude.
90111         * m4/exclude.m4: New file.
90112
90113         Module human.
90114         * m4/human.m4: New file.
90115
90116         Module acl.
90117         * m4/acl.m4: Nop.
90118
90119         Module backupfile.
90120         * m4/backupfile.m4: New file.
90121         * m4/d-ino.m4: Indentation.
90122
90123         Module fsusage.
90124         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90125         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90126         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90127
90128         Module dirfd.
90129         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90130         requirements.
90131
90132         Module euidaccess.
90133         * m4/euidaccess.m4: New file.
90134
90135         Module file-type.
90136         * m4/file-type.m4: New file.
90137
90138         Module fileblocks.
90139         * m4/fileblocks.m4: New file.
90140
90141         Module filemode.
90142         * m4/filemode.m4: New file.
90143
90144         Module isdir.
90145         * m4/isdir.m4: New file.
90146
90147         Module lchown.
90148         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90149         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90150
90151         Module makepath.
90152         * m4/makepath.m4: New file.
90153
90154         Module modechange.
90155         * m4/modechange.m4: New file.
90156
90157         Module mountlist.
90158         * m4/mountlist.m4: New file.
90159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90160         Indentation.
90161
90162         Module path-concat.
90163         * m4/path-concat.m4: New file.
90164
90165         Module pathmax.
90166         * m4/pathmax.m4: New file.
90167
90168         Module same.
90169         * m4/same.m4: New file.
90170
90171         Module save-cwd.
90172         * m4/save-cwd.m4: New file.
90173
90174         Module savedir.
90175         * m4/savedir.m4: New file.
90176
90177         Module xgetcwd.
90178         * m4/xgetcwd.m4: New file.
90179         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90180
90181         Module xreadlink.
90182         * m4/xreadlink.m4: New file.
90183
90184         Module safe-read.
90185         * m4/safe-read.m4: New file.
90186
90187         Module safe-write.
90188         * m4/safe-write.m4: New file.
90189
90190         Module closeout.
90191         * m4/closeout.m4: New file.
90192
90193         Module stdio-safer.
90194         * m4/stdio-safer.m4: New file.
90195
90196         Module getpass.
90197         * m4/getpass.m4: New file.
90198
90199         Module getugroups.
90200         * m4/getugroups.m4: New file.
90201
90202         Module group-member.
90203         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90204         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90205
90206         Module idcache.
90207         * m4/idcache.m4: New file.
90208
90209         Module userspec.
90210         * m4/userspec.m4: New file.
90211
90212         Module gettime.
90213         * m4/clock_time.m4: New file.
90214         * m4/gettime.m4: New file.
90215
90216         Module settime.
90217         * m4/settime.m4: New file.
90218
90219         Module posixtm.
90220         * m4/posixtm.m4: New file.
90221
90222         Module gethostname.
90223         * m4/gethostname.m4: New file.
90224
90225         Module canon-host.
90226         * m4/canon-host.m4: New file.
90227
90228         Module gettext.
90229         * m4/codeset.m4: New file, from gettext-0.11.5.
90230         * m4/gettext.m4: New file, from gettext-0.11.5.
90231         * m4/glibc21.m4: New file, from gettext-0.11.5.
90232         * m4/iconv.m4: New file, from gettext-0.11.5.
90233         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90234         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90235         * m4/inttypes.m4: New file, from gettext-0.11.5.
90236         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90237         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90238         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90239         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90240         * m4/lib-link.m4: New file, from gettext-0.11.5.
90241         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90242         * m4/progtest.m4: New file, from gettext-0.11.5.
90243         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90244         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90245         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90246
90247         Module localcharset.
90248         * m4/localcharset.m4: New file.
90249
90250         Module hard-locale.
90251         * m4/hard-locale.m4: New file.
90252
90253         Module mbswidth.
90254         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90255         onceonly macros.
90256         * m4/mbrtowc.m4: Add comment.
90257
90258         Module memcasecmp.
90259         * m4/memcasecmp.m4: New file.
90260
90261         Module memcoll.
90262         * m4/memcoll.m4: New file.
90263
90264         Module unicodeio.
90265         * m4/unicodeio.m4: New file.
90266
90267         Module rpmatch.
90268         * m4/rpmatch.m4: New file.
90269
90270         Module yesno.
90271         * m4/yesno.m4: New file.
90272
90273         Module exitfail.
90274         * m4/exitfail.m4: New file.
90275
90276         Module c-stack.
90277         * m4/c-stack.m4 (gl_C_STACK): New macro.
90278         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90279
90280         Module error.
90281         * m4/error.m4 (gl_ERROR): New macro.
90282         (jm_PREREQ_ERROR): Use onceonly macros.
90283
90284         Module fatal.
90285         * m4/fatal.m4: New file.
90286
90287         Module getloadavg.
90288         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90289         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90290
90291         Module getpagesize.
90292         * m4/getpagesize.m4: New file.
90293
90294         Module getusershell.
90295         * m4/getusershell.m4: New file.
90296
90297         Module physmem.
90298         * m4/physmem.m4: New file.
90299
90300         Module posixver.
90301         * m4/posixver.m4: New file.
90302
90303         Module quotearg.
90304         * m4/quotearg.m4: New file.
90305
90306         Module quote.
90307         * m4/quote.m4: New file.
90308
90309         Module readutmp.
90310         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90311
90312         Module sig2str.
90313         * m4/sig2str.m4: New file.
90314
90315         Other.
90316         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90317         ulonglong.m4.
90318         * m4/intmax_t.m4: New file.
90319         * m4/d-type.m4: Indentation.
90320         * m4/jm-macros.m4: Update.
90321         * m4/prereq.m4 (jm_PREREQ): Update.
90322         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90323         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90324         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90325         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90326         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90327         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90328         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90329         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90330         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90331         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90332         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90333         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90334         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90335         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90336         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90337         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90338         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90339         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90340         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90341
90342 2002-12-24  Bruno Haible  <bruno@clisp.org>
90343
90344         * MODULES.txt: Update according to m4/ changes.
90345
90346         Module gettext.
90347         * config.rpath: New file, from gettext-0.11.5.
90348
90349         * modules/*: New module descriptions.
90350         * gnulib-tool: New file.
90351         * MODULES.html.sh: New file.
90352
90353 2002-12-21  Karl Berry  <karl@gnu.org>
90354
90355         * doc/fdl.texi: update to version 1.2.
90356
90357 2002-12-19  Karl Berry  <karl@gnu.org>
90358
90359         * config/config.guess: update from prep.
90360
90361 2002-12-18  Bruno Haible  <bruno@clisp.org>
90362
90363         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90364         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90365
90366 2002-12-17  Bruno Haible  <bruno@clisp.org>
90367
90368         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90369         stdlib.h, string.h.
90370
90371 2002-12-17  Bruno Haible  <bruno@clisp.org>
90372
90373         * lib/canon-host.c (strdup): Remove unused declaration.
90374
90375         * lib/fsusage.c: Include full_read.h.
90376         (get_fs_usage): Use full_read instead of safe_read.
90377
90378         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90379
90380 2002-12-12  Karl Berry  <karl@gnu.org>
90381
90382         * config/config.guess: update from prep.
90383
90384 2002-12-11  Bruno Haible  <bruno@clisp.org>
90385
90386         * m4/setenv.m4: New file, from gettext-0.11.5.
90387
90388 2002-12-11  Bruno Haible  <bruno@clisp.org>
90389
90390         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90391         not unsetenv().
90392         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90393         modifications:
90394
90395         2002-12-11  Bruno Haible  <bruno@clisp.org>
90396
90397                 * setenv.c (alloca): Fall back to malloc.
90398                 (freea): New macro.
90399                 (setenv): Use freea() to free memory allocated with alloca().
90400
90401         2002-11-13  Bruno Haible  <bruno@clisp.org>
90402
90403                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90404                 function declarations.
90405                 * unsetenv.c (unsetenv): Likewise.
90406
90407         2002-03-04  Bruno Haible  <bruno@clisp.org>
90408
90409                 Portability to AIX 4.3.3.
90410                 * unsetenv.c: New file, extracted from setenv.c.
90411                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90412
90413         2001-12-20  Bruno Haible  <bruno@clisp.org>
90414
90415                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90416                 use malloc instead. For SunOS 4.
90417
90418         2001-12-11  Bruno Haible  <bruno@clisp.org>
90419
90420                 * setenv.c: Declare alloca.
90421                 (compar_fn_t): New typedef.
90422                 (KNOWN_VALUE, STORE_VALUE): Use it.
90423
90424         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90425         setenv.h.
90426
90427 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90428
90429         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90430         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90431         Choose values that are less likely to collide with system fnmatch
90432         options.
90433         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90434         defined (e.g., a pure POSIX system).
90435         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90436         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90437
90438 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90439
90440         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90441         a pain in practice to deal with generated m4 files.  This change
90442         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90443
90444         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90445         and jm-glibc-io.m4, as they are no longer a special case.
90446         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90447         kludge and the auto-generation stuff.  Check only whether the
90448         functions are declared, not whether they exist, since older hosts
90449         that don't declare the functions can't use the optimization anyway.
90450
90451 2002-12-06  Jim Meyering  <jim@meyering.net>
90452
90453         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90454
90455         Merge in changes from libc's misc/error.c, in preparation
90456         for the merge of gnulib's changes back into libc.
90457
90458         * lib/error.c (_): Define only if not already defined.
90459         Move definition to follow all #include directives.
90460         Include unlocked-io.h only if !_LIBC.
90461         [_LIBC]: Include <libio/libioP.h>.
90462         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90463         (fflush): Tweak definition to use INTUSE.
90464         (putc): Define.
90465
90466 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90467
90468         * lib/alloca.c [defined emacs]: Include "lisp.h".
90469         (xalloc_die) [defined emacs]: New macro.
90470         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90471         [! defined emacs]: Include <xalloc.h>.
90472         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90473         (pointer): Typedef to POINTER_TYPE *.
90474         (malloc): Remove decl; we now always use xmalloc.
90475         (alloca): Use old-style definition, since Emacs needs this.
90476         Check for arithmetic overflow when computing combined size.
90477
90478 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90479
90480         Do not generate unlocked-io.h automatically, since it's easier to
90481         maintain it by hand.
90482
90483         * lib/unlocked-io.h: New file, from GNU diffutils,
90484         but with proper copyright notice and attribution.
90485         * lib/gen-uio: Remove.
90486         * lib/Makefile.am: Add copyright notice.
90487         (libfetish_a_SOURCES): Add unlocked-io.h.
90488         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90489         (DISTCLEANFILES, io_functions): Remove macros.
90490         (EXTRA_DIST): Remove gen_uio.
90491         (unlocked-io.h): Remove rule.
90492
90493 2002-12-04  Jim Meyering  <jim@meyering.net>
90494
90495         Reflect the fact that stat.c and lstat.c are no longer generated.
90496         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90497         (DISTCLEANFILES): Likewise.
90498         (EXTRA_DIST): Likewise.
90499         (all_local): Don't depend on stat.c or lstat.c.
90500         (stat.c, lstat.c): Remove rules.
90501         (EXTRA_DIST): Remove xstat.in.
90502
90503         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90504         * lib/stat.c: New file.  Contents mostly from xstat.in.
90505         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90506         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90507
90508         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90509         too.
90510         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90511
90512 2002-12-03  Jim Meyering  <jim@meyering.net>
90513
90514         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90515         but not semantics, to minimize the differences between these two files.
90516         (safe_read): Change comment to mention SAFE_READ_ERROR.
90517
90518         * lib/safe-read.c (IS_EINTR): Define.
90519         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90520
90521 2002-12-02  Jim Meyering  <jim@meyering.net>
90522
90523         * lib/safe-read.c (EINTR): Define.
90524         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90525         (INT_MAX): Provide fallback.
90526         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90527
90528         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90529
90530 2002-12-02  Bruno Haible  <bruno@clisp.org>
90531
90532         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90533         Define, taken from safe-read.c.
90534         (INT_MAX): Provide fallback.
90535         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90536         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90537
90538         * lib/safe-read.c (EINTR): Remove definition.
90539         (safe_read): Don't use EINTR if it is absent.
90540
90541 2002-12-01  Jim Meyering  <jim@meyering.net>
90542
90543         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90544         zero.
90545         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90546
90547 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90548
90549         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90550         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90551         with `if (! (value < limit)) abort ();', for readability.
90552
90553 2002-11-26  Karl Berry  <karl@gnu.org>
90554
90555         * lib/strdup.c: copy from libc again, with jim's ok.
90556         * lib/.cppi-disable: re-add strdup.c
90557
90558 2002-11-25  Karl Berry  <karl@gnu.org>
90559
90560         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90561         instead of "strtol.c".
90562
90563 2002-11-25  Karl Berry  <karl@gnu.org>
90564
90565         * config/install-sh: update from automake for variable quoting, $0 in
90566         error msgs, etc.
90567
90568         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90569         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90570         entry.
90571
90572 2002-11-25  Jim Meyering  <jim@meyering.net>
90573
90574         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90575
90576 2002-11-24  Karl Berry  <karl@gnu.org>
90577
90578         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90579         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90580
90581 2002-11-24  Jim Meyering  <jim@meyering.net>
90582
90583         Update from coreutils:
90584
90585         * lib/mktime.c: Merge in changes from libc.
90586
90587         Avoid a link-time failure on some Linux systems.
90588         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90589         (otherwise).
90590         (__mon_yday): Declare with the STATIC attribute.
90591         (__mktime_internal): Likewise.
90592         Based on a report from Greg Schafer.
90593
90594 2002-11-23  Jim Meyering  <jim@meyering.net>
90595
90596         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90597         Use `unsigned', not `int', as type of index.
90598
90599         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90600
90601         * lib/fsusage.c: Remove unneeded parentheses around operands of
90602         `defined'.
90603
90604 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90605
90606         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90607         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90608         so that we can be included first.
90609         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90610         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90611         No need to include stddef.h or sys/types.h any more.
90612         Surround local include files with "", not "<>".
90613         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90614         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90615         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90616         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90617         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90618         (ISPRINT): Remove; no longer needed now that we assume C89.
90619
90620         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90621         Preserve errno.
90622
90623         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90624         quotearg_char): Use SIZE_MAX rather than
90625         (size_t) -1 when we are talking about "infinity".
90626
90627         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90628
90629 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90630
90631         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90632         hint that one should use `if (! x) abort ();' rather than `assert
90633         (x);', and anyway it's one less thing to worry about configuring.
90634         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90635         hash_rehash, hash_insert): Use abort rather than assert.
90636
90637 2002-11-22  Bruno Haible  <bruno@clisp.org>
90638
90639         * lib/safe-read.h: Assume C89. Add comments.
90640         (safe_read): Change return type to size_t.
90641         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90642         byte counts > SSIZE_MAX correctly.
90643         * lib/safe-write.h: New file.
90644         * lib/safe-write.c: New file.
90645         * lib/full-read.h: New file.
90646         * lib/full-read.c: New file.
90647         * lib/full-write.h: Assume C89. Add comments.
90648         * lib/full-write.c: Include safe-write.h.
90649         (full_write): Rewritten to use safe_write.
90650         Suggested by Jim Meyering and Paul Eggert.
90651
90652 2002-11-21  Jim Meyering  <jim@meyering.net>
90653
90654         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90655
90656         Merge in changes from the coreutils.
90657
90658         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90659         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90660         <stdint.h>.
90661         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90662         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90663         int.  Work more efficiently if X is the same width as uintmax_t.
90664         Do not compare X to -1, to avoid bogus compiler warning.
90665         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90666         Don't assume that f_frsize and f_bsize are the same type.
90667
90668         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90669         warning on FreeBSD.
90670
90671         * lib/makepath.c (make_path): Restore umask *before* creating the final
90672         component.
90673         (make_path): Minor reformatting.
90674
90675         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90676         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90677         HAVE_MALLOC/HAVE_REALLOC.
90678
90679         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90680         dummy ones.  At least on GNU/Linux systems, `auto' means something
90681         else.
90682         From Michael Stone.
90683
90684 2002-11-21  Bruno Haible  <bruno@clisp.org>
90685
90686         Remove case insensitive option matching.
90687         * lib/argmatch.h (argcasematch): Remove declaration.
90688         (ARGCASEMATCH): Remove macro.
90689         (__xargmatch_internal): Remove case_sensitive argument.
90690         (XARGMATCH): Update.
90691         (XARGCASEMATCH): Remove macro.
90692         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90693         case_sensitive argument.
90694         (argcasematch): Remove function.
90695         (__xargmatch_internal): Remove case_sensitive argument.
90696         (main): Use XARGMATCH instead of XARGCASEMATCH.
90697
90698         * lib/xmalloc.c: Change compile-time error message. Add comment about
90699         required autoconf version.
90700
90701 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90702
90703         Merge argmatch cleanups from Bison.  Assume C89.
90704
90705         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90706         Include stdlib.h, for EXIT_FAILURE.
90707         Always include <string.h>, since we assume C89.
90708         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90709         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90710         Include <stddef.h> instead, since it's all we need for size_t.
90711         (PARAMS): Remove.  All uses removed.
90712         (ARRAY_CARDINALITY): Do not bother to #undef.
90713         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90714         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90715         Remove unnecessary parentheses.
90716         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90717         Insert necessary parentheses.
90718         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90719         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90720
90721 2002-11-19  Bruno Haible  <bruno@clisp.org>
90722
90723         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90724         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90725
90726         * lib/mbswidth.h (PARAMS): Remove macro.
90727         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90728         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90729
90730         * lib/gcd.h (PARAMS): Remove macro.
90731         (gcd): Use ANSI C function declarations.
90732         * lib/gcd.c (gcd): Likewise.
90733
90734 2002-11-15  Bruno Haible  <bruno@clisp.org>
90735
90736         * lib/strcspn.c: Include <stddef.h>.
90737         (strcspn): Use ANSI C function declaration. Change return type to
90738         size_t. Use NULL.
90739         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90740         (strpbrk): Use NULL.
90741         * lib/strpbrk.h (PARAMS): Remove macro.
90742         (strpbrk): Use ANSI C function declaration.
90743         * lib/strstr.c: Don't include <sys/types.h>.
90744         * lib/strstr.h (PARAMS): Remove macro.
90745         (strstr): Use ANSI C function declarations.
90746
90747 2002-11-14  Karl Berry  <karl@gnu.org>
90748
90749         * config/mkinstalldirs: `do' on separate line, instead of
90750         `for var; do'.
90751
90752 2002-11-06  Bruno Haible  <bruno@clisp.org>
90753
90754         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90755         * lib/gcd.c (gcd): Likewise.
90756
90757 2002-11-05  Bruno Haible  <bruno@clisp.org>
90758
90759         * lib/gcd.h: New file, from gettext-0.11.5.
90760         * lib/gcd.c: New file, from gettext-0.11.5.
90761
90762 2002-11-05  Bruno Haible  <bruno@clisp.org>
90763
90764         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90765         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90766         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90767         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90768
90769         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90770         <libintl.h>.
90771         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90772         <libintl.h>.
90773
90774         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90775         * lib/human.c: Include gettext.h instead of <libintl.h>.
90776         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90777         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90778         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90779         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90780         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90781         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90782         (textdomain): Remove definition.
90783         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90784
90785         * lib/long-options.c: Remove include of <libintl.h> and definition of
90786         _.
90787         * lib/same.c: Remove include of <libintl.h> and definition of _.
90788
90789 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90790
90791         * lib/config.charset: A few additions for Solaris.
90792
90793 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90794
90795         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90796         * lib/localcharset.c (locale_charset): Declare as extern "C".
90797
90798 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90799
90800         * lib/config.charset: msdos in uk_UA uses CP1125.
90801
90802 2002-11-04  Bruno Haible  <bruno@clisp.org>
90803
90804         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90805         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90806         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90807         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90808         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90809
90810 2002-11-04  Bruno Haible  <bruno@clisp.org>
90811
90812         * lib/localcharset.c (locale_charset): Don't return an empty string.
90813
90814 2002-11-04  Bruno Haible  <bruno@clisp.org>
90815
90816         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90817         aliases.
90818
90819 2002-11-04  Bruno Haible  <bruno@clisp.org>
90820
90821         * lib/config.charset: Update for newest glibc. Add canonical names
90822         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90823
90824 2002-11-04  Bruno Haible  <bruno@clisp.org>
90825
90826         * lib/config.charset: Add support for NetBSD.
90827
90828 2002-11-04  Bruno Haible  <bruno@clisp.org>
90829
90830         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90831
90832 2002-11-01  Bruno Haible  <bruno@clisp.org>
90833
90834         * configure.in: Add AC_CONFIG_AUX_DIR call.
90835         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90836         test/Makefile.
90837         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90838
90839 2002-09-28  Karl Berry  <karl@gnu.org>
90840
90841         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90842         installed automake until the next release, since changes have been
90843         made.
90844
90845 2002-09-25  Karl Berry  <karl@gnu.org>
90846
90847         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90848         * lib/getopt*: copy from libc/posix.
90849         * lib/gettext.h: copy from gettext.
90850         * lib/.cppi-disable: add strdup.c, gettext.h.
90851
90852 2002-09-25  Karl Berry  <karl@gnu.org>
90853
90854         * config/srclist.txt: enable gettext.h check.
90855         * config/config.{guess,sub}: update from prep.
90856         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90857                 from automake 1.6.3.
90858         See srclist*.
90859
90860 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90861
90862         * regex.c (PATFETCH): Remove the translating fetch.
90863         (PATFETCH_RAW): Rename to PATFETCH.
90864         (set_image_of_range): New fun.
90865         (SET_RANGE_TABLE_WORK_AREA): Use it.
90866         (regex_compile): Don't translate the pattern chars so eagerly.
90867         Only do it when inserting an `exactn' bytecode or when handling
90868         a char-range.
90869         (mutually_exclusive_p): Avoid empty statement.
90870
90871 2002-07-06  Jim Meyering  <meyering@lucent.com>
90872
90873         * m4/README: Don't mention Makefile.am.in.
90874         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90875
90876 2002-07-01  Jim Meyering  <meyering@lucent.com>
90877
90878         * lib/c-stack.c: Include sys/time.h.
90879         From Volker Borchert.
90880
90881 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90882
90883         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90884
90885 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90886
90887         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90888         New macro.  Use it uniformly instead of
90889         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90890         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90891         reported by Vin Shelton.
90892
90893 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90894
90895         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90896         Do not assume SA_SIGINFO behavior.
90897         Bug reported by Jim Meyering on NetBSD 1.5.2.
90898
90899 2002-06-22  Jim Meyering  <meyering@lucent.com>
90900
90901         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90903
90904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90905         now that configure.ac uses AC_GNU_SOURCE.
90906         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90907         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90908
90909         Update to latest tools.  Suggestions from Paul Eggert.
90910         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90911         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90912         * m4/fnmatch.m4: Likewise.
90913         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90914         to AC_HEADER_STDBOOL
90915
90916 2002-06-22  Jim Meyering  <meyering@lucent.com>
90917
90918         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90919         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90920
90921 2002-06-22  Jim Meyering  <meyering@lucent.com>
90922
90923         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90924
90925         * lib/exitfail.c, exitfail.h: Likewise.
90926         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90927
90928         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90929         of fnmatch.h.
90930         (EXTRA_DIST): Add fnmatch_loop.c.
90931         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90932
90933         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90934         * lib/fnmatch.c: Update from diffutils-2.8.2.
90935         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90936         * lib/fnmatch.h: Remove file.
90937
90938 2002-06-21  Jim Meyering  <meyering@lucent.com>
90939
90940         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90941         * m4/mbrtowc.m4: Likewise.
90942
90943         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90944         * m4/mbswidth.m4: Reflect name change:
90945         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90946         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90947
90948         * m4/lib-link.m4: Update from gettext-0.11.2.
90949         * m4/gettext.m4: Likewise.
90950
90951         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90952         From Alfred M. Szmidt.
90953
90954 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90955
90956         * lib/file-type.h: Report an error if neither S_ISREG nor
90957         S_IFREG is defined, instead of using a test specific to glibc
90958         2.2.  This should be safe, since POSIX requires S_ISREG and
90959         Unix Version 7 had S_IFREG.  We don't need to check for
90960         <sys/types.h> since we don't use any symbols that it defines.
90961
90962 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90963
90964         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90965         $@-t, so that each temporary file name is unique and valid in the first
90966         8 characters, for operation under DOS.
90967
90968 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90969
90970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90971
90972 2002-06-15  Jim Meyering  <meyering@lucent.com>
90973
90974         Work even with DJGPP 2.03, which lacks support for symlinks.
90975         From Richard Dawe.
90976         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90977         is defined.
90978         * lib/lchown.c (S_ISLNK): Likewise.
90979
90980 2002-06-15  Jim Meyering  <meyering@lucent.com>
90981
90982         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90983         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90984         have been included before this file.
90985
90986 2002-06-14  Jim Meyering  <meyering@lucent.com>
90987
90988         * lib/file-type.h: Use the version from diffutils-2.8.2.
90989         * lib/file-type.c: Likewise.
90990
90991 2002-06-07  Jim Meyering  <meyering@lucent.com>
90992
90993         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90994         They're needed at least for NetBSD 1.5.2.
90995         ($statxfs_includes): Include those same headers.
90996         ($statxfs_includes): Include sys/vfs.h if available.
90997         ($statxfs_includes): Likewise for sys/statvfs.h.
90998         Check for the following members in both structs statfs and statvfs:
90999         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91000
91001 2002-06-01  Jim Meyering  <meyering@lucent.com>
91002
91003         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91004         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91005
91006 2002-05-28  Jim Meyering  <meyering@lucent.com>
91007
91008         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91009         Reported by Volker Borchert.
91010
91011 2002-05-27  Jim Meyering  <meyering@lucent.com>
91012
91013         Fix a problem seen only on nonconforming systems whereby ls.c's
91014         use of localtime, and then of gettimeofday would cause trouble:
91015         the localtime call used to initialize rpl_gettimeofday's save
91016         mechanism would clobber ls's current local time information so
91017         that in any long listing the first file would always be listed
91018         with date 1970-01-01.  Analysis by Volker Borchert.
91019
91020         * lib/gettimeofday.c (localtime): Undefine.
91021         (rpl_localtime): New function.
91022
91023 2002-05-27  Jim Meyering  <meyering@lucent.com>
91024
91025         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91026         localtime.
91027
91028         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91029         use the replacement function; it wouldn't resolve at link time.
91030         Reported by Volker Borchert.
91031
91032 2002-05-22  Jim Meyering  <meyering@lucent.com>
91033
91034         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91035         file-type.h.
91036         * lib/file-type.h: New file.
91037         * lib/file-type.c (file_type): New file/function.  Extracted from
91038         diffutils.
91039
91040 2002-04-30  Jim Meyering  <meyering@lucent.com>
91041
91042         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91043
91044 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91045
91046         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91047
91048 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91049
91050         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91051         Do not check for alloca.h (no longer used) or stdbool.h (was never
91052         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91053
91054 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91055
91056         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91057
91058 2002-04-29  Jim Meyering  <meyering@lucent.com>
91059
91060         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91061         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91062         Use AC_FUNC_STRNLEN here instead.
91063
91064         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91065         With autoconf-2.53a, it's part of AC_PROG_CC.
91066
91067 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91068
91069         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91070         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91071
91072 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91073
91074         * lib/sig2str.h, lib/sig2str.c: New files.
91075         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91076
91077 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91078
91079         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91080         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91081         of 127, since 64 is the largest conceivable number for ancient
91082         nonstandard hosts.
91083         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91084
91085 2002-04-28  Jim Meyering  <meyering@lucent.com>
91086
91087         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91088
91089 2002-04-24  Jim Meyering  <meyering@lucent.com>
91090
91091         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91092         (jm_PREREQ): Use it.
91093
91094         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91095         mach/mach.h fcntl.h.
91096         Check for this function: setlocale.
91097
91098 2002-04-24  Jim Meyering  <meyering@lucent.com>
91099
91100         * lib/gettext.h: New file, from Gettext.
91101         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91102         (libfetish_a_SOURCES): Add gettext.h.
91103
91104 2002-04-16  Jim Meyering  <meyering@lucent.com>
91105
91106         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91107         ut_pid, ut_id, ut_exit.
91108
91109 2002-04-16  Jim Meyering  <meyering@lucent.com>
91110
91111         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91112         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91113         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91114
91115 2002-04-12  Jim Meyering  <meyering@lucent.com>
91116
91117         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91118         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91119         existence of the getmntinfo function.  Needed for Darwin 5.3.
91120
91121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91122         This is necessary at least on Darwin 5.3.
91123
91124         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91125         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91126         strnlen.o in the library, and that makes some versions of ranlib
91127         object.
91128
91129 2002-04-12  Jim Meyering  <meyering@lucent.com>
91130
91131         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91132
91133 2002-04-09  Jim Meyering  <meyering@lucent.com>
91134
91135         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91136         to be more precise.  Rather than saying we're checking whether the
91137         function `works', say what we're testing.
91138         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91139         Reported by Bruno Haible.
91140
91141 2002-03-10  Jim Meyering  <meyering@lucent.com>
91142
91143         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91144         Suggestion from Santiago Vila.
91145
91146 2002-03-08  Jim Meyering  <meyering@lucent.com>
91147
91148         * lib/rename.c: Mention that this wrapper is needed also on
91149         mips-dec-ultrix4.4 systems.
91150
91151 2002-03-02  Jim Meyering  <meyering@lucent.com>
91152
91153         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91154         not HAVE_CLOCK_SETTIME.
91155
91156 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91157
91158         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91159         Check for clock_settime.
91160
91161 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91162
91163         * lib/nanosleep.h: Rename to....
91164         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91165
91166         * lib/gettime.c: New file.
91167         * lib/settime.c: New file.
91168         * lib/stime.c: Remove.
91169
91170         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91171         timespec.h.  Remove nanosleep.h.
91172
91173 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91174
91175         * m4/acl.m4: New file.
91176         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91177         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91178
91179 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91180
91181         * lib/acl.c, lib/acl.h: New files.
91182         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91183
91184 2002-02-24  Jim Meyering  <meyering@lucent.com>
91185
91186         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91187         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91188         cause trouble.  Reported by Nelson Beebe.
91189
91190 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91191
91192         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91193         compilers that don't know that xalloc_die never returns.
91194
91195 2002-02-20  Jim Meyering  <meyering@lucent.com>
91196
91197         * lib/getdate.c: Regenerate using bison-1.33.
91198
91199 2002-02-17  Jim Meyering  <meyering@lucent.com>
91200
91201         * config/config.guess (main): Don't use `head -1'; it's no longer
91202         portable. Use `sed 1q' instead.
91203
91204 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91205
91206         * m4/codeset.m4: Upgrade to gettext-0.11.
91207         * m4/gettext.m4: Upgrade to gettext-0.11.
91208         * m4/glibc21.m4: Upgrade to gettext-0.11.
91209         * m4/iconv.m4: Upgrade to gettext-0.11.
91210         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91211         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91212         * m4/lib-ld.m4: New file, from gettext-0.11.
91213         * m4/lib-link.m4: New file, from gettext-0.11.
91214         * m4/lib-prefix.m4: New file, from gettext-0.11.
91215         * m4/progtest.m4: Upgrade to gettext-0.11.
91216
91217 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91218
91219         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91220         (jm_PREREQ): Use it.
91221
91222 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91223
91224         * lib/posixver.c, lib/posixver.h: New files.
91225         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91226
91227 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91228             Bruno Haible  <bruno@clisp.org>
91229
91230         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91231         (fwrite_success_callback): New declaration.
91232         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91233         print_unicode_char. Call failure callback instead of error.
91234         (fwrite_success_callback): New function.
91235         (exit_failure_callback): New function.
91236         (fallback_failure_callback): New function.
91237         (print_unicode_char): Call unicode_to_mb.
91238
91239 2002-01-26  Jim Meyering  <meyering@lucent.com>
91240
91241         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91242         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91243
91244 2002-01-26  Jim Meyering  <meyering@lucent.com>
91245
91246         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91247
91248 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91249
91250         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91251
91252 2002-01-22  Jim Meyering  <meyering@lucent.com>
91253
91254         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91255         Otherwise, some versions of automake would omit the rule that makes
91256         Makefile from Makefile.in.
91257
91258 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91259
91260         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91261         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91262         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91263         (memcoll): Set errno to zero if there is no error.
91264
91265         * lib/quotearg.c (quotearg_buffer_restyled):
91266         Fix bug with quoting buffers containing NUL when backslashing escapes.
91267         This bug was exposed by the other changes in this patch.
91268         (quotearg_n_options): New arg ARGSIZE.
91269         All callers changed.
91270         (quoting_options_from_style): New function.
91271         (quotearg_n_style): Use it.
91272         (quotearg_n_style_mem): New function.
91273
91274         * lib/quotearg.h (quotearg_n_style_mem): New function.
91275
91276 2002-01-19  Jim Meyering  <meyering@lucent.com>
91277
91278         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91279         Remove useless quotes: DF_PROG="df".
91280         * m4/strnlen.m4: New file.
91281
91282 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91283
91284         * lib/backupfile.c (ISDIGIT): Comment fix.
91285         * lib/getdate.y (ISDIGIT): Likewise.
91286         * lib/posixtm.c (ISDIGIT, year): Likewise.
91287         * lib/strverscmp.c (ISDIGIT): Likewise.
91288         * lib/userspec.c (ISDIGIT): Likewise.
91289
91290 2002-01-16  Jim Meyering  <meyering@lucent.com>
91291
91292         * lib/getdate.y: Add three semicolons, each just before a closing
91293         brace. Bison (as of version 1.31) no longer papers over that mistake.
91294
91295 2002-01-05  Jim Meyering  <meyering@lucent.com>
91296
91297         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91298
91299 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91300
91301         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91302         not silently exit merely because the output buffer happens to
91303         have nothing pending.
91304
91305 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91306
91307         See the big note in ../ChangeLog.
91308         * lib/human.c (suffixes): Prefer K to k for 1024.
91309         (generate_suffix_backwards): New function.
91310         (human_readable_inexact): Use it.
91311         * lib/xstrtol.c (__xstrtol): If there is no number but there
91312         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91313         Accept 'K' as well as 'k'.
91314
91315 2001-12-15  Jim Meyering  <meyering@lucent.com>
91316
91317         * lib/regex.h (__restrict_arr): Update from libc.
91318
91319         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91320         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91321         (STREQ): Define.
91322
91323 2001-12-14  Jim Meyering  <meyering@lucent.com>
91324
91325         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91326         Suggestion from Bruno Haible.
91327
91328 2001-12-10  Jim Meyering  <meyering@lucent.com>
91329
91330         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91331         xrealloc, Instead, include "xalloc.h".
91332         (initbuffer): Don't cast xmalloc return value to char*.
91333         (readline): Reword comment.
91334         Don't cast xrealloc return value to char*
91335         Return NULL, not 0.
91336
91337 2001-12-09  Jim Meyering  <meyering@lucent.com>
91338
91339         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91340         about `signed and unsigned type in conditional expression'.
91341         * lib/posixtm.c (posix_time_parse): Likewise.
91342
91343         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91344
91345         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91346         to avoid a pedantic warning.
91347
91348         * lib/getstr.c: Don't include assert.h.
91349         (getstr): Remove warning-evoking assertions.
91350         Return -1 if offset parameter is out of bounds.
91351         Change the type of a local from int to size_t.
91352
91353         * lib/strftime.c (my_strftime_localtime_r): Include this function
91354         definition in the `#if ! HAVE_TM_GMTOFF' block.
91355
91356         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91357         Include xalloc.h instead.
91358
91359 2001-12-02  Jim Meyering  <meyering@lucent.com>
91360
91361         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91362         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91363         included.
91364
91365         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91366         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91367
91368 2001-11-30  Akim Demaille  <akim@epita.fr>
91369
91370         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91371         before being defined.
91372
91373 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91374
91375         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91376         First arg is int, not unsigned.
91377         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91378         (SIZE_MAX, UINT_MAX): New macros.
91379         (quotearg_n_options): Abort if N is negative.
91380         Avoid overflow check on hosts where size_t is 64 bits and int
91381         is 32 bits, as overflow is impossible there.
91382         Fix off-by-one typo that caused unnecessary reallocation.
91383
91384 2001-11-27  Jim Meyering  <meyering@lucent.com>
91385
91386         * lib/tempname.c: Merge with version from libc.
91387         * lib/regex.c: Likewise.
91388
91389         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91390         systems for which STDC_HEADERS is 0, it was not included, resulting in
91391         a warning about an integer-to-pointer conversion problem with getenv.
91392         Reported by Volker Borchert.
91393
91394 2001-11-26  Jim Meyering  <meyering@lucent.com>
91395
91396         * lib/gtod.h: Remove file.
91397         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91398         * lib/gettimeofday.c: Don't include gtod.h.
91399         (GTOD_init): Remove function.
91400         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91401         Suggestion from Volker Borchert.
91402
91403 2001-11-23  Jim Meyering  <meyering@lucent.com>
91404
91405         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91406         it.
91407         * lib/hash.c (struct hash_table): Define it here instead.
91408
91409 2001-11-22  Jim Meyering  <meyering@lucent.com>
91410
91411         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91412
91413 2001-11-20  Jim Meyering  <meyering@lucent.com>
91414
91415         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91416         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91417
91418 2001-11-19  Jim Meyering  <meyering@lucent.com>
91419
91420         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91421         directory.  Use "conftestXXXXXX" as the template.
91422         Suggestion from Paul Eggert.
91423
91424         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91425         immediately, so the test doesn't mistakenly hit the max-open-files
91426         limit.
91427
91428 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91429
91430         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91431         (TEMPORARIES): New macro.
91432         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91433         removes an artificial limitation (e.g. HP-UX 10.20, where
91434         TMP_MAX is 17576).
91435
91436 2001-11-18  Jim Meyering  <meyering@lucent.com>
91437
91438         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91439
91440 2001-11-18  Jim Meyering  <meyering@lucent.com>
91441
91442         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91443         on SunOS 4.
91444
91445         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91446         files will be created before anything else.
91447
91448 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91449
91450         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91451         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91452
91453 2001-11-17  Jim Meyering  <meyering@lucent.com>
91454
91455         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91456         Prompted by a report from Bob Proulx.
91457
91458         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91459         Instead, require UTILS_FUNC_MKSTEMP.
91460
91461 2001-11-17  Jim Meyering  <meyering@lucent.com>
91462
91463         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91464         Now, that's done as part of AC_FUNC_STRTOD.
91465
91466 2001-11-17  Jim Meyering  <meyering@lucent.com>
91467
91468         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91469         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91470         rather than group writable.  Patch by Juan F. Codagnone.
91471
91472         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91473         xrealloc, Instead, include "xalloc.h".
91474
91475         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91476         Remove explicit declarations of xmalloc, xrealloc,
91477         and xstrdup.  Instead, include "xalloc.h".
91478
91479         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91480         unlocked-io.h.
91481         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91482         Likewise.
91483         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91484
91485         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91486         Reported by Padraig Brady.
91487
91488         * lib/mkstemp.c: #undef mkstemp.
91489         Include config.h.
91490         (rpl_mkstemp): Rename from mkstemp.
91491         Protoize.
91492
91493 2001-11-16  Jim Meyering  <meyering@lucent.com>
91494
91495         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91496         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91497         determine the amount of total physical memory, use pstat_getstatic.
91498         HPUX-11 doesn't define _SC_PHYS_PAGES.
91499         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91500         If sysconf couldn't be used to determine the amount of available
91501         physical memory, use both pstat_getstatic and pstat_getdynamic.
91502         Based on a patch from Bob Proulx.
91503
91504 2001-11-10  Jim Meyering  <meyering@lucent.com>
91505
91506         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91507         (jm_PREREQ): Use it.
91508
91509 2001-11-09  Jim Meyering  <meyering@lucent.com>
91510
91511         * m4/jm-macros.m4: Require autoconf-2.52f.
91512         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91513         Use these AC_-prefixed names, not the AM_-prefixed ones.
91514
91515         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91516
91517 2001-11-05  Jim Meyering  <meyering@lucent.com>
91518
91519         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91520
91521 2001-11-04  Jim Meyering  <meyering@lucent.com>
91522
91523         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91524         $DEFS.
91525
91526 2001-11-03  Jim Meyering  <meyering@lucent.com>
91527
91528         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91529         of AC_DEFUN.
91530
91531         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91532         know the name of the variable in the macro definition.
91533
91534 2001-11-03  Jim Meyering  <meyering@lucent.com>
91535
91536         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91537         in argmatch_to_argument call.
91538
91539         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91540         argument.
91541
91542         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91543         e.g., a fault due to an attempt to free a NULL pointer.
91544
91545 2001-11-01  Jim Meyering  <meyering@lucent.com>
91546
91547         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91548         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91549
91550 2001-11-01  Jim Meyering  <meyering@lucent.com>
91551
91552         * lib/dirfd.c, lib/dirfd.h: New files.
91553         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91554
91555         * lib/hash.c (hash_print) [TESTING]: Clean up.
91556
91557 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91558
91559         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91560         to avoid a warning if -Wall.
91561
91562 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91563
91564         * README: New file
91565         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91566         (per RMS's instructions, this is now the canonical source)
91567         * lgpl/, gpl/: New directories.
91568
91569 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91570
91571         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91572
91573 2001-10-21  Jim Meyering  <meyering@lucent.com>
91574
91575         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91576         this code would end up calling gettext even in packages built
91577         with --disable-nls.
91578         * lib/getopt.c (_): Likewise.
91579         * lib/regex.c (_): Likewise.
91580
91581 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91582
91583         * m4/error.m4 (jm_PREREQ_ERROR):
91584         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91585         AC_FUNC_STRERROR_R does that.
91586         Check for strerror declaration.
91587
91588         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91589         are supposed to have them these days.
91590         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91591         Merge changes from latest Autoconf CVS.
91592         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91593         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91594         POSIX decided to standardize on the int flavor of strerror_r.
91595
91596 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91597
91598         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91599         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91600         Use strerror_r that is only a macro, even if it is not a function.
91601         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91602         (private_strerror): Use prototypes, not old-style function definition.
91603         (print_errno_message): New function.
91604         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91605         char*-flavored one.
91606         (error_tail, error, error_at_line): Use it.
91607
91608 2001-10-11  Jim Meyering  <meyering@lucent.com>
91609
91610         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91611         and quote_n (1, ... to avoid clobbering a buffer.
91612
91613 2001-10-05  Jim Meyering  <meyering@lucent.com>
91614
91615         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91616         hash-pjw.h.
91617         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91618         * lib/hash-pjw.h: New file.
91619
91620 2001-09-30  Jim Meyering  <meyering@lucent.com>
91621
91622         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91623         `struct fsstat' has the `f_fstypename' member.
91624         Use that to define FS_TYPE, which is now used to make
91625         the getfsstat link test tighter.
91626
91627 2001-09-30  Jim Meyering  <meyering@lucent.com>
91628
91629         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91630         Include <sys/ucred.h>, for Apple Darwin.
91631         Include sys/mount.h and sys/fs_types.h only if available.
91632         (FS_TYPE): Define.
91633         (read_filesystem_list): Use FS_TYPE.
91634
91635 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91636
91637         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91638         a boolean context.
91639
91640 2001-09-29  Jim Meyering  <meyering@lucent.com>
91641
91642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91643         [one-argument getmntent function]): Include stdio.h before mntent.h.
91644         SunOS 4.1.x needs it for the declaration of `FILE'.
91645         Patch by Volker Borchert.
91646
91647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91648         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91649         sys/fs_types.h, and make the link-test for getfsstat guard #include
91650         directives with appropriate #if HAVE_*_H tests so that we can
91651         detect getfsstat on Apple Darwin1.3.7 systems.
91652         Reported by Nelson Beebe.
91653         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91654
91655 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91656
91657         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91658         #defines strtoimax.  Also treat the other strto* functions
91659         like strtoimax.
91660
91661         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91662         Check for strtoul and strtoumax,
91663         as those declarations are made even in the signed case.
91664         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91665         Likewise, for strtol and strtoimax.
91666
91667 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91668
91669         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91670         #defines strtoimax.  Also treat the other strto* functions
91671         like strtoimax.
91672
91673         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91674         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91675         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91676
91677 2001-09-26  Jim Meyering  <meyering@lucent.com>
91678
91679         Most macros in unlocked-io.h had the wrong number of arguments.
91680         * lib/gen-uio: New script.
91681         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91682         * lib/unlocked-io.hin: Remove file.
91683         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91684         rather than trying to embed it here.
91685         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91686         Reported by Padraig Brady.
91687
91688 2001-09-25  Volker Borchert  <bt@teknon.de>
91689
91690         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91691         `result'.
91692
91693 2001-09-24  Jim Meyering  <meyering@lucent.com>
91694
91695         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91696
91697 2001-09-23  Jim Meyering  <meyering@lucent.com>
91698
91699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91700         instead of the mere test for existence of mntent.h.  The latter
91701         would get a false-positive on AIX 3.4 systems.
91702         In the outer getmntent if-block, don't die if neither of the getmntent
91703         tests succeeds.  Instead, just fall through and continue with the
91704         remaining tests.
91705
91706 2001-09-23  Jim Meyering  <meyering@lucent.com>
91707
91708         * lib/mountlist.c: Remove useless parentheses in #if directives.
91709         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91710         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91711
91712 2001-09-22  Jim Meyering  <meyering@lucent.com>
91713
91714         * m4/gettext.m4: New file.  From gettext.
91715         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91716         * m4/progtest.m4: Likewise
91717         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91718         * m4/glibc21.m4: Likewise.
91719
91720         * m4/libintl.m4: Remove.  No longer used.
91721
91722 2001-09-22  Jim Meyering  <meyering@lucent.com>
91723
91724         * lib/localcharset.c: Update from latest gettext.
91725         * lib/config.charset: Likewise.
91726
91727 2001-09-20  Jim Meyering  <meyering@lucent.com>
91728
91729         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91730         strtoimax.
91731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91732         strtoumax.
91733
91734 2001-09-20  Jim Meyering  <meyering@lucent.com>
91735
91736         * lib/xstrtol.c (strtoimax): Guard declaration with
91737         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91738         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91739         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91740         (strtoumax): Likewise, for completeness (it wasn't necessary).
91741
91742 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91743
91744         * lib/strtoimax.c (HAVE_LONG_LONG):
91745         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91746         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91747         to work around bug in IBM C compiler.
91748
91749 2001-09-17  Jim Meyering  <meyering@lucent.com>
91750
91751         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91752         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91753         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91754         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91755         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91756         whenever the right hand side need not be expanded by the shell.
91757
91758 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91759
91760         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91761         library.  It's not correct, as some older glibcs are buggy.
91762         fnmatch wasn't fixed until glibc 2.2.
91763
91764         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91765         special shell magic here.
91766
91767 2001-09-16  Jim Meyering  <meyering@lucent.com>
91768
91769         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91770         * m4/jm-macros.m4: Require it.
91771
91772 2001-09-16  Jim Meyering  <meyering@lucent.com>
91773
91774         * lib/mkdir.c: New file.
91775
91776 2001-09-15  Jim Meyering  <meyering@lucent.com>
91777
91778         * m4/jm-macros.m4: Check for help2man.
91779
91780 2001-09-11  Jim Meyering  <meyering@lucent.com>
91781
91782         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91783         The body, by Paul Eggert, was moved here from configure.in.
91784         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91785
91786 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91787
91788         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91789         (jm_PREREQ): Use it.
91790
91791 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91792
91793         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91794         Use ssize_t, not int, to store result of readlink.
91795         Check for ssize_t overflow as well as size_t overflow,
91796         as POSIX says the result of readlink is implementation-defined
91797         when ssize_t overflows.
91798         Remove unnecessary cast to char*.
91799         Use free+malloc instead of realloc, as the storage doesn't need
91800         to be preserved and it's clearer and can be more efficient that way.
91801         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91802         * lib/xreadlink.h (xreadlink): Update prototype.
91803
91804 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91805
91806         * lib/xgetcwd.c: Revert some of the previous change; intead,
91807         fix the HAVE_GETCWD_NULL code to behave more like the
91808         !HAVE_GETCWD_NULL code used to.
91809
91810         Include "xalloc.h".
91811         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91812         invoke xalloc_die.
91813
91814 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91815
91816         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91817         sys/param.h, as pathmax.h includes them.
91818
91819 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91820
91821         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91822         (jm_PREREQ_XGETCWD): New macro.
91823
91824         * m4/getcwd.m4: New file.
91825
91826 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91827
91828         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91829         like the HAVE_GETCWD_NULL code.
91830         Include pathmax.h if not HAVE_GETCWD.
91831         Do not include xalloc.h.
91832         (INITIAL_BUFFER_SIZE): New symbol.
91833         Do not use xmalloc / xrealloc, since the caller is responsible for
91834         handling errors.  Preserve errno around `free' during failure.
91835         Do not overrun buffer when using getwd.
91836
91837 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91838
91839         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91840         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91841         getcwd (NULL, 0).
91842
91843 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91844
91845         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91846         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91847         spotted by Jim Meyering.
91848
91849 2001-09-03  Jim Meyering  <meyering@lucent.com>
91850
91851         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91852         failure.
91853
91854 2001-09-02  Jim Meyering  <meyering@lucent.com>
91855
91856         * lib/error.c: Update from GNU libc.
91857
91858 2001-09-01  Jim Meyering  <meyering@lucent.com>
91859
91860         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91861         Used by df.
91862
91863 2001-09-01  Jim Meyering  <meyering@lucent.com>
91864
91865         * lib/xreadlink.c: New file.
91866         * lib/xreadlink.h: New file.
91867         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91868         xreadlink.h.
91869
91870         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91871         doesn't conflict with sparc Solaris 7's definition in
91872         /usr/include/sys/int_types.h.
91873
91874         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91875         files.
91876         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91877         and strncasecmp as r-values.  Unixware didn't have declarations.
91878
91879 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91880
91881         * lib/xstrtol.h: Add copyright notice.
91882         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91883         LONGINT_INVALID_SUFFIX_CHAR.
91884
91885 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91886
91887         * lib/xstrtol.c (strtoimax): New decl.
91888
91889 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91890
91891         * lib/xgetcwd.c: Don't include pathmax.h.
91892         Include stdlib.h and unistd.h if available.
91893         Include xalloc.h.
91894         (xmalloc, xstrdup, free): Remove decls.
91895         (xgetcwd): Don't assume sizes fit in unsigned.
91896         Check for overflow when computing sizes.
91897         Simplify reallocation code.
91898
91899 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91900
91901         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91902         a directory's st_size can have an arbitrary value, so the old
91903         usage could waste an arbitrary amount of memory.  All uses
91904         changed.
91905         * lib/savedir.h: Update prototype.
91906
91907 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91908
91909         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91910
91911         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91912         old strtoimax.c.
91913
91914         Also, make the following further changes to make this file's
91915         configuration more similar to that of strtol.c:
91916         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91917         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91918         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91919         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91920         changed to signed values.
91921
91922         And make the following changes as well:
91923         Fix copyright notice, as 1999 was missing.
91924         (verify): New macro.
91925         (strtoimax): Check sizes at compile-time, not run-time.
91926         Prefer strtol to strtoll if both work.
91927         (main): Remove; it was not that useful and was a pain to maintain.
91928
91929         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91930
91931 2001-08-31  Jim Meyering  <meyering@lucent.com>
91932
91933         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91934         Use an initial, malloc'd, buffer of length 128 rather than
91935         a statically allocated one of length 1024.
91936
91937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91938
91939         Simplify code, partly by assuming autoconf 2.52 semantics.
91940
91941         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91942
91943         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91944         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91945         All uses removed.
91946         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91947         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91948         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91949         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91950         jm_AC_HEADER_INTTYPES_H.
91951         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91952
91953         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91954
91955         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91956         Quote first arg of AC_DEFUN.
91957         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91958         since they are needed to parse the include file even if we need
91959         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91961         but with opposite signedness.
91962
91963 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91964
91965         Merge 'exclude' changes from tar 1.13.22.
91966         This fixes one or two unlikely storage allocation overflow bugs,
91967         but doesn't change user-visible behavior otherwise.
91968
91969 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91970
91971         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91972         (jm_PREREQ_EXCLUDE): New macro.
91973
91974 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91975
91976         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91977         tm to be declared.
91978
91979 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91980
91981         * lib/hash.c: Remove '2001' from copyright notice.
91982
91983 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91984
91985         * lib/full-write.h: New file.
91986         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91987         * lib/full-write.c: Correct credits, as cccp.c no longer
91988         exists and anyway it was so heavily changed from the old cccp
91989         code as to be unrecognizable.  Include full-write.h.
91990         (full_write): Return size_t, with short writes meaning failure.
91991         All callers changed.  This fixes a bug with large buffers
91992         on 64-bit hosts.
91993         * lib/utime.c: Include full-write.h.
91994
91995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91996
91997         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91998         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91999         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92000         Include if available.
92001         (<xalloc.h>): Include
92002         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92003         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92004         collide with FNM macros.
92005         (struct patopts): New struct.
92006         (struct exclude): Use it, as exclude patterns now come with options.
92007         (new_exclude): Support above changes.
92008         (new_exclude, add_exclude_file):
92009         Initial size must now be a power of two to simplify overflow checking.
92010         (free_exclude, fnmatch_no_wildcards): New function.
92011         (excluded_filename): No longer requires options arg, as the options
92012         are determined by add_exclude.  Now returns bool, not int.
92013         (excluded_filename, add_exclude):
92014         Add support for the fancy new exclusion options.
92015         (add_exclude, add_exclude_file): Now takes int options arg.
92016         Check for arithmetic overflow when computing sizes.
92017         (add_exclude_file): xrealloc might modify errno, so don't
92018         realloc until after errno might be used.
92019
92020         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92021         New macros.
92022         (free_exclude): New decl.
92023         (add_exclude, add_exclude_file): Now takes int options arg.
92024         (excluded_filename): No longer requires options arg, as the options
92025         are determined by add_exclude.  Now returns bool, not int.
92026
92027 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92028
92029         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92030
92031 2001-08-27  Jim Meyering  <meyering@lucent.com>
92032
92033         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92034
92035         * lib/version-etc.c (N_): Remove definition.
92036         Revert most of last change.
92037         Instead, simply don't mark the `Copyright...' string for translation.
92038         Based on advice from Paul Eggert.
92039
92040         * lib/strtoxmax.c: Tweak comment.
92041
92042 2001-08-26  Jim Meyering  <meyering@lucent.com>
92043
92044         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92045
92046         * m4/xstrtoimax.m4: New file.
92047         * m4/xstrtoumax.m4: Add comments explaining why we
92048         AC_REPLACE_FUNCS(strtol).
92049
92050 2001-08-26  Jim Meyering  <meyering@lucent.com>
92051
92052         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92053         of copyright with `%s' so translators don't get an untranslated
92054         message in 2002.
92055         (COPYRIGHT_YEAR): Define.
92056         (version_etc): Use fprintf rather than fputs.
92057         Suggestion from Ulrich Drepper.
92058
92059         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92060
92061         * lib/strtoll.c: New file, from GNU libc.
92062         * lib/xstrtoimax.c: New file.
92063
92064         * lib/xstrtol.h: Add xstrtoimax.
92065         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92066         * lib/strtoimax.c: New file.  Likewise, but first define
92067         STRTOUXMAX_SIGNED.
92068
92069         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92070         ...
92071         * lib/strtoxmax.c: ... then renamed to this.
92072
92073 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92074
92075         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92076         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92077         (jm_AC_TYPE_INTMAX_T): New macro.
92078         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92079
92080         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92081
92082         * m4/longlong.m4: Renamed from ulonglong.m4.
92083         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92084         * m4/uintmax_t.m4: Removed.
92085
92086 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92087
92088         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92089         Port to Solaris 8, where 'sed' requires a space after the 'r'
92090         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92091         Redirect output to $tmp just once.
92092
92093 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92094
92095         * lib/addext.c (<errno.h>): Include.
92096         (errno): Declare if not defined.
92097         (addext): Work correctly when pathconf returns -1 and leaves
92098         errno alone because there is no limit.  Also, work even if
92099         pathconf returns a value greater than SIZE_MAX.
92100
92101 2001-08-12  Jim Meyering  <meyering@lucent.com>
92102
92103         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92104         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92105         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92106         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92107         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92108         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92109         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92110         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92111         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92112         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92113         utime.m4, utimes.m4, xstrtoumax.m4:
92114         Quote the first argument in each use of AC_DEFUN.
92115
92116 2001-08-12  Jim Meyering  <meyering@lucent.com>
92117
92118         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92119         Simply `return getcwd (NULL, 0);'.
92120         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92121         Use 1300 as initial value for length, not PATH_MAX.
92122
92123         * lib/pathmax.h: Clean up cpp syntax.
92124
92125 2001-08-12  Jim Meyering  <meyering@lucent.com>
92126
92127         * lib/gettimeofday.c: New file.
92128         * lib/gtod.h: New file.
92129         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92130
92131 2001-08-05  Jim Meyering  <meyering@lucent.com>
92132
92133         * m4/jm-macros.m4: Require autoconf-2.52.
92134
92135 2001-08-04  Jim Meyering  <meyering@lucent.com>
92136
92137         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92138         stmt, to get in sync with glibc.
92139
92140 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92141
92142         The following changes are from gettext 0.10.39 as maintained by
92143         Bruno Haible.
92144
92145         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92146         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92147         with inverted sense.  All uses changed.
92148
92149         * lib/mbswidth.c: Don't include <limits.h>.
92150         Include <stdlib.h> and <string.h> unconditionally.
92151         (iswcntrl, mbsinit, ISCNTRL): New macros.
92152         (mbsnwidth): Use K&R style function declarations.
92153         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92154         can optimize it when MB_CUR_MAX == 1.
92155         The width of control characters is zero, not 1.
92156
92157 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92158
92159         The following changes are from gettext 0.10.39 as maintained by
92160         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92161
92162         * m4/codeset.m4: Upgrade to serial AM1.
92163         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92164         all uses changed.  Quote first arg of AC_DEFUN.
92165         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92166
92167         * m4/iconv.m4: Upgrade to serial AM2.
92168         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92169         Add --with-libconv-prefix.
92170         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92171         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92172         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92173         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92174         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92175
92176         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92177         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92178         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92179         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92180         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92181         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92182         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92183         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92184         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92185
92186         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92187         string.h any more.
92188
92189         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92190         not the default value.
92191
92192         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92193         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92194         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92195         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92196         Also check for iswcntrl, used for wcwidth fallback.
92197         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92198         to Autoconf 2.13.
92199
92200 2001-08-03  Jim Meyering  <meyering@lucent.com>
92201
92202         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92203         as it was in the original.  Reported by Paul Eggert.
92204
92205 2001-07-16  Jim Meyering  <meyering@lucent.com>
92206
92207         * m4/gettimeofday.m4: New file.
92208         Prompted by a report from Bernhard Baehr.
92209
92210 2001-07-15  Jim Meyering  <meyering@lucent.com>
92211
92212         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92213         stuff. Now it's in ../Makefile.cfg.
92214
92215 2001-07-15  Jim Meyering  <meyering@lucent.com>
92216
92217         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92218         (BUILT_SOURCES): Add unlocked-io.h.
92219         (io_functions): Define.
92220         (unlocked-io.h): New rule.
92221         (DISTCLEANFILES): Add unlocked-io.h.
92222         (all-local): Depend on unlocked-io.h, to ensure it is created.
92223
92224         * lib/unlocked-io.hin: New file
92225
92226         * lib/regex.c: Update from glibc.
92227
92228 2001-07-05  Jim Meyering  <meyering@lucent.com>
92229
92230         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92231         recommendation.
92232         (libfetish_a_SOURCES): Put all .h files here instead.
92233         Remove a thus-exposed (better checks in automake) duplicate and
92234         two unnecessary .h files.
92235
92236 2001-07-04  Jim Meyering  <meyering@lucent.com>
92237
92238         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92239         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92240         distcheck failure.
92241
92242 2001-07-02  Jim Meyering  <meyering@lucent.com>
92243
92244         The following changes were prompted by suggestions from Bruno Haible.
92245
92246         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92247         is now generated.
92248         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92249         definition of EXTRA_DIST.
92250         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92251         ensure that the generated file is created/updated whenever the list
92252         of $(unlocked_functions) is changed.
92253         (jm-glibc-io.m4): New rule.
92254         (unlocked-io.h): New rule -- currently unused.
92255
92256 2001-06-24  Jim Meyering  <meyering@lucent.com>
92257
92258         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92259         unmatched right bracket, rather than kludging it with an extra,
92260         falsely-matching quote in a comment.  Patch by Akim Demaille.
92261
92262 2001-06-11  Jim Meyering  <meyering@lucent.com>
92263
92264         * lib/regex.c: Update from GNU libc.
92265
92266 2001-05-27  Jim Meyering  <meyering@lucent.com>
92267
92268         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92269         Check for ut_type in struct utmp.
92270
92271 2001-05-27  Jim Meyering  <meyering@lucent.com>
92272
92273         * lib/readutmp.h (UT_TYPE): Define.
92274
92275 2001-05-24  Jim Meyering  <meyering@lucent.com>
92276
92277         * lib/argmatch.c: Include "quote.h".
92278         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92279         quote function.  Reported by Göran Uddeborg.
92280
92281 2001-05-22  Jim Meyering  <meyering@lucent.com>
92282
92283         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92284         now that we use the package-supplied version unconditionally.
92285         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92286
92287 2001-05-21  Jim Meyering  <meyering@lucent.com>
92288
92289         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92290         shell syntax errors.
92291
92292 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92293
92294         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92295
92296 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92297
92298         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92299         Don't bother to check library strftime, since
92300         we'll be using our own my_strftime function anyway.
92301         Define my_strftime instead of strftime.
92302
92303 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92304
92305         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92306         which is not yet declared.
92307
92308 2001-05-15  Jim Meyering  <meyering@lucent.com>
92309
92310         * m4/regex.m4: Use proper quoting so brackets appear in the test
92311         program.
92312         Reported by, and with help from, Bruno Haible.
92313
92314 2001-05-13  Jim Meyering  <meyering@lucent.com>
92315
92316         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92317         undefined.
92318
92319 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92320
92321         dirname code cleanup.  base_name now behaves more compatibly
92322         with POSIX basename when given file names that have trailing
92323         slashes, and similarly for dir_name.  Add new primitives
92324         base_len and dir_len.  Put the directory-name-related decls
92325         into dirname.h.
92326
92327         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92328         * lib/backupfile.c (base_name): Likewise.
92329         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92330         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92331         * lib/makepath.c (strip_trailing_slashes): Likewise.
92332         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92333         ISSLASH): Likewise.
92334         * lib/rename.c (strip_trailing_slashes): Likewise.
92335         * lib/same.c (base_name): Likewise.
92336         * lib/stripslash.c (ISSLASH): Likewise.
92337
92338         * lib/addext.c: Include <dirname.h> after size_t is defined.
92339         * lib/backupfile.c: Likewise.
92340
92341         * lib/addext.c (addext): Use base_len to trim redundant
92342         trailing slashes instead of doing it ourselves.
92343         But do not trim the last slash if it is not redundant.
92344
92345         * lib/backupfile.c (find_backup_file_name,
92346         max_backup_version): Use base_len instead of rolling it ourselves.
92347         Handle the case of "" and (on DOS) "C:" correctly.
92348
92349         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92350         needed. Include <string.h>, <dirname.h>.
92351         (base_name): Allow file names ending in slashes, other than names
92352         that are all slashes.  In this case, return the basename followed
92353         by the slashes.  This is more general, and can be used in places
92354         where the original base_name purposely had an assertion failure.
92355         (base_len): New function.
92356
92357         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92358         Do not include <assert.h>; no longer needed.
92359         Include xalloc.h.
92360         (memrchr): Remove decl.
92361         (dir_name_r): Remove.
92362         (dir_len): Renamed from dirlen.  All callers changed.
92363         Rewrite in terms of base_name, for simplicity and consistency.
92364         (dir_name): Never return NULL.  All callers changed.
92365         Do not include <stdlib.h> in test program; no longer needed.
92366         return 0; is fine for test program.
92367
92368         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92369         New macros.
92370         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92371
92372         * lib/path-concat.c (path_concat): Use base_len to compute
92373         base length, not strlen; this means we cannot rely on memcpy
92374         to null-terminate.
92375
92376         * lib/same.c (STREQ): Remove.
92377         (same_name): Handle the case where the basename ends in trailing '/'.
92378
92379         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92380         a slash was stripped.  Do not strip the last slash after a
92381         file system prefix.
92382
92383 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92384
92385         * lib/Makefile.am (libfetish_a_SOURCES):
92386         Add strftime.c, since we now compile it on all hosts.
92387
92388         * lib/strftime.c (my_strftime):
92389         Define to nstrftime if emacs, but only if my_strftime is not defined.
92390         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92391         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92392         Add one more extra argument: a nanoseconds value.
92393         All uses changed.
92394         (ns): New macro.
92395         (my_strftime function): Add %N format.
92396         (emacs_strftimeu): Renamed from emacs_strftime,
92397         with extra ut argument.
92398
92399 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92400
92401         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92402
92403 2001-04-21  Jim Meyering  <meyering@lucent.com>
92404
92405         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92406         doesn't interfere.
92407
92408 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92409
92410         * m4/ftruncate.m4: Check for chsize.
92411         Link with ftruncate.o unconditionally if ftruncate is missing.
92412         This was required when cross-compiling to i586-mingw32msvc.
92413
92414 2001-04-08  Jim Meyering  <meyering@lucent.com>
92415
92416         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92417         recomputed; that's necessary when the offset spans a DST transition.
92418         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92419
92420 2001-04-02  Jim Meyering  <meyering@lucent.com>
92421
92422         * lib/regex.h, regex.c: Update from GNU libc.
92423
92424 2001-03-24  Jim Meyering  <meyering@lucent.com>
92425
92426         * m4/jm-macros.m4: Require autoconf-2.49d.
92427
92428 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92429
92430         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92431
92432 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92433
92434         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92435
92436 2001-03-17  Jim Meyering  <meyering@lucent.com>
92437
92438         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92439         now that the version in autoconf is equivalent.
92440         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92441
92442         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92443         Suggestion from Akim Demaille.
92444
92445         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92446         (jm_PREREQ_TEMPNAME): New function.
92447
92448 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92449
92450         * lib/tempname.c (uint64_t): Define to uintmax_t if
92451         not defined, and if UINT64_MAX is not defined.
92452         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92453         Reported by John David Anglin.
92454
92455 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92456
92457         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92458         resolve alias if codeset is empty.
92459         * lib/config.charset (BeOS): Use wildcard syntax.
92460
92461 2001-03-13  Jim Meyering  <meyering@lucent.com>
92462
92463         * lib/path-concat.c (path_concat)
92464         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92465         concatenating e.g., `C:' and `foo'.
92466         From Bruno Haible.
92467
92468 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92469
92470         * lib/localcharset.c (locale_charset): Don't use
92471         setlocale(LC_CTYPE,NULL). Don't return NULL.
92472         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92473
92474 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92475
92476         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92477         support for DOS/DJGPP.
92478
92479 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92480
92481         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92482         lacks mkstemp.  Compile our own tempname.c if we compile our own
92483         mkstemp.c, as mkstemp relies on tempname.
92484
92485 2001-03-01  Jim Meyering  <meyering@lucent.com>
92486
92487         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92488         AH_VERBATIM really does output its argument verbatim.
92489
92490 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92491
92492         * lib/Makefile.am (libfetish_a_SOURCES):
92493         Add dup-safer.c, fopen-safer.c.
92494         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92495
92496         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92497         * lib/unistd-safer.h: New files.
92498
92499 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92500
92501         The mkstemp replacement is taken from glibc 2.2.2, with some
92502         portability fixes for use outside glibc, as follows:
92503
92504         * lib/tempname.c (struct_stat64): New macro.
92505         (direxists, __gen_tempname): Use it.
92506         This avoids a portability problem with Solaris 8.
92507
92508         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92509         (<stddef.h>, <stdint.h>, <string.h>):
92510         Include only if STDC_HEADERS || _LIBC.
92511         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92512         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92513         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92514         (__set_errno): Define this macro if <errno.h> doesn't.
92515         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92516         Define these macros if <stdio.h> doesn't.
92517         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92518         Define these macros if <sys/stat.h>
92519         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92520         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92521         __xstat64): Define if not _LIBC.
92522         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92523         (__gen_tempname): Invoke gettimeofday only if
92524         HAVE_GETTIMEOFDAY || _LIBC;
92525         otherwise, fall back on plain "time".
92526         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92527
92528         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92529
92530         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92531
92532 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92533
92534         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92535
92536 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92537
92538         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92539         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92540         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92541         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92542
92543 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92544
92545         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92546         Remove workaround macros for hosts that have mbrtowc but not
92547         mbstate_t, as we now insist on proper declarations for both
92548         before using mbrtowc.
92549
92550 2001-02-17  Jim Meyering  <meyering@lucent.com>
92551
92552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92553         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92554         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92555         UnixWare 7.1.1.
92556
92557         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92558         rather than AC_CACHE_VAL.
92559
92560 2001-02-17  Jim Meyering  <meyering@lucent.com>
92561
92562         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92563         around included file name.
92564
92565         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92566
92567         * lib/strftime.c: Update from GNU libc (the only changes were to
92568         comments).
92569
92570 2001-02-17  Jim Meyering  <meyering@lucent.com>
92571
92572         * lib/regex.c: Update from libc.
92573
92574 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92575
92576         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92577         clash.
92578
92579 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92580
92581         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92582         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92583         Reported by Mark Hounschell via Paul Eggert.
92584
92585 2001-02-07  Jim Meyering  <meyering@lucent.com>
92586
92587         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92588
92589 2001-02-05  Jim Meyering  <meyering@lucent.com>
92590
92591         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92592         it includes the patch required for `large file' support with at least
92593         HP-UX's 10.20 /bin/cc.
92594
92595 2001-02-03  Jim Meyering  <meyering@lucent.com>
92596
92597         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92598         AS_IF, now that it works once again (mysteriously).
92599         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92600
92601 2001-01-30  Jim Meyering  <meyering@lucent.com>
92602
92603         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92604         * m4/chown.m4: Rename conftestchown to conftest.chown.
92605         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92606         s/conftestdir2/conftest.d2/.
92607         * m4/utimes.m4: s/conftestdata/conftest.data/
92608         Inspired by Pavel Roskin's change in autoconf.
92609
92610 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92611
92612         * lib/config.charset: Update for FreeBSD 4.2.
92613
92614 2001-01-27  Jim Meyering  <meyering@lucent.com>
92615
92616         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92617         a use of AS_IF.
92618         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92619
92620 2001-01-26  Jim Meyering  <meyering@lucent.com>
92621
92622         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92623         quotearg.c includes it.
92624
92625 2001-01-26  Jim Meyering  <meyering@lucent.com>
92626
92627         * lib/quotearg.c: Include stddef.h.
92628         * lib/quote.c: Include stddef.h.
92629         Reported by Axel Kittenberger.
92630
92631         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92632         line in double quotes so that it evokes a better diagnostic.
92633         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92634         Reported by Axel Kittenberger.
92635
92636 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92637
92638         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92639         as if it was a `charset'.
92640
92641 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92642
92643         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92644         has const.
92645
92646 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92647
92648         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92649         to avoid a warning.  Add back 'const' to inptr.
92650
92651 2001-01-20  Jim Meyering  <meyering@lucent.com>
92652
92653         Be sure that headers are checked before used in code compiled
92654         for the type checks.
92655         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92656         In place of that, invoke jm_CHECK_ALL_TYPES.
92657         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92658         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92659         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92660         The check for ssize_t was mistakenly run before the test for unistd.h.
92661
92662         The configure-time check for stdbool.h was missing.
92663         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92664         (jm_PREREQ_HASH): New function.
92665
92666 2001-01-17  Jim Meyering  <meyering@lucent.com>
92667
92668         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92669         for autoconf-2.49c.
92670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92671
92672 2001-01-16  Jim Meyering  <meyering@lucent.com>
92673
92674         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92675         From Bruno Haible.
92676
92677 2001-01-14  Jim Meyering  <meyering@lucent.com>
92678
92679         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92680         foo and bar.  Create conftestdir/ in the script, not in the C code.
92681         Remove directories in the script, not in the C code.
92682         Remove conftestdir{,2} before trying to create the directory.
92683         Make the entire configure script fail if the mkdir fails.
92684
92685 2001-01-14  Jim Meyering  <meyering@lucent.com>
92686
92687         * lib/rename.c: New file.  From Volker Borchert.
92688         Include stdlib.h, string.h or strings.h, and xalloc.h.
92689         Use strip_trailing_slashes rather than open-coding it.
92690
92691 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92692
92693         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92694
92695 2001-01-03  Jim Meyering  <meyering@lucent.com>
92696
92697         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92698         of local `inptr' to avoid warning with some system declarations of
92699         iconv.
92700
92701 2001-01-02  Volker Borchert  <bt@teknon.de>
92702
92703         * m4/rename.m4: New file.
92704         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92705
92706 2001-01-01  Jim Meyering  <meyering@lucent.com>
92707
92708         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92709         even on systems with utmpx.h.  It's necessary for the declaration of
92710         utmp's ut_user member.  Reported by Andreas Jaeger.
92711
92712         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92713         available. They are required for the declarations of getgrgid and
92714         getpwuid resp.
92715         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92716         Reported by Andreas Jaeger.
92717
92718 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92719
92720         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92721         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92722         so `make install' also works in VPATH builds.
92723
92724 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92725
92726         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92727         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92728         can be used in subdirectories.
92729
92730 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92731
92732         * lib/modechange.c: Do not assume that mode_t uses the
92733         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92734         the other-execute bit of FOO even if S_IXOTH != 1.
92735
92736         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92737         WOTH, XOTH, ALLM): New macros.
92738         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92739          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92740         Use them.
92741         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92742         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92743         (mode_compile):
92744         No need to use uintmax_t; unsigned long is long enough.
92745         Don't bother to get suffix since we don't use it.
92746
92747 2000-12-26  Jim Meyering  <meyering@lucent.com>
92748
92749         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92750         better with autoheader.
92751
92752 2000-12-24  Jim Meyering  <meyering@lucent.com>
92753
92754         * lib/hash.c (is_prime): Return explicit boolean values.
92755         (hash_get_first): Return NULL to appease Irix5.6's 89.
92756         Reported by Nelson Beebe.
92757
92758 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92759
92760         * lib/localcharset.c (locale_charset): Add support for Win32.
92761
92762 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92763
92764         * lib/physmem.h, lib/physmem.c: New files.
92765
92766         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92767         (noinst_HEADERS): Add physmem.h.
92768
92769         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92770         't' for compatibility with Solaris 8 sort.
92771
92772 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92773
92774         * lib/config.charset: Add support for BeOS.
92775
92776 2000-12-17  Jim Meyering  <meyering@lucent.com>
92777
92778         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92779         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92780
92781 2000-12-16  Jim Meyering  <meyering@lucent.com>
92782
92783         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92784         N and M) would have treated it like `chown N:N FILE'.
92785
92786         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92787
92788 2000-12-16  Jim Meyering  <meyering@lucent.com>
92789
92790         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92791         SHELLS_FILE to a file name that's useful on djgpp systems.
92792         Include stdlib.h.
92793         (ADDITIONAL_DEFAULT_SHELLS): Define.
92794         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92795         Based mostly on a patch from Prashant TR.
92796
92797 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92798
92799         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92800         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92801         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92802
92803 2000-12-08  Andreas Schwab  <schwab@suse.de>
92804
92805         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92806         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92807
92808 2000-12-07  Jim Meyering  <meyering@lucent.com>
92809
92810         * lib/stripslash.c (ISSLASH): Define.
92811         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92812         `/'.
92813         From Prashant TR.
92814
92815         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92816         (dir_name_r): Declare this function as static.
92817         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92818         manifest itself on a name containing a mix of slashes and
92819         backslashes.
92820         Make this function work with names starting with a DOS-style
92821         drive letter and colon prefix.
92822         (dir_name): Append `.' if necessary.
92823         Based mostly on patches from Prashant TR and Eli Zaretskii.
92824
92825         * lib/dirname.h (dir_name_r): Remove prototype.
92826
92827 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92828
92829         * m4/off_t-format.m4: Remove this file.
92830         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92831
92832 2000-12-06  Jim Meyering  <meyering@lucent.com>
92833
92834         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92835         replacement strtoull, we may well need the replacement strtoul, too.
92836         Check for declarations of strtoul and strtoull.
92837         Check for strtol.  Mainly as a cue to cause automake to include
92838         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92839         Check for limits.h -- strtol.c needs it.
92840
92841 2000-12-05  Jim Meyering  <meyering@lucent.com>
92842
92843         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92844
92845 2000-12-04  Jim Meyering  <meyering@lucent.com>
92846
92847         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92848         Also include memory.h, stdlib.h, unistd.h if appropriate.
92849         Reported by Andreas Jaeger (conflicting declaration of malloc).
92850
92851 2000-12-02  Jim Meyering  <meyering@lucent.com>
92852
92853         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92854         * m4/jm-macros.m4 (jm_MACROS): require it.
92855
92856 2000-12-02  Jim Meyering  <meyering@lucent.com>
92857
92858         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92859
92860 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92861
92862         * lib/memrchr.c: Include <config.h> before any system include file.
92863
92864 2000-11-30  Jim Meyering  <meyering@lucent.com>
92865
92866         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92867
92868 2000-11-30  Jim Meyering  <meyering@lucent.com>
92869
92870         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92871
92872 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92873
92874         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92875
92876 2000-11-26  Jim Meyering  <meyering@lucent.com>
92877
92878         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92879
92880 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92881
92882         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92883         size of (size_t) -1; it's not portable.
92884
92885 2000-11-17  Jim Meyering  <meyering@lucent.com>
92886
92887         * lib/strstr.c: Update from GNU libc.
92888
92889 2000-11-17  Akim Demaille  <akim@epita.fr>
92890
92891         * lib/obstack.h: Formatting changes.
92892         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92893         prevent type checking.
92894         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92895         cast the value to (void *): assigning a `foo *' to a `void *'
92896         variable is valid.
92897         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92898
92899 2000-11-16  Jim Meyering  <meyering@lucent.com>
92900
92901         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92902
92903 2000-11-11  Jim Meyering  <meyering@lucent.com>
92904
92905         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92906
92907 2000-11-10  Jim Meyering  <meyering@lucent.com>
92908
92909         * lib/obstack.h: Update from GNU libc.
92910         * lib/obstack.c: Likewise.
92911
92912 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92913
92914         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92915
92916 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92917
92918         * lib/getusershell.c (setusershell): Use rewind rather than
92919         fseek/fseeko, to avoid configuration hassles with fseeko.
92920         Don't bother opening SHELLS_FILE if shellstream is NULL;
92921         it's not necessary.
92922
92923 2000-11-05  Jim Meyering  <meyering@lucent.com>
92924
92925         * lib/makepath.h (make_dir): Declare.
92926         * lib/makepath.c (make_dir): Remove `static' attribute.
92927         Tweak a comment.
92928
92929 2000-11-04  Jim Meyering  <meyering@lucent.com>
92930
92931         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92932
92933 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92934
92935         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92936         last one in a bucket, advance to the next bucket.
92937
92938 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92939
92940         * lib/fnmatch.c: Do not comment out all the code if we are using
92941         the GNU C library, because in some cases we are replacing buggy
92942         code in the GNU C library itself.
92943
92944 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92945
92946         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92947         (regex_compile): Catch bogus \(\1\).
92948
92949 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92950
92951         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92952         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92953         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92954
92955 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92956
92957         * lib/error.h, getline.h, modechange.h:
92958         Remove "2000" from Copyright line, as the file hasn't been
92959         changed this year other than in the copyright notice.
92960
92961         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92962         was changed this year.
92963
92964 2000-10-29  Jim Meyering  <meyering@lucent.com>
92965
92966         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92967         renaming.
92968         * m4/ls-mntd-fs.m4: Likewise
92969
92970 2000-10-29  Jim Meyering  <meyering@lucent.com>
92971
92972         * lib/xstat.in: Fix grammar in comment.
92973
92974 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92975
92976         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92977         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92978         doesn't define __restrict_arr.
92979
92980 2000-10-28  Jim Meyering  <meyering@lucent.com>
92981
92982         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92983         (jm_PREREQ_MEMCHR): New function.
92984
92985 2000-10-28  Jim Meyering  <meyering@lucent.com>
92986
92987         * lib/memchr.c: Update from libc.
92988         Adjust for portability:
92989         [HAVE_STDLIB_H]: Include stdlib.h.
92990         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92991         Undef __memchr, too.
92992         [!weak_alias]: Define __memchr to memchr.
92993
92994         * lib/regex.c: Update from libc.
92995         * lib/regex.h: Likewise.
92996         * lib/getopt1.c: Likewise.
92997         * lib/memcmp.c: Likewise.
92998
92999         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93000         Avoid using fseek, when possible -- it's broken by design.
93001         Patch by Ulrich Drepper.
93002
93003 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93004
93005         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93006         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93007         Giving in to popular pressure to shut up the compiler with casts.
93008
93009 2000-10-26  Jim Meyering  <meyering@lucent.com>
93010
93011         * lib/strftime.c: Update from libc.
93012
93013 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93014
93015         * regex.c: More `unsigned char' -> `re_char' changes.
93016         Also change several `int' into `re_wchar_t'.
93017         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93018         (PUSH_FAILURE_POINTER): Don't cast any more.
93019         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93020         We want GCC to complain, since this piece of code makes
93021         re_match non-reentrant, which *should* be fixed.
93022         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93023         (EXTEND_BUFFER): Use RETALLOC.
93024         (SET_LIST_BIT): Don't cast.
93025         (re_wchar_t): New type.
93026         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93027         that those two functions will always properly return.
93028         (IMMEDIATE_QUIT_CHECK): Cast to void.
93029         (analyse_first): Use recursion rather than an explicit stack.
93030         (re_compile_fastmap): Can't fail anymore.
93031         (re_search_2): Don't check re_compile_fastmap for failure.
93032         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93033         Now also sets the new value (passed in a new argument).
93034         (re_match_2_internal): Use it.
93035         Also, use a new var `reg' of type size_t when looping through regs
93036         rather than reuse the inappropriate `mcnt'.
93037
93038 2000-10-25  Jim Meyering  <meyering@lucent.com>
93039
93040         * lib/obstack.c: Update from libc.
93041
93042 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93043
93044         * regex.c (regex_compile): Change the way of handling a range from
93045         a char less than 256 to a char not less than 256.
93046
93047 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93048
93049         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93050         NT-Emacs only.
93051         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93052         so that re_search functions only quit when callers expect them to.
93053
93054 2000-10-23  Jim Meyering  <meyering@lucent.com>
93055
93056         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93057         wrong.  That set_locale call must not have any side effects.
93058         From Paul Eggert.
93059
93060 2000-10-22  Jim Meyering  <meyering@lucent.com>
93061
93062         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93063         [CYCLIC]: Remove now-unused definition.
93064
93065         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93066         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93067         Suggestion from Ulrich Drepper.
93068
93069 2000-10-21  Jim Meyering  <meyering@lucent.com>
93070
93071         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93072         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93073         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93074
93075 2000-10-21  Jim Meyering  <meyering@lucent.com>
93076
93077         * lib/dirname.c (memrchr): Declare if necessary.
93078         (dir_name): Remove the restriction that there be no
93079         trailing slashes.  Now, this code skips past them, effectively
93080         ignoring them.
93081         [TEST_DIRNAME] (main): New unit tests.
93082
93083         * lib/memrchr.c: New file from GNU libc.
93084         Undef __memrchr, too.
93085         [!weak_alias]: Define __memrchr to memrchr.
93086         Guard weak_alias use with `#ifdef weak_alias'.
93087
93088 2000-10-21  Jim Meyering  <meyering@lucent.com>
93089
93090         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93091         (dir_name): Use dir_name_r.
93092         * lib/dirname.h (dir_name_r): Declare it.
93093
93094 2000-10-17  Jim Meyering  <meyering@lucent.com>
93095
93096         * lib/quote.h (PARAMS): Define and use.
93097         Reported by Akim Demaille.
93098
93099         * lib/getopt.c: Update from libc.
93100
93101 2000-10-16  Jim Meyering  <meyering@lucent.com>
93102
93103         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93104         setlocale.
93105         From Jan Fedak.
93106
93107 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93108
93109         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93110
93111 2000-09-25  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/md5.h (rol): Define (from GnuPG).
93114
93115         * lib/sha.c: Give credit (GnuPG) where due.
93116         (M): Use rol rather than open-coding it.
93117         Add a FIXME comment.
93118
93119 2000-09-21  Jim Meyering  <meyering@lucent.com>
93120
93121         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93122         Reported by Michael Stone.
93123
93124 2000-09-20  Jim Meyering  <meyering@lucent.com>
93125
93126         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93127         (noinst_HEADERS): Add sha.h.
93128         Based on code from Scott G. Miller and from GnuPG.
93129
93130 2000-09-18  Jim Meyering  <meyering@lucent.com>
93131
93132         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93133         LIBS. Otherwise, everyone ends up linking with -lelf for some
93134         configurations.
93135         Reported by Mike Stone.
93136
93137 2000-09-15  Jim Meyering  <meyering@lucent.com>
93138
93139         * lib/regex.c: Update from libc.
93140
93141 2000-09-10  Jim Meyering  <meyering@lucent.com>
93142
93143         * lib/getopt.c (_getopt_internal): Update from glibc.
93144
93145 2000-09-09  Jim Meyering  <meyering@lucent.com>
93146
93147         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93148         think it should be used as a general replacement for isascii.
93149         * lib/fnmatch.c: Likewise.
93150         * lib/mbswidth.c: Likewise
93151         * lib/regex.c: Likewise.
93152
93153         Don't use atoi.
93154         * lib/userspec.c: Include sys/param.h and limits.h.
93155         Include xstrtol.h.
93156         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93157         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93158         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93159         UID, GID.  Check range.
93160
93161 2000-09-06  Jim Meyering  <meyering@lucent.com>
93162
93163         * lib/getopt.c (_getopt_internal): Update from glibc.
93164
93165 2000-08-30  Jim Meyering  <meyering@lucent.com>
93166
93167         * lib/strftime.c: Merge in changes from GNU libc.
93168
93169 2000-08-26  Jim Meyering  <meyering@lucent.com>
93170
93171         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93172         * m4/fpending.m4: New file.
93173
93174 2000-08-26  Jim Meyering  <meyering@lucent.com>
93175
93176         * lib/closeout.c: Include "__fpending.h".
93177         (close_stdout_status): Return right away if there's nothing to flush.
93178
93179         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93180         * lib/__fpending.c: New file.
93181         * lib/__fpending.h: New file.
93182
93183 2000-08-20  Jim Meyering  <meyering@lucent.com>
93184
93185         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93186         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93187         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93188
93189 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93190
93191         Improve fileutils installation on systems where running
93192         programs (like install) can't be unlinked.
93193         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93194         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93195
93196 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93197
93198         Standardize on "memory exhausted" instead of "Memory exhausted"
93199         or "virtual memory exhausted".
93200         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93201         "virtual memory exhausted".
93202         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93203         our own message.
93204         * lib/userspec.c (parse_user_spec): Likewise.
93205         * lib/bumpalloc.h: comment fix
93206         * lib/same.c, userspec.c: Include xalloc.h.
93207
93208         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93209         not char *const and pointing to a constant array.
93210         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93211         (xrealloc): Comment fix.
93212
93213         * lib/userspec.c (parse_user_spec):
93214         Don't translate a message until just before returning,
93215         to avoid unnecessary translation.
93216
93217 2000-08-07  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93220         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93221         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93222         getgroups.c, gethostname.c, getopt.h, group-member.c,
93223         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93224         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93225         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93226         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93227         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93228         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93229         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93230         yesno.c: Back out Copyright date changes for each file with no change
93231         this year.  This eases coordination with other programs using the same
93232         source code modules.  From Paul Eggert.
93233
93234 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93235
93236         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93237         not char, for compatibility with glibc 2.1.3 strftime.c.
93238
93239 2000-08-03  Greg McGary  <greg@mcgary.org>
93240
93241         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93242         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93243         (EXTEND_BUFFER): Use them.
93244
93245 2000-08-01  Jim Meyering  <meyering@lucent.com>
93246
93247         * lib/dirname.c (ISSLASH): Define.
93248         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93249         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93250         both `\' and `/' may be use as path separators.
93251         Based on a patch from Prashant TR.
93252
93253 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93254
93255         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93256         slot vector a constant, since it might get modified.
93257
93258 2000-07-31  Jim Meyering  <meyering@lucent.com>
93259
93260         * lib/xmalloc.c: Use `virtual memory exhausted', not
93261         `Memory exhausted'.
93262         * lib/obstack.c (print_and_abort): Likewise.
93263
93264 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93265
93266         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93267         buffer, so that the caller can always quote one small
93268         component of a "memory exhausted" message in slot 0.
93269         From a suggestion by Jim Meyering.
93270
93271 2000-07-30  Jim Meyering  <meyering@lucent.com>
93272
93273         * lib/makepath.c (make_path): Quote the other instance, too.
93274
93275         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93276         (STATIC_BUF_SIZE): Define.
93277         (quotearg_n_options): Use only statically allocated storage when
93278         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93279         than STATIC_BUF_SIZE.
93280
93281 2000-07-29  Jim Meyering  <meyering@lucent.com>
93282
93283         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93284         * lib/dirname.c (dir_name): Likewise.
93285
93286         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93287         `/'.
93288
93289         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93290         (dir_name): Assert that there are no trailing slashes.
93291
93292 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93293
93294         * lib/mbswidth.h (mbswidth): Add a flags argument.
93295         (mbswidth): New declaration.
93296         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93297         * lib/mbswidth.c (mbswidth): Add a flags argument.
93298         (mbsnwidth): New function.
93299
93300 2000-07-24  Jim Meyering  <meyering@lucent.com>
93301
93302         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93303
93304 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93305
93306         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93307
93308 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93309
93310         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93311         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93312         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93313         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93314         invoke multibyte primitives.
93315
93316 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93317
93318         * lib/quotearg.c:
93319         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93320         so that mbstate_t is always defined.
93321
93322         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93323         be 1 in at least one GCC installation, and this configuration
93324         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93325         performance on hosts that have mbrtowc but have only unibyte
93326         locales, but I assume these hosts are rare.
93327
93328 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93329
93330         * lib/mbswidth.c (_XOPEN_SOURCE):
93331         Don't define; this causes problems on Solaris 7.
93332         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93333
93334 2000-07-23  Jim Meyering  <meyering@lucent.com>
93335
93336         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93337         too: getgrgid, getpwuid, getuid.
93338
93339 2000-07-23  Jim Meyering  <meyering@lucent.com>
93340
93341         * lib/basename.c (base_name): Add an assertion.
93342
93343 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93344
93345         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93346         shadow its mbsinit function.
93347
93348 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93349
93350         * lib/mbswidth.h: New file.
93351         * lib/mbswidth.c: New file.
93352         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93353         (noinst_HEADERS): Add mbswidth.h.
93354
93355 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93356
93357         * lib/config.charset: Add support for FreeBSD. Improve support for
93358         HP-UX and IRIX 6.
93359
93360 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93361
93362         * m4/mbswidth.m4: New file.
93363         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93364
93365 2000-07-15  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/makepath.c: Include quote.h.
93368         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93369         corresponding argument in a `quote (...)' call.
93370         Give better diagnostics.
93371
93372         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93373         (noinst_HEADERS): Add quote.h.
93374
93375         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93376         from tar's src/misc.c.
93377         * lib/quote.h: New file.  Prototypes for same.
93378
93379 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93380
93381         From a suggestion by Bruno Haible.
93382         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93383         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93384         to decide whether to define the BeOS workaround macro;
93385         this adjusts to the change to AC_MBSTATE_T.
93386
93387 2000-07-14  Jim Meyering  <meyering@lucent.com>
93388
93389         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93390         jm_AC_TYPE_UINTMAX_T.
93391
93392 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93393
93394         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93395
93396         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93397         quotearg_buffer_restyled): Add support for
93398         clocale_quoting_style.  Undo previous change to
93399         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93400         and "{RIGHT QUOTATION MARK}" msgids.
93401
93402 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93403
93404         From a suggestion by Bruno Haible.
93405         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93406         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93407         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93408         and mbstate_t, to a single-part test that simply defines mbstate_t.
93409         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93410         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93411
93412 2000-07-10  Jim Meyering  <meyering@lucent.com>
93413
93414         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93415
93416         * m4/gnu-source.m4: Output to confdefs.h directly.
93417         Suggestion from Akim Demaille.
93418
93419 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93420
93421         The old behavior of quoting `like this' doesn't look good with
93422         newer, ISO-style fonts.  See:
93423         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93424
93425         Instead, quote "like this" by default.  Let the translator
93426         tailor the locale-specific quoting behavior by providing
93427         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93428
93429         * lib/quotearg.c (N_): New macro.
93430         (gettext_default): New function.
93431         (quotearg_buffer_restyled): Use
93432         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93433         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93434
93435 2000-07-09  Jim Meyering  <meyering@lucent.com>
93436
93437         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93438         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93439
93440         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93441         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93442
93443 2000-07-09  Jim Meyering  <meyering@lucent.com>
93444
93445         * lib/Most files: Update copyright dates to include 2000.
93446
93447 2000-07-08  Jim Meyering  <meyering@lucent.com>
93448
93449         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93450         if not defined.
93451         (xgethostname): Remove now-unnecessary #ifdef.
93452         Move declaration of `err' into loop where it's used.
93453
93454 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93455         and Bruno Haible  <haible@clisp.cons.org>
93456
93457         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93458         only if the test for an object-type mbstate_t fails.  This
93459         prevents us from mistakenly reporting that mbstate_t is a
93460         system object type after we "#define mbstate_t int" to work
93461         around its lack.
93462
93463 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93464         and Bruno Haible  <haible@clisp.cons.org>
93465
93466         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93467
93468 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93469
93470         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93471         to strerror_r.
93472         Include <ctype.h> for use of isalpha.
93473
93474 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93475
93476         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93477         by allocating a larger buffer. Test the gethostname return value for
93478         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93479         returns an error and ENAMETOOLONG isn't defined.
93480
93481 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93482
93483         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93484         dimension.
93485
93486 2000-07-04  Jim Meyering  <meyering@lucent.com>
93487
93488         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93489         of the deprecated AC_CHECKING.
93490
93491 2000-07-04  Jim Meyering  <meyering@lucent.com>
93492
93493         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93494         Reported by Bruno Haible.
93495
93496 2000-07-04  Jim Meyering  <meyering@lucent.com>
93497
93498         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93499         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93500         lacks mbrtowc.
93501
93502 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93503
93504         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93505         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93506
93507 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93508         and Bruno Haible  <haible@clisp.cons.org>
93509
93510         * lib/quotearg.c (mbrtowc):
93511         Assign to *pwc, and return 1 only if result is nonzero.
93512         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93513
93514 2000-07-03  Jim Meyering  <meyering@lucent.com>
93515
93516         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93517
93518 2000-07-03  Jim Meyering  <meyering@lucent.com>
93519
93520         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93521         This is necessary to get a definition of e.g., UTMP_FILE on
93522         HP-UX 10.20.
93523         From Bob Proulx.
93524
93525 2000-07-02  Jim Meyering  <meyering@lucent.com>
93526
93527         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93528
93529         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93530         AC_LIBOBJ(function_name).
93531         * m4/chown.m4: Likewise.
93532         * m4/fnmatch.m4: Likewise.
93533         * m4/ftruncate.m4: Likewise.
93534         * m4/getgroups.m4: Likewise.
93535         * m4/getline.m4: Likewise.
93536         * m4/group-member.m4: Likewise.
93537         * m4/jm-macros.m4: Likewise.
93538         * m4/lstat.m4: Likewise.
93539         * m4/malloc.m4: Likewise.
93540         * m4/memcmp.m4: Likewise.
93541         * m4/nanosleep.m4: Likewise.
93542         * m4/putenv.m4: Likewise.
93543         * m4/realloc.m4: Likewise.
93544         * m4/regex.m4: Likewise.
93545         * m4/stat.m4: Likewise.
93546         * m4/strftime.m4: Likewise.
93547
93548 2000-07-02  Jim Meyering  <meyering@lucent.com>
93549
93550         * lib/quotearg.c (mbstate_t): Don't define here.
93551
93552 2000-07-02  Jim Meyering  <meyering@lucent.com>
93553
93554         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93555
93556 2000-07-01  Jim Meyering  <meyering@lucent.com>
93557
93558         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93559
93560 2000-07-01  Jim Meyering  <meyering@lucent.com>
93561
93562         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93563         problem.
93564
93565 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93566
93567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93568         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93569
93570 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93571
93572         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93573         per change in ../m4/ls-mntd-fs.m4.
93574         (read_filesystem_list): Ignore symbolic links.
93575
93576 2000-06-29  Jim Meyering  <meyering@lucent.com>
93577
93578         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93579         for declaration of strcmp.
93580
93581         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93582
93583         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93584         Avoid warning by casting result to `char *' to remove `const'.
93585
93586 2000-06-28  Jim Meyering  <meyering@lucent.com>
93587
93588         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93589         included by quotearg.c, for which we perform this test.  From
93590         Bruno Haible.
93591
93592 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93593
93594         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93595         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93596         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93597
93598 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93599
93600         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93601
93602 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93603
93604         savedir now sets errno on failure and invokes xmalloc to get memory.
93605         Fix a couple of other minor bugs while we're at it.
93606
93607         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93608         (NAMLEN): Remove macro.
93609         (malloc, realloc): Remove decls.
93610         (stpcpy): Likewise.
93611         ("xalloc.h"): Include.
93612         (NAME_SIZE_DEFAULT): New macro.
93613         (savedir): Use xmalloc / xrealloc to allocate memory.
93614         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93615         Skip "" directory entries.
93616         Use strlen to calculate directory entry length, since the old method
93617         is rarely used these days and isn't worth supporting.
93618         Don't use a pointer after freeing it.
93619         Check for integer overflow when calculating allocation size.
93620         Use memcpy to copy entries, instead of stpcpy.
93621         Set errno properly when returning NULL.
93622         Check for readdir error.
93623
93624 2000-06-26  Jim Meyering  <meyering@lucent.com>
93625
93626         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93627
93628 2000-06-25  Jim Meyering  <meyering@lucent.com>
93629
93630         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93631         Linux header bug when _XOPEN_SOURCE is defined to 500.
93632
93633 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93634
93635         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93636         deficiency.
93637
93638 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93639
93640         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93641         Include xalloc.h.
93642         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93643
93644 2000-06-24  Jim Meyering  <meyering@lucent.com>
93645
93646         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93647         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93648         for which strerror does return char*, but which lacks a conveniently
93649         accessible declaration of the function.  If the compile-test says
93650         strerror_r doesn't work, then resort to a `run'-test that works on
93651         BeOS and segfaults on DEC Unix.
93652
93653 2000-06-24  Jim Meyering  <meyering@lucent.com>
93654
93655         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93656
93657 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93658
93659         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93661
93662 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93663
93664         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93665         (mbrtowc, mbstate_t): Define substitutes if
93666         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93667         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93668         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93669
93670 2000-06-23  Jim Meyering  <meyering@lucent.com>
93671
93672         * m4/afs.m4: Add missing AC_MSG_RESULT.
93673         Reported by Bruno Haible.
93674
93675         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93676         Suggestion from Bruno Haible.
93677
93678 2000-06-23  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93681
93682 2000-06-21  Jim Meyering  <meyering@lucent.com>
93683
93684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93685
93686 2000-06-21  Jim Meyering  <meyering@lucent.com>
93687
93688         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93689         (noinst_HEADERS): Add getstr.h.
93690
93691         * lib/getline.c (getstr): Move into a separate file.
93692         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93693         the following changes: new parameter, delim2; both delim[12]
93694         parameters have type `int', not `char'.  The latter would lose
93695         with 8-bit delimiters.
93696         * lib/getstr.h: New file.
93697
93698 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93699
93700         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93701         than 1024, return a memory chunk of least possible size, instead
93702         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93703         Use free/xmalloc instead of xrealloc to avoid copying for very long
93704         paths.
93705
93706 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93707
93708         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93709         the empty string.
93710
93711 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93712
93713         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93714         address, not strdup.  Include <stdlib.h> and don't declare free().
93715
93716 2000-06-19  Jim Meyering  <meyering@lucent.com>
93717
93718         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93719
93720 2000-06-18  Jim Meyering  <meyering@lucent.com>
93721
93722         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93723
93724         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93725         `checking whether...' message to be consistent with that of the
93726         lstat test.
93727
93728 2000-06-18  Jim Meyering  <meyering@lucent.com>
93729
93730         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93731         Besides, these days every porting target provides a mkdir function.
93732
93733         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93734         needed. (this snippet comes from src/system.h).
93735
93736 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93737
93738         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93739
93740 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93741
93742         * lib/human.c (adjust_value): New function.
93743         (human_readable_inexact): Apply rounding style even when
93744         printing approximate values.
93745
93746 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93747
93748         * lib/human.c (human_readable_inexact): Allow an input block
93749         size that is not a multiple of the output block size, and vice versa.
93750         Reported by Piergiorgio Sartor.
93751
93752 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93753
93754         * lib/getdate.y (get_date): Apply relative times after time
93755         zone indicator, not before.  Reported by Todd A. Jacobs.
93756
93757 2000-06-13  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93760
93761         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93762
93763 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93764
93765         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93766
93767 2000-06-12  Jim Meyering  <meyering@lucent.com>
93768
93769         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93770         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93771         optional argument.
93772         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93773         the optional argument, `lib'.
93774
93775 2000-06-08  Jim Meyering  <meyering@lucent.com>
93776
93777         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93778
93779 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93780
93781         Rewrite largefile configuration so that we don't need to run
93782         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93783         AC_CANONICAL_HOST in configure.in -- jmm]
93784
93785         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93786         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93787         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93788         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93789         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93790         All uses changed.
93791         Instead of inspecting the output of getconf, try to compile the
93792         test program without and with the macro definition.
93793         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93794         for getconf.  Instead, check for the needed flags by compiling
93795         test programs.
93796
93797 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93798
93799         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93800
93801 2000-06-04  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93804         SunOS 4.1.4 for which gid_t is an unsigned type.
93805
93806 2000-06-03  Jim Meyering  <meyering@lucent.com>
93807
93808         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93809         now that autoconf requires that.
93810
93811         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93812         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93813         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93814
93815 2000-06-03  Jim Meyering  <meyering@lucent.com>
93816
93817         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93818
93819 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93820
93821         * m4/glibc21.m4: New file.
93822         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93823
93824 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93825
93826         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93827         newer, don't install charset.alias.
93828         * lib/config.charset: Change the Linux/glibc rules so they become empty
93829         on glibc-2.1 or newer.
93830
93831 2000-06-02  Jim Meyering  <meyering@lucent.com>
93832
93833         * lib/mountlist.c: Back out last change.  Instead, do this...
93834         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93835         me_dummy member using the same `ignore'-testing code.
93836         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93837         fs_type strings.
93838         From Mark D. Roth.
93839
93840 2000-05-29  Jim Meyering  <meyering@lucent.com>
93841
93842         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93843         mounts with the `ignore' attribute.  Based on a patch from
93844         Mark D. Roth.
93845
93846 2000-05-28  Jim Meyering  <meyering@lucent.com>
93847
93848         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93849         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93850         * m4/stat.m4: Likewise.
93851         * m4/lstat.m4: Likewise.
93852         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93853
93854         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93855         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93856
93857 2000-05-26  Jim Meyering  <meyering@lucent.com>
93858
93859         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93860
93861 2000-05-24  Jim Meyering  <meyering@lucent.com>
93862
93863         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93864         autoconf requires that.
93865         * m4/lib-check.m4: Likewise.
93866         * m4/jm-macros.m4: Likewise.
93867         * m4/strftime.m4: Likewise.
93868
93869         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93870         AC_CHECK_DECLS, now that autoconf requires that.
93871
93872 2000-05-22  Jim Meyering  <meyering@lucent.com>
93873
93874         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93875         * m4/lstat.m4: Likewise.
93876
93877 2000-05-22  Jim Meyering  <meyering@lucent.com>
93878
93879         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93880
93881 2000-05-20  Jim Meyering  <meyering@lucent.com>
93882
93883         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93884         (jm_PREREQ): Use it.
93885
93886 2000-05-18  Jim Meyering  <meyering@lucent.com>
93887
93888         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93889         back, too, since it may have been modified by allocate_entry.
93890         (hash_delete): Rewrite to use neither the assignment operator
93891         nor the comma operator in an if-expression.
93892
93893 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93894
93895         * lib/closeout.c:
93896         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93897         Remove; no longer needed.
93898         "quotearg.h": Add include.
93899         (file_name): Do not bother to explicitly initialize to NULL; it's less
93900         efficient on some hosts.
93901         (close_stdout_status): Remove test as to whether stdout was already
93902         closed; it breaks for the case "echo x | sort >&-".
93903         Quote file name colons.
93904         Do not assume that _("write error") lacks format strings.
93905
93906 2000-05-15  Jim Meyering  <meyering@lucent.com>
93907
93908         * lib/version-etc.c (version_etc_copyright): Update the copyright
93909         string used in all --version output.
93910
93911 2000-05-14  Jim Meyering  <meyering@lucent.com>
93912
93913         * lib/closeout.c (close_stdout_set_file_name): New function.
93914         (close_stdout_status): Use new file-scoped global.
93915         Return right away if fstat says the stdout file descriptor is invalid.
93916         * lib/closeout.h (close_stdout_set_file_name): Declare.
93917
93918 2000-05-10  Jim Meyering  <meyering@lucent.com>
93919
93920         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93921         (close_stdout_set_status): New function.
93922         * lib/closeout.h (close_stdout_set_status): Declare.
93923
93924 2000-05-09  Jim Meyering  <meyering@lucent.com>
93925
93926         * m4/gettext.m4: Rename this...
93927         * m4/libintl.m4: ...to this.
93928
93929 2000-05-08  Jim Meyering  <meyering@lucent.com>
93930
93931         * lib/long-options.c: Don't include closeout.h.
93932         (parse_long_options): Don't call close_stdout for --version.
93933
93934 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93935
93936         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93937         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93938         2.1.3 bug.  This avoids a clash when files like regex.c define
93939         _GNU_SOURCE.
93940
93941 2000-05-06  Jim Meyering  <meyering@lucent.com>
93942
93943         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93944         (AC_REPLACE_FUNCS): Add strnlen.
93945
93946         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93947         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93948
93949         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93950         AC_SEARCH_LIBS call for nanosleep.
93951         (LIB_NANOSLEEP): Set and AC_SUBST.
93952
93953 2000-05-06  Jim Meyering  <meyering@lucent.com>
93954
93955         * lib/strnlen.c: Undefine __strnlen and strnlen.
93956         [!weak_alias]: Define __strnlen to strnlen.
93957
93958         * lib/atexit.c: New file, from libiberty.
93959
93960 2000-05-06  Jim Meyering  <meyering@lucent.com>
93961
93962         * lib/closeout.c (close_stdout_status): Also check for errors on the
93963         stderr stream.
93964
93965 2000-05-05  Jim Meyering  <meyering@lucent.com>
93966
93967         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93968         AC_SEARCH_LIBS call for clock_gettime.
93969         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93970
93971         * m4/search-libs.m4: Update from autoconf.
93972
93973         su doesn't work on Solaris 2.6.
93974         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93975         <shadow.h>.  Reported by Dragos Harabor.
93976
93977 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93978
93979         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93980         memcpy instead of xmalloc, xrealloc, path_concat.
93981         (locale_charset): Treat empty environment variables as absent.
93982         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93983
93984 2000-05-04  Jim Meyering  <meyering@lucent.com>
93985
93986         * lib/getopt.c: Update from glibc.
93987         * lib/obstack.c: Likewise.
93988         * lib/obstack.h: Likewise.
93989         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93990         file
93991
93992         * lib/regex.h: Likewise.
93993         * lib/strndup.c: Likewise.
93994         * lib/strnlen.c: New file, from glibc.
93995
93996 2000-05-03  Jim Meyering  <meyering@lucent.com>
93997
93998         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93999
94000 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94001
94002         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94003         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94004         compile-time test, rather than inspecting host and OS, to
94005         decide whether to define _LARGEFILE_SOURCE.
94006
94007 2000-05-01  Jim Meyering  <meyering@lucent.com>
94008
94009         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94010
94011         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94012         Based on a patch from Bruno Haible.
94013
94014 2000-05-01  Jim Meyering  <meyering@lucent.com>
94015
94016         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94017
94018 2000-04-29  Jim Meyering  <meyering@lucent.com>
94019
94020         * lib/path-concat.c: Declare strdup only if it's not defined.
94021         * lib/canon-host.c: Likewise.
94022
94023 2000-04-28  Jim Meyering  <meyering@lucent.com>
94024
94025         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94026         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94027         is included first, then limits.h is included by locale.h by libintl.h.
94028         From John David Anglin.
94029
94030 2000-04-25  Jim Meyering  <meyering@lucent.com>
94031
94032         * lib/makepath.c (S_IRWXUGO): Define.
94033         (make_path): Always perform explicit chmod if MODE specifies any
94034         of the `special' permission bits.  Prompted by a bug report against
94035         install from Mate Wierdl and Joost van Baal.
94036
94037 2000-04-18  Jim Meyering  <meyering@lucent.com>
94038
94039         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94040         (jm_PREREQ): Use it.
94041
94042 2000-04-18  Jim Meyering  <meyering@lucent.com>
94043
94044         * lib/README: New file.
94045
94046         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94047         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94048
94049 2000-04-17  Jim Meyering  <meyering@lucent.com>
94050
94051         Get it right :-)
94052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94053         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94054         Suggestion from Akim Demaille.
94055
94056 2000-04-17  Jim Meyering  <meyering@lucent.com>
94057
94058         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94059         the definition of it to rpl_strftime also defined-away the system's
94060         declaration.
94061
94062 2000-04-15  Jim Meyering  <meyering@lucent.com>
94063
94064         Use `C' to denote so-called `contiguous' files, the same way
94065         that tar does.
94066         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94067         (ftypelet): Use S_ISCTG.
94068         From Michael Deutschmann.
94069
94070 2000-04-14  Jim Meyering  <meyering@lucent.com>
94071
94072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94073         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94074         clobbered.
94075
94076 2000-04-14  Jim Meyering  <meyering@lucent.com>
94077
94078         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94079
94080 2000-04-13  Jim Meyering  <meyering@lucent.com>
94081
94082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94083         AH_VERBATIM to insert required #ifndef into config.h.in.
94084         Suggestion from Akim Demaille.
94085
94086 2000-04-12  Jim Meyering  <meyering@lucent.com>
94087
94088         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94089         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94090         Christian Krackowizer.
94091
94092         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94093         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94094         (AC_SYS_LARGEFILE): Require.
94095         (AM_C_PROTOTYPES): Require.
94096
94097 2000-04-08  Jim Meyering  <meyering@lucent.com>
94098
94099         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94100         names don't conflict.  Reported by Eli Zaretskii.
94101
94102 2000-04-07  Jim Meyering  <meyering@lucent.com>
94103
94104         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94105         sys/types.h, to work around system header problems on AIX 3.2.5.
94106         From Bruno Haible.
94107
94108 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94109
94110         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94111         bug.  Deal with the different error behavior of Irix iconv.
94112
94113 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94114
94115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94116         IRIX if the installer said otherwise.
94117
94118 2000-04-05  Jim Meyering  <meyering@lucent.com>
94119
94120         Portability tweaks required for ultrix4.3.
94121         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94122         (jm_CHECK_DECLS): Add getutent to the list of functions.
94123         (_jm_DECL_HEADERS): Add utmpx.h.
94124         From John David Anglin.
94125
94126         * m4/strftime.m4: Back out the 2000-04-02 change.
94127         Instead of that change, simply undefine putenv in the test program.
94128
94129 2000-04-05  Jim Meyering  <meyering@lucent.com>
94130
94131         Portability tweaks required for ultrix4.3.
94132         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94133         getutent.
94134         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94135         * lib/canon-host.c: Declare strdup.
94136         * lib/path-concat.c: Likewise.
94137         From John David Anglin.
94138
94139 2000-04-04  Jim Meyering  <meyering@lucent.com>
94140
94141         Be more DOS 8.3-friendly.
94142         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94143         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94144         * lib/Makefile.am: Reflect renaming.
94145         Reported by Eli Zaretskii.
94146
94147         Use a temporary file name that won't clash with `charset.alias'
94148         in the DOS 8.3 name space.
94149         * lib/Makefile.am (charset_tmp): Define.
94150         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94151         (uninstall-local): Likewise.
94152         Reported by Eli Zaretskii.
94153
94154 2000-04-03  Jim Meyering  <meyering@lucent.com>
94155
94156         * m4/gettext.m4: Fix typo in comment.
94157
94158         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94159         textutils/configure.in).  Suggestion from Paul Eggert.
94160         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94161
94162 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94163
94164         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94165         variable in the shell rather than using putenv, which isn't
94166         portable.  This avoids the configure-time inter-test dependency
94167         on the potentially-renamed putenv function.
94168
94169 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94170
94171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94172         before checking struct stat.st_blksize, so that
94173         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94174
94175 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94176
94177         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94178         since strftime.c uses HAVE_STRFTIME to decide whether to use
94179         the underlying strftime.
94180
94181 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94182
94183         * lib/time/strftime.c (my_strftime): Make sure we call the system
94184         strftime, not ourselves, when invoking the underlying strftime.
94185
94186 2000-03-24  Jim Meyering  <meyering@lucent.com>
94187
94188         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94189         (charset_alias): Define.
94190         (install-exec-local): Factor out common code.
94191         (uninstall-local): Split lines longer than 80.
94192         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94193         (SUFFIXES): Define.
94194         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94195         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94196
94197 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94198
94199         * lib/config.charset: Output a line containing "Packages using this
94200         file".
94201         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94202         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94203         ref-del.sed): New rules.
94204
94205 2000-03-17  Jim Meyering  <meyering@lucent.com>
94206
94207         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94208         Otherwise, include <strings.h>
94209
94210 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94211
94212         * lib/unicodeio.c (utf8_wctomb): New function.
94213         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94214         format instead of in UCS-4 with platform dependent endianness.
94215
94216 2000-03-10  Jim Meyering  <meyering@lucent.com>
94217
94218         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94219         From Marco Franzen.
94220
94221 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94222
94223         * lib/savedir.c (savedir): Work even if directory size is
94224         negative; this can happen with some screwy NFS configurations.
94225
94226 2000-03-06  Jim Meyering  <meyering@lucent.com>
94227
94228         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94229         if it's NULL (because we ran out of memory).  From Bruno Haible.
94230
94231 2000-03-05  Jim Meyering  <meyering@lucent.com>
94232
94233         * lib/localcharset.c ("path-concat.h"): Include.
94234         (get_charset_aliases): Use path_concat instead of ANSI string
94235         concatenation.
94236
94237         * lib/unicodeio.h (PARAMS): Define.
94238         Use it to guard prototype.
94239
94240 2000-03-04  Jim Meyering  <meyering@lucent.com>
94241
94242         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94243         for lib/localcharset.c.
94244
94245 2000-03-04  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94248         installing into it.
94249         (uninstall-local): Uncomment this rule so `make distcheck' works
94250         once again.
94251
94252         * lib/unicodeio.c (<errno.h>): Include it.
94253         (errno): Declare if not defined.
94254
94255         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94256
94257         * lib/config.charset: New version, incorporating remarks from a linux
94258         i18n mailing list.  From Bruno Haible.
94259
94260 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94261
94262         * m4/codeset.m4: New file.
94263         * m4/iconv.m4: New file.
94264         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94265
94266 2000-03-03  Jim Meyering  <meyering@lucent.com>
94267
94268         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94269
94270 2000-03-02  Jim Meyering  <meyering@lucent.com>
94271
94272         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94273         the messages come out on separate lines.
94274
94275         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94276         rather than jm_CHECK_DECLARATIONS.
94277         * m4/decl.m4: Remove now-unused file.
94278
94279         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94280         geteuid.
94281
94282 2000-03-02  Jim Meyering  <meyering@lucent.com>
94283
94284         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94285
94286 2000-03-01  Jim Meyering  <meyering@lucent.com>
94287
94288         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94289         * lib/unicodeio.c: Likewise.
94290
94291 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94292
94293         * lib/config.charset: New file.
94294         * lib/localcharset.c: New file.
94295         * lib/unicodeio.h, lib/unicodeio.c: New files.
94296         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94297         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94298         (noinst_HEADERS): Add unicodeio.h.
94299         (all-local, install-exec-local, charset.alias): New targets.
94300
94301 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94302
94303         * lib/quotearg.c (ALERT_CHAR): New macro.
94304         (quotearg_buffer_restyled): Use it.
94305
94306 2000-02-27  Jim Meyering  <meyering@lucent.com>
94307
94308         * m4/check-decl.m4: Add getenv to the list.
94309
94310 2000-02-27  Jim Meyering  <meyering@lucent.com>
94311
94312         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94313         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94314
94315         * lib/backupfile.c: Guard inclusion of stdlib.h with
94316         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94317         Declare malloc if needed.
94318
94319         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94320         `#ifndef HAVE_DECL..'
94321         now that autoconf always defines the HAVE_DECL_ symbols.
94322         * lib/human.c: Likewise.
94323         * lib/same.c: Likewise.
94324         * lib/strtoumax.c: Likewise.
94325
94326         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94327         declaration check was not run.
94328         * lib/hash.c: Likewise.
94329         * lib/human.c: Likewise.
94330         * lib/same.c: Likewise.
94331         * lib/strtoumax.c: Likewise.
94332
94333         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94334         `.', then first look up the entire `.'-containing string as a login
94335         name.
94336
94337 2000-02-23  Jim Meyering  <meyering@lucent.com>
94338
94339         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94340         in place of my hack.
94341
94342 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94343
94344         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94345         (textint): New typedef.
94346         (parser_control): Member year changed from int to textint.
94347         All uses changed.
94348         (YYSTYPE): Removed; replaced by %union with int and textint members.
94349         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94350         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94351         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94352         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94353         (date, number, to_year): Use width of number in digits, not its value,
94354         to determine whether it's a 2-digit year, or a 2-digit time.
94355         (yylex): Store number of digits of numeric tokens.
94356         Reported by John Kendall.
94357
94358         (parser_control): Changed from struct parser_control to typedef (for
94359         consistency).  All uses changed.
94360
94361         (tID): Removed; not used.
94362         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94363
94364 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94365
94366         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94367         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94368
94369 2000-02-12  Jim Meyering  <meyering@lucent.com>
94370
94371         * lib/userspec.c (ISDIGIT): Define it.
94372         (isdigit): Remove definition.
94373         (is_number): Use ISDIGIT, not isdigit.
94374         <libintl.h>: Include.
94375         (_ and N_): Define.
94376         (parse_user_spec): Mark translatable strings.
94377
94378 2000-02-10  Jim Meyering  <meyering@lucent.com>
94379
94380         With these changes, nanosleep.[ch] are finally enough like the other
94381         lib/* replacement files to compile on a few more losing systems.
94382
94383         * lib/nanosleep.h: Don't include config.h.
94384         Remove prototype from declaration of nanosleep.
94385         (PARAMS): Remove now-unneeded definition.
94386         * lib/nanosleep.c: #undef nanosleep.
94387         (rpl_nanosleep): Rename from nanosleep.
94388
94389 2000-02-10  Jim Meyering  <meyering@lucent.com>
94390
94391         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94392         gnu_nanosleep to rpl_nanosleep.
94393
94394 2000-02-09  Jim Meyering  <meyering@lucent.com>
94395
94396         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94397         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94398
94399 2000-02-08  Akim Demaille  <akim@epita.fr>
94400
94401         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94402         `[' and `]' and remove uses of `changequote'.
94403         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94404         (AC_SYS_LARGEFILE): Likewise.
94405         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94406         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94407         of changequote.
94408         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94409         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94410         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94411         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94412
94413 2000-02-05  Jim Meyering  <meyering@lucent.com>
94414
94415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94416         Remove explicit use of AC_HEADER_TIME.  It is required by
94417         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94418         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94419         in autoconf whereby the expansion of the latter ended up preceding
94420         the expansion of its prerequisite, AC_HEADER_TIME.
94421         Reported by Volker Borchert.
94422
94423 2000-02-03  Jim Meyering  <meyering@lucent.com>
94424
94425         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94426
94427 2000-02-03  Jim Meyering  <meyering@lucent.com>
94428
94429         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94430         rather than with `#if HAVE_UTMPNAME'.
94431
94432 2000-02-02  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94435         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94436         Reported by Eli Zaretskii.
94437
94438 2000-02-01  Jim Meyering  <meyering@lucent.com>
94439
94440         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94441
94442 2000-01-31  Jim Meyering  <meyering@lucent.com>
94443
94444         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94445         functions.  Add the time.h and sys/time.h headers along with the
94446         AC_REQUIRE'ment of AC_HEADER_TIME.
94447
94448 2000-01-31  Jim Meyering  <meyering@lucent.com>
94449
94450         * lib/nanosleep.h (nanosleep): Guard declaration with
94451         `#if ! HAVE_DECL_NANOSLEEP'.
94452         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94453         the declaration in that vendor's sys/timers.h.
94454         Reported by Christian Krackowizer.
94455
94456         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94457         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94458         (ISPRINT): Likewise.
94459         Reported by Tom Tromey.
94460
94461 2000-01-30  Jim Meyering  <meyering@lucent.com>
94462
94463         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94464
94465         * m4/prereq.m4 (utmp_includes): Define.
94466         Check for ut_user and ut_name members in both struct utmpx
94467         and struct utmp.
94468
94469 2000-01-30  Jim Meyering  <meyering@lucent.com>
94470
94471         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94472         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94473         header files where only utmpx.ut_user is declared.
94474
94475         * lib/readutmp.h (UT_USER): Define.
94476
94477 2000-01-29  Jim Meyering  <meyering@lucent.com>
94478
94479         * m4/lib-check.m4: New file containing library-related checks from
94480         fileutils and sh-utils (textutils had none).
94481
94482 2000-01-28  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/perl.m4: Change format of warning message to look more like that
94485         from the missing script.  Suggestion from François Pinard.
94486
94487 2000-01-25  Jim Meyering  <meyering@lucent.com>
94488
94489         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94490         well as time.h in the compile check.
94491         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94492         Fix typo in cross-compiling case: s/yes/no/.
94493
94494 2000-01-23  Jim Meyering  <meyering@lucent.com>
94495
94496         * m4/jm-macros.m4: Move df-related tests here from
94497         fileutils/configure.in
94498
94499         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94500         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94501
94502         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94503         s/space/ac_fsusage_space/.
94504         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94505
94506         * m4/ftruncate.m4: New file (derived from part of
94507         fileutils/configure.in).
94508         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94509         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94510
94511         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94512         AC_SUBST these here, rather than just in sh-util/configure.in, so
94513         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94514         all the same.
94515         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94516         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94517         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94518         (AC_SUBST(POW_LIBM)): Likewise.
94519         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94520
94521 2000-01-23  Jim Meyering  <meyering@lucent.com>
94522
94523         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94524         obstack.c.
94525
94526 2000-01-22  Jim Meyering  <meyering@lucent.com>
94527
94528         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94529
94530         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94531
94532         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94533         configure.in
94534         (AC_CHECK_HEADERS): Likewise for sh-utils.
94535         (AC_CHECK_HEADERS): Likewise for textutils.
94536         Merge the three lists of headers.
94537
94538         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94539         from fileutils' configure.in.
94540
94541         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94542         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94543         check-decl.m4.
94544
94545         * m4/check-decl.m4: Use #if rather than #ifdef.
94546         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94547         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94548         (_jm_DECL_HEADERS): Define new function.
94549         (jm_CHECK_DECLARATIONS): Require it.
94550
94551 2000-01-22  Jim Meyering  <meyering@lucent.com>
94552
94553         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94554         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94555         Required for some AIX systems.  Reported by Christian Krackowizer.
94556         [TESTING] (main): New function.
94557
94558         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94559         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94560         letters.
94561
94562         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94563         iswprint.
94564
94565         * lib/strverscmp.c (ISDIGIT): Define.
94566         (strverscmp): Use ISDIGIT, not isdigit.
94567
94568 2000-01-19  Jim Meyering  <meyering@lucent.com>
94569
94570         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94571         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94572         defines `struct timespec' in <sys/time.h>
94573
94574         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94575         Thanks to Akim for explaining.
94576
94577 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94578
94579         * lib/nanosleep.c (nanosleep):
94580         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94581         POSIX.1 doesn't require SA_INTERRUPT and some systems
94582         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94583         it's been part of POSIX.1 since day 1 (in 1988).
94584
94585 2000-01-17  Jim Meyering  <meyering@lucent.com>
94586
94587         * lib/interlock: Remove unused file.  Reported by François Pinard.
94588
94589 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94590
94591         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94592         alert, backslash, formfeed, and vertical tab unnecessarily in
94593         shell quoting style.
94594
94595 2000-01-16  Jim Meyering  <meyering@lucent.com>
94596
94597         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94598         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94599         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94600         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94601
94602 2000-01-16  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94605         because the latter didn't work.
94606
94607 2000-01-15  Jim Meyering  <meyering@lucent.com>
94608
94609         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94610         (AC_REPLACE_FUNCS): Add memcpy and memset.
94611         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94612         Add strpbrk.
94613         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94614
94615 2000-01-12  Jim Meyering  <meyering@lucent.com>
94616
94617         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94618         (jm_PREREQ): Use it.
94619         (jm_PREREQ_READUTMP): New macro.
94620         (jm_PREREQ): Use it.
94621
94622 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94623
94624         Quote multibyte characters correctly.
94625         * m4/c-bs-a.m4: New file.
94626         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94627         (jm_PREREQ): Use it.
94628
94629 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94630
94631         * m4/uintmax_t.m4: Port to autoconf 2.13.
94632
94633 2000-01-08  Jim Meyering  <meyering@ascend.com>
94634
94635         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94636         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94637
94638 2000-01-04  Jim Meyering  <meyering@ascend.com>
94639
94640         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94641         jm_STRUCT_DIRENT_D_TYPE.
94642         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94643         jm_STRUCT_DIRENT_D_INO.
94644         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94645         jm_STRUCT_UTIMBUF.
94646         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94647         renamings.
94648         * m4/utime.m4: Likewise.
94649
94650         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94651         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94652
94653 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94654
94655         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94656         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94657
94658 2000-01-02  Jim Meyering  <meyering@ascend.com>
94659
94660         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94661         remember if this is necessary.
94662
94663 1999-12-26  Jim Meyering  <meyering@ascend.com>
94664
94665         * m4/jm-macros.m4: Use it here.
94666         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94667
94668 1999-12-23  Jim Meyering  <meyering@ascend.com>
94669
94670         * m4/jm-macros.m4: Check for clock_gettime (moved from
94671         fileutils/configure.in)
94672         Check for gettimeofday.
94673
94674 1999-12-20  Jim Meyering  <meyering@ascend.com>
94675
94676         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94677         autoconf-2.14a-1999-12-20.
94678
94679 1999-12-19  Jim Meyering  <meyering@ascend.com>
94680
94681         * m4/lstat-slash.m4: New file.
94682         * m4/jm-macros.m4: Use the new macro:
94683         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94684
94685 1999-12-07  Jim Meyering  <meyering@ascend.com>
94686
94687         * m4/perl.m4: Require that File::Compare be available, too.
94688         Too many systems seem to lack it.
94689
94690         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94691         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94692
94693 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94694
94695         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94696         problem with the QNX 4.25 shell, which doesn't propagate exit
94697         status of failed commands inside shell assignments.
94698
94699 1999-11-17  Jim Meyering  <meyering@ascend.com>
94700
94701         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94702
94703 1999-11-07  Jim Meyering  <meyering@ascend.com>
94704
94705         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94706
94707 1999-11-06  Jim Meyering  <meyering@ascend.com>
94708
94709         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94710         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94711
94712 1999-11-05  Jim Meyering  <meyering@ascend.com>
94713
94714         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94715         configure.in of textutils, fileutils, and sh-utils into this one
94716         (shared between those packages) file.
94717         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94718         AC_STRUCT_ST_BLKSIZE.
94719
94720 1999-11-03  Jim Meyering  <meyering@ascend.com>
94721
94722         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94723         of AC_CHECK_TYPE checks includes unistd.h.
94724         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94725         Suggestion from Akim Demaille.
94726
94727 1999-10-30  Jim Meyering  <meyering@ascend.com>
94728
94729         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94730         m4-quoted string.
94731         * m4/ls-mntd-fs.m4: Likewise.
94732         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94733         * m4/jm-winsz1.m4: Likewise.
94734
94735         * m4/const.m4: Remove file, since the fix made it into the experimental
94736         version of autoconf.
94737         * m4/mktime.m4: Likewise.
94738
94739         * m4/check-type.m4: Remove file, now that the latest version of
94740         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94741
94742         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94743         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94744         AC_CHECK_TYPE.
94745
94746 1999-10-04  Jim Meyering  <meyering@ascend.com>
94747
94748         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94749
94750 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94751
94752         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94753         2.95.1 bug with HP-UX 10.20.
94754
94755 1999-09-17  Jim Meyering  <meyering@ascend.com>
94756
94757         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94758         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94759         due to missing strdup (against sh-utils-2.0).
94760
94761 1999-08-29  Jim Meyering  <meyering@ascend.com>
94762
94763         * m4/jm-macros.m4: Require jm_BISON.
94764         * m4/bison.m4: New file.
94765
94766 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94767
94768         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94769         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94770
94771 1999-08-05  Jim Meyering  <meyering@ascend.com>
94772
94773         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94774         to avoid conflicts with `conftest' on 8+3 filesystems.
94775         Suggestion from Eli Zaretskii.
94776
94777 1999-08-04  Jim Meyering  <meyering@ascend.com>
94778
94779         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94780         fileutils and sh-utils (textutils's getline test was inadequate).
94781         (AM_FUNC_GETLINE): Run this test.
94782         (AC_CHECK_FUNCS): Check for getdelim.
94783         Reported by Bob Proulx.
94784
94785 1999-08-02  Jim Meyering  <meyering@ascend.com>
94786
94787         * m4/jm-macros.m4: Add a comment.
94788
94789 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94790
94791         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94792         <inttypes.h> defines strtoumax as a macro (and not as a
94793         function).
94794
94795 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94796
94797         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94798         that we can shift, multiply and divide unsigned long long
94799         values; Ultrix cc can't do it.
94800
94801 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94802
94803         * m4/mktime.m4: New file, which is a preview of what should appear
94804         in the next public autoconf release.
94805
94806 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94807
94808         * m4/lfs.m4: Remove this file.
94809         * m4/largefile.m4: New file.  It contains the old contents of
94810         lfs.m4, except that all names with prefix AC_LFS have been
94811         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94812         compatible with future autoconf versions.  Also, some minor m4
94813         quoting problems have been fixed.
94814
94815 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94816
94817         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94818         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94819         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94820         and simplify the shell code.
94821
94822 1999-08-01  Jim Meyering  <meyering@ascend.com>
94823
94824         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94825         m4.
94826
94827 1999-07-20  Jim Meyering  <meyering@ascend.com>
94828
94829         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94830
94831 1999-07-15  Jim Meyering  <meyering@ascend.com>
94832
94833         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94834
94835 1999-05-22  Jim Meyering  <meyering@ascend.com>
94836
94837         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94838
94839 1999-05-20  Jim Meyering  <meyering@ascend.com>
94840
94841         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94842         Add a colon after each `then' in case $4 is empty.
94843
94844 1999-05-16  Jim Meyering  <meyering@ascend.com>
94845
94846         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94847
94848 1999-05-10  Jim Meyering  <meyering@ascend.com>
94849
94850         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94851
94852         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94853         AC_FUNC_MKTIME.
94854
94855 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94856
94857         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94858
94859 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94860
94861         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94862         not CPPFLAGS, so that linking works correctly in IRIX.
94863
94864 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94865
94866         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94867
94868 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94869
94870         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94871         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94873         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94874         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94875
94876         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94877
94878 1999-04-20  Jim Meyering  <meyering@ascend.com>
94879
94880         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94881         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94882         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94883
94884 1999-04-18  Jim Meyering  <meyering@ascend.com>
94885
94886         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94887         * m4/jm-macros.m4: Use it.
94888
94889 1999-04-06  Jim Meyering  <meyering@ascend.com>
94890
94891         * m4/strftime.m4: Remove test for %f.
94892
94893 1999-03-29  Jim Meyering  <meyering@ascend.com>
94894
94895         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94896         superset of the AC_TYPE_* checks in the textutils, fileutils,
94897         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94898         AC_TYPE_PID_T.
94899
94900 1999-03-28  Jim Meyering  <meyering@ascend.com>
94901
94902         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94903         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94904         replaced e.g., in the *.sh files of the sh-utils.
94905
94906 1999-03-20  Jim Meyering  <meyering@ascend.com>
94907
94908         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94909         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94910         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94911
94912 1999-03-19  Jim Meyering  <meyering@ascend.com>
94913
94914         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94915
94916 1999-03-12  Jim Meyering  <meyering@ascend.com>
94917
94918         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94919
94920 1999-03-07  Jim Meyering  <meyering@ascend.com>
94921
94922         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94923         declared.
94924
94925 1999-02-17  Jim Meyering  <meyering@ascend.com>
94926
94927         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94928         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94929
94930 1999-02-07  Jim Meyering  <meyering@ascend.com>
94931
94932         * m4/group-member.m4: New file -- extracted from sh-utils'
94933         configure.in.
94934
94935         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94936         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94937
94938 1999-02-06  Jim Meyering  <meyering@ascend.com>
94939
94940         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94941         * m4/fnmatch.m4: Likewise.
94942         * m4/getgroups.m4: Likewise.
94943         * m4/lstat.m4: Likewise.
94944         * m4/malloc.m4: Likewise.
94945         * m4/putenv.m4: Likewise.
94946         * m4/realloc.m4: Likewise.
94947         * m4/regex.m4: Likewise.
94948         * m4/stat.m4: Likewise.
94949         * m4/strftime.m4: Likewise.
94950         Suggestion from Alain Magloire.
94951
94952         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94953         * m4/fnmatch.m4: Likewise.
94954         * m4/getgroups.m4: Likewise.
94955         * m4/getline.m4: Likewise.
94956         * m4/lstat.m4: Likewise.
94957         * m4/malloc.m4: Likewise.
94958         * m4/memcmp.m4: Likewise.
94959         * m4/putenv.m4: Likewise.
94960         * m4/realloc.m4: Likewise.
94961         * m4/regex.m4: Likewise.
94962         * m4/stat.m4: Likewise.
94963         * m4/strftime.m4: Likewise.
94964         Suggestion from Alain Magloire.
94965
94966         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94967         an argument.
94968
94969         * m4/regex.m4: Add a run-time Test for proper operation of
94970         re_compile_pattern.
94971
94972 1999-01-31  Jim Meyering  <meyering@ascend.com>
94973
94974         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94975
94976 1999-01-30  Jim Meyering  <meyering@ascend.com>
94977
94978         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94979
94980         * m4/jm-mktime.m4: Make this a wrapper around the official
94981         AM_FUNC_MKTIME rather than my private copy, now that the official one
94982         is up to date.
94983         * m4/mktime.m4: Remove file.
94984
94985         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94986         * m4/uptime.m4: Likewise.
94987         * m4/uintmax_t.m4: Likewise.
94988
94989 1999-01-28  Jim Meyering  <meyering@ascend.com>
94990
94991         * m4/jm-macros.m4: Use jm_AFS.
94992         * m4/afs.m4: New file (from fileutils' configure.in).
94993
94994         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94995         * m4/chown.m4: Likewise.
94996         * m4/d-ino.m4: Likewise.
94997         * m4/d-type.m4: Likewise.
94998         * m4/fnmatch.m4: Likewise.
94999         * m4/getgroups.m4: Likewise.
95000         * m4/gettext.m4: Likewise.
95001         * m4/jm-mktime.m4: Likewise.
95002         * m4/jm-winsz2.m4: Likewise.
95003         * m4/lcmessage.m4: Likewise.
95004         * m4/ls-mntd-fs.m4: Likewise.
95005         * m4/malloc.m4: Likewise.
95006         * m4/memcmp.m4: Likewise.
95007         * m4/putenv.m4: Likewise.
95008         * m4/realloc.m4: Likewise.
95009         * m4/st_mtim.m4: Likewise.
95010         * m4/strftime.m4: Likewise.
95011
95012 1999-01-16  Jim Meyering  <meyering@ascend.com>
95013
95014         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95015         (ARGMATCH_DIE_DECL): Define.
95016
95017 1999-01-12  Jim Meyering  <meyering@ascend.com>
95018
95019         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95020         Reported by Lars Hecking.
95021
95022 1999-01-10  Jim Meyering  <meyering@ascend.com>
95023
95024         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95025         gross kludge.
95026         * m4/inttypes_h.m4: Likewise.
95027         * m4/lstat.m4: Likewise.
95028         * m4/malloc.m4: Likewise.
95029         * m4/readdir.m4: Likewise.
95030         * m4/realloc.m4: Likewise.
95031         * m4/st_dm_mode.m4: Likewise.
95032         * m4/stat.m4: Likewise.
95033         * m4/utimbuf.m4: Likewise.
95034         * m4/utimes.m4: Likewise.
95035
95036         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95037         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95038         comments in config.h.in are meaningful.
95039
95040         * m4/jm-macros.m4: Require autoconf-2.13 here.
95041
95042         * m4/regex.m4: By default, don't use the included regex.c on systems
95043         with glibc 2.  Suggestion from Uli Drepper.
95044
95045 1999-01-02  Jim Meyering  <meyering@ascend.com>
95046
95047         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95048
95049 1998-12-18  Jim Meyering  <meyering@ascend.com>
95050
95051         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95052         Based on a suggestion from Lars Hecking.
95053
95054 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95055
95056         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95057
95058 1998-11-16  Jim Meyering  <meyering@ascend.com>
95059
95060         * m4/lfs.m4: Double-quote the `uname...` expression.
95061
95062 1998-11-14  Jim Meyering  <meyering@ascend.com>
95063
95064         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95065         * m4/stat.m4: Likewise.
95066
95067 1998-11-03  Jim Meyering  <meyering@ascend.com>
95068
95069         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95070         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95071
95072 1998-10-18  Jim Meyering  <meyering@ascend.com>
95073
95074         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95075
95076 1998-10-17  Jim Meyering  <meyering@ascend.com>
95077
95078         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95079         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95080         calls for those previously hard-coded headers.  Instead, take a new
95081         parameter.
95082         (jm_CHECK_DECLARATIONS): Reflect interface change.
95083         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95084         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95085
95086         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95087
95088 1998-10-14  Jim Meyering  <meyering@ascend.com>
95089
95090         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95091         instead of "TZ=America/Vancouver".  From Paul Eggert.
95092
95093 1998-10-11  Jim Meyering  <meyering@ascend.com>
95094
95095         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95096         This adds a test for a recently added compatibility fix for mktime.c.
95097         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95098
95099 1998-09-27  Jim Meyering  <meyering@ascend.com>
95100
95101         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95102
95103         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95104         ../configure.in, including a change from Gordon Matzigkeit to allow
95105         cross-compiling for the Hurd.
95106
95107         * m4/glibc.m4: New file/macro to test for the GNU C Library
95108         versions 1 and 2.  From Gordon Matzigkeit.
95109         Indent.
95110
95111 1998-09-21  Jim Meyering  <meyering@ascend.com>
95112
95113         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95114
95115 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95116
95117         Port nanosecond-resolution times to UnixWare 2.1.2 and
95118         pedantic Solaris 2.6.
95119
95120         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95121         AC_STRUCT_ST_MTIM.
95122         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95123         Generate name of ns member, instead of just 1 or undef.
95124         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95125
95126 1998-08-15  Jim Meyering  <meyering@ascend.com>
95127
95128         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95129         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95130         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95131         instead of jm_TYPE_SSIZE_T.
95132
95133 1998-08-12  Jim Meyering  <meyering@ascend.com>
95134
95135         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95136
95137 1998-08-02  Jim Meyering  <meyering@ascend.com>
95138
95139         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95140         in acconfig.h manually.
95141
95142 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95143
95144         * m4/st_mtim.m4: New file.
95145
95146 1998-07-28  Jim Meyering  <meyering@ascend.com>
95147
95148         * m4/utimes.m4: Undef stat.
95149
95150 1998-07-25  Jim Meyering  <meyering@ascend.com>
95151
95152         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95153         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95154
95155 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95156
95157         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95158         uid and gid actually remain unchanged.
95159
95160 1998-07-07  Jim Meyering  <meyering@ascend.com>
95161
95162         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95163
95164 1998-07-04  Jim Meyering  <meyering@ascend.com>
95165
95166         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95167         to prove that this macro can be used in packages without regex.c.
95168
95169 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95170
95171         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95172         is to be used.
95173
95174 1998-07-03  Jim Meyering  <meyering@ascend.com>
95175
95176         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95177
95178         * m4/gettext.m4: New file -- from gettext-0.10.35.
95179         * m4/lcmessage.m4: Likewise.
95180         * m4/progtest.m4: Likewise.
95181
95182         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95183         * m4/jm-macros.m4: Require the new macro.
95184
95185 1998-06-29  Jim Meyering  <meyering@ascend.com>
95186
95187         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95188         for the definition of NGROUPS (used in a system header included
95189         by sys/mount.h).
95190
95191 1998-06-28  Jim Meyering  <meyering@ascend.com>
95192
95193         * m4/ls-mntd-fs.m4: New file.
95194         * m4/fstypename.m4: New file.
95195
95196         * m4/jm-macros.m4: Require the new macro.
95197         * m4/jm-glibc-io.m4: New file.
95198
95199 1998-05-19  Jim Meyering  <meyering@ascend.com>
95200
95201         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95202         * m4/lchown.m4: New file.
95203
95204         * m4/Makefile.am.in: New file.
95205         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95206
95207 1998-05-14  Jim Meyering  <meyering@ascend.com>
95208
95209         * m4/Makefile.am (EXTRA_DIST): Add them.
95210         * m4/jm-macros.m4: New file.
95211         * m4/utimbuf.m4: New file.
95212
95213 1998-05-12  Jim Meyering  <meyering@ascend.com>
95214
95215         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95216
95217 1998-05-11  Jim Meyering  <meyering@ascend.com>
95218
95219         * m4/isc-posix.m4: New file.
95220
95221 1998-05-10  Jim Meyering  <meyering@ascend.com>
95222
95223         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95224
95225 1998-05-09  Jim Meyering  <meyering@ascend.com>
95226
95227         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95228         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95229         with automake.
95230
95231         * m4/ssize_t.m4: New file.
95232         * m4/mktime.m4: Remove file -- the new automake has this now.
95233
95234 1998-04-26  Jim Meyering  <meyering@ascend.com>
95235
95236         * m4/assert.m4: New file.
95237         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95238
95239 1998-04-05  Jim Meyering  <meyering@ascend.com>
95240
95241         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95242         (jm_PREREQ): Use it here.
95243
95244 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95245
95246         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95247         in acconfig.h.
95248
95249 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95250
95251         * m4/prereq.m4: New file.
95252         * m4/error.m4: New file.
95253         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95254
95255 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95256
95257         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95258         cache-check for the same variable -- that defeated the purpose of
95259         the test; the test program was never run.  This was a problem only
95260         on systems with losing getline functions -- HP-UX 10.20 is one.
95261         Reported by Bjorn Helgaas.
95262
95263 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95264
95265         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95266
95267 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95268
95269         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95270
95271         * m4/const.m4: New file.  Use an initializer in this declaration
95272         typedef int charset[2]; const charset x;
95273         Reported by Bob Glickstein.
95274
95275 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95276
95277         * m4/chown.m4: Fix reversed types on -1 args to chown.
95278         From Kaveh Ghazi.
95279
95280 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95281
95282         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95283         Add lseek and memchr.
95284
95285         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95286         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95287         have a 20-character limit on names.
95288
95289 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95290
95291         * m4/inttypes_h.m4: New file.
95292         * m4/uintmax_t.m4: New file.
95293         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95294
95295
95296         -----
95297
95298         Local Variables:
95299         coding: utf-8
95300         End:
95301
95302         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95303
95304         Copying and distribution of this file, with or without
95305         modification, are permitted provided the copyright notice
95306         and this notice are preserved.